i386.c (MAX_CLASSES): Increase number of classes.
[gcc.git] / gcc / ChangeLog
1 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Sergey Lega <sergey.s.lega@intel.com>
4 Anna Tikhonova <anna.tikhonova@intel.com>
5 Ilya Tocar <ilya.tocar@intel.com>
6 Andrey Turetskiy <andrey.turetskiy@intel.com>
7 Ilya Verbin <ilya.verbin@intel.com>
8 Kirill Yukhin <kirill.yukhin@intel.com>
9 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10
11 * config/i386/i386.c (MAX_CLASSES): Increase number of classes.
12 (classify_argument): Extend for 512 bit vectors.
13 (construct_container): Ditto.
14 (function_arg_advance_32): Ditto.
15 (function_arg_advance_64): Ditto.
16 (function_arg_32): Ditto.
17 (function_arg_64): Ditto.
18 (function_value_32): Ditto.
19 (return_in_memory_32): Ditto.
20 (ix86_gimplify_va_arg): Ditto.
21 (standard_sse_constant_p): Ditto.
22 (standard_sse_constant_opcode): Ditto.
23 (ix86_expand_vector_convert_uns_vsivsf): Ditto.
24 (ix86_build_const_vector): Ditto.
25 (ix86_build_signbit_mask): Ditto.
26 (ix86_expand_sse_cmp): Extend for AVX512.
27 (ix86_expand_sse_movcc): Ditto.
28 (ix86_expand_int_vcond): Ditto.
29 (ix86_expand_vec_perm): Ditto.
30 (ix86_expand_sse_unpack): Ditto.
31 (ix86_constant_alignment): Ditto.
32 (ix86_builtin_vectorized_function): Ditto.
33 (ix86_vectorize_builtin_gather): Ditto.
34 (avx_vpermilp_parallel): Ditto.
35 (ix86_rtx_costs): Ditto.
36 (ix86_expand_vector_init_duplicate): Ditto.
37 (ix86_expand_vector_init_concat): Ditto.
38 (ix86_expand_vector_init_general): Ditto.
39 (ix86_expand_vector_extract): Ditto.
40 (emit_reduc_half): Ditto.
41 (ix86_vector_mode_supported_p): Ditto.
42 (ix86_emit_swdivsf): Ditto.
43 (ix86_emit_swsqrtsf): Ditto.
44 (expand_vec_perm_1): Ditto.
45 (ix86_vectorize_vec_perm_const_ok): Ditto.
46 (ix86_expand_mul_widen_evenodd): Ditto.
47 (ix86_expand_sse2_mulvxdi3): Ditto.
48 (ix86_preferred_simd_mode): Ditto.
49 (ix86_autovectorize_vector_sizes): Ditto.
50 (ix86_expand_vec_perm_vpermi2): New.
51 (ix86_vector_duplicate_value): Ditto.
52 (IX86_BUILTIN_SQRTPD512, IX86_BUILTIN_EXP2PS, IX86_BUILTIN_SQRTPS_NR512,
53 IX86_BUILTIN_GATHER3ALTDIV16SF, IX86_BUILTIN_GATHER3ALTDIV16SI,
54 IX86_BUILTIN_GATHER3ALTSIV8DF, IX86_BUILTIN_GATHER3ALTSIV8DI,
55 IX86_BUILTIN_GATHER3DIV16SF, IX86_BUILTIN_GATHER3DIV16SI,
56 IX86_BUILTIN_GATHER3DIV8DF, IX86_BUILTIN_GATHER3DIV8DI,
57 IX86_BUILTIN_GATHER3SIV16SF, IX86_BUILTIN_GATHER3SIV16SI,
58 IX86_BUILTIN_GATHER3SIV8DF, IX86_BUILTIN_CEILPD_VEC_PACK_SFIX512,
59 IX86_BUILTIN_CPYSGNPS512, IX86_BUILTIN_CPYSGNPD512,
60 IX86_BUILTIN_FLOORPD_VEC_PACK_SFIX512,
61 IX86_BUILTIN_ROUNDPD_AZ_VEC_PACK_SFIX512): Ditto.
62 * config/i386/sse.md (*mov<mode>_internal): Disable SSE typeless
63 stores vectors > 128bit (AVX*).
64 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
65 (<sse2_avx_avx512f>_storedqu<mode>): Extend for AVX-512, disable
66 SSE typeless stores vectors > 128bit (AVX*).
67 (fixuns_trunc<mode><sseintvecmodelower>2): Extend for AVX-512.
68 (vec_pack_ufix_trunc_<mode>): Ditto.
69 (vec_unpacku_float_hi_v16si): New.
70 * tree-vect-stmts.c (vectorizable_load): Support AVX512's gathers.
71 * tree-vectorizer.h (MAX_VECTORIZATION_FACTOR): Extend for 512 bit
72 vectors.
73
74 2013-12-31 Chung-Lin Tang <cltang@codesourcery.com>
75 Sandra Loosemore <sandra@codesourcery.com>
76 Based on patches from Altera Corporation
77
78 * config.gcc (nios2-*-*): Add nios2 config targets.
79 * configure.ac (TLS_SECTION_ASM_FLAG): Add nios2 case.
80 ("$cpu_type"): Add nios2 as new cpu type.
81 * configure: Regenerate.
82 * config/nios2/nios2.c: New file.
83 * config/nios2/nios2.h: New file.
84 * config/nios2/nios2-opts.h: New file.
85 * config/nios2/nios2-protos.h: New file.
86 * config/nios2/elf.h: New file.
87 * config/nios2/elf.opt: New file.
88 * config/nios2/linux.h: New file.
89 * config/nios2/nios2.opt: New file.
90 * config/nios2/nios2.md: New file.
91 * config/nios2/predicates.md: New file.
92 * config/nios2/constraints.md: New file.
93 * config/nios2/t-nios2: New file.
94 * common/config/nios2/nios2-common.c: New file.
95 * doc/invoke.texi (Nios II options): Document Nios II specific
96 options.
97 * doc/md.texi (Nios II family): Document Nios II specific
98 constraints.
99 * doc/extend.texi (Function Specific Option Pragmas): Document
100 Nios II supported target pragma functionality.
101
102 2013-12-30 Jakub Jelinek <jakub@redhat.com>
103
104 PR tree-optimization/59591
105 * tree-vect-stmts.c (vectorizable_mask_load_store): Fix up handling
106 of modifier = NARROW masked gathers.
107 (permute_vec_elements): Use gimple_get_lhs instead of
108 gimple_assign_lhs.
109
110 2013-12-30 Nick Clifton <nickc@redhat.com>
111 Peter Bigot <bigotp@acm.org>
112
113 PR target/59613
114 * stor-layout.c (get_mode_bounds): Use GET_MODE_PRECISION instead
115 of GET_MODE_BITSIZE.
116
117 2013-12-30 Nick Clifton <nickc@redhat.com>
118
119 * config/msp430/msp430.c (msp430_print_operand): Rename %B to %b
120 and %A to %Q. Add %A, %B, %C and %D as selectors for 16-bit parts
121 of a 64-bit operand.
122 * config/msp430/msp430.md: Replace uses of %B with %b and uses of
123 %A with %q.
124
125 2013-12-30 Felix Yang <felix.yang@huawei.com>
126
127 * ira-costs.c (cost_classes_hasher::equal): Check equality of
128 memcmp and 0 if no difference exists for HV1 and HV2.
129
130 2013-12-30 Jakub Jelinek <jakub@redhat.com>
131
132 PR target/59501
133 * config/i386/i386.c (ix86_save_reg): Don't return true for drap_reg
134 if !crtl->stack_realign_needed.
135 (ix86_finalize_stack_realign_flags): If drap_reg isn't live on entry
136 and stack_realign_needed will be false, clear drap_reg and need_drap.
137 Optimize leaf functions that don't need stack frame even if
138 crtl->need_drap.
139
140 2013-12-30 H.J. Lu <hongjiu.lu@intel.com>
141
142 PR target/59605
143 * config/i386/i386.c (ix86_expand_set_or_movmem): Create
144 jump_around_label only if it doesn't exist.
145
146 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
147
148 * doc/invoke.texi (output file options): Document -fada-spec-parent.
149
150 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
151 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
152 Sergey Lega <sergey.s.lega@intel.com>
153 Anna Tikhonova <anna.tikhonova@intel.com>
154 Ilya Tocar <ilya.tocar@intel.com>
155 Andrey Turetskiy <andrey.turetskiy@intel.com>
156 Ilya Verbin <ilya.verbin@intel.com>
157 Kirill Yukhin <kirill.yukhin@intel.com>
158 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
159
160 * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
161 EVEX's RC.
162 (avx512f_sfixupimm<mode>_maskz): Ditto.
163 * config/i386/subst.md (round_saeonly_expand_name): New.
164 (round_saeonly_expand_nimm_predicate): Ditto.
165 (round_saeonly_expand_operand6): Ditto.
166 (round_saeonly_expand): Ditto.
167
168 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
169 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
170 Sergey Lega <sergey.s.lega@intel.com>
171 Anna Tikhonova <anna.tikhonova@intel.com>
172 Ilya Tocar <ilya.tocar@intel.com>
173 Andrey Turetskiy <andrey.turetskiy@intel.com>
174 Ilya Verbin <ilya.verbin@intel.com>
175 Kirill Yukhin <kirill.yukhin@intel.com>
176 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
177
178 * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
179 EVEX's RC.
180 (avx512f_fmaddsub_<mode>_maskz): Ditto.
181 * config/i386/subst.md (round_expand_name): New.
182 (round_expand_nimm_predicate): Ditto.
183 (round_expand_operand): Ditto.
184 (round_expand): Ditto.
185
186 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
187 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
188 Sergey Lega <sergey.s.lega@intel.com>
189 Anna Tikhonova <anna.tikhonova@intel.com>
190 Ilya Tocar <ilya.tocar@intel.com>
191 Andrey Turetskiy <andrey.turetskiy@intel.com>
192 Ilya Verbin <ilya.verbin@intel.com>
193 Kirill Yukhin <kirill.yukhin@intel.com>
194 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
195
196 * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
197 EVEX's SAE mode.
198 (*<code><mode>3_finite<mask_name>): Ditto.
199 (*<code><mode>3<mask_name>): Ditto.
200 (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
201 (avx512f_vmcmp<mode>3): Ditto.
202 (avx512f_vmcmp<mode>3_mask): Ditto.
203 (<sse>_comi): Ditto.
204 (<sse>_ucomi): Ditto.
205 (sse_cvttss2si): Ditto.
206 (sse_cvttss2siq): Ditto.
207 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
208 (avx512f_vcvttss2usi): Ditto.
209 (avx512f_vcvttss2usiq): Ditto.
210 (avx512f_vcvttsd2usi): Ditto.
211 (avx512f_vcvttsd2usiq): Ditto.
212 (sse2_cvttsd2si): Ditto.
213 (sse2_cvttsd2siq): Ditto.
214 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
215 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
216 (avx512f_getexp<mode><mask_name>): Ditto.
217 (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
218 (avx512f_fixupimm<mode>_mask): Ditto.
219 (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
220 (avx512f_sfixupimm<mode>_mask): Ditto.
221 (avx512f_rndscale<mode><mask_name>): Ditto.
222 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
223 (avx512f_getmant<mode><mask_name>): Ditto.
224 * config/i386/subst.md (round_saeonly_name): New.
225 (round_saeonly_mask_operand2): Ditto.
226 (round_saeonly_mask_operand3): Ditto.
227 (round_saeonly_mask_scalar_operand3): Ditto.
228 (round_saeonly_mask_scalar_operand4): Ditto.
229 (round_saeonly_mask_scalar_merge_operand4): Ditto.
230 (round_saeonly_sd_mask_operand5): Ditto.
231 (round_saeonly_op2): Ditto.
232 (round_saeonly_op4): Ditto.
233 (round_saeonly_op5): Ditto.
234 (round_saeonly_op6): Ditto.
235 (round_saeonly_mask_op2): Ditto.
236 (round_saeonly_mask_op3): Ditto.
237 (round_saeonly_mask_scalar_op3): Ditto.
238 (round_saeonly_mask_scalar_op4): Ditto.
239 (round_saeonly_mask_scalar_merge_op4): Ditto.
240 (round_saeonly_sd_mask_op5): Ditto.
241 (round_saeonly_constraint): Ditto.
242 (round_saeonly_constraint2): Ditto.
243 (round_saeonly_nimm_predicate): Ditto.
244 (round_saeonly_mode512bit_condition): Ditto.
245 (round_saeonly): Ditto.
246
247 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
249 Sergey Lega <sergey.s.lega@intel.com>
250 Anna Tikhonova <anna.tikhonova@intel.com>
251 Ilya Tocar <ilya.tocar@intel.com>
252 Andrey Turetskiy <andrey.turetskiy@intel.com>
253 Ilya Verbin <ilya.verbin@intel.com>
254 Kirill Yukhin <kirill.yukhin@intel.com>
255 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
256
257 * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
258 * config/i386/i386.md (define_constants): Define EVEx's RC constants.
259 * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
260 to support EVEX's rounding control.
261 (*<plusminus_insn><mode>3<mask_name>): Ditto.
262 (mul<mode>3<mask_name>): Ditto.
263 (*mul<mode>3<mask_name>): Ditto.
264 (<sse>_div<mode>3<mask_name>): Ditto.
265 (<sse>_sqrt<mode>2<mask_name>): Ditto.
266 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
267 (avx512f_fmadd_<mode>_mask): Ditto.
268 (avx512f_fmadd_<mode>_mask3): Ditto.
269 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
270 (avx512f_fmsub_<mode>_mask): Ditto.
271 (avx512f_fmsub_<mode>_mask3): Ditto.
272 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
273 (avx512f_fnmadd_<mode>_mask): Ditto.
274 (avx512f_fnmadd_<mode>_mask3): Ditto.
275 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
276 (avx512f_fnmsub_<mode>_mask): Ditto.
277 (avx512f_fnmsub_<mode>_mask3): Ditto.
278 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
279 (avx512f_fmaddsub_<mode>_mask): Ditto.
280 (avx512f_fmaddsub_<mode>_mask3): Ditto.
281 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
282 (avx512f_fmsubadd_<mode>_mask): Ditto.
283 (avx512f_fmsubadd_<mode>_mask3): Ditto.
284 (fmai_vmfmadd_<mode>): Ditto.
285 (*fmai_fmadd_<mode>): Ditto.
286 (*fmai_fmsub_<mode>): Ditto.
287 (*fmai_fnmadd_<mode>): Ditto.
288 (*fmai_fnmsub_<mode>): Ditto.
289 (sse_cvtsi2ss): Ditto.
290 (sse_cvtsi2ssq): Ditto.
291 (sse_cvtss2si): Ditto.
292 (sse_cvtss2siq): Ditto.
293 (cvtusi2<ssescalarmodesuffix>32): Ditto.
294 (cvtusi2<ssescalarmodesuffix>64): Ditto.
295 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
296 (ufloatv16siv16sf2<mask_name>): Ditto.
297 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
298 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
299 (sse2_cvtsi2sdq): Ditto.
300 (avx512f_vcvtss2usi): Ditto.
301 (avx512f_vcvtss2usiq): Ditto.
302 (avx512f_vcvtsd2usi): Ditto.
303 (avx512f_vcvtsd2usiq): Ditto.
304 (sse2_cvtsd2si): Ditto.
305 (sse2_cvtsd2siq): Ditto.
306 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
307 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
308 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
309 (avx512f_scalef<mode><mask_name>): Ditto.
310 (<code><mode>3<mask_name>): Ditto.
311 (*avx2_<code><mode>3<mask_name>): Ditto.
312 (avx512er_exp2<mode><mask_name): Ditto.
313 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
314 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
315 (avx512f_fmadd_<mode>_maskz): New.
316 * config/i386/subst.md (SUBST_A): New.
317 (round_name): Ditto.
318 (round_mask_operand2): Ditto.
319 (round_mask_operand3): Ditto.
320 (round_mask_scalar_operand3): Ditto.
321 (round_sd_mask_operand4): Ditto.
322 (round_op2): Ditto.
323 (round_op3): Ditto.
324 (round_op4): Ditto.
325 (round_op5): Ditto.
326 (round_op6): Ditto.
327 (round_mask_op2): Ditto.
328 (round_mask_op3): Ditto.
329 (round_mask_scalar_op3): Ditto.
330 (round_sd_mask_op4): Ditto.
331 (round_constraint): Ditto.
332 (round_constraint2): Ditto.
333 (round_constraint3): Ditto.
334 (round_nimm_predicate): Ditto.
335 (round_mode512bit_condition): Ditto.
336 (round_modev4sf_condition): Ditto.
337 (round_codefor): Ditto.
338 (round_opnum): Ditto.
339 (round): Ditto.
340
341 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
342
343 PR target/59588
344 * config/i386/i386.c (ix86_option_override_internal): Don't
345 check generic tuning. Don't change i686 tuning.
346
347 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
348
349 PR target/59601
350 * config/i386/i386.c (get_builtin_code_for_version): Map
351 PROCESSOR_NEHALEM to "corei7".
352
353 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
354
355 * config/i386/i386.c (get_builtin_code_for_version): Rename AMD
356 CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR
357 to M_AMD_BTVER2.
358 (processor_model): Likewise.
359 (arch_names_table): Likewise.
360
361 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
362
363 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
364
365 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
366
367 PR target/59587
368 * config/i386/i386.c (struct ptt): Add a field for processor name.
369 (processor_target_table): Sync with processor_type.
370 Add processor names.
371 (cpu_names): Removed.
372 (ix86_option_override_internal): Default x_ix86_tune_string
373 to processor_target_table[TARGET_CPU_DEFAULT].name.
374 (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
375 Use processor_target_table to print arch and tune names.
376 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
377 PROCESSOR_GENERIC.
378 (target_cpu_default): Removed.
379 (processor_type): Reordered.
380
381 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org>
382 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR target/59422
385 * config/i386/i386.c (get_builtin_code_for_version): Handle
386 PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
387 PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
388 Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
389 (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
390 "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a",
391 "fma4", "xop" and "fma" ISA names.
392
393 2013-12-24 H.J. Lu <hongjiu.lu@intel.com>
394
395 * config/i386/i386.c (ix86_option_override_internal): Check
396 opts->x_ix86_arch_string instead of ix86_arch_string.
397
398 2013-12-24 Renlin Li <Renlin.Li@arm.com>
399
400 * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
401 * config/arm/constraints.md (Dp): Define new constraint.
402 * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
403 new predicate.
404 * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
405 (vfp3_const_double_for_bits): New function.
406 * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
407
408 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
409
410 PR target/59203
411 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
412 checking t1 twice instead of t1 and t2 respectively.
413
414 PR middle-end/59584
415 * config/cris/predicates.md (cris_nonsp_register_operand):
416 New define_predicate.
417 * config/cris/cris.md: Replace register_operand with
418 cris_nonsp_register_operand for destinations in all
419 define_splits where a register is set more than once.
420
421 2013-12-23 Jason Merrill <jason@redhat.com>
422
423 * gdbinit.in (input_line, input_filename): Define.
424
425 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
426 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
427 * cif-code.def: Add USES_COMDAT_LOCAL.
428 * symtab.c (verify_symtab_base): Make sure we don't refer to a
429 comdat-local symbol from outside its comdat.
430 * cgraph.c (verify_cgraph_node): Likewise.
431 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
432 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
433 (function_and_variable_visibility): Handle comdat-local fns.
434 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
435 * ipa-inline-analysis.c (compute_inline_parameters): Update
436 calls_comdat_local.
437 * ipa-inline-transform.c (inline_call): Likewise.
438 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
439 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
440 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
441 (lto_output_node): Write it.
442 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
443 DECL_COMDAT_GROUP for comdat-locals.
444
445 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
446
447 * config/i386/i386.c (processor_target_table): Move Bonnell and
448 Silvermont entries before generic.
449
450 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
451
452 PR middle-end/59569
453 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
454 consant/external operand, and add a few missing \n.
455
456 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
457 Tocar Ilya <ilya.tocar@intel.com>
458
459 * config/i386/core2.md: Replace corei7 with nehalem.
460
461 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
462 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
463 for cpu names.
464
465 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
466 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
467 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
468 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
469 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
470 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
471 __tune_haswell__, __bonnell/__bonnell__,
472 __silvermont/__silvermont__, __tune_bonnell__,
473 __tune_silvermont__.
474
475 * config/i386/i386.c (m_COREI7): Renamed to ...
476 (m_NEHALEM): This.
477 (m_COREI7_AVX): Renamed to ...
478 (m_SANDYBRIDGE): This.
479 (m_ATOM): Renamed to ...
480 (m_BONNELL): This.
481 (m_SLM): Renamed to ...
482 (m_SILVERMONT): This.
483 (m_CORE_ALL): Updated.
484 (cpu_names): Add "nehalem", "westmere", "sandybridge",
485 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
486 (PTA_CORE2): New.
487 (PTA_NEHALEM): Likewise.
488 (PTA_WESTMERE): Likewise.
489 (PTA_SANDYBRIDGE): Likewise.
490 (PTA_IVYBRIDGE): Likewise.
491 (PTA_HASWELL): Likewise.
492 (PTA_BROADWELL): Likewise.
493 (PTA_BONNELL): Likewise.
494 (PTA_SILVERMONT): Likewise.
495 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
496 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
497 (ix86_lea_outperforms): Updated.
498 (ix86_issue_rate): Likewise.
499 (ix86_adjust_cost): Likewise.
500 (ia32_multipass_dfa_lookahead): Likewise.
501 (do_reorder_for_imul): Likewise.
502 (swap_top_of_ready_list): Likewise.
503 (ix86_sched_reorder): Likewise.
504 (ix86_sched_init_global): Likewise.
505 (get_builtin_code_for_version): Likewise.
506 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
507 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
508 (arch_names_table): Updated.
509
510 * config/i386/i386.h (TARGET_COREI7): Removed.
511 (TARGET_COREI7_AVX): Likewise.
512 (TARGET_ATOM): Likewise.
513 (TARGET_SLM): Likewise.
514 (TARGET_NEHALEM): New.
515 (TARGET_SANDYBRIDGE): Likewise.
516 (TARGET_BONNELL): Likewise.
517 (TARGET_SILVERMONT): Likewise.
518 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
519 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
520 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
521 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
522 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
523 before TARGET_CPU_DEFAULT_broadwell.
524 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
525 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
526 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
527
528 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
529
530 * config/i386/x86-tune.def: Updated.
531
532 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
533 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
534 haswell, bonnel, silvermont. Add westmere.
535
536 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
537
538 PR rtl-optimization/57422
539 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
540 can always be scheduled in its current form.
541
542 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
543
544 PR rtl-optimization/57422
545 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
546 add_to_hard_reg_set.
547
548 2013-12-20 Sharad Singhai <singhai@google.com>
549
550 * Makefile.in: Add optinfo.texi.
551 * doc/invoke.texi: Fix typo.
552 * doc/optinfo.texi: New documentation for optimization info.
553 * doc/passes.texi: Add new node.
554
555 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
556
557 * vec.h (stack_vec): Convert to a templaate specialization of
558 auto_vec.
559 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
560 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
561 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
562 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
563 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
564 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
565 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
566 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
567 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
568
569 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
570
571 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
572 arguments to push onto the stack and no varargs, save ip into the last
573 stack slot if r3 isn't available on entry.
574
575 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576
577 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
578 * config/arm/arm_neon.h: Regenerate.
579 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
580 * doc/arm-neon-intrinsics.texi: Regenerate.
581
582 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
583
584 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
585 NO_REGS for LRA.
586
587 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
588
589 * config/arm/arm_acle.h: Add underscores before variables.
590
591 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
592
593 PR tree-optimization/59544
594 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
595 vectorizable_store.
596 (vectorizable_store): Handle negative step.
597
598 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
599
600 * config.gcc: Support march=broadwell.
601 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
602 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
603 * doc/invoke.texi: Document march=broadwell.
604
605 2013-12-20 Jakub Jelinek <jakub@redhat.com>
606
607 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
608 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
609 like INTEGER_TYPE.
610 (instrument_bool_enum_load): New function.
611 (ubsan_pass): Call it.
612 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
613 * asan.c (create_cond_insert_point): No longer static.
614 * asan.h (create_cond_insert_point): Declare.
615 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
616 built-in.
617 * opts.c (common_handle_option): Handle -fsanitize=bool and
618 -fsanitize=enum.
619 * builtins.c (fold_builtin_memory_op): When sanitizing bool
620 and enum loads, don't use enum or bool types for memcpy folding.
621 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
622 (SANITIZE_UNDEFINED): Or these in.
623
624 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
625
626 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
627 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
628 to determine available register number.
629 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
630 macro NDS32_MODE_TYPE_ALIGN.
631 (nds32_function_arg): Refine code layout.
632
633 2013-12-19 Jeff Law <law@redhat.com>
634
635 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
636 handles both zero and sign extension.
637
638 2013-12-19 Teresa Johnson <tejohnson@google.com>
639
640 PR gcov-profile/59542
641 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
642 if we have made any changes.
643
644 2013-12-19 Jakub Jelinek <jakub@redhat.com>
645
646 PR other/59545
647 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
648 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
649 to unsigned.
650 (attr_rtx_1): Change hashcode variable to unsigned.
651 (attr_string): Likewise. Perform first multiplication in
652 unsigned type.
653 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
654 overflows.
655 * double-int.c (neg_double): Likewise.
656 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
657 * combine.c (force_to_mode): Likewise.
658 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
659 reload_cse_move2add, move2add_note_store): Likewise.
660 * simplify-rtx.c (simplify_const_unary_operation,
661 simplify_const_binary_operation): Likewise.
662 * ipa-split.c (find_split_points): Initialize first.can_split
663 and first.non_ssa_vars.
664 * gengtype-state.c (read_state_files_list): Fix up check.
665 * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
666
667 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
668
669 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
670 * doc/arm-neon-intrinsics.texi: Regenerate.
671
672 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
673
674 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
675
676 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
677
678 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
679 (arm_init_neon_builtins): Handle crypto builtins.
680 (bdesc_2arg): Likewise.
681 (bdesc_1arg): Likewise.
682 (bdesc_3arg): New table.
683 (arm_expand_ternop_builtin): New function.
684 (arm_expand_unop_builtin): Handle sha1h explicitly.
685 (arm_expand_builtin): Handle ternary builtins.
686 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
687 Define __ARM_FEATURE_CRYPTO.
688 * config/arm/arm.md: Include crypto.md.
689 (is_neon_type): Add crypto types.
690 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
691 * config/arm/crypto.def: New.
692 * config/arm/crypto.md: Likewise.
693 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
694 (CRYPTO_BINARY): Likewise.
695 (CRYPTO_TERNARY): Likewise.
696 (CRYPTO_SELECTING): Likewise.
697 (crypto_pattern): New int attribute.
698 (crypto_size_sfx): Likewise.
699 (crypto_mode): Likewise.
700 (crypto_type): Likewise.
701 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
702 Handle crypto intrinsics.
703 * config/arm/neon.ml: Add support for poly64 and polt128 types
704 and intrinsics. Define crypto intrinsics.
705 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
706 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
707 (neon_vreinterpretv8hi<mode>): Likewise.
708 (neon_vreinterpretv4si<mode>): Likewise.
709 (neon_vreinterpretv4sf<mode>): Likewise.
710 (neon_vreinterpretv2di<mode>): Likewise.
711 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
712 (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
713 (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
714 (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
715 * config/arm/arm_neon.h: Regenerate.
716
717 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
718
719 PR driver/59321
720 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
721 DEFAULT_LINKER is defined.
722 * common.opt (fuse-ld=bfd): Add Driver.
723 (fuse-ld=gold): Likewise.
724 * gcc.c (use_ld): New variable.
725 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
726 OPT_fuse_ld_gold.
727 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
728
729 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
730
731 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
732 * config.gcc (extra_headers): Add arm_acle.h.
733 * config/arm/arm.c (FL_CRC32): Define.
734 (arm_have_crc): Likewise.
735 (arm_option_override): Set arm_have_crc.
736 (arm_builtins): Add CRC32 builtins.
737 (bdesc_2arg): Likewise.
738 (arm_init_crc32_builtins): New function.
739 (arm_init_builtins): Initialise CRC32 builtins.
740 (arm_file_start): Handle architecture extensions.
741 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
742 __ARM_FEATURE_CRC32. Define __ARM_32BIT_STATE.
743 (TARGET_CRC32): Define.
744 * config/arm/arm-arches.def: Add armv8-a+crc.
745 * config/arm/arm-tables.opt: Regenerate.
746 * config/arm/arm.md (type): Add crc.
747 (<crc_variant>): New insn.
748 * config/arm/arm_acle.h: New file.
749 * config/arm/iterators.md (CRC): New int iterator.
750 (crc_variant, crc_mode): New int attributes.
751 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
752 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
753 * doc/invoke.texi: Document -march=armv8-a+crc option.
754 * doc/extend.texi: Document ACLE intrinsics.
755
756 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
757
758 PR target/59142
759 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
760 patterns.
761 * config/arm/ldmstm.md: Regenerate.
762
763 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
764
765 PR target/59142
766 * config/arm/predicates.md (arm_hard_general_register_operand):
767 New predicate.
768 (arm_hard_register_operand): Remove.
769 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
770 for all patterns.
771 * config/arm/ldmstm.md: Regenerate.
772
773 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
774
775 PR target/59142
776 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
777 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
778 vfp_hard_register_operand.
779
780 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
781
782 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
783 Define builtin types for poly64_t poly128_t.
784 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
785 * aarch64/aarch64-simd-builtins.def: Update builtins table.
786 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
787 aarch64_crypto_pmullv2di): New.
788 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
789 poly64x2_t mangler.
790 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
791 (vmull_p64, vmull_high_p64): New.
792 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
793
794 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
795
796 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
797 * config/aarch64/aarch64-simd.md
798 (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
799 aarch64_crypto_sha256su1v4si): New.
800 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
801 vsha256su0q_u32, vsha256su1q_u32): New.
802 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
803 New.
804 (CRYPTO_SHA256): New int iterator.
805 (sha256_op): New int attribute.
806
807 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
808
809 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
810 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
811 TYPES_TERNOPU): New.
812 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
813 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
814 aarch64_crypto_sha1su0v4si): New.
815 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
816 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
817 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
818 New.
819 (CRYPTO_SHA1): New int iterator.
820 (sha1_op): New int attribute.
821
822 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
823
824 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
825 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
826 TYPES_BINOPU): New.
827 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
828 aarch64_crypto_aes<aesmc_op>v16qi): New.
829 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
830 vaesimcq_u8): New.
831 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
832 UNSPEC_AESIMC): New.
833 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
834 (aes_op, aesmc_op): New int attributes.
835
836 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
837
838 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
839 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
840 crypto_sha256_slow): New.
841
842 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
843
844 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
845 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
846
847 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
848 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
849
850 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
851 constant.
852 (s390_hotpatch_trampoline_halfwords_max): New constant.
853 (s390_hotpatch_trampoline_halfwords): New static variable.
854 (get_hotpatch_attribute): New function.
855 (s390_handle_hotpatch_attribute): New function.
856 (s390_attribute_table): New target specific attribute table to
857 implement the hotpatch attribute.
858 (s390_option_override): Parse hotpatch options.
859 (s390_function_num_hotpatch_trampoline_halfwords): New function.
860 (s390_can_inline_p): Implement target hook to
861 suppress hotpatching for explicitly inlined functions.
862 (s390_asm_output_function_label): Generate hotpatch prologue.
863 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
864 (TARGET_CAN_INLINE_P): Define to implement target hook.
865 * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
866 -mhotpatch=.
867 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
868 prototype.
869 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
870 function label generation for hotpatching.
871 (FUNCTION_BOUNDARY): Align functions to eight bytes.
872 * doc/extend.texi: Document hotpatch attribute.
873 * doc/invoke.texi: Document -mhotpatch option.
874
875 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
876
877 * config/i386/i386.c: Include cfgloop.h.
878 (ix86_loop_memcount): New function.
879 (ix86_loop_unroll_adjust): New function.
880 (TARGET_LOOP_UNROLL_ADJUST): Define.
881 * config/i386/i386.h
882 (TARGET_ADJUST_UNROLL): Define.
883 * config/i386/x86-tune.def
884 (X86_TUNE_ADJUST_UNROLL): Define.
885
886 2013-12-19 Marek Polacek <polacek@redhat.com>
887
888 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
889 variable alg. Use index variable i directly.
890
891 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
892
893 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
894 for all types.
895
896 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
897
898 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
899 Consider TARGET_CPU_DEFAULT settings.
900
901 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
902
903 * config/aarch64/aarch64-cores.def: Add support for
904 -mcpu=cortex-a57.cortex-a53.
905 * config/aarch64/aarch64-tune.md: Regenerate.
906 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
907
908 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
909
910 * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
911 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
912 * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
913 (aarch64_parse_cpu): mcpu implies a default value for mtune.
914 * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
915
916 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
917
918 * common/config/aarch64/aarch64-common.c
919 (aarch64_rewrite_selected_cpu): New.
920 (aarch64_rewrite_mcpu): New.
921 * config/aarch64/aarch64-protos.h
922 (aarch64_rewrite_selected_cpu): New.
923 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
924 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
925 (ASM_CPU_SPEC): Likewise.
926 (EXTRA_SPEC_FUNCTIONS): Likewise.
927 (EXTRA_SPECS): Likewise.
928 (ASM_SPEC): Likewise.
929 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
930 CPU name.
931
932 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
933
934 * omp-low.c (simd_clone_clauses_extract): Replaced the string
935 "cilk simd elemental" with "cilk simd function."
936 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
937 Removed a carriage-return from a warning string.
938
939 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
940
941 * passes.c (execute_function_dump): Set graph_dump_initialized
942 appropriately.
943 (pass_init_dump_file): Similarly.
944 (execute_one_pass): Pass new argument to do_per_function.
945 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
946
947 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
948
949 * doc/tree-ssa.texi (SSA Operands): Remove reference to
950 SSA_OP_VMAYUSE.
951 Synchronize SSA_OP* definitions with source.
952 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
953 Add not to SSA_OP* macro definitions.
954
955 2013-12-18 Jakub Jelinek <jakub@redhat.com>
956
957 PR target/59539
958 * config/i386/sse.md
959 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
960 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
961 prefix existing define_insn names with *.
962
963 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
964
965 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
966
967 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
968 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
969
970 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
971 cortex-a57, cortex-a57.cortex-a53.
972
973 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
974
975 PR debug/59418
976 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
977 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
978 (dwarf2out_frame_debug_expr): Tidy.
979
980 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
981 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
982 Sergey Lega <sergey.s.lega@intel.com>
983 Anna Tikhonova <anna.tikhonova@intel.com>
984 Ilya Tocar <ilya.tocar@intel.com>
985 Andrey Turetskiy <andrey.turetskiy@intel.com>
986 Ilya Verbin <ilya.verbin@intel.com>
987 Kirill Yukhin <kirill.yukhin@intel.com>
988 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
989
990 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
991 (*fma_fmsub_<mode>): Ditto.
992 (*fma_fnmadd_<mode>): Ditto.
993 (*fma_fnmsub_<mode>): Ditto.
994 (*fma_fmaddsub_<mode>): Ditto.
995 (*fma_fmsubadd_<mode>): Ditto.
996 (avx512f_vternlog<mode>): Ditto.
997 (avx512f_fixupimm<mode>): Ditto.
998 (avx512f_sfixupimm<mode>): Ditto.
999 (avx512f_vpermi2var<mode>3): Ditto.
1000 (avx512f_vpermt2var<mode>3): Ditto.
1001 (avx512f_fmaddsub_<mode>_maskz): New.
1002 (avx512f_vternlog<mode>_maskz): Ditto.
1003 (avx512f_fixupimm<mode>_maskz): Ditto.
1004 (avx512f_sfixupimm<mode>_maskz): Ditto.
1005 (avx512f_vpermi2var<mode>3_maskz): Ditto.
1006 (avx512f_vpermt2var<mode>3_maskz): Ditto.
1007 (avx512f_expand<mode>_maskz): Ditto.
1008 * config/i386/subst.md (sd_maskz_name): Ditto.
1009 (sd_mask_op4): Ditto.
1010 (sd_mask_op5): Ditto.
1011 (sd_mask_codefor): Ditto.
1012 (sd_mask_mode512bit_condition): Ditto.
1013 (sd): Ditto.
1014
1015 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1016 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1017 Sergey Lega <sergey.s.lega@intel.com>
1018 Anna Tikhonova <anna.tikhonova@intel.com>
1019 Ilya Tocar <ilya.tocar@intel.com>
1020 Andrey Turetskiy <andrey.turetskiy@intel.com>
1021 Ilya Verbin <ilya.verbin@intel.com>
1022 Kirill Yukhin <kirill.yukhin@intel.com>
1023 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1024
1025 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
1026 (avx512f_ucmp<mode>3): Ditto.
1027 (avx512f_eq<mode>3): Ditto.
1028 (avx512f_gt<mode>3): Ditto.
1029 (avx512f_testm<mode>3): Ditto.
1030 (avx512f_testnm<mode>3): Ditto.
1031 * config/i386/subst.md (SUBST_S): New.
1032 (mask_scalar_merge_name): Ditto.
1033 (mask_scalar_merge_operand3): Ditto.
1034 (mask_scalar_merge_operand4): Ditto.
1035 (mask_scalar_merge): Ditto.
1036
1037 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1038
1039 PR middle-end/35545
1040 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
1041 OBJ_TYPE_REF.
1042 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
1043
1044 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1045
1046 PR middle-end/35545
1047 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
1048
1049 2013-12-17 Teresa Johnson <tejohnson@google.com>
1050
1051 PR gcov-profile/59527
1052 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
1053 branch, which can't be eliminated.
1054
1055 2013-12-18 Martin Liska <marxin.liska@gmail.com>
1056 Jan Hubicka <jh@suse.cz>
1057
1058 * cgraphunit.c (node_cmp): New function.
1059 (expand_all_functions): Function ordering added.
1060 * common.opt: New profile based function reordering flag introduced.
1061 * lto-partition.c: Support for time profile added.
1062 * lto.c: Likewise.
1063 * predict.c (handle_missing_profiles): Time profile handled in
1064 missing profiles.
1065
1066 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1067
1068 PR tree-optimization/59523
1069 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
1070 on updated stmts.
1071
1072 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
1073
1074 * ipa-inline.c (gate_ipa_inline): Remove.
1075 (const pass_data pass_data_ipa_inline): Unset has_gate.
1076 (class pass_ipa_inline): Remove gate() method.
1077
1078 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1079
1080 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
1081 in contains_type_p query.
1082
1083 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
1084
1085 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
1086
1087 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
1088 declaration.
1089
1090 * omp-low.c: Remove leftover comment.
1091
1092 * omp-low.c (check_combined_parallel): Reflect reality in comment.
1093
1094 * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
1095 * doc/passes.texi (Pass manager): Refer to passes.def.
1096
1097 * doc/gccint.texi (Top): Fix inclusion order.
1098
1099 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1100
1101 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
1102 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
1103 * config/arm/arm.md (generic_vfp): Remove cortexa12.
1104
1105 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1106
1107 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
1108 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
1109 * config/arm/arm-tables.opt: Regenerate.
1110 * config/arm/arm-tune.md: Regenerate.
1111 * config/arm/bpabi.h
1112 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
1113
1114 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1115
1116 * config/arm/arm-cores.def (cortex-a57): New.
1117 * doc/invoke.texi: Document -mcpu=cortex-a57.
1118 * config/arm/arm-tables.opt: Regenerate.
1119 * config/arm/arm-tune.md: Regenerate.
1120 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
1121
1122 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1123
1124 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
1125 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
1126 * config/arm/arm-tables.opt: Regenerate.
1127 * config/arm/arm-tune.md: Regenerate.
1128 * config/arm/bpabi.h
1129 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
1130
1131 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1132
1133 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
1134 * config/arm/genopt.sh: Improve layout.
1135 * config/arm/arm-tune.md: Regenerate.
1136 * config/arm/arm-tables.opt: Regenerate.
1137 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
1138 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
1139 (arm_option_override): When a CPU is chosen, that should also
1140 form the tune target.
1141 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
1142
1143 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1144
1145 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1146 (arm_rewrite_mcpu): Likewise.
1147 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1148 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1149 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1150 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1151 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1152 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1153
1154 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
1155
1156 * expmed.c (lowpart_bit_field_p): Fix comment.
1157 (store_bit_field_using_insv): Fix formatting.
1158 (store_bit_field): Likewise.
1159 (store_fixed_bit_field): More declaration and remove return.
1160 (store_fixed_bit_field_1): Fix formatting.
1161 (extract_fixed_bit_field): Move declaration.
1162 (extract_fixed_bit_field_1): Simplify.
1163
1164 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1165
1166 * ipa-utils.h (possible_polymorphic_call_targets): Determine
1167 context of the call.
1168 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1169
1170 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1171
1172 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1173 instead of x as last gen_lowpart argument.
1174
1175 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1176
1177 * predict.h (PROB_LIKELY): Fix the value.
1178 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1179 for overflow checking for modes without 2xwider supported mode,
1180 if the mode has 2xnarrower mode.
1181
1182 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1183 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1184 try to improve generated code if one of the arguments is constant
1185 or get_range_info says that one of the argument is always
1186 negative or always non-negative.
1187 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1188 (simplify_stmt_using_ranges): Call it.
1189
1190 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
1191
1192 PR rtl-optimization/59466
1193 * emit-rtl.c (change_address_1): Don't validate address for LRA.
1194 * recog.c (general_operand): Accept any memory for LRA.
1195 * lra.c (lra_set_insn_recog_data): Add an assert.
1196
1197 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1198
1199 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1200
1201 2013-12-14 Jan Hubicka <jh@suse.cz>
1202 Markus Trippelsdorf <octoploid@yandex.com>
1203
1204 PR ipa/59265
1205 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1206 call is already devirtualized.
1207
1208 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1209
1210 * Makefile.in (version.o): Restore dependencies on
1211 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1212
1213 2013-12-14 Jan Hubicka <jh@suse.cz>
1214
1215 PR ipa/59473
1216 * ipa-devirt.c (get_class_context): Do not ICE when type is found
1217 at wrong offset.
1218
1219 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR libgomp/58756
1222 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1223 reductions without placeholder if is_simd, but when not using
1224 GOMP_SIMD* internal calls, also perform the reduction operation
1225 on the outer var rather than simple assignment.
1226
1227 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1228
1229 PR middle-end/58956
1230 PR middle-end/59470
1231 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1232 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1233 for callback params.
1234 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1235 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
1236 calls to supply the gimple operand containing the base tree
1237 as an extra argument.
1238 * tree-ssa-ter.c: Include gimple-walk.h.
1239 (find_ssaname, find_ssaname_in_store): New helper functions.
1240 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1241 same_root_var if USE is used somewhere in the stores of the stmt.
1242 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1243 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1244 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1245 check_ipa_store): Likewise.
1246 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1247 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1248 (verify_non_ssa_vars, visit_bb): Adjust their callers.
1249 * cfgexpand.c (add_scope_conflicts_1): Use
1250 walk_stmt_load_store_addr_fn type for visit variable.
1251 (visit_op, visit_conflict): Remove name of the stmt
1252 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1253 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
1254 argument and ATTRIBUTE_UNUSED.
1255 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1256 unnamed tree argument.
1257 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
1258 ATTRIBUTE_UNUSED from stmt parameter.
1259
1260 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
1261
1262 * opts-common.c (integral_argument): Add support for
1263 hexadecimal command option integer arguments. Update comments.
1264
1265 2013-12-14 Jan Hubicka <jh@suse.cz>
1266
1267 PR ipa/59265
1268 * ipa-prop.c (ipa_analyze_call_uses): Skip already
1269 devirtualized calls.
1270
1271 2013-12-14 Jan Hubicka <jh@suse.cz>
1272
1273 PR middle-end/58477
1274 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1275
1276 2013-12-14 Jan Hubicka <jh@suse.cz>
1277
1278 PR middle-end/58477
1279 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1280
1281 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
1282
1283 PR target/59492
1284 * config/i386/i386.c (ix86_function_specific_restore): Don't
1285 change -fPIC.
1286
1287 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
1288
1289 * var-tracking.c (add_stores): Fix oversight in latest commit.
1290
1291 2013-12-14 Marek Polacek <polacek@redhat.com>
1292
1293 PR sanitizer/59503
1294 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1295 expand_binop with correct optab depending on code.
1296
1297 2013-12-14 Tom de Vries <tom@codesourcery.com>
1298
1299 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1300
1301 2013-12-13 DJ Delorie <dj@redhat.com>
1302
1303 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1304
1305 * config/msp430/msp430.md (movqi): replace general_operand with
1306 msp_general_operand and nonimmediate_operand with
1307 msp_nonimmediate_operand to allow volatile operands.
1308 (movhi): Likewise.
1309 (movpsi): Likewise.
1310 (addpsi3): Likewise.
1311 (addhi3): Likewise.
1312 (addhi3_cy): Likewise.
1313 (addchi4_cy): Likewise.
1314 (xor<mode>3): Likewise.
1315 (ome_cmpl<mode>2): Likewise.
1316 (extendqihi2): Likewise.
1317 (zero_extendqihi2): Likewise.
1318 (zero_extendhipsi2): Likewise.
1319 (truncpsihi2): Likewise.
1320 (srai_1): Likewise.
1321
1322 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
1323
1324 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1325 * ira.c: Ditto.
1326 * lra-int.h (lra_init_equiv): New prototype.
1327 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1328 (loc_equivalence_callback): Use the 3rd arg.
1329 (lra_constraints): Update equivalences. Pass curr_insn to
1330 simplify_replace_fn_rtx.
1331 * lra.c (lra): Call lra_init_equiv.
1332
1333 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1334
1335 * genmodes.c (emit_max_int): Fixed missing parens.
1336
1337 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
1338
1339 PR tree-optimization/59149
1340 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1341 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1342 if no type or decl.
1343
1344 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1345
1346 * config/arc/arc.h (BITS_PER_UNIT): Removed.
1347 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1348 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1349 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1350 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1351 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1352 * config/spu/spu.h (BITS_PER_UNIT): Removed.
1353 * defaults.h (BITS_PER_UNIT): Removed.
1354 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1355 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1356 (MAX_BITSIZE_MODE_ANY_INT): Updated.
1357 * doc/tm.texi (BITS_PER_UNIT): Removed.
1358 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1359 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1360 (create_modes): Added code to set bits_per_unit and
1361 max_bitsize_mode_any_int.
1362 (emit_max_int): Changed code generation.
1363 * mkconfig.sh: Added insn-modes.h.
1364
1365 2013-12-13 Jeff Law <law@redhat.com>
1366
1367 PR tree-optimization/45685
1368 * tree-ssa-phiopt.c (neg_replacement): New function.
1369 (tree_ssa_phiopt_worker): Call it.
1370
1371 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1372
1373 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1374
1375 2013-12-13 Bin Cheng <bin.cheng@arm.com>
1376
1377 PR tree-optimization/58296
1378 PR tree-optimization/41488
1379 * tree-scalar-evolution.c: Include necessary header files.
1380 (simplify_peeled_chrec): New function.
1381 (analyze_evolution_in_loop): New static variable.
1382 Call simplify_peeled_chrec.
1383 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1384 (add_old_iv_candidates): Don't add candidate for peeled IV.
1385 * tree-affine.h (aff_combination_zero_p): New function.
1386
1387 2013-12-13 Nick Clifton <nickc@redhat.com>
1388
1389 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
1390 true if the current function has the wakeup attribute.
1391 (msp430_start_function): Note if the function has the wakeup
1392 attribute.
1393 (msp430_attribute_table): Add wakeup attribute.
1394 (msp430_expand_epilogue): Add support for wakeup functions.
1395 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1396 the DINT instruction.
1397 * doc/extend.texi: Document the wakeup attribute.
1398
1399 2013-12-13 Kai Tietz <kitetz@redhat.com>
1400
1401 PR c++/57897
1402 * config/i386/i386.c (ix86_option_override_internal): Set for
1403 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1404 was explicit set.
1405
1406 2013-12-12 Jeff Law <law@redhat.com>
1407
1408 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1409 for zero-extended MULT simple LEA pattern.
1410
1411 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
1412
1413 PR middle-end/59470
1414 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1415 values if necessary.
1416
1417 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1418
1419 PR libgomp/59467
1420 * gimplify.c (omp_check_private): Add copyprivate argument, if it
1421 is true, don't check omp_privatize_by_reference.
1422 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1423 decl is private in outer context. Adjust omp_check_private caller.
1424
1425 2013-12-11 Jeff Law <law@redhat.com>
1426
1427 PR rtl-optimization/59446
1428 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1429 test for crossing a loop header.
1430
1431 2013-12-11 Sriraman Tallam <tmsriram@google.com>
1432
1433 PR target/59390
1434 * config/i386/i386.c (get_builtin): New function.
1435 (ix86_builtin_vectorized_function): Replace all instances of
1436 ix86_builtins[...] with get_builtin(...).
1437 (ix86_builtin_reciprocal): Ditto.
1438
1439 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1440
1441 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1442 (lang_hooks_for_cilkplus): Remove.
1443 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1444 (lhd_install_body_with_frame_cleanup): Likewise.
1445 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1446 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1447 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1448 (LANG_HOOKS_CILKPLUS): Likewise.
1449 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1450 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1451 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1452 (gimplify_call_expr): Likewise.
1453
1454 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1455
1456 * expr.c (expand_assignment): Remove dependency on
1457 flag_strict_volatile_bitfields. Always set the memory access mode.
1458 (expand_expr_real_1): Likewise.
1459
1460 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1461
1462 PR middle-end/59134
1463 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1464 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1465 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
1466 to do the real work.
1467 (store_fixed_bit_field_1): New function.
1468 (store_split_bit_field): Limit the unit size to the memory mode size,
1469 to prevent recursion.
1470
1471 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1472 Sandra Loosemore <sandra@codesourcery.com>
1473
1474 PR middle-end/23623
1475 PR middle-end/48784
1476 PR middle-end/56341
1477 PR middle-end/56997
1478 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1479 and bitregion_end parameters. Test for compliance with C++
1480 memory model.
1481 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1482 Add fallback logic for cases where -fstrict-volatile-bitfields
1483 is supposed to apply, but cannot.
1484 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1485 extract_fixed_bit_field_1 to do the extraction.
1486 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1487 Call extract_fixed_bit_field_1 to do the real work.
1488 (extract_fixed_bit_field_1): New function.
1489
1490 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
1491
1492 PR middle-end/23623
1493 PR middle-end/48784
1494 PR middle-end/56341
1495 PR middle-end/56997
1496 * expmed.c (strict_volatile_bitfield_p): New function.
1497 (store_bit_field_1): Don't special-case strict volatile
1498 bitfields here.
1499 (store_bit_field): Handle strict volatile bitfields here instead.
1500 (store_fixed_bit_field): Don't special-case strict volatile
1501 bitfields here.
1502 (extract_bit_field_1): Don't special-case strict volatile
1503 bitfields here.
1504 (extract_bit_field): Handle strict volatile bitfields here instead.
1505 (extract_fixed_bit_field): Don't special-case strict volatile
1506 bitfields here. Simplify surrounding code to resemble that in
1507 store_fixed_bit_field.
1508 * doc/invoke.texi (Code Gen Options): Update
1509 -fstrict-volatile-bitfields description.
1510
1511 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1512
1513 * configure.ac: Add check for aarch64 assembler -mabi support.
1514 * configure: Regenerate.
1515 * config.in: Regenerate.
1516 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1517 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1518 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1519 if assembler does not support -mabi and option ilp32 is selected.
1520 * doc/install.texi: Added note that building gcc 4.9 and after
1521 with pre 2.24 binutils will not support -mabi=ilp32.
1522
1523 2013-12-11 Marek Polacek <polacek@redhat.com>
1524
1525 PR sanitizer/59399
1526 * expr.c (expand_expr_real_1): Remove assert dealing with
1527 internal calls and turn that into a condition instead.
1528
1529 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
1530
1531 * config/arm/arm.opt (mlra): Enable LRA by default.
1532
1533 2013-12-11 Jakub Jelinek <jakub@redhat.com>
1534
1535 PR tree-optimization/59417
1536 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1537 in a different bb rhan var, only duplicate points-to info and
1538 not alignment info and don't duplicate range info.
1539 * tree-ssa-loop-niter.c (determine_value_range): Instead of
1540 assertion failure handle inconsistencies in range info by only
1541 using var's range info and not PHI result range infos.
1542
1543 PR tree-optimization/59386
1544 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1545 unshare_expr (id->retval) before passing it to gimple_build_assign.
1546
1547 2013-12-11 Bin Cheng <bin.cheng@arm.com>
1548
1549 Reverted:
1550 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1551 PR tree-optimization/41488
1552 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1553 for PEELED_CHREC kind IV.
1554 * tree-scalar-evolution.c: Include necessary header files.
1555 (peeled_chrec_map, simplify_peeled_chrec): New.
1556 (analyze_evolution_in_loop): New static variable.
1557 Call simplify_peeled_chrec.
1558 (scev_initialize): Initialize peeled_chrec_map.
1559 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1560
1561 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1562
1563 PR target/59458
1564 * config/i386/i386.md (*movsf_internal): Set mode to SI for
1565 alternative 13.
1566
1567 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1568
1569 PR rtl-optimization/58295
1570 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1571 WORD_REGISTER_OPERATIONS targets.
1572
1573 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1574
1575 * genrecog.c (validate_pattern): Treat all messages except missing
1576 modes as errors.
1577 * config/epiphany/epiphany.md: Remove constraints from
1578 define_peephole2s.
1579 * config/h8300/h8300.md: Remove constraints from define_splits.
1580 * config/msp430/msp430.md: Likewise.
1581 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1582 nonimmediate_operand rather than general_operand for operand 0.
1583 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1584 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1585 Use match_operator rather than match_test to invoke general_operand.
1586 * config/v850/v850.md (*movqi_internal, *movhi_internal)
1587 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1588
1589 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1590
1591 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1592 register_operand rather than pointer_operand. Add modes to the
1593 operands.
1594 (insn_ldna_add<bitsuffix>): Likewise.
1595 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1596 (insn_ldnt_add<bitsuffix>): Likewise.
1597 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1598 (insn_ld_add_L2<bitsuffix>): Likewise.
1599 (insn_ldna_add_L2<bitsuffix>): Likewise.
1600 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1601 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1602 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1603 (insn_ld_add_miss<bitsuffix>): Likewise.
1604 (insn_ldna_add_miss<bitsuffix>): Likewise.
1605 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1606 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1607 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1608 (insn_st_add<bitsuffix>): Likewise.
1609 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1610 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1611 (insn_stnt_add<bitsuffix>): Likewise.
1612 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1613 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1614 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1615 reg_or_0_operand for operand 0.
1616 (insn_v2<pack_insn>): Likewise.
1617 (vec_pack_hipart_v4hi): Likewise.
1618 (insn_v2packh): Likewise.
1619 (vec_pack_ssat_v2si): Likewise.
1620 (insn_v4packsc): Likewise.
1621
1622 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1623
1624 * basic-block.h (gcov_working_set_t): Put back typedef.
1625 * gcov-io.h (gcov_bucket_type): Likewise.
1626 (gcov_working_set_info, gcov_working_set_t): Likewise.
1627
1628 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1629
1630 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1631 Remove typedef.
1632 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1633 rename to cgraph_inline_failed_t.
1634 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1635 to ao_ref.
1636 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1637 to reg_equivs_t.
1638 * conditions.h (CC_STATUS): Remove typedef.
1639 * bitmap.h (bitmap_obstack): Remove typedef.
1640 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1641 bitmap_element.
1642 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1643 bitmap_head.
1644 (bitmap_iterator): Remove typedef.
1645 * target.h (cumulative_args_t, print_switch_type,
1646 secondary_reload_info): Remove typedef.
1647 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1648 dw_cfi_oprnd_struct alias.
1649 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1650 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1651 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1652 dw_cfa_location.
1653 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1654 dw_vec_const.
1655 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1656 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1657 dw_loc_descr_node.
1658 * params.h (param_info, compiler_param): Remove typedef.
1659 * opts.h (cl_deferred_param): Remove typedef.
1660 * sreal.h (sreal): Remove typedef.
1661 * ddg.h (dep_type, dep_data_type): Remove typedef.
1662 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1663 typedef.
1664 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1665 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1666 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1667 and rename to aff_tree.
1668 * sched-int.h (region): Remove typedef.
1669 * diagnostic.h (diagnostic_info,
1670 diagnostic_classification_change_t): Remove typedef.
1671 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1672 affine_iv.
1673 * sbitmap.h (sbitmap_iterator): Remove typedef.
1674 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1675 Remove typedef and rename to imm_use_iterator.
1676 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1677 ssa_op_iter.
1678 * ggc-internal.h (ggc_statistics): Remove typedef.
1679 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1680 rename to cselib_val.
1681 * tree-core.h (alias_pair): Remove typedef.
1682 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1683 constructor_elt.
1684 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1685 ssa_use_operand_t.
1686 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1687 * tree-data-ref.h (conflict_function): Remove typedef.
1688 * tree-inline.h (copy_body_data): Remove typedef.
1689 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1690 edge_growth_cache_entry): Remove typedef.
1691 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1692 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1693 Remove typedef and rename to gimple_stmt_iterator.
1694 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1695 rename to ce_if_block.
1696 (edge_iterator): Remove typedef.
1697 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1698 and rename to ipa_agg_jf_item.
1699 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1700 ipa_parm_adjustment_t): Remove typedef.
1701 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1702 ipa_jump_func.
1703 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1704 ipa_edge_args.
1705 * gcov-io.h (gcov_bucket_type): Remove typedef.
1706 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1707 to gcov_working_set_t.
1708 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1709 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1710 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1711 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1712 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1713 replace_label_data): Remove typedef.
1714 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1715 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1716 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1717 sel_region_bb_info_def, succ_iterator): Remove typedef.
1718 (deps_where_def, deps_where_t): Remove typedef and rename to
1719 deps_where_t.
1720 * coretypes.h: Adapt forward declarations.
1721 * tree-scalar-evolution.h: Likewise.
1722 * tree-ssa-address.h: Likewise.
1723 * tree-ssa-operands.h: Likewise.
1724 * function.h: Likewise.
1725 * config/frv/frv-protos.h: Likewise.
1726 * targhooks.h: Likewise.
1727 * basic_block.h: Likewise.
1728 * rtl.def: Adapt documentation.
1729 * doc/tm.texi: Likewise.
1730 * ipa-cp.c: Adapt uses.
1731 * bitmap.c: Likewise.
1732 * dwarf2out.c: Likewise.
1733 * target.def: Likewise.
1734 * ipa-inline-analysis.c: Likewise.
1735 * dwarf2cfi.c: Likewise.
1736 * tree-ssa-loop-ivopts.c: Likewise.
1737 * lto-cgraph.c: Likewise.
1738 * config/frv/frv.c: Likewise.
1739 * ifcvt.c: Likewise.
1740 * ipa-prop.c: Likewise.
1741
1742 2013-12-10 Kai Tietz <ktietz@redhat.com>
1743
1744 PR target/56807
1745 * config/i386/i386.c (ix86_expand_prologue): Address saved
1746 registers stack-relative, not via frame-pointer.
1747
1748 2013-12-10 Richard Biener <rguenther@suse.de>
1749
1750 PR middle-end/38474
1751 * tree-ssa-structalias.c (solution_set_expand): Expand into
1752 a different possibly cached bitmap and return the result.
1753 (set_union_with_increment): Pass in a shared expanded bitmap
1754 and adjust.
1755 (do_sd_constraint): Likewise.
1756 (do_ds_constraint): Likewise.
1757 (do_complex_constraint): Likewise.
1758 (solve_graph): Manage the shared expanded bitmap.
1759
1760 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1761
1762 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1763 (LOOP_VINFO_SCALAR_LOOP): Define.
1764 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1765 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1766 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1767 MASK_STORE.
1768 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1769 internal fns.
1770 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1771 tree-ssa-address.h.
1772 (release_bb_predicate): New function.
1773 (free_bb_predicate): Use it.
1774 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1775 just to immediately allocate it again.
1776 (add_to_predicate_list): Add loop argument. If basic blocks that
1777 dominate loop->latch don't insert any predicate.
1778 (add_to_dst_predicate_list): Adjust caller.
1779 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1780 handle it like flag_tree_loop_if_convert_stores.
1781 (insert_gimplified_predicates): Likewise.
1782 (ifcvt_can_use_mask_load_store): New function.
1783 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1784 argument, check if some conditional loads or stores can't be
1785 converted into MASK_LOAD or MASK_STORE.
1786 (if_convertible_stmt_p): Add any_mask_load_store argument,
1787 pass it down to if_convertible_gimple_assign_stmt_p.
1788 (predicate_bbs): Don't return bool, only check if the last stmt
1789 of a basic block is GIMPLE_COND and handle that. Adjust
1790 add_to_predicate_list caller.
1791 (if_convertible_loop_p_1): Only call predicate_bbs if
1792 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1793 afterwards, check gimple_code of stmts here. Replace is_predicated
1794 check with dominance check. Add any_mask_load_store argument,
1795 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1796 call if_convertible_phi_p only after all if_convertible_stmt_p calls.
1797 (if_convertible_loop_p): Add any_mask_load_store argument,
1798 pass it down to if_convertible_loop_p_1.
1799 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1800 (combine_blocks): Add any_mask_load_store argument, pass
1801 it down to insert_gimplified_predicates and call predicate_mem_writes
1802 if it is set. Call predicate_bbs.
1803 (version_loop_for_if_conversion): New function.
1804 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1805 calls. Return todo flags instead of bool, call
1806 version_loop_for_if_conversion if if-conversion should be just
1807 for the vectorized loops and nothing else.
1808 (main_tree_if_conversion): Adjust caller. Don't call
1809 tree_if_conversion for dont_vectorize loops if if-conversion
1810 isn't explicitly enabled.
1811 * tree-vect-data-refs.c (vect_check_gather): Handle
1812 MASK_LOAD/MASK_STORE.
1813 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1814 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1815 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1816 expand_MASK_STORE): New functions.
1817 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1818 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1819 (vectorize_loops): Don't try to vectorize loops with
1820 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1821 loops, fold LOOP_VECTORIZED internal call depending on if loop
1822 has been vectorized or not.
1823 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1824 New function.
1825 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1826 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1827 still to loop's entry or exit edge.
1828 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1829 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1830 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1831 Adjust callers.
1832 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1833 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1834 right place in the CFG afterwards.
1835 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1836 MASK_STORE.
1837 * cfgloop.h (struct loop): Add dont_vectorize field.
1838 * tree-loop-distribution.c (copy_loop_before): Adjust
1839 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1840 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1841 * passes.def: Add a note that pass_vectorize must immediately follow
1842 pass_if_conversion.
1843 * tree-predcom.c (split_data_refs_to_components): Give up if
1844 DR_STMT is a call.
1845 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
1846 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1847 and MASK_STORE.
1848 (vectorizable_mask_load_store): New function.
1849 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1850 (vect_transform_stmt): Handle MASK_STORE.
1851 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1852 DR_STMT where lhs is NULL.
1853 * optabs.h (can_vec_perm_p): Fix up comment typo.
1854 (can_vec_mask_load_store_p): New prototype.
1855 * optabs.c (can_vec_mask_load_store_p): New function.
1856
1857 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1858
1859 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1860 the extraction of a bit-field of null size.
1861
1862 2013-12-10 Marek Polacek <polacek@redhat.com>
1863
1864 PR sanitizer/59437
1865 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1866 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1867 instead of gimple_code.
1868
1869 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1870
1871 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1872 Add android definitions.
1873 (s390x-*-linux*): Use linux-protos.h.
1874
1875 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1876
1877 PR tree-optimization/41488
1878 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1879 for PEELED_CHREC kind IV.
1880 * tree-scalar-evolution.c: Include necessary header files.
1881 (peeled_chrec_map, simplify_peeled_chrec): New.
1882 (analyze_evolution_in_loop): New static variable.
1883 Call simplify_peeled_chrec.
1884 (scev_initialize): Initialize peeled_chrec_map.
1885 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1886
1887 2013-12-09 Andrew Pinski <apinski@cavium.com>
1888
1889 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1890 that options are conflicting ones.
1891
1892 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1893
1894 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1895
1896 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1897
1898 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1899
1900 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1901 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1902
1903 * cfganal.c (inverted_post_order_compute): Likewise.
1904 * cfgcleanup.c (try_optimize_cfg): Likewise.
1905 * cfgexpand.c (add_scope_conflicts): Likewise.
1906 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1907 * cfgrtl.c (relink_block_chain): Likewise.
1908 * dce.c (mark_artificial_uses): Likewise.
1909 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1910 * df-problems.c (df_lr_verify_solution_start,
1911 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1912 df_live_verify_solution_start, df_live_verify_solution_end,
1913 df_live_set_all_dirty, df_live_verify_transfer_functions,
1914 df_md_local_comput): Likewise.
1915 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1916 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1917 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1918 free_dominance_info): Likewise.
1919 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1920 * graph.c (draw_cfg_edges): Likewise.
1921 * graphite-scop-detection.c (print_graphite_scop_statistics,
1922 dot_all_scops_1): Likewise.
1923 * graphite.c (print_global_statistics,
1924 print_graphite_scop_statistics): Likewise.
1925 * ira.c (do_reload): Likewise.
1926 * loop-init.c (loop_optimizer_finalize): Likewise.
1927 * lto-streamer-in.c (input_function): Likewise.
1928 * lto-streamer-out.c (output_function): Likewise.
1929 * mcf.c (adjust_cfg_counts): Likewise.
1930 * predict.c (estimate_loops): Likewise.
1931 * sched-rgn.c (haifa_find_rgns): Likewise.
1932 * tree-cfg.c (split_critical_edges): Likewise.
1933 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1934 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1935 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1936 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1937 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1938 * vtable-verify.c (vtable_verify_main): Likewise.
1939 * web.c (web_main): Likewise.
1940
1941 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1942
1943 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1944
1945 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1946 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1947 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1948 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1949 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1950 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1951 * config/sh/sh.c (sh_md_init_global): Likewise.
1952 * config/sh/sh_optimize_sett_clrt.cc
1953 (sh_optimize_sett_clrt::execute): Likewise.
1954 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1955 Likewise.
1956 * dominance.c (calc_dfs_tree): Likewise.
1957 * final.c (final): Likewise.
1958 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1959 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1960 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1961 * lcm.c (compute_antinout_edge): Likewise.
1962 * mode-switching.c (optimize_mode_switching): Likewise.
1963 * postreload.c (reload_combine): Likewise.
1964 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1965 * tree-ssa-live.c (live_worklist): Likewise.
1966
1967 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1968
1969 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1970
1971 * asan.c (transform_statements, execute_sanopt): Eliminate
1972 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1973 explicit.
1974 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1975 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1976 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1977 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1978 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1979 duplicate_computed_gotos): Likewise.
1980 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1981 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1982 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1983 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1984 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1985 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1986 Likewise.
1987 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1988 verify_loop_structure): Likewise.
1989 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1990 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1991 verify_hot_cold_block_grouping, purge_all_dead_edges,
1992 fixup_abnormal_edges, record_effective_endpoints,
1993 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1994 break_superblocks): Likewise.
1995 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1996 cgraph_rebuild_references): Likewise.
1997 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1998 * combine.c (delete_noop_moves, create_log_links,
1999 combine_instructions): Likewise.
2000 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
2001 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
2002 Likewise.
2003 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
2004 c6x_reorg): Likewise.
2005 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2006 * config/frv/frv.c (frv_optimize_membar): Likewise.
2007 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2008 * config/ia64/ia64.c (ia64_reorg): Likewise.
2009 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
2010 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
2011 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
2012 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2013 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
2014 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2015 * config/tilegx/tilegx.c (tilegx_gen_bundles,
2016 reorder_var_tracking_notes): Likewise.
2017 * config/tilepro/tilepro.c (tilepro_gen_bundles,
2018 reorder_var_tracking_notes): Likewise.
2019 * coverage.c (coverage_compute_cfg_checksum): Likewise.
2020 * cprop.c (compute_hash_table_work, compute_cprop_data,
2021 local_cprop_pass, find_implicit_sets): Likewise.
2022 * cse.c (cse_condition_code_reg): Likewise.
2023 * dce.c (prescan_insns_for_dce): Likewise.
2024 * df-core.c (df_compact_blocks): Likewise.
2025 * df-problems.c (df_word_lr_alloc): Likewise.
2026 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
2027 df_update_entry_exit_and_calls): Likewise.
2028 * dominance.c (calculate_dominance_info, verify_dominators,
2029 debug_dominance_info): Likewise.
2030 * dse.c (dse_step5_nospill): Likewise.
2031 * except.c (finish_eh_generation): Likewise.
2032 * final.c (compute_alignments): Likewise.
2033 * function.c (thread_prologue_and_epilogue_insns,
2034 rest_of_match_asm_constraints): Likewise.
2035 * gcse.c (compute_hash_table_work, prune_expressions,
2036 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
2037 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
2038 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2039 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
2040 find_explicit_erroneous_behaviour): Likewise.
2041 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
2042 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
2043 * haifa-sched.c (haifa_sched_init): Likewise.
2044 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
2045 Likewise.
2046 * ifcvt.c (if_convert): Likewise.
2047 * init-regs.c (initialize_uninitialized_regs): Likewise.
2048 * ipa-prop.c (ipcp_transform_function): Likewise.
2049 * ipa-pure-const.c (analyze_function): Likewise.
2050 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
2051 * ira-build.c (form_loop_tree): Likewise.
2052 * ira-costs.c (find_costs_and_classes): Likewise.
2053 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
2054 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
2055 mark_elimination, update_equiv_regs, find_moveable_pseudos,
2056 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
2057 * jump.c (mark_all_labels): Likewise.
2058 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
2059 compute_nearerout, compute_rev_insert_delete): Likewise.
2060 * loop-init.c (fix_loop_structure): Likewise.
2061 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2062 * lower-subreg.c (decompose_multiword_subregs,
2063 decompose_multiword_subregs): Likewise.
2064 * lra-assigns.c (assign_by_spills): Likewise.
2065 * lra-coalesce.c (lra_coalesce): Likewise.
2066 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
2067 Likewise.
2068 * lra-eliminations.c (lra_init_elimination): Likewise.
2069 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
2070 lra_final_code_change): Likewise.
2071 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
2072 update_inc_notes): Likewise.
2073 * mcf.c (adjust_cfg_counts): Likewise.
2074 * mode-switching.c (optimize_mode_switching): Likewise.
2075 * modulo-sched.c (rest_of_handle_sms): Likewise.
2076 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
2077 expand_omp_target): Likewise.
2078 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
2079 * postreload.c (reload_cse_regs_1): Likewise.
2080 * predict.c (strip_predict_hints, tree_bb_level_predictions,
2081 tree_estimate_probability, expensive_function_p,
2082 estimate_bb_frequencies, compute_function_frequency): Likewise.
2083 * profile.c (is_inconsistent, compute_branch_probabilities,
2084 branch_prob): Likewise.
2085 * ree.c (find_removable_extensions): Likewise.
2086 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
2087 * regcprop.c (copyprop_hardreg_forward): Likewise.
2088 * reginfo.c (init_subregs_of_mode): Likewise.
2089 * regrename.c (regrename_analyze): Likewise.
2090 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
2091 Likewise.
2092 * reload1.c (has_nonexceptional_receiver, reload,
2093 calculate_elim_costs_all_insns): Likewise.
2094 * resource.c (init_resource_info, free_resource_info): Likewise.
2095 * sched-ebb.c (schedule_ebbs): Likewise.
2096 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
2097 haifa_find_rgns, sched_rgn_local_init): Likewise.
2098 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
2099 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
2100 make_regions_from_the_rest): Likewise.
2101 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
2102 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
2103 * store-motion.c (compute_store_table, build_store_vectors,
2104 one_store_motion_pass): Likewise.
2105 * tracer.c (tail_duplicate): Likewise.
2106 * trans-mem.c (compute_transaction_bits): Likewise.
2107 * tree-call-cdce.c (tree_call_cdce): Likewise.
2108 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
2109 fold_cond_expr_cond, make_edges, assign_discriminators,
2110 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
2111 dump_cfg_stats, gimple_verify_flow_info, print_loop,
2112 execute_fixup_cfg): Likewise.
2113 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
2114 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
2115 Likewise.
2116 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
2117 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
2118 mark_reachable_handlers): Likewise.
2119 * tree-emutls.c (lower_emutls_function_body): Likewise.
2120 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2121 * tree-inline.c (optimize_inline_calls): Likewise.
2122 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
2123 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
2124 * tree-object-size.c (compute_object_sizes): Likewise.
2125 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
2126 insert_backedge_copies, tree_profiling): Likewise.
2127 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2128 * tree-sra.c (scan_function, sra_modify_function_body,
2129 propagate_dereference_distances, ipa_sra_modify_function_body,
2130 convert_callers): Likewise.
2131 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
2132 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2133 create_outofssa_var_map, coalesce_partitions): Likewise.
2134 * tree-ssa-copy.c (init_copy_prop): Likewise.
2135 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2136 * tree-ssa-dce.c (find_obviously_necessary_stmts,
2137 eliminate_unnecessary_stmts): Likewise.
2138 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
2139 Likewise.
2140 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2141 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
2142 new_tree_live_info, calculate_live_on_exit, dump_live_info,
2143 analyze_memory_references, fill_always_executed_in,
2144 tree_ssa_lim_finalize): Likewise.
2145 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2146 Likewise.
2147 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2148 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2149 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2150 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2151 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2152 Likewise.
2153 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2154 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2155 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2156 tree_ssa_uncprop): Likewise.
2157 * tree-ssa-uninit.c (warn_uninitialized_vars,
2158 execute_late_warn_uninitialized): Likewise.
2159 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2160 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2161 Likewise.
2162 * tree-switch-conversion.c (do_switchconv): Likewise.
2163 * tree-vect-generic.c (expand_vector_operations): Likewise.
2164 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2165 execute_vect_slp): Likewise.
2166 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2167 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2168 Likewise.
2169 * ubsan.c (ubsan_pass): Likewise.
2170 * value-prof.c (verify_histograms,
2171 gimple_value_profile_transformations, gimple_find_values_to_profile):
2172 Likewise.
2173 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2174 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2175
2176 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2177
2178 * basic-block.h (last_basic_block): Eliminate macro.
2179
2180 * asan.c (transform_statements): Eliminate use of last_basic_block
2181 in favor of last_basic_block_for_fn, in order to make use of cfun
2182 explicit.
2183 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2184 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2185 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2186 * cfg.c (compact_blocks): Likewise.
2187 * cfganal.c (mark_dfs_back_edges,
2188 control_dependences::control_dependences, post_order_compute,
2189 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2190 single_pred_before_succ_order): Likewise.
2191 * cfgbuild.c (make_edges): Likewise.
2192 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2193 * cfghooks.c (verify_flow_info): Likewise.
2194 * cfgloop.c (verify_loop_structure): Likewise.
2195 * cfgloopanal.c (just_once_each_iteration_p,
2196 mark_irreducible_loops): Likewise.
2197 * cfgloopmanip.c (fix_bb_placements, remove_path,
2198 update_dominators_in_loop): Likewise.
2199 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2200 break_superblocks, rtl_flow_call_edges_add): Likewise.
2201 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2202 * config/frv/frv.c (frv_optimize_membar): Likewise.
2203 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2204 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2205 * cprop.c (compute_local_properties, find_implicit_sets,
2206 bypass_conditional_jumps, one_cprop_pass): Likewise.
2207 * cse.c (cse_main): Likewise.
2208 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2209 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2210 * df-problems.c (df_lr_verify_solution_start,
2211 df_live_verify_solution_start, df_md_local_compute): Likewise.
2212 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2213 calc_idoms): Likewise.
2214 * domwalk.c (dom_walker::walk): Likewise.
2215 * dse.c (dse_step0, dse_step3): Likewise.
2216 * function.c (epilogue_done): Likewise.
2217 * gcse.c (alloc_gcse_mem, compute_local_properties,
2218 prune_insertions_deletions, compute_pre_data,
2219 pre_expr_reaches_here_p, one_pre_gcse_pass,
2220 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2221 one_code_hoisting_pass): Likewise.
2222 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2223 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2224 * haifa-sched.c (unlink_bb_notes): Likewise.
2225 * ipa-split.c (execute_split_functions): Likewise.
2226 * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2227 Likewise.
2228 * ira-emit.c (ira_emit): Likewise.
2229 * ira.c (find_moveable_pseudos, ira): Likewise.
2230 * lcm.c (compute_antinout_edge, compute_laterin,
2231 compute_insert_delete, pre_edge_lcm, compute_available,
2232 compute_nearerout, compute_rev_insert_delete,
2233 pre_edge_rev_lcm): Likewise.
2234 * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2235 Likewise.
2236 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2237 * lra-lives.c (lra_create_live_ranges): Likewise.
2238 * lra.c (lra): Likewise.
2239 * mode-switching.c (optimize_mode_switching): Likewise.
2240 * recog.c (split_all_insns): Likewise.
2241 * regcprop.c (copyprop_hardreg_forward): Likewise.
2242 * regrename.c (regrename_analyze): Likewise.
2243 * reload1.c (reload): Likewise.
2244 * resource.c (init_resource_info): Likewise.
2245 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2246 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2247 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2248 recompute_rev_top_order, sel_init_pipelining,
2249 make_regions_from_the_rest): Likewise.
2250 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2251 Likewise.
2252 * tracer.c (tail_duplicate): Likewise.
2253 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2254 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2255 gimple_flow_call_edges_add): Likewise.
2256 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2257 cleanup_tree_cfg_1): Likewise.
2258 * tree-complex.c (tree_lower_complex): Likewise.
2259 * tree-inline.c (copy_cfg_body): Likewise.
2260 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2261 prepare_def_site_for, update_ssa): Likewise.
2262 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2263 * tree-ssa-dom.c (record_edge_info): Likewise.
2264 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2265 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2266 * tree-ssa-loop-manip.c (copy_phi_node_args
2267 gimple_duplicate_loop_to_header_edge): Likewise.
2268 * tree-ssa-pre.c (compute_antic): Likewise.
2269 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2270 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2271 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2272 * tree-ssa-tail-merge.c (init_worklist): Likewise.
2273 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2274 * tree-stdarg.c (reachable_at_most_once): Likewise.
2275 * tree-vrp.c (find_assert_locations): Likewise.
2276 * var-tracking.c (vt_find_locations): Likewise.
2277
2278 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2279
2280 * basic-block.h (profile_status): Eliminate macro.
2281
2282 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2283 profile_status macro in favor of profile_status_for_fn, making
2284 use of cfun explicit.
2285 * cfghooks.c (account_profile_record): Likewise.
2286 * cfgloopanal.c (single_likely_exit):
2287 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2288 * graphite.c (graphite_finalize):
2289 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2290 ubsan_expand_si_overflow_neg_check,
2291 ubsan_expand_si_overflow_mul_check): Likewise.
2292 * ipa-split.c (consider_split, execute_split_functions):
2293 * loop-unroll.c (decide_peel_simple):
2294 * optabs.c (emit_cmp_and_jump_insn_1):
2295 * predict.c (maybe_hot_edge_p, probably_never_executed,
2296 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2297 tree_estimate_probability_driver, estimate_bb_frequencies,
2298 compute_function_frequency, rebuild_frequencies): Likewise.
2299 * profile.c (compute_branch_probabilities): Likewise.
2300 * tree-cfg.c (gimple_account_profile_record): Likewise.
2301 * tree-inline.c (optimize_inline_calls): Likewise.
2302
2303 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2304
2305 * basic-block.h (label_to_block_map): Eliminate macro.
2306
2307 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2308 uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2309 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2310 (verify_gimple_label): Likewise.
2311
2312 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2313
2314 * basic-block.h (basic_block_info): Eliminate macro.
2315
2316 * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2317 with basic_block_info_for_fn, making uses of cfun be explicit.
2318 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2319
2320 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2321
2322 * basic-block.h (BASIC_BLOCK): Eliminate macro.
2323
2324 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2325 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2326 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2327 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2328 * caller-save.c (insert_one_insn): Likewise.
2329 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2330 * cfgexpand.c (add_scope_conflicts): Likewise.
2331 * cfghooks.c (verify_flow_info): Likewise.
2332 * cfgloop.c (flow_loops_find): Likewise.
2333 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2334 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2335 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2336 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2337 * cse.c (cse_main): Likewise.
2338 * dce.c (fast_dce): Likewise.
2339 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2340 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2341 df_bb_replace, df_dump_region): Likewise.
2342 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2343 df_live_bb_local_compute, df_chain_remove_problem)
2344 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2345 df_md_bb_local_compute, df_md_local_compute,
2346 df_md_transfer_function): Likewise.
2347 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2348 df_reorganize_refs_by_insn, df_bb_refs_collect,
2349 df_record_entry_block_defs, df_update_entry_block_defs,
2350 df_record_exit_block_uses): Likewise.
2351 * dominance.c (nearest_common_dominator_for_set): Likewise.
2352 * gcse.c (hoist_code): Likewise.
2353 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2354 * ipa-inline-analysis.c (param_change_prob,
2355 estimate_function_body_sizes): Likewise.
2356 * ipa-split.c (dominated_by_forbidden): Likewise.
2357 * loop-unroll.c (apply_opt_in_copies): Likewise.
2358 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2359 * lra-lives.c (lra_create_live_ranges): Likewise.
2360 * predict.c (propagate_freq): Likewise.
2361 * regrename.c (regrename_analyze): Likewise.
2362 * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2363 Likewise.
2364 * resource.c (mark_target_live_regs): Likewise.
2365 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2366 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2367 * sched-rgn.c (debug_region, dump_region_dot, too_large,
2368 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2369 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2370 * sched-vis.c (debug_bb_n_slim): Likewise.
2371 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2372 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2373 * sel-sched.c (remove_insns_that_need_bookkeeping)
2374 (current_region_empty_p, sel_region_init, simplify_changed_insns):
2375 Likewise.
2376 * trans-mem.c (execute_tm_mark, execute_tm_edges,
2377 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2378 * tree-cfg.c (make_edges, end_recording_case_labels,
2379 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2380 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2381 gimple_purge_all_dead_eh_edges,
2382 gimple_purge_all_dead_abnormal_call_edges): Likewise.
2383 * tree-cfgcleanup.c (fixup_noreturn_call,
2384 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2385 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2386 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2387 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2388 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2389 * tree-ssa-live.c (live_worklist): Likewise.
2390 * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2391 find_uses_to_rename, copy_phi_node_args): Likewise.
2392 * tree-ssa-pre.c (compute_antic): Likewise.
2393 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2394 Likewise.
2395 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2396 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2397 same_succ_flush_bbs, update_worklist, set_cluster,
2398 same_phi_alternatives, find_clusters_1, apply_clusters,
2399 update_debug_stmts): Likewise.
2400 * tree-ssa-threadupdate.c (mark_threaded_blocks,
2401 thread_through_all_blocks): Likewise.
2402 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2403 * tree-vrp.c (find_assert_locations): Likewise.
2404
2405 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2406
2407 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2408
2409 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2410 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2411 (expunge_block): Likewise.
2412 * cfgrtl.c (create_basic_block_structure): Likewise.
2413 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2414 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2415 * tree-cfg.c (create_bb): Likewise.
2416
2417 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2418
2419 * basic-block.h (profile_status_for_function): Rename to...
2420 (profile_status_for_fn): ...this.
2421
2422 * cfg.c (check_bb_profile): Update for renaming.
2423 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2424 * lto-streamer-in.c (input_cfg): Likewise.
2425 * lto-streamer-out.c (output_cfg): Likewise.
2426 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2427 maybe_hot_bb_p, probably_never_executed)
2428 (handle_missing_profiles): Likewise.
2429 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2430 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2431
2432 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2433
2434 * basic-block.h (label_to_block_map_for_function): Rename to...
2435 (label_to_block_map_for_fn): ...this.
2436
2437 * lto-streamer-in.c (input_cfg): Update for renaming.
2438 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2439
2440 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2441
2442 * basic-block.h (last_basic_block_for_function): Rename to...
2443 (last_basic_block_for_fn): ...this.
2444
2445 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2446 last_basic_block_for_function to last_basic_block_for_fn.
2447 * lto-streamer-in.c (input_cfg): Likewise.
2448 * lto-streamer-out.c (output_cfg): Likewise.
2449 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2450 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2451 Likewise.
2452
2453 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2454
2455 * basic-block.h (basic_block_info_for_function): Rename to...
2456 (basic_block_info_for_fn): ...this.
2457 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2458 (BASIC_BLOCK_FOR_FN): ...this.
2459 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2460 (SET_BASIC_BLOCK_FOR_FN): ...this.
2461
2462 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2463 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2464 * ipa-utils.c (ipa_merge_profiles): Likewise.
2465 * lto-streamer-in.c (make_new_block): Update for renaming of
2466 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2467 (input_cfg): Update for renamings.
2468 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2469 (dump_function_to_file): Update for renaming of
2470 basic_block_info_for_function to basic_block_info_for_fn.
2471
2472 2013-12-09 Richard Biener <rguenther@suse.de>
2473
2474 PR middle-end/38474
2475 * tree-ssa-structalias.c (set_union_with_increment): Remove
2476 unreachable code.
2477 (do_complex_constraint): Call set_union_with_increment with
2478 the solution delta, not the full solution.
2479 (make_transitive_closure_constraints): Merge the two constraints.
2480
2481 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
2482
2483 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
2484 more address validation checks.
2485
2486 2013-12-09 Marek Polacek <polacek@redhat.com>
2487
2488 PR sanitizer/59415
2489 * vtable-verify.c (verify_bb_vtables): Check the return value
2490 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
2491
2492 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2493
2494 * config/arm/arm.md (generic_sched): Add cortexa12.
2495 (generic_vfp): Likewise.
2496 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2497 (arm_cortex_a12_tune): New tuning struct.
2498 * config/arm/arm-cores.def: Add cortex-a12.
2499 * config/arm/arm-tables.opt: Regenerate.
2500 * config/arm/arm-tune.md: Likewise.
2501 * config/arm/bpabi.h: Add cortex-a12.
2502 * doc/invoke.texi: Document -mcpu=cortex-a12.
2503
2504 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2505
2506 * doc/install.texi (Prerequisites): Explicitly mention C library
2507 and its headers for multilib builds.
2508
2509 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
2510
2511 PR target/52898
2512 PR target/51697
2513 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2514 OPT_mcbranchdi entry.
2515 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2516 emit a warning.
2517 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2518 and TARGET_CMPEQDI_T variables.
2519 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2520
2521 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2522
2523 * config/linux.h: Fix typo in a comment.
2524
2525 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2526
2527 * config.gcc (*linux*): Split libc selection from Android support.
2528 Add libc selection to all *linux* targets. Add Android support to
2529 architectures that support it.
2530 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2531 (mips*-*-linux*): Add Android support.
2532
2533 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
2534 Maxim Kuvyrkov <maxim@kugelworks.com>
2535
2536 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2537 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2538 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2539 to linux.h.
2540 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2541 to linux.h.
2542 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2543 Define appropriately for Linux and uClinux targets.
2544
2545 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2546
2547 * config/linux.c (linux_has_ifunc_p): Use correct test.
2548
2549 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2550
2551 * config/linux.c (linux_android_has_ifunc_p): Rename to
2552 linux_has_ifunc_p.
2553 (linux_android_libc_has_function): Rename to linux_libc_has_function.
2554 * config/linux-protos.h (linux_android_has_ifunc_p,)
2555 (linux_android_libc_has_function): Update declarations.
2556 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2557 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2558
2559 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2560
2561 * linux-android.c: Rename to linux.c.
2562 * t-linux-android: Rename to t-linux. Update references
2563 to linux-android.c
2564 * config.gcc: Update references to t-linux-android and linux-android.o.
2565
2566 2013-12-07 Alan Modra <amodra@gmail.com>
2567
2568 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2569 alternative.
2570
2571 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2572
2573 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2574
2575 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
2576
2577 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2578 constraint.
2579
2580 2013-12-06 Caroline Tice <cmtice@google.com>
2581
2582 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2583 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2584 vtable pointer with the results of the verification call, rather than
2585 only the uses in the next statement.
2586
2587 2013-12-06 Andrew Pinski <apinski@cavium.com>
2588
2589 PR target/59092
2590 * config/aarch64/aarch64.md (trap): New pattern.
2591
2592 2013-12-06 Jakub Jelinek <jakub@redhat.com>
2593
2594 PR tree-optimization/59388
2595 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2596 gimplify tem after stmt rather than before it.
2597
2598 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2599 (get_references_in_stmt): Don't record operand addresses, but
2600 operands themselves.
2601 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2602 Adjust for the pos -> ref change.
2603
2604 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2605
2606 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2607
2608 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2609 (processor_alias_table): Likewise.
2610 (ix86_option_override_internal): Likewise.
2611 * config/i386/i386.h (target_cpu_default): Replace
2612 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2613
2614 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2615
2616 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2617
2618 PR target/59405
2619 * config/i386/i386.c (type_natural_mode): Properly handle
2620 size 8 for !TARGET_64BIT.
2621
2622 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2623
2624 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2625 vec::release.
2626
2627 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2628 Mark Mitchell <mark@codesourcery.com>
2629
2630 PR target/59091
2631 * config/arm/arm.md (trap): New pattern.
2632 * config/arm/types.md: Added a type for trap.
2633
2634 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2635
2636 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2637
2638 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2639
2640 PR target/59316
2641 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2642 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2643 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2644 (TARGET_BUILTIN_DECL): Define.
2645 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2646 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2647 (enum sparc_builtins): New enumeral type.
2648 (sparc_builtins): New static array.
2649 (sparc_builtins_icode): Likewise.
2650 (def_builtin): Accept a separate icode and save the result.
2651 (def_builtin_const): Likewise.
2652 (sparc_fpu_init_builtins): New function.
2653 (sparc_vis_init_builtins): Pass the builtin code.
2654 (sparc_init_builtins): Call it if TARGET_FPU.
2655 (sparc_builtin_decl): New function.
2656 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2657 (sparc_handle_vis_mul8x16): Use the builtin code.
2658 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2659 and SPARC_BUILTIN_PDISTN.
2660 (compound_expr): New helper function.
2661 (sparc_atomic_assign_expand_fenv): New function.
2662 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2663 and UNSPECV_STFSR.
2664 (flush, flushdi): Merge into single pattern.
2665 (ldfsr): New instruction.
2666 (stfsr): Likewise.
2667
2668 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2669
2670 * asan.c: Remove struct tags when referring to class varpool_node.
2671 * cgraph.h: Likewise.
2672 * cgraphbuild.c: Likewise.
2673 * cgraphunit.c: Likewise.
2674 * dbxout.c: Likewise.
2675 * dwarf2out.c: Likewise.
2676 * gimple-fold.c: Likewise.
2677 * ipa-devirt.c: Likewise.
2678 * ipa-ref-inline.h: Likewise.
2679 * ipa-ref.h: Likewise.
2680 * ipa-reference.c: Likewise.
2681 * ipa-utils.c: Likewise.
2682 * ipa.c: Likewise.
2683 * lto-cgraph.c: Likewise.
2684 * lto-streamer-out.c: Likewise.
2685 * lto-streamer.h: Likewise.
2686 * passes.c: Likewise.
2687 * toplev.c: Likewise.
2688 * tree-eh.c: Likewise.
2689 * tree-emutls.c: Likewise.
2690 * tree-pass.h: Likewise.
2691 * tree-ssa-structalias.c: Likewise.
2692 * tree-vectorizer.c: Likewise.
2693 * tree.c: Likewise.
2694 * varasm.c: Likewise.
2695 * varpool.c: Likewise.
2696
2697 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2698
2699 * cgraphunit.c: Remove struct tags when referring to class
2700 ipa_opt_pass_d or class opt_pass.
2701 * function.h: Likewise.
2702 * lto-cgraph.c: Likewise.
2703 * pass_manager.h: Likewise.
2704 * passes.c: Likewise.
2705 * tree-pass.h: Likewise.
2706
2707 2013-12-06 Richard Biener <rguenther@suse.de>
2708
2709 PR tree-optimization/59058
2710 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2711 (LOOP_VINFO_NITERSM1): New macro.
2712 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2713 the vector loop entry test in terms of scalar latch executions.
2714 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2715 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2716 number of latch executions.
2717 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2718 (vect_analyze_loop_form): Likewise.
2719 (vect_generate_tmps_on_preheader): Compute the number of
2720 vectorized iterations differently.
2721
2722 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2723
2724 * config/score/score.c (score_force_temporary): Delete function.
2725 (score_split_symbol): Ditto.
2726 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2727 parentheses to silence ambiguity warning and reindent.
2728
2729 2013-12-05 Marek Polacek <polacek@redhat.com>
2730
2731 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2732
2733 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2734
2735 * config.gcc: Support --with-cpu=ia.
2736
2737 * config/i386/i386.c (cpu_names): Add "ia".
2738 (processor_alias_table): Likewise.
2739 (ix86_option_override_internal): Disallow -march=ia.
2740 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2741
2742 * doc/invoke.texi: Document -mtune=ia.
2743
2744 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2745
2746 PR rtl-optimization/59317
2747 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2748 as a source.
2749
2750 2013-12-05 Martin Jambor <mjambor@suse.cz>
2751
2752 PR ipa/58253
2753 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2754 non-BLKmode in their naturally aligned type.
2755
2756 2013-12-05 Marek Polacek <polacek@redhat.com>
2757
2758 PR sanitizer/59333
2759 PR sanitizer/59397
2760 * ubsan.c: Include rtl.h and expr.h.
2761 (ubsan_encode_value): Add new parameter. If expanding, assign
2762 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2763 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2764 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2765 * ubsan.h (ubsan_encode_value): Adjust declaration.
2766 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2767 ubsan_build_overflow_builtin above expand_normal call. Surround
2768 this call with push_temp_slots and pop_temp_slots.
2769 (ubsan_expand_si_overflow_neg_check): Likewise.
2770 (ubsan_expand_si_overflow_mul_check): Likewise.
2771
2772 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2773
2774 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2775 the get_alternative_base call with flag_expensive_optimizations.
2776 (alloc_cand_and_find_basis): Likewise.
2777
2778 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2779
2780 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2781 vec_select for overlapping register lanes.
2782
2783 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2784
2785 * config/i386/i386.c (ix86_expand_builtin): Generate
2786 reg for readflags built-in when optimizing.
2787 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2788 (pushfl<mode>2): This. Fix iterator.
2789 (*popfl<mode>): Rename to ...
2790 (*popfl<mode>1): This. Fix iterator.
2791
2792 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2793
2794 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2795 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2796 (ix86_init_mmx_sse_builtins): Define
2797 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2798 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2799 (ix86_expand_builtin): Expand them.
2800 * config/i386/ia32intrin.h (__readeflags): New.
2801 (__writeeflags): Ditto.
2802 * config/i386/i386.md (*pushfl<mode>): Ditto.
2803 (*popfl<mode>1): Ditto.
2804
2805 2013-12-05 Richard Biener <rguenther@suse.de>
2806
2807 PR tree-optimization/59374
2808 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2809 Commonize known and unknown dependence case fixing the allowed
2810 read-write dependence case and dropping code that should not matter.
2811
2812 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2813
2814 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2815 generation of predicated version.
2816 (epilogue_deallocate_stack): Ditto.
2817 (prologue_allocate_stack_pr): Add explicit predicated version.
2818 (epilogue_deallocate_stack_pr): Ditto.
2819 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2820
2821 2013-12-05 Alan Modra <amodra@gmail.com>
2822
2823 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2824 build != host.
2825 <recursive call for build != host>: Clear GMPINC. Don't bother
2826 saving CFLAGS.
2827
2828 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2829 Marek Polacek <polacek@redhat.com>
2830
2831 * opts.c (common_handle_option): Handle
2832 -fsanitize=signed-integer-overflow.
2833 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2834 negv<mode>3, negv<mode>3_1): Define expands.
2835 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2836 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2837 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2838 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2839 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2840 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2841 PROB_ALWAYS): Define.
2842 (ubsan_build_overflow_builtin): Declare.
2843 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2844 internal functions.
2845 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2846 (ubsan_build_overflow_builtin): New function.
2847 (instrument_si_overflow): Likewise.
2848 (ubsan_pass): Add signed integer overflow checking.
2849 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2850 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2851 * internal-fn.c: Include ubsan.h and target.h.
2852 (ubsan_expand_si_overflow_addsub_check): New function.
2853 (ubsan_expand_si_overflow_neg_check): Likewise.
2854 (ubsan_expand_si_overflow_mul_check): Likewise.
2855 (expand_UBSAN_CHECK_ADD): Likewise.
2856 (expand_UBSAN_CHECK_SUB): Likewise.
2857 (expand_UBSAN_CHECK_MUL): Likewise.
2858 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2859 (-A) + B -> B - A when doing the signed integer overflow checking.
2860 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2861 Define.
2862 * tree-vrp.c (extract_range_basic): Handle internal calls.
2863 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2864 optabs.
2865 * asan.c: Include predict.h.
2866 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2867 * predict.c: Move the PROB_* macros...
2868 * predict.h (enum br_predictor): ...here.
2869 (PROB_LIKELY, PROB_UNLIKELY): Define.
2870 * trans-mem.c: Include predict.h.
2871 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2872 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2873
2874 2013-12-04 Jeff Law <law@redhat.com>
2875
2876 * common.opt: Split up -fisolate-erroneous-paths into
2877 -fisolate-erroneous-paths-dereference and
2878 -fisolate-erroneous-paths-attribute.
2879 * invoke.texi: Corresponding changes.
2880 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2881 what kind of statements can be used to infer a non-null range.
2882 * gimple.h (infer_nonnull_range): Update prototype.
2883 * tree-vrp.c (infer_value_range): Corresponding changes.
2884 * opts.c (default_options_table): Update due to option split.
2885 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2886 (find_implicit_erroneous_behaviour): Pass additional arguments
2887 to infer_nonnull_range.
2888 (find_explicit_erroneous_behaviour): Similarly.
2889 (gate_isolate_erroneous_paths): Check both of the new options.
2890
2891 2013-12-04 Jeff Law <law@redhat.com>
2892
2893 * expr.c (expand_assignment): Update comments.
2894
2895 2013-12-04 Tobias Burnus <burnus@net-b.de>
2896
2897 PR debug/37132
2898 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2899 * tree.def (NAMELIST_DECL): Add.
2900 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2901 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2902 * dwarf2out.c (gen_namelist_decl): New function.
2903 (gen_decl_die, dwarf2out_decl): Call it.
2904 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2905 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2906 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2907 call.
2908 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2909
2910 2013-12-03 Xinliang David Li <davidxl@google.com>
2911
2912 * tree-ssa-structalias.c (constraint_set_union): Change return type
2913 from void to bool.
2914 (merge_node_constraints): Ditto.
2915 (unify_nodes): Update changed set when constraints set changes.
2916
2917 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2918
2919 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2920 -fsanitize=address.
2921 * configure: Regenerated.
2922
2923 * gdbasan.in: New file.
2924
2925 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR rtl-optimization/58726
2928 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2929 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2930
2931 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2932 Uros Bizjak <ubizjak@gmail.com>
2933
2934 PR target/59163
2935 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2936 !TARGET_AVX there is misaligned MEM operand with vector mode
2937 and get_attr_ssememalign is 0, return false.
2938 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2939 computed alignment and for non-temporal loads/stores also
2940 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2941 * config/i386/sse.md
2942 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2943 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2944 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2945 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2946 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2947 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2948 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2949 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2950 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2951 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2952 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2953 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2954 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2955 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2956 * config/i386/i386.md (ssememalign): New define_attr.
2957
2958 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2959
2960 PR tree-optimization/59355
2961 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2962 * opts.c (common_handle_option): Fix comment spelling.
2963
2964 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2965
2966 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2967 (name_expansions): New static variable.
2968 (alt_base_map): Ditto.
2969 (get_alternative_base): New function.
2970 (find_basis_for_candidate): For CAND_REF, optionally call
2971 find_basis_for_base_expr with the returned value from
2972 get_alternative_base.
2973 (record_potential_basis): Add new parameter 'base' of type 'tree';
2974 add an assertion of non-NULL base; use base to set node->base_expr.
2975 (alloc_cand_and_find_basis): Update; call record_potential_basis
2976 for CAND_REF with the returned value from get_alternative_base.
2977 (replace_refs): Dump details on the replacing.
2978 (execute_strength_reduction): Call pointer_map_create for
2979 alt_base_map; call free_affine_expand_cache with &name_expansions.
2980
2981 2013-12-03 Wei Mi <wmi@google.com>
2982
2983 PR rtl-optimization/59020
2984 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2985 (sched_analyze_insn): Call try_group_insn.
2986 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2987 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2988 (group_insns_for_macro_fusion): Removed.
2989 (sched_init): Remove calling group_insns_for_macro_fusion.
2990
2991 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2992
2993 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2994 typo in macro name.
2995 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2996
2997 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2998
2999 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
3000 LR_REGNUM.
3001 (aarch64_can_eliminate): Don't check elimination source when
3002 frame_pointer_required is false.
3003
3004 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3005
3006 * config/avr/avr.c (avr_option_override): Warn if asked to generate
3007 position independent code.
3008 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
3009
3010 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
3011
3012 PR target/59363
3013 * config/i386/i386.c (emit_memset): Adjust destination address
3014 after gen_strset.
3015 (expand_setmem_epilogue): Likewise.
3016
3017 2013-12-03 Marek Polacek <polacek@redhat.com>
3018
3019 PR middle-end/56344
3020 * calls.c (expand_call): Disallow passing huge arguments by value.
3021
3022 2013-12-03 Jakub Jelinek <jakub@redhat.com>
3023
3024 PR tree-optimization/59362
3025 * tree-object-size.c (object_sizes): Change into array of
3026 vec<unsigned HOST_WIDE_INT>.
3027 (compute_builtin_object_size): Check computed bitmap for
3028 non-NULL instead of object_sizes. Call safe_grow on object_sizes
3029 vector if new SSA_NAMEs appeared.
3030 (init_object_sizes): Check computed bitmap for non-NULL.
3031 Call safe_grow on object_sizes elements instead of initializing
3032 it with XNEWVEC.
3033 (fini_object_sizes): Call release on object_sizes elements, don't
3034 set it to NULL.
3035
3036 PR middle-end/59011
3037 * gimplify.c (nonlocal_vla_vars): New variable.
3038 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
3039 nonlocal_vla_vars chain.
3040 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
3041 if outer_bind has DECL_INITIAL (current_function_decl) block.
3042
3043 PR target/58864
3044 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
3045 New functions.
3046 * expr.h (struct saved_pending_stack_adjust): New type.
3047 (save_pending_stack_adjust, restore_pending_stack_adjust): New
3048 prototypes.
3049 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
3050 and get_last_insn before do_pending_stack_adjust, call
3051 restore_pending_stack_adjust after delete_insns_since.
3052 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
3053 before calling emit_conditional_move.
3054 * expmed.c (expand_sdiv_pow2): Likewise.
3055 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
3056
3057 2013-12-02 Jeff Law <law@redhat.com>
3058
3059 PR tree-optimization/59322
3060 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
3061 Remove code which copied jump threading paths.
3062
3063 2013-12-02 Sriraman Tallam <tmsriram@google.com>
3064
3065 PR target/58944
3066 * config/i386/i386.opt (ix86_arch_string): Mark this variable
3067 for saving in cl_target_option.
3068 (ix86_tune_string): Ditto.
3069 (ix86_cmodel): Ditto.
3070 (ix86_abi): Ditto.
3071 (ix86_asm_dialect): Ditto.
3072 (ix86_branch_cost): Ditto.
3073 (ix86_dump_tunes): Ditto.
3074 (ix86_force_align_arg_pointer): Ditto.
3075 (ix86_force_drap): Ditto.
3076 (ix86_incoming_stack_boundary_arg): Ditto.
3077 (ix86_pmode): Ditto.
3078 (ix86_preferred_stack_boundary_arg): Ditto.
3079 (ix86_recip_name): Ditto.
3080 (ix86_regparm): Ditto.
3081 (ix86_section_threshold): Ditto.
3082 (ix86_sse2avx): Ditto.
3083 (ix86_stack_protector_guard): Ditto.
3084 (ix86_stringop_alg): Ditto.
3085 (ix86_tls_dialect): Ditto.
3086 (ix86_tune_ctrl_string): Ditto.
3087 (ix86_tune_memcpy_strategy): Ditto.
3088 (ix86_tune_memset_strategy): Ditto.
3089 (ix86_tune_no_default): Ditto.
3090 (ix86_veclibabi_type): Ditto.
3091 * config/i386/i386.c (function_specific_save): Save the above
3092 variables in gcc_options to cl_target_option.
3093 (function_specific_restore): Do the reverse done in
3094 function_specific_save.
3095 (ix86_valid_target_attribute_tree): Change ix86_arch_string
3096 and ix86_tune_string to use the opts structure.
3097 (ix86_option_override_internal):Change
3098 ix86_incoming_stack_boundary_arg to
3099 opts->x_ix86_incoming_stack_boundary_arg
3100
3101 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
3102
3103 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
3104 in #ifndef IN_LIBGCC2 / #endif.
3105
3106 2013-12-02 Jakub Jelinek <jakub@redhat.com>
3107
3108 PR tree-optimization/59358
3109 * tree-vrp.c (union_ranges): To check for the partially overlapping
3110 ranges or adjacent ranges, also compare *vr0max with vr1max.
3111
3112 2013-12-02 Sterling Augustine  <saugustine@google.com>
3113
3114 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
3115 when there isn't a skeleton die.
3116
3117 2013-12-02 Marek Polacek <polacek@redhat.com>
3118
3119 PR sanitizer/59353
3120 * doc/invoke.texi: Document -fsanitize=return.
3121
3122 2013-12-02 Tobias Burnus <burnus@net-b.de>
3123 Manuel López-Ibáñez <manu@gcc.gnu.org>
3124
3125 PR middle-end/59257
3126 * doc/invoke.texi: Add missing @opindex.
3127 (-fsanitize=): Use @gcctabopt instead of @itemize.
3128
3129 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3130
3131 Fix C++0x memory model for unaligned fields in packed, aligned(4)
3132 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
3133 targets like arm-none-eabi.
3134 * expr.c (expand_assignment): Handle normal fields like bit regions.
3135
3136 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3137
3138 PR target/58115
3139 * function.c (invoke_set_current_function_hook): Call
3140 targetm.set_current_function after setting this_fn_optabs.
3141
3142 2013-12-02 Richard Biener <rguenther@suse.de>
3143
3144 PR tree-optimization/59139
3145 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3146 code in get_val_for.
3147 (get_val_for): Use gcc_checking_asserts.
3148
3149 2013-12-02 Richard Biener <rguenther@suse.de>
3150
3151 PR middle-end/59199
3152 * tree-ssa-operands.c (opf_implicit): Remove.
3153 (opf_address_taken): New flag.
3154 (get_expr_operands): Remove early out, pass down opf_address_taken for
3155 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3156 (get_indirect_ref_operands): Rename to ...
3157 (get_mem_ref_operands): ... this.
3158 (get_asm_expr_operands): Rename to ...
3159 (get_asm_stmt_operands): ... this.
3160
3161 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3162
3163 * ipa-inline.c (check_callers): Add missed pointer de-reference.
3164
3165 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
3166
3167 PR tree-optimization/59356
3168 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3169 offset computation using the precision of the index type.
3170
3171 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
3172
3173 PR target/58785
3174 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3175 when rclass is GENERAL_REGS.
3176
3177 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3178
3179 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3180 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3181
3182 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
3183
3184 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3185 identifier node.
3186
3187 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3188
3189 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3190
3191 2013-11-30 Paulo Matos <pmatos@broadcom.com>
3192 Eric Botcazou <ebotcazou@adacore.com>
3193
3194 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3195 as applied to nonzero_sign_valid when last_set_mode has less precision
3196 than mode.
3197
3198 2013-11-30 Tobias Burnus <burnus@net-b.de>
3199
3200 PR sanitizer/59275
3201 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3202 environment variable and link to a list with flags.
3203 (-fsanitize=thread): Ditto and update link.
3204
3205 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
3206
3207 PR rtl-optimization/59340
3208 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3209
3210 Revert
3211 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3212
3213 * lra.c (lra): Set lra_in_progress before check_rtl call.
3214 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3215 adding clobber regs when LRA is running.
3216
3217 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3218
3219 PR target/59289
3220 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3221
3222 2013-11-29 Richard Biener <rguenther@suse.de>
3223
3224 PR middle-end/59208
3225 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3226 free_stmt_operands, update_stmt_operands): Add struct function
3227 argument.
3228 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3229 function argument from fini_ssa_operands, verify_ssa_operands,
3230 free_stmt_operands and update_stmt_operands everywhere.
3231 * tree-ssanames.h (release_ssa_name_fn): New.
3232 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3233 * tree-ssanames.c (release_ssa_name): Rename to ...
3234 (release_ssa_name_fn): ... this and add struct function argument.
3235 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3236 (update_stmt_fn): New function.
3237 * tree-cfg.c (move_block_to_fn): Adjust.
3238 * tree-if-conv.c (free_bb_predicate): Likewise.
3239 * tree-ssa.c (verify_ssa): Likewise.
3240 (delete_tree_ssa): Likewise.
3241 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3242 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3243 update_stmt_fn instead of update_stmt.
3244
3245 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3246
3247 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3248 for LRA.
3249
3250 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3251
3252 * config/arm/arm.md (store_minmaxsi): Use only when
3253 optimize_function_for_size_p.
3254
3255 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3256 Yury Gribov <y.gribov@samsung.com>
3257
3258 PR sanitizer/59063
3259 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3260 * gcc.c: Using libsanitizer spec instead of explicit libs.
3261
3262 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
3263
3264 Reverted:
3265 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3266 * cgraph.h (varpool_node): Add need_bounds_init field.
3267 * lto-cgraph.c (lto_output_varpool_node): Output
3268 need_bounds_init value.
3269 (input_varpool_node): Read need_bounds_init value.
3270 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3271
3272 Reverted:
3273 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3274 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3275 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3276 (gen_type_die_with_usage): Skip pointer bounds.
3277 (dwarf2out_global_decl): Likewise.
3278
3279 Reverted:
3280 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3281 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3282 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3283 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3284 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3285 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3286 (gimple_call_with_bounds_p): New.
3287 (gimple_call_set_with_bounds): New.
3288 (gimple_call_num_nobnd_args): Remove.
3289 (gimple_call_nobnd_arg): Remove.
3290 * tree.h (CALL_WITH_BOUNDS_P): New.
3291 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3292
3293 Reverted:
3294 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3295 * common.opt (fcheck-pointer-bounds): Move to ...
3296 * c-family/c.opt: ... here.
3297 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3298 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3299 * langhooks.h (lang_hooks): Remove chkp_supported field.
3300 * toplev.c (process_options): Remove chkp_supported check.
3301
3302 Reverted:
3303 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3304 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3305 * tree.h (POINTER_BOUNDS_P): New.
3306 (BOUNDED_TYPE_P): New.
3307 (BOUNDED_P): New.
3308 (pointer_bounds_type_node): New.
3309 * tree.c (build_common_tree_nodes): Initialize
3310 pointer_bounds_type_node.
3311 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3312 (gimple_call_num_nobnd_args): New.
3313 (gimple_call_nobnd_arg): New.
3314 (gimple_return_retbnd): New.
3315 (gimple_return_set_retbnd): New
3316 * gimple.c (gimple_build_return): Increase number of ops
3317 for return statement.
3318 (gimple_call_get_nobnd_arg_index): New.
3319 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3320
3321 Reverted:
3322 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3323 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3324 with "chkp ctor" and "bnd_legacy" attributes.
3325 * gimplify.c (gimplify_init_constructor): Avoid infinite
3326 loop during gimplification of bounds initializer.
3327
3328 Reverted:
3329 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3330 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3331 (handle_bnd_legacy): New.
3332 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3333 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3334 attributes.
3335
3336 Reverted:
3337 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3338 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3339 (BT_FN_PTR_CONST_PTR): New.
3340 (BT_FN_CONST_PTR_CONST_PTR): New.
3341 (BT_FN_PTR_CONST_PTR_SIZE): New.
3342 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3343 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3344 (BT_FN_VOID_CONST_PTR_SIZE): New.
3345 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3346 * chkp-builtins.def: New.
3347 * builtins.def: include chkp-builtins.def.
3348 (DEF_CHKP_BUILTIN): New.
3349 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3350 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3351 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3352 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3353 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3354 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3355 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3356 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3357 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3358 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3359 * common.opt (fcheck-pointer-bounds): New.
3360 * toplev.c (process_options): Check Pointer Bounds Checker is
3361 supported.
3362 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3363
3364 Reverted:
3365 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3366 * target.def (builtin_chkp_function): New.
3367 (chkp_bound_type): New.
3368 (chkp_bound_mode): New.
3369 (fn_abi_va_list_bounds_size): New.
3370 (load_bounds_for_arg): New.
3371 (store_bounds_for_arg): New.
3372 * targhooks.h (default_load_bounds_for_arg): New.
3373 (default_store_bounds_for_arg): New.
3374 (default_fn_abi_va_list_bounds_size): New.
3375 (default_chkp_bound_type): New.
3376 (default_chkp_bound_mode): New.
3377 (default_builtin_chkp_function): New.
3378 * targhooks.c (default_load_bounds_for_arg): New.
3379 (default_store_bounds_for_arg): New.
3380 (default_fn_abi_va_list_bounds_size): New.
3381 (default_chkp_bound_type): New.
3382 (default_chkp_bound_mode); New.
3383 (default_builtin_chkp_function): New.
3384 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3385 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3386 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3387 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3388 (TARGET_CHKP_BOUND_TYPE): New.
3389 (TARGET_CHKP_BOUND_MODE): New.
3390 * doc/tm.texi: Regenerated.
3391 * langhooks.h (lang_hooks): Add chkp_supported field.
3392 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3393 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3394
3395 Reverted:
3396 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3397 * config/i386/constraints.md (B): New.
3398 (Ti): New.
3399 (Tb): New.
3400 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3401 * config/i386/i386-modes.def (BND32): New.
3402 (BND64): New.
3403 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3404 * config/i386/i386.c (isa_opts): Add mmpx.
3405 (regclass_map): Add bound registers.
3406 (dbx_register_map): Likewise.
3407 (dbx64_register_map): Likewise.
3408 (svr4_dbx_register_map): Likewise.
3409 (PTA_MPX): New.
3410 (ix86_option_override_internal): Support MPX ISA.
3411 (ix86_conditional_register_usage): Support bound registers.
3412 (print_reg): Likewise.
3413 (ix86_code_end): Add MPX bnd prefix.
3414 (output_set_got): Likewise.
3415 (ix86_output_call_insn): Likewise.
3416 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3417 (ix86_print_operand_punct_valid_p): Likewise.
3418 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3419 UNSPEC_BNDMK_ADDR.
3420 (ix86_class_likely_spilled_p): Add bound regs support.
3421 (ix86_hard_regno_mode_ok): Likewise.
3422 (x86_order_regs_for_local_alloc): Likewise.
3423 (ix86_bnd_prefixed_insn_p): New.
3424 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3425 (FIXED_REGISTERS): Add bound registers.
3426 (CALL_USED_REGISTERS): Likewise.
3427 (REG_ALLOC_ORDER): Likewise.
3428 (HARD_REGNO_NREGS): Likewise.
3429 (TARGET_MPX): New.
3430 (VALID_BND_REG_MODE): New.
3431 (FIRST_BND_REG): New.
3432 (LAST_BND_REG): New.
3433 (reg_class): Add BND_REGS.
3434 (REG_CLASS_NAMES): Likewise.
3435 (REG_CLASS_CONTENTS): Likewise.
3436 (BND_REGNO_P): New.
3437 (ANY_BND_REG_P): New.
3438 (BNDmode): New.
3439 (HI_REGISTER_NAMES): Add bound registers.
3440 * config/i386/i386.md (UNSPEC_BNDMK): New.
3441 (UNSPEC_BNDMK_ADDR): New.
3442 (UNSPEC_BNDSTX): New.
3443 (UNSPEC_BNDLDX): New.
3444 (UNSPEC_BNDLDX_ADDR): New.
3445 (UNSPEC_BNDCL): New.
3446 (UNSPEC_BNDCU): New.
3447 (UNSPEC_BNDCN): New.
3448 (UNSPEC_MPX_FENCE): New.
3449 (BND0_REG): New.
3450 (BND1_REG): New.
3451 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3452 (length_immediate): Likewise.
3453 (prefix_0f): Likewise.
3454 (memory): Likewise.
3455 (prefix_rep): Check for bnd prefix.
3456 (length_nobnd): New.
3457 (length): Use length_nobnd if specified.
3458 (BND): New.
3459 (bnd_ptr): New.
3460 (BNDCHECK): New.
3461 (bndcheck): New.
3462 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3463 (*jcc_2): Likewise.
3464 (jump): Likewise.
3465 (simple_return_internal): Likewise.
3466 (simple_return_pop_internal): Likewise.
3467 (*indirect_jump): Add MPX bnd prefix.
3468 (*tablejump_1): Likewise.
3469 (simple_return_internal_long): Likewise.
3470 (simple_return_indirect_internal): Likewise.
3471 (<mode>_mk): New.
3472 (*<mode>_mk): New.
3473 (mov<mode>): New.
3474 (*mov<mode>_internal_mpx): New.
3475 (<mode>_<bndcheck>): New.
3476 (*<mode>_<bndcheck>): New.
3477 (<mode>_ldx): New.
3478 (*<mode>_ldx): New.
3479 (<mode>_stx): New.
3480 (*<mode>_stx): New.
3481 * config/i386/predicates.md (lea_address_operand): Rename to...
3482 (address_no_seg_operand): ... this.
3483 (address_mpx_no_base_operand): New.
3484 (address_mpx_no_index_operand): New.
3485 (bnd_mem_operator): New.
3486 * config/i386/i386.opt (mmpx): New.
3487 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3488 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3489
3490 Reverted:
3491 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3492 * mode-classes.def (MODE_POINTER_BOUNDS): New.
3493 * tree.def (POINTER_BOUNDS_TYPE): New.
3494 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3495 (POINTER_BOUNDS_MODE): New.
3496 (make_pointer_bounds_mode): New.
3497 * machmode.h (POINTER_BOUNDS_MODE_P): New.
3498 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3499 (layout_type): Support POINTER_BOUNDS_TYPE.
3500 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3501 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3502 (type_contains_placeholder_1): Likewise.
3503 * tree.h (POINTER_BOUNDS_TYPE_P): New.
3504 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3505 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3506
3507 2013-11-29 Richard Biener <rguenther@suse.de>
3508
3509 PR middle-end/59338
3510 * tree-cfg.c (verify_expr): Restrict bounds verification of
3511 BIT_FIELD_REF arguments to non-aggregate typed base objects.
3512
3513 2013-11-29 Richard Biener <rguenther@suse.de>
3514
3515 PR tree-optimization/59334
3516 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3517 in previous commit.
3518
3519 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3520 Richard Biener <rguenther@suse.de>
3521
3522 PR lto/59326
3523 * omp-low.c (simd_clone_create): Return NULL if for definition
3524 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
3525 before calling cgraph_function_versioning.
3526 (expand_simd_clones): Look for "omp declare simd" attribute first.
3527 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3528 Punt if node->global.inlined_to.
3529 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3530 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3531 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3532
3533 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3534
3535 PR lto/59326
3536 * tree-core.h (enum omp_clause_schedule_kind): Add
3537 OMP_CLAUSE_SCHEDULE_LAST.
3538 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3539 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3540 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3541 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3542 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3543 (DFS_write_tree_body): Handle OMP_CLAUSE.
3544 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3545 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3546 (write_ts_omp_clause_tree_pointers): New function.
3547 (streamer_write_tree_body): Call it for OMP_CLAUSE.
3548 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3549 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3550 (unpack_value_fields): Call it for OMP_CLAUSE.
3551 (streamer_alloc_tree): Handle OMP_CLAUSE.
3552 (lto_input_ts_omp_clause_tree_pointers): New function.
3553 (streamer_read_tree_body): Call it for OMP_CLAUSE.
3554
3555 2013-11-29 Joseph Myers <joseph@codesourcery.com>
3556
3557 * doc/implement-c.texi: Document C11 implementation-defined
3558 behavior. Refer to -ffp-contract=fast for contraction behavior.
3559 * doc/invoke.texi (-std=c99, std=c11): Update description of
3560 completeness.
3561 (-std=gnu99): Don't mention as future default.
3562 (-std=gnu11): Mention as intended future default.
3563 * doc/standards.texi: Update descriptions of C99 and C11 support.
3564 Limit statement about C99 facilities for freestanding
3565 implementations to some platforms only.
3566
3567 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3568
3569 PR middle-end/59327
3570 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3571
3572 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
3573
3574 PR target/57293
3575 * ira.h (ira_setup_eliminable_regset): Remove parameter.
3576 * ira.c (ira_setup_eliminable_regset): Ditto. Add
3577 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3578 Don't call lra_init_elimination.
3579 (ira): Call ira_setup_eliminable_regset without arguments.
3580 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3581 from ira_setup_eliminable_regset call.
3582 * gcse.c (calculate_bb_reg_pressure): Ditto.
3583 * haifa-sched.c (sched_init): Ditto.
3584 * lra.h (lra_init_elimination): Remove the prototype.
3585 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
3586 used_insn_alternative upper.
3587 (lra_eliminate_regs_1): Add one more parameter.
3588 (lra-eliminate): Ditto.
3589 * lra.c (lra_invalidate_insn_data): Set sp_offset.
3590 (setup_sp_offset): New.
3591 (lra_process_new_insns): Call setup_sp_offset.
3592 (lra): Add argument to lra_eliminate calls.
3593 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3594 (get_equiv_with_elimination): New.
3595 (process_addr_reg): Call get_equiv_with_elimination instead of
3596 get_equiv_substitution.
3597 (equiv_address_substitution): Ditto.
3598 (loc_equivalence_change_p): Ditto.
3599 (loc_equivalence_callback, lra_constraints): Ditto.
3600 (curr_insn_transform): Ditto. Print the sp offset
3601 (process_alt_operands): Prevent stack pointer reloads.
3602 (lra_constraints): Remove one argument from lra_eliminate call.
3603 Move it up. Mark used hard regs bfore it. Use
3604 get_equiv_with_elimination instead of get_equiv_substitution.
3605 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3606 assert for param values combination. Use sp offset. Add argument
3607 to lra_eliminate_regs_1 calls.
3608 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3609 (curr_sp_change): New static var.
3610 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3611 Don't prevent elimination to sp if we can calculate its change.
3612 Pass the argument to mark_not_eliminable calls.
3613 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3614 argument to lra_eliminate_regs_1 call.
3615 (update_reg_eliminate): Move calculation of hard regs for spill
3616 lower. Switch off lra_in_progress temporarily to generate regs
3617 involved into elimination.
3618 (lra_init_elimination): Rename to init_elimination. Make it
3619 static. Set up insn sp offset, check the offsets at the end of BBs.
3620 (process_insn_for_elimination): Add parameter. Pass its value to
3621 eliminate_regs_in_insn.
3622 (lra_eliminate): : Add parameter. Pass its value to
3623 process_insn_for_elimination. Add assert for param values
3624 combination. Call init_elimination. Don't update offsets in
3625 equivalence substitutions.
3626 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3627 for created stack slot.
3628 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3629 onto stack slot.
3630
3631 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3632
3633 * config/arm/iterators.md (vrint_conds): New int attribute.
3634 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3635 (smax<mode>3): Likewise.
3636 (smin<mode>3): Likewise.
3637
3638 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3639
3640 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3641 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3642 * tree-ssanames.h (set_range_info): Add range_type argument.
3643 (duplicate_ssa_name_range_info): Likewise.
3644 * tree-ssanames.c (set_range_info): Take the range type as argument
3645 and store it in SSA_NAME_ANTI_RANGE_P.
3646 (duplicate_ssa_name_range_info): Likewise.
3647 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3648 (set_nonzero_bits): Update call to set_range_info.
3649 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3650 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3651 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3652 (vrp_finalize): Likewise, passing anti-ranges directly.
3653
3654 2013-11-28 Richard Biener <rguenther@suse.de>
3655
3656 PR tree-optimization/59330
3657 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3658 and fix delayed marking of free calls not necessary.
3659
3660 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3661
3662 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3663 is_gimple_reg_type.
3664 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3665
3666 2013-11-28 Terry Guo <terry.guo@arm.com>
3667
3668 * config/arm/arm.c (v7m_extra_costs): New table.
3669 (arm_v7m_tune): Use it.
3670
3671 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3672
3673 * config/sol2.h (TIME_LIBRARY): Define.
3674
3675 2013-11-28 Richard Biener <rguenther@suse.de>
3676
3677 PR lto/59323
3678 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3679 CONST_DECLs in function context are not indexable.
3680
3681 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3682
3683 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3684 not optimized for size.
3685
3686 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3687
3688 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3689 fields.
3690 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3691 data->asan_base as base for vars and update asan_alignb.
3692 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3693 Pass them to asan_emit_stack_protection.
3694 * asan.c (asan_detect_stack_use_after_return): New variable.
3695 (asan_emit_stack_protection): Add pbase and alignb arguments.
3696 Implement use after return sanitization.
3697 * asan.h (asan_emit_stack_protection): Adjust prototype.
3698 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3699
3700 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3701
3702 * common.opt: Introduced a new option -fsimd-cost-model.
3703 * doc/invoke.texi: Introduced a new openmp-simd warning and
3704 a new -fsimd-cost-model option.
3705 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3706 to rely on the particular loop info.
3707 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3708 (vect_peeling_hash_choose_best_peeling): Ditto.
3709 (vect_enhance_data_refs_alignment): Ditto.
3710 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3711 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3712 plus added openmp-simd warining.
3713
3714 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3715
3716 PR rtl-optimization/59311
3717 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3718 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3719
3720 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3721
3722 * var-tracking.c (track_expr_p): Do not track declarations for parts
3723 of tracked parameters.
3724 (add_stores): Do not track values for tracked parameters passed in
3725 multiple locations.
3726 (vt_get_decl_and_offset): Handle PARALLEL.
3727 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3728
3729 2013-11-27 Jeff Law <law@redhat.com>
3730
3731 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3732 clobber the loop structure thread_block was unsuccessful. If
3733 thread_block was unsuccessful, cleanup appropriately.
3734
3735 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3736
3737 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3738 (score_char_to_class): Likewise.
3739
3740 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3741
3742 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3743 the overflow bit set.
3744
3745 2013-11-27 Richard Biener <rguenther@suse.de>
3746
3747 PR middle-end/58723
3748 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3749 for internal calls.
3750 (rebuild_cgraph_edges): Likewise.
3751 * ipa-inline-analysis.c (estimate_function_body_sizes):
3752 Skip internal calls.
3753 * tree-inline.c (estimate_num_insns): Estimate size of internal
3754 calls as 0.
3755 (gimple_expand_calls_inline): Do not try inline-expanding
3756 internal calls.
3757 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3758 force_vect and simduid.
3759 (input_struct_function_base): Stream has_force_vect_loops
3760 and has_simduid_loops.
3761 (input_function): Adjust.
3762 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3763 force_vect and simduid.
3764 (output_struct_function_base): Stream has_force_vect_loops
3765 and has_simduid_loops.
3766
3767 2013-11-27 Kai Tietz <ktietz@redhat.com>
3768
3769 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3770 pointer cast.
3771
3772 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3773
3774 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3775 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3776
3777 2013-11-27 Marek Polacek <polacek@redhat.com>
3778
3779 PR sanitizer/59306
3780 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3781 instead of walk_gimple_op.
3782 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3783
3784 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3785 Jakub Jelinek <jakub@redhat.com>
3786
3787 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3788 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3789 (struct cgraph_node): Add simdclone and simd_clones fields.
3790 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3791 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3792 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3793 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3794 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3795 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3796 * doc/tm.texi: Regenerated.
3797 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3798 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3799 attribute is present.
3800 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3801 (simd_clone_vector_of_formal_parm_types): New function.
3802 (simd_clone_struct_alloc, simd_clone_struct_copy,
3803 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3804 simd_clone_compute_base_data_type, simd_clone_mangle,
3805 simd_clone_create, simd_clone_adjust_return_type,
3806 create_tmp_simd_array, simd_clone_adjust_argument_types,
3807 simd_clone_init_simd_arrays): New functions.
3808 (struct modify_stmt_info): New type.
3809 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3810 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3811 functions.
3812 (pass_data_omp_simd_clone): New variable.
3813 (pass_omp_simd_clone): New class.
3814 (make_pass_omp_simd_clone): New function.
3815 * passes.def (pass_omp_simd_clone): New.
3816 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3817 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3818 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3819 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3820 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3821 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3822 * tree-vect-data-refs.c: Include cgraph.h.
3823 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3824 and find_data_references_in_bb, if find_data_references_in_stmt
3825 fails, still allow calls to #pragma omp declare simd functions
3826 in #pragma omp simd loops unless they contain data references among
3827 the call arguments or in lhs.
3828 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3829 calls with no lhs.
3830 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3831 without lhs.
3832 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3833 call_simd_clone_vec_info_type.
3834 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3835 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3836 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3837 tree-scalar-evolution.h and cgraph.h.
3838 (vectorizable_call): Handle calls without lhs. Assert
3839 !stmt_can_throw_internal instead of failing for it. Don't update
3840 EH stuff.
3841 (struct simd_call_arg_info): New.
3842 (vectorizable_simd_clone_call): New function.
3843 (vect_transform_stmt): Call it.
3844 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3845 calls without lhs.
3846 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3847 if cgraph_function_with_gimple_body_p is true.
3848
3849 2013-11-27 Tom de Vries <tom@codesourcery.com>
3850 Marc Glisse <marc.glisse@inria.fr>
3851
3852 PR middle-end/59037
3853 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3854 BIT_FIELD_REF.
3855 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3856 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3857 out-of-bounds.
3858
3859 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3860
3861 PR middle-end/59138
3862 * expr.c (emit_group_store): Don't write past the end of the structure.
3863 (store_bit_field): Fix formatting.
3864
3865 2013-11-27 Richard Biener <rguenther@suse.de>
3866
3867 PR tree-optimization/59288
3868 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3869 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3870
3871 2013-11-27 Marek Polacek <polacek@redhat.com>
3872
3873 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3874 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3875 rather than ADDR_EXPRs.
3876
3877 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3878
3879 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3880
3881 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3882
3883 * gengtype.c (struct seen_tag): New.
3884 (already_seen_tag): New.
3885 (mark_tag_as_seen): New.
3886 (walk_subclasses): Support having multiple subclasses using the
3887 same tag by tracking which tags have already been seen, and using
3888 this to avoid adding duplicate cases to the "switch" statement.
3889 The call to already_seen_tag introduces an O(N^2) when running
3890 gengtype on N, the number of tags, due to the repeated linear
3891 search, but currently max(N) is relatively small (the number of
3892 GSS codes, which is 26).
3893 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3894 recursion.
3895
3896 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3897 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3898 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3899 GIMPLE_OMP_RETURN happens to share the data layout of
3900 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3901 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3902 underlying GSS value from GSS_OMP_PARALLEL to
3903 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3904 not directly related; they merely share in-memory layout.
3905 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3906 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3907
3908 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3909 Rename to...
3910 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3911 ...these.
3912 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3913 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3914 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3915 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3916 ...these.
3917
3918 * gimple.h (gimple_statement_resx): New subclass of
3919 gimple_statement_eh_ctrl, with the invariant that
3920 stmt->code == GIMPLE_RESX.
3921 (gimple_statement_eh_dispatch): New subclass of
3922 gimple_statement_eh_ctrl, with the invariant that
3923 stmt->code == GIMPLE_EH_DISPATH.
3924
3925 (gimple_statement_omp_parallel): The existing class expressed
3926 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3927 are not all related, so it makes more sense for this class to
3928 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3929 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3930 rename the existing gimple_statement_omp_parallel class to...
3931 (gimple_statement_omp_parallel_layout): ...this, expressing
3932 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3933 (gimple_statement_omp_taskreg): New subclass of
3934 gimple_statement_omp_parallel_layout, expressing the invariant
3935 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3936 as used by the various gimple_omp_taskreg_ accessors.
3937 (gimple_statement_omp_parallel): Reintroduce this class, this time
3938 as a subclass of gimple_statement_omp_taskreg to express the
3939 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3940 (gimple_statement_omp_target) New class, subclassing
3941 gimple_statement_omp_parallel_layout, to express the invariant
3942 stmt->code == GIMPLE_OMP_TARGET.
3943 (gimple_statement_omp_task): Update to inherit from
3944 gimple_statement_omp_taskreg rather than
3945 gimple_statement_omp_parallel.
3946
3947 (gimple_statement_omp_single): Rename to...
3948 (gimple_statement_omp_single_layout): ...this, expressing the
3949 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3950 (gimple_statement_omp_single): ...and reintroduce this name as
3951 a subclass of gimple_statement_omp_single_layout, expressing
3952 the invariant that code == GIMPLE_OMP_SINGLE.
3953 (gimple_statement_omp_teams): New class, subclassing
3954 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3955
3956 (gimple_statement_omp_atomic_store): Rename to...
3957 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3958 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3959 (gimple_statement_omp_atomic_store): ...and reintroduce this
3960 name as a subclass of gimple_statement_omp_atomic_store_layout
3961 with code == GIMPLE_OMP_ATOMIC_STORE.
3962 (gimple_statement_omp_return): New class, subclassing
3963 gimple_statement_omp_atomic_store_layout for the code
3964 GIMPLE_OMP_RETURN.
3965
3966 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3967 (is_a_helper <gimple_statement_resx>::test): New.
3968 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3969 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3970 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3971 (is_a_helper <gimple_statement_omp_return>::test): New.
3972 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3973 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3974 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3975 GIMPLE_OMP_TARGET.
3976 (is_a_helper <gimple_statement_omp_target>::test): New.
3977 (is_a_helper <gimple_statement_omp_single>::test): Only check
3978 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3979 (is_a_helper <gimple_statement_omp_teams>::test): New.
3980
3981 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3982 (is_a_helper <const gimple_statement_resx>::test): New.
3983 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3984 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3985 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3986 (is_a_helper <const gimple_statement_omp_return>::test): New.
3987 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3988 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3989 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3990 GIMPLE_OMP_TARGET.
3991 (is_a_helper <const gimple_statement_omp_target>::test): New.
3992 (is_a_helper <const gimple_statement_omp_single>::test): Only
3993 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3994 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3995
3996 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3997 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3998 gimple_statement_omp_atomic_store with downcasts to
3999 gimple_statement_omp_return, thus requiring that the code be
4000 GIMPLE_OMP_RETURN.
4001 (gimple_resx_region, gimple_resx_set_region): Replace bogus
4002 downcasts to gimple_statement_eh_ctrl with downcasts to
4003 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
4004 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
4005 Replace bogus downcasts to const gimple_statement_eh_ctrl with
4006 downcasts to gimple_statement_eh_dispatch, thus requiring that
4007 the code be GIMPLE_EH_DISPATCH.
4008 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
4009 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
4010 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
4011 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
4012 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
4013 gimple_statement_omp_parallel with downcasts to
4014 gimple_statement_omp_taskreg, thus requiring that the code be
4015 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
4016 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
4017 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
4018 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
4019 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
4020 gimple_omp_target_set_data_arg): Replace bogus downcasts to
4021 gimple_statement_omp_parallel with downcasts to
4022 gimple_statement_omp_target, thus requiring that the code be
4023 GIMPLE_OMP_TARGET.
4024 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
4025 gimple_omp_teams_set_clauses): Replace bogus downcasts to
4026 gimple_statement_omp_single with downcasts to
4027 gimple_statement_omp_teams, thus requiring that the code be
4028 GIMPLE_OMP_TEAMS.
4029
4030 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
4031 gimple_statement_resx.
4032 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
4033 gimple_statement_eh_dispatch.
4034
4035 2013-11-26 Jakub Jelinek <jakub@redhat.com>
4036
4037 PR tree-optimization/59014
4038 * tree-vrp.c (register_edge_assert_for_1): Don't look
4039 through conversions from non-integral types or through
4040 narrowing conversions.
4041
4042 PR target/59229
4043 * config/i386/i386.c (device_alg): Fix up formatting.
4044 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
4045 similarly to count && count < epilogue_size_needed. Fix up
4046 comment typo.
4047 * builtins.c (determine_block_size): Fix comment typo.
4048
4049 PR sanitizer/59258
4050 * ubsan.c (ubsan_source_location): Don't add any location
4051 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
4052 (ubsan_create_data): Strip block info from LOC.
4053
4054 PR middle-end/59273
4055 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
4056 if there isn't optab handler for the corresponding vector PLUS_EXPR.
4057
4058 PR rtl-optimization/59166
4059 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
4060 DF_REF_LOC in validate_change call.
4061 (split_live_ranges_for_shrink_wrap): Likewise.
4062
4063 PR middle-end/59150
4064 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
4065 of references to constant size types in simd loops, defer emitting
4066 initializer for the new_var, emit it later on only if not using
4067 SIMD arrays for it.
4068
4069 PR middle-end/59152
4070 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
4071 for the inner loop if collapse_bb is non-NULL.
4072 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
4073
4074 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
4075
4076 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
4077 a constant immediate before force_reg.
4078
4079 2013-11-26 Richard Biener <rguenther@suse.de>
4080
4081 PR tree-optimization/59245
4082 * tree-vrp.c (set_value_range): Assert that we don't have
4083 overflowed constants (but our infinities).
4084 (set_value_range_to_value): Drop all overflow flags.
4085 (vrp_visit_phi_node): Likewise.
4086 (vrp_visit_assignment_or_call): Use set_value_range_to_value
4087 to set a constant range.
4088
4089 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4090
4091 PR target/59290
4092 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
4093 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
4094 for zero_extend case.
4095
4096 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
4097
4098 PR bootstrap/55552
4099 * configure.ac (install_gold_as_default): New. Set to yes for
4100 --disable-ld or --enable-gold=default.
4101 (gcc_cv_ld_gold_srcdir): New.
4102 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
4103 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
4104 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
4105 * configure: Regenerated.
4106
4107 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
4108 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
4109 (original) [collect-ld && -fuse-ld=bfd]: Set to
4110 $ORIGINAL_LD_BFD_FOR_TARGET.
4111 (original) [collect-ld && -fuse-ld=gold]: Set to
4112 $ORIGINAL_LD_GOLD_FOR_TARGET.
4113 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
4114 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
4115
4116 2013-11-26 Terry Guo <terry.guo@arm.com>
4117
4118 * config/arm/arm.c (require_pic_register): Handle high pic base
4119 register for thumb-1.
4120 (arm_load_pic_register): Also initialize high pic base register.
4121 * doc/invoke.texi: Update documentation for option -mpic-register.
4122
4123 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
4124
4125 PR target/58314
4126 PR target/50751
4127 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
4128 Prefix function names with 'sh_'. Make them non-static.
4129 * config/sh/sh-protos.h (sh_disp_addr_displacement,
4130 sh_max_mov_insn_displacement): Add declarations.
4131 * config/sh/constraints.md (Q): Reject QImode.
4132 (Sdd): Use match_code "mem".
4133 (Snd): Fix erroneous matching of non-memory operands.
4134 * config/sh/predicates.md (short_displacement_mem_operand): New
4135 predicate.
4136 (general_movsrc_operand): Disallow PC relative QImode loads.
4137 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
4138 (*movqi, *movhi): Merge both insns into...
4139 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
4140 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
4141 on the operand types.
4142
4143 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
4144
4145 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4146 Remove unused variable save_config.
4147 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4148 assert.
4149
4150 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4151
4152 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4153 using other intrinsics.
4154 (vtbx3_<psu>8): Likewise.
4155
4156 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4157
4158 * config/aarch64/aarch64-builtins.c
4159 (aarch64_types_bsl_p_qualifiers): New.
4160 (aarch64_types_bsl_s_qualifiers): Likewise.
4161 (aarch64_types_bsl_u_qualifiers): Likewise.
4162 (TYPES_BSL_P): Likewise.
4163 (TYPES_BSL_S): Likewise.
4164 (TYPES_BSL_U): Likewise.
4165 (BUILTIN_VALLDIF): Likewise.
4166 (BUILTIN_VDQQH): Likewise.
4167 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4168 * config/aarch64/aarch64-simd.md
4169 (aarch64_simd_bsl<mode>_internal): Handle more modes.
4170 (aarch64_simd_bsl<mode>): Likewise.
4171 * config/aarch64/arm_neon.h
4172 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4173 * config/aarch64/iterators.md (VALLDIF): New.
4174 (Vbtype): Handle more modes.
4175
4176 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4177
4178 * config/aarch64/aarch64-builtins.c
4179 (aarch64_type_qualifiers): Add qualifier_poly.
4180 (aarch64_build_scalar_type): Also build Poly types.
4181 (aarch64_build_vector_type): Likewise.
4182 (aarch64_build_type): Likewise.
4183 (aarch64_build_signed_type): New.
4184 (aarch64_build_unsigned_type): Likewise.
4185 (aarch64_build_poly_type): Likewise.
4186 (aarch64_init_simd_builtins): Also handle Poly types.
4187
4188 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4189
4190 * config/aarch64/aarch64-builtins.c
4191 (VAR1): Use new naming scheme for aarch64_builtins.
4192 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4193
4194 2013-11-26 Richard Biener <rguenther@suse.de>
4195
4196 PR tree-optimization/59287
4197 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4198 Remove no longer necessary special-casing of union accesses.
4199
4200 2013-11-26 Richard Biener <rguenther@suse.de>
4201
4202 * pretty-print.c (output_buffer::~output_buffer): Really
4203 free the obstacks.
4204
4205 2013-11-25 Jeff Law <law@redhat.com>
4206
4207 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4208 invalidate loop information.
4209
4210 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4211
4212 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4213
4214 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4215
4216 PR target/53976
4217 PR target/59243
4218 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4219 comments.
4220 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4221 previously visited basic blocks before recursing instead of only one
4222 basic block.
4223
4224 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4225
4226 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4227 * config/aarch64/aarch64-cores.def (cortex-a53):
4228 Use cortexa53 tuning struct.
4229
4230 2013-11-25 Andrew Macleod <amacleod@redhat.com>
4231
4232 PR bootstrap/59260
4233 * fold-const.c: Include hash-table.h.
4234
4235 2013-11-25 Marek Polacek <polacek@redhat.com>
4236
4237 PR sanitizer/59258
4238 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4239
4240 2013-11-25 Richard Biener <rguenther@suse.de>
4241
4242 * tree-dfa.c: Remove unused convert.h include.
4243
4244 2013-11-25 Terry Guo <terry.guo@arm.com>
4245
4246 * doc/invoke.texi (-mslow-flash-data): Document new option.
4247 * config/arm/arm.opt (mslow-flash-data): New option.
4248 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4249 Declare it.
4250 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4251 are disabled.
4252 (arm_disable_literal_pool): Declare it.
4253 * config/arm/arm.c (arm_disable_literal_pool): New variable.
4254 (arm_option_override): Handle new option.
4255 (thumb2_legitimate_address_p): Don't allow symbol references when
4256 literal pools are disabled.
4257 (arm_max_const_double_inline_cost): New function.
4258 * config/arm/arm.md (types.md): Include it before ...
4259 (use_literal_pool): New attribute.
4260 (enabled): Use new attribute.
4261 (split pattern): Replace symbol+offset with MOVW/MOVT.
4262
4263 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4264
4265 PR bootstrap/59279
4266 Revert previous commit.
4267
4268 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4269
4270 * jump.c (reset_insn_reg_label_operand_notes): New function,
4271 split out from ...
4272 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
4273 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4274 split out from ...
4275 (delete_dead_jumptables): ... here. Handle cfglayout mode.
4276 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4277 expensive CFG cleanup is called for.
4278 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4279 (cfg_layout_finalize): Delete dead jump tables before re-building
4280 the insns chain.
4281 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4282 basic blocks, not before.
4283 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4284
4285 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4286 insns chain of a scheduling extended basic block, they cannot appear
4287 there in cfglayout mode.
4288
4289 2013-11-24 Tobias Burnus <burnus@net-b.de>
4290
4291 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4292
4293 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4294
4295 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4296 for little endian.
4297
4298 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
4299
4300 * graphite-sese-to-poly.c: Don't include extra "expr.h".
4301
4302 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4303
4304 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4305
4306 2013-11-23 David Edelson <dje.gcc@gmail.com>
4307 Andrew Dixie <andrewd@gentrack.com>
4308
4309 PR target/33704
4310 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4311 (COLLECT_SHARED_FINI_FUNC): Define.
4312
4313 * collect2.c (aix_shared_initname): Declare.
4314 (aix_shared_fininame): Declare.
4315 (symkind): Add SYM_AIXI and SYM_AIXD.
4316 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4317 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4318 (aixlazy_flag): Parse.
4319 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4320 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4321
4322 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
4323
4324 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4325 (rs6000_xcoff_select_section): Place decls with stricter alignment
4326 into named sections.
4327 (rs6000_xcoff_unique_section): Allow unique sections for
4328 uninitialized data with strict alignment.
4329
4330 2013-11-23 Jakub Jelinek <jakub@redhat.com>
4331
4332 PR tree-optimization/59154
4333 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4334 rhs1 of a cast and new_op is invariant, fold_convert it.
4335 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4336 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4337
4338 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
4339
4340 PR target/56788
4341 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4342 Declare as MULTI_ARG_1_SF instruction.
4343 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4344 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4345 from *xop_vmfrcz_<mode>.
4346 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4347 to merge scalar result with __A.
4348 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4349 result with __A.
4350
4351 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4352
4353 * gimplify.h (recalculate_side_effects): Delete.
4354 * gimplify.c (recalculate_side_effects): Make static and add comment.
4355
4356 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4357
4358 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4359 for the destination of a define_peephole2. Likewise register_operand
4360 rather than arith_reg_operand. Remove constraints from
4361 define_peephole2s.
4362
4363 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4364
4365 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4366 Delete.
4367 (mn10300_store_multiple_operation_p): Declare.
4368 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4369 Rename to...
4370 (mn10300_store_multiple_operation_p): ...this and remove mode
4371 argument.
4372 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4373 Define.
4374
4375 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4376
4377 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4378 (pop_multiple_operation): Delete.
4379 (analyze_push_multiple_operation): Declare.
4380 (analyze_pop_multiple_operation): Declare.
4381 * config/bfin/bfin.c (push_multiple_operation): Rename to...
4382 (analyze_push_multiple_operation): ...this and remove mode argument.
4383 (pop_multiple_operation): Rename to...
4384 (analyze_pop_multiple_operation): ...this and remove mode argument.
4385 * config/bfin/predicates.md (push_multiple_operation): Define.
4386 (pop_multiple_operation): Likewise.
4387
4388 2013-11-23 Alan Modra <amodra@gmail.com>
4389
4390 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4391
4392 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4393
4394 PR sanitizer/59061
4395 * common.opt (static-liblsan): Add.
4396 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4397 Define.
4398 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
4399 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4400 SANITIZE_RETURN.
4401 * opts.c (common_handle_option): Handle -fsanitize=leak.
4402 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4403 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4404 (LIBUBSAN_EARLY_SPEC): Remove.
4405 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4406 (SANITIZER_SPEC): Add -fsanitize=leak handling.
4407 (sanitize_spec_function): Handle %sanitize(leak).
4408 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4409
4410 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
4411 Jakub Jelinek <jakub@redhat.com>
4412
4413 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4414 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4415 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
4416 (ipa_modify_formal_parameters): Adjust caller. Remove
4417 synth_parm_prefix argument. Use operator enum instead of bit fields.
4418 Add assert for properly handling vector of references. Handle
4419 creating brand new parameters.
4420 (ipa_modify_call_arguments): Use operator enum instead of bit
4421 fields.
4422 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
4423 used.
4424 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4425 New functions.
4426 (ipa_dump_param_adjustments): Rename reduction to new_decl.
4427 Use operator enum instead of bit fields.
4428 * ipa-prop.h (enum ipa_parm_op): New.
4429 (struct ipa_parm_adjustment): New field op. Rename reduction
4430 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4431 and copy_param.
4432 (ipa_modify_formal_parameters): Remove last argument.
4433 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4434 ipa_get_adjustment_candidate): New prototypes.
4435 * tree-sra.c (turn_representatives_into_adjustments): Use operator
4436 enum. Set arg_prefix.
4437 (get_adjustment_for_base): Use operator enum.
4438 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4439 ipa-prop.c.
4440 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4441 (ipa_sra_modify_function_body): Same. No longer static.
4442 (sra_ipa_reset_debug_stmts): Use operator enum.
4443 (modify_function): Do not pass prefix argument.
4444
4445 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4446
4447 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4448 (ubsan_pass): Ignore clobber stmts.
4449
4450 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4451 * opts.c (common_handle_option): Add -fsanitize=return.
4452 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4453 or it into SANITIZE_UNDEFINED.
4454
4455 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4456 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4457 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4458 Don't instrument accesses to VAR_DECLs which are known to fit
4459 into their bounds and the vars are known to have shadow bytes
4460 indicating allowed access.
4461 (asan_dynamic_init_call): New function.
4462 (asan_add_global): If vnode->dynamically_initialized,
4463 set __has_dynamic_init to 1 instead of 0.
4464 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4465 * asan.h (asan_dynamic_init_call): New prototype.
4466 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4467
4468 2013-11-22 Martin Jambor <mjambor@suse.cz>
4469
4470 PR rtl-optimization/10474
4471 * ira.c (interesting_dest_for_shprep_1): New function.
4472 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4473 also check parallels.
4474
4475 2013-11-22 Jeff Law <law@redhat.com>
4476
4477 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4478 NULL for RHS, which we used to invalidate equivalences.
4479 (record_temporary_equivalences_from_phis): New bitmap arguments
4480 and a boolean indicating if we have passed a backedge. If we
4481 have passed a backedge, then set the appropriate bit in the
4482 bitmaps for the SRC & DEST of PHIs creating equivalences.
4483 (invalidate_equivalences, dummy_simplify): New functions.
4484 (cond_arg_set_in_b): Remove.
4485 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4486 arguments and a boolean indicating if we have passed a backedge.
4487 If we have passed a backedge, then perform invalidations as needed.
4488 (thread_around_empty_blocks): If we have seen a backedge, then
4489 use the dummy simplify routine.
4490 (thread_through_normal_block): Likewise. Pass bitmaps and
4491 backedge status to children. Do not pessimize so much when
4492 traversing backedges in the CFG.
4493 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4494 If we have seen a backedge, then use the dummy simplify routine.
4495 Do not pessimize so much when traversing backedges.
4496
4497 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
4498
4499 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4500 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4501
4502 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
4503
4504 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4505 PTA_PCLMUL and PTA_RDRND for Silvermont.
4506 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4507 for Silvermont.
4508
4509 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4510
4511 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4512
4513 * hooks.h (hook_uint_mode_0): Add Prototype.
4514 * hooks.c (hook_uint_mode_0): New default function.
4515 * target.def (atomic_align_for_mode): New target hook.
4516 * tree.c (build_atomic_base): Add alignment override parameter.
4517 (build_common_tree_nodes): Use atomic alignment override.
4518 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4519 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4520
4521 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4522
4523 * gimple.h: Remove all includes.
4524 (recalculate_side_effects): Move prototype to gimplify.h.
4525 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4526 * gengtype.c (open_base_files): Add gimple.h include list.
4527 * gimplify.h (recalculate_side_effects): Relocate prototype here.
4528 * gimple.c: Adjust include list.
4529 (recalculate_side_effects): Move to gimplify.c.
4530 * gimplify.c: Adjust include list.
4531 (recalculate_side_effects): Relocate from gimple.c.
4532 * alias.c: Add required include files removed from gimple.h.
4533 * asan.c: Likewise.
4534 * builtins.c: Likewise.
4535 * calls.c: Likewise.
4536 * cfgexpand.c: Likewise.
4537 * cfgloop.c: Likewise.
4538 * cfgloopmanip.c: Likewise.
4539 * cgraphbuild.c: Likewise.
4540 * cgraph.c: Likewise.
4541 * cgraphclones.c: Likewise.
4542 * cgraphunit.c: Likewise.
4543 * cilk-common.c: Likewise.
4544 * data-streamer.c: Likewise.
4545 * data-streamer-in.c: Likewise.
4546 * data-streamer-out.c: Likewise.
4547 * dse.c: Likewise.
4548 * dwarf2out.c: Likewise.
4549 * emit-rtl.c: Likewise.
4550 * except.c: Likewise.
4551 * expr.c: Likewise.
4552 * fold-const.c: Likewise.
4553 * function.c: Likewise.
4554 * gimple-builder.c: Likewise.
4555 * gimple-expr.c: Likewise.
4556 * gimple-fold.c: Likewise.
4557 * gimple-iterator.c: Likewise.
4558 * gimple-low.c: Likewise.
4559 * gimple-pretty-print.c: Likewise.
4560 * gimple-ssa-isolate-paths.c: Likewise.
4561 * gimple-ssa-strength-reduction.c: Likewise.
4562 * gimple-streamer-in.c: Likewise.
4563 * gimple-streamer-out.c: Likewise.
4564 * gimple-walk.c: Likewise.
4565 * gimplify-me.c: Likewise.
4566 * graphite-blocking.c: Likewise.
4567 * graphite.c: Likewise.
4568 * graphite-clast-to-gimple.c: Likewise.
4569 * graphite-dependences.c: Likewise.
4570 * graphite-interchange.c: Likewise.
4571 * graphite-optimize-isl.c: Likewise.
4572 * graphite-poly.c: Likewise.
4573 * graphite-scop-detection.c: Likewise.
4574 * graphite-sese-to-poly.c: Likewise.
4575 * internal-fn.c: Likewise.
4576 * ipa.c: Likewise.
4577 * ipa-cp.c: Likewise.
4578 * ipa-devirt.c: Likewise.
4579 * ipa-inline-analysis.c: Likewise.
4580 * ipa-inline.c: Likewise.
4581 * ipa-profile.c: Likewise.
4582 * ipa-prop.c: Likewise.
4583 * ipa-pure-const.c: Likewise.
4584 * ipa-reference.c: Likewise.
4585 * ipa-split.c: Likewise.
4586 * ipa-utils.c: Likewise.
4587 * langhooks.c: Likewise.
4588 * lto-cgraph.c: Likewise.
4589 * lto-compress.c: Likewise.
4590 * lto-opts.c: Likewise.
4591 * lto-section-in.c: Likewise.
4592 * lto-section-out.c: Likewise.
4593 * lto-streamer.c: Likewise.
4594 * lto-streamer-in.c: Likewise.
4595 * lto-streamer-out.c: Likewise.
4596 * omp-low.c: Likewise.
4597 * opts-global.c: Likewise.
4598 * passes.c: Likewise.
4599 * predict.c: Likewise.
4600 * profile.c: Likewise.
4601 * sese.c: Likewise.
4602 * stmt.c: Likewise.
4603 * stor-layout.c: Likewise.
4604 * symtab.c: Likewise.
4605 * targhooks.c: Likewise.
4606 * toplev.c: Likewise.
4607 * tracer.c: Likewise.
4608 * trans-mem.c: Likewise.
4609 * tree-affine.c: Likewise.
4610 * tree.c: Likewise.
4611 * tree-call-cdce.c: Likewise.
4612 * tree-cfg.c: Likewise.
4613 * tree-cfgcleanup.c: Likewise.
4614 * tree-chrec.c: Likewise.
4615 * tree-complex.c: Likewise.
4616 * tree-data-ref.c: Likewise.
4617 * tree-dfa.c: Likewise.
4618 * tree-eh.c: Likewise.
4619 * tree-emutls.c: Likewise.
4620 * tree-if-conv.c: Likewise.
4621 * tree-inline.c: Likewise.
4622 * tree-into-ssa.c: Likewise.
4623 * tree-loop-distribution.c: Likewise.
4624 * tree-nested.c: Likewise.
4625 * tree-nrv.c: Likewise.
4626 * tree-object-size.c: Likewise.
4627 * tree-outof-ssa.c: Likewise.
4628 * tree-parloops.c: Likewise.
4629 * tree-phinodes.c: Likewise.
4630 * tree-predcom.c: Likewise.
4631 * tree-pretty-print.c: Likewise.
4632 * tree-profile.c: Likewise.
4633 * tree-scalar-evolution.c: Likewise.
4634 * tree-sra.c: Likewise.
4635 * tree-ssa-address.c: Likewise.
4636 * tree-ssa-alias.c: Likewise.
4637 * tree-ssa.c: Likewise.
4638 * tree-ssa-ccp.c: Likewise.
4639 * tree-ssa-coalesce.c: Likewise.
4640 * tree-ssa-copy.c: Likewise.
4641 * tree-ssa-copyrename.c: Likewise.
4642 * tree-ssa-dce.c: Likewise.
4643 * tree-ssa-dom.c: Likewise.
4644 * tree-ssa-dse.c: Likewise.
4645 * tree-ssa-forwprop.c: Likewise.
4646 * tree-ssa-ifcombine.c: Likewise.
4647 * tree-ssa-live.c: Likewise.
4648 * tree-ssa-loop.c: Likewise.
4649 * tree-ssa-loop-ch.c: Likewise.
4650 * tree-ssa-loop-im.c: Likewise.
4651 * tree-ssa-loop-ivcanon.c: Likewise.
4652 * tree-ssa-loop-ivopts.c: Likewise.
4653 * tree-ssa-loop-manip.c: Likewise.
4654 * tree-ssa-loop-niter.c: Likewise.
4655 * tree-ssa-loop-prefetch.c: Likewise.
4656 * tree-ssa-loop-unswitch.c: Likewise.
4657 * tree-ssa-math-opts.c: Likewise.
4658 * tree-ssanames.c: Likewise.
4659 * tree-ssa-operands.c: Likewise.
4660 * tree-ssa-phiopt.c: Likewise.
4661 * tree-ssa-phiprop.c: Likewise.
4662 * tree-ssa-pre.c: Likewise.
4663 * tree-ssa-propagate.c: Likewise.
4664 * tree-ssa-reassoc.c: Likewise.
4665 * tree-ssa-sccvn.c: Likewise.
4666 * tree-ssa-sink.c: Likewise.
4667 * tree-ssa-strlen.c: Likewise.
4668 * tree-ssa-structalias.c: Likewise.
4669 * tree-ssa-tail-merge.c: Likewise.
4670 * tree-ssa-ter.c: Likewise.
4671 * tree-ssa-threadedge.c: Likewise.
4672 * tree-ssa-threadupdate.c: Likewise.
4673 * tree-ssa-uncprop.c: Likewise.
4674 * tree-ssa-uninit.c: Likewise.
4675 * tree-stdarg.c: Likewise.
4676 * tree-streamer.c: Likewise.
4677 * tree-streamer-in.c: Likewise.
4678 * tree-streamer-out.c: Likewise.
4679 * tree-switch-conversion.c: Likewise.
4680 * tree-tailcall.c: Likewise.
4681 * tree-vect-data-refs.c: Likewise.
4682 * tree-vect-generic.c: Likewise.
4683 * tree-vect-loop.c: Likewise.
4684 * tree-vect-loop-manip.c: Likewise.
4685 * tree-vectorizer.c: Likewise.
4686 * tree-vect-patterns.c: Likewise.
4687 * tree-vect-slp.c: Likewise.
4688 * tree-vect-stmts.c: Likewise.
4689 * tree-vrp.c: Likewise.
4690 * tsan.c: Likewise.
4691 * ubsan.c: Likewise.
4692 * value-prof.c: Likewise.
4693 * varpool.c: Likewise.
4694 * var-tracking.c: Likewise.
4695 * vtable-verify.c: Likewise.
4696 * config/darwin.c: Likewise.
4697 * config/aarch64/aarch64-builtins.c: Likewise.
4698 * config/aarch64/aarch64.c: Likewise.
4699 * config/alpha/alpha.c: Likewise.
4700 * config/i386/i386.c: Likewise.
4701 * config/i386/winnt.c: Likewise.
4702 * config/ia64/ia64.c: Likewise.
4703 * config/m32c/m32c.c: Likewise.
4704 * config/mep/mep.c: Likewise.
4705 * config/mips/mips.c: Likewise.
4706 * config/rs6000/rs6000.c: Likewise.
4707 * config/s390/s390.c: Likewise.
4708 * config/sh/sh.c: Likewise.
4709 * config/sparc/sparc.c: Likewise.
4710 * config/spu/spu.c: Likewise.
4711 * config/stormy16/stormy16.c: Likewise.
4712 * config/tilegx/tilegx.c: Likewise.
4713 * config/tilepro/tilepro.c: Likewise.
4714 * config/xtensa/xtensa.c: Likewise.
4715
4716 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4717
4718 PR target/59216
4719 * arm.md (negdi_extendsidi): Fix invalid split.
4720
4721 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4722
4723 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4724 (vmov_n_f64): Likewise.
4725 (vmov_n_p8): Likewise.
4726 (vmov_n_p16): Likewise.
4727 (vmov_n_s8): Likewise.
4728 (vmov_n_s16): Likewise.
4729 (vmov_n_s32): Likewise.
4730 (vmov_n_s64): Likewise.
4731 (vmov_n_u8): Likewise.
4732 (vmov_n_u16): Likewise.
4733 (vmov_n_u32): Likewise.
4734 (vmov_n_u64): Likewise.
4735 (vmovq_n_f32): Likewise.
4736 (vmovq_n_f64): Likewise.
4737 (vmovq_n_p8): Likewise.
4738 (vmovq_n_p16): Likewise.
4739 (vmovq_n_s8): Likewise.
4740 (vmovq_n_s16): Likewise.
4741 (vmovq_n_s32): Likewise.
4742 (vmovq_n_s64): Likewise.
4743 (vmovq_n_u8): Likewise.
4744 (vmovq_n_u16): Likewise.
4745 (vmovq_n_u32): Likewise.
4746 (vmovq_n_u64): Likewise.
4747
4748 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4749
4750 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4751 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4752 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4753 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4754 and also change to float UNSPEC.
4755 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4756 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4757 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4758 result access for big-endian.
4759 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4760 intrinsics for big-endian.
4761 * config/aarch64/iterators.md (VDQV): Add V2DI.
4762 (VDQV_S): New.
4763 (vp): New mode attribute.
4764
4765 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4766
4767 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4768 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4769 big-endian.
4770
4771 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4772
4773 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4774 for big-endian element order.
4775 (aarch64_simd_vec_setv2di): Likewise.
4776 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4777 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4778 (vec_extract): Expand using aarch64_get_lane.
4779 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4780
4781 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4782
4783 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4784 and stores to be ABI compliant.
4785
4786 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4787
4788 * input.h (input_line): Remove.
4789 (input_filename): Likewise.
4790 (in_system_header): Likewise.
4791 * tree.h (EXPR_LOC_OR_HERE): Remove.
4792 * config/bfin/bfin.c (output_file_start): Remove use of
4793 input_filename macro.
4794 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4795 * gimplify.c (internal_get_tmp_var): Likewise.
4796 EXPR_LOC_OR_HERE macro.
4797 (shortcut_cond_expr): Likewise.
4798 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4799 use of input_filename macro.
4800 * tree.c (get_file_function_name): Likewise.
4801
4802 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4803
4804 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4805
4806 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4807
4808 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4809 (same sized) elements even if the type of the CONSTRUCTOR has
4810 vector mode and target is a REG.
4811
4812 2013-11-22 Richard Biener <rguenther@suse.de>
4813
4814 Revert
4815 2013-11-21 Richard Biener <rguenther@suse.de>
4816
4817 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4818 nb_iterations_upper_bound by one.
4819
4820 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4821
4822 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4823 for Silvermont.
4824
4825 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4826 core-avx-i, core-avx2 and slm.
4827
4828 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4829
4830 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4831
4832 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4833
4834 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4835 (stzx_24_<mode>): Likewise mra_operand.
4836
4837 2013-11-22 Jeff Law <law@redhat.com>
4838
4839 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4840 (thread_block_1): Do not cancel jump threads which go from
4841 inside a loop, through the header, then back inside the loop.
4842 (bb_ends_with_multiway_branch): New function.
4843 (thread_through_all_blocks): Handle threading cases which start
4844 in a loop through the loop header to a point in the loop.
4845
4846 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4847 jump thread path properly.
4848
4849 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4850
4851 * vec.h (auto_vec): New class.
4852 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4853 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4854 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4855 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4856 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4857 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4858 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4859 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4860 appropriate instead of vec for local variables.
4861
4862 2013-11-21 Teresa Johnson <tejohnson@google.com>
4863
4864 PR target/59233
4865 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4866 not understood by old_insns_match_p.
4867
4868 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4869
4870 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4871 little endian change.
4872 (vec_pack_sfix_trunc_v2df): Likewise.
4873 (vec_pack_ufix_trunc_v2df): Likewise.
4874 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4875 double checking of endianness.
4876
4877 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4878
4879 * tree-vect-generic.c (optimize_vector_constructor): New function.
4880 (expand_vector_operations_1): Call it.
4881
4882 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4883
4884 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4885 ix86_zero_extend_to_Pmode where appropriate.
4886 (ix86_expand_builtin): Ditto.
4887
4888 2013-11-21 Cary Coutant <ccoutant@google.com>
4889
4890 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4891 (add_linkage_name): Don't add linkage name for -g1.
4892 (decls_for_scope): Process subblocks for -g1.
4893 (dwarf2out_source_line): Output line tables for -g1.
4894 (dwarf2out_finish): Likewise.
4895 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4896 unused scopes for -g1.
4897 * opts.c (common_handle_option): Handle -g same as -g2.
4898 * doc/invoke.texi: Update description for -g1.
4899
4900 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4901
4902 * doc/extend.texi: Document htm builtins.
4903
4904 2013-11-21 Jeff Law <law@redhat.com>
4905
4906 PR tree-optimization/59221
4907 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4908 temporary equivalences when threading through joiner blocks.
4909
4910 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4911
4912 PR rtl-optimization/55950
4913 * real.c (real_sqrt): Remove function.
4914 * real.h (real_sqrt): Remove prototype.
4915 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4916 SQRT using real_sqrt.
4917
4918 2013-11-21 Richard Biener <rguenther@suse.de>
4919
4920 PR tree-optimization/59058
4921 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4922 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4923 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4924 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4925 (NITERS_KNOWN_P): Fold into ...
4926 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4927 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4928 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4929 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4930 (vect_do_peeling_for_alignment): Re-use precomputed niter
4931 instead of re-emitting it.
4932 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4933 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4934 * tree-vect-loop.c (vect_get_loop_niters): Use
4935 number_of_latch_executions.
4936 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4937 (vect_analyze_loop_form): Simplify.
4938 (vect_analyze_loop_operations): Move epilogue peeling code ...
4939 (vect_analyze_loop_2): ... here and adjust it to compute
4940 LOOP_VINFO_PEELING_FOR_NITER.
4941 (vect_estimate_min_profitable_iters): Use
4942 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4943 (vect_build_loop_niters): Emit on the preheader.
4944 (vect_generate_tmps_on_preheader): Likewise.
4945 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4946 of recomputing it. Adjust.
4947
4948 2013-11-21 Richard Biener <rguenther@suse.de>
4949
4950 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4951 LOC_LINE): Remove wrappers and fix all users.
4952 (struct _loop_vec_info): Remove loop_line_number member.
4953 (LOOP_VINFO_LOC): Remove.
4954 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4955 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4956 and LOC_LINE.
4957
4958 2013-11-21 Richard Biener <rguenther@suse.de>
4959
4960 * tree-ssa-forwprop.c (simplify_vce): New function.
4961 (ssa_forward_propagate_and_combine): Call it.
4962
4963 2013-11-21 Richard Biener <rguenther@suse.de>
4964
4965 * tree-vect-loop-manip.c (vect_build_loop_niters,
4966 vect_generate_tmps_on_preheader): Move ...
4967 * tree-vect-loop.c (vect_build_loop_niters,
4968 vect_generate_tmps_on_preheader): ... here and simplify.
4969 (vect_transform_loop): Call them here and pass down results
4970 to consumers.
4971 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4972 Get niter variables from caller.
4973 (vect_do_peeling_for_alignment): Likewise.
4974 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4975 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4976 Adjust prototypes.
4977
4978 2013-11-21 Richard Biener <rguenther@suse.de>
4979
4980 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4981 nb_iterations_upper_bound by one.
4982
4983 2013-11-21 Richard Biener <rguenther@suse.de>
4984
4985 PR tree-optimization/59058
4986 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4987 (build_size_arg_loc): Apply niter adjustment here.
4988 (generate_memset_builtin): Adjust.
4989 (generate_memcpy_builtin): Likewise.
4990 (classify_partition): Do not use number_of_exit_cond_executions
4991 but record whether niter needs to be adjusted.
4992
4993 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4994
4995 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4996 could throw.
4997
4998 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4999
5000 PR target/53976
5001 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
5002 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
5003 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
5004 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
5005 sh_optimize_sett_clrt pass.o to extra_objs.
5006
5007 2013-11-20 David Malcolm <dmalcolm@redhat.com>
5008
5009 * cfg.c (dump_edge_info): Remove redundant comment.
5010 * cfgcleanup.c (outgoing_edges_match): Reword reference to
5011 EXIT_BLOCK_PTR in comment.
5012 (try_optimize_cfg): Likewise.
5013 * cfgrtl.c (last_bb_in_partition): Likewise.
5014 * cgraph.c (cgraph_node_cannot_return): Likewise.
5015 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5016 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5017 * ipa-split.c (consider_split): Likewise.
5018 * profile.c (find_spanning_tree): Likewise.
5019 * sched-int.h (common_sched_info_def.add_block): Likewise.
5020 * dominance.c (calc_dfs_tree_nonrec): Reword references in
5021 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
5022 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
5023 in comments to now removed ENTRY_BLOCK_PTR macro.
5024 (tree_forwarder_block_p): Reword reference in comment to
5025 EXIT_BLOCK_PTR.
5026 * tree-inline.c (copy_cfg_body): Reword references in comments to
5027 now removed ENTRY_BLOCK_PTR macro.
5028 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5029 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
5030 a comma to the comment to clarify the meaning.
5031
5032 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
5033
5034 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
5035 Move to gimplify.c.
5036 (free_gimplify_stack): Add prototype.
5037 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
5038 (struct gimplify_ctx): Relocate here.
5039 (gimplify_ctxp): Make static.
5040 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
5041 list of struct gimplify_ctx.
5042 (push_gimplify_context): Add default parameters and allocate a struct
5043 from the pool.
5044 (pop_gimplify_context): Free a struct back to the pool.
5045 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
5046 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
5047 use a local 'struct gimplify_ctx'.
5048 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
5049 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
5050 Likewise.
5051 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
5052 lower_omp_ordered, lower_omp_critical, lower_omp_for,
5053 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
5054 lower_omp_teams, execute_lower_omp): Likewise.
5055 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
5056 * tree-inline.c (optimize_inline_calls): Likewise.
5057
5058 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5059
5060 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
5061 (vsx_extract_<mode>): Likewise.
5062 (*vsx_extract_<mode>_one_le): New LE variant on
5063 *vsx_extract_<mode>_zero.
5064 (vsx_extract_v4sf): Adjust for little endian.
5065
5066 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
5067
5068 PR rtl-optimization/59133
5069 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
5070 new pseudos.
5071 (lra_create_new_reg_with_unique_value): Pass new argument value.
5072 (lra_emit_add, lra_emit_move): Ditto.
5073 * lra-constraints.c (in_class_p): Add check for move for a new insn.
5074 (change_class): Rename to lra_change_class. Move to lra-int.h.
5075 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
5076 change_class.
5077 (process_addr_reg, process_addr): Ditto.
5078 (curr_insn_transform): Ditto. Add check on old pseudo for
5079 optional reload.
5080 * lra-int.h (lra_get_regno_hard_regno): Move below.
5081 (lra_change_class): Renamed change_class from lra.c.
5082
5083 2013-11-20 David Malcolm <dmalcolm@redhat.com>
5084
5085 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
5086 the children of a NULL pointer.
5087
5088 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
5089
5090 * lra.c (lra): Set lra_in_progress before check_rtl call.
5091 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
5092 adding clobber regs when LRA is running.
5093
5094 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
5095
5096 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
5097 restriction for ISA_MIPS32R2.
5098 (ISA_HAS_LXC1_SXC1): New macro.
5099 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
5100 (ISA_HAS_NMADD4_NMSUB4): Likewise.
5101 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
5102 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
5103 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
5104 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
5105 (*<ANYF:storex>_<P:mode>): Likewise.
5106
5107 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
5108
5109 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
5110 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
5111 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
5112 * config/mips/mips.md (recip_condition): Remove mode attribute.
5113 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
5114 <recip_condition>.
5115 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
5116
5117 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5118
5119 PR target/59207
5120 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
5121 Make sure neg2_ovf is set before being used.
5122
5123 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
5124
5125 * plugin.def: Add comment about register_callback and
5126 invoke_plugin_callbacks_full.
5127
5128 * plugin.c (register_callback, invoke_plugin_callbacks_full):
5129 Handle PLUGIN_INCLUDE_FILE event.
5130
5131 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5132
5133 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
5134 allow subregs of TDmode in FPRs of smaller size in little-endian.
5135 (rs6000_split_multireg_move): When splitting an access to TDmode
5136 in FPRs, do not use simplify_gen_subreg.
5137
5138 2013-11-20 Joseph Myers <joseph@codesourcery.com>
5139
5140 PR middle-end/21718
5141 * real.c: Remove comment about decimal string conversion and
5142 rounding errors.
5143 (real_from_string): Use MPFR to convert nonzero decimal constant
5144 to REAL_VALUE_TYPE.
5145
5146 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5147
5148 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5149 endianness of the D registers for the legacy encodings.
5150
5151 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
5152
5153 PR rtl-optimization/54300
5154 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5155 outputs in a single-set are killed from the value chains.
5156
5157 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5158
5159 * cgraph.h (varpool_node): Add need_bounds_init field.
5160 * lto-cgraph.c (lto_output_varpool_node): Output
5161 need_bounds_init value.
5162 (input_varpool_node): Read need_bounds_init value.
5163 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5164
5165 2013-11-20 Jan Hubicka <jh@suse.cz>
5166
5167 * opts.c (finish_options): Imply -ffat-lto-objects with
5168 -fno-use-linker-plugin.
5169 * common.opt (fuse-linker-plugin): Add var.
5170
5171 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5172
5173 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5174 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5175 (gen_type_die_with_usage): Skip pointer bounds.
5176 (dwarf2out_global_decl): Likewise.
5177
5178 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5179
5180 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5181 from all insns.
5182
5183 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
5184
5185 PR target/57756
5186 * config/i386/i386.c (ix86_option_override_internal): Add missed
5187 argument prefix for 'ix86_fpmath'.
5188 * config/i386/ssemath.h: Add missed definition of
5189 TARGET_FPMATH_DEFAULT_P macros.
5190
5191 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5192 Mike Stump <mikestump@comcast.net>
5193 Richard Sandiford <rdsandiford@googlemail.com>
5194
5195 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5196 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5197 tree_fits_shwi_p or tree_fits_uhwi_p.
5198 * builtins.c (fold_builtin_powi): Likewise.
5199 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5200 Likewise.
5201 * dbxout.c (dbxout_symbol): Likewise.
5202 * expr.c (expand_expr_real_1): Likewise.
5203 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5204 (fold_binary_loc): Likewise.
5205 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5206 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5207 * omp-low.c (lower_omp_for_lastprivate): Likewise.
5208 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5209 * stor-layout.c (compute_record_mode): Likewise.
5210 * tree-cfg.c (verify_expr): Likewise.
5211 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5212 * tree-pretty-print.c (dump_array_domain): Likewise.
5213 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5214 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5215 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5216 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5217 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5218 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5219 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5220 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5221 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5222 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5223 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5224 (create_variable_info_for_1): Likewise.
5225 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5226 (vect_verify_datarefs_alignment): Likewise.
5227 (vect_analyze_data_ref_accesses): Likewise.
5228 (vect_prune_runtime_alias_test_list): Likewise.
5229 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5230
5231 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5232
5233 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5234 overflow. Use tree_to_shwi.
5235
5236 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5237
5238 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5239 HOST_WIDE_INTs when folding (x >> c) << c.
5240
5241 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5242 Dominik Vogt <vogt@linux.vnet.ibm.com>
5243
5244 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5245 int comparisons with an out of range condition code.
5246 (s390_optimize_nonescaping_tx): Skip empty BBs.
5247 Generate the new tbegin RTX when removing the FPR clobbers (with
5248 two SETs).
5249 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
5250 result before doing the retry calculations.
5251 (s390_init_builtins): Make tbegin "returns_twice" and tabort
5252 "noreturn".
5253 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5254 the TDB setting part of an tbegin.
5255 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5256 ("tx_assist"): Set unused argument to an immediate zero instead of
5257 loading zero into a GPR and pass it as argument.
5258 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5259 Remove inline and related attributes.
5260 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5261 (__TM_is_illegal, __TM_is_footprint_exceeded)
5262 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5263
5264 2013-11-20 Richard Biener <rguenther@suse.de>
5265
5266 PR lto/59035
5267 * lto-opts.c (lto_write_options): Write defaults only if
5268 they were not explicitely specified. Also write
5269 -ffp-contract default.
5270 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5271 conservatively.
5272 (run_gcc): Pass through -ffp-contract.
5273
5274 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5275
5276 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5277
5278 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5279
5280 * config/aarch64/aarch64-builtins.c
5281 (aarch64_simd_itype): Remove.
5282 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5283 (VAR1): Use qualifiers.
5284 (aarch64_build_scalar_type): New.
5285 (aarch64_build_vector_type): Likewise.
5286 (aarch64_build_type): Likewise.
5287 (aarch64_init_simd_builtins): Refactor, remove special cases,
5288 consolidate main loop.
5289 (aarch64_simd_expand_args): Likewise.
5290
5291 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5292
5293 PR c/53001
5294 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5295
5296 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
5297
5298 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5299
5300 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5301
5302 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5303 to "vec<>" instances.
5304 (build_pretty_printer): Register the vec<>* prettyprinter.
5305
5306 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5307
5308 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5309 (GdbSubprinter.handles_type): New.
5310 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5311 (GdbSubprinterRegex): New subclass of GdbSubprinter.
5312 (GdbPrettyPrinters.add_printer): Remove in favor of...
5313 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5314 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5315 (GdbPrettyPrinters.__call__): Update search for subprinter
5316 to use handles_type method.
5317 (build_pretty_printer): Update registration of subprinters to
5318 use the new API above, supporting multiple spelling of each type,
5319 and allowing for future regex-based subprinters.
5320
5321 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5322
5323 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5324 V16QI vector splat case for little endian.
5325
5326 2013-11-19 Jeff Law <law@redhat.com>
5327
5328 * tree-ssa-threadedge.c (thread_across_edge): After threading
5329 through a joiner, allow threading a normal block requiring duplication.
5330
5331 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5332 jump threading requests that would muck up the loop structures.
5333
5334 * tree-ssa-threadupdate.c: Fix trailing whitespace.
5335 * tree-ssa-threadupdate.h: Likewise.
5336
5337 2013-11-19 Mike Stump <mikestump@comcast.net>
5338
5339 * gdbinit.in: Add pmz to print out mpz values.
5340
5341 2013-11-20 Jan Hubicka <jh@suse.cz>
5342
5343 * common.opt (ffat-lto-objects): Disable by default.
5344 * doc/invoke.texi (fat-lto-objects): Update documentation.
5345 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5346
5347 2013-11-19 Martin Jambor <mjambor@suse.cz>
5348
5349 PR rtl-optimization/59099
5350 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5351 here.
5352 (ira): Move init_reg_equiv and call to
5353 split_live_ranges_for_shrink_wrap up, remove analyses around call
5354 to find_moveable_pseudos.
5355
5356 2013-11-20 Alan Modra <amodra@gmail.com>
5357
5358 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5359 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5360 to strict alignment on older processors when little-endian.
5361 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5362 for ELFv2.
5363
5364 2013-11-19 Teresa Johnson <tejohnson@google.com>
5365
5366 * common/config/i386/i386-common.c: Enable
5367 -freorder-blocks-and-partition at -O2 and up for x86.
5368 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5369 * opts.c (finish_options): Only warn if
5370 -freorder-blocks-and-partition was set on command line.
5371
5372 2013-11-19 Sriraman Tallam <tmsriram@google.com>
5373
5374 * final.c (final_scan_insn): Emit a label for the split
5375 cold function part. Label name is formed by suffixing
5376 the original function name with "cold".
5377
5378 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5379
5380 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5381 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5382 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5383 (EXIT_BLOCK_PTR_FOR_FN): ...this.
5384 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5385 cfun be explicit.
5386 (EXIT_BLOCK_PTR): Likewise.
5387 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5388 (FOR_ALL_BB_FN): Update for renaming of
5389 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5390
5391 * cfg.c (init_flow): Likewise.
5392 (check_bb_profile): Likewise.
5393 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5394 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5395 * cfghooks.c (account_profile_record): Likewise.
5396 * cfgloop.c (init_loops_structure): Likewise.
5397 * cgraphbuild.c (record_eh_tables): Likewise.
5398 (compute_call_stmt_bb_frequency): Likewise.
5399 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5400 * lto-streamer-in.c (input_cfg): Likewise.
5401 * predict.c (maybe_hot_frequency_p): Likewise.
5402 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5403 * tree-inline.c (initialize_cfun): Likewise.
5404 (copy_cfg_body): Likewise.
5405 (copy_body): Likewise.
5406 (tree_function_versioning): Likewise.
5407
5408 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5409 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5410 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5411 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5412 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5413 (connect_traces): Likewise.
5414 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5415 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5416 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5417 macro.
5418 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5419 EXIT_BLOCK_PTR.
5420 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5421 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5422 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5423 (rotate_loop): Likewise.
5424 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5425 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5426 EXIT_BLOCK_PTR.
5427 (alloc_aux_for_edges): Likewise.
5428 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5429 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5430 EXIT_BLOCK_PTR.
5431 (compact_blocks): Likewise.
5432 (clear_edges): Likewise.
5433 * cfganal.c (single_pred_before_succ_order): Remove usage of
5434 ENTRY_BLOCK_PTR macro.
5435 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5436 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5437 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5438 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5439 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5440 EXIT_BLOCK_PTR.
5441 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5442 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5443 EXIT_BLOCK_PTR.
5444 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5445 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5446 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5447 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5448 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5449 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5450 EXIT_BLOCK_PTR.
5451 (print_edge_list): Likewise.
5452 (create_edge_list): Likewise.
5453 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5454 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5455 EXIT_BLOCK_PTR.
5456 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5457 macro.
5458 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5459 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5460 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5461 (try_optimize_cfg): Likewise.
5462 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5463 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5464 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5465 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5466 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5467 (try_forward_edges): Likewise.
5468 (try_simplify_condjump): Likewise.
5469 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5470 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5471 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5472 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5473 EXIT_BLOCK_PTR.
5474 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5475 (expand_gimple_tailcall): Likewise.
5476 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5477 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5478 (tidy_fallthru_edges): Likewise.
5479 (verify_flow_info): Likewise.
5480 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5481 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5482 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5483 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5484 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5485 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5486 (get_loop_body_in_dom_order): Likewise.
5487 (get_loop_body): Likewise.
5488 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5489 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5490 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5491 macro.
5492 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5493 (fix_bb_placement): Likewise.
5494 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5495 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5496 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5497 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5498 EXIT_BLOCK_PTR.
5499 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5500 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5501 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5502 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5503 macro.
5504 (fixup_fallthru_exit_predecessor): Remove uses of macros:
5505 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5506 (fixup_reorder_chain): Likewise.
5507 (relink_block_chain): Likewise.
5508 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5509 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5510 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5511 (force_one_exit_fallthru): Likewise.
5512 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5513 EXIT_BLOCK_PTR.
5514 (rtl_verify_edges): Likewise.
5515 (commit_edge_insertions): Likewise.
5516 (commit_one_edge_insertion): Likewise.
5517 (rtl_split_edge): Likewise.
5518 (force_nonfallthru_and_redirect): Likewise.
5519 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5520 (skip_insns_after_block): Likewise.
5521 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5522 EXIT_BLOCK_PTR.
5523 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5524 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5525 EXIT_BLOCK_PTR.
5526 (contains_no_active_insn_p): Likewise.
5527 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5528 (entry_of_function): Likewise.
5529 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5530 (fixup_new_cold_bb): Likewise.
5531 (patch_jump_insn): Likewise.
5532 (try_redirect_by_replacing_jump): Likewise.
5533 (block_label): Likewise.
5534 (could_fall_through): Likewise.
5535 (can_fallthru): Likewise.
5536 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5537 ENTRY_BLOCK_PTR macro.
5538 (rebuild_cgraph_edges): Likewise.
5539 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5540 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5541 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5542 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5543 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5544 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5545 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5546 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5547 macro.
5548 (reg_nonzero_bits_for_combine): Likewise.
5549 (set_nonzero_bits_and_sign_copies): Likewise.
5550 (combine_instructions): Likewise.
5551 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5552 EXIT_BLOCK_PTR.
5553 (bypass_conditional_jumps): Likewise.
5554 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5555 (find_implicit_sets): Likewise.
5556 (cprop_jump): Likewise.
5557 * cse.c (cse_cc_succs): Likewise.
5558 (cse_find_path): Likewise.
5559 * df-problems.c (df_lr_confluence_0): Likewise.
5560 * df-scan.c (df_entry_block_defs_collect): Remove usage of
5561 ENTRY_BLOCK_PTR macro.
5562 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5563 * dominance.c (iterate_fix_dominators): Remove usage of
5564 ENTRY_BLOCK_PTR macro.
5565 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5566 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5567 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5568 EXIT_BLOCK_PTR.
5569 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5570 macro.
5571 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5572 EXIT_BLOCK_PTR.
5573 * domwalk.c (cmp_bb_postorder): Likewise.
5574 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5575 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5576 macro.
5577 (sjlj_emit_function_enter): Likewise.
5578 * final.c (compute_alignments): Likewise.
5579 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5580 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5581 (reposition_prologue_and_epilogue_notes): Remove usage of
5582 EXIT_BLOCK_PTR macro.
5583 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5584 EXIT_BLOCK_PTR.
5585 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5586 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5587 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5588 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5589 (compute_code_hoist_vbeinout): Likewise.
5590 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5591 (pre_expr_reaches_here_p_work): Likewise.
5592 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5593 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5594 EXIT_BLOCK_PTR.
5595 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5596 ENTRY_BLOCK_PTR macro.
5597 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5598 macro.
5599 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5600 ENTRY_BLOCK_PTR macro.
5601 * graphite-scop-detection.c (build_scops): Likewise.
5602 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5603 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5604 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5605 macro.
5606 (unlink_bb_notes): Likewise.
5607 (create_check_block_twin): Likewise.
5608 (init_before_recovery): Likewise.
5609 (sched_extend_bb): Likewise.
5610 (priority): Likewise.
5611 * hw-doloop.c (reorder_loops): Likewise.
5612 (discover_loop): Likewise.
5613 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5614 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5615 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5616 (block_has_only_trap): Likewise.
5617 (cond_exec_find_if_block): Likewise.
5618 (merge_if_block): Likewise.
5619 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5620 ENTRY_BLOCK_PTR macro.
5621 (record_modified): Likewise.
5622 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5623 EXIT_BLOCK_PTR macro.
5624 (local_pure_const): Likewise.
5625 * ipa-split.c (split_function): Remove uses of macros:
5626 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5627 (find_split_points): Likewise.
5628 (consider_split): Likewise.
5629 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5630 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5631 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5632 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5633 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5634 ENTRY_BLOCK_PTR macro.
5635 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5636 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5637 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5638 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5639 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5640 macro.
5641 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5642 EXIT_BLOCK_PTR.
5643 (compute_farthest): Likewise.
5644 (compute_available): Likewise.
5645 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5646 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5647 EXIT_BLOCK_PTR.
5648 (compute_earliest): Likewise.
5649 (compute_antinout_edge): Likewise.
5650 * loop-iv.c (simplify_using_initial_values): Remove usage of
5651 ENTRY_BLOCK_PTR macro.
5652 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5653 macro.
5654 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5655 macro.
5656 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5657 macro.
5658 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5659 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5660 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5661 macro.
5662 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5663 macro.
5664 * lto-streamer-out.c (output_cfg): Likewise.
5665 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5666 EXIT_BLOCK_PTR.
5667 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5668 * mode-switching.c (optimize_mode_switching): Likewise.
5669 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5670 * modulo-sched.c (rest_of_handle_sms): Likewise.
5671 (canon_loop): Likewise.
5672 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5673 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5674 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5675 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5676 macro.
5677 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5678 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5679 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5680 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5681 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5682 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5683 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5684 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5685 (gimple_predict_edge): Likewise.
5686 (probably_never_executed): Likewise.
5687 * profile.c (find_spanning_tree): Remove uses of macros:
5688 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5689 (branch_prob): Likewise.
5690 (compute_branch_probabilities): Likewise.
5691 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5692 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5693 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5694 (set_bb_counts): Likewise.
5695 (correct_negative_edge_counts): Likewise.
5696 (get_exec_counts): Likewise.
5697 (instrument_values): Likewise.
5698 (instrument_edges): Likewise.
5699 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5700 EXIT_BLOCK_PTR.
5701 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5702 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5703 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5704 (reg_to_stack): Likewise.
5705 * regs.h (REG_N_SETS): Likewise.
5706 * reload.c (find_dummy_reload): Likewise.
5707 (combine_reloads): Likewise.
5708 (push_reload): Likewise.
5709 * reload1.c (has_nonexceptional_receiver): Remove usage of
5710 EXIT_BLOCK_PTR macro.
5711 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5712 macro.
5713 (find_basic_block): Likewise.
5714 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5715 (schedule_ebbs): Likewise.
5716 * sched-int.h (sel_sched_p): Likewise.
5717 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5718 macro.
5719 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5720 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5721 EXIT_BLOCK_PTR.
5722 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5723 (extend_rgns): Likewise.
5724 (find_single_block_region): Likewise.
5725 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5726 ENTRY_BLOCK_PTR macro.
5727 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5728 (sel_create_recovery_block): Likewise.
5729 (bb_ends_ebb_p): Likewise.
5730 (sel_bb_end): Likewise.
5731 (sel_bb_head): Likewise.
5732 (free_lv_sets): Likewise.
5733 (init_lv_sets): Likewise.
5734 (tidy_control_flow): Likewise.
5735 (maybe_tidy_empty_bb): Likewise.
5736 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5737 (_succ_iter_start): Likewise.
5738 (sel_bb_empty_or_nop_p): Likewise.
5739 (get_loop_exit_edges_unique_dests): Likewise.
5740 (inner_loop_header_p): Likewise.
5741 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5742 (find_block_for_bookkeeping): Likewise.
5743 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5744 (insert_store): Likewise.
5745 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5746 ENTRY_BLOCK_PTR macro.
5747 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5748 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5749 (gate_tm_init): Likewise.
5750 (tm_region_init): Likewise.
5751 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5752 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5753 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5754 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5755 EXIT_BLOCK_PTR.
5756 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5757 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5758 EXIT_BLOCK_PTR.
5759 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5760 macro.
5761 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5762 EXIT_BLOCK_PTR.
5763 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5764 macro.
5765 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5766 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5767 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5768 (build_gimple_cfg): Likewise.
5769 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5770 (gimple_can_merge_blocks_p): Likewise.
5771 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5772 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5773 * tree-complex.c (update_parameter_components): Remove usage of
5774 ENTRY_BLOCK_PTR macro.
5775 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5776 EXIT_BLOCK_PTR macro.
5777 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5778 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5779 (delete_unreachable_blocks_update_callgraph): Likewise.
5780 (initialize_cfun): Likewise.
5781 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5782 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5783 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5784 * tree-into-ssa.c (update_ssa): Likewise.
5785 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5786 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5787 (rewrite_into_ssa): Likewise.
5788 (rewrite_debug_stmt_uses): Likewise.
5789 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5790 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5791 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5792 ENTRY_BLOCK_PTR macro.
5793 * tree-scalar-evolution.h (block_before_loop): Likewise.
5794 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5795 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5796 EXIT_BLOCK_PTR.
5797 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5798 macro.
5799 (propagate_dereference_distances): Remove uses of macros:
5800 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5801 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5802 macro.
5803 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5804 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5805 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5806 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5807 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5808 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5809 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5810 (mark_control_dependent_edges_necessary): Remove uses of macros:
5811 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5812 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5813 ENTRY_BLOCK_PTR macro.
5814 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5815 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5816 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5817 (calculate_live_on_exit): Likewise.
5818 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5819 (loe_visit_block): Likewise.
5820 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5821 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5822 (live_on_entry): Likewise.
5823 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5824 EXIT_BLOCK_PTR macro.
5825 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5826 ENTRY_BLOCK_PTR macro.
5827 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5828 (bound_difference): Likewise.
5829 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5830 of EXIT_BLOCK_PTR macro.
5831 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5832 of ENTRY_BLOCK_PTR macro.
5833 * tree-ssa-math-opts.c (register_division_in): Likewise.
5834 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5835 * tree-ssa-pre.c (compute_avail): Likewise.
5836 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5837 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5838 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5839 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5840 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5841 EXIT_BLOCK_PTR.
5842 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5843 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5844 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5845 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5846 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5847 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5848 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5849 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5850 (find_pdom): Likewise.
5851 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5852 * tree-stdarg.c (reachable_at_most_once): Likewise.
5853 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5854 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5855 (eliminate_tail_call): Likewise.
5856 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5857 macro.
5858 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5859 * var-tracking.c (vt_initialize): Remove uses of macros:
5860 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5861 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5862 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5863 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5864 EXIT_BLOCK_PTR.
5865 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5866 macro.
5867 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5868 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5869 of EXIT_BLOCK_PTR macro.
5870 * config/arm/arm.c (require_pic_register): Remove usage of
5871 ENTRY_BLOCK_PTR macro.
5872 (arm_r3_live_at_start_p): Likewise.
5873 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5874 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5875 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5876 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5877 ENTRY_BLOCK_PTR macro.
5878 * config/i386/i386.c (ix86_count_insn): Likewise.
5879 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5880 (ix86_pad_short_function): Likewise.
5881 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5882 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5883 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5884 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5885 (ix86_expand_epilogue): Likewise.
5886 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5887 (ia64_expand_prologue): Likewise.
5888
5889 2013-11-19 Catherine Moore <clm@codesourcery.com>
5890
5891 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5892 * config/mips/mips.opt (mfix-rm7000): New option.
5893 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5894 * config/mips/mips.c (mips_reorg_process_insns): Disable
5895 noreorder for TARGET_FIX_RM7000.
5896
5897 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5898
5899 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5900
5901 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5902
5903 * config/arm/arm.c (arm_new_rtx_costs):
5904 Handle narrow mode add-shifts properly.
5905 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5906 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5907 Declare extern.
5908
5909 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5910
5911 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5912
5913 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5914
5915 * config/rs6000/vector.md ("mov<mode>"): Do not call
5916 rs6000_emit_le_vsx_move to move into or out of GPRs.
5917 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5918 source and destination are not GPR hard regs.
5919
5920 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5921
5922 * basic-block.h (n_edges_for_function): Rename macro to...
5923 (n_edges_for_fn): ...this.
5924 (n_edges): Eliminate macro as work towards making uses of
5925 cfun be explicit.
5926
5927 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5928 to "n_edges_for_fn".
5929
5930 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5931 (clear_edges): Likewise.
5932 (free_edge): Likewise.
5933 * cfghooks.c (dump_flow_info): Likewise.
5934 * cprop.c (is_too_expensive): Likewise.
5935 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5936 * gcse.c (is_too_expensive): Likewise.
5937 (prune_insertions_deletions): Likewise.
5938 * mcf.c (create_fixup_graph): Likewise.
5939 * sched-rgn.c (haifa_find_rgns): Likewise.
5940 * tree-cfg.c (gimple_dump_cfg): Likewise.
5941 * var-tracking.c (variable_tracking_main_1): Likewise.
5942
5943 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5944
5945 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5946 length lines.
5947
5948 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5949
5950 * config/aarch64/aarch64.md
5951 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5952
5953 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5954
5955 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5956
5957 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5958
5959 * varasm.c (align_variable): Give error instead of warning for
5960 unsupported alignment.
5961 (assemble_noswitch_variable): Likewise.
5962
5963 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5964
5965 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5966 cb_file_change.
5967
5968 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5969
5970 * loop-doloop.c (doloop_optimize_loops): Remove unused
5971 loop iterator argument from FOR_EACH_LOOP.
5972
5973 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5974
5975 Convert gimple types from a union to C++ inheritance.
5976 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5977 * coretypes.h (union gimple_statement_d): Remove declaration.
5978 (gimple): Convert from being a "union gimple_statement_d *"
5979 to a "struct gimple_statement_base *".
5980 (const_gimple): Likewise (with "const").
5981 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5982 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5983 * gimple-pretty-print.c (debug): Change parameter from a
5984 "gimple_statement_d &" to a "gimple_statement_base &".
5985 (debug): Change parameter from a "gimple_statement_d *" to
5986 a "gimple_statement_base *".
5987 * gimple-pretty-print.h (debug): Update declarations as above.
5988 * gimple.c (gimple_alloc_stat): Update for renaming of
5989 ggc_alloc_cleared_gimple_statement_d_stat to
5990 ggc_alloc_cleared_gimple_statement_stat.
5991 * gimple.h: Include "is-a.h" for use by is_a_helper
5992 specializations in followup autogenerated patch.
5993 (struct gimple statement_base): Make this type usable as a base
5994 class by adding "desc", "tag" and "variable_size" to GTY, thus
5995 using opting-in to gengtype's support for simple inheritance.
5996 (gimple_statement_with_ops_base): Convert to a subclass of
5997 gimple_statement_base, dropping initial "gsbase" field. Note that
5998 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5999 (gimple_statement_with_ops): Convert to a subclass of
6000 gimple_statement_with_ops_base, dropping initial "opbase" field.
6001 Add tag value to GTY marking. Update marking of op field to
6002 reflect how num_ops field is accessed via inheritance.
6003 (gimple_statement_with_memory_ops_base): Convert to a subclass of
6004 gimple_statement_with_ops_base, dropping initial "opbase" field.
6005 Add tag value to GTY marking.
6006 (gimple_statement_with_memory_ops): Convert to a subclass of
6007 public gimple_statement_with_memory_ops_base, dropping initial
6008 "membase" field. Add tag value to GTY marking. Update marking
6009 of op field to reflect how num_ops field is accessed via inheritance.
6010 (gimple_statement_call): Analogous changes that also update the
6011 marking of the "u" union.
6012 (gimple_statement_omp): Convert to a subclass of
6013 gimple_statement_base, dropping initial "gsbase" field, adding
6014 tag value to GTY marking.
6015 (gimple_statement_bind): Likewise.
6016 (gimple_statement_catch): Likewise.
6017 (gimple_statement_eh_filter): Likewise.
6018 (gimple_statement_eh_else): Likewise.
6019 (gimple_statement_eh_mnt): Likewise.
6020 (gimple_statement_phi): Likewise.
6021 (gimple_statement_eh_ctrl): Likewise.
6022 (gimple_statement_try): Likewise.
6023 (gimple_statement_wce): Likewise.
6024 (gimple_statement_asm): Convert to a subclass of
6025 gimple_statement_with_memory_ops_base, dropping initial
6026 "membase" field, adding tag value to GTY marking, and updating
6027 marking of op field.
6028 (gimple_statement_omp_critical): Convert to a subclass of
6029 gimple_statement_omp, dropping initial "omp" field, adding tag
6030 value to GTY marking.
6031 (gimple_statement_omp_for): Likewise.
6032 (gimple_statement_omp_parallel): Likewise.
6033 (gimple_statement_omp_task): Convert to a subclass of
6034 gimple_statement_omp_parallel, dropping initial "par" field,
6035 adding tag value to GTY marking.
6036 (gimple_statement_omp_sections): Convert to a subclass of
6037 gimple_statement_omp, dropping initial "omp" field, adding
6038 tag value to GTY marking.
6039 (gimple_statement_omp_continue): Convert to a subclass of
6040 gimple_statement_base, dropping initial "gsbase" field, adding
6041 tag value to GTY marking.
6042 (gimple_statement_omp_single): Convert to a subclass of
6043 gimple_statement_omp, dropping initial "omp" field, adding
6044 tag value to GTY marking.
6045 (gimple_statement_omp_atomic_load): Convert to a subclass of
6046 gimple_statement_base, dropping initial "gsbase" field, adding
6047 tag value to GTY marking.
6048 (gimple_statement_omp_atomic_store): Convert to a subclass of
6049 gimple_statement_base, dropping initial "gsbase" field, adding
6050 tag value to GTY marking.
6051 (gimple_statement_transaction): Convert to a subclass of
6052 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
6053 field, adding tag value to GTY marking.
6054 (union gimple_statement_d): Remove.
6055 * system.h (CONST_CAST_GIMPLE): Update to use
6056 "struct gimple_statement_base *" rather than
6057 "union gimple_statement_d *".
6058 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
6059 gimple_statement_d to gimple_statement_base.
6060
6061 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
6062 (gimple_set_use_ops): Port from union to usage of as_a.
6063 (gimple_set_vuse): Likewise.
6064 (gimple_set_vdef): Likewise.
6065 (gimple_call_internal_fn): Port from union to a static_cast,
6066 given that the type has already been asserted.
6067 (gimple_omp_body_ptr): Port from unchecked union usage to
6068 a static_cast.
6069 (gimple_omp_set_body): Likewise.
6070
6071 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
6072 gimple types to a true class hierarchy.
6073 (update_call_edge_frequencies): Likewise.
6074 (gsi_insert_seq_nodes_before): Likewise.
6075 (gsi_insert_seq_nodes_after): Likewise.
6076 (gsi_split_seq_after): Likewise.
6077 (gsi_set_stmt): Likewise.
6078 (gsi_split_seq_before): Likewise.
6079 (gsi_remove): Likewise.
6080 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
6081 (gsi_next): Likewise.
6082 (gsi_prev): Likewise.
6083 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
6084 * gimple-ssa.h (gimple_vuse_op): Likewise.
6085 (gimple_vdef_op): Likewise.
6086 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
6087 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
6088 * gimple.c (gimple_set_code): Likewise.
6089 (gimple_alloc_stat): Likewise.
6090 (gimple_set_subcode): Likewise.
6091 (gimple_build_call_internal_1): Likewise.
6092 (gimple_check_failed): Likewise.
6093 (gimple_call_flags): Likewise.
6094 (gimple_set_bb): Likewise.
6095 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
6096 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
6097 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
6098 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
6099 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
6100 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
6101 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
6102 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
6103 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
6104 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
6105 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
6106 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
6107 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
6108 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
6109 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
6110 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
6111 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
6112 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
6113 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
6114 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
6115 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
6116 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
6117 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
6118 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
6119 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
6120 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
6121 Likewise.
6122 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
6123 Likewise.
6124 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
6125 Likewise.
6126 (is_a_helper <const gimple_statement_omp_atomic_store>
6127 (const_gimple)): Likewise.
6128 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
6129 Likewise.
6130 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
6131 Likewise.
6132 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
6133 Likewise.
6134 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
6135 Likewise.
6136 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
6137 Likewise.
6138 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
6139 Likewise.
6140 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
6141 Likewise.
6142 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
6143 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
6144 Likewise.
6145 (gimple_seq_last): Update for conversion of gimple types to a true
6146 class hierarchy.
6147 (gimple_seq_set_last): Likewise.
6148 (gimple_code): Likewise.
6149 (gimple_bb): Likewise.
6150 (gimple_block): Likewise.
6151 (gimple_set_block): Likewise.
6152 (gimple_location): Likewise.
6153 (gimple_location_ptr): Likewise.
6154 (gimple_set_location): Likewise.
6155 (gimple_no_warning_p): Likewise.
6156 (gimple_set_no_warning): Likewise.
6157 (gimple_set_visited): Likewise.
6158 (gimple_visited_p): Likewise.
6159 (gimple_set_plf): Likewise.
6160 (gimple_plf): Likewise.
6161 (gimple_set_uid): Likewise.
6162 (gimple_uid): Likewise.
6163 (gimple_init_singleton): Likewise.
6164 (gimple_modified_p): Likewise.
6165 (gimple_set_modified): Likewise.
6166 (gimple_expr_code): Likewise.
6167 (gimple_has_volatile_ops): Likewise.
6168 (gimple_set_has_volatile_ops): Likewise.
6169 (gimple_omp_subcode): Likewise.
6170 (gimple_omp_set_subcode): Likewise.
6171 (gimple_omp_return_set_nowait): Likewise.
6172 (gimple_omp_section_set_last): Likewise.
6173 (gimple_omp_parallel_set_combined_p): Likewise.
6174 (gimple_omp_atomic_set_need_value): Likewise.
6175 (gimple_omp_atomic_set_seq_cst): Likewise.
6176 (gimple_num_ops): Likewise.
6177 (gimple_set_num_ops): Likewise.
6178 (gimple_assign_nontemporal_move_p): Likewise.
6179 (gimple_assign_set_nontemporal_move): Likewise.
6180 (gimple_assign_rhs_code): Likewise.
6181 (gimple_assign_set_rhs_code): Likewise.
6182 (gimple_call_internal_p): Likewise.
6183 (gimple_call_with_bounds_p): Likewise.
6184 (gimple_call_set_with_bounds): Likewise.
6185 (gimple_call_set_tail): Likewise.
6186 (gimple_call_tail_p): Likewise.
6187 (gimple_call_set_return_slot_opt): Likewise.
6188 (gimple_call_return_slot_opt_p): Likewise.
6189 (gimple_call_set_from_thunk): Likewise.
6190 (gimple_call_from_thunk_p): Likewise.
6191 (gimple_call_set_va_arg_pack): Likewise.
6192 (gimple_call_va_arg_pack_p): Likewise.
6193 (gimple_call_set_nothrow): Likewise.
6194 (gimple_call_set_alloca_for_var): Likewise.
6195 (gimple_call_alloca_for_var_p): Likewise.
6196 (gimple_call_copy_flags): Likewise.
6197 (gimple_cond_code): Likewise.
6198 (gimple_cond_set_code): Likewise.
6199 (gimple_cond_make_false): Likewise.
6200 (gimple_cond_make_true): Likewise.
6201 (gimple_asm_volatile_p): Likewise.
6202 (gimple_asm_set_volatile): Likewise.
6203 (gimple_asm_set_input): Likewise.
6204 (gimple_asm_input_p): Likewise.
6205 (gimple_try_kind): Likewise.
6206 (gimple_try_set_kind): Likewise.
6207 (gimple_try_catch_is_cleanup): Likewise.
6208 (gimple_try_set_catch_is_cleanup): Likewise.
6209 (gimple_wce_cleanup_eh_only): Likewise.
6210 (gimple_wce_set_cleanup_eh_only): Likewise.
6211 (gimple_debug_bind_p): Likewise.
6212 (gimple_debug_source_bind_p): Likewise.
6213 (gimple_omp_for_set_kind): Likewise.
6214 (gimple_omp_for_set_combined_p): Likewise.
6215 (gimple_omp_for_set_combined_into_p): Likewise.
6216 (gimple_omp_target_set_kind): Likewise.
6217 (gimple_transaction_subcode): Likewise.
6218 (gimple_transaction_set_subcode): Likewise.
6219 (gimple_predict_predictor): Likewise.
6220 (gimple_predict_set_predictor): Likewise.
6221 (gimple_predict_outcome): Likewise.
6222 (gimple_predict_set_outcome): Likewise.
6223 (gimple_transaction_set_label): Likewise.
6224 (gimple_transaction_set_body): Likewise.
6225 (gimple_transaction_label_ptr): Likewise.
6226 (gimple_transaction_label): Likewise.
6227 (gimple_transaction_body_ptr): Likewise.
6228 (gimple_omp_continue_set_control_use): Likewise.
6229 (gimple_omp_continue_control_use_ptr): Likewise.
6230 (gimple_omp_continue_control_use): Likewise.
6231 (gimple_omp_continue_set_control_def): Likewise.
6232 (gimple_omp_continue_control_def_ptr): Likewise.
6233 (gimple_omp_continue_control_def): Likewise.
6234 (gimple_omp_atomic_load_rhs_ptr): Likewise.
6235 (gimple_omp_atomic_load_rhs): Likewise.
6236 (gimple_omp_atomic_load_set_rhs): Likewise.
6237 (gimple_omp_atomic_load_lhs_ptr): Likewise.
6238 (gimple_omp_atomic_load_lhs): Likewise.
6239 (gimple_omp_atomic_load_set_lhs): Likewise.
6240 (gimple_omp_atomic_store_val_ptr): Likewise.
6241 (gimple_omp_atomic_store_val): Likewise.
6242 (gimple_omp_atomic_store_set_val): Likewise.
6243 (gimple_omp_for_cond): Likewise.
6244 (gimple_omp_for_set_cond): Likewise.
6245 (gimple_omp_sections_set_control): Likewise.
6246 (gimple_omp_sections_control_ptr): Likewise.
6247 (gimple_omp_sections_control): Likewise.
6248 (gimple_omp_sections_set_clauses): Likewise.
6249 (gimple_omp_sections_clauses_ptr): Likewise.
6250 (gimple_omp_sections_clauses): Likewise.
6251 (gimple_omp_teams_set_clauses): Likewise.
6252 (gimple_omp_teams_clauses_ptr): Likewise.
6253 (gimple_omp_teams_clauses): Likewise.
6254 (gimple_omp_target_set_data_arg): Likewise.
6255 (gimple_omp_target_data_arg_ptr): Likewise.
6256 (gimple_omp_target_data_arg): Likewise.
6257 (gimple_omp_target_set_child_fn): Likewise.
6258 (gimple_omp_target_child_fn_ptr): Likewise.
6259 (gimple_omp_target_child_fn): Likewise.
6260 (gimple_omp_target_set_clauses): Likewise.
6261 (gimple_omp_target_clauses_ptr): Likewise.
6262 (gimple_omp_target_clauses): Likewise.
6263 (gimple_omp_single_set_clauses): Likewise.
6264 (gimple_omp_single_clauses_ptr): Likewise.
6265 (gimple_omp_single_clauses): Likewise.
6266 (gimple_omp_task_set_arg_align): Likewise.
6267 (gimple_omp_task_arg_align_ptr): Likewise.
6268 (gimple_omp_task_arg_align): Likewise.
6269 (gimple_omp_task_set_arg_size): Likewise.
6270 (gimple_omp_task_arg_size_ptr): Likewise.
6271 (gimple_omp_task_arg_size): Likewise.
6272 (gimple_omp_task_set_copy_fn): Likewise.
6273 (gimple_omp_task_copy_fn_ptr): Likewise.
6274 (gimple_omp_task_copy_fn): Likewise.
6275 (gimple_omp_task_set_data_arg): Likewise.
6276 (gimple_omp_task_data_arg_ptr): Likewise.
6277 (gimple_omp_task_data_arg): Likewise.
6278 (gimple_omp_task_set_child_fn): Likewise.
6279 (gimple_omp_task_child_fn_ptr): Likewise.
6280 (gimple_omp_task_child_fn): Likewise.
6281 (gimple_omp_task_set_clauses): Likewise.
6282 (gimple_omp_task_clauses_ptr): Likewise.
6283 (gimple_omp_task_clauses): Likewise.
6284 (gimple_omp_parallel_set_data_arg): Likewise.
6285 (gimple_omp_parallel_data_arg_ptr): Likewise.
6286 (gimple_omp_parallel_data_arg): Likewise.
6287 (gimple_omp_parallel_set_child_fn): Likewise.
6288 (gimple_omp_parallel_child_fn_ptr): Likewise.
6289 (gimple_omp_parallel_child_fn): Likewise.
6290 (gimple_omp_parallel_set_clauses): Likewise.
6291 (gimple_omp_parallel_clauses_ptr): Likewise.
6292 (gimple_omp_parallel_clauses): Likewise.
6293 (gimple_omp_for_set_pre_body): Likewise.
6294 (gimple_omp_for_pre_body_ptr): Likewise.
6295 (gimple_omp_for_set_incr): Likewise.
6296 (gimple_omp_for_incr_ptr): Likewise.
6297 (gimple_omp_for_incr): Likewise.
6298 (gimple_omp_for_set_final): Likewise.
6299 (gimple_omp_for_final_ptr): Likewise.
6300 (gimple_omp_for_final): Likewise.
6301 (gimple_omp_for_set_initial): Likewise.
6302 (gimple_omp_for_initial_ptr): Likewise.
6303 (gimple_omp_for_initial): Likewise.
6304 (gimple_omp_for_set_index): Likewise.
6305 (gimple_omp_for_index_ptr): Likewise.
6306 (gimple_omp_for_index): Likewise.
6307 (gimple_omp_for_collapse): Likewise.
6308 (gimple_omp_for_set_clauses): Likewise.
6309 (gimple_omp_for_clauses_ptr): Likewise.
6310 (gimple_omp_for_clauses): Likewise.
6311 (gimple_omp_critical_set_name): Likewise.
6312 (gimple_omp_critical_name_ptr): Likewise.
6313 (gimple_omp_critical_name): Likewise.
6314 (gimple_eh_dispatch_set_region): Likewise.
6315 (gimple_eh_dispatch_region): Likewise.
6316 (gimple_resx_set_region): Likewise.
6317 (gimple_resx_region): Likewise.
6318 (gimple_phi_set_arg): Likewise.
6319 (gimple_phi_arg): Likewise.
6320 (gimple_phi_set_result): Likewise.
6321 (gimple_phi_result_ptr): Likewise.
6322 (gimple_phi_result): Likewise.
6323 (gimple_phi_num_args): Likewise.
6324 (gimple_phi_capacity): Likewise.
6325 (gimple_wce_set_cleanup): Likewise.
6326 (gimple_wce_cleanup_ptr): Likewise.
6327 (gimple_try_set_cleanup): Likewise.
6328 (gimple_try_set_eval): Likewise.
6329 (gimple_try_cleanup_ptr): Likewise.
6330 (gimple_try_eval_ptr): Likewise.
6331 (gimple_eh_else_set_e_body): Likewise.
6332 (gimple_eh_else_set_n_body): Likewise.
6333 (gimple_eh_else_e_body_ptr): Likewise.
6334 (gimple_eh_else_n_body_ptr): Likewise.
6335 (gimple_eh_must_not_throw_set_fndecl): Likewise.
6336 (gimple_eh_must_not_throw_fndecl): Likewise.
6337 (gimple_eh_filter_set_failure): Likewise.
6338 (gimple_eh_filter_set_types): Likewise.
6339 (gimple_eh_filter_failure_ptr): Likewise.
6340 (gimple_eh_filter_types_ptr): Likewise.
6341 (gimple_eh_filter_types): Likewise.
6342 (gimple_catch_set_handler): Likewise.
6343 (gimple_catch_set_types): Likewise.
6344 (gimple_catch_handler_ptr): Likewise.
6345 (gimple_catch_types_ptr): Likewise.
6346 (gimple_catch_types): Likewise.
6347 (gimple_asm_string): Likewise.
6348 (gimple_asm_set_label_op): Likewise.
6349 (gimple_asm_label_op): Likewise.
6350 (gimple_asm_set_clobber_op): Likewise.
6351 (gimple_asm_clobber_op): Likewise.
6352 (gimple_asm_set_output_op): Likewise.
6353 (gimple_asm_output_op_ptr): Likewise.
6354 (gimple_asm_output_op): Likewise.
6355 (gimple_asm_set_input_op): Likewise.
6356 (gimple_asm_input_op_ptr): Likewise.
6357 (gimple_asm_input_op): Likewise.
6358 (gimple_asm_nlabels): Likewise.
6359 (gimple_asm_nclobbers): Likewise.
6360 (gimple_asm_noutputs): Likewise.
6361 (gimple_asm_ninputs): Likewise.
6362 (gimple_bind_set_block): Likewise.
6363 (gimple_bind_block): Likewise.
6364 (gimple_bind_add_seq): Likewise.
6365 (gimple_bind_add_stmt): Likewise.
6366 (gimple_bind_set_body): Likewise.
6367 (gimple_bind_body_ptr): Likewise.
6368 (gimple_bind_append_vars): Likewise.
6369 (gimple_bind_set_vars): Likewise.
6370 (gimple_bind_vars): Likewise.
6371 (gimple_call_clobber_set): Likewise.
6372 (gimple_call_use_set): Likewise.
6373 (gimple_call_set_internal_fn): Likewise.
6374 (gimple_call_set_fntype): Likewise.
6375 (gimple_call_fntype): Likewise.
6376 (gimple_omp_return_lhs_ptr): Likewise.
6377 (gimple_omp_return_lhs): Likewise.
6378 (gimple_omp_return_set_lhs): Likewise.
6379 (gimple_omp_taskreg_set_data_arg): Likewise.
6380 (gimple_omp_taskreg_data_arg_ptr): Likewise.
6381 (gimple_omp_taskreg_data_arg): Likewise.
6382 (gimple_omp_taskreg_set_child_fn): Likewise.
6383 (gimple_omp_taskreg_child_fn_ptr): Likewise.
6384 (gimple_omp_taskreg_child_fn): Likewise.
6385 (gimple_omp_taskreg_set_clauses): Likewise.
6386 (gimple_omp_taskreg_clauses_ptr): Likewise.
6387 (gimple_omp_taskreg_clauses): Likewise.
6388 (gimple_vuse): Likewise.
6389 (gimple_vdef): Likewise.
6390 (gimple_vuse_ptr): Likewise.
6391 (gimple_vdef_ptr): Likewise.
6392 * tree-inline.c (copy_debug_stmt): Likewise.
6393 * tree-phinodes.c (make_phi_node): Likewise.
6394
6395 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6396 (is_a_helper <gimple_statement_with_ops>::test): New.
6397 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6398 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6399
6400 * gimple-streamer-in.c (input_gimple_stmt): Port from union
6401 access to use of as_a.
6402 * gimple.c (gimple_build_asm_1): Likewise.
6403 (gimple_build_try): Likewise. Also, return a specific subclass
6404 rather than just gimple.
6405 (gimple_build_resx): Port from union access to use of as_a.
6406 (gimple_build_eh_dispatch): Likewise.
6407 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
6408 now that gengtype no longer provides a typed allocator function.
6409 (gimple_copy): Likewise.
6410 * gimple.h (gimple_build_try): Return a specific subclass rather
6411 than just gimple.
6412 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6413 with subclass access by making use of new return type of
6414 gimple_build_try.
6415 * tree-phinodes.c: (allocate_phi_node): Return a
6416 "gimple_statement_phi *" rather than just a gimple.
6417 (resize_phi_node): Likewise.
6418 (make_phi_node): Replace union access with subclass access by
6419 making use of new return type of allocate_phi_node.
6420 (reserve_phi_args_for_new_edge): Replace union access with as_a.
6421 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6422 than just a gimple.
6423 (remove_phi_args): Update for change to remove_phi_arg_num.
6424
6425 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6426 code field to reflect inheritance, rather than embedding of
6427 the base gimple type.
6428
6429 2013-11-19 Richard Biener <rguenther@suse.de>
6430
6431 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6432 and destructor and make fel_next a member function.
6433 (fel_next): Transform into ...
6434 (loop_iterator::next): ... this.
6435 (fel_init): Transform into ...
6436 (loop_iterator::loop_iterator): ... this.
6437 (loop_iterator::~loop_iterator): New.
6438 (FOR_EACH_LOOP): Remove loop-iterator argument.
6439 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6440 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6441 graphite-clast-to-gimple.c, graphite-scop-detection.c,
6442 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6443 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6444 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6445 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6446 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6447 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6448 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6449 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6450 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6451 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
6452 FOR_EACH_LOOP_BREAK with break.
6453
6454 2013-11-19 Richard Biener <rguenther@suse.de>
6455
6456 PR tree-optimization/59164
6457 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6458 Uncomment assert.
6459 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6460 whether we can create an epilogue loop to reflect thecases where
6461 we create one.
6462
6463 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
6464
6465 * graphite-sese-to-poly.c: Include expr.h.
6466
6467 2013-11-19 Richard Biener <rguenther@suse.de>
6468
6469 PR middle-end/58956
6470 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6471 loads into stmts that may clobber it.
6472
6473 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
6474
6475 * cgraphunit.c (symtab_terminator): New variable.
6476 (queued_nodes): Renamed from first. Use symtab_terminator as
6477 initializer.
6478 (analyze_functions): Adjust accordingly.
6479 (cgraph_process_new_functions): Return void.
6480 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6481
6482 2013-11-19 Marek Polacek <polacek@redhat.com>
6483
6484 * opts.c (common_handle_option): Add -fsanitize=null option.
6485 Turn off -fdelete-null-pointer-checks option when doing the
6486 NULL pointer checking.
6487 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6488 * tree-pass.h (make_pass_ubsan): Declare.
6489 (make_pass_sanopt): Declare.
6490 * timevar.def (TV_TREE_UBSAN): New timevar.
6491 * passes.def: Add pass_sanopt and pass_ubsan.
6492 * ubsan.h (ubsan_null_ckind): New enum.
6493 (ubsan_mismatch_data): New struct.
6494 (ubsan_expand_null_ifn): Declare.
6495 (ubsan_create_data): Adjust declaration.
6496 (ubsan_type_descriptor): Likewise.
6497 * asan.c: Include "ubsan.h".
6498 (pass_data_sanopt): New pass.
6499 (execute_sanopt): New function.
6500 (gate_sanopt): Likewise.
6501 (make_pass_sanopt): Likewise.
6502 (class pass_sanopt): New class.
6503 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6504 gimple-iterator.h and cfgloop.h.
6505 (PROB_VERY_UNLIKELY): Define.
6506 (tree_type_map_hash): New function.
6507 (ubsan_type_descriptor): Add new parameter.
6508 Improve type name generation.
6509 (ubsan_create_data): Add new parameter. Add pointer data into
6510 ubsan structure.
6511 (ubsan_expand_null_ifn): New function.
6512 (instrument_member_call): Likewise.
6513 (instrument_mem_ref): Likewise.
6514 (instrument_null): Likewise.
6515 (ubsan_pass): Likewise.
6516 (gate_ubsan): Likewise.
6517 (make_pass_ubsan): Likewise.
6518 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6519 (class pass_ubsan): New class.
6520 (pass_data_ubsan): New pass.
6521 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6522 * internal-fn.c (expand_UBSAN_NULL): New function.
6523 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6524 even when !flag_toplevel_reorder.
6525 * internal-fn.def (UBSAN_NULL): New.
6526
6527 2013-11-19 Jan Hubicka <jh@suse.cz>
6528
6529 * cgraph.c (cgraph_create_indirect_edge): Use
6530 get_polymorphic_call_info.
6531 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6532 maybe_in_construction and maybe_derived_type.
6533 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6534 (ipa_dummy_polymorphic_call_context): New global var.
6535 (possible_polymorphic_call_targets): Add context paramter.
6536 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6537 (possible_polymorphic_call_target_p): Likewise.
6538 (get_polymorphic_call_info): New function.
6539 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6540 (add_type_duplicate): Remove forgotten debug output.
6541 (method_class_type): Add sanity check.
6542 (maybe_record_node): Add FINALP parameter.
6543 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6544 by info by get_binfo_at_offset.
6545 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6546 parameters; pass them to record-binfo.
6547 (polymorphic_call_target_d): Add context and FINAL.
6548 (polymorphic_call_target_hasher::hash): Hash context.
6549 (polymorphic_call_target_hasher::equal): Compare context.
6550 (free_polymorphic_call_targets_hash):
6551 (get_class_context): New function.
6552 (contains_type_p): New function.
6553 (get_polymorphic_call_info): New function.
6554 (walk_bases): New function.
6555 (possible_polymorphic_call_targets): Add context parameter; honnor it.
6556 (dump_possible_polymorphic_call_targets): Dump context.
6557 (possible_polymorphic_call_target_p): Add context.
6558 (update_type_inheritance_graph): Update comment.s
6559 (ipa_set_jf_known_type): Assert that compoentn type is known.
6560 (ipa_note_param_call): Do not tamper with offsets.
6561 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6562 outer type.
6563 (update_indirect_edges_after_inlining): Likewise.
6564 (ipa_write_indirect_edge_info): Stream new fields.
6565 (ipa_read_indirect_edge_info): Stream in new fields.
6566
6567 2013-11-19 Jan Hubicka <jh@suse.cz>
6568
6569 * tree-pretty-print.c (dump_generic_node): Print class type of
6570 OBJ_TYPE_REF.
6571
6572 2013-11-19 Joey Ye <joey.ye@arm.com>
6573
6574 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6575 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6576 for new option.
6577 * config/arm/arm.c (arm_option_override): By default disable
6578 -marm-pic-data-is-text-relative.
6579 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6580 (arm_assemble_integer): Likewise.
6581 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6582 New macro to initialize -marm-pic-data-is-text-relative.
6583
6584 2013-11-19 Bin Cheng <bin.cheng@arm.com>
6585
6586 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6587 (address_cost_data): New field.
6588 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6589 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
6590
6591 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6592
6593 * config/aarch64/aarch64.md: Remove v8type from all insns.
6594
6595 2013-11-19 Richard Biener <rguenther@suse.de>
6596
6597 PR tree-optimization/57517
6598 * tree-predcom.c (combinable_refs_p): Verify the combination
6599 is always executed when the refs are.
6600
6601 2013-11-19 Jeff Law <law@redhat.com>
6602
6603 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6604 (copy_phi_arg_into_existing_phi): New function.
6605 (any_remaining_duplicated_blocks): Likewise.
6606 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6607 blocks on a jump threading path.
6608
6609 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6610 thread through a joiner which has the latch edge.
6611
6612 2013-11-19 Jan Hubicka <jh@suse.cz>
6613
6614 * md.texi (setmem): Document new parameter.
6615 * optabs.c (maybe_gen_insn): Support 9 operands.
6616 * builtins.c (determine_block_size): Add probable_max_size;
6617 support anti-ranges.
6618 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6619 probable_max_size.
6620 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6621 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6622 Likewise.
6623 * expr.h (emit_block_move_hints, clear_storage_hints,
6624 set_storage_via_setmem): Update prototype.
6625 * i386.md (setmem, movmem patterns): Add 9th operand.
6626 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6627 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6628 argument; pass it to decide_alg.
6629
6630 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6631
6632 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6633 (n_basic_blocks_for_fn): ...this.
6634
6635 (n_basic_blocks): Eliminate macro as work towards making uses of
6636 cfun be explicit.
6637
6638 * cfgloop.c (init_loops_structure): Update for renaming of
6639 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6640 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6641 * ipa-utils.c (ipa_merge_profiles): Likewise.
6642 * lto-streamer-in.c (make_new_block): Likewise.
6643 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6644 (dump_function_to_file): Likewise.
6645
6646 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6647 macro with "n_basic_blocks_for_fn (cfun)".
6648 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6649 (duplicate_computed_gotos): Likewise.
6650 (reorder_basic_blocks): Likewise.
6651 * bt-load.c (augment_live_range): Likewise.
6652 * cfg.c (expunge_block): Likewise.
6653 (compact_blocks): Likewise.
6654 * cfganal.c (single_pred_before_succ_order): Likewise.
6655 (compute_idf): Likewise.
6656 (flow_dfs_compute_reverse_init): Likewise.
6657 (pre_and_rev_post_order_compute): Likewise.
6658 (pre_and_rev_post_order_compute_fn): Likewise.
6659 (inverted_post_order_compute): Likewise.
6660 (post_order_compute): Likewise.
6661 (print_edge_list): Likewise.
6662 (find_unreachable_blocks): Likewise.
6663 (mark_dfs_back_edges): Likewise.
6664 * cfgcleanup.c (try_optimize_cfg): Likewise.
6665 (try_forward_edges): Likewise.
6666 * cfghooks.c (dump_flow_info): Likewise.
6667 * cfgloop.c (verify_loop_structure): Likewise.
6668 (get_loop_body): Likewise.
6669 (flow_loops_find): Likewise.
6670 * cfgloopmanip.c (add_loop): Likewise.
6671 (remove_path): Likewise.
6672 (find_path): Likewise.
6673 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6674 (rtl_verify_bb_layout): Likewise.
6675 (entry_of_function): Likewise.
6676 (rtl_create_basic_block): Likewise.
6677 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6678 * cprop.c (one_cprop_pass): Likewise.
6679 (is_too_expensive): Likewise.
6680 * df-core.c (df_compute_cfg_image): Likewise.
6681 (df_compact_blocks): Likewise.
6682 (df_worklist_dataflow_doublequeue): Likewise.
6683 * dominance.c (calculate_dominance_info): Likewise.
6684 (calc_dfs_tree): Likewise.
6685 (calc_dfs_tree_nonrec): Likewise.
6686 (init_dom_info): Likewise.
6687 * domwalk.c (cmp_bb_postorder): Likewise.
6688 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6689 (generate_setjmp_warnings): Likewise.
6690 * fwprop.c (build_single_def_use_links): Likewise.
6691 * gcse.c (is_too_expensive): Likewise.
6692 (one_code_hoisting_pass): Likewise.
6693 (one_pre_gcse_pass): Likewise.
6694 * graphite.c (graphite_initialize): Likewise.
6695 * haifa-sched.c (haifa_sched_init): Likewise.
6696 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6697 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6698 * ira-build.c (ira_build): Likewise.
6699 * lcm.c (compute_nearerout): Likewise.
6700 (compute_available): Likewise.
6701 (compute_laterin): Likewise.
6702 (compute_antinout_edge): Likewise.
6703 * lra-lives.c (lra_create_live_ranges): Likewise.
6704 * lra.c (has_nonexceptional_receiver): Likewise.
6705 * mcf.c (create_fixup_graph): Likewise.
6706 * profile.c (branch_prob): Likewise.
6707 * reg-stack.c (convert_regs_2): Likewise.
6708 * regrename.c (regrename_analyze): Likewise.
6709 * reload1.c (has_nonexceptional_receiver): Likewise.
6710 * reorg.c (dbr_schedule): Likewise.
6711 * sched-deps.c (sched_deps_init): Likewise.
6712 * sched-ebb.c (schedule_ebbs): Likewise.
6713 * sched-rgn.c (extend_regions): Likewise.
6714 (schedule_insns): Likewise.
6715 (sched_rgn_init): Likewise.
6716 (extend_rgns): Likewise.
6717 (haifa_find_rgns): Likewise.
6718 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6719 (sel_recompute_toporder): Likewise.
6720 * sel-sched.c (run_selective_scheduling): Likewise.
6721 * store-motion.c (one_store_motion_pass): Likewise.
6722 (remove_reachable_equiv_notes): Likewise.
6723 * tracer.c (tracer): Likewise.
6724 (tail_duplicate): Likewise.
6725 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6726 (dump_cfg_stats): Likewise.
6727 (gimple_dump_cfg): Likewise.
6728 (create_bb): Likewise.
6729 (build_gimple_cfg): Likewise.
6730 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6731 * tree-inline.c (optimize_inline_calls): Likewise.
6732 (fold_marked_statements): Likewise.
6733 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6734 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6735 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6736 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6737 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6738 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6739 * tree-ssa-pre.c (do_pre): Likewise.
6740 (init_pre): Likewise.
6741 (compute_avail): Likewise.
6742 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6743 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6744 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6745 (init_worklist): Likewise.
6746 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6747 * var-tracking.c (variable_tracking_main_1): Likewise.
6748 (vt_find_locations): Likewise.
6749 (vt_stack_adjustments): Likewise.
6750 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6751 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6752
6753 2013-11-18 Jan Hubicka <jh@suse.cz>
6754
6755 * profile.c (compute_branch_probabilities): Do not sanity check
6756 run_max.
6757
6758 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6759
6760 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6761 GET_MODE_PRECISION.
6762 * fold-const.c (fold_single_bit_test_into_sign_test)
6763 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6764
6765 2013-11-18 Teresa Johnson <tejohnson@google.com>
6766
6767 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6768 cfglayout after bb reordering.
6769 * passes.def: Move compgotos before bb reordering since it goes into
6770 cfglayout.
6771
6772 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6773
6774 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6775 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6776 static.
6777 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6778 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6779 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6780 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6781 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6782 Remove all_lto_gen_passes.
6783 * passes.c (pass_manager::dump_passes): Remove its use.
6784 (pass_manager::register_pass): Likewise.
6785 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6786 (pass_manager::pass_manager): Don't initialize or use it.
6787 (write_lto): New static function.
6788 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6789 instead of using all_lto_gen_passes.
6790 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6791 pass_ipa_lto_finish_out): Delete.
6792 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6793 make_pass_ipa_lto_finish_out): Don't declare.
6794
6795 2013-11-18 Jeff Law <law@redhat.com>
6796
6797 * tree-ssa-threadupdate.c (redirection_data): Record two
6798 duplicated blocks instead of just one.
6799 (local_info): Explain why we don't create a template for the
6800 second duplicated block in a thread path.
6801 (create_block_for_threading): Accept argument indicating array
6802 index into redirection_data to store its result.
6803 (lookup_redirection_data): Initialize both duplicate blocks.
6804 (ssa_create_duplicates): If a jump threading path needs multiple
6805 blocks duplicated, then duplicate them.
6806 (ssa_fix_duplicate_block_edges): Corresponding changes.
6807 (ssa_fixup_template_block, thread_single_edge): Likewise.
6808
6809 2013-11-18 Marek Polacek <polacek@redhat.com>
6810
6811 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6812
6813 2013-11-18 Andrew Pinski <apinski@cavium.com>
6814 Steve Ellcey <sellcey@mips.com>
6815
6816 PR target/56552
6817 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6818 type restriction from equality_operator on conditonal move.
6819 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6820 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6821
6822 2013-11-18 Jeff Law <law@redhat.com>
6823
6824 * tree-ssa-threadupdate.c: Fix file block comment.
6825 Fix minor indention issue.
6826
6827 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6828
6829 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6830 ix86_address_subreg_operand. Move subreg checks to
6831 ix86_validate_address_register. Move address override check to
6832 ix86_legitimate_address_p.
6833 (ix86_validate_address_register): New function.
6834 (ix86_legitimate_address_p): Call ix86_validate_address_register
6835 to validate base and index registers. Add address override check
6836 from ix86_decompose_address.
6837 (ix86_decompose_address): Remove.
6838
6839 2013-11-18 Richard Biener <rguenther@suse.de>
6840
6841 PR tree-optimization/59125
6842 PR tree-optimization/54570
6843 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6844 is not complete do not treat component-references with offset zero
6845 but different fields as equal.
6846 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6847 (compute_object_sizes): Apply TLC. Propagate the constant
6848 results into all uses and fold their stmts.
6849 * passes.def (pass_all_optimizations): Move pass_object_sizes
6850 after the first pass_forwprop and before pass_fre.
6851
6852 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6853
6854 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6855 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6856 (tree_ctz): Remove cast to unsigned type.
6857 * builtins.c (fold_builtin_memory_op): Likewise.
6858 * dwarf2out.c (descr_info_loc): Likewise.
6859 * godump.c (go_output_typedef): Likewise.
6860 * omp-low.c (expand_omp_simd): Likewise.
6861 * stor-layout.c (excess_unit_span): Likewise.
6862 * tree-object-size.c (addr_object_size): Likewise.
6863 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6864 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6865 (simplify_rotate): Likewise.
6866 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6867 (handle_pointer_plus): Likewise.
6868 * tree-switch-conversion.c (check_range): Likewise.
6869 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6870 * tsan.c (instrument_builtin_call): Likewise.
6871 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6872 * trans-mem.c (tm_log_add): Likewise.
6873 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6874 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6875 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6876 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6877
6878 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6879
6880 * tree.h (host_integerp, tree_low_cst): Delete.
6881 * tree.c (host_integerp, tree_low_cst): Delete.
6882
6883 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6884
6885 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6886 than tree_low_cst.
6887 * fold-const.c (fold_binary_loc): Likewise.
6888 * expr.c (store_constructor): Use tree_to_uhwi rather than
6889 tree_low_cst.
6890 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6891 * stmt.c (emit_case_dispatch_table): Likewise.
6892 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6893
6894 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6895
6896 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6897 config/aarch64/aarch64.c, config/alpha/predicates.md,
6898 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6899 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6900 config/mep/mep-pragma.c, config/mips/mips.c,
6901 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6902 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6903 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6904 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6905 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6906 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6907 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6908 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6909 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6910 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6911
6912 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6913
6914 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6915 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6916 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6917 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6918 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6919 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6920 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6921 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6922 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6923 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6924 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6925
6926 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6927
6928 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6929 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6930
6931 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6932
6933 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6934 than host_integerp.
6935
6936 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6937
6938 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6939 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6940 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6941 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6942 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6943 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6944 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6945 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6946 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6947 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6948 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6949 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6950 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6951 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6952 tree_fits_uhwi_p throughout.
6953
6954 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6955
6956 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6957 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6958 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6959 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6960 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6961 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6962 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6963 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6964 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6965 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6966 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6967 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6968 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6969 throughout.
6970
6971 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6972
6973 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6974 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6975
6976 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6977
6978 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6979 flag if it kills its address, not its post-increment.
6980
6981 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6982
6983 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6984 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6985 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6986 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6987 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6988 (gimple_call_with_bounds_p): New.
6989 (gimple_call_set_with_bounds): New.
6990 (gimple_call_num_nobnd_args): Remove.
6991 (gimple_call_nobnd_arg): Remove.
6992 * tree.h (CALL_WITH_BOUNDS_P): New.
6993 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6994
6995 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6996
6997 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6998 (symtab_node_name): Rename to symtab_node::name.
6999 (cgraph_node_asm_name): Remove.
7000 (varpool_node_asm_name): Remove.
7001 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
7002 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
7003 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
7004 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
7005 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
7006
7007 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7008
7009 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
7010 * config/arm/arm.c (arm_cortex_a53_tune): New.
7011 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
7012
7013 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7014
7015 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
7016 (case ${target}): Add bdver4.
7017 * config/i386/bdver3.md: Add bdver4.
7018 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7019 -march=native recognize bdver4 processors.
7020 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7021 bdver4 def_and_undef
7022 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
7023 (m_BDVER4): New definition.
7024 (m_AMD_MULTIPLE): Includes m_BDVER4.
7025 (processor_target_table): Add bdver4 entry.
7026 (static const char *const cpu_names): Add bdver4 entry.
7027 (software_prefetching_beneficial_p): Add bdver3.
7028 (ix86_option_override_internal): Add bdver4 instruction sets.
7029 (ix86_issue_rate): Add bdver4.
7030 (ix86_adjust_cost): Add bdver4.
7031 (ia32_multipass_dfa_lookahead): Add bdver4.
7032 (enum processor_model): Add M_AMDFAM15H_BDVER4.
7033 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
7034 (has_dispatch): Add bdver4.
7035 * config/i386/i386.h (TARGET_BDVER4): New definition.
7036 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
7037 (enum processor_type): Add PROCESSOR_BDVER4.
7038 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
7039 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
7040 * doc/extend.texi: Add details about bdver4.
7041 * doc/invoke.texi: Add details about bdver4. Add
7042 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
7043
7044 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7045
7046 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
7047 sdmode_stack_slot also in little-endian mode.
7048
7049 2013-11-17 Jan Hubicka <jh@suse.cz>
7050
7051 * doc/md.texi (setmem, movstr): Update documentation.
7052 * builtins.c (determine_block_size): New function.
7053 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
7054 (expand_builtin_memset_args): Use it and pass it to
7055 set_storage_via_setmem.
7056 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
7057 parameters; update call to expander.
7058 (emit_block_move_hints): Add min_size/max_size parameters.
7059 (clear_storage_hints): Likewise.
7060 (set_storage_via_setmem): Likewise.
7061 (clear_storage): Update.
7062 * expr.h (emit_block_move_hints, clear_storage_hints,
7063 set_storage_via_setmem): Update prototypes.
7064 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
7065 (ix86_expand_movmem, ix86_expand_setmem): Remove.
7066 (ix86_expand_movmem, ix86_expand_setmem): Remove.
7067 * i386.md (movmem, setmem): Pass parameters.
7068
7069 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
7070
7071 PR target/59153
7072 * config/i386/i386.c (ix86_address_subreg_operand): Do not
7073 reject non-integer subregs.
7074 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
7075 Move check for invalid x32 constant addresses ...
7076 (ix86_legitimate_address_p): ... here.
7077
7078 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7079
7080 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
7081 parameter and use it in REG_FRAME_RELATED_EXPR note.
7082 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
7083 parameter.
7084 (rs6000_emit_prologue): Likewise, but for little endian VSX
7085 stores, pass the source register of the store instead.
7086
7087 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
7088
7089 * gimple.h: Reorder prototypes to match .c declaration order, and
7090 remove protyotypes for functions not in gimple.c.
7091 (LABEL): Move to tree-into-ssa.c.
7092 * gimple.c: Remove unused prototypes.
7093 (get_base_address): Move to tree.c.
7094 * tree.c (get_base_address): Relocate from gimple.c.
7095 * builtins.h (validate_gimple_arglist): Add prototype.
7096 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
7097 * cfgexpand.h: New File.
7098 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
7099 * tree.h (build_addr): Move to tree-nested.h.
7100 * tree-nested.h: New File.
7101 (build_addr, lower_nested_functions, insert_field_into_struct): Add
7102 prototypes.
7103 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
7104 * ipa-inline-analysis.c: Include cfgexpand.h.
7105 * cgraphunit.c: Include tree-nested.h.
7106 * omp-low.c: Likewise.
7107 * tree-parloops.c: Likewise.
7108 * gimple-low.h: Likewise.
7109 * tree-profile.h: Likewise.
7110 * expr.c: Include cfgexpand.h.
7111 * tree-affine.c: Likewise.
7112 * tree-ssa.c: Likewise.
7113 * tree-ssa-loop-im.c: Include trans-mem.h.
7114 * tree-ssa-tail-merge.c: Likewise.
7115 * value-prof.c: Include builtins.h and tree-nested.h.
7116 * tree-into-ssa.c (LABEL): Define here.
7117
7118 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7119
7120 * config/arc/arc.c (arc_predicate_delay_insns): New function.
7121 (pass_data_arc_predicate_delay_insns): New pass_data instance.
7122 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
7123 (make_pass_arc_predicate_delay_insns): New function.
7124 (arc_init): Register pass_arc_predicate_delay_insns if
7125 flag_delayed_branch is active.
7126
7127 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7128
7129 * config/arc/constraints.md (Rcq): Simplify register number test.
7130
7131 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7132
7133 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
7134
7135 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
7136
7137 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
7138 is null.
7139
7140 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7141
7142 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
7143 * gimple-pretty-print.c (dump_omp_for): Add case for
7144 GF_OMP_FOR_KIND_CILKSIMD.
7145 * gimple.h (enum gf_mask): Restructure entries to add
7146 GF_OMP_FOR_KIND_CILKSIMD.
7147 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7148 (gimplify_omp_for): Handle CILK_SIMD.
7149 (gimplify_expr): Add ccase for CILK_SIMD.
7150 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7151 (build_outer_var_ref): Same.
7152 (check_omp_nesting_restrictions): Same.
7153 (lower_rec_input_clauses): Same.
7154 (lower_lastprivate_clauses): Same.
7155 (expand_omp_for): Same.
7156 (execute_expand_omp): Check flag_enable_cilkplus.
7157 (execute_lower_omp): Same.
7158 (diagnose_sb_0): Handle CILK_SIMD.
7159 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7160 (setjmp_or_longjmp_p): New.
7161 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7162 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7163 * tree.def: Add tree code for CILK_SIMD.
7164
7165 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7166
7167 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7168 Remove.
7169 (altivec_vperm_<mode>): Revert earlier little endian change.
7170 (*altivec_vperm_<mode>_internal): Remove.
7171 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7172 (*altivec_vperm_<mode>_uns_internal): Remove.
7173 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7174
7175 2013-11-15 Jeff Law <law@redhat.com>
7176
7177 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7178 has_abnormal_or_outgoing_edge. Check for EH edges as well.
7179 * gimple-ssa-isolate-paths.c
7180 (find_implicit_erroneous_behaviour): Corresponding changes.
7181 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7182 (find_explicit_erroneous_behaviour): Likewise.
7183
7184 2013-11-15 Jeff Law <law@redhat.com>
7185
7186 * ifcvt.c (find_cond_trap): Properly handle case where
7187 trap_bb == else_bb.
7188
7189 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
7190
7191 * configure: Regenerate.
7192
7193 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
7194
7195 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7196 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7197 where it is incorrect or missing.
7198
7199 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7200
7201 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7202 host_integerp test.
7203 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7204 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7205 constant.
7206 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7207 pair with a TREE_CODE test and TREE_INT_CST_LOW.
7208 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7209
7210 2013-11-15 Richard Biener <rguenther@suse.de>
7211
7212 PR tree-optimization/50262
7213 * tree-ssa-alias.h (struct pt_solution): Split
7214 vars_contains_global into vars_contains_nonlocal,
7215 vars_contains_escaped and vars_contains_escaped_heap.
7216 * tree-ssa-structalias.c (label_visit): Expand comment.
7217 (handle_lhs_call): Adjust comment.
7218 (set_uids_in_ptset): Set the new flags appropriately.
7219 (pt_solution_set): Adjust.
7220 (pt_solution_set_var): Likewise.
7221 (pt_solution_ior_into): Likewise.
7222 (pt_solution_includes_global): Likewise.
7223 (pt_solutions_intersect_1): Optimize escaped handling.
7224 (compute_points_to_sets): Remove heap variable globalization.
7225 (ipa_escaped_pt): Adjust initializer.
7226 (pass_data_ipa_pta): Do not run TODO_update_ssa.
7227 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7228 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7229
7230 2013-11-15 Richard Biener <rguenther@suse.de>
7231
7232 * tree-loop-distribution.c (tree_loop_distribution): Make sure
7233 to distribute all stores.
7234
7235 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7236
7237 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7238
7239 2013-11-15 Joseph Myers <joseph@codesourcery.com>
7240
7241 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7242 * configure.ac: Determine target_header_dir earlier.
7243 (--with-glibc-version): New configure option.
7244 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7245 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7246 * configure: Regenerate.
7247 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7248 native toolchains for default.
7249 (--with-glibc-version): Document.
7250
7251 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
7252
7253 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7254
7255 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
7256
7257 * lto-streamer-in.c (input function): Call cgraph_create_node if
7258 cgraph_get_node failed.
7259
7260 2013-11-14 Olivier Hainque <hainque@adacore.com>
7261
7262 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7263 defer allocation of DECL_IGNORED_P variables at toplevel unless really
7264 small. Factorize size threshold computation from the existing one.
7265 (expand_used_vars): Refine comment.
7266
7267 2013-11-14 Cong Hou <congh@google.com>
7268
7269 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7270 address field as it can be obtained from dr. Rename the struct.
7271 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7272 steps of data references during sort.
7273 (vect_prune_runtime_alias_test_list): Adjust with the change to
7274 struct dr_with_seg_len.
7275 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7276 Adjust with the change to struct dr_with_seg_len.
7277
7278 2013-11-14 Jeff Law <law@redhat.com>
7279
7280 PR middle-end/59127
7281 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7282 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7283 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7284 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7285 edges, then ignore it. If the statement exhibiting erroneous
7286 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7287 then we can not optimize.
7288 (find_explicit_erroneous_behaviour): Likewise.
7289
7290 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
7291
7292 * gimplify-me.h: New file. Add prototypes.
7293 * gimplify.h: Don't include gimple.h.
7294 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7295 Relocate from gimple.h.
7296 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7297 is_gimple_sizepos): Move to gimplify.h.
7298 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7299 (enum gsi_iterator_update): Move to gimple-iterator.h.
7300 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7301 * gimplify-me.c: New File.
7302 (force_gimple_operand_1, force_gimple_operand,
7303 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7304 gimple_regimplify_operands): Relocate from gimplify.c.
7305 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7306 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7307 gimple_regimplify_operands): Move to gimplify-me.c.
7308 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7309 from gimple.h.
7310 * Makefile.in (OBJS): Add gimplify-me.o
7311 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7312 required.
7313 * cfgloopmanip.c: Likewise.
7314 * cgraphunit.c: Likewise.
7315 * cilk-common.c: Likewise.
7316 * fold-const.c: Likewise.
7317 * function.c: Likewise.
7318 * gimple-expr.c: Likewise.
7319 * gimple-fold.c: Likewise.
7320 * gimple-ssa-strength-reduction.c: Likewise.
7321 * gimple.c: Likewise.
7322 * graphite-clast-to-gimple.c: Likewise.
7323 * graphite-sese-to-poly.c: Likewise.
7324 * ipa-prop.c: Likewise.
7325 * ipa-split.c: Likewise.
7326 * ipa.c: Likewise.
7327 * langhooks.c: Likewise.
7328 * omp-low.c: Likewise.
7329 * sese.c: Likewise.
7330 * stor-layout.c: Likewise.
7331 * targhooks.c: Likewise.
7332 * trans-mem.c: Likewise.
7333 * tree-affine.c: Likewise.
7334 * tree-cfg.c: Likewise.
7335 * tree-cfgcleanup.c: Likewise.
7336 * tree-complex.c: Likewise.
7337 * tree-if-conv.c: Likewise.
7338 * tree-inline.c: Likewise.
7339 * tree-loop-distribution.c: Likewise.
7340 * tree-nested.c: Likewise.
7341 * tree-parloops.c: Likewise.
7342 * tree-predcom.c: Likewise.
7343 * tree-profile.c: Likewise.
7344 * tree-scalar-evolution.c: Likewise.
7345 * tree-sra.c: Likewise.
7346 * tree-ssa-address.c: Likewise.
7347 * tree-ssa-ccp.c: Likewise.
7348 * tree-ssa-dce.c: Likewise.
7349 * tree-ssa-forwprop.c: Likewise.
7350 * tree-ssa-ifcombine.c: Likewise.
7351 * tree-ssa-loop-im.c: Likewise.
7352 * tree-ssa-loop-ivopts.c: Likewise.
7353 * tree-ssa-loop-manip.c: Likewise.
7354 * tree-ssa-loop-niter.c: Likewise.
7355 * tree-ssa-loop-prefetch.c: Likewise.
7356 * tree-ssa-loop-unswitch.c: Likewise.
7357 * tree-ssa-math-opts.c: Likewise.
7358 * tree-ssa-phiopt.c: Likewise.
7359 * tree-ssa-phiprop.c: Likewise.
7360 * tree-ssa-pre.c: Likewise.
7361 * tree-ssa-propagate.c: Likewise.
7362 * tree-ssa-reassoc.c: Likewise.
7363 * tree-ssa-sccvn.c: Likewise.
7364 * tree-ssa-strlen.c: Likewise.
7365 * tree-ssa.c: Likewise.
7366 * tree-switch-conversion.c: Likewise.
7367 * tree-tailcall.c: Likewise.
7368 * tree-vect-data-refs.c: Likewise.
7369 * tree-vect-generic.c: Likewise.
7370 * tree-vect-loop-manip.c: Likewise.
7371 * tree-vect-loop.c: Likewise.
7372 * tree-vect-patterns.c: Likewise.
7373 * tree-vect-stmts.c: Likewise.
7374 * tree.c: Likewise.
7375 * tsan.c: Likewise.
7376 * value-prof.c: Likewise.
7377 * config/aarch64/aarch64.c: Likewise.
7378 * config/alpha/alpha.c: Likewise.
7379 * config/darwin.c: Likewise.
7380 * config/i386/i386.c: Likewise.
7381 * config/ia64/ia64.c: Likewise.
7382 * config/mep/mep.c: Likewise.
7383 * config/mips/mips.c: Likewise.
7384 * config/rs6000/rs6000.c: Likewise.
7385 * config/s390/s390.c: Likewise.
7386 * config/sh/sh.c: Likewise.
7387 * config/sparc/sparc.c: Likewise.
7388 * config/spu/spu.c: Likewise.
7389 * config/stormy16/stormy16.c: Likewise.
7390 * config/tilegx/tilegx.c: Likewise.
7391 * config/tilepro/tilepro.c: Likewise.
7392 * config/xtensa/xtensa.c: Likewise.
7393
7394 2013-11-14 Diego Novillo <dnovillo@google.com>
7395
7396 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7397
7398 2013-11-14 Diego Novillo <dnovillo@google.com>
7399
7400 * tree.h: Include fold-const.h.
7401 (aggregate_value_p): Moved to function.h.
7402 (alloca_call_p): Moved to calls.h.
7403 (allocate_struct_function): Moved to function.h.
7404 (apply_tm_attr): Moved to attribs.h.
7405 (array_at_struct_end_p): Moved to expr.h.
7406 (array_ref_element_size): Moved to tree-dfa.h.
7407 (array_ref_low_bound): Moved to tree-dfa.h.
7408 (array_ref_up_bound): Moved to tree.h.
7409 (assemble_alias): Moved to cgraph.h.
7410 (bit_from_pos): Moved to stor-layout.h.
7411 (build_addr): Moved to tree-nested.h.
7412 (build_duplicate_type): Moved to tree-inline.h.
7413 (build_fold_addr_expr): Moved to fold-const.h.
7414 (build_fold_addr_expr_with_type): Moved to fold-const.h.
7415 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7416 (build_fold_indirect_ref): Moved to fold-const.h.
7417 (build_fold_indirect_ref_loc): Moved to fold-const.h.
7418 (build_personality_function): Moved to tree.h.
7419 (build_range_check): Moved to fold-const.h.
7420 (build_simple_mem_ref): Moved to fold-const.h.
7421 (build_simple_mem_ref_loc): Moved to fold-const.h.
7422 (build_tm_abort_call): Moved to trans-mem.h.
7423 (byte_from_pos): Moved to stor-layout.h.
7424 (call_expr_flags): Moved to calls.h.
7425 (can_move_by_pieces): Moved to expr.h.
7426 (categorize_ctor_elements): Moved to expr.h.
7427 (change_decl_assembler_name): Moved to gcc-symtab.h.
7428 (combine_comparisons): Moved to fold-const.h.
7429 (complete_ctor_at_level_p): Moved to tree.h.
7430 (component_ref_field_offset): Moved to tree-dfa.h.
7431 (compute_builtin_object_size): Moved to tree-object-size.h.
7432 (compute_record_mode): Moved to stor-layout.h.
7433 (constant_boolean_node): Moved to fold-const.h.
7434 (constructor_static_from_elts_p): Moved to varasm.h.
7435 (cxx11_attribute_p): Moved to attribs.h.
7436 (debug_body): Moved to print-tree.h.
7437 (debug_find_tree): Moved to tree-inline.h.
7438 (debug_fold_checksum): Moved to fold-const.h.
7439 (debug_head): Moved to print-tree.h.
7440 (debug_head): Moved to print-tree.h.
7441 (debug_raw): Moved to print-tree.h.
7442 (debug_tree): Moved to print-tree.h.
7443 (debug_vec_tree): Moved to print-tree.h.
7444 (debug_verbose): Moved to print-tree.h.
7445 (debug_verbose): Moved to print-tree.h.
7446 (decl_attributes): Moved to attribs.h.
7447 (decl_binds_to_current_def_p): Moved to varasm.h.
7448 (decl_default_tls_model): Moved to varasm.h.
7449 (decl_replaceable_p): Moved to varasm.h.
7450 (div_if_zero_remainder): Moved to fold-const.h.
7451 (double_int mem_ref_offset): Moved to fold-const.h.
7452 (dump_addr): Moved to print-tree.h.
7453 (element_precision): Moved to machmode.h.
7454 (expand_dummy_function_end): Moved to function.h.
7455 (expand_function_end): Moved to function.h.
7456 (expand_function_start): Moved to function.h.
7457 (expand_label): Moved to stmt.h.
7458 (expr_first): Moved to tree-iterator.h.
7459 (expr_last): Moved to tree-iterator.h.
7460 (finalize_size_functions): Moved to stor-layout.h.
7461 (finish_builtin_struct): Moved to stor-layout.h.
7462 (finish_record_layout): Moved to stor-layout.h.
7463 (fixup_signed_type): Moved to stor-layout.h.
7464 (fixup_unsigned_type): Moved to stor-layout.h.
7465 (flags_from_decl_or_type): Moved to calls.h.
7466 (fold): Moved to fold-const.h.
7467 (fold_abs_const): Moved to fold-const.h.
7468 (fold_binary): Moved to fold-const.h.
7469 (fold_binary_loc): Moved to fold-const.h.
7470 (fold_binary_to_constant): Moved to fold-const.h.
7471 (fold_build1): Moved to fold-const.h.
7472 (fold_build1_initializer_loc): Moved to fold-const.h.
7473 (fold_build1_loc): Moved to fold-const.h.
7474 (fold_build1_stat_loc): Moved to fold-const.h.
7475 (fold_build2): Moved to fold-const.h.
7476 (fold_build2_initializer_loc): Moved to fold-const.h.
7477 (fold_build2_loc): Moved to fold-const.h.
7478 (fold_build2_stat_loc): Moved to fold-const.h.
7479 (fold_build3): Moved to fold-const.h.
7480 (fold_build3_loc): Moved to fold-const.h.
7481 (fold_build3_stat_loc): Moved to fold-const.h.
7482 (fold_build_call_array): Moved to fold-const.h.
7483 (fold_build_call_array_initializer): Moved to fold-const.h.
7484 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7485 (fold_build_call_array_loc): Moved to fold-const.h.
7486 (fold_build_cleanup_point_expr): Moved to fold-const.h.
7487 (fold_convert): Moved to fold-const.h.
7488 (fold_convert_loc): Moved to fold-const.h.
7489 (fold_convertible_p): Moved to fold-const.h.
7490 (fold_defer_overflow_warnings): Moved to fold-const.h.
7491 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7492 (fold_fma): Moved to fold-const.h.
7493 (fold_ignored_result): Moved to fold-const.h.
7494 (fold_indirect_ref): Moved to fold-const.h.
7495 (fold_indirect_ref_1): Moved to fold-const.h.
7496 (fold_indirect_ref_loc): Moved to fold-const.h.
7497 (fold_read_from_constant_string): Moved to fold-const.h.
7498 (fold_real_zero_addition_p): Moved to fold-const.h.
7499 (fold_single_bit_test): Moved to fold-const.h.
7500 (fold_strip_sign_ops): Moved to fold-const.h.
7501 (fold_ternary): Moved to fold-const.h.
7502 (fold_ternary_loc): Moved to fold-const.h.
7503 (fold_unary): Moved to tree-data-ref.h.
7504 (fold_unary_ignore_overflow): Moved to fold-const.h.
7505 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7506 (fold_unary_loc): Moved to fold-const.h.
7507 (fold_unary_to_constant): Moved to fold-const.h.
7508 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7509 (fold_undefer_overflow_warnings): Moved to fold-const.h.
7510 (folding_initializer): Moved to fold-const.h.
7511 (free_temp_slots): Moved to function.h.
7512 (generate_setjmp_warnings): Moved to function.h.
7513 (get_attribute_name): Moved to attribs.h.
7514 (get_identifier): Moved to stringpool.h.
7515 (get_identifier_with_length): Moved to stringpool.h.
7516 (get_inner_reference): Moved to tree.h.
7517 (gimple_alloca_call_p): Moved to calls.h.
7518 (gimplify_parameters): Moved to function.h.
7519 (highest_pow2_factor): Moved to expr.h.
7520 (indent_to): Moved to print-tree.h.
7521 (init_attributes): Moved to attribs.h.
7522 (init_dummy_function_start): Moved to function.h.
7523 (init_function_start): Moved to function.h.
7524 (init_inline_once): Moved to tree-inline.h.
7525 (init_object_sizes): Moved to tree-object-size.h.
7526 (init_temp_slots): Moved to function.h.
7527 (init_tree_optimization_optabs): Moved to optabs.h.
7528 (initialize_sizetypes): Moved to stor-layout.h.
7529 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7530 (initializer_constant_valid_p): Moved to varasm.h.
7531 (int_const_binop): Moved to fold-const.h.
7532 (internal_reference_types): Moved to stor-layout.h.
7533 (invert_tree_comparison): Moved to fold-const.h.
7534 (invert_truthvalue): Moved to fold-const.h.
7535 (invert_truthvalue_loc): Moved to fold-const.h.
7536 (is_tm_ending_fndecl): Moved to trans-mem.h.
7537 (is_tm_may_cancel_outer): Moved to trans-mem.h.
7538 (is_tm_pure): Moved to trans-mem.h.
7539 (is_tm_safe): Moved to trans-mem.h.
7540 (layout_decl): Moved to stor-layout.h.
7541 (layout_type): Moved to stor-layout.h.
7542 (lookup_attribute_spec): Moved to attribs.h.
7543 (make_accum_type): Moved to stor-layout.h.
7544 (make_decl_one_only): Moved to varasm.h.
7545 (make_decl_rtl): Moved to tree.h.
7546 (make_decl_rtl_for_debug): Moved to varasm.h.
7547 (make_fract_type): Moved to stor-layout.h.
7548 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7549 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7550 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7551 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7552 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7553 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7554 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7555 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7556 (make_range): Moved to fold-const.h.
7557 (make_range_step): Moved to fold-const.h.
7558 (make_sat_signed_accum_type): Moved to stor-layout.h.
7559 (make_sat_signed_fract_type): Moved to stor-layout.h.
7560 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7561 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7562 (make_signed_accum_type): Moved to stor-layout.h.
7563 (make_signed_fract_type): Moved to stor-layout.h.
7564 (make_signed_type): Moved to stor-layout.h.
7565 (make_unsigned_accum_type): Moved to stor-layout.h.
7566 (make_unsigned_fract_type): Moved to stor-layout.h.
7567 (make_unsigned_type): Moved to stor-layout.h.
7568 (mark_decl_referenced): Moved to varasm.h.
7569 (mark_referenced): Moved to varasm.h.
7570 (may_negate_without_overflow_p): Moved to fold-const.h.
7571 (maybe_get_identifier): Moved to stringpool.h.
7572 (merge_ranges): Moved to fold-const.h.
7573 (merge_weak): Moved to varasm.h.
7574 (mode_for_size_tree): Moved to stor-layout.h.
7575 (multiple_of_p): Moved to fold-const.h.
7576 (must_pass_in_stack_var_size): Moved to calls.h.
7577 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7578 (native_encode_expr): Moved to fold-const.h.
7579 (native_interpret_expr): Moved to fold-const.h.
7580 (non_lvalue): Moved to fold-const.h.
7581 (non_lvalue_loc): Moved to fold-const.h.
7582 (normalize_offset): Moved to stor-layout.h.
7583 (normalize_rli): Moved to stor-layout.h.
7584 (notice_global_symbol): Moved to varasm.h.
7585 (omit_one_operand): Moved to fold-const.h.
7586 (omit_one_operand_loc): Moved to fold-const.h.
7587 (omit_two_operands): Moved to fold-const.h.
7588 (omit_two_operands_loc): Moved to fold-const.h.
7589 (operand_equal_p): Moved to tree-data-ref.h.
7590 (parse_input_constraint): Moved to stmt.h.
7591 (parse_output_constraint): Moved to stmt.h.
7592 (place_field): Moved to stor-layout.h.
7593 (pop_function_context): Moved to function.h.
7594 (pop_temp_slots): Moved to function.h.
7595 (pos_from_bit): Moved to stor-layout.h.
7596 (preserve_temp_slots): Moved to function.h.
7597 (print_node): Moved to print-tree.h.
7598 (print_node_brief): Moved to print-tree.h.
7599 (print_rtl): Moved to rtl.h.
7600 (process_pending_assemble_externals): Moved to varasm.h.
7601 (ptr_difference_const): Moved to fold-const.h.
7602 (push_function_context): Moved to function.h.
7603 (push_struct_function): Moved to function.h.
7604 (push_temp_slots): Moved to function.h.
7605 (record_tm_replacement): Moved to trans-mem.h.
7606 (relayout_decl): Moved to stor-layout.h.
7607 (resolve_asm_operand_names): Moved to stmt.h.
7608 (resolve_unique_section): Moved to varasm.h.
7609 (rli_size_so_far): Moved to stor-layout.h.
7610 (rli_size_unit_so_far): Moved to stor-layout.h.
7611 (round_down): Moved to fold-const.h.
7612 (round_down_loc): Moved to fold-const.h.
7613 (round_up): Moved to fold-const.h.
7614 (round_up_loc): Moved to fold-const.h.
7615 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7616 (set_decl_rtl): Moved to tree.h.
7617 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7618 (set_user_assembler_name): Moved to varasm.h.
7619 (setjmp_call_p): Moved to calls.h.
7620 (size_binop): Moved to fold-const.h.
7621 (size_binop_loc): Moved to fold-const.h.
7622 (size_diffop): Moved to fold-const.h.
7623 (size_diffop_loc): Moved to fold-const.h.
7624 (size_int_kind): Moved to fold-const.h.
7625 (stack_protect_epilogue): Moved to function.h.
7626 (start_record_layout): Moved to stor-layout.h.
7627 (supports_one_only): Moved to varasm.h.
7628 (swap_tree_comparison): Moved to fold-const.h.
7629 (tm_malloc_replacement): Moved to trans-mem.h.
7630 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7631 (tree build_invariant_address): Moved to fold-const.h.
7632 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7633 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7634 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7635 (tree_expr_nonnegative_p): Moved to fold-const.h.
7636 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7637 (tree_output_constant_def): Moved to varasm.h.
7638 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7639 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7640 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7641 (tree_swap_operands_p): Moved to fold-const.h.
7642 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7643 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7644 (update_alignment_for_field): Moved to stor-layout.h.
7645 (use_register_for_decl): Moved to function.h.
7646 (variable_size): Moved to rtl.h.
7647 (vector_type_mode): Moved to stor-layout.h.
7648 * cgraph.h: Corresponding changes.
7649 * emit-rtl.h: Corresponding changes.
7650 * expr.h: Corresponding changes.
7651 * function.h: Corresponding changes.
7652 * optabs.h: Corresponding changes.
7653 * trans-mem.h: Corresponding changes.
7654 Protect against multiple inclusion.
7655 * tree-inline.h: Corresponding changes.
7656 * tree-iterator.h: Corresponding changes.
7657 * tree-dfa.h: Include expr.h.
7658 * tree-ssanames.h: Include stringpool.h.
7659 * attribs.h: New file.
7660 * calls.h: New file.
7661 * fold-const.h: New file.
7662 * gcc-symtab.h: New file.
7663 * print-rtl.h: New file.
7664 * print-tree.h: New file.
7665 * stmt.h: New file.
7666 * stor-layout.h: New file.
7667 * strinpool.h: New file.
7668 * tree-nested.h: New file
7669 * tree-object-size.h: New file.
7670 * varasm.h: New file.
7671
7672 2013-11-14 Diego Novillo <dnovillo@google.com>
7673
7674 * alias.c: Include varasm.h.
7675 Include expr.h.
7676 * asan.c: Include calls.h.
7677 Include stor-layout.h.
7678 Include varasm.h.
7679 * attribs.c: Include stringpool.h.
7680 Include attribs.h.
7681 Include stor-layout.h.
7682 * builtins.c: Include stringpool.h.
7683 Include stor-layout.h.
7684 Include calls.h.
7685 Include varasm.h.
7686 Include tree-object-size.h.
7687 * calls.c: Include stor-layout.h.
7688 Include varasm.h.
7689 Include stringpool.h.
7690 Include attribs.h.
7691 * cfgexpand.c: Include stringpool.h.
7692 Include varasm.h.
7693 Include stor-layout.h.
7694 Include stmt.h.
7695 Include print-tree.h.
7696 * cgraph.c: Include varasm.h.
7697 Include calls.h.
7698 Include print-tree.h.
7699 * cgraphclones.c: Include stringpool.h.
7700 Include function.h.
7701 Include emit-rtl.h.
7702 Move inclusion of rtl.h earlier in the file.
7703 * cgraphunit.c: Include varasm.h.
7704 Include stor-layout.h.
7705 Include stringpool.h.
7706 * cilk-common.c: Include stringpool.h.
7707 Include stor-layout.h.
7708 * combine.c: Include stor-layout.h.
7709 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7710 Include stringpool.h.
7711 Include calls.h.
7712 * config/aarch64/aarch64.c: Include stringpool.h.
7713 Include stor-layout.h.
7714 Include calls.h.
7715 Include varasm.h.
7716 * config/alpha/alpha.c: Include stor-layout.h.
7717 Include calls.h.
7718 Include varasm.h.
7719 * config/arc/arc.c: Include varasm.h.
7720 Include stor-layout.h.
7721 Include stringpool.h.
7722 Include calls.h.
7723 * config/arm/arm.c: Include stringpool.h.
7724 Include stor-layout.h.
7725 Include calls.h.
7726 Include varasm.h.
7727 * config/avr/avr-c.c: Include stor-layout.h.
7728 * config/avr/avr-log.c: Include print-tree.h.
7729 * config/avr/avr.c: Include print-tree.h.
7730 Include calls.h.
7731 Include stor-layout.h.
7732 Include stringpool.h.
7733 * config/bfin/bfin.c: Include varasm.h.
7734 Include calls.h.
7735 * config/c6x/c6x.c: Include stor-layout.h.
7736 Include varasm.h.
7737 Include calls.h.
7738 Include stringpool.h.
7739 * config/cr16/cr16.c: Include stor-layout.h.
7740 Include calls.h.
7741 * config/cris/cris.c: Include varasm.h.
7742 Include stor-layout.h.
7743 Include calls.h.
7744 Include stmt.h.
7745 * config/darwin.c: Include stringpool.h.
7746 Include varasm.h.
7747 Include stor-layout.h.
7748 * config/epiphany/epiphany.c: Include stor-layout.h.
7749 Include varasm.h.
7750 Include calls.h.
7751 Include stringpool.h.
7752 * config/fr30/fr30.c: Include stor-layout.h.
7753 Include varasm.h.
7754 * config/frv/frv.c: Include varasm.h.
7755 Include stor-layout.h.
7756 Include stringpool.h.
7757 * config/h8300/h8300.c: Include stor-layout.h.
7758 Include varasm.h.
7759 Include calls.h.
7760 Include stringpool.h.
7761 * config/i386/i386.c: Include stringpool.h.
7762 Include attribs.h.
7763 Include calls.h.
7764 Include stor-layout.h.
7765 Include varasm.h.
7766 * config/i386/winnt-cxx.c: Include stringpool.h.
7767 Include attribs.h.
7768 * config/i386/winnt.c: Include stringpool.h.
7769 Include varasm.h.
7770 * config/ia64/ia64-c.c: Include stringpool.h.
7771 * config/ia64/ia64.c: Include stringpool.h.
7772 Include stor-layout.h.
7773 Include calls.h.
7774 Include varasm.h.
7775 * config/iq2000/iq2000.c: Include stor-layout.h.
7776 Include calls.h.
7777 Include varasm.h.
7778 * config/lm32/lm32.c: Include calls.h.
7779 * config/m32c/m32c.c: Include stor-layout.h.
7780 Include varasm.h.
7781 Include calls.h.
7782 * config/m32r/m32r.c: Include stor-layout.h.
7783 Include varasm.h.
7784 Include stringpool.h.
7785 Include calls.h.
7786 * config/m68k/m68k.c: Include calls.h.
7787 Include stor-layout.h.
7788 Include varasm.h.
7789 * config/mcore/mcore.c: Include stor-layout.h.
7790 Include varasm.h.
7791 Include stringpool.h.
7792 Include calls.h.
7793 * config/mep/mep.c: Include varasm.h.
7794 Include calls.h.
7795 Include stringpool.h.
7796 Include stor-layout.h.
7797 * config/microblaze/microblaze.c: Include varasm.h.
7798 Include stor-layout.h.
7799 Include calls.h.
7800 * config/mips/mips.c: Include varasm.h.
7801 Include stringpool.h.
7802 Include stor-layout.h.
7803 Include calls.h.
7804 * config/mmix/mmix.c: Include varasm.h.
7805 Include stor-layout.h.
7806 Include calls.h.
7807 * config/mn10300/mn10300.c: Include stor-layout.h.
7808 Include varasm.h.
7809 Include calls.h.
7810 * config/moxie/moxie.c: Include stor-layout.h.
7811 Include varasm.h.
7812 Include calls.h.
7813 * config/msp430/msp430.c: Include stor-layout.h.
7814 Include calls.h.
7815 * config/nds32/nds32.c: Include stor-layout.h.
7816 Include varasm.h.
7817 Include calls.h.
7818 * config/pa/pa.c: Include stor-layout.h.
7819 Include stringpool.h.
7820 Include varasm.h.
7821 Include calls.h.
7822 * config/pdp11/pdp11.c: Include stor-layout.h.
7823 Include varasm.h.
7824 Include calls.h.
7825 * config/picochip/picochip.c: Include calls.h.
7826 Include stor-layout.h.
7827 Include stringpool.h.
7828 Include varasm.h.
7829 * config/rl78/rl78.c: Include varasm.h.
7830 Include stor-layout.h.
7831 Include calls.h.
7832 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7833 Include stringpool.h.
7834 * config/rs6000/rs6000.c: Include stringpool.h.
7835 Include stor-layout.h.
7836 Include calls.h.
7837 Include print-tree.h.
7838 Include varasm.h.
7839 * config/rx/rx.c: Include varasm.h.
7840 Include stor-layout.h.
7841 Include calls.h.
7842 * config/s390/s390.c: Include print-tree.h.
7843 Include stringpool.h.
7844 Include stor-layout.h.
7845 Include varasm.h.
7846 Include calls.h.
7847 * config/score/score.c: Include stringpool.h.
7848 Include calls.h.
7849 Include varasm.h.
7850 Include stor-layout.h.
7851 * config/sh/sh-c.c: Include stringpool.h.
7852 Include attribs.h.h.
7853 * config/sh/sh.c: Include stringpool.h.
7854 Include stor-layout.h.
7855 Include calls.h.
7856 Include varasm.h.
7857 * config/sol2-c.c: Include stringpool.h.
7858 Include attribs.h.
7859 * config/sol2-cxx.c: Include stringpool.h.
7860 * config/sol2.c: Include stringpool.h.
7861 Include varasm.h.
7862 * config/sparc/sparc.c: Include stringpool.h.
7863 Include stor-layout.h.
7864 Include calls.h.
7865 Include varasm.h.
7866 * config/spu/spu-c.c: Include stringpool.h.
7867 * config/spu/spu.c: Include stringpool.h.
7868 Include stor-layout.h.
7869 Include calls.h.
7870 Include varasm.h.
7871 * config/stormy16/stormy16.c: Include stringpool.h.
7872 Include stor-layout.h.
7873 Include varasm.h.
7874 Include calls.h.
7875 * config/tilegx/tilegx.c: Include stringpool.h.
7876 Include stor-layout.h.
7877 Include varasm.h.
7878 Include calls.h.
7879 * config/tilepro/tilepro.c: Include stringpool.h.
7880 Include stor-layout.h.
7881 Include varasm.h.
7882 Include calls.h.
7883 * config/v850/v850-c.c: Include stringpool.h.
7884 Include attribs.h.
7885 * config/v850/v850.c: Include stringpool.h.
7886 Include stor-layout.h.
7887 Include varasm.h.
7888 Include calls.h.
7889 * config/vax/vax.c: Include calls.h.
7890 Include varasm.h.
7891 * config/vms/vms.c: Include stringpool.h.
7892 * config/vxworks.c: Include stringpool.h.
7893 * config/xtensa/xtensa.c: Include stringpool.h.
7894 Include stor-layout.h.
7895 Include calls.h.
7896 Include varasm.h.
7897 * convert.c: Include stor-layout.h.
7898 * coverage.c: Include stringpool.h.
7899 Include stor-layout.h.
7900 * dbxout.c: Include varasm.h.
7901 Include stor-layout.h.
7902 * dojump.c: Include stor-layout.h.
7903 * dse.c: Include stor-layout.h.
7904 * dwarf2asm.c: Include stringpool.h.
7905 Include varasm.h.
7906 * dwarf2cfi.c: Include stor-layout.h.
7907 * dwarf2out.c: Include rtl.h.
7908 Include stringpool.h.
7909 Include stor-layout.h.
7910 Include varasm.h.
7911 Include function.h.
7912 Include emit-rtl.h.
7913 Move inclusion of rtl.h earlier in the file.
7914 * emit-rtl.c: Include varasm.h.
7915 * except.c: Include stringpool.h.
7916 Include stor-layout.h.
7917 * explow.c: Include stor-layout.h.
7918 * expmed.c: Include stor-layout.h.
7919 * expr.c: Include stringpool.h.
7920 Include stor-layout.h.
7921 Include attribs.h.
7922 Include varasm.h.
7923 * final.c: Include varasm.h.
7924 * fold-const.c: Include stor-layout.h.
7925 Include calls.h.
7926 Include tree-iterator.h.
7927 * function.c: Include stor-layout.h.
7928 Include varasm.h.
7929 Include stringpool.h.
7930 * genattrtab.c (write_header): Emit includes for varasm.h,
7931 stor-layout.h and calls.h.
7932 * genautomata.c (main): Likewise.
7933 * genemit.c: Likewise.
7934 * genopinit.c: Likewise.
7935 * genoutput.c (output_prologue): Likewise.
7936 * genpeep.c: Likewise.
7937 * genpreds.c (write_insn_preds_c): Likewise.
7938 * gengtype.c (open_base_files): Add stringpool.h.
7939 * gimple-expr.c: Include stringpool.h.
7940 Include stor-layout.h.
7941 * gimple-fold.c: Include stringpool.h.
7942 Include expr.h.
7943 Include stmt.h.
7944 Include stor-layout.h.
7945 * gimple-low.c: Include tree-nested.h.
7946 Include calls.h.
7947 * gimple-pretty-print.c: Include stringpool.h.
7948 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7949 Include expr.h.
7950 * gimple-walk.c: Include stmt.h.
7951 * gimple.c: Include calls.h.
7952 Include stmt.h.
7953 Include stor-layout.h.
7954 * gimplify.c: Include stringpool.h.
7955 Include calls.h.
7956 Include varasm.h.
7957 Include stor-layout.h.
7958 Include stmt.h.
7959 Include print-tree.h.
7960 Include expr.h.
7961 * gimplify-me.c: Include stmt.h
7962 Include stor-layout.h
7963 * internal-fn.c: Include stor-layout.h.
7964 * ipa-devirt.c: Include print-tree.h.
7965 Include calls.h.
7966 * ipa-inline-analysis.c: Include stor-layout.h.
7967 Include stringpool.h.
7968 Include print-tree.h.
7969 * ipa-inline.c: Include trans-mem.h.
7970 Include calls.h.
7971 * ipa-prop.c: Include expr.h.
7972 Include stor-layout.h.
7973 Include print-tree.h.
7974 * ipa-pure-const.c: Include print-tree.h.
7975 Include calls.h.
7976 * ipa-reference.c: Include calls.h.
7977 * ipa-split.c: Include stringpool.h.
7978 Include expr.h.
7979 Include calls.h.
7980 * ipa.c: Include calls.h.
7981 Include stringpool.h.
7982 * langhooks.c: Include stringpool.h.
7983 Include attribs.h.
7984 * lto-cgraph.c: Include stringpool.h.
7985 * lto-streamer-in.c: Include stringpool.h.
7986 * lto-streamer-out.c: Include stor-layout.h.
7987 Include stringpool.h.
7988 * omp-low.c: Include stringpool.h.
7989 Include stor-layout.h.
7990 Include expr.h.
7991 * optabs.c: Include stor-layout.h.
7992 Include stringpool.h.
7993 Include varasm.h.
7994 * passes.c: Include varasm.h.
7995 * predict.c: Include calls.h.
7996 * print-rtl.c: Include print-tree.h.
7997 * print-tree.c: Include varasm.h.
7998 Include print-rtl.h.
7999 Include stor-layout.h.
8000 * realmpfr.c: Include stor-layout.h.
8001 * reg-stack.c: Include varasm.h.
8002 * sdbout.c: Include varasm.h.
8003 Include stor-layout.h.
8004 * simplify-rtx.c: Include varasm.h.
8005 * stmt.c: Include varasm.h.
8006 Include stor-layout.h.
8007 * stor-layout.c: Include stor-layout.h.
8008 Include stringpool.h.
8009 Include varasm.h.
8010 Include print-tree.h.
8011 * symtab.c: Include rtl.h.
8012 Include print-tree.h.
8013 Include varasm.h.
8014 Include function.h.
8015 Include emit-rtl.h.
8016 * targhooks.c: Include stor-layout.h.
8017 Include varasm.h.
8018 * toplev.c: Include varasm.h.
8019 Include tree-inline.h.
8020 * trans-mem.c: Include calls.h.
8021 Include function.h.
8022 Include rtl.h.
8023 Include emit-rtl.h.
8024 * tree-affine.c: Include expr.h.
8025 * tree-browser.c: Include print-tree.h.
8026 * tree-call-cdce.c: Include stor-layout.h.
8027 * tree-cfg.c: Include trans-mem.h.
8028 Include stor-layout.h.
8029 Include print-tree.h.
8030 * tree-complex.c: Include stor-layout.h.
8031 * tree-data-ref.c: Include expr.h.
8032 * tree-dfa.c: Include stor-layout.h.
8033 * tree-eh.c: Include expr.h.
8034 Include calls.h.
8035 * tree-emutls.c: Include stor-layout.h.
8036 Include varasm.h.
8037 * tree-if-conv.c: Include stor-layout.h.
8038 * tree-inline.c: Include stor-layout.h.
8039 Include calls.h.
8040 * tree-loop-distribution.c: Include stor-layout.h.
8041 * tree-nested.c: Include stringpool.h.
8042 Include stor-layout.h.
8043 * tree-object-size.c: Include tree-object-size.h.
8044 * tree-outof-ssa.c: Include stor-layout.h.
8045 * tree-parloops.c: Include stor-layout.h.
8046 Include tree-nested.h.
8047 * tree-pretty-print.c: Include stor-layout.h.
8048 Include expr.h.
8049 * tree-profile.c: Include varasm.h.
8050 Include tree-nested.h.
8051 * tree-scalar-evolution.c: Include expr.h.
8052 * tree-sra.c: Include stor-layout.h.
8053 * tree-ssa-address.c: Include stor-layout.h.
8054 * tree-ssa-ccp.c: Include stor-layout.h.
8055 * tree-ssa-dce.c: Include calls.h.
8056 * tree-ssa-dom.c: Include stor-layout.h.
8057 * tree-ssa-forwprop.c: Include stor-layout.h.
8058 * tree-ssa-ifcombine.c: Include stor-layout.h.
8059 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
8060 * tree-ssa-loop-niter.c: Include calls.h.
8061 Include expr.h.
8062 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
8063 * tree-ssa-math-opts.c: Include stor-layout.h.
8064 * tree-ssa-operands.c: Include stmt.h.
8065 Include print-tree.h.
8066 * tree-ssa-phiopt.c: Include stor-layout.h.
8067 * tree-ssa-reassoc.c: Include stor-layout.h.
8068 * tree-ssa-sccvn.c: Include stor-layout.h.
8069 * tree-ssa-sink.c: Include stor-layout.h.
8070 * tree-ssa-strlen.c: Include stor-layout.h.
8071 * tree-ssa-structalias.c: Include stor-layout.h.
8072 Include stmt.h.
8073 * tree-ssa-tail-merge.c: Include stor-layout.h.
8074 Include trans-mem.h.
8075 * tree-ssa-uncprop.c: Include stor-layout.h.
8076 * tree-ssa.c: Include stor-layout.h.
8077 * tree-ssanames.c: Include stor-layout.h.
8078 * tree-streamer-in.c: Include stringpool.h.
8079 * tree-streamer-out.c: Include stor-layout.h.
8080 * tree-switch-conversion.c: Include varasm.h.
8081 Include stor-layout.h.
8082 * tree-tailcall.c: Include stor-layout.h.
8083 * tree-vect-data-refs.c: Include stor-layout.h.
8084 * tree-vect-generic.c: Include stor-layout.h.
8085 * tree-vect-loop.c: Include stor-layout.h.
8086 * tree-vect-patterns.c: Include stor-layout.h.
8087 * tree-vect-slp.c: Include stor-layout.h.
8088 * tree-vect-stmts.c: Include stor-layout.h.
8089 * tree-vectorizer.c: Include stor-layout.h.
8090 * tree-vrp.c: Include stor-layout.h.
8091 Include calls.h.
8092 * tree.c: Include stor-layout.h.
8093 Include calls.h.
8094 Include attribs.h.
8095 Include varasm.h.
8096 * tsan.c: Include expr.h.
8097 * ubsan.c: Include stor-layout.h.
8098 Include stringpool.h.
8099 * value-prof.c: Include tree-nested.h.
8100 Include calls.h.
8101 * var-tracking.c: Include varasm.h.
8102 Include stor-layout.h.
8103 * varasm.c: Include stor-layout.h.
8104 Include stringpool.h.
8105 Include gcc-symtab.h.
8106 Include varasm.h.
8107 * varpool.c: Include varasm.h.
8108 * vmsdbgout.c: Include varasm.h.
8109 * xcoffout.c: Include varasm.h.
8110
8111 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
8112
8113 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
8114 use (.&-4) idiom.
8115
8116 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8117
8118 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
8119
8120 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8121 Alan Modra <amodra@gmail.com>
8122
8123 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
8124 (RS6000_SAVE_TOC): Remove.
8125 (RS6000_TOC_SAVE_SLOT): New macro.
8126 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
8127 (rs6000_parm_start): Use it.
8128 (rs6000_function_arg_advance_1): Likewise.
8129 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
8130 (rs6000_emit_epilogue): Likewise.
8131 (rs6000_call_aix): Likewise.
8132 (rs6000_output_function_prologue): Do not save/restore r11
8133 around calling _mcount for ABI_ELFv2.
8134
8135 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8136 Alan Modra <amodra@gmail.com>
8137
8138 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
8139 Add prototype.
8140 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
8141 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
8142 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
8143 (rs6000_function_parms_need_stack): Likewise.
8144 (rs6000_reg_parm_stack_space): Likewise.
8145 (rs6000_function_arg): Do not replace BLKmode by Pmode when
8146 returning a register argument.
8147
8148 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8149 Michael Gschwind <mkg@us.ibm.com>
8150
8151 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8152 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8153 (FUNCTION_VALUE_REGNO_P): Use them.
8154 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8155 (rs6000_return_in_msb): New function.
8156 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8157 Handle aggregates of up to 16 bytes for ELFv2.
8158 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8159
8160 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8161 Michael Gschwind <mkg@us.ibm.com>
8162
8163 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8164 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8165 (rs6000_discover_homogeneous_aggregate): Likewise.
8166 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8167 (rs6000_function_arg_advance_1): Likewise.
8168 (rs6000_function_arg): Likewise.
8169 (rs6000_arg_partial_bytes): Likewise.
8170 (rs6000_psave_function_arg): Handle BLKmode arguments.
8171
8172 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8173 Michael Gschwind <mkg@us.ibm.com>
8174
8175 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8176 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8177 (rs6000_discover_homogeneous_aggregate): Likewise.
8178 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8179 (rs6000_function_arg_advance_1): Likewise.
8180 (rs6000_function_arg): Likewise.
8181 (rs6000_arg_partial_bytes): Likewise.
8182 (rs6000_psave_function_arg): Handle BLKmode arguments.
8183
8184 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8185
8186 * config/rs6000/rs6000.c (machine_function): New member
8187 r2_setup_needed.
8188 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8189 (rs6000_output_mi_thunk): Set r2_setup_needed.
8190 (rs6000_output_function_prologue): Output global entry point
8191 prologue and local entry point marker if needed for ABI_ELFv2.
8192 Output -mprofile-kernel code here.
8193 (output_function_profiler): Do not output -mprofile-kernel
8194 code here; moved to rs6000_output_function_prologue.
8195 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8196
8197 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8198 (rs6000_output_function_entry): Likewise.
8199 (rs6000_assemble_integer): Likewise.
8200 (rs6000_elf_encode_section_info): Likewise.
8201 (rs6000_elf_declare_function_name): Do not create dot symbols
8202 or .opd section for ABI_ELFv2.
8203
8204 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8205 (rs6000_trampoline_init): Likewise.
8206 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8207
8208 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
8209 for function descriptors in ABI_ELFv2.
8210
8211 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8212 on ABI_AIX only, not ABI_ELFv2.
8213 ("*call_value_indirect_aix<mode>"): Likewise.
8214 ("*call_indirect_elfv2<mode>"): New pattern.
8215 ("*call_value_indirect_elfv2<mode>"): Likewise.
8216
8217 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8218 check for function descriptors in ABI_ELFv2.
8219 ("current_file_function_operand"): Likewise.
8220
8221 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8222 (toc): Undefine.
8223 (FUNC_NAME): Define ELFv2 variant.
8224 (JUMP_TARGET): Likewise.
8225 (FUNC_START): Likewise.
8226 (HIDDEN_FUNC): Likewise.
8227 (FUNC_END): Likeiwse.
8228
8229 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8230
8231 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8232 and --with-abi=elfv2.
8233 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8234 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8235 (mabi=elfv2): Likewise.
8236 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8237 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8238 if !RS6000_BI_ARCH.
8239 (ELFv2_ABI_CHECK): New macro.
8240 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8241 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8242 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8243 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8244 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8245
8246 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8247 (debug_stack_info): Likewise.
8248 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8249 (rs6000_legitimize_tls_address): Likewise.
8250 (rs6000_conditional_register_usage): Likewise.
8251 (rs6000_emit_move): Likewise.
8252 (init_cumulative_args): Likewise.
8253 (rs6000_function_arg_advance_1): Likewise.
8254 (rs6000_function_arg): Likewise.
8255 (rs6000_arg_partial_bytes): Likewise.
8256 (rs6000_output_function_entry): Likewise.
8257 (rs6000_assemble_integer): Likewise.
8258 (rs6000_savres_strategy): Likewise.
8259 (rs6000_stack_info): Likewise.
8260 (rs6000_function_ok_for_sibcall): Likewise.
8261 (rs6000_emit_load_toc_table): Likewise.
8262 (rs6000_savres_routine_name): Likewise.
8263 (ptr_regno_for_savres): Likewise.
8264 (rs6000_emit_prologue): Likewise.
8265 (rs6000_emit_epilogue): Likewise.
8266 (rs6000_output_function_epilogue): Likewise.
8267 (output_profile_hook): Likewise.
8268 (output_function_profiler): Likewise.
8269 (rs6000_trampoline_size): Likewise.
8270 (rs6000_trampoline_init): Likewise.
8271 (rs6000_elf_output_toc_section_asm_op): Likewise.
8272 (rs6000_elf_encode_section_info): Likewise.
8273 (rs6000_elf_reloc_rw_mask): Likewise.
8274 (rs6000_elf_declare_function_name): Likewise.
8275 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8276 except that rs6000_compat_align_parm is always assumed false.
8277 (rs6000_gimplify_va_arg): Likewise.
8278 (rs6000_call_aix): Update comment.
8279 (rs6000_sibcall_aix): Likewise.
8280 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8281 Treat ABI_ELFv2 the same as ABI_AIX.
8282 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8283 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8284 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8285 ("load_toc_aix_si"): Likewise.
8286 ("load_toc_aix_di"): Likewise.
8287 ("call"): Likewise.
8288 ("call_value"): Likewise.
8289 ("*call_local_aix<mode>"): Likewise.
8290 ("*call_value_local_aix<mode>"): Likewise.
8291 ("*call_nonlocal_aix<mode>"): Likewise.
8292 ("*call_value_nonlocal_aix<mode>"): Likewise.
8293 ("*call_indirect_aix<mode>"): Likewise.
8294 ("*call_value_indirect_aix<mode>"): Likewise.
8295 ("sibcall"): Likewise.
8296 ("sibcall_value"): Likewise.
8297 ("*sibcall_aix<mode>"): Likewise.
8298 ("*sibcall_value_aix<mode>"): Likewise.
8299 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8300 ("current_file_function_operand"): Likewise.
8301
8302 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8303
8304 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8305 by making use of the fact that for vector / floating point arguments
8306 passed both in VRs/FPRs and in the fixed parameter area, the partial
8307 bytes mechanism is in fact not used.
8308
8309 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8310
8311 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8312 (rs6000_finish_function_arg): Likewise.
8313 (rs6000_function_arg): Use rs6000_psave_function_arg and
8314 rs6000_finish_function_arg to handle both vector and floating
8315 point arguments that are also passed in GPRs / the stack.
8316
8317 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8318
8319 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8320 (USE_ALTIVEC_FOR_ARG_P): Likewise.
8321 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8322 (rs6000_function_arg_advance_1):Likewise.
8323 (rs6000_darwin64_record_arg_recurse): Likewise.
8324 (rs6000_function_arg): Likewise.
8325 (rs6000_arg_partial_bytes): Likewise.
8326
8327 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8328
8329 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8330 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8331 (rs6000_savres_strategy): Likewise.
8332 (rs6000_return_addr): Likewise.
8333 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8334 testing for ABI_V4 (since ABI_DARWIN is impossible here).
8335 (rs6000_emit_prologue): Likewise.
8336 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8337 (rs6000_elf_declare_function_name): Remove duplicated test.
8338 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8339 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8340 ("load_toc_v4_PIC_1_normal"): Likewise.
8341 ("load_toc_v4_PIC_1_476"): Likewise.
8342 ("load_toc_v4_PIC_1b"): Likewise.
8343 ("load_toc_v4_PIC_1b_normal"): Likewise.
8344 ("load_toc_v4_PIC_1b_476"): Likewise.
8345 ("load_toc_v4_PIC_2"): Likewise.
8346 ("load_toc_v4_PIC_3b"): Likewise.
8347 ("load_toc_v4_PIC_3c"): Likewise.
8348 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8349 (RS6000_SAVE_AREA): Likewise.
8350 (FP_ARG_MAX_REG): Likewise.
8351 (RETURN_ADDRESS_OFFSET): Likewise.
8352 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8353 of ABI_AIX.
8354 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8355 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8356
8357 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8358
8359 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8360 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
8361 Create call insn directly instead of via various gen_... routines.
8362 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8363 (rs6000_sibcall_aix): New function.
8364 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8365 (TOC_SAVE_OFFSET_64BIT): Likewise.
8366 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8367 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8368 (AIX_FUNC_DESC_SC_32BIT): Likewise.
8369 (AIX_FUNC_DESC_SC_64BIT): Likewise.
8370 ("call" expander): Call rs6000_call_aix.
8371 ("call_value" expander): Likewise.
8372 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8373 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8374 ("*call_indirect_aix<mode>"): ... by this insn pattern.
8375 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8376 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8377 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8378 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8379 ("*call_nonlocal_aix<mode>"): ... this pattern.
8380 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8381 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8382 ("*call_local_aix<mode>"): New insn pattern.
8383 ("*call_value_local_aix<mode>"): Likewise.
8384 ("sibcall" expander): Call rs6000_sibcall_aix.
8385 ("sibcall_value" expander): Likewise. Move earlier in file.
8386 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8387 ("*sibcall_aix<mode>"): ... this pattern.
8388 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8389 ("*sibcall_value_aix<mode>"): ... this pattern.
8390 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8391 (rs6000_call_aix): Add prototype.
8392 (rs6000_sibcall_aix): Likewise.
8393
8394 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8395
8396 PR sanitizer/59122
8397 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8398 isn't confused by the artificial decl.
8399
8400 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8401
8402 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8403 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8404 Instead, add USEs of all modified call-saved CR fields to the
8405 insn storing the result to the stack slot, and provide an
8406 appropriate REG_FRAME_RELATED_EXPR for that insn.
8407 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8408 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8409
8410 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8411 Alan Modra <amodra@gmail.com>
8412
8413 * function.c (assign_parms): Use all.reg_parm_stack_space instead
8414 of re-evaluating REG_PARM_STACK_SPACE target macro.
8415 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
8416 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8417 (assign_parm_find_entry_rtl): Update call.
8418 * calls.c (initialize_argument_information): Update call.
8419 (emit_library_call_value_1): Likewise.
8420 * expr.h (locate_and_pad_parm): Update prototype.
8421
8422 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8423
8424 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8425 arguments.
8426
8427 2013-11-14 DJ Delorie <dj@redhat.com>
8428
8429 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8430 to 16 bits.
8431
8432 2013-11-14 Jeff Law <law@redhat.com>
8433
8434 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8435 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8436
8437 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8438
8439 * doc/invoke.texi: Update documentation for AArch64's -mcpu
8440 and -mtune options.
8441
8442 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8443
8444 * config/aarch64/aarch64-cores.def (example-1): Remove.
8445 (example-2): Likewise.
8446 * config/aarch64/aarch64-tune.md: Regenerate.
8447 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8448 (generic_sched): Remove "large", "small".
8449 * config/aarch64/large.md: Delete.
8450 * config/aarch64/small.md: Delete.
8451
8452 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8453
8454 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8455 * config/aarch64/aarch64-tune.md: Regenerate.
8456 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8457 (generic_sched): "no" if we are tuning for cortexa15.
8458 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8459 relative path.
8460
8461 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8462
8463 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8464 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8465 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8466 (all_cores): Use cortexa53 when tuning for "generic".
8467 (aarch64_override_options): Fix comment.
8468 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8469 * config/aarch64/aarch64-generic.md: Delete.
8470
8471 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8472
8473 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8474
8475 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8476
8477 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8478 (generic_rtx_cost_table): Remove.
8479 (aarch64_rtx_costs): Use fields from cpu_cost_table.
8480 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8481 insn_extra_cost.
8482 (cpu_rtx_cost_table): Remove.
8483
8484 2013-11-14 Julian Brown <julian@codesourcery.com>
8485 Joey Ye <joey.ye@arm.com>
8486
8487 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8488 (arm_v7m_tune): New.
8489 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8490 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8491 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8492 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8493
8494 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8495
8496 PR target/57491
8497 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8498 flag setting.
8499
8500 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8501 Uros Bizjak <ubizjak@gmail.com>
8502
8503 PR target/59101
8504 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8505 operands[2] satisfies_constraint_Z that might have bit 31 set.
8506
8507 2013-11-13 Jeff Law <law@redhat.com>
8508
8509 PR tree-optimization/59102
8510 * gimple-ssa-isolate-paths.c
8511 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8512 gimple assignment before looking at gimple_assign_lhs.
8513
8514 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8515
8516 * ira.c: Add comment about threads at the top of file.
8517
8518 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8519
8520 * ira-color.c (coalesce_allocnos): Don't allocate and free
8521 sorted_copies.
8522
8523 2013-11-14 Tom de Vries <tom@codesourcery.com>
8524
8525 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8526 equality for GIMPLE_ASSIGN.
8527
8528 2013-11-14 Tom de Vries <tom@codesourcery.com>
8529
8530 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8531 function out of ...
8532 (gimple_equal_p): ... here.
8533
8534 2013-11-14 Tom de Vries <tom@codesourcery.com>
8535
8536 * trans-mem.c (is_tm_ending): New function.
8537 * gimple.h (is_tm_ending): Declare.
8538 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8539 BUILT_IN_TM_COMMIT.
8540 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8541
8542 2013-11-14 Tom de Vries <tom@codesourcery.com>
8543
8544 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8545
8546 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
8547
8548 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
8549 (struct walk_stmt_info): Relocate here from gimple.h.
8550 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
8551 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8552 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8553 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8554 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8555 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8556 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8557 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8558 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8559 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8560 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8561 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8562 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8563 (struct walk_stmt_info): Move to gimple-walk.h.
8564 (gimple_seq_set_location): Move to gimple.c
8565 * gimple-walk.c: New File.
8566 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8567 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8568 walk_stmt_load_store_ops): Relocate here from gimple.c.
8569 * gimple-iterator.c: Include gimple-iterator.h.
8570 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8571 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8572 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8573 gimple-walk.c.
8574 (gimple_seq_set_location): Relocate from gimple.h.
8575 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8576 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8577 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8578 * Makefile.in (OBJS): Add gimple-walk.o
8579 * asan.c: Update Include list as required for gimple-iterator.h and
8580 gimple-walk.h.
8581 * cfgexpand.c: Likewise.
8582 * cfgloop.c: Likewise.
8583 * cfgloopmanip.c: Likewise.
8584 * cgraph.c: Likewise.
8585 * cgraphbuild.c: Likewise.
8586 * cgraphunit.c: Likewise.
8587 * gimple-fold.c: Likewise.
8588 * gimple-low.c: Likewise.
8589 * gimple-pretty-print.c: Likewise.
8590 * gimple-ssa-isolate-paths.c: Likewise.
8591 * gimple-ssa-strength-reduction.c: Likewise.
8592 * gimple-streamer-in.c: Likewise.
8593 * gimple-streamer-out.c: Likewise.
8594 * gimplify.c: Likewise.
8595 * graphite-blocking.c: Likewise.
8596 * graphite-clast-to-gimple.c: Likewise.
8597 * graphite-dependences.c: Likewise.
8598 * graphite-interchange.c: Likewise.
8599 * graphite-optimize-isl.c: Likewise.
8600 * graphite-poly.c: Likewise.
8601 * graphite-scop-detection.c: Likewise.
8602 * graphite-sese-to-poly.c: Likewise.
8603 * graphite.c: Likewise.
8604 * ipa-inline-analysis.c: Likewise.
8605 * ipa-profile.c: Likewise.
8606 * ipa-prop.c: Likewise.
8607 * ipa-pure-const.c: Likewise.
8608 * ipa-split.c: Likewise.
8609 * lto-streamer-in.c: Likewise.
8610 * lto-streamer-out.c: Likewise.
8611 * omp-low.c: Likewise.
8612 * predict.c: Likewise.
8613 * profile.c: Likewise.
8614 * sese.c: Likewise.
8615 * tracer.c: Likewise.
8616 * trans-mem.c: Likewise.
8617 * tree-call-cdce.c: Likewise.
8618 * tree-cfg.c: Likewise.
8619 * tree-cfgcleanup.c: Likewise.
8620 * tree-complex.c: Likewise.
8621 * tree-data-ref.c: Likewise.
8622 * tree-dfa.c: Likewise.
8623 * tree-eh.c: Likewise.
8624 * tree-emutls.c: Likewise.
8625 * tree-if-conv.c: Likewise.
8626 * tree-inline.c: Likewise.
8627 * tree-into-ssa.c: Likewise.
8628 * tree-loop-distribution.c: Likewise.
8629 * tree-nested.c: Likewise.
8630 * tree-nrv.c: Likewise.
8631 * tree-object-size.c: Likewise.
8632 * tree-outof-ssa.c: Likewise.
8633 * tree-parloops.c: Likewise.
8634 * tree-predcom.c: Likewise.
8635 * tree-profile.c: Likewise.
8636 * tree-scalar-evolution.c: Likewise.
8637 * tree-sra.c: Likewise.
8638 * tree-ssa-ccp.c: Likewise.
8639 * tree-ssa-coalesce.c: Likewise.
8640 * tree-ssa-copy.c: Likewise.
8641 * tree-ssa-copyrename.c: Likewise.
8642 * tree-ssa-dce.c: Likewise.
8643 * tree-ssa-dom.c: Likewise.
8644 * tree-ssa-dse.c: Likewise.
8645 * tree-ssa-forwprop.c: Likewise.
8646 * tree-ssa-ifcombine.c: Likewise.
8647 * tree-ssa-live.c: Likewise.
8648 * tree-ssa-loop-ch.c: Likewise.
8649 * tree-ssa-loop-im.c: Likewise.
8650 * tree-ssa-loop-ivcanon.c: Likewise.
8651 * tree-ssa-loop-ivopts.c: Likewise.
8652 * tree-ssa-loop-manip.c: Likewise.
8653 * tree-ssa-loop-niter.c: Likewise.
8654 * tree-ssa-loop-prefetch.c: Likewise.
8655 * tree-ssa-loop.c: Likewise.
8656 * tree-ssa-math-opts.c: Likewise.
8657 * tree-ssa-phiopt.c: Likewise.
8658 * tree-ssa-phiprop.c: Likewise.
8659 * tree-ssa-pre.c: Likewise.
8660 * tree-ssa-propagate.c: Likewise.
8661 * tree-ssa-reassoc.c: Likewise.
8662 * tree-ssa-sink.c: Likewise.
8663 * tree-ssa-strlen.c: Likewise.
8664 * tree-ssa-structalias.c: Likewise.
8665 * tree-ssa-tail-merge.c: Likewise.
8666 * tree-ssa-ter.c: Likewise.
8667 * tree-ssa-threadedge.c: Likewise.
8668 * tree-ssa-threadupdate.c: Likewise.
8669 * tree-ssa-uncprop.c: Likewise.
8670 * tree-ssa-uninit.c: Likewise.
8671 * tree-ssa.c: Likewise.
8672 * tree-stdarg.c: Likewise.
8673 * tree-switch-conversion.c: Likewise.
8674 * tree-tailcall.c: Likewise.
8675 * tree-vect-data-refs.c: Likewise.
8676 * tree-vect-generic.c: Likewise.
8677 * tree-vect-loop-manip.c: Likewise.
8678 * tree-vect-loop.c: Likewise.
8679 * tree-vect-patterns.c: Likewise.
8680 * tree-vect-slp.c: Likewise.
8681 * tree-vect-stmts.c: Likewise.
8682 * tree-vectorizer.c: Likewise.
8683 * tree-vrp.c: Likewise.
8684 * tree.c: Likewise.
8685 * tsan.c: Likewise.
8686 * value-prof.c: Likewise.
8687 * vtable-verify.c: Likewise.
8688
8689 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8690
8691 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8692 fix.
8693
8694 2013-11-13 Jeff Law <law@redhat.com>
8695
8696 * PR middle-end/59119
8697 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8698 function, extracted from gimple_ssa_isolate_erroneous_paths.
8699 (find_explicit_erroneous_behaviour): Similarly.
8700 (insert_trap_and_remove_trailing_statements): Remove statements
8701 in reverse order.
8702
8703 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8704
8705 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8706 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8707 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8708 looking at INSN_CODE.
8709 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8710 active_insn_p object, respect basic block boundaries.
8711 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8712 follows immediately after the jump table data label.
8713 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8714 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8715 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8716
8717 2013-11-13 Teresa Johnson <tejohnson@google.com>
8718
8719 PR ipa/58862
8720 * predict.c (drop_profile): Error is currently too strict.
8721 (handle_missing_profiles): Pass call_count to drop_profile.
8722
8723 2013-11-13 Teresa Johnson <tejohnson@google.com>
8724
8725 PR ipa/58862
8726 * ipa-inline.c (edge_badness): Fix overflow.
8727
8728 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8729
8730 PR rtl-optimization/59036
8731 * ira-color.c (struct allocno_color_data): Add new members
8732 first_thread_allocno, next_thread_allocno, thread_freq.
8733 (sorted_copies): New static var.
8734 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8735 (allocno_thread_conflict_p, merge_threads)
8736 (form_threads_from_copies, form_threads_from_bucket)
8737 (form_threads_from_colorable_allocno, init_allocno_threads): New
8738 functions.
8739 (bucket_allocno_compare_func): Add comparison by thread frequency
8740 and threads.
8741 (add_allocno_to_ordered_bucket): Rename to
8742 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8743 (push_only_colorable): Call form_threads_from_bucket.
8744 (color_pass): Call init_allocno_threads. Use
8745 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8746 for nuillify allocno color data.
8747 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8748 (coalesce_allocnos): Use static sorted copies.
8749
8750 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8751
8752 * passes.c (execute_todo): Don't call do_per_function if
8753 flags are zero.
8754 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8755 execute_function_dump if dump_file is NULL.
8756
8757 2013-11-13 Martin Jambor <mjambor@suse.cz>
8758
8759 * cgraph.c (cgraph_get_create_node): Do what
8760 cgraph_get_create_real_symbol_node used to do.
8761 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8762 call cgraph_get_create_node.
8763 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8764 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8765 cgraph_get_create_node. Assert we get a node.
8766
8767 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8768
8769 * config/aarch64/aarch64-simd.md (vec_extract): New.
8770
8771 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8772
8773 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8774 the constraint.
8775
8776 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8777
8778 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8779 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8780 or if optimization is enabled.
8781 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8782 require that all the names based on a PARM_DECL or a RESULT_DECL that
8783 isn't ignored for debug info be coalesced.
8784
8785 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8786
8787 * config/c6x/c6x.c: Include "gimple-expr.h".
8788
8789 2013-11-13 Richard Biener <rguenther@suse.de>
8790
8791 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8792 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8793 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8794 dealing with type mismatches inside component reference chains.
8795
8796 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8797
8798 PR tree-optimization/59077
8799 * ipa-pure-const.c (better_state): Update *state.
8800
8801 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8802
8803 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8804 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8805 Update offset calculations.
8806
8807 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8808
8809 PR ada/35998
8810 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8811 for fields. Do not add the attribute if the size is negative.
8812
8813 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8814
8815 * config/arm/arm.c: Include aarch-cost-tables.h.
8816 (generic_extra_costs): Move from here...
8817 * config/arm/aarch-cost-tables.h: ... To here. New file.
8818
8819 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8821 Sergey Lega <sergey.s.lega@intel.com>
8822 Anna Tikhonova <anna.tikhonova@intel.com>
8823 Ilya Tocar <ilya.tocar@intel.com>
8824 Andrey Turetskiy <andrey.turetskiy@intel.com>
8825 Ilya Verbin <ilya.verbin@intel.com>
8826 Kirill Yukhin <kirill.yukhin@intel.com>
8827 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8828
8829 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8830 * config/i386/predicate.md (const_0_to_4_operand): New.
8831 (const_0_to_5_operand): Ditto.
8832 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8833 (UNSPEC_COMPRESS_STORE): Ditto.
8834 (UNSPEC_EXPAND): Ditto.
8835 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8836 (define_mode_attr ssescalarsize): Ditto.
8837 (avx512f_load<mode>_mask): Ditto.
8838 (avx512f_store<mode>_mask): Ditto.
8839 (avx512f_storedqu<mode>_mask): Ditto.
8840 (avx512f_vmcmp<mode>3_mask): Ditto.
8841 (avx512f_fmadd_<mode>_mask): Ditto.
8842 (avx512f_fmadd_<mode>_mask3): Ditto.
8843 (avx512f_fmsub_<mode>_mask): Ditto.
8844 (avx512f_fmsub_<mode>_mask3): Ditto.
8845 (avx512f_fnmadd_<mode>_mask): Ditto.
8846 (avx512f_fnmadd_<mode>_mask3): Ditto.
8847 (avx512f_fnmsub_<mode>_mask): Ditto.
8848 (avx512f_fnmsub_<mode>_mask3): Ditto.
8849 (avx512f_fmaddsub_<mode>_mask): Ditto.
8850 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8851 (avx512f_fmsubadd_<mode>_mask): Ditto.
8852 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8853 (vec_unpacku_float_lo_v16si): Ditto.
8854 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8855 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8856 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8857 (vec_extract_lo_<mode>_maskm): Ditto.
8858 (vec_extract_hi_<mode>_maskm): Ditto.
8859 (avx512f_vternlog<mode>_mask): Ditto.
8860 (avx512f_shufps512_mask): Ditto.
8861 (avx512f_fixupimm<mode>_mask): Ditto.
8862 (avx512f_shufpd512_mask): Ditto.
8863 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8864 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8865 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8866 (ashr<mode>3<mask_name>): Ditto.
8867 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8868 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8869 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8870 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8871 (avx512f_pshufdv3_mask): Ditto.
8872 (avx512f_perm<mode>_mask): Ditto.
8873 (avx512f_vpermi2var<mode>3_mask): Ditto.
8874 (avx512f_vpermt2var<mode>3_mask): Ditto.
8875 (avx512f_compress<mode>_mask): Ditto.
8876 (avx512f_compressstore<mode>_mask): Ditto.
8877 (avx512f_expand<mode>_mask): Ditto.
8878 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8879 to support masking.
8880 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8881 (<plusminus_insn><mode>3<mask_name>): Ditto.
8882 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8883 (mul<mode>3<mask_name>): Ditto.
8884 (*mul<mode>3<mask_name>): Ditto.
8885 (<sse>_div<mode>3<mask_name>): Ditto.
8886 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8887 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8888 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8889 (<code><mode>3<mask_name>/smaxmin): Ditto.
8890 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8891 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8892 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8893 (ufloatv16siv16sf2<mask_name>): Ditto.
8894 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8895 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8896 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8897 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8898 (ufloatv8siv8df<mask_name>): Ditto.
8899 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8900 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8901 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8902 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8903 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8904 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8905 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8906 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8907 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8908 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8909 (vec_extract_lo_<mode><mask_name>): Ditto.
8910 (vec_extract_hi_<mode><mask_name>): Ditto.
8911 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8912 (avx512f_movddup512<mask_name>): Ditto.
8913 (avx512f_unpcklpd512<mask_name>): Ditto.
8914 (*avx512f_unpcklpd512<mask_name>): Ditto.
8915 (*avx512f_vmscalef<mode>): Ditto.
8916 (avx512f_scalef<mode><mask_name>): Ditto.
8917 (avx512f_getexp<mode><mask_name>): Ditto.
8918 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8919 (avx512f_rndscale<mode><mask_name>): Ditto.
8920 (avx512f_shufps512_1<mask_name>): Ditto.
8921 (avx512f_shufpd512_1<mask_name>): Ditto.
8922 (<plusminus_insn><mode>3<mask_name>): Ditto.
8923 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8924 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8925 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8926 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8927 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8928 (mul<mode>3<mask_name>): Ditto.
8929 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8930 (<shift_insn><mode>3<mask_name>): Ditto.
8931 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8932 (avx512f_<rotate><mode><mask_name>): Ditto.
8933 (<code><mode>3<mask_name>/maxmin): Ditto.
8934 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8935 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8936 (*andnot<mode>3<mask_name>): Ditto.
8937 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8938 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8939 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8940 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8941 (vec_set_lo_<mode><mask_name>): Ditto.
8942 (vec_set_hi_<mode><mask_name>): Ditto.
8943 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8944 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8945 (avx512f_pshufd_1<mask_name>): Ditto.
8946 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8947 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8948 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8949 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8950 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8951 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8952 (avx512er_exp2<mode><mask_name>): Ditto.
8953 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8954 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8955 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8956 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8957 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8958 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8959 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8960 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8961 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8962 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8963 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8964 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8965 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8966 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8967 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8968 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8969 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8970 (avx512f_getmant<mode><mask_name>): Ditto.
8971 (clz<mode>2<mask_name>): Ditto.
8972 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8973 (*srcp14<mode>): Remove visibility.
8974 (*rsqrt14<mode>): Ditto.
8975 (*fma_fmsub_<mode>): Ditto.
8976 (*fma_fnmadd_<mode>): Ditto.
8977 (*avx512f_rndscale<mode>): Ditto.
8978 * config/i386/subst.md: New file.
8979
8980 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8981
8982 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8983 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8984 (atomic_load_explicit, atomic_exchange_explicit)
8985 (atomic_compare_exchange_strong_explicit)
8986 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8987 declare variable initialized with PTR argument.
8988
8989 2013-11-12 Jeff Law <law@redhat.com>
8990
8991 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8992 backedge_seen_p. Set, use and pass it to children appropriately.
8993 (thread_through_normal_block): Similarly.
8994 (thread_across_edge): Similarly.
8995
8996 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8997 memory references as volatile.
8998 (insert_trap_and_remove_trailing_statements): Fix comment.
8999
9000 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
9001
9002 PR other/58712
9003 * ira-costs.c (record_operand_costs): Check operands number for
9004 the single set.
9005
9006 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9007
9008 PR target/59054
9009 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
9010 constraints that would allow DImode into the traditional Altivec
9011 registers, but cause undesirable code generation when loading 0 as
9012 a constant.
9013 (movdi_internal64): Likewise.
9014 (cmp<mode>_fpr): Do not use %x for CR register output.
9015 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
9016 -mallow-upper-sf debug switches are used.
9017
9018 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
9019
9020 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
9021 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
9022 Relocate prototypes from gimple.h.
9023 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
9024 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
9025 from gimple.h.
9026 * gimple.h: Move some prototypes to gimplify.h.
9027 (gimple_predicate, enum fallback, enum gimplify_status): Move to
9028 gimplify.h.
9029 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
9030 Relocate from gimpify.c.
9031 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
9032 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
9033 is_gimple_reg_rhs) Relocate from gimplify.c.
9034 * gimplify.c (mark_addressable): Move to gimple-expr.c.
9035 (gimple_seq_add_stmt_without_update): Move to gimple.c.
9036 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
9037 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
9038 is_gimple_reg_rhs): Move to gimple-expr.c.
9039 (should_carry_location_p): Move to gimple.c.
9040 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
9041 to gimple.h.
9042 (annotate_one_with_location, annotate_all_with_location_after,
9043 annotate_all_with_location): Move to gimple.c.
9044 (compare_case_labels, sort_case_labels,
9045 preprocess_case_label_vec_for_gimple): Move to gimple.c.
9046 (rhs_predicate_for): Make static.
9047 (gimplify_assign): Relocate from gimple.c.
9048 * gimple.c (gimplify_assign): Move to gimplify.c.
9049 (gimple_seq_add_stmt_without_update, should_carry_location_p,
9050 annotate_one_with_location, annotate_all_with_location_after,
9051 annotate_all_with_location, compare_case_labels, sort_case_labels,
9052 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
9053 * tree.h (unshare_expr, unshare_expr_without_location,
9054 mark_addressable): Move prototypes to gimplify.h.
9055 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
9056 tmp_var_id_num
9057 * asan.c: Include gimplify.h rather than gimple.h.
9058 * cfgloopmanip.c: Likewise.
9059 * cgraphunit.c: Likewise.
9060 * cilk-common.c: Likewise.
9061 * dwarf2out.c: Dont include gimple.h.
9062 * fold-const.c: Include gimplify.h rather than gimple.h.
9063 * function.c: Likewise.
9064 * gimple-fold.c: Likewise.
9065 * gimple-ssa-strength-reduction.c: Likewise.
9066 * graphite-clast-to-gimple.c: Likewise.
9067 * graphite-sese-to-poly.c: Likewise.
9068 * ipa-prop.c: Likewise.
9069 * ipa-split.c: Likewise.
9070 * ipa.c: Likewise.
9071 * langhooks.c: Dont include gimple.h.
9072 * loop-init.c: Include gimplify.h rather than gimple.h.
9073 * omp-low.c: Likewise.
9074 * sese.c: Likewise.
9075 * stor-layout.c: Likewise.
9076 * targhooks.c: Likewise.
9077 * trans-mem.c: Likewise.
9078 * tree-affine.c: Likewise.
9079 * tree-cfg.c: Likewise.
9080 * tree-cfgcleanup.c: Likewise.
9081 * tree-complex.c: Likewise.
9082 * tree-if-conv.c: Likewise.
9083 * tree-inline.c: Likewise.
9084 * tree-iterator.c: Likewise.
9085 * tree-loop-distribution.c: Likewise.
9086 * tree-nested.c: Likewise.
9087 * tree-parloops.c: Likewise.
9088 * tree-predcom.c: Likewise.
9089 * tree-profile.c: Likewise.
9090 * tree-scalar-evolution.c: Likewise.
9091 * tree-sra.c: Likewise.
9092 * tree-ssa-address.c: Likewise.
9093 * tree-ssa-ccp.c: Likewise.
9094 * tree-ssa-dce.c: Likewise.
9095 * tree-ssa-forwprop.c: Likewise.
9096 * tree-ssa-ifcombine.c: Likewise.
9097 * tree-ssa-loop-im.c: Likewise.
9098 * tree-ssa-loop-ivopts.c: Likewise.
9099 * tree-ssa-loop-manip.c: Likewise.
9100 * tree-ssa-loop-niter.c: Likewise.
9101 * tree-ssa-loop-prefetch.c: Likewise.
9102 * tree-ssa-loop-unswitch.c: Likewise.
9103 * tree-ssa-math-opts.c: Likewise.
9104 * tree-ssa-phiopt.c: Likewise.
9105 * tree-ssa-phiprop.c: Likewise.
9106 * tree-ssa-pre.c: Likewise.
9107 * tree-ssa-propagate.c: Likewise.
9108 * tree-ssa-reassoc.c: Likewise.
9109 * tree-ssa-sccvn.c: Likewise.
9110 * tree-ssa-strlen.c: Likewise.
9111 * tree-ssa.c: Likewise.
9112 * tree-switch-conversio: Likewise.n.c
9113 * tree-tailcall.c: Likewise.
9114 * tree-vect-data-refs.c: Likewise.
9115 * tree-vect-generic.c: Likewise.
9116 * tree-vect-loop-manip.c: Likewise.
9117 * tree-vect-loop.c: Likewise.
9118 * tree-vect-patterns.c: Likewise.
9119 * tree-vect-stmts.c: Likewise.
9120 * tsan.c: Likewise.
9121 * value-prof.c: Likewise.
9122 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
9123 * config/alpha/alpha.c: Likewise.
9124 * config/darwin.c: Likewise.
9125 * config/i386/i386.c: Likewise.
9126 * config/ia64/ia64.c: Likewise.
9127 * config/mep/mep.c: Likewise.
9128 * config/mips/mips.c: Likewise.
9129 * config/rs6000/rs6000.c: Likewise.
9130 * config/s390/s390.c: Likewise.
9131 * config/sh/sh.c: Likewise.
9132 * config/sparc/sparc.c: Likewise.
9133 * config/spu/spu.c: Likewise.
9134 * config/stormy16/stormy16.c: Likewise.
9135 * config/tilegx/tilegx.c: Likewise.
9136 * config/tilepro/tilepro.c: Likewise.
9137 * config/xtensa/xtensa.c: Likewise.
9138
9139 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
9140
9141 * tree.c (grow_tree_vec_stat): New function ...
9142 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
9143 and macro front-end.
9144
9145 2013-11-12 Marek Polacek <polacek@redhat.com>
9146
9147 * final.c (update_alignments): Initialize label to NULL_RTX.
9148
9149 2013-11-12 Jeff Law <law@redhat.com>
9150
9151 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9152 (insert_trap_and_remove_trailing_statements): New argument OP which
9153 is the NULL pointer. Emit the trap after the load/store through
9154 the NULL pointer. Simplify the RHS of a store through a NULL pointer
9155 when trivial to do so.
9156 (isolate_path): Corresponding changes.
9157 (gimple_ssa_isolate_erroneous_path): Likewise.
9158
9159 2013-11-12 Teresa Johnson <tejohnson@google.com>
9160 Jan Hubicka <jh@suse.cz>
9161
9162 * predict.c (drop_profile): New function.
9163 (handle_missing_profiles): Ditto.
9164 (counts_to_freqs): Don't overwrite estimated frequencies
9165 when function has no profile counts.
9166 * predict.h (handle_missing_profiles): Declare.
9167 * tree-inline.c (freqs_to_counts): New function.
9168 (copy_cfg_body): Invoke freqs_to_counts as needed.
9169 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9170
9171 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9172
9173 PR target/59088
9174 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9175 Set for m_HASWELL.
9176 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9177
9178 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9179
9180 PR target/59084
9181 * config/i386/i386.c (ix86_option_override_internal): Check
9182 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9183 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9184 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9185 MASK_AVX256_SPLIT_UNALIGNED_STORE.
9186
9187 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9188 Clear m_COREI7_AVX and update comments.
9189 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9190
9191 2013-11-12 Martin Jambor <mjambor@suse.cz>
9192
9193 PR rtl-optimization/10474
9194 * ira.c (interesting_dest_for_shprep): New function.
9195 (split_live_ranges_for_shrink_wrap): Likewise.
9196 (find_moveable_pseudos): Move calculation of dominance info,
9197 df_analysios and the final anlyses to...
9198 (ira): ...here, call split_live_ranges_for_shrink_wrap.
9199
9200 2013-11-12 Bin Cheng <bin.cheng@arm.com>
9201
9202 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9203 Handle type conversion.
9204
9205 2013-11-11 Martin Liska <marxin.liska@gmail.com>
9206 Jan Hubicka <jh@suse.cz>
9207
9208 * cgraph.c (dump_cgraph_node): Profile dump added.
9209 * cgraph.h (struct cgraph_node): New time profile variable added.
9210 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9211 * gcov-io.h (gcov_type): New profiler type introduced.
9212 * ipa-profile.c (lto_output_node): Streaming for time profile added.
9213 (input_node): Time profiler is read from LTO stream.
9214 * predict.c (maybe_hot_count_p): Hot prediction changed.
9215 * profile.c (instrument_values): New case for time profiler added.
9216 (compute_value_histograms): Read of time profile.
9217 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9218 * tree-profile.c (init_ic_make_global_vars): Time profiler
9219 function added.
9220 (gimple_init_edge_profiler): TP function instrumentation.
9221 (gimple_gen_time_profiler): New.
9222 * value-prof.c (gimple_add_histogram_value): Support for time profiler
9223 added.
9224 (dump_histogram_value): TP type added to dumps.
9225 (visit_hist): More sensitive check that takes TP into account.
9226 (gimple_find_values_to_profile): TP instrumentation.
9227 * value-prof.h (hist_type): New histogram type added.
9228 (struct histogram_value_t): Pointer to struct function added.
9229 * libgcc/Makefile.in: New GCOV merge function for TP added.
9230 * libgcov.c: function_counter variable introduced.
9231 (_gcov_merge_time_profile): New.
9232 (_gcov_time_profiler): New.
9233
9234 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
9235 Jeff Law <law@redhat.com>
9236
9237 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9238 ao_ref_init_from_ptr_and_size for builtins.
9239
9240 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
9241 H.J. Lu <hongjiu.lu@intel.com>
9242
9243 PR target/58853
9244 * config/i386/x86-tune.def
9245 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9246 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9247 * config/i386/i386.h
9248 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9249 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
9250 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9251 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9252 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9253 misaligned_prologue_used. Check that
9254 desired_aling <= epilogue_size_needed.
9255
9256 2013-11-11 Cong Hou <congh@google.com>
9257
9258 PR tree-optimization/59050
9259 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9260
9261 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9262
9263 PR middle-end/59049
9264 * expmed.c (emit_store_flag): Fail for const-const comparison.
9265
9266 2013-11-11 Tristan Gingold <gingold@adacore.com>
9267 Eric Botcazou <ebotcazou@adacore.com>
9268
9269 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9270 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9271 * tree.def (CONSTRUCTOR): Likewise.
9272 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
9273 * gimplify.c (gimplify_init_constructor): Do not clear the object when
9274 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9275
9276 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
9277
9278 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9279 diagnostic_finish.
9280
9281 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9282
9283 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9284 comparisons.
9285
9286 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9287
9288 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9289
9290 2013-11-08 Jeff Law <law@redhat.com>
9291
9292 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9293 threading paths first, then perform PHI node checks if applicable.
9294
9295 2013-11-10 Karlson2k <k2k@narod.ru>
9296 Kai Tietz <ktietz@redhat.com>
9297
9298 PR plugin/52872
9299 * configure.ac: Adding for exported symbols check
9300 and for rdynamic-check executable-extension.
9301 * configure: Regenerated.
9302
9303 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
9304
9305 * mode-switching.c (optimize_mode_switching): Mark block as
9306 nontransparent, if last_mode at block exit is different from no_mode.
9307
9308 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9309
9310 * function.c (NAME__MAIN): Move to...
9311 * cfgexpand.c (NAME__MAIN): ...here.
9312
9313 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
9314
9315 * target.def (can_use_doloop_p): New hook.
9316 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9317 * doc/tm.texi: Regenerate.
9318 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9319 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9320 * hooks.c (hook_bool_dint_dint_uint_true): New function.
9321 * targhooks.h (can_use_doloop_if_innermost): Declare.
9322 * targhooks.c (can_use_doloop_if_innermost): New function.
9323 * target.h: Include double-int.h.
9324 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9325 Remove iteration count, maximum iteration count, loop depth and
9326 enter-at-top inputs from doloop_begin and doloop_end.
9327 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9328 interface.
9329 * config/arc/arc.c (arc_can_use_doloop_p): New function.
9330 (TARGET_CAN_USE_DOLOOP_P): Define.
9331 * config/arm/thumb2.md (doloop_end): Update for new interface.
9332 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9333 * config/bfin/bfin.md (doloop_end): Update for new interface.
9334 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9335 (TARGET_CAN_USE_DOLOOP_P): Define.
9336 * config/c6x/c6x.md (doloop_end): Update for new interface.
9337 * config/ia64/ia64.md (doloop_end): Update for new interface.
9338 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9339 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9340 interface.
9341 * config/mep/mep.c (mep_emit_doloop): Likewise.
9342 (TARGET_CAN_USE_DOLOOP_P): Define.
9343 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9344 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9345 * config/s390/s390.md (doloop_end): Update for new interface.
9346 * config/sh/sh.md (doloop_end): Likewise.
9347 * config/spu/spu.md (doloop_end): Likewise.
9348 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9349 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9350 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9351 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9352 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9353 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9354 interface.
9355 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9356
9357 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
9358
9359 PR other/59055
9360 * doc/extend.texi: Move Cilk Plus Builtins node before Other
9361 Builtins node.
9362
9363 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
9364 Joseph Myers <joseph@codesourcery.com>
9365
9366 * ginclude/stdatomic.h: New file.
9367 * Makefile.in (USER_H): Add stdatomic.h.
9368
9369 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9370
9371 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9372 comparisons.
9373
9374 2013-11-08 Jeff Law <law@redhat.com>
9375
9376 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9377 * tree-ssa-threadupdate.c (delete_thread_path): New function.
9378 (ssa_redirect_edges, thread_block_1): Use it.
9379 (thread_through_loop_header, mark_threaded_blocks): Likewise.
9380 (thread_through_all_blocks, register_jump_thread): Likewise.
9381 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9382
9383 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
9384
9385 * config/arm/aarch-common.c
9386 (search_term): New typedef.
9387 (shift_rtx_costs): New array.
9388 (arm_rtx_shift_left_p): New.
9389 (arm_find_sub_rtx_with_search_term): Likewise.
9390 (arm_find_sub_rtx_with_code): Likewise.
9391 (arm_early_load_addr_dep): Add sanity checking.
9392 (arm_no_early_alu_shift_dep): Likewise.
9393 (arm_no_early_alu_shift_value_dep): Likewise.
9394 (arm_no_early_mul_dep): Likewise.
9395 (arm_no_early_store_addr_dep): Likewise.
9396
9397 2013-11-08 Richard Biener <rguenther@suse.de>
9398
9399 PR tree-optimization/59047
9400 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9401
9402 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
9403
9404 * common.opt (fcheck-pointer-bounds): Move to ...
9405 * c-family/c.opt: ... here.
9406 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9407 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9408 * langhooks.h (lang_hooks): Remove chkp_supported field.
9409 * toplev.c (process_options): Remove chkp_supported check.
9410
9411 2013-11-08 Richard Biener <rguenther@suse.de>
9412
9413 PR tree-optimization/59038
9414 PR tree-optimization/58955
9415 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9416 previous change. Handle known dependences correctly.
9417
9418 2013-11-08 Tom de Vries <tom@codesourcery.com>
9419
9420 * config/rs6000/t-xilinx: Remove duplicate contents.
9421
9422 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
9423 Joseph Myers <joseph@codesourcery.com>
9424
9425 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9426 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9427 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9428 (struct tree_base): Add atomic_flag field.
9429 * tree.h (TYPE_ATOMIC): New accessor macro.
9430 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9431 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9432 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9433 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9434 * tree.c (set_type_quals): Set TYPE_ATOMIC.
9435 (find_atomic_core_type): New function.
9436 (build_qualified_type): Adjust alignment for qualified types.
9437 (build_atomic_base): New function
9438 (build_common_tree_nodes): Build atomicQI_type_node,
9439 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9440 atomicTI_type_node.
9441 * print-tree.c (print_node): Print atomic qualifier.
9442 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9443 * target.def (atomic_assign_expand_fenv): New hook.
9444 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9445 * doc/tm.texi: Regenerate.
9446 * targhooks.c (default_atomic_assign_expand_fenv): New function.
9447 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9448 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9449 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9450 function type.
9451 * config/i386/i386.c (enum ix86_builtins): Add
9452 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9453 IX86_BUILTIN_FNCLEX.
9454 (bdesc_special_args): Add __builtin_ia32_fnstenv,
9455 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9456 (ix86_expand_builtin): Handle the new built-in functions.
9457 (ix86_atomic_assign_expand_fenv): New function.
9458 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9459 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9460 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9461 (fnstenv, fldenv, fnstsw, fnclex): New insns.
9462
9463 2013-11-07 Steve Ellcey <sellcey@mips.com>
9464
9465 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9466 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9467 (MULTILIB_DIRNAMES): Add fp64 directory.
9468 (MULTILIB_EXCEPTIONS): Add new exclusions.
9469
9470 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
9471
9472 * gimplify.c (gimple_regimplify_operands): Do not set
9473 SSA_NAME_DEF_STMT.
9474 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9475 (rewrite_close_phi_out_of_ssa): Same.
9476 (rewrite_phi_out_of_ssa): Same.
9477 (rewrite_degenerate_phi): Same.
9478 (handle_scalar_deps_crossing_scop_limits): Same.
9479 * tree-if-conv.c (predicate_scalar_phi): Same.
9480 * tree-parloops.c (create_loads_for_reductions): Same.
9481 (create_final_loads_for_reduction): Same.
9482 (create_loads_and_stores_for_name): Same.
9483 (transform_to_exit_first_loop): Same.
9484 (create_parallel_loop): Same.
9485 * tree-ssa-loop-im.c
9486 (move_computations_dom_walker::before_dom_children): Same.
9487 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9488 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9489 * tree-ssa-propagate.c (substitute_and_fold): Same.
9490 * tree-vect-loop.c (vect_finalize_reduction): Same.
9491 * tree-vect-stmts.c (vectorizable_call): Same.
9492
9493 2013-11-07 Mike Stump <mikestump@comcast.net>
9494
9495 * config/pdp11/pdp11.c: Include dbxout.h.
9496 * config/picochip/picochip.c: Likewise.
9497
9498 2013-11-07 Cong Hou <congh@google.com>
9499
9500 PR tree-optimization/56764
9501 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9502 Combine alias checks if it is possible to amortize the runtime
9503 overhead. Return the number of alias checks after merging.
9504 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9505 Use the function vect_create_cond_for_alias_checks () to check
9506 the number of alias checks.
9507
9508 2013-11-07 Jeff Law <law@redhat.com>
9509
9510 * varpool.c (ctor_for_folding): Fix typo in comment.
9511
9512 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
9513
9514 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9515 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
9516
9517 2013-11-07 Jeff Law <law@redhat.com>
9518
9519 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9520
9521 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9522 No longer check if we have __builtin_trap, assume it's available.
9523
9524 2013-11-07 Diego Novillo <dnovillo@google.com>
9525
9526 * attribs.c (lookup_scoped_attribute_spec): Make static.
9527 (get_attribute_namespace): Likewise.
9528 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9529 (validate_arglist): Move earlier in the file. Make static.
9530 (expand_stack_restore): Move from stmt.c
9531 (expand_stack_save): Move from stmt.c
9532 (rewrite_call_expr_array): Move earlier in the file.
9533 (rewrite_call_expr_valist): Likewise.
9534 * cfgexpand.c: Include hard-reg-set.h before tree.h
9535 Include recog.h.
9536 Include output.h.
9537 (expand_asm_loc): Move from stmt.c.
9538 (n_occurrences): Move from stmt.c.
9539 (check_operand_nalternatives): Move from stmt.c.
9540 (tree_conflicts_with_clobbers_p): Move from stmt.c.
9541 (expand_asm_operands): Move from stmt.c
9542 (expand_asm_stmt): Move from stmt.c
9543 (expand_computed_goto): Move from stmt.c
9544 (expand_goto): Move from stmt.c
9545 (expand_null_return_1): Move from stmt.c
9546 (expand_null_return): Move from stmt.c
9547 (expand_value_return): Move from stmt.c
9548 (expand_return): Move from stmt.c
9549 (expand_main_function): Move from function.c
9550 (stack_protect_prologue): Move from function.c
9551 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9552 (build_function_decl_skip_args): Move from tree.c.
9553 * explow.c (tree_expr_size): Move from tree.c.
9554 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9555 (fields_length): Move from tree.c.
9556 * fold-const.c (size_low_cst): Move from tree.c.
9557 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9558 (tree_expr_nonzero_p): Make static. Move earlier in the file.
9559 (fold_build3_initializer_loc): Remove.
9560 (tree_invalid_nonnegative_warnv_p): Make static.
9561 * function.c (expand_main_function): Move to cfgexpand.c.
9562 (stack_protect_prologue): Move to cfgexpand.c.
9563 (set_insn_locations): Move earlier in the file.
9564 * gimple-fold.c: Include langhooks.h.
9565 (truth_type_for): Move from tree.c.
9566 * print-tree.c (print_vec_tree): Remove.
9567 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9568 (expand_goto): Move to cfgexpand.c.
9569 (n_occurrences): Move to cfgexpand.c.
9570 (expand_asm_loc): Move to cfgexpand.c
9571 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9572 (expand_asm_operands): Move to cfgexpand.c.
9573 (expand_asm_stmt): Move to cfgexpand.c.
9574 (check_operand_nalternatives): Move to cfgexpand.c
9575 (expand_null_return): Move to cfgexpand.c.
9576 (expand_value_return): Move to cfgexpand.c.
9577 (expand_null_return_1): Move to cfgexpand.c.
9578 (expand_return): Move to cfgexpand.c.
9579 (expand_stack_save): Move to builtins.c.
9580 (expand_stack_restore): Move to builtins.c
9581 * symtab.c: Include output.h.
9582 (decl_assembler_name_hash): Move from tree.c.
9583 (decl_assembler_name_equal): Move from tree.c.
9584 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9585 * tree-eh.c (in_array_bounds_p): Move from tree.c.
9586 (range_in_array_bounds_p): Move from tree.c.
9587 * tree-object-size.c (fini_object_sizes): Make static.
9588 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9589 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9590 * tree.c (decl_assembler_name_equal): Move to symtab.c.
9591 (tree_expr_size): Move to explow.c.
9592 (decl_assembler_name_hash): Move to symtab.c.
9593 (real_twop): Remove.
9594 (tree_expr_size): Move to explow.c.
9595 (stabilize_reference_1): Move earlier in the file. Make static.
9596 (omp_remove_redundant_declare_simd_attrs): Remove.
9597 (simple_cst_list_equal): Move earlier in the file. Make static.
9598 (size_low_cst): Move to fold-const.c.
9599 (build_type_no_quals): Remove.
9600 (build_function_type_skip_args): Move to cgraphclones.c.
9601 (build_function_decl_skip_args): Move to cgraphclones.c.
9602 (in_array_bounds_p): Move to tree-eh.c.
9603 (range_in_array_bounds_p): Move to tree-eh.c.
9604 (truth_type_for): Move to gimple-fold.c.
9605 (list_equal_p): Remove.
9606 * tree.h (decl_assembler_name_equal): Remove.
9607 (decl_assembler_name_hash): Remove.
9608 (truth_type_for): Remove.
9609 (build_type_no_quals): Remove.
9610 (build_function_decl_skip_args): Remove.
9611 (in_array_bounds_p): Remove.
9612 (range_in_array_bounds_p): Remove.
9613 (size_low_cst): Remove.
9614 (omp_remove_redundant_declare_simd_attrs): Remove.
9615 (tree_expr_size): Remove.
9616 (fields_length): Remove.
9617 (stabilize_reference_1): Remove.
9618 (expand_goto): Remove.
9619 (expand_stack_save): Remove.
9620 (expand_stack_restore): Remove.
9621 (expand_return): Remove.
9622 (fold_build3_initializer_loc): Remove.
9623 (tree_expr_nonzero_p): Remove.
9624 (tree_invalid_nonnegative_warnv_p): Remove.
9625 (tree_expr_nonzero_warnv_p): Remove.
9626 (fold_builtin_snprintf_chk): Remove.
9627 (validate_arglist): Remove.
9628 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9629 (simple_cst_list_equal): Remove.
9630 (real_twop): Remove.
9631 (expand_main_function): Remove.
9632 (stack_protect_prologue): Remove.
9633 (print_vec_tree): Remove.
9634 (lookup_scoped_attribute_spec): Remove.
9635 (get_attribute_namespace): Remove.
9636 (expand_computed_goto): Remove.
9637 (expand_asm_stmt): Remove.
9638 (list_equal_p): Remove.
9639 (ssa_name_nonnegative_p): Remove.
9640 (fini_object_sizes): Remove.
9641 (addr_expr_of_non_mem_decl_p): Remove.
9642 (is_tm_safe_or_pure): Move to trans-mem.c.
9643 (more_const_call_expr_args_p): Remove.
9644 (save_vtable_map_decl): Remove.
9645
9646 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9647
9648 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9649 linker plugins, too.
9650
9651 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9652 link to libgomp and its dependencies.
9653 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9654 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9655 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9656 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9657
9658 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9659
9660 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9661 (determine_value_range): Add loop argument. Use get_range_info to
9662 improve range.
9663 (bound_difference): Adjust caller.
9664
9665 2013-11-07 Richard Biener <rguenther@suse.de>
9666 Jakub Jelinek <jakub@redhat.com>
9667
9668 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9669 latches from header PHI arguments from the latch edge.
9670
9671 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9672
9673 PR c++/58176
9674 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9675
9676 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9677
9678 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9679 misaligned_prologue_used when it has been set.
9680
9681 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9682 Jakub Jelinek <jakub@redhat.com>
9683
9684 PR sanitizer/59029
9685 * asan.c (get_mem_refs_of_builtin_call): Allow
9686 integer literals as addresses in instrumented builtins.
9687
9688 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9689
9690 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9691 Explain why plus_constant is not used.
9692
9693 2013-11-07 Richard Biener <rguenther@suse.de>
9694
9695 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9696 (canonicalize_value): ... this. Also handle stripping of
9697 TREE_OVERFLOW.
9698 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9699 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9700 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9701
9702 2013-11-07 Richard Biener <rguenther@suse.de>
9703
9704 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9705
9706 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9707
9708 PR target/59034
9709 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9710 with stack_pointer_rtx.
9711
9712 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9713
9714 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9715 using operand_equal_p.
9716
9717 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9718
9719 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9720 * tree-affine.c (get_inner_reference_aff): Return base.
9721 * tree-affine.h (get_inner_reference_aff): Change prototype.
9722
9723 2013-11-06 Tobias Burnus <burnus@net-b.de>
9724
9725 * doc/invoke.texi (Wdate-time): Fix typo.
9726
9727 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9728
9729 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9730 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9731 fp_arith_reg_operand instead of arith_reg_operand.
9732
9733 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9734
9735 * config/sh/sh.md (adddi3): Remove empty constraints.
9736 Remove can_create_pseudo_p and arith_reg_operand check.
9737 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9738 Split before reload.
9739
9740 2013-11-06 Jeff Law <law@redhat.com>
9741 Tom Tromey <tromey@redhat.com>
9742
9743 * gdbinit.in: Disable strict type checking.
9744
9745 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9746
9747 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9748 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9749 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9750 (rest_of_handle_live_range_shrinkage): Ditto
9751 (class pass_live_range_shrinkage): Ditto.
9752 (pass_data_live_range_shrinkage): Ditto.
9753 (make_pass_live_range_shrinkage): Ditto.
9754 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9755 (finish_live_range_shrinkage): Ditto.
9756 * sched-deps.c (create_insn_reg_set): Make void return value.
9757 * passes.def: Add pass_live_range_shrinkage.
9758 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9759 * haifa-sched.c (live_range_shrinkage_p): New.
9760 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9761 New functions.
9762 (rank_for_schedule): Add code for pressure relief through live
9763 range shrinkage.
9764 (schedule_insn): Print more debug info.
9765 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9766 through live range shrinkage.
9767 * doc/invoke.texi (-flive-range-shrinkage): New.
9768 * common.opt (flive-range-shrinkage): New.
9769
9770 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9771
9772 PR target/59021
9773 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9774 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9775 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9776 RTXes that return in AVX256 register.
9777
9778 2013-11-06 Richard Biener <rguenther@suse.de>
9779
9780 PR tree-optimization/58653
9781 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9782 (prepare_initializers_chain): Adjust.
9783
9784 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9785
9786 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9787 (gimple_in_transaction): Use bb_in_transaction.
9788 * basic-block.h (bb_in_transaction): Relocate here and rename.
9789 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9790
9791 2013-11-06 Richard Biener <rguenther@suse.de>
9792
9793 * tree.c (drop_tree_overflow): New function.
9794 * tree.h (drop_tree_overflow): Declare.
9795 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9796 * tree-vrp.c (range_int_cst_singleton_p): Use
9797 is_overflow_infinity instead of testing TREE_OVERFLOW.
9798 (extract_range_from_assert): Likewise.
9799 (zero_nonzero_bits_from_vr): Likewise.
9800 (extract_range_basic): Likewise.
9801 (register_new_assert_for): Use drop_tree_overflow.
9802 (vrp_visit_phi_node): Likewise.
9803
9804 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9805
9806 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9807 checking for leaf functions without dynamic stack allocation.
9808 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9809 (ia64_expand_prologue): Likewise.
9810 * config/mips/mips.c (mips_expand_prologue): Likewise.
9811 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9812 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9813 (sparc_flat_expand_prologue): Likewise.
9814
9815 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9816
9817 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9818 (__ST3_LANE_FUNC): Likewise.
9819 (__ST4_LANE_FUNC): Likewise.
9820
9821 2013-11-06 Nick Clifton <nickc@redhat.com>
9822
9823 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9824 name returned by msp430_mcu_name.
9825 (LIB_SPEC): If a -T option has not been specified then set a
9826 default, mcu-specific, linker script.
9827 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9828 * config/msp430/msp430.c (msp430x_names): Likewise.
9829 Alpha sort the names for ease of comparison.
9830 (msp430_mcu_name): New function: Returns a string suitable for
9831 use as a C preprocessor symbol based upon the name of the MCU
9832 being targeted.
9833 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9834 mcu names.
9835 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9836
9837 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9838 unless it is the last part of a spec substring.
9839 * doc/invoke.texi (Spec Files): Document space insertion
9840 behaviour of %*.
9841
9842 2013-11-06 Christian Bruel <christian.bruel@st.com>
9843
9844 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9845 Factorize probabilities, Use adjust_address instead of
9846 adjust_automodify_address when possible. Enable for optimize.
9847 (sh_expand_strlen): New function.
9848 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9849 * config/sh/sh.md (strlensi): New pattern.
9850 (UNSPEC_BUILTIN_STRLEN): Define.
9851
9852 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9853
9854 PR middle-end/58970
9855 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9856 (expand_assignment): If *bitpos is negative, set *offset
9857 and adjust *bitpos, so that it is not negative.
9858
9859 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9860
9861 * config/i386/bdver3.md : Added two additional decoder units
9862 to support issue rate of 4 and remodeled vector unit.
9863 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9864 architectures is set to 4.
9865 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9866 lookahead is set to 4 for BD architectures.
9867
9868 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9869
9870 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9871 Remove restriction against use of VSX instructions when generating
9872 code for little endian mode.
9873
9874 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9875
9876 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9877 for both big and little endian.
9878 (mulv8hi3): Swap input operands for merge high and merge low
9879 instructions for little endian.
9880
9881 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9882
9883 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9884 define_insn to define_expand that uses even patterns for big
9885 endian and odd patterns for little endian.
9886 (vec_widen_smult_even_v16qi): Likewise.
9887 (vec_widen_umult_even_v8hi): Likewise.
9888 (vec_widen_smult_even_v8hi): Likewise.
9889 (vec_widen_umult_odd_v16qi): Likewise.
9890 (vec_widen_smult_odd_v16qi): Likewise.
9891 (vec_widen_umult_odd_v8hi): Likewise.
9892 (vec_widen_smult_odd_v8hi): Likewise.
9893 (altivec_vmuleub): New define_insn.
9894 (altivec_vmuloub): Likewise.
9895 (altivec_vmulesb): Likewise.
9896 (altivec_vmulosb): Likewise.
9897 (altivec_vmuleuh): Likewise.
9898 (altivec_vmulouh): Likewise.
9899 (altivec_vmulesh): Likewise.
9900 (altivec_vmulosh): Likewise.
9901
9902 2013-11-05 Mike Stump <mikestump@comcast.net>
9903
9904 * Makefile.in (mostlyclean): Remove c-family objects.
9905
9906 2013-11-05 Ian Lance Taylor <iant@google.com>
9907
9908 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9909 If possible, add .cfi directives to record change to bx.
9910 * config/i386/i386.c (ix86_emit_cfi): New function.
9911 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9912
9913 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9914
9915 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9916 immediately after a label for a tablejump pattern.
9917
9918 * config/arm/arm.c (is_jump_table): Remove.
9919 (create_fix_barrier): Use tablejump_p instead.
9920 (arm_reorg): Likewise.
9921 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9922 (thumb2_output_casesi): Likewise.
9923 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9924 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9925 casesi_shift_media, casesi_load_media): Likewise.
9926 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9927 * config/microblaze/microblaze.md: Likewise.
9928
9929 2013-11-05 Tobias Burnus <burnus@net-b.de>
9930
9931 * doc/invoke.texi (-Wdate-time): Document.
9932
9933 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9934
9935 * double-int.c (lshift_double, rshift_double): Remove
9936 SHIFT_COUNT_TRUNCATED handling.
9937
9938 2013-11-05 Jeff Law <law@redhat.com>
9939
9940 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9941 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9942 * gimple-ssa-isolate-paths.c: New file.
9943 * gimple.c (check_loadstore): New function.
9944 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9945 Verify OP is in the argument list and the argument corresponding
9946 to OP is a pointer type. Use operand_equal_p rather than
9947 pointer equality when testing if OP is on the nonnull list.
9948 Use check_loadstore rather than count_ptr_derefs. Handle
9949 GIMPLE_RETURN statements.
9950 * tree-vrp.c (infer_nonnull_range): Remove.
9951 * gimple.h (infer_nonnull_range): Declare.
9952 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9953 * passes.def: Add pass_isolate_erroneous_paths.
9954 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9955 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9956 * tree-ssa.c (struct count_ptr_d): Remove.
9957 (count_ptr_derefs, count_uses_and_derefs): Remove.
9958 * tree-ssa.h (count_uses_and_derefs): Remove.
9959
9960 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9961
9962 PR rtl-optimization/58997
9963 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9964 get_iv_value to be in iv->mode rather than iv->extend_mode.
9965 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9966 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9967 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9968 mode.
9969
9970 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9971
9972 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9973 list.
9974 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9975 Move to gimple-expr.h.
9976 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9977 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9978 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9979 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9980 Relocate here.
9981 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9982 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9983 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9984 is_gimple_address, is_gimple_invariant_address,
9985 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9986 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9987 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9988 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9989 gimple_decl_printable_name, useless_type_conversion_p,
9990 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9991 gimple-expr.[ch].
9992 * gimple-expr.c: New File.
9993 (useless_type_conversion_p, gimple_set_body, gimple_body,
9994 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9995 gimple_can_coalesce_p, extract_ops_from_tree_1,
9996 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9997 is_gimple_address, is_gimple_invariant_address,
9998 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9999 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
10000 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
10001 is_gimple_mem_ref_addr): Relocate here.
10002 * Makefile.in (OBJS): Add gimple-expr.o.
10003
10004 2013-11-05 David Malcolm <dmalcolm@redhat.com>
10005
10006 * gengtype-parse.c (struct_field_seq): Support empty structs.
10007
10008 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
10009
10010 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
10011
10012 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
10013
10014 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
10015 for !TARGET_80387.
10016 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
10017 _SOFT_FLOAT here.
10018 (LONG_DOUBLE_TYPE_SIZE): New define.
10019 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
10020
10021 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
10022
10023 PR c++/58724
10024 * doc/extend.texi [visibility ("visibility_type")]: Add example
10025 about visibility attribute on namespace declaration.
10026
10027 2013-11-05 Richard Biener <rguenther@suse.de>
10028
10029 PR ipa/58492
10030 * passes.def (all_passes): Start with pass_fixup_cfg again.
10031
10032 2013-11-05 Richard Biener <rguenther@suse.de>
10033
10034 PR tree-optimization/58955
10035 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
10036 edge direction.
10037
10038 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10039
10040 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
10041 little endian.
10042 (vec_pack_ufix_trunc_v2df): Likewise.
10043
10044 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
10045
10046 PR middle-end/58981
10047 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
10048 pattern, instead of word_mode.
10049
10050 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
10051 Pmode for size.
10052 (set_storage_via_setmem): Likewise.
10053
10054 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
10055
10056 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
10057 gimple.h and the rest of the condition in eliminate_build.
10058 (eliminate_build): Call new routine.
10059 * gimple.h (phi_ssa_name_p): Delete.
10060
10061 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
10062
10063 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
10064 case of no prefix and reserving zero slots, because when that's the
10065 case we'll never get here.
10066 * vec.h (va_heap::reserve): Don't try and handle
10067 vec_prefix::calculate_allocation returning zero because that should
10068 never happen.
10069
10070 2013-11-05 Richard Biener <rguenther@suse.de>
10071
10072 PR middle-end/58941
10073 * tree-dfa.c (get_ref_base_and_extent): Merge common code
10074 in MEM_REF and TARGET_MEM_REF handling. Make sure to
10075 process trailing array detection before diving into the
10076 view-converted object (and possibly apply some extra offset).
10077
10078 2013-11-05 Joseph Myers <joseph@codesourcery.com>
10079
10080 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
10081 New function.
10082 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
10083
10084 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
10085
10086 PR tree-optimization/58958
10087 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
10088 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
10089
10090 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
10091
10092 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
10093 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
10094
10095 2013-11-05 Jakub Jelinek <jakub@redhat.com>
10096
10097 PR tree-optimization/58984
10098 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
10099 set *SIZE_P if non-NULL on success.
10100 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
10101 callers.
10102 (ipcp_transform_function): Likewise. Punt if size of access
10103 is different from TYPE_SIZE on v->value's type.
10104
10105 2013-11-05 Tobias Burnus <burnus@net-b.de>
10106
10107 * doc/invoke.texi (-fopenmp-simd): Document new option.
10108 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
10109 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
10110 * tree.c (attribute_value_equal): Ditto.
10111
10112 2013-11-04 Wei Mi <wmi@google.com>
10113
10114 * sched-rgn.c (add_branch_dependences): Keep insns in
10115 a SCHED_GROUP at the end of BB to remain their location.
10116
10117 2013-11-04 Wei Mi <wmi@google.com>
10118
10119 * config/i386/i386.c (memory_address_length): Extract a part
10120 of code to rip_relative_addr_p.
10121 (rip_relative_addr_p): New Function.
10122 (ix86_macro_fusion_p): Ditto.
10123 (ix86_macro_fusion_pair_p): Ditto.
10124 * config/i386/i386.h: Add new tune features about macro-fusion.
10125 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10126 * doc/tm.texi: Generated.
10127 * doc/tm.texi.in: Ditto.
10128 * haifa-sched.c (try_group_insn): New Function.
10129 (group_insns_for_macro_fusion): Ditto.
10130 (sched_init): Call group_insns_for_macro_fusion.
10131 * target.def: Add two hooks: macro_fusion_p and
10132 macro_fusion_pair_p.
10133
10134 2013-11-04 Kostya Serebryany <kcc@google.com>
10135
10136 Update to match the changed asan API.
10137 * asan.c (asan_function_start): New function.
10138 (asan_emit_stack_protection): Update the string stored in the
10139 stack red zone to match new API. Store the PC of the current
10140 function in the red zone.
10141 (asan_global_struct): Update the __asan_global definition to match
10142 the new API.
10143 (asan_add_global): Ditto.
10144 * asan.h (asan_function_start): New prototype.
10145 * final.c (final_start_function): Call asan_function_start.
10146 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10147 to __asan_init_v3.
10148
10149 2013-11-04 Wei Mi <wmi@google.com>
10150
10151 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10152 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10153 * config/i386/i386.c (ix86_option_override_internal): Ditto.
10154 (ix86_issue_rate): Ditto.
10155 (ix86_adjust_cost): Ditto.
10156 (ia32_multipass_dfa_lookahead): Ditto.
10157 (ix86_sched_init_global): Ditto.
10158 (get_builtin_code_for_version): Ditto.
10159 * config/i386/i386.h (enum target_cpu_default): Ditto.
10160 (enum processor_type): Ditto.
10161 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10162
10163 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10164
10165 PR rtl-optimization/58967
10166 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10167 !lra_in_progress for mode sizes bigger word.
10168
10169 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10170
10171 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10172 arguments to merge instruction for little endian.
10173 (vec_widen_umult_lo_v16qi): Likewise.
10174 (vec_widen_smult_hi_v16qi): Likewise.
10175 (vec_widen_smult_lo_v16qi): Likewise.
10176 (vec_widen_umult_hi_v8hi): Likewise.
10177 (vec_widen_umult_lo_v8hi): Likewise.
10178 (vec_widen_smult_hi_v8hi): Likewise.
10179 (vec_widen_smult_lo_v8hi): Likewise.
10180
10181 2013-11-04 Ian Lance Taylor <iant@google.com>
10182
10183 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10184 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10185 builtins that take pointers.
10186 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10187 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10188 (run_gcc): Pass -fnon-call-exceptions.
10189
10190 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10191
10192 * optabs.c (expand_vec_perm): Revert one incorrect line from
10193 2013-10-31 change.
10194
10195 PR tree-optimization/58978
10196 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10197 use_stmt by single_imm_use directly. Only call single_imm_use
10198 on SSA_NAMEs.
10199
10200 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10201
10202 PR rtl-optimization/58968
10203 * lra-spills.c (return_regno_p): New function.
10204 (lra_final_code_change): Use it.
10205
10206 2013-11-04 Joseph Myers <joseph@codesourcery.com>
10207
10208 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10209 * target.def (float_exceptions_rounding_supported_p): New hook.
10210 * targhooks.c (default_float_exceptions_rounding_supported_p): New
10211 function.
10212 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10213 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10214 New @hook.
10215 * doc/tm.texi: Regenerate.
10216 * config.gcc (powerpc*-*-linux*): Set extra_objs.
10217 * config/rs6000/rs6000-linux.c: New file.
10218 * config/rs6000/rs6000-protos.h
10219 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10220 * config/rs6000/linux.h
10221 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10222 * config/rs6000/linux64.h
10223 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10224 * config/rs6000/t-linux (rs6000-linux.o): New rule.
10225 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10226
10227 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10228
10229 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10230 Replace the define_insn_and_split with a define_insn and two
10231 define_splits, with the split after reload re-permuting the source
10232 register to its original value.
10233 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10234 (*vsx_le_perm_store_v8hi): Likewise.
10235 (*vsx_le_perm_store_v16qi): Likewise.
10236
10237 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10238
10239 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
10240 little endian.
10241
10242 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10243
10244 PR tree-optimization/58946
10245 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10246 bbs with bbinfo[idx].op != NULL before all blocks with
10247 bbinfo[idx].op == NULL.
10248
10249 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
10250
10251 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10252 (avr_dump_double_int_hex): Likewise.
10253 (avr_log_vadump): Remove %D and %X handling.
10254 * config/avr/avr.c (avr_double_int_push_digit): Delete.
10255 (avr_map_op_t): Change map from double_int to unsigned int.
10256 (avr_map_op): Update accordingly.
10257 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10258 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10259 unsigned ints rather than double_ints.
10260
10261 2013-11-03 Marek Polacek <polacek@redhat.com>
10262
10263 Implement -fsanitize=vla-bound.
10264 * opts.c (common_handle_option): Handle vla-bound.
10265 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10266 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10267 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10268
10269 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10270
10271 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10272 little endian.
10273
10274 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
10275
10276 * config/i386/constraints.md (Ts, Tv): New address constrains.
10277 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10278 constraint for address_no_seg_operand.
10279 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10280 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10281 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10282 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10283 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10284 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10285 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10286 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10287 constraint for vsib_address_operand.
10288
10289 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
10290
10291 * gcse.c (pre_delete): Remove references to regmove from comments.
10292 * recog.c: (validate_replace_rtx_1): Likewise.
10293 * config/rl78/rl78.c: Likewise.
10294 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10295 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10296 * common/config/mmix/mmix-common.c: Likewise.
10297
10298 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
10299
10300 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10301 * gimplify.c (gimplify_compound_lval): Likewise.
10302 * graphite-clast-to-gimple.c (gloog): Likewise.
10303 * graphite-dependences.c (loop_is_parallel_p): Likewise.
10304 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10305 (limit_scop); Likewise.
10306 (build_scops): Likewise.
10307 (dot_scop): Likewise.
10308 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10309 (build_scop_drs): Likewise.
10310 (insert_stmts): Likewise.
10311 (insert_out_of_ssa_copy): Likewise.
10312 (remove_phi): Likewise.
10313 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10314 * hw-doloop.c (discover_loop): Likewise.
10315 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10316 * tree-dfa.c (dump_enumerated_decls): Likewise.
10317 * tree-if-conv.c (if_convertable_loop_p): Likewise.
10318 * tree-inline.c (tree_function_versioning): Likewise.
10319 * tree-loop-distribution.c (build_rdg): Likewise.
10320 (rdg_flag_vertex_and_dependent): Likewise.
10321 (distribute_loop): Likewise.
10322 * tree-parloops.c (loop_parallel_p): Likewise.
10323 (eliminate_local_variables): Likewise.
10324 (separate_decls_in_region): Likewise.
10325 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10326 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10327 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10328 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10329 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10330 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10331 (vectorizable_condition): Likewise.
10332
10333 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
10334
10335 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10336 * configure: Regenerate.
10337 * config/i386/i386.md (*movdi_internal): Change
10338 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10339 (*movdf_internal): Ditto.
10340 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10341 * config/i386/sse.md (vec_concatv2di): Output interunit movq
10342 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10343
10344 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
10345
10346 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10347 after comment.
10348
10349 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10350
10351 Automated part of renaming of symtab_node_base to symtab_node.
10352
10353 Patch autogenerated by rename_symtab.py from
10354 https://github.com/davidmalcolm/gcc-refactoring-scripts
10355 revision 58bb219cc090b2f4516a9297d868c245495ee622
10356 with ChangeLog entry fixed up by hand.
10357
10358 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10359 symtab_node.
10360 (cgraph_node_for_asm): Likewise.
10361 * cgraph.h (symtab_node_base): Likewise.
10362 (cgraph_node): Likewise.
10363 (varpool_node): Likewise.
10364 (is_a_helper <cgraph_node>::test): Likewise.
10365 (is_a_helper <varpool_node>::test): Likewise.
10366 (symtab_nodes): Likewise.
10367 (symtab_register_node): Likewise.
10368 (symtab_unregister_node): Likewise.
10369 (symtab_remove_node): Likewise.
10370 (symtab_get_node): Likewise.
10371 (symtab_node_for_asm): Likewise.
10372 (symtab_node_asm_name): Likewise.
10373 (symtab_node_name): Likewise.
10374 (symtab_insert_node_to_hashtable): Likewise.
10375 (symtab_add_to_same_comdat_group): Likewise.
10376 (symtab_dissolve_same_comdat_group_list): Likewise.
10377 (dump_symtab_node): Likewise.
10378 (debug_symtab_node): Likewise.
10379 (dump_symtab_base): Likewise.
10380 (verify_symtab_node): Likewise.
10381 (verify_symtab_base): Likewise.
10382 (symtab_used_from_object_file_p): Likewise.
10383 (symtab_alias_ultimate_target): Likewise.
10384 (symtab_resolve_alias): Likewise.
10385 (fixup_same_cpp_alias_visibility): Likewise.
10386 (symtab_for_node_and_aliases): Likewise.
10387 (symtab_nonoverwritable_alias): Likewise.
10388 (availability symtab_node_availability): Likewise.
10389 (symtab_semantically_equivalent_p): Likewise.
10390 (fixup_same_cpp_alias_visibility): Likewise.
10391 (symtab_prevail_in_asm_name_hash): Likewise.
10392 (cgraph): Likewise.
10393 (varpool): Likewise.
10394 (varpool_first_variable): Likewise.
10395 (varpool_next_variable): Likewise.
10396 (varpool_first_static_initializer): Likewise.
10397 (varpool_next_static_initializer): Likewise.
10398 (varpool_first_defined_variable): Likewise.
10399 (varpool_next_defined_variable): Likewise.
10400 (cgraph_first_defined_function): Likewise.
10401 (cgraph_next_defined_function): Likewise.
10402 (cgraph_first_function): Likewise.
10403 (cgraph_next_function): Likewise.
10404 (cgraph_first_function_with_gimple_body): Likewise.
10405 (cgraph_next_function_with_gimple_body): Likewise.
10406 (symtab_alias_target): Likewise.
10407 (symtab_real_symbol_p): Likewise.
10408 (symtab_can_be_discarded): Likewise.
10409 * cgraphbuild.c (mark_address): Likewise.
10410 (mark_load): Likewise.
10411 (mark_store): Likewise.
10412 * cgraphunit.c (decide_is_symbol_needed): Likewise.
10413 (first): Likewise.
10414 (enqueue_node): Likewise.
10415 (referred_to_p): Likewise.
10416 (cgraph_process_same_body_aliases): Likewise.
10417 (analyze_functions): Likewise.
10418 (handle_alias_pairs): Likewise.
10419 (output_weakrefs): Likewise.
10420 (compile): Likewise.
10421 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10422 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10423 * ipa-prop.c (remove_described_reference): Likewise.
10424 (try_decrement_rdesc_refcount): Likewise.
10425 (ipa_edge_duplication_hook): Likewise.
10426 * ipa-ref.c (ipa_record_reference): Likewise.
10427 (ipa_maybe_record_reference): Likewise.
10428 (ipa_clone_ref): Likewise.
10429 (ipa_clone_references): Likewise.
10430 (ipa_clone_referring): Likewise.
10431 (ipa_find_reference): Likewise.
10432 (ipa_remove_stmt_references): Likewise.
10433 (ipa_clear_stmts_in_references): Likewise.
10434 * ipa-ref.h (symtab_node_base): Likewise.
10435 (ipa_ref): Likewise.
10436 (ipa_record_reference): Likewise.
10437 (ipa_maybe_record_reference): Likewise.
10438 (ipa_clone_references): Likewise.
10439 (ipa_clone_referring): Likewise.
10440 (ipa_clone_ref): Likewise.
10441 (ipa_find_reference): Likewise.
10442 (ipa_remove_stmt_references): Likewise.
10443 (ipa_clear_stmts_in_references): Likewise.
10444 * ipa-reference.c (ipa_reference_write_optimization_summary):
10445 Likewise.
10446 * ipa.c (enqueue_node): Likewise.
10447 (process_references): Likewise.
10448 (walk_polymorphic_call_targets): Likewise.
10449 (symtab_remove_unreachable_nodes): Likewise.
10450 (address_taken_from_non_vtable_p): Likewise.
10451 (comdat_can_be_unshared_p_1): Likewise.
10452 (comdat_can_be_unshared_p): Likewise.
10453 (can_replace_by_local_alias): Likewise.
10454 (function_and_variable_visibility): Likewise.
10455 * is-a.h: Likewise (within example in comment).
10456 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10457 (lto_symtab_encoder_encode): Likewise.
10458 (lto_symtab_encoder_delete_node): Likewise.
10459 (lto_symtab_encoder_in_partition_p): Likewise.
10460 (lto_set_symtab_encoder_in_partition): Likewise.
10461 (output_refs): Likewise.
10462 (compute_ltrans_boundary): Likewise.
10463 (output_symtab): Likewise.
10464 (input_node): Likewise.
10465 (input_ref): Likewise.
10466 (input_edge): Likewise.
10467 (input_cgraph_1): Likewise.
10468 (input_refs): Likewise.
10469 (output_cgraph_opt_summary): Likewise.
10470 (input_node_opt_summary): Likewise.
10471 (input_cgraph_opt_section): Likewise.
10472 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10473 Likewise.
10474 * lto-streamer-out.c (lto_output): Likewise.
10475 (output_symbol_p): Likewise.
10476 (produce_symtab): Likewise.
10477 * lto-streamer.h (lto_encoder_entry): Likewise.
10478 (lto_free_function_in_decl_state_for_node): Likewise.
10479 (lto_symtab_encoder_encode): Likewise.
10480 (lto_symtab_encoder_delete_node): Likewise.
10481 (lto_symtab_encoder_in_partition_p): Likewise.
10482 (lto_set_symtab_encoder_in_partition): Likewise.
10483 (lto_symtab_encoder_lookup): Likewise.
10484 (lsei_node): Likewise.
10485 (lto_symtab_encoder_deref): Likewise.
10486 * symtab.c (symtab_hash): Likewise.
10487 (assembler_name_hash): Likewise.
10488 (symtab_nodes): Likewise.
10489 (hash_node): Likewise.
10490 (eq_node): Likewise.
10491 (hash_node_by_assembler_name): Likewise.
10492 (eq_assembler_name): Likewise.
10493 (insert_to_assembler_name_hash): Likewise.
10494 (unlink_from_assembler_name_hash): Likewise.
10495 (symtab_prevail_in_asm_name_hash): Likewise.
10496 (symtab_register_node): Likewise.
10497 (symtab_insert_node_to_hashtable): Likewise.
10498 (symtab_unregister_node): Likewise.
10499 (symtab_get_node): Likewise.
10500 (symtab_remove_node): Likewise.
10501 (symtab_initialize_asm_name_hash): Likewise.
10502 (symtab_node_for_asm): Likewise.
10503 (symtab_add_to_same_comdat_group): Likewise.
10504 (symtab_dissolve_same_comdat_group_list): Likewise.
10505 (symtab_node_asm_name): Likewise.
10506 (symtab_node_name): Likewise.
10507 (dump_symtab_base): Likewise.
10508 (dump_symtab_node): Likewise.
10509 (dump_symtab): Likewise.
10510 (debug_symtab_node): Likewise.
10511 (verify_symtab_base): Likewise.
10512 (verify_symtab_node): Likewise.
10513 (verify_symtab): Likewise.
10514 (symtab_used_from_object_file_p): Likewise.
10515 (symtab_node_availability): Likewise.
10516 (symtab_alias_ultimate_target): Likewise.
10517 (fixup_same_cpp_alias_visibility): Likewise.
10518 (symtab_resolve_alias): Likewise.
10519 (symtab_for_node_and_aliases): Likewise.
10520 (symtab_for_node_and_aliases): Likewise.
10521 (symtab_nonoverwritable_alias_1): Likewise.
10522 (symtab_nonoverwritable_alias): Likewise.
10523 (symtab_semantically_equivalent_p): Likewise.
10524 * value-prof.c (init_node_map): Likewise.
10525 * varasm.c (find_decl): Likewise.
10526 * varpool.c (varpool_node_for_asm): Likewise.
10527 (varpool_remove_unreferenced_decls): Likewise.
10528
10529 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10530
10531 Manual part of renaming of symtab_node_base to symtab_node.
10532
10533 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10534 clashes with the preferred name for the base class.
10535 (const_symtab_node): Remove redundant typedef.
10536
10537 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10538
10539 * optabs.c (expand_vec_perm): Avoid vector mode punning
10540 SUBREGs in SET_DEST.
10541 * expmed.c (store_bit_field_1): Likewise.
10542 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10543 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10544 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10545 * config/i386/i386.c (ix86_expand_vector_move_misalign,
10546 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10547 ix86_expand_sse_unpack, ix86_expand_args_builtin,
10548 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10549 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10550 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10551 expand_vec_perm_vpshufb2_vpermq,
10552 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10553 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10554 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10555 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
10556 than *d itself.
10557
10558 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
10559
10560 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10561 Use gcc_unreachable for unhandled modes. Do not check results of
10562 expand_simple_binop. If not expanded to target, move the result.
10563
10564 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
10565 Shiva Chen <shiva0217@gmail.com>
10566
10567 * config.gcc (nds32*-*-*): Add nds32 target.
10568 * config/nds32/nds32.c: New file.
10569 * config/nds32/nds32.h: New file.
10570 * config/nds32/nds32.md: New file.
10571 * config/nds32/constants.md: New file.
10572 * config/nds32/constraints.md: New file.
10573 * config/nds32/iterators.md: New file.
10574 * config/nds32/nds32-doubleword.md: New file.
10575 * config/nds32/nds32-intrinsic.md: New file.
10576 * config/nds32/nds32_intrinsic.h: New file.
10577 * config/nds32/nds32-modes.def: New file.
10578 * config/nds32/nds32-multiple.md: New file.
10579 * config/nds32/nds32.opt: New file.
10580 * config/nds32/nds32-opts.h: New file.
10581 * config/nds32/nds32-protos.h: New file.
10582 * config/nds32/nds32-peephole2.md: New file.
10583 * config/nds32/pipelines.md: New file.
10584 * config/nds32/predicates.md: New file.
10585 * config/nds32/t-mlibs: New file.
10586 * common/config/nds32: New directory and files.
10587
10588 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10589 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10590 * doc/install.texi (Cross-Compiler-Specific Options): Document
10591 --with-nds32-lib for nds32 target.
10592 * doc/extend.texi (Function Attributes, Target Builtins): Document
10593 nds32 specific attributes.
10594
10595 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10596
10597 * lra-constraints (process_alt_operands): Use the result
10598 elimination register for operand when matching constraints.
10599
10600 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10601
10602 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10603 (remove_range_assertions): Call it.
10604
10605 * tree.c (tree_ctz): New function.
10606 * tree.h (tree_ctz): New prototype.
10607 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10608 first argument from tree to const_tree.
10609 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10610 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10611 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10612 static.
10613 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10614 * tree-vect-loop.c (vect_analyze_loop_operations,
10615 vect_transform_loop): Don't force scalar loop for bound just because
10616 number of iterations is unknown, only do it if it is not known to be
10617 a multiple of vectorization_factor.
10618 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10619
10620 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10621 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10622 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10623 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10624 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10625 a default def isn't partially constant.
10626 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10627 is known to be partially zero.
10628 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10629 to see if a default def isn't partially constant.
10630 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10631 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10632 the range.
10633 (set_nonzero_bits, get_nonzero_bits): New functions.
10634
10635 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10636 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10637 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10638 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10639 uses but in the condition and ASSERT_EXPR and the other successor of
10640 the predecessor bb is __builtin_unreachable (), set_range_info of the
10641 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10642
10643 2013-10-31 Martin Jambor <mjambor@suse.cz>
10644
10645 PR rtl-optimization/58934
10646 Revert:
10647 2013-10-30 Martin Jambor <mjambor@suse.cz>
10648 PR rtl-optimization/10474
10649 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10650 nor df analysis.
10651 (interesting_dest_for_shprep): New function.
10652 (split_live_ranges_for_shrink_wrap): Likewise.
10653 (ira): Calculate dominance info and df analysis. Call
10654 split_live_ranges_for_shrink_wrap.
10655
10656 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10657 Yury Gribov <y.gribov@samsung.com>
10658
10659 PR sanitizer/58543
10660 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10661 shadow pointer to avoid clobbering the main one.
10662
10663 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10664
10665 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10666
10667 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10668
10669 PR bootstrap/58933
10670 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10671 it for calling update_costs_from_allocno.
10672 (assign_hard_reg): Call restore_costs_from_copies only for
10673 !retry_p. Pass new argument to update_costs_from_copies.
10674 (color_pass): Pass new argument to update_costs_from_copies.
10675 (ira_mark_allocation_change): Ditto.
10676
10677 2013-10-30 Sharad Singhai <singhai@google.com>
10678
10679 PR middle-end/58134
10680 * opts.c (common_handle_option): Remove deprecated option
10681 -ftree-vectorizer-verbose.
10682 * doc/invoke.texi (Debugging Options): Ditto.
10683 * opts-global.c (handle_common_deferred_options): Ditto.
10684 (dump_remap_tree_vectorizer_verbose): Delete.
10685 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10686
10687 2013-10-30 DJ Delorie <dj@redhat.com>
10688
10689 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10690 that take no arguments.
10691
10692 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10693
10694 PR other/58545
10695 * reload1.c (update_eliminables_and_spill): New function, broken
10696 out of reload.
10697 (reload): Use it. Check for frame size change after frame size
10698 alignment, and call update_eliminables_and_spill first if continue-ing.
10699
10700 2013-10-30 Cong Hou <congh@google.com>
10701
10702 PR target/58762
10703 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10704 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10705 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10706
10707 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10708
10709 PR rtl-optimization/58369
10710 * reload1.c (compute_reload_subreg_offset): New function.
10711 (choose_reload_regs): Use it to pass endian-correct
10712 offset to subreg_regno_offset.
10713
10714 2013-10-30 Tobias Burnus <burnus@net-b.de>
10715
10716 PR other/33426
10717 * tree-cfg.c (replace_loop_annotate): Replace warning by
10718 warning_at.
10719
10720 2013-10-30 Jason Merrill <jason@redhat.com>
10721
10722 * configure.ac (loose_warn): Add -Wno-format if
10723 --disable-build-format-warnings.
10724
10725 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10726
10727 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10728 onto multiple lines to make things easier for rename_symtab.py.
10729
10730 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10731 (symtab_semantically_equivalent_p): Likewise.
10732
10733 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10734
10735 PR target/58784
10736 * lra.c (check_rtl): Remove address check before LRA work.
10737
10738 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10739
10740 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10741 POINTER_PLUS_EXPR in the defining statement.
10742
10743 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10744
10745 * regmove.c: Remove.
10746 * tree-pass.h (make_pass_regmove): Remove.
10747 * timevar.def (TV_REGMOVE): Remove.
10748 * passes.def (pass_regmove): Remove.
10749 * opts.c (default_options_table): Remove entry for regmove.
10750 * doc/passes.texi: Remove regmove pass description.
10751 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10752 options.
10753 (-fdump-rtl-regmove): Ditto.
10754 * common.opt (foptimize-register-move, fregmove): Ignore.
10755 * Makefile.in (OBJS): Remove regmove.o.
10756 * regmove.c: Remove.
10757 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10758 and type.
10759 (struct ira_allocno) New member allocno_prefs.
10760 (ALLOCNO_PREFS): New macro.
10761 (ira_prefs, ira_prefs_num): New external vars.
10762 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10763 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10764 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10765 Ditto.
10766 (ira_add_allocno_copy_to_list): Remove prototype.
10767 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10768 (ira_pref_iterator): New type.
10769 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10770 (FOR_EACH_PREF): New macro.
10771 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10772 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10773 code.
10774 (ira_setup_alts): New function.
10775 (decrease_live_ranges_number): New function.
10776 (ira): Call the above function.
10777 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10778 (ira_create_allocno): Initialize allocno prefs.
10779 (pref_pool, pref_vec): New static vars.
10780 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10781 functions.
10782 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10783 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10784 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10785 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10786 (ira_add_allocno_copy_to_list): Make static. Rename to
10787 add_allocno_copy_to_list.
10788 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10789 swap_allocno_copy_ends_if_necessary.
10790 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10791 ira_remove_allocno_prefs.
10792 (ira_flattening): Ditto.
10793 (ira_build): Call initiate_prefs, print_prefs.
10794 (ira_destroy): Call finish_prefs.
10795 * ira-color.c (struct update_cost_record): New.
10796 (struct allocno_color_data): Add new member update_cost_records.
10797 (update_cost_record_pool): New static var.
10798 (init_update_cost_records, get_update_cost_record): New functions.
10799 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10800 (struct update_cost_queue_elem): Add member from.
10801 (initiate_cost_update): Call init_update_cost_records.
10802 (finish_cost_update): Call finish_update_cost_records.
10803 (queue_update_cost, get_next_update_cost): Add new param from.
10804 (Update_allocno_cost, update_costs_from_allocno): New functions.
10805 (update_costs_from_prefs): Ditto.
10806 (update_copy_costs): Rename to update_costs_from_copies.
10807 (restore_costs_from_copies): New function.
10808 (update_conflict_hard_regno_costs): Don't go back.
10809 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10810 more debug info.
10811 (pop_allocnos): Add priniting more debug info.
10812 (color_allocnos): Remove prefs for conflicting hard regs.
10813 Call update_costs_from_prefs.
10814 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10815 (get_dup_num): Rename, modify, and move to ira.c
10816 (process_regs_for_copy): Add prefs.
10817 (add_insn_allocno_copies): Put src as first arg of
10818 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10819 * ira-costs.c (record_reg_classes): Modify and move code into
10820 record_operands_costs.
10821 (find_costs_and_classes): Create prefs for the hard reg of small
10822 reg class.
10823 (process_bb_node_for_hard_reg_moves): Add prefs.
10824
10825 2013-10-30 Richard Biener <rguenther@suse.de>
10826
10827 PR middle-end/57100
10828 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10829 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10830 as worker for ...
10831 (pre_and_rev_post_order_compute): ... which now wraps it.
10832 * graph.c (draw_cfg_nodes_no_loops): Use
10833 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10834 on cfun.
10835
10836 2013-10-30 Christian Bruel <christian.bruel@st.com>
10837
10838 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10839 (sh_expand_cmpstr): Handle known align and schedule improvements.
10840 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10841 * config/sh/sh.md (cmpstrnsi): New pattern.
10842
10843 2013-10-30 Martin Jambor <mjambor@suse.cz>
10844
10845 PR rtl-optimization/10474
10846 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10847 nor df analysis.
10848 (interesting_dest_for_shprep): New function.
10849 (split_live_ranges_for_shrink_wrap): Likewise.
10850 (ira): Calculate dominance info and df analysis. Call
10851 split_live_ranges_for_shrink_wrap.
10852
10853 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10854
10855 PR target/58854
10856 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10857
10858 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10859
10860 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10861 * tree.h (POINTER_BOUNDS_P): New.
10862 (BOUNDED_TYPE_P): New.
10863 (BOUNDED_P): New.
10864 (pointer_bounds_type_node): New.
10865 * tree.c (build_common_tree_nodes): Initialize
10866 pointer_bounds_type_node.
10867 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10868 (gimple_call_num_nobnd_args): New.
10869 (gimple_call_nobnd_arg): New.
10870 (gimple_return_retbnd): New.
10871 (gimple_return_set_retbnd): New
10872 * gimple.c (gimple_build_return): Increase number of ops
10873 for return statement.
10874 (gimple_call_get_nobnd_arg_index): New.
10875 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10876
10877 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10878
10879 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10880 with "chkp ctor" and "bnd_legacy" attributes.
10881 * gimplify.c (gimplify_init_constructor): Avoid infinite
10882 loop during gimplification of bounds initializer.
10883
10884 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10885
10886 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10887 (handle_bnd_legacy): New.
10888 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10889 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10890 attributes.
10891
10892 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10893
10894 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10895 (BT_FN_PTR_CONST_PTR): New.
10896 (BT_FN_CONST_PTR_CONST_PTR): New.
10897 (BT_FN_PTR_CONST_PTR_SIZE): New.
10898 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10899 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10900 (BT_FN_VOID_CONST_PTR_SIZE): New.
10901 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10902 * chkp-builtins.def: New.
10903 * builtins.def: include chkp-builtins.def.
10904 (DEF_CHKP_BUILTIN): New.
10905 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10906 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10907 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10908 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10909 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10910 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10911 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10912 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10913 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10914 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10915 * common.opt (fcheck-pointer-bounds): New.
10916 * toplev.c (process_options): Check Pointer Bounds Checker is
10917 supported.
10918 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10919
10920 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10921
10922 * target.def (builtin_chkp_function): New.
10923 (chkp_bound_type): New.
10924 (chkp_bound_mode): New.
10925 (fn_abi_va_list_bounds_size): New.
10926 (load_bounds_for_arg): New.
10927 (store_bounds_for_arg): New.
10928 * targhooks.h (default_load_bounds_for_arg): New.
10929 (default_store_bounds_for_arg): New.
10930 (default_fn_abi_va_list_bounds_size): New.
10931 (default_chkp_bound_type): New.
10932 (default_chkp_bound_mode): New.
10933 (default_builtin_chkp_function): New.
10934 * targhooks.c (default_load_bounds_for_arg): New.
10935 (default_store_bounds_for_arg): New.
10936 (default_fn_abi_va_list_bounds_size): New.
10937 (default_chkp_bound_type): New.
10938 (default_chkp_bound_mode); New.
10939 (default_builtin_chkp_function): New.
10940 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10941 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10942 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10943 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10944 (TARGET_CHKP_BOUND_TYPE): New.
10945 (TARGET_CHKP_BOUND_MODE): New.
10946 * doc/tm.texi: Regenerated.
10947 * langhooks.h (lang_hooks): Add chkp_supported field.
10948 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10949 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10950
10951 2013-10-29 Andrew Pinski <apinski@cavium.com>
10952
10953 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10954 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10955 fails, combining the branches anyways.
10956 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10957 increases the number of combinings.
10958 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10959
10960 2013-10-29 Mike Stump <mikestump@comcast.net>
10961
10962 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10963 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10964 (make_vector_mode): Increase namebuf to 16.
10965 (emit_insn_modes_h): When processing BImode, don't
10966 also match partial int modes.
10967 (emit_class_narrowest_mode): Likewise.
10968
10969 * config/bfin/bfin-modes.def: Add precision to PDI.
10970 * config/m32c/m32c-modes.def: Add precision to PSI.
10971 * config/msp430/msp430-modes.def: Add precision to PSI.
10972 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10973 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10974
10975 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10976
10977 PR target/54236
10978 * config/sh/sh.md (*addc): Rename existing variations to ...
10979 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10980 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10981 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10982 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10983
10984 2013-10-29 Teresa Johnson <tejohnson@google.com>
10985
10986 PR ipa/58862
10987 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10988 insanities when updating probabilities.
10989
10990 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10991
10992 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10993 prettyprinter for cgraph_node to reflect the conversion of the
10994 symtable types to a C++ class hierarchy: it now *is* a
10995 symtab_node_base, rather than having one (named "symbol").
10996
10997 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10998
10999 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
11000 __cilkrts_pop_frame. If matched, then return true for built-in
11001 function name.
11002 (expand_builtin): Added BUILT_IN_CILK_DETACH and
11003 BUILT_IN_CILK_POP_FRAME case.
11004 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
11005 (lhs_cilk_detect_spawn): Likewise.
11006 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
11007 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
11008 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
11009 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
11010 (LANG_HOOKS_CILKPLUS): Likewise.
11011 * tree.h (CILK_SPAWN_FN): Likewise.
11012 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
11013 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
11014 (OBJS): Added cilk-common.o.
11015 (BUILTINS_DEF): Added cilk-builtins.def.
11016 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
11017 (lhd_cilk_detect_spawn): Likewise.
11018 * langhooks.h (lang_hooks_for_cilkplus): New struct.
11019 (struct lang_hooks): Added new field called "cilkplus."
11020 * cilk-common.c: New file.
11021 * cilk.h: Likewise.
11022 * cilk-builtins.def: Likewise.
11023 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
11024 "__cilk" macro and set it to 200.
11025 * function.h (struct function::cilk_frame_decl): New field.
11026 (struct function::is_cilk_function): Likewise.
11027 (struct function::calls_cilk_spawn): Likewise.
11028 * gimplify.c (gimplify_call_expr): Added a check if the function call
11029 being gimplified is a spawn detach point. If so, then add pop_frame
11030 and detach function calls.
11031 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
11032 for gimplifying _Cilk_spawn and _Cilk_sync statements.
11033 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
11034 function. If so, added a _Cilk_sync and gimplified it.
11035 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
11036 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
11037 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
11038 spawner function.
11039 (can_inline_edge_p): Prevent inling of spawnee function.
11040 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
11041 for functions that use Cilk keywords.
11042 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
11043 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
11044 CILK_SYNC_STMT cases.
11045 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
11046 trees.
11047 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
11048 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
11049 * passes.texi (Cilk Keywords): New section that describes the compiler
11050 code changes for handling Cilk Keywords.
11051
11052 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11053
11054 Patch autogenerated by refactor_symtab.py from
11055 https://github.com/davidmalcolm/gcc-refactoring-scripts
11056 revision 58bb219cc090b2f4516a9297d868c245495ee622
11057
11058 * asan.c (asan_finish_file): Update for conversion of symtab types to
11059 a true class hierarchy.
11060 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11061 * cgraph.c (cgraph_get_body): Likewise.
11062 (cgraph_get_create_real_symbol_node): Likewise.
11063 (verify_cgraph_node): Likewise.
11064 (verify_edge_corresponds_to_fndecl): Likewise.
11065 (verify_edge_count_and_frequency): Likewise.
11066 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
11067 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
11068 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
11069 (cgraph_node_cannot_return): Likewise.
11070 (cgraph_set_pure_flag_1): Likewise.
11071 (cgraph_set_const_flag_1): Likewise.
11072 (cgraph_set_nothrow_flag_1): Likewise.
11073 (cgraph_make_node_local_1): Likewise.
11074 (cgraph_for_node_and_aliases): Likewise.
11075 (cgraph_for_node_thunks_and_aliases): Likewise.
11076 (cgraph_node_can_be_local_p): Likewise.
11077 (cgraph_node_cannot_be_local_p_1): Likewise.
11078 (cgraph_function_body_availability): Likewise.
11079 (dump_cgraph_node): Likewise.
11080 (cgraph_rtl_info): Likewise.
11081 (cgraph_mark_address_taken_node): Likewise.
11082 (cgraph_remove_node): Likewise.
11083 (cgraph_release_function_body): Likewise.
11084 (cgraph_update_edges_for_call_stmt_node): Likewise.
11085 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
11086 (cgraph_make_edge_direct): Likewise.
11087 (cgraph_resolve_speculation): Likewise.
11088 (cgraph_speculative_call_info): Likewise.
11089 (cgraph_turn_edge_to_speculative): Likewise.
11090 (cgraph_create_edge_1): Likewise.
11091 (cgraph_set_call_stmt): Likewise.
11092 (cgraph_node_for_asm): Likewise.
11093 (cgraph_add_thunk): Likewise.
11094 (cgraph_same_body_alias): Likewise.
11095 (cgraph_create_function_alias): Likewise.
11096 (cgraph_create_node): Likewise.
11097 (cgraph_create_empty_node): Likewise.
11098 (record_function_versions): Likewise.
11099 (used_from_object_file_p): Likewise.
11100 * cgraph.h (symtab_can_be_discarded): Likewise.
11101 (symtab_real_symbol_p): Likewise.
11102 (cgraph_mark_force_output_node): Likewise.
11103 (cgraph_edge_recursive_p): Likewise.
11104 (symtab_alias_target): Likewise.
11105 (varpool_all_refs_explicit_p): Likewise.
11106 (varpool_can_remove_if_no_refs): Likewise.
11107 (cgraph_only_called_directly_or_aliased_p): Likewise.
11108 (cgraph_next_function_with_gimple_body): Likewise.
11109 (cgraph_first_function_with_gimple_body): Likewise.
11110 (cgraph_function_with_gimple_body_p): Likewise.
11111 (cgraph_next_function): Likewise.
11112 (cgraph_first_function): Likewise.
11113 (cgraph_next_defined_function): Likewise.
11114 (cgraph_first_defined_function): Likewise.
11115 (varpool_next_defined_variable): Likewise.
11116 (varpool_first_defined_variable): Likewise.
11117 (varpool_next_static_initializer): Likewise.
11118 (varpool_first_static_initializer): Likewise.
11119 (varpool_next_variable): Likewise.
11120 (varpool_first_variable): Likewise.
11121 (varpool_node_name): Likewise.
11122 (varpool): Likewise.
11123 (cgraph): Likewise.
11124 (is_a_helper <varpool_node>::test): Likewise.
11125 (is_a_helper <cgraph_node>::test): Likewise.
11126 (varpool_variable_node): Likewise.
11127 (cgraph_function_or_thunk_node): Likewise.
11128 (varpool_alias_target): Likewise.
11129 (cgraph_alias_target): Likewise.
11130 (cgraph_node_name): Likewise.
11131 (varpool_node_asm_name): Likewise.
11132 (cgraph_node_asm_name): Likewise.
11133 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
11134 (cgraph_rebuild_references): Likewise.
11135 (rebuild_cgraph_edges): Likewise.
11136 (record_eh_tables): Likewise.
11137 (build_cgraph_edges): Likewise.
11138 (mark_store): Likewise.
11139 (mark_load): Likewise.
11140 (mark_address): Likewise.
11141 (record_type_list): Likewise.
11142 (record_reference): Likewise.
11143 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
11144 (cgraph_materialize_clone): Likewise.
11145 (cgraph_function_versioning): Likewise.
11146 (cgraph_copy_node_for_versioning): Likewise.
11147 (update_call_expr): Likewise.
11148 (cgraph_find_replacement_node): Likewise.
11149 (cgraph_create_virtual_clone): Likewise.
11150 (cgraph_clone_node): Likewise.
11151 * cgraphunit.c (compile): Likewise.
11152 (output_weakrefs): Likewise.
11153 (output_in_order): Likewise.
11154 (expand_function): Likewise.
11155 (assemble_thunks_and_aliases): Likewise.
11156 (expand_thunk): Likewise.
11157 (mark_functions_to_output): Likewise.
11158 (handle_alias_pairs): Likewise.
11159 (analyze_functions): Likewise.
11160 (walk_polymorphic_call_targets): Likewise.
11161 (varpool_finalize_decl): Likewise.
11162 (process_function_and_variable_attributes): Likewise.
11163 (cgraph_process_same_body_aliases): Likewise.
11164 (analyze_function): Likewise.
11165 (cgraph_add_new_function): Likewise.
11166 (cgraph_finalize_function): Likewise.
11167 (referred_to_p): Likewise.
11168 (cgraph_reset_node): Likewise.
11169 (cgraph_process_new_functions): Likewise.
11170 (enqueue_node): Likewise.
11171 (decide_is_symbol_needed): Likewise.
11172 * coverage.c (coverage_compute_profile_id): Likewise.
11173 * dbxout.c (dbxout_expand_expr): Likewise.
11174 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11175 (reference_to_unused): Likewise.
11176 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11177 * gimplify.c (unvisit_body): Likewise.
11178 (unshare_body): Likewise.
11179 * ipa-cp.c (ipcp_generate_summary): Likewise.
11180 (ipcp_decision_stage): Likewise.
11181 (identify_dead_nodes): Likewise.
11182 (decide_whether_version_node): Likewise.
11183 (decide_about_value): Likewise.
11184 (perhaps_add_new_callers): Likewise.
11185 (create_specialized_node): Likewise.
11186 (update_profiling_info): Likewise.
11187 (ipcp_propagate_stage): Likewise.
11188 (estimate_local_effects): Likewise.
11189 (good_cloning_opportunity_p): Likewise.
11190 (devirtualization_time_bonus): Likewise.
11191 (propagate_constants_accross_call): Likewise.
11192 (initialize_node_lattices): Likewise.
11193 (ipcp_cloning_candidate_p): Likewise.
11194 (determine_versionability): Likewise.
11195 (print_all_lattices): Likewise.
11196 (print_lattice): Likewise.
11197 (ipcp_discover_new_direct_edges): Likewise.
11198 * ipa-devirt.c (ipa_devirt): Likewise.
11199 (likely_target_p): Likewise.
11200 (update_type_inheritance_graph): Likewise.
11201 (possible_polymorphic_call_target_p): Likewise.
11202 (dump_possible_polymorphic_call_targets): Likewise.
11203 (devirt_variable_node_removal_hook): Likewise.
11204 (record_binfo): Likewise.
11205 (maybe_record_node): Likewise.
11206 (build_type_inheritance_graph): Likewise.
11207 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11208 (inline_generate_summary): Likewise.
11209 (inline_analyze_function): Likewise.
11210 (do_estimate_growth): Likewise.
11211 (simple_edge_hints): Likewise.
11212 (estimate_node_size_and_time): Likewise.
11213 (estimate_edge_devirt_benefit): Likewise.
11214 (compute_inline_parameters): Likewise.
11215 (estimate_function_body_sizes): Likewise.
11216 (compute_bb_predicates): Likewise.
11217 (initialize_inline_failed): Likewise.
11218 (dump_inline_summary): Likewise.
11219 (dump_inline_edge_summary): Likewise.
11220 * ipa-inline-transform.c (inline_transform): Likewise.
11221 (preserve_function_body_p): Likewise.
11222 (save_inline_function_body): Likewise.
11223 (inline_call): Likewise.
11224 (clone_inlined_nodes): Likewise.
11225 (can_remove_node_now_p): Likewise.
11226 (can_remove_node_now_p_1): Likewise.
11227 * ipa-inline.c (early_inliner): Likewise.
11228 (early_inline_small_functions): Likewise.
11229 (inline_always_inline_functions): Likewise.
11230 (ipa_inline): Likewise.
11231 (flatten_function): Likewise.
11232 (inline_small_functions): Likewise.
11233 (speculation_useful_p): Likewise.
11234 (recursive_inlining): Likewise.
11235 (update_caller_keys): Likewise.
11236 (reset_edge_caches): Likewise.
11237 (update_edge_key): Likewise.
11238 (edge_badness): Likewise.
11239 (relative_time_benefit): Likewise.
11240 (want_inline_self_recursive_call_p): Likewise.
11241 (want_inline_small_function_p): Likewise.
11242 (want_early_inline_function_p): Likewise.
11243 (num_calls): Likewise.
11244 (can_early_inline_edge_p): Likewise.
11245 (can_inline_edge_p): Likewise.
11246 (report_inline_failed_reason): Likewise.
11247 * ipa-profile.c (ipa_profile): Likewise.
11248 (ipa_propagate_frequency): Likewise.
11249 (ipa_propagate_frequency_1): Likewise.
11250 (ipa_profile_generate_summary): Likewise.
11251 * ipa-prop.c (ipcp_transform_function): Likewise.
11252 (read_replacements_section): Likewise.
11253 (ipa_prop_read_section): Likewise.
11254 (ipa_modify_call_arguments): Likewise.
11255 (ipa_print_node_params): Likewise.
11256 (propagate_controlled_uses): Likewise.
11257 (update_indirect_edges_after_inlining): Likewise.
11258 (remove_described_reference): Likewise.
11259 (ipa_make_edge_direct_to_target): Likewise.
11260 (ipa_analyze_node): Likewise.
11261 (ipa_analyze_params_uses): Likewise.
11262 (ipa_compute_jump_functions): Likewise.
11263 (ipa_get_callee_param_type): Likewise.
11264 (ipa_print_node_jump_functions): Likewise.
11265 (ipa_initialize_node_params): Likewise.
11266 (ipa_populate_param_decls): Likewise.
11267 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11268 (write_agg_replacement_chain): Likewise.
11269 (ipa_write_node_info): Likewise.
11270 (ipa_edge_duplication_hook): Likewise.
11271 (try_decrement_rdesc_refcount): Likewise.
11272 * ipa-pure-const.c (propagate_nothrow): Likewise.
11273 (propagate_pure_const): Likewise.
11274 (pure_const_read_summary): Likewise.
11275 (pure_const_write_summary): Likewise.
11276 (analyze_function): Likewise.
11277 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11278 (ipa_ref_referring_ref_list): Likewise.
11279 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11280 (ipa_remove_stmt_references): Likewise.
11281 (ipa_find_reference): Likewise.
11282 (ipa_dump_referring): Likewise.
11283 (ipa_dump_references): Likewise.
11284 (ipa_record_reference): Likewise.
11285 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11286 (ipa_reference_write_optimization_summary): Likewise.
11287 (write_node_summary_p): Likewise.
11288 (propagate): Likewise.
11289 (read_write_all_from_decl): Likewise.
11290 (generate_summary): Likewise.
11291 (analyze_function): Likewise.
11292 (propagate_bits): Likewise.
11293 (ipa_reference_get_not_written_global): Likewise.
11294 (ipa_reference_get_not_read_global): Likewise.
11295 * ipa-split.c (execute_split_functions): Likewise.
11296 (split_function): Likewise.
11297 * ipa-utils.c (ipa_merge_profiles): Likewise.
11298 (dump_cgraph_node_set): Likewise.
11299 (ipa_reverse_postorder): Likewise.
11300 (ipa_edge_within_scc): Likewise.
11301 (ipa_get_nodes_in_cycle): Likewise.
11302 (ipa_free_postorder_info): Likewise.
11303 (ipa_reduced_postorder): Likewise.
11304 (searchc): Likewise.
11305 (recursive_call_p): Likewise.
11306 * ipa.c (ipa_cdtor_merge): Likewise.
11307 (record_cdtor_fn): Likewise.
11308 (function_and_variable_visibility): Likewise.
11309 (varpool_externally_visible_p): Likewise.
11310 (cgraph_externally_visible_p): Likewise.
11311 (comdat_can_be_unshared_p): Likewise.
11312 (comdat_can_be_unshared_p_1): Likewise.
11313 (address_taken_from_non_vtable_p): Likewise.
11314 (ipa_discover_readonly_nonaddressable_vars): Likewise.
11315 (symtab_remove_unreachable_nodes): Likewise.
11316 (walk_polymorphic_call_targets): Likewise.
11317 (process_references): Likewise.
11318 (enqueue_node): Likewise.
11319 (has_addr_references_p): Likewise.
11320 (cgraph_non_local_node_p_1): Likewise.
11321 * is-a.h (varpool_analyze_node): Likewise.
11322 * lto-cgraph.c (input_symtab): Likewise.
11323 (merge_profile_summaries): Likewise.
11324 (input_cgraph_1): Likewise.
11325 (input_edge): Likewise.
11326 (input_varpool_node): Likewise.
11327 (input_node): Likewise.
11328 (input_overwrite_node): Likewise.
11329 (compute_ltrans_boundary): Likewise.
11330 (output_refs): Likewise.
11331 (lto_output_varpool_node): Likewise.
11332 (lto_output_node): Likewise.
11333 (reachable_from_other_partition_p): Likewise.
11334 (referenced_from_other_partition_p): Likewise.
11335 (lto_output_edge): Likewise.
11336 (output_node_opt_summary): Likewise.
11337 (add_node_to): Likewise.
11338 (reachable_from_this_partition_p): Likewise.
11339 (lto_set_symtab_encoder_in_partition): Likewise.
11340 (lto_symtab_encoder_in_partition_p): Likewise.
11341 (lto_set_symtab_encoder_encode_initializer): Likewise.
11342 (lto_symtab_encoder_encode_initializer_p): Likewise.
11343 (lto_set_symtab_encoder_encode_body): Likewise.
11344 (lto_symtab_encoder_encode_body_p): Likewise.
11345 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11346 Likewise.
11347 * lto-streamer-in.c (lto_read_body): Likewise.
11348 (fixup_call_stmt_edges): Likewise.
11349 (fixup_call_stmt_edges_1): Likewise.
11350 * lto-streamer-out.c (produce_symtab): Likewise.
11351 (output_symbol_p): Likewise.
11352 (write_symbol): Likewise.
11353 (lto_output): Likewise.
11354 (copy_function): Likewise.
11355 (output_function): Likewise.
11356 * passes.c (function_called_by_processed_nodes_p): Likewise.
11357 (ipa_write_optimization_summaries): Likewise.
11358 (ipa_write_summaries): Likewise.
11359 (do_per_function_toporder): Likewise.
11360 (do_per_function): Likewise.
11361 (dump_passes): Likewise.
11362 * symtab.c (symtab_semantically_equivalent_p): Likewise.
11363 (symtab_nonoverwritable_alias): Likewise.
11364 (symtab_nonoverwritable_alias_1): Likewise.
11365 (symtab_for_node_and_aliases): Likewise.
11366 (symtab_resolve_alias): Likewise.
11367 (fixup_same_cpp_alias_visibility): Likewise.
11368 (symtab_alias_ultimate_target): Likewise.
11369 (symtab_used_from_object_file_p): Likewise.
11370 (verify_symtab_base): Likewise.
11371 (dump_symtab_base): Likewise.
11372 (symtab_node_name): Likewise.
11373 (symtab_node_asm_name): Likewise.
11374 (symtab_dissolve_same_comdat_group_list): Likewise.
11375 (symtab_add_to_same_comdat_group): Likewise.
11376 (symtab_unregister_node): Likewise.
11377 (symtab_insert_node_to_hashtable): Likewise.
11378 (symtab_register_node): Likewise.
11379 (unlink_from_assembler_name_hash): Likewise.
11380 (insert_to_assembler_name_hash): Likewise.
11381 (eq_assembler_name): Likewise.
11382 (hash_node_by_assembler_name): Likewise.
11383 (eq_node): Likewise.
11384 (hash_node): Likewise.
11385 * toplev.c (wrapup_global_declaration_2): Likewise.
11386 * trans-mem.c (ipa_tm_execute): Likewise.
11387 (ipa_tm_transform_clone): Likewise.
11388 (ipa_tm_transform_transaction): Likewise.
11389 (ipa_tm_transform_calls_redirect): Likewise.
11390 (ipa_tm_insert_gettmclone_call): Likewise.
11391 (ipa_tm_insert_irr_call): Likewise.
11392 (ipa_tm_create_version): Likewise.
11393 (ipa_tm_create_version_alias): Likewise.
11394 (ipa_tm_mark_forced_by_abi_node): Likewise.
11395 (ipa_tm_mark_force_output_node): Likewise.
11396 (ipa_tm_diagnose_tm_safe): Likewise.
11397 (ipa_tm_mayenterirr_function): Likewise.
11398 (ipa_tm_scan_irr_function): Likewise.
11399 (ipa_tm_note_irrevocable): Likewise.
11400 (ipa_tm_scan_calls_clone): Likewise.
11401 (get_cg_data): Likewise.
11402 * tree-eh.c (tree_could_trap_p): Likewise.
11403 * tree-emutls.c (ipa_lower_emutls): Likewise.
11404 (create_emultls_var): Likewise.
11405 (lower_emutls_function_body): Likewise.
11406 (gen_emutls_addr): Likewise.
11407 (emutls_decl): Likewise.
11408 (new_emutls_decl): Likewise.
11409 * tree-inline.c (tree_function_versioning): Likewise.
11410 (optimize_inline_calls): Likewise.
11411 (expand_call_inline): Likewise.
11412 (estimate_num_insns): Likewise.
11413 (copy_bb): Likewise.
11414 (delete_unreachable_blocks_update_callgraph): Likewise.
11415 * tree-nested.c (gimplify_all_functions): Likewise.
11416 (create_nesting_tree): Likewise.
11417 (check_for_nested_with_variably_modified): Likewise.
11418 * tree-pretty-print.c (dump_function_header): Likewise.
11419 * tree-profile.c (tree_profiling): Likewise.
11420 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11421 (modify_function): Likewise.
11422 (convert_callers): Likewise.
11423 (convert_callers_for_node): Likewise.
11424 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11425 (associate_varinfo_to_alias): Likewise.
11426 (create_variable_info_for): Likewise.
11427 (get_constraint_for_ssa_var): Likewise.
11428 * tree-vectorizer.c (increase_alignment): Likewise.
11429 * tree.c (find_decls_types_in_var): Likewise.
11430 (find_decls_types_in_node): Likewise.
11431 (free_lang_data_in_decl): Likewise.
11432 * value-prof.c (gimple_ic_transform): Likewise.
11433 (gimple_ic): Likewise.
11434 (check_ic_target): Likewise.
11435 (init_node_map): Likewise.
11436 * varasm.c (decl_binds_to_current_def_p): Likewise.
11437 (default_binds_local_p_1): Likewise.
11438 (dump_tm_clone_pairs): Likewise.
11439 (assemble_alias): Likewise.
11440 (find_decl): Likewise.
11441 (mark_decl_referenced): Likewise.
11442 * varpool.c (varpool_for_node_and_aliases): Likewise.
11443 (varpool_extra_name_alias): Likewise.
11444 (varpool_create_variable_alias): Likewise.
11445 (add_new_static_var): Likewise.
11446 (varpool_finalize_named_section_flags): Likewise.
11447 (varpool_remove_unreferenced_decls): Likewise.
11448 (enqueue_node): Likewise.
11449 (varpool_assemble_decl): Likewise.
11450 (assemble_aliases): Likewise.
11451 (varpool_analyze_node): Likewise.
11452 (cgraph_variable_initializer_availability): Likewise.
11453 (varpool_add_new_variable): Likewise.
11454 (ctor_for_folding): Likewise.
11455 (dump_varpool_node): Likewise.
11456 (varpool_remove_initializer): Likewise.
11457 (varpool_remove_node): Likewise.
11458 (varpool_node_for_decl): Likewise.
11459 (varpool_create_empty_node): Likewise.
11460 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11461 (ix86_get_function_versions_dispatcher): Likewise.
11462
11463 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11464
11465 * cgraph.h (symtab_node_base): Convert to a class;
11466 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11467 chain_next/prev from symtab_node_def.
11468 (cgraph_node): Inherit from symtab_node; add GTY option
11469 tag ("SYMTAB_FUNCTION").
11470 (varpool_node): Inherit from symtab_node; add GTY option
11471 tag ("SYMTAB_VARIABLE").
11472 (symtab_node_def): Remove.
11473 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11474 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11475 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11476 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11477
11478 * ipa-ref.h (symtab_node_def): Drop.
11479 (symtab_node): Change underlying type from symtab_node_def to
11480 symtab_node_base.
11481 (const_symtab_node): Likwise.
11482
11483 * is-a.h: Update examples in comment.
11484
11485 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11486 (assembler_name_hash): Likewise.
11487
11488 2013-10-29 Martin Liska <marxin.liska@gmail.com>
11489
11490 * doc/tree-ssa.texi (gimple_phi_result): Document.
11491 (gimple_phi_num_args, gimple_phi_arg): Likewise.
11492 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11493 (PHI_RESULT, PHI_NUM_ARGS): Remove.
11494 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11495
11496 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11497
11498 * expr.h: Revert change and include tree-core.h.
11499 * rtl.h: Revert change and don't include tree-core.h.
11500
11501 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11502
11503 * config/darwin.c: Include gimple.h.
11504 * config/i386/winnt.c: Likewise.
11505
11506 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
11507
11508 PR tree-optimization/19831
11509 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11510
11511 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11512
11513 * tree-outof-ssa.h: Remove include files.
11514 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11515 * expr.c: Likewise.
11516 * tree-ssa-coalesce.c: Likewise.
11517 * cfgexpand.c: Likewise.
11518 * tree-ssa-ter.c: Likewise.
11519 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11520 * lto-streamer.h: Likewise.
11521 * cgraphbuild.c: Add gimple.h to include list.
11522 * data-streamer-in.c: Likewise.
11523 * ipa-cp.c: Likewise.
11524 * tree-streamer.c: Likewise.
11525 * lto-compress.c: Likewise.
11526 * ipa-reference.c: Likewise.
11527 * data-streamer-out.c: Likewise.
11528 * lto-cgraph.c: Likewise.
11529 * cgraphclones.c: Likewise.
11530 * ipa-utils.c: Likewise.
11531 * data-streamer.c: Likewise.
11532 * ipa-split.c: Likewise.
11533 * lto-section-in.c: Likewise.
11534 * tree-streamer-out.c: Likewise.
11535 * ipa-prop.c: Likewise.
11536 * tree-streamer-in.c: Likewise.
11537 * symtab.c: Likewise.
11538 * opts-global.c: Likewise.
11539 * lto-opts.c: Likewise.
11540 * lto-section-out.c: Likewise.
11541 * lto-streamer.c: Likewise.
11542 * rtl.h: Add tree-core.h to include list.
11543 * expr.h: Remove tree-core.h from include list.
11544 * gimple.h: Likewise.
11545 * ipa-utils.h: Likewise.
11546 * streamer-hooks.h: Likewise.
11547 * streamer-hooks.c: Include input.h.
11548
11549 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11550
11551 * config/arm/arm.c (cortexa7_extra_costs): New table.
11552 (arm_cortex_a7_tune): New.
11553 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11554
11555 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
11556
11557 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11558
11559 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11560
11561 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11562 to use autogenerated markers for a class-hierarchy, every class
11563 must have a GTY marker.
11564 * gengtype.h (struct type): Add linked list of subclasses to
11565 the "s" member of the union.
11566 (add_subclass): New decl.
11567 * gengtype-state.c (read_state_struct_type): Set up subclass
11568 linked list.
11569 * gengtype.c (get_ultimate_base_class): New.
11570 (add_subclass): New.
11571 (new_structure): Set up subclass linked list.
11572 (set_gc_used_type): Propagate usage information to subclasses.
11573 (output_mangled_typename): Use get_ultimate_base_class.
11574 (walk_subclasses): Use the subclass linked list, avoiding an
11575 O(N^2) when writing out all types.
11576 (walk_type): Issue an error if the base class is missing a tag,
11577 rather than generating bogus C code. Add a gcc_unreachable
11578 default case, in case people omit tags from concrete subclasses,
11579 or get the values wrong.
11580 (write_func_for_structure): Issue an error for subclasses for
11581 which the base doesn't have a "desc", since otherwise the
11582 autogenerated routines for the base would silently fail to visit
11583 any subclass fields.
11584 (write_root): Use get_ultimate_base_class, tweaking constness of
11585 tp to match that function's signature.
11586
11587 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11588
11589 * doc/gty.texi (GTY Options): Add note about inheritance to
11590 description of desc and tag.
11591 (Inheritance and GTY): New.
11592
11593 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11594
11595 * gengtype-parse.c (opts_have): Drop "static" so that
11596 we can use this from gengtype.c.
11597 * gengtype.c (set_gc_used_type): Mark any base class as used;
11598 update field traversal to visit inherited fields.
11599 (output_mangled_typename): Convert references to classes within
11600 an inheritance hierarchy to reference the ultimate base class,
11601 since only it will have gt_ functions.
11602 (get_string_option): New.
11603 (walk_subclasses): New.
11604 (walk_type): Treat GTY structs that have a "desc" as being the
11605 root of an inheritance hierarchy. Generate a switch on it
11606 within the marking function which walks all subclasses, adding
11607 cases for them via walk_subclasses. For subclasses, visit all
11608 fields of the type (including inherited ones).
11609 (write_func_for_structure): Don't write fns for subclasses, only
11610 for the ultimate base class within an inheritance hierarchy.
11611 Subclasses-marking will be handled by the base class marking functions.
11612 (write_types): Likewise.
11613 (write_local_func_for_structure): Likewise.
11614 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11615 a "tag" option (and are thus concrete subclasses).
11616 (write_root): Use the marker function for the ultimate base class.
11617 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11618 (opts_have): Add declaration.
11619
11620 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11621
11622 * lra-spills.c (lra_final_code_change): Remove useless move insns
11623 originated from moves of pseudos.
11624
11625 2013-10-28 Jeff Law <law@redhat.com>
11626
11627 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11628
11629 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11630
11631 * df-scan.c (df_collection_rec): Adjust.
11632 (copy_defs): New constant.
11633 (copy_uses): Likewise.
11634 (copy_eq_uses): Likewise.
11635 (copy_mw): Likewise.
11636 (copy_all): Likewise.
11637 (df_insn_rescan): Adjust.
11638 (df_notes_rescan): Likewise.
11639 (df_swap_refs): Likewise.
11640 (df_sort_and_compress_refs): Likewise.
11641 (df_sort_and_compress_mws): Likewise.
11642 (df_install_refs): Likewise.
11643 (df_install_mws): Likewise.
11644 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11645 are coppied.
11646 (df_bb_refs_record): Adjust.
11647 (df_record_entry_block_defs): Likewise.
11648 (df_record_exit_block_defs): Likewise.
11649 (df_refs_verify): Likewise.
11650 (df_mws_verify): Likewise.
11651 (df_insn_refs_verify): Likewise.
11652 (df_bb_verify): Likewise.
11653 * ipa-pure-const.c (finish_state): Remove.
11654 (propagate): Adjust.
11655 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11656 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11657 var-tracking.c: Adjust.
11658 * vec.c (stack_vecs): Remove.
11659 (register_stack_vec): Likewise.
11660 (stack_vec_register_index): Likewise.
11661 (unregister_stack_vec): Likewise.
11662 * vec.h (struct va_stack): Remove.
11663 (struct vec<T, A, vl_ptr>): Specialize as
11664 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11665 allocation strategy compatable with the vl_ptr layout.
11666 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11667 specialization anyway.
11668 (class stack_vec): New class.
11669 (vec_stack_alloc): Remove.
11670 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11671
11672 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11673 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11674 Sergey Lega <sergey.s.lega@intel.com>
11675 Anna Tikhonova <anna.tikhonova@intel.com>
11676 Ilya Tocar <ilya.tocar@intel.com>
11677 Andrey Turetskiy <andrey.turetskiy@intel.com>
11678 Ilya Verbin <ilya.verbin@intel.com>
11679 Kirill Yukhin <kirill.yukhin@intel.com>
11680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11681
11682 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11683 (*prefetch_avx512pf_<mode>): New.
11684 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11685 (avx512f_maskcmp<mode>3): Ditto.
11686 (vashrv16si3): Ditto.
11687
11688 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11690 Sergey Lega <sergey.s.lega@intel.com>
11691 Anna Tikhonova <anna.tikhonova@intel.com>
11692 Ilya Tocar <ilya.tocar@intel.com>
11693 Andrey Turetskiy <andrey.turetskiy@intel.com>
11694 Ilya Verbin <ilya.verbin@intel.com>
11695 Kirill Yukhin <kirill.yukhin@intel.com>
11696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11697
11698 * config/i386/i386.md (any_truncate): New.
11699 (trunsuffix): Ditto.
11700 * config/i386/predicates.md (const_8_to_9_operand): New.
11701 (const_10_to_11_operand): Ditto.
11702 (const_12_to_13_operand): Ditto.
11703 (const_14_to_15_operand): Ditto.
11704 (const_16_to_19_operand): Ditto.
11705 (const_20_to_23_operand): Ditto.
11706 (const_24_to_27_operand): Ditto.
11707 (const_28_to_31_operand): Ditto.
11708 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11709 (cvtusi2<ssescalarmodesuffix>32): New.
11710 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11711 (ufloatv16siv16sf2): Ditto.
11712 (avx512f_fix_notruncv16sfv16si): Ditto.
11713 (avx512f_ufix_notruncv16sfv16si): Ditto.
11714 (avx512f_vcvtss2usi): Ditto.
11715 (avx512f_vcvtss2usiq): Ditto.
11716 (avx512f_vcvttss2usi): Ditto.
11717 (avx512f_vcvttss2usiq): Ditto.
11718 (avx512f_vcvtsd2usi): Ditto.
11719 (avx512f_vcvtsd2usiq): Ditto.
11720 (avx512f_vcvttsd2usi): Ditto.
11721 (avx512f_vcvttsd2usiq): Ditto.
11722 (ufloatv8siv8df): Ditto.
11723 (avx512f_cvtdq2pd512_2): Ditto.
11724 (avx512f_cvtpd2dq512): Ditto.
11725 (avx512f_ufix_notruncv8dfv8si): Ditto.
11726 (avx512f_cvtpd2ps512): Ditto.
11727 (vec_unpacks_lo_v16sf): Ditto.
11728 (vec_unpacks_hi_v16sf): Ditto.
11729 (vec_unpacks_float_hi_v16si): Ditto.
11730 (vec_unpacks_float_lo_v16si): Ditto.
11731 (avx512f_unpckhps512): Ditto.
11732 (avx512f_unpcklps512): Ditto.
11733 (avx512f_movshdup512): Ditto.
11734 (avx512f_movsldup512): Ditto.
11735 (vec_extract_lo_v32hi): Ditto.
11736 (vec_extract_hi_v32hi): Ditto.
11737 (vec_extract_lo_v64qi): Ditto.
11738 (vec_extract_hi_v64qi): Ditto.
11739 (avx512f_unpckhpd512): Ditto.
11740 (avx512f_movddup512): Ditto.
11741 (avx512f_unpcklpd512): Ditto.
11742 (*avx512f_unpcklpd512): Ditto.
11743 (avx512f_shufps512_1): Ditto.
11744 (avx512f_shufpd512_1): Ditto.
11745 (avx512f_interleave_highv8di): Ditto.
11746 (avx512f_interleave_lowv8di): Ditto.
11747 (PMOV_DST_MODE): Ditto.
11748 (pmov_src_mode): Ditto.
11749 (pmov_src_lower): Ditto.
11750 (pmov_suff): Ditto.
11751 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11752 (*avx512f_<code>v8div16qi2): Ditto.
11753 (*avx512f_<code>v8div16qi2_store): Ditto.
11754 (vec_widen_umult_even_v16si): Ditto.
11755 (*vec_widen_umult_even_v16si): Ditto.
11756 (vec_widen_smult_even_v16si): Ditto.
11757 (*vec_widen_smult_even_v16si): Ditto.
11758 (avx512f_interleave_highv16si): Ditto.
11759 (avx512f_interleave_lowv16si): Ditto.
11760 (avx512f_<code>v16qiv16si2): Ditto.
11761 (avx512f_<code>v16hiv16si2): Ditto.
11762 (avx512f_<code>v8qiv8di2): Ditto.
11763 (avx512f_<code>v8hiv8di2): Ditto.
11764 (avx512f_<code>v8siv8di2): Ditto.
11765 (avx512cd_maskb_vec_dupv8di): Ditto.
11766 (avx512cd_maskw_vec_dupv16si): Ditto.
11767 (avx512f_vcvtph2ps512): Ditto.
11768 (avx512f_vcvtps2ph512): Ditto.
11769 (VEC_EXTRACT_MODE): Extened with wider modes.
11770 (VEC_PERM_AVX2): Ditto.
11771 (VEC_PERM_CONST): Ditto.
11772
11773 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11774
11775 * config/arc/arc.c (arc_ccfsm_post_advance):
11776 Add comment about TYPE_RETURN.
11777
11778 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11779
11780 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11781 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11782 (strip_offset): Convert offset to unsigned number.
11783
11784 2013-10-27 Tom de Vries <tom@codesourcery.com>
11785
11786 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11787 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11788
11789 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11790
11791 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11792 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11793 (TARGET_BIG_ENDIAN): New macro.
11794 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11795 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11796 * config/sh/sh.c: Likewise.
11797 * config/sh/sh.h: Likewise.
11798
11799 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11800
11801 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11802 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11803
11804 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11805
11806 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11807 Fix formatting.
11808 (cmpstr_t, cmpstrsi): Fix formatting.
11809
11810 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11811
11812 PR target/52483
11813 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11814 addressing, do not use general_operand for memory operands.
11815
11816 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11817
11818 Revert:
11819 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11820 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11821
11822 2013-10-26 Jeff Law <law@redhat.com>
11823
11824 * predict.c (PRED_MUDFLAP): Remove.
11825 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11826
11827 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11828 (OBJS): Remove tree-nomudflap.o
11829 (GTFILES): Remove tree-mudflap.c
11830 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11831 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11832 (mfwrap_spec, mflib_spec): Likewise.
11833 (cpp_unique_options, cc1_options, static_specs): Likewise.
11834 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11835 * passes.def: Likewise.
11836 * toplev.c (compile_file, process_options): Likewise.
11837 * tree-inline.c (copy_tree_r): Likewise.
11838 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11839 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11840 (build_constant_desc, output_constant_def_contents): Likewise.
11841 (categorize_decl_for_section): Likewise.
11842 * tree-mudflap.c: Removed.
11843 * tree-mudflap.h: Removed.
11844 * tree-nomudflap.c: Removed.
11845 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11846 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11847 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11848 * config/sol2.h (MFLIB_SPEC): Likewise.
11849 * doc/install.texi: Remove mudflap references.
11850 * doc/passes.texi: Similarly.
11851 * doc/sourcebuild.texi: Similarly.
11852 * doc/invoke.texi: Remove mudlfap related options.
11853
11854 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11855
11856 PR rtl-optimization/58759
11857 * lra-constraints.c (lra_constraints): Remove wrong condition to
11858 remove insn setting up an equivalent pseudo.
11859
11860 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11861
11862 * config/rs6000/rs6000-protos.h
11863 (rs6000_secondary_memory_needed_mode): New prototype.
11864 * config/rs6000/rs6000.c: Include ira.h.
11865 (TARGET_LRA_P): Redefine.
11866 (rs6000_legitimate_offset_address_p): Call
11867 legitimate_constant_pool_address_p in strict mode for LRA.
11868 (rs6000_legitimate_address_p): Ditto.
11869 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11870 (rs6000_emit_move): Add LRA version of code to generate load/store
11871 of SDmode values.
11872 (rs6000_secondary_memory_needed_mode): New.
11873 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11874 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11875 constants, memory, and FP registers.
11876 (rs6000_lra_p): New.
11877 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11878 * config/rs6000/rs6000.opt (mlra): New option.
11879 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11880
11881 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11882
11883 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11884 has_single_use () and not do the conversion if has_single_use ()
11885 returns false for the multiplication result.
11886
11887 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11888
11889 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11890 to "NODE", since this works on a "tree", not an
11891 "enum tree_code".
11892 (CONSTANT_CLASS_P): Likewise.
11893 (TYPE_P): Likewise.
11894 (DECL_P): Likewise.
11895 (INDIRECT_REF_P): Likewise.
11896 (REFERENCE_CLASS_P): Likewise.
11897 (COMPARISON_CLASS_P): Likewise.
11898 (UNARY_CLASS_P): Likewise.
11899 (BINARY_CLASS_P): Likewise.
11900 (STATEMENT_CLASS_P): Likewise.
11901 (VL_EXP_CLASS_P): Likewise.
11902 (EXPRESSION_CLASS_P): Likewise.
11903 (IS_TYPE_OR_DECL_P): Likewise.
11904
11905 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11906
11907 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11908 ADDR_EXPR in the defining statement.
11909
11910 2013-10-25 Richard Biener <rguenther@suse.de>
11911
11912 PR tree-optimization/58626
11913 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11914 anti_dd, output_dd and input_dd.
11915 (struct rdg_edge): Remove level and relation members.
11916 (RDGE_LEVEL, RDGE_RELATION): Remove.
11917 (dot_rdg_1): Adjust.
11918 (create_rdg_edge_for_ddr): Remove.
11919 (create_rdg_edges_for_scalar): Adjust.
11920 (create_edge_for_control_dependence): Likewise.
11921 (create_rdg_edges): Split into ...
11922 (create_rdg_flow_edges): ... this
11923 (create_rdg_cd_edges): ... and this.
11924 (free_rdg): Adjust.
11925 (build_rdg): Likewise, do not compute data dependences or
11926 add edges for them.
11927 (pg_add_dependence_edges): New function.
11928 (pgcmp): Likewise.
11929 (distribute_loop): First apply all non-dependence based
11930 partition mergings. Then compute dependences between partitions
11931 and merge and order partitions according to them.
11932
11933 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11934
11935 PR rtl-optimization/58831
11936 * alias.c (init_alias_analysis): At the beginning of each iteration,
11937 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11938
11939 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11940
11941 * recog.c (search_ofs): New static variable moved from...
11942 (peep2_find_free_register): ...here.
11943 (peephole2_optimize): Initialize it.
11944
11945 2013-10-25 Tobias Burnus <burnus@net-b.de>
11946
11947 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11948
11949 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11950
11951 * config/i386/i386.h (TARGET_MPX): New define.
11952 (TARGET_MPX_P): Ditto.
11953
11954 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11955
11956 * config/i386/constraints.md (B): New.
11957 (Ti): New.
11958 (Tb): New.
11959 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11960 * config/i386/i386-modes.def (BND32): New.
11961 (BND64): New.
11962 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11963 * config/i386/i386.c (isa_opts): Add mmpx.
11964 (regclass_map): Add bound registers.
11965 (dbx_register_map): Likewise.
11966 (dbx64_register_map): Likewise.
11967 (svr4_dbx_register_map): Likewise.
11968 (PTA_MPX): New.
11969 (ix86_option_override_internal): Support MPX ISA.
11970 (ix86_conditional_register_usage): Support bound registers.
11971 (print_reg): Likewise.
11972 (ix86_code_end): Add MPX bnd prefix.
11973 (output_set_got): Likewise.
11974 (ix86_output_call_insn): Likewise.
11975 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11976 (ix86_print_operand_punct_valid_p): Likewise.
11977 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11978 UNSPEC_BNDMK_ADDR.
11979 (ix86_class_likely_spilled_p): Add bound regs support.
11980 (ix86_hard_regno_mode_ok): Likewise.
11981 (x86_order_regs_for_local_alloc): Likewise.
11982 (ix86_bnd_prefixed_insn_p): New.
11983 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11984 (FIXED_REGISTERS): Add bound registers.
11985 (CALL_USED_REGISTERS): Likewise.
11986 (REG_ALLOC_ORDER): Likewise.
11987 (HARD_REGNO_NREGS): Likewise.
11988 (TARGET_MPX): New.
11989 (VALID_BND_REG_MODE): New.
11990 (FIRST_BND_REG): New.
11991 (LAST_BND_REG): New.
11992 (reg_class): Add BND_REGS.
11993 (REG_CLASS_NAMES): Likewise.
11994 (REG_CLASS_CONTENTS): Likewise.
11995 (BND_REGNO_P): New.
11996 (ANY_BND_REG_P): New.
11997 (BNDmode): New.
11998 (HI_REGISTER_NAMES): Add bound registers.
11999 * config/i386/i386.md (UNSPEC_BNDMK): New.
12000 (UNSPEC_BNDMK_ADDR): New.
12001 (UNSPEC_BNDSTX): New.
12002 (UNSPEC_BNDLDX): New.
12003 (UNSPEC_BNDLDX_ADDR): New.
12004 (UNSPEC_BNDCL): New.
12005 (UNSPEC_BNDCU): New.
12006 (UNSPEC_BNDCN): New.
12007 (UNSPEC_MPX_FENCE): New.
12008 (BND0_REG): New.
12009 (BND1_REG): New.
12010 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
12011 (length_immediate): Likewise.
12012 (prefix_0f): Likewise.
12013 (memory): Likewise.
12014 (prefix_rep): Check for bnd prefix.
12015 (length_nobnd): New.
12016 (length): Use length_nobnd if specified.
12017 (BND): New.
12018 (bnd_ptr): New.
12019 (BNDCHECK): New.
12020 (bndcheck): New.
12021 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
12022 (*jcc_2): Likewise.
12023 (jump): Likewise.
12024 (simple_return_internal): Likewise.
12025 (simple_return_pop_internal): Likewise.
12026 (*indirect_jump): Add MPX bnd prefix.
12027 (*tablejump_1): Likewise.
12028 (simple_return_internal_long): Likewise.
12029 (simple_return_indirect_internal): Likewise.
12030 (<mode>_mk): New.
12031 (*<mode>_mk): New.
12032 (mov<mode>): New.
12033 (*mov<mode>_internal_mpx): New.
12034 (<mode>_<bndcheck>): New.
12035 (*<mode>_<bndcheck>): New.
12036 (<mode>_ldx): New.
12037 (*<mode>_ldx): New.
12038 (<mode>_stx): New.
12039 (*<mode>_stx): New.
12040 * config/i386/predicates.md (lea_address_operand): Rename to...
12041 (address_no_seg_operand): ... this.
12042 (address_mpx_no_base_operand): New.
12043 (address_mpx_no_index_operand): New.
12044 (bnd_mem_operator): New.
12045 * config/i386/i386.opt (mmpx): New.
12046 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
12047 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
12048
12049 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
12050
12051 * mode-classes.def (MODE_POINTER_BOUNDS): New.
12052 * tree.def (POINTER_BOUNDS_TYPE): New.
12053 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
12054 (POINTER_BOUNDS_MODE): New.
12055 (make_pointer_bounds_mode): New.
12056 * machmode.h (POINTER_BOUNDS_MODE_P): New.
12057 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
12058 (layout_type): Support POINTER_BOUNDS_TYPE.
12059 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
12060 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
12061 (type_contains_placeholder_1): Likewise.
12062 * tree.h (POINTER_BOUNDS_TYPE_P): New.
12063 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
12064 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
12065
12066 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
12067
12068 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
12069 mode of address computation when calling memory_address_addr_space.
12070
12071 2013-08-24 Richard Henderson <rth@twiddle.net>
12072
12073 PR rtl/58542
12074 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
12075 instead of create_convert_operand_to.
12076 (maybe_emit_sync_lock_test_and_set): Likewise.
12077 (expand_atomic_compare_and_swap): Likewise.
12078 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
12079
12080 2013-08-24 Sriraman Tallam <tmsriram@google.com>
12081
12082 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
12083 Change param_is to use the struct and not the pointer to the struct.
12084
12085 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
12086
12087 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
12088 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
12089 Move to targhooks.c.
12090 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
12091 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
12092 Relocate from gimplify.c.
12093 * targhooks.h: Add 2 prototypes.
12094 * tree.h: Delete 2 prototypes.
12095
12096 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
12097
12098 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
12099 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
12100
12101 2013-10-24 Cong Hou <congh@google.com>
12102
12103 * convert.c (convert_to_real): Guard those unsafe math function
12104 convertions with flag_unsafe_math_optimizations. Handle sqrt()
12105 specially.
12106
12107 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
12108
12109 PR ipa/58712
12110 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
12111 as argument.
12112 (cgraph_create_edge): Use the new argument.
12113 (cgraph_create_indirect_edge): Likewise.
12114
12115 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
12116
12117 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
12118 TYPE_UNCOND_BRANCH.
12119 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
12120 changes statep->state.
12121
12122 2013-10-24 Tobias Burnus <burnus@net-b.de>
12123
12124 PR other/33426
12125 * tree-cfg.c (replace_loop_annotate): New function.
12126 (execute_build_cfg): Call it.
12127 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
12128 * internal-fn.c (expand_ANNOTATE): New function.
12129 * internal-fn.def (ANNOTATE): Define as new internal function.
12130 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
12131 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
12132 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
12133 * doc/extend.texi (Pragmas): Document #pragma ivdep.
12134 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
12135
12136 2013-10-17 Ian Bolton <ian.bolton@arm.com>
12137 Marcus Shawcroft <marcus.shawcroft@arm.com>
12138
12139 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
12140 Special case reload SP+C into none GENERAL_REGS.
12141
12142 2013-10-24 Michael Matz <matz@suse.de>
12143
12144 * gengtype.c (is_file_equal): Check that files will be same length.
12145
12146 2013-10-25 Christian Bruel <christian.bruel@st.com>
12147
12148 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12149 * config/sh/t-sh (sh-mem.o): New rule.
12150 * config/sh/sh-mem.cc (expand_block_move): Moved here.
12151 (sh_expand_cmpstr): New function.
12152 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12153 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12154 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12155 (rotlhi3_8): Rename.
12156
12157 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12158
12159 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12160 * Makefile.in (CXXDEPMODE): Assign and change users.
12161 (CCDEPMODE): Delete.
12162 * configure: Regenerate.
12163
12164 2013-10-23 David Malcolm <dmalcolm@redhat.com>
12165
12166 * gengtype-parse.c (require_without_advance): New.
12167 (type): For GTY-marked types that are not GTY((user)), parse any
12168 base classes, requiring them to be single-inheritance, and not
12169 be templates. For non-GTY-marked types and GTY((user)),
12170 continue to skip over any C++ inheritance specification.
12171 * gengtype-state.c (state_writer::write_state_struct_type):
12172 Write base class of type (if any).
12173 (read_state_struct_type): Read base class of type (if any).
12174 * gengtype.c (new_structure): Add a "base_class" parameter.
12175 (create_optional_field_): Update for new parameter to new_structure.
12176 (adjust_field_rtx_def): Likewise.
12177 (adjust_field_tree_exp): Likewise.
12178 * gengtype.h (struct type): Add "base_class" field to the s
12179 union field.
12180 (new_structure): Add "base" parameter.
12181
12182 2013-10-23 Sriraman Tallam <tmsriram@google.com>
12183
12184 PR target/57756
12185 * config/i386/i386.c (ix86_option_override_internal):
12186 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12187 (ix86_valid_target_attribute_tree):
12188 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12189 Change TARGET_SSE to TARGET_SSE_P (opts->...)
12190
12191 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12192
12193 * tree-ssa-loop.h: Remove include files.
12194 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12195 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12196 * graphite-clast-to-gimple.c: Likewise.
12197 * graphite-scop-detection.c: Likewise.
12198 * graphite-sese-to-poly.c: Likewise.
12199 * ipa-inline-analysis.c: Likewise.
12200 * ipa-pure-const.c: Likewise.
12201 * loop-init.c: Likewise.
12202 * passes.c: Likewise.
12203 * predict.c: Likewise.
12204 * tree-cfg.c: Likewise.
12205 * tree-cfgcleanup.c: Likewise.
12206 * tree-chrec.c: Likewise.
12207 * tree-data-ref.c: Likewise.
12208 * tree-loop-distribution.c: Likewise.
12209 * tree-parloops.c: Likewise.
12210 * tree-predcom.c: Likewise.
12211 * tree-scalar-evolution.c: Likewise.
12212 * tree-ssa-address.c: Likewise.
12213 * tree-ssa.c: Likewise.
12214 * tree-ssa-dce.c: Likewise.
12215 * tree-ssa-loop.c: Likewise.
12216 * tree-ssa-loop-im.c: Likewise.
12217 * tree-ssa-loop-ivcanon.c: Likewise.
12218 * tree-ssa-loop-ivopts.c: Likewise.
12219 * tree-ssa-loop-manip.c: Likewise.
12220 * tree-ssa-loop-niter.c: Likewise.
12221 * tree-ssa-loop-prefetch.c: Likewise.
12222 * tree-ssa-loop-unswitch.c: Likewise.
12223 * tree-ssa-reassoc.c: Likewise.
12224 * tree-vect-data-refs.c: Likewise.
12225 * tree-vect-loop.c: Likewise.
12226 * tree-vect-loop-manip.c: Likewise.
12227 * tree-vectorizer.c: Likewise.
12228 * tree-vect-stmts.c: Likewise.
12229 * tree-vrp.c: Likewise.
12230
12231 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12232
12233 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12234
12235 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12236
12237 PR tree-optimization/58775
12238 PR tree-optimization/58791
12239 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12240 (insert_stmt_after): Rewritten, don't move the stmt, but really
12241 insert it.
12242 (get_stmt_uid_with_default): Remove.
12243 (build_and_add_sum): Use insert_stmt_after and
12244 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
12245 (update_range_test): Set uid on stmts added by
12246 force_gimple_operand_gsi. Don't immediately modify statements
12247 in inter-bb optimization, just update oe->op values.
12248 (optimize_range_tests): Return bool whether any changed have been made.
12249 (update_ops): New function.
12250 (struct inter_bb_range_test_entry): New type.
12251 (maybe_optimize_range_tests): Perform statement changes here.
12252 (not_dominated_by, appears_later_in_bb, get_def_stmt,
12253 ensure_ops_are_available): Remove.
12254 (find_insert_point): Rewritten.
12255 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12256 return LHS of the (new resp. old) stmt. Don't call
12257 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12258 instead of last, move new stmt at the right place.
12259 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12260 (negate_value): Likewise. Set uids.
12261 (break_up_subtract_bb): Initialize uids.
12262 (reassociate_bb): Adjust rewrite_expr_tree caller.
12263 (do_reassoc): Don't call renumber_gimple_stmt_uids.
12264
12265 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
12266
12267 PR target/58838
12268 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12269 TARGET_32BIT final condition.
12270 (mulsi3_internal2 and splitter): Same.
12271
12272 2013-10-23 Jeff Law <law@redhat.com>
12273
12274 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12275 through joiner blocks with abnormal outgoing edges.
12276
12277 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12278 Add parameter JOINERS, to allow/disallow threading through joiner
12279 blocks.
12280 (thread_block): New. Call thread_block_1.
12281 (mark_threaded_blocks): Remove code to filter out certain cases
12282 of threading through joiner blocks.
12283 (thread_through_all_blocks): Document how we can have a dangling
12284 edge AUX field and clear it.
12285
12286 2013-10-23 Ian Lance Taylor <iant@google.com>
12287
12288 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12289 (C++ Dialect Options): Likewise.
12290 (Optimize Options): Likewise.
12291
12292 2013-10-23 Tom de Vries <tom@codesourcery.com>
12293
12294 PR tree-optimization/58805
12295 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12296
12297 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12298
12299 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12300 sequence based on get_range_info returned range.
12301
12302 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12303
12304 * tree-ssa.h: Remove all #include's
12305 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12306 * alias.c: Move required includes from tree-ssa.h.
12307 * asan.c: Likewise.
12308 * builtins.c: Likewise.
12309 * calls.c: Likewise.
12310 * cfgexpand.c: Likewise.
12311 * cfghooks.c: Likewise.
12312 * cfgloop.c: Likewise.
12313 * cfgloopmanip.c: Likewise.
12314 * cgraph.c: Likewise.
12315 * cgraphbuild.c: Likewise.
12316 * cgraphclones.c: Likewise.
12317 * cgraphunit.c: Likewise.
12318 * dse.c: Likewise.
12319 * except.c: Likewise.
12320 * expr.c: Likewise.
12321 * final.c: Likewise.
12322 * fold-const.c: Likewise.
12323 * ggc-page.c: Likewise.
12324 * gimple-builder.c: Likewise.
12325 * gimple-fold.c: Likewise.
12326 * gimple-iterator.c: Likewise.
12327 * gimple-low.c: Likewise.
12328 * gimple-pretty-print.c: Likewise.
12329 * gimple-ssa-strength-reduction.c: Likewise.
12330 * gimple-streamer-in.c: Likewise.
12331 * gimple-streamer-out.c: Likewise.
12332 * gimplify.c: Likewise.
12333 * graphite-blocking.c: Likewise.
12334 * graphite-clast-to-gimple.c: Likewise.
12335 * graphite-dependences.c: Likewise.
12336 * graphite-interchange.c: Likewise.
12337 * graphite-optimize-isl.c: Likewise.
12338 * graphite-poly.c: Likewise.
12339 * graphite-scop-detection.c: Likewise.
12340 * graphite-sese-to-poly.c: Likewise.
12341 * graphite.c: Likewise.
12342 * ipa-cp.c: Likewise.
12343 * ipa-inline-analysis.c: Likewise.
12344 * ipa-inline-transform.c: Likewise.
12345 * ipa-inline.c: Likewise.
12346 * ipa-prop.c: Likewise.
12347 * ipa-pure-const.c: Likewise.
12348 * ipa-reference.c: Likewise.
12349 * ipa-split.c: Likewise.
12350 * ipa-utils.c: Likewise.
12351 * loop-init.c: Likewise.
12352 * lto-cgraph.c: Likewise.
12353 * lto-section-in.c: Likewise.
12354 * lto-section-out.c: Likewise.
12355 * lto-streamer-in.c: Likewise.
12356 * lto-streamer-out.c: Likewise.
12357 * lto-streamer.c: Likewise.
12358 * omp-low.c: Likewise.
12359 * passes.c: Likewise.
12360 * predict.c: Likewise.
12361 * print-tree.c: Likewise.
12362 * profile.c: Likewise.
12363 * sese.c: Likewise.
12364 * targhooks.c: Likewise.
12365 * tracer.c: Likewise.
12366 * trans-mem.c: Likewise.
12367 * tree-call-cdce.c: Likewise.
12368 * tree-cfg.c: Likewise.
12369 * tree-cfgcleanup.c: Likewise.
12370 * tree-chrec.c: Likewise.
12371 * tree-complex.c: Likewise.
12372 * tree-data-ref.c: Likewise.
12373 * tree-dfa.c: Likewise.
12374 * tree-eh.c: Likewise.
12375 * tree-emutls.c: Likewise.
12376 * tree-if-conv.c: Likewise.
12377 * tree-inline.c: Likewise.
12378 * tree-into-ssa.c: Likewise.
12379 * tree-loop-distribution.c: Likewise.
12380 * tree-mudflap.c: Likewise.
12381 * tree-nested.c: Likewise.
12382 * tree-nrv.c: Likewise.
12383 * tree-object-size.c: Likewise.
12384 * tree-outof-ssa.c: Likewise.
12385 * tree-parloops.c: Likewise.
12386 * tree-phinodes.c: Likewise.
12387 * tree-predcom.c: Likewise.
12388 * tree-pretty-print.c: Likewise.
12389 * tree-profile.c: Likewise.
12390 * tree-scalar-evolution.c: Likewise.
12391 * tree-sra.c: Likewise.
12392 * tree-ssa-address.c: Likewise.
12393 * tree-ssa-alias.c: Likewise.
12394 * tree-ssa-ccp.c: Likewise.
12395 * tree-ssa-coalesce.c: Likewise.
12396 * tree-ssa-copy.c: Likewise.
12397 * tree-ssa-copyrename.c: Likewise.
12398 * tree-ssa-dce.c: Likewise.
12399 * tree-ssa-dom.c: Likewise.
12400 * tree-ssa-dse.c: Likewise.
12401 * tree-ssa-forwprop.c: Likewise.
12402 * tree-ssa-ifcombine.c: Likewise.
12403 * tree-ssa-live.c: Likewise.
12404 * tree-ssa-loop-ch.c: Likewise.
12405 * tree-ssa-loop-im.c: Likewise.
12406 * tree-ssa-loop-ivcanon.c: Likewise.
12407 * tree-ssa-loop-ivopts.c: Likewise.
12408 * tree-ssa-loop-manip.c: Likewise.
12409 * tree-ssa-loop-niter.c: Likewise.
12410 * tree-ssa-loop-prefetch.c: Likewise.
12411 * tree-ssa-loop-unswitch.c: Likewise.
12412 * tree-ssa-loop.c: Likewise.
12413 * tree-ssa-math-opts.c: Likewise.
12414 * tree-ssa-operands.c: Likewise.
12415 * tree-ssa-phiopt.c: Likewise.
12416 * tree-ssa-phiprop.c: Likewise.
12417 * tree-ssa-pre.c: Likewise.
12418 * tree-ssa-propagate.c: Likewise.
12419 * tree-ssa-reassoc.c: Likewise.
12420 * tree-ssa-sccvn.c: Likewise.
12421 * tree-ssa-sink.c: Likewise.
12422 * tree-ssa-strlen.c: Likewise.
12423 * tree-ssa-structalias.c: Likewise.
12424 * tree-ssa-tail-merge.c: Likewise.
12425 * tree-ssa-ter.c: Likewise.
12426 * tree-ssa-threadedge.c: Likewise.
12427 * tree-ssa-threadupdate.c: Likewise.
12428 * tree-ssa-uncprop.c: Likewise.
12429 * tree-ssa-uninit.c: Likewise.
12430 * tree-ssa.c: Likewise.
12431 * tree-ssanames.c: Likewise.
12432 * tree-stdarg.c: Likewise.
12433 * tree-streamer-in.c: Likewise.
12434 * tree-switch-conversion.c: Likewise.
12435 * tree-tailcall.c: Likewise.
12436 * tree-vect-data-refs.c: Likewise.
12437 * tree-vect-generic.c: Likewise.
12438 * tree-vect-loop-manip.c: Likewise.
12439 * tree-vect-loop.c: Likewise.
12440 * tree-vect-patterns.c: Likewise.
12441 * tree-vect-slp.c: Likewise.
12442 * tree-vect-stmts.c: Likewise.
12443 * tree-vectorizer.c: Likewise.
12444 * tree-vrp.c: Likewise.
12445 * tree.c: Likewise.
12446 * tsan.c: Likewise.
12447 * value-prof.c: Likewise.
12448 * var-tracking.c: Likewise.
12449 * varpool.c: Likewise.
12450 * vtable-verify.c: Likewise.
12451
12452 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12453
12454 * config/tilegx/tilegx.c: Include "tree.h".
12455
12456 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12457
12458 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12459 the info, not after it.
12460 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12461 dump_ssaname_info call.
12462 (pp_gimple_stmt_1): Adjust caller.
12463 (dump_phi_nodes): Likewise. Don't print "# " here.
12464
12465 2013-10-22 Jan Hubicka <jh@suse.cz>
12466
12467 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12468 tuning flag.
12469 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12470 * i386.c (expand_small_movmem_or_setmem): New function.
12471 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12472 function.
12473 (alg_usable_p): Add support for value ranges; cleanup.
12474 (ix86_expand_set_or_movmem): Add support for misaligned moves.
12475
12476 2013-10-22 Sterling Augustine <saugustine@google.com>
12477
12478 * doc/invoke.texi: Document -ggnu-pubnames.
12479 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12480 logic.
12481 * dwarf2out.c: Include gdb/gdb-index.h.
12482 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12483 debug_generate_pub_sections.
12484 (is_java, output_pubtables, output_pubname): New functions.
12485 (include_pubname_in_output): Handle debug_generate_pub_sections at
12486 level 2.
12487 (size_of_pubnames): Use new local space_for_flags based on
12488 debug_generate_pub_sections.
12489 (output_pubnames): Unify pubnames and pubtypes output logic.
12490 Genericize comments. Call output_pubname.
12491 (dwarf2out_finish): Move logic to output_pubnames and call it.
12492
12493 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
12494
12495 PR target/58779
12496 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12497 Remove CCCmode handling.
12498 <case LTU>: Return 'c' suffix for CCCmode.
12499 <case GEU>: Return 'nc' suffix for CCCmode.
12500 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12501 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12502 (*sub<mode>3_cc_overflow): Ditto.
12503 (*subsi3_zext_cc_overflow): Ditto.
12504
12505 2013-10-22 Steve Ellcey <sellcey@mips.com>
12506
12507 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
12508 (AND (NOT OP1) (NOT OP2)).
12509
12510 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
12511
12512 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12513 meaning of merge-high and merge-low masks for little endian; avoid
12514 use of vector-pack masks for little endian for mismatched modes.
12515
12516 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12517
12518 * config/tilepro/tilepro.c: Include "tree.h".
12519
12520 2013-10-22 Andreas Schwab <schwab@suse.de>
12521
12522 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12523 with PRE_DEC.
12524
12525 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
12526
12527 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12528 [Ed Smith-Rowland]): New entries.
12529 ([Stephen M. Webb]): Update.
12530
12531 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
12532
12533 * tree-ssa-ter.h: Remove duplicate copy of file contents.
12534
12535 2013-10-21 Marek Polacek <polacek@redhat.com>
12536
12537 PR middle-end/58809
12538 * fold-const.c (fold_range_test): Return 0 if the type is not
12539 an integral type.
12540
12541 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
12542
12543 * system.h: Move hwint.h include further down.
12544 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
12545 gcc_checking_asserts.
12546 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12547
12548 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12549
12550 Fix volatile issues in optimize_bit_field_compare.
12551 * fold-const.c (optimize_bit_field_compare): Bail out if
12552 lvolatilep or rvolatilep.
12553
12554 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12555
12556 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12557 and get_inner_reference returning different pmode for non-volatile
12558 bit-field members dependent on flag_strict_volatile_bitfields.
12559 * stor-layout.c (layout_decl): Remove special handling of
12560 flag_strict_volatile_bitfields.
12561 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12562 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12563
12564 2013-10-21 Paulo Matos <pmatos@broadcom.com>
12565
12566 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12567 calculations.
12568
12569 2013-10-21 Jeff Law <law@redhat.com>
12570
12571 * tree-ssa-threadedge.c (thread_through_normal_block): New
12572 argument VISITED. Remove VISISTED as a local variable. When we
12573 have a threadable jump, verify the destination of the jump has not
12574 been visised.
12575 (thread_across_edge): Allocate VISITED bitmap once at function
12576 scope and use it throughout. Make sure to set appropriate bits in
12577 VISITED for E (start of jump thread path).
12578 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12579 through a joiner if any edge on the path has a recorded jump thread.
12580
12581 2013-10-21 Ian Lance Taylor <iant@google.com>
12582
12583 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12584 don't imply that attributes can solve all problems.
12585 (Directory Options): Fix typo.
12586
12587 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12588
12589 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12590 extend and extend_add.
12591
12592 2013-10-21 Richard Biener <rguenther@suse.de>
12593
12594 PR tree-optimization/58794
12595 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12596 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12597
12598 2013-10-21 Richard Biener <rguenther@suse.de>
12599
12600 PR middle-end/58742
12601 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12602 to (T) X for sign-changing conversions (or no conversion).
12603
12604 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12605
12606 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12607
12608 2013-10-20 Jan Hubicka <jh@suse.cz>
12609
12610 * config/i386/i386-tune.def: Add comment; organize into categories
12611
12612 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12613
12614 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12615 argument. Update function comment.
12616 (expand_set_or_movmem_via_rep): New function combining
12617 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12618 (expand_movmem_via_rep_mov): Remove.
12619 expand_setmem_via_rep_stos): Remove.
12620 (expand_movmem_epilogue): Update calls correspondingly.
12621 (expand_setmem_epilogue_via_loop): Likewise.
12622 (emit_memset): New.
12623 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12624 (expand_set_or_movmem_prologue): New function combining
12625 expand_movmem_prologue and expand_setmem_prologue.
12626 (expand_movmem_prologue): Remove.
12627 (expand_setmem_prologue): Remove.
12628 (expand_set_or_movmem_constant_prologue): New function combining
12629 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12630 (expand_constant_movmem_prologue): Remove.
12631 (expand_constant_setmem_prologue): Remove.
12632 (promote_duplicated_reg): Allow vector-const0 value.
12633 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12634 and ix86_expand_setmem.
12635 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12636 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12637
12638 2013-10-21 Diego Novillo <dnovillo@google.com>
12639
12640 * asan.c: Include tree.h
12641 * bb-reorder.c: Likewise.
12642 * cfgcleanup.c: Likewise.
12643 * cfgloopmanip.c: Likewise.
12644 * data-streamer-in.c: Likewise.
12645 * data-streamer-out.c: Likewise.
12646 * data-streamer.c: Likewise.
12647 * dwarf2cfi.c: Likewise.
12648 * graphite-blocking.c: Likewise.
12649 * graphite-clast-to-gimple.c: Likewise.
12650 * graphite-dependences.c: Likewise.
12651 * graphite-interchange.c: Likewise.
12652 * graphite-optimize-isl.c: Likewise.
12653 * graphite-poly.c: Likewise.
12654 * graphite-scop-detection.c: Likewise.
12655 * graphite-sese-to-poly.c: Likewise.
12656 * graphite.c: Likewise.
12657 * ipa-devirt.c: Likewise.
12658 * ipa-profile.c: Likewise.
12659 * ipa.c: Likewise.
12660 * ira.c: Likewise.
12661 * loop-init.c: Likewise.
12662 * loop-unroll.c: Likewise.
12663 * lower-subreg.c: Likewise.
12664 * lto/lto-object.c: Likewise.
12665 * recog.c: Likewise.
12666 * reginfo.c: Likewise.
12667 * tree-loop-distribution.c: Likewise.
12668 * tree-parloops.c: Likewise.
12669 * tree-ssa-strlen.c: Likewise.
12670 * tree-streamer.c: Likewise.
12671 * value-prof.c: Likewise.
12672 * target-globals.c: Likewise.
12673 * expr.h: Include tree-core.h instead of tree.h.
12674 * gimple.h: Likewise.
12675 * ipa-prop.h: Likewise.
12676 * ipa-utils.h: Likewise.
12677 * lto-streamer.h: Likewise.
12678 * streamer-hooks.h: Likewise.
12679 * ipa-reference.h: Include cgraph.h instead of tree.h.
12680 * cgraph.h: Include basic-block.h instead of tree.h.
12681 * tree-streamer.h: Do not include tree.h.
12682 * genattrtab.c (write_header): Generate inclusion of tree.h.
12683 * genautomata.c (main): Likewise.
12684 * genemit.c: Likewise.
12685 * genopinit.c: Likewise.
12686 * genoutput.c (output_prologue): Likewise.
12687 * genpeep.c: Likewise.
12688
12689 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12690
12691 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12692 little endian.
12693 (vec_unpacku_hi_v8hi): Likewise.
12694 (vec_unpacku_lo_v16qi): Likewise.
12695 (vec_unpacku_lo_v8hi): Likewise.
12696
12697 2013-10-20 Jan Hubicka <jh@suse.cz>
12698
12699 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12700 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12701 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12702
12703 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12704
12705 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12706 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12707 constants.
12708 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12709
12710 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12711
12712 PR target/58603
12713 * system.h: Undef m_slot.
12714
12715 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12716
12717 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12718 all elements for both endian flavors.
12719
12720 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12721
12722 PR target/58792
12723 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12724 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12725 and SI_REG for 64bit SYSV ABI targets.
12726
12727 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12728
12729 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12730 to multi_reg_return. Clarify that we are skipping USEs of multiple
12731 return registers. Use bool type where appropriate.
12732
12733 2013-10-18 Jan Hubicka <jh@suse.cz>
12734
12735 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12736 for cold functions.
12737 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12738 (X86_TUNE_PUSH_MEMORY): Likewise.
12739 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12740 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12741 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12742 New.
12743 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12744 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12745 Remove.
12746 (ix86_option_override_internal): Update to use tune features instead
12747 of variables.
12748
12749 2013-10-18 Cong Hou <congh@google.com>
12750
12751 PR tree-optimization/58508
12752 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12753 statement that contains data refs with zero-step.
12754
12755 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12756
12757 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12758 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12759 * gimple-low.c (gimple_check_call_arg,
12760 gimple_check_call_matching_types): Move to cgraph.c.
12761 * gimple-low.h: Remove prototype.
12762 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12763 Relocate from gimple-low.c.
12764 * cgraph.h: Add prototype. Don't include basic-block.h.
12765 * gimplify.c: Add gimple-low to include list.
12766 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12767 * tree-eh.c: Add gimple-low to include list.
12768 * tree-nested.c: Likewise.
12769 * cfgexpand.c: Add tree-ssa-address.h to include list.
12770 * expr.c: Likewise.
12771 * gimple-fold.c: Likewise.
12772 * gimple-ssa-strength-reduction.c: Likewise.
12773 * trans-mem.c: Likewise.
12774 * tree-mudflap.c: Likewise.
12775 * tree-ssa-loop-ivopts.c: Likewise.
12776 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12777 (degenerate_phi_result): Move to tree-phinodes.c.
12778 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12779 * tree-ssa-threadedge.c: Likewise.
12780 * tree-vrp.c: Likewise.
12781 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12782 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12783 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12784 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12785 * tree-ssa-forwprop.c: Likewise.
12786 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12787 pass_data_cleanup_cfg_post_optimizing,
12788 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12789 * tree-optimize.c: Delete File.
12790 * graphite.c: Include tree-cfgcleanup.h.
12791 * passes.c: Likewise.
12792 * tree-cfg.c: Likewise.
12793 * tree-profile.c: Likewise.
12794 * tree-ssa-dse.c: Likewise.
12795 * tree-ssa-loop-ivcanon.c: Likewise.
12796 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12797 * tree-outof-ssa.c: Include sbitmap.h.
12798 * tree-ssa-live.c: Likewise.
12799 * tree-ssa-propagate.c: Likewise.
12800 * tree-ssa-structalias.c: Likewise.
12801 * tree-stdarg.c: Likewise.
12802 * Makefile.in (OBJS): Delete tree-optimize.o.
12803 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12804 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12805 * varasm.c: Include basic-block.h.
12806 * cfgloop.h: Include function.h instead of basic-block.h
12807 (bb_loop_depth): Move to cfgloop.c.
12808 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12809
12810 2013-10-18 Teresa Johnson <tejohnson@google.com>
12811
12812 * predict.c (probably_never_executed): Compare frequency-based
12813 count to number of training runs.
12814 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12815
12816 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12817
12818 * config/arm/arm.c (cortexa9_extra_costs): New table.
12819 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12820
12821 2013-10-18 Jeff Law <law@redhat.com>
12822
12823 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12824
12825 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12826 (register_jump_thread): Add "registered_jump_thread" debug
12827 counter support.
12828 * dbgcnt.def (registered_jump_thread): New debug counter.
12829
12830 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12831
12832 * config/rs6000/rs6000.c: Include cgraph.h.
12833
12834 2013-10-18 Teresa Johnson <tejohnson@google.com>
12835
12836 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12837 weights during merging.
12838
12839 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12840
12841 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12842 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12843 * tree-ssa-operands.h: Remove prototype.
12844 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12845 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12846 * gimple.h: Add prototype.
12847 * gimple-ssa.h: Include tree-ssa-operands.h.
12848 * tree-dump.c: Add tree-cfg.h to include list.
12849 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12850 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12851 * config/i386/i386.c: Don't include tree-flow.h.
12852 * config/rs6000/rs6000.c: Likewise.
12853
12854 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12855
12856 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12857
12858 2013-10-18 Richard Biener <rguenther@suse.de>
12859
12860 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12861 or TYPE_UNSIGNED of integral types.
12862 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12863 NULL_TREE for zero-precision integral types.
12864
12865 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12866
12867 * config/aarch64/arm_neon.h
12868 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12869
12870 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12871
12872 PR target/57756
12873 * opth-gen.awk: Define target_flags_explicit.
12874
12875 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12876
12877 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12878 fields to the reg_addr array that describes the valid addressing
12879 mode for any register, general purpose registers, floating point
12880 registers, and Altivec registers.
12881 (FIRST_RELOAD_REG_CLASS): Likewise.
12882 (LAST_RELOAD_REG_CLASS): Likewise.
12883 (struct reload_reg_map_type): Likewise.
12884 (reload_reg_map_type): Likewise.
12885 (RELOAD_REG_VALID): Likewise.
12886 (RELOAD_REG_MULTIPLE): Likewise.
12887 (RELOAD_REG_INDEXED): Likewise.
12888 (RELOAD_REG_OFFSET): Likewise.
12889 (RELOAD_REG_PRE_INCDEC): Likewise.
12890 (RELOAD_REG_PRE_MODIFY): Likewise.
12891 (reg_addr): Likewise.
12892 (mode_supports_pre_incdec_p): New helper functions to say whether
12893 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12894 (mode_supports_pre_modify_p): Likewise.
12895 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12896 print the valid address mode bits for each mode.
12897 (rs6000_debug_print_mode): Likewise.
12898 (rs6000_debug_reg_global): Likewise.
12899 (rs6000_setup_reg_addr_masks): New function to set up the address
12900 mask bits for each type.
12901 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12902 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12903 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12904 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12905 PRE_MODIFY are supported.
12906 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12907 registers, instead of {src,dest}_av_p.
12908 (rs6000_print_options_internal): Tweak the debug output slightly.
12909
12910 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12911
12912 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12913 isa attribute.
12914
12915 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12916
12917 * tree-flow.h (struct omp_region): Move to omp-low.c.
12918 Remove omp_ prototypes and variables.
12919 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12920 (copy_var_decl): Relocate prototype from tree-flow.h.
12921 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12922 * tree.h: Move prototype to omp-low.h.
12923 * omp-low.h: New File. Relocate prototypes here.
12924 * omp-low.c (struct omp_region): Make local here.
12925 (root_omp_region): Make static.
12926 (copy_var_decl) Move to gimple.c.
12927 (new_omp_region): Make static.
12928 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12929 * tree-cfg.c: Include omp-low.h.
12930 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12931 * gimplify.c: Include omp-low.h.
12932 * tree-parloops.c: Likewise.
12933
12934 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12935
12936 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12937 operands are in memory, prefer to force non-matched operand 1 to
12938 the register.
12939
12940 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12941
12942 PR target/58673
12943 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12944 restrict TImode addresses to single indirect registers if both
12945 -mquad-memory and -mvsx-timode are used.
12946 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12947 we should emit load/store quad. Remove using %y for quad memory
12948 addresses.
12949
12950 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12951 constraints to allow load/store quad on machines where TImode is
12952 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12953 for TImode to load integer constants.
12954
12955 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12956
12957 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12958
12959 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12960
12961 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12962 handling of STACK_REG.
12963
12964 2013-10-17 Richard Biener <rguenther@suse.de>
12965
12966 PR tree-optimization/58143
12967 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12968 New function.
12969 (rewrite_to_defined_overflow): Likewise.
12970 (move_computations_dom_walker::before_dom): Rewrite stmts
12971 with undefined signed overflow that are not always executed
12972 into unsigned arithmetic.
12973
12974 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12975
12976 PR target/57756
12977 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12978 explicit isa flag to be an options variable, instead of using
12979 global_options_set. Remove define from rs6000.h.
12980 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12981
12982 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12983 Initialize rs6000_isa_flags_explicit.
12984 (rs6000_function_specific_save): Add gcc_options* parameter, so
12985 that the powerpc builds after the 2013-10-15 changes.
12986 (rs6000_function_specific_restore): Likewise.
12987
12988 2013-10-16 DJ Delorie <dj@redhat.com>
12989
12990 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12991 op is a REG before checking REGNO.
12992 (rl78_alloc_physical_registers): Verify pattern is a SET before
12993 checking SET_SRC.
12994
12995 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12996
12997 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12998 endianness.
12999 (vec_unpacks_lo_v4sf): Likewise.
13000 (vec_unpacks_float_hi_v4si): Likewise.
13001 (vec_unpacks_float_lo_v4si): Likewise.
13002 (vec_unpacku_float_hi_v4si): Likewise.
13003 (vec_unpacku_float_lo_v4si): Likewise.
13004
13005 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13006
13007 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
13008 (vsx_concat_v2sf): Likewise.
13009
13010 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
13011
13012 * config/aarch64/aarch64.md
13013 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
13014
13015 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
13016
13017 PR tree-optimization/58697
13018 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
13019 estimated_loop_iterations_int.
13020 (max_stmt_executions_int): Call get_max_loop_iterations_int.
13021 (get_max_loop_iterations_int): New. HWINT version of
13022 get_max_loop_iterations.
13023 * cfgloop.h: Add prototypes.
13024 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
13025 * loop-unroll.c (decide_peel_once_rolling): Call
13026 get_estimated_loop_iterations_int.
13027 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
13028 * tree-ssa-loop-niter.h: Tweak prototypes.
13029
13030 2013-10-16 David Malcolm <dmalcolm@redhat.com>
13031
13032 * gengtype-parse.c (struct_field_seq): Ignore access-control
13033 keywords ("public:" etc).
13034
13035 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
13036
13037 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
13038 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
13039
13040 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
13041
13042 * config/arm/arm.opt (mlra): New option.
13043 * config/arm/arm.c (arm_lra_p): New function.
13044 (TARGET_LRA_P): Define.
13045
13046 2013-10-16 Paulo Matos <pmatos@broadcom.com>
13047
13048 * tree-core.h (tree_code_name): Remove.
13049 * tree.h (get_tree_code_name): New prototype.
13050 * tree.c (tree_code_name): Make static.
13051 (get_tree_code_name): New function.
13052 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
13053 tree_class_check_failed, tree_range_check_failed,
13054 tree_not_class_check_failed, omp_clause_check_failed,
13055 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
13056 wrapper get_tree_code_name instead of calling tree_code_name directly.
13057 * tree-vrp.c (dump_asserts_for): Likewise.
13058 * tree-dump.c (dequeue_and_dump): Likewise.
13059 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
13060 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
13061 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
13062 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
13063 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
13064 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
13065 dump_gimple_omp_for): Likewise.
13066 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
13067 * tree-ssa-pre.c (print_pre_expr): Likewise.
13068 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
13069 * print-tree.c (print_node_brief, print_node): Likewise.
13070 * gimple.c (gimple_check_failed): Likewise.
13071 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
13072 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
13073 * config/mep/mep.c (mep_validate_vliw): Likewise.
13074 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
13075 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
13076
13077 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13078
13079 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
13080 for AMD bdver3.
13081
13082 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
13083
13084 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13085 (MULTILIB_MATCHES): Add multilib for -march=v8.
13086
13087 2013-10-15 Sriraman Tallam <tmsriram@google.com>
13088
13089 PR target/57756
13090 * optc-save-gen.awk: Add extra parameter to the save and restore
13091 target calls.
13092 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
13093 * tree.c (build_optimization_node): New parameter. Add extra parameter
13094 to call to cl_optimization_save.
13095 (build_target_option_node): New parameter. Add extra parameter
13096 to call to cl_target_option_save.
13097 * tree.h (build_optimization_node): New parameter.
13098 (build_target_option_node): New parameter.
13099 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
13100 build_optimization_node and build_target_option_node.
13101 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
13102 (handle_pragma_push_options): Ditto.
13103 * toplev.c (process_options): Ditto.
13104 * opts.c (init_options_struct): Check for opts_set non-null.
13105 * target.def (target_option.save): New parameter.
13106 (target_option.restore): New parameter.
13107 * tm.texi: Generate.
13108 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
13109 (ix86_pragma_target_parse): Ditto.
13110 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
13111 parameters.
13112 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
13113 to build_optimization_node and build_target_option_node.
13114 (rs6000_valid_attribute_p): Ditto.
13115 (rs6000_pragma_target_parse): Ditto.
13116 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
13117 data.
13118 * config/i386/i386.h:
13119 TARGET_64BIT_P: New Macro
13120 TARGET_MMX_P: New Macro.
13121 TARGET_3DNOW_P: New Macro.
13122 TARGET_3DNOW_A_P: New Macro.
13123 TARGET_SSE_P: New Macro.
13124 TARGET_SSE2_P: New Macro.
13125 TARGET_SSE3_P: New Macro.
13126 TARGET_SSSE3_P: New Macro.
13127 TARGET_SSE4_1_P: New Macro.
13128 TARGET_SSE4_2_P: New Macro.
13129 TARGET_AVX_P: New Macro.
13130 TARGET_AVX2_P: New Macro.
13131 TARGET_AVX512F_P: New Macro.
13132 TARGET_AVX512PF_P: New Macro.
13133 TARGET_AVX512ER_P: New Macro.
13134 TARGET_AVX512CD_P: New Macro.
13135 TARGET_FMA_P: New Macro.
13136 TARGET_SSE4A_P: New Macro.
13137 TARGET_FMA4_P: New Macro.
13138 TARGET_XOP_P: New Macro.
13139 TARGET_LWP_P: New Macro.
13140 TARGET_ABM_P: New Macro.
13141 TARGET_BMI_P: New Macro.
13142 TARGET_BMI2_P: New Macro.
13143 TARGET_LZCNT_P: New Macro.
13144 TARGET_TBM_P: New Macro.
13145 TARGET_POPCNT_P: New Macro.
13146 TARGET_SAHF_P: New Macro.
13147 TARGET_MOVBE_P: New Macro.
13148 TARGET_CRC32_P: New Macro.
13149 TARGET_AES_P: New Macro.
13150 TARGET_PCLMUL_P: New Macro.
13151 TARGET_CMPXCHG16B_P: New Macro.
13152 TARGET_FSGSBASE_P: New Macro.
13153 TARGET_RDRND_P: New Macro.
13154 TARGET_F16C_P: New Macro.
13155 TARGET_RTM_P: New Macro.
13156 TARGET_HLE_P: New Macro.
13157 TARGET_RDSEED_P: New Macro.
13158 TARGET_PRFCHW_P: New Macro.
13159 TARGET_ADX_P: New Macro.
13160 TARGET_FXSR_P: New Macro.
13161 TARGET_XSAVE_P: New Macro.
13162 TARGET_XSAVEOPT_P: New Macro.
13163 TARGET_LP64_P: New Macro.
13164 TARGET_X32_P: New Macro.
13165 TARGET_FPMATH_DEFAULT_P: New Macro.
13166 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13167 * config/i386/i386.c (ix86_option_override_internal): New parameters.
13168 opts and opts_set.
13169 Change ix86_tune_string to access opts->x_ix86_tune_string.
13170 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13171 Change ix86_arch_string to access opts->x_ix86_arch_string.
13172 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13173 Change ix86_pmode to access opts->x_ix86_pmode.
13174 Change ix86_abi to access opts->x_ix86_abi.
13175 Change ix86_cmodel to access opts->x_ix86_cmodel.
13176 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13177 Change ix86_isa_flags_explicit to access
13178 opts->x_ix86_isa_flags_explicit.
13179 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13180 Change ix86_regparm to access opts->x_ix86_regparm.
13181 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13182 Change ix86_preferred_stack_boundary_arg to access
13183 opts->x_ix86_preferred_stack_boundary_arg.
13184 Change ix86_force_align_arg_pointer to access
13185 opts->x_ix86_force_align_arg_pointer.
13186 Change ix86_incoming_stack_boundar_arg to access
13187 opts->x_ix86_incoming_stack_boundar_arg.
13188 Change ix86_fpmath to access opts->x_ix86_fpmath.
13189 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13190 Change ix86_recip_name to access opts->x_ix86_recip_name.
13191 Change ix86_stack_protector_guard to access
13192 opts->x_ix86_stack_protector_guard.
13193 Change ix86_tune_memcpy_strategy to access
13194 opts->x_ix86_tune_memcpy_strategy.
13195 Change ix86_tune_memset_strategy to access
13196 opts->x_ix86_tune_memset_strategy.
13197 Change global_options to access opts.
13198 Change global_options_set to access opts_set.
13199 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13200 Change TARGET_MMX to TARGET_MMX_P (opts->...).
13201 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13202 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13203 Change TARGET_SSE to TARGET_SSE_P (opts->...).
13204 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13205 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13206 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13207 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13208 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13209 Change TARGET_AVX to TARGET_AVX_P (opts->...).
13210 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13211 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13212 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13213 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13214 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13215 Change TARGET_FMA to TARGET_FMA_P (opts->...).
13216 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13217 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13218 Change TARGET_XOP to TARGET_XOP_P (opts->...).
13219 Change TARGET_LWP to TARGET_LWP_P (opts->...).
13220 Change TARGET_ABM to TARGET_ABM_P (opts->...).
13221 Change TARGET_BMI to TARGET_BMI_P (opts->...).
13222 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13223 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13224 Change TARGET_TBM to TARGET_TBM_P (opts->...).
13225 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13226 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13227 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13228 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13229 Change TARGET_AES to TARGET_AES_P (opts->...).
13230 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13231 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13232 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13233 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13234 Change TARGET_F16C to TARGET_F16C_P (opts->...).
13235 Change TARGET_RTM to TARGET_RTM_P (opts->...).
13236 Change TARGET_HLE to TARGET_HLE_P (opts->...).
13237 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13238 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13239 Change TARGET_ADX to TARGET_ADX_P (opts->...).
13240 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13241 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13242 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13243 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13244 Change TARGET_X32 to TARGET_X32_P (opts->...).
13245 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13246 Change TARGET_FLOAT_RETURNS_IN_80387 to
13247 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13248 (ix86_function_specific_save): New parameter. Use opts-> fields
13249 to replace global fields.
13250 (ix86_function_specific_restore): Ditto.
13251 (ix86_valid_target_attribute_inner_p): New parameters.
13252 Fix recursive call.
13253 Fix call to ix86_handle_option and set_option.
13254 (ix86_valid_target_attribute_tree): New parameters.
13255 Change global_options to access opts.
13256 Change global_options_set to access opts_set.
13257 Fix call to ix86_valid_target_attribute_inner_p.
13258 Change ix86_tune_string to access opts->x_ix86_tune_string.
13259 Change ix86_arch_string to access opts->x_ix86_arch_string.
13260 Change ix86_fpmath to access opts->x_ix86_fpmath
13261 Fix call to ix86_option_override_internal.
13262 Fix call to ix86_add_new_builtins.
13263 Fix calls to build_optimization_node and build_target_option_node.
13264 (ix86_valid_target_attribute_p): Remove access to global_options.
13265 Use new gcc_options structure func_options.
13266 Fix call to ix86_valid_target_attribute_tree.
13267 Fix call to build_optimization_node.
13268 (get_builtin_code_for_version): Fix call to
13269 ix86_valid_target_attribute_tree.
13270
13271 2013-10-15 David Malcolm <dmalcolm@redhat.com>
13272
13273 * Makefile.in (PICFLAG): New.
13274 (enable_host_shared): New.
13275 (INTERNAL_CFLAGS): Use PICFLAG.
13276 (LIBIBERTY): Use pic build of libiberty.a if configured with
13277 --enable-host-shared.
13278 * configure.ac: Add --enable-host-shared, setting up new
13279 PICFLAG variable.
13280 * configure: Regenerate.
13281 * doc/install.texi (--enable-shared): Add note contrasting it with ...
13282 (--enable-host-shared): New option.
13283
13284 2013-10-15 Richard Biener <rguenther@suse.de>
13285
13286 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13287 for built-in functions.
13288
13289 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
13290
13291 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13292 (optimize_range_tests_1): New function,
13293 extracted from optimize_range_tests.
13294 (optimize_range_tests_xor): Similarly.
13295 (optimize_range_tests_diff): New function.
13296 (optimize_range_tests): Use optimize_range_tests_1.
13297
13298 2013-10-15 Cong Hou <congh@google.com>
13299
13300 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13301 requirement of the reduction pattern so that one operand of the
13302 reduction operation can come from outside of the loop.
13303
13304 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13305
13306 * config/arm/neon-schedgen.ml: Remove.
13307 * config/arm/cortex-a9-neon.md: Remove comment regarding
13308 neon-schedgen.ml.
13309
13310 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13311
13312 * config/arm/types: Remove old neon types.
13313
13314 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13315
13316 * config/arm/cortex-a7.md
13317 (cortex_a7_neon_type): New.
13318 (cortex_a7_neon_mul): Update for new types.
13319 (cortex_a7_neon_mla): Likewise.
13320 (cortex_a7_neon): Likewise.
13321
13322 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13323
13324 * config/arm/cortex-a15-neon.md
13325 (cortex_a15_neon_type): New,
13326
13327 (cortex_a15_neon_int_1): Remove.
13328 (cortex_a15_neon_int_2): Likewise.
13329 (cortex_a15_neon_int_3): Likewise.
13330 (cortex_a15_neon_int_4): Likewise.
13331 (cortex_a15_neon_int_5): Likewise.
13332 (cortex_a15_neon_vqneg_vqabs): Likewise.
13333 (cortex_a15_neon_vmov): Likewise.
13334 (cortex_a15_neon_vaba): Likewise.
13335 (cortex_a15_neon_vaba_qqq): Likewise.
13336 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13337 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13338 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13339 Likewise.
13340 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13341 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13342 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13343 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13344 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13345 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13346 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13347 (cortex_a15_neon_shift_1): Likewise.
13348 (cortex_a15_neon_shift_2): Likewise.
13349 (cortex_a15_neon_shift_3): Likewise.
13350 (cortex_a15_neon_vshl_ddd): Likewise.
13351 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13352 (cortex_a15_neon_vsra_vrsra): Likewise.
13353 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13354 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13355 (cortex_a15_neon_bp_3cycle): Likewise.
13356 (cortex_a15_neon_ldm_2): Likewise.
13357 (cortex_a15_neon_stm_2): Likewise.
13358 (cortex_a15_neon_mcr): Likewise.
13359 (cortex_a15_neon_mrc): Likewise.
13360 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13361 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13362 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13363 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13364 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13365 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13366 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13367 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13368 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13369 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13370 (cortex_a15_neon_bp_simple): Likewise.
13371 (cortex_a15_neon_bp_2cycle): Likewise.
13372 (cortex_a15_neon_bp_3cycle): Likewise.
13373 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13374 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13375 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13376 (cortex_a15_neon_vld2_4_regs): Likewise.
13377 (cortex_a15_neon_vld3_vld4): Likewise.
13378 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13379 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13380 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13381 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13382 (cortex_a15_neon_vst3_vst4): Rename to...
13383 (cortex_a15_neon_vst4): This, update for new attributes.
13384 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13385 (cortex_a15_neon_vld3_vld4_lane): Likewise.
13386 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13387 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13388 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13389 (cortex_a15_neon_ldm_2): Likewise.
13390 (cortex_a15_neon_stm_2): Likewise.
13391 (cortex_a15_neon_mcr): Likewise.
13392 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13393 (cortex_a15_neon_mrc): Likewise.
13394 (cortex_a15_neon_mrrc): Likewise.
13395
13396 (cortex_a15_neon_abd): New.
13397 (cortex_a15_neon_abd_q): Likewise.
13398 (cortex_a15_neon_aba): Likewise.
13399 (cortex_a15_neon_aba_q): Likewise.
13400 (cortex_a15_neon_acc): Likewise.
13401 (cortex_a15_neon_acc_q): Likewise.
13402 (cortex_a15_neon_arith_basic): Likewise.
13403 (cortex_a15_neon_arith_complex): Likewise.
13404 (cortex_a15_neon_multiply): Likewise.
13405 (cortex_a15_neon_multiply_q): Likewise.
13406 (cortex_a15_neon_mla): Likewise.
13407 (cortex_a15_neon_mla_q): Likewise.
13408 (cortex_a15_neon_sat_mla_long): Likewise.
13409 (cortex_a15_neon_shift_acc): Likewise.
13410 (cortex_a15_neon_shift_imm_basic): Likewise.
13411 (cortex_a15_neon_shift_imm_complex): Likewise.
13412 (cortex_a15_neon_shift_reg_basic): Likewise.
13413 (cortex_a15_neon_shift_reg_basic_q): Likewise.
13414 (cortex_a15_neon_shift_reg_complex): Likewise.
13415 (cortex_a15_neon_shift_reg_complex_q): Likewise.
13416 (cortex_a15_neon_fp_negabs): Likewise
13417 (cortex_a15_neon_fp_arith): Likewise
13418 (cortex_a15_neon_fp_arith_q): Likewise
13419 (cortex_a15_neon_fp_cvt_int): Likewise
13420 (cortex_a15_neon_fp_cvt_int_q): Likewise
13421 (cortex_a15_neon_fp_cvt_16): Likewise
13422 (cortex_a15_neon_fp_mul): Likewise
13423 (cortex_a15_neon_fp_mul_q): Likewise
13424 (cortex_a15_neon_fp_mla): Likewise
13425 (cortex_a15_neon_fp_mla_q): Likewise
13426 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13427 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13428 (cortex_a15_neon_bitops): Likewise.
13429 (cortex_a15_neon_bitops_q): Likewise.
13430 (cortex_a15_neon_from_gp): Likewise.
13431 (cortex_a15_neon_from_gp_q): Likewise.
13432 (cortex_a15_neon_tbl3_tbl4): Likewise.
13433 (cortex_a15_neon_zip_q): Likewise.
13434 (cortex_a15_neon_to_gp): Likewise.
13435 (cortex_a15_neon_load_a): Likewise.
13436 (cortex_a15_neon_load_b): Likewise.
13437 (cortex_a15_neon_load_c): Likewise.
13438 (cortex_a15_neon_load_d): Likewise.
13439 (cortex_a15_neon_load_e): Likewise.
13440 (cortex_a15_neon_load_f): Likewise.
13441 (cortex_a15_neon_store_a): Likewise.
13442 (cortex_a15_neon_store_b): Likewise.
13443 (cortex_a15_neon_store_c): Likewise.
13444 (cortex_a15_neon_store_d): Likewise.
13445 (cortex_a15_neon_store_e): Likewise.
13446 (cortex_a15_neon_store_f): Likewise.
13447 (cortex_a15_neon_store_g): Likewise.
13448 (cortex_a15_neon_store_h): Likewise.
13449 (cortex_a15_vfp_to_from_gp): Likewise.
13450
13451 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13452
13453 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13454
13455 (cortex_a9_neon_vshl_ddd): Remove.
13456 (cortex_a9_neon_vst3_vst4): Likewise.
13457 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13458
13459 (cortex_a9_neon_bit_ops_q): New.
13460
13461 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13462 (cortex_a9_neon_int_2): Likewise.
13463 (cortex_a9_neon_int_3): Likewise.
13464 (cortex_a9_neon_int_4): Likewise.
13465 (cortex_a9_neon_int_5): Likewise.
13466 (cortex_a9_neon_vqneg_vqabs): Likewise.
13467 (cortex_a9_neon_vmov): Likewise.
13468 (cortex_a9_neon_vaba): Likewise.
13469 (cortex_a9_neon_vaba_qqq): Likewise.
13470 (cortex_a9_neon_shift_1): Likewise.
13471 (cortex_a9_neon_shift_2): Likewise.
13472 (cortex_a9_neon_shift_3): Likewise.
13473 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13474 (cortex_a9_neon_vsra_vrsra): Likewise.
13475 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13476 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13477 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13478 Likewise.
13479 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13480 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13481 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13482 Likewise.
13483 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13484 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13485 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13486 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13487 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13488 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13489 (cortex_a9_neon_fp_vsum): Likewise.
13490 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13491 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13492 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13493 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13494 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13495 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13496 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13497 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13498 (cortex_a9_neon_bp_simple): Likewise.
13499 (cortex_a9_neon_bp_2cycle): Likewise.
13500 (cortex_a9_neon_bp_3cycle): Likewise.
13501 (cortex_a9_neon_ldr): Likewise.
13502 (cortex_a9_neon_str): Likewise.
13503 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13504 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13505 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13506 (cortex_a9_neon_vld2_4_regs): Likewise.
13507 (cortex_a9_neon_vld3_vld4): Likewise.
13508 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13509 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13510 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13511 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13512 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13513 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13514 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13515 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13516 (cortex_a9_neon_mcr): Likewise.
13517 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13518 (cortex_a9_neon_mrc): Likewise.
13519 (cortex_a9_neon_mrrc): Likewise.
13520
13521 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13522
13523 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13524
13525 (cortex_a8_neon_vshl_ddd): Remove.
13526 (cortex_a8_neon_vst3_vst4): Likewise.
13527 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13528
13529 (cortex_a8_neon_bit_ops_q): New.
13530
13531 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13532 (cortex_a8_neon_int_2): Likewise..
13533 (cortex_a8_neon_int_3): Likewise.
13534 (cortex_a8_neon_int_5): Likewise.
13535 (cortex_a8_neon_vqneg_vqabs): Likewise.
13536 (cortex_a8_neon_int_4): Likewise.
13537 (cortex_a8_neon_vaba): Likewise.
13538 (cortex_a8_neon_vaba_qqq): Likewise.
13539 (cortex_a8_neon_shift_1): Likewise.
13540 (cortex_a8_neon_shift_2): Likewise.
13541 (cortex_a8_neon_shift_3): Likewise.
13542 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13543 (cortex_a8_neon_vsra_vrsra): Likewise.
13544 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13545 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13546 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13547 Likewise.
13548 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13549 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13550 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13551 Likewise.
13552 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13553 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13554 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13555 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13556 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13557 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13558 (cortex_a8_neon_fp_vsum): Likewise.
13559 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13560 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13561 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13562 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13563 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13564 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13565 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13566 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13567 (cortex_a8_neon_bp_simple): Likewise.
13568 (cortex_a8_neon_bp_2cycle): Likewise.
13569 (cortex_a8_neon_bp_3cycle): Likewise.
13570 (cortex_a8_neon_ldr): Likewise.
13571 (cortex_a8_neon_str): Likewise.
13572 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13573 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13574 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13575 (cortex_a8_neon_vld2_4_regs): Likewise.
13576 (cortex_a8_neon_vld3_vld4): Likewise.
13577 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13578 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13579 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13580 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13581 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13582 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13583 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13584 (cortex_a8_neon_mcr): Likewise.
13585 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13586 (cortex_a8_neon_mrc): Likewise.
13587 (cortex_a8_neon_mrrc): Likewise.
13588
13589 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13590
13591 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13592 (fp): New.
13593 * config/aarch64/aarch64-simd.md (neon_type): Remove.
13594 (aarch64_simd_dup<mode>): Add "type" attribute.
13595 (aarch64_dup_lane<mode>): Likewise.
13596 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13597 (*aarch64_simd_mov<mode>): Likewise.
13598 (aarch64_simd_mov_from_<mode>low): Likewise.
13599 (aarch64_simd_mov_from_<mode>high): Likewise.
13600 (orn<mode>3): Likewise.
13601 (bic<mode>3): Likewise.
13602 (add<mode>3): Likewise.
13603 (sub<mode>3): Likewise.
13604 (mul<mode>3): Likewise.
13605 (*aarch64_mul3_elt<mode>): Likewise.
13606 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13607 (*aarch64_mul3_elt_to_128df): Likewise.
13608 (*aarch64_mul3_elt_to_64v2df): Likewise.
13609 (neg<mode>2): Likewise.
13610 (abs<mode>2): Likewise.
13611 (abd<mode>_3): Likewise.
13612 (aba<mode>_3): Likewise.
13613 (fabd<mode>_3): Likewise.
13614 (*fabd_scalar<mode>3): Likewise.
13615 (and<mode>3): Likewise.
13616 (ior<mode>3): Likewise.
13617 (xor<mode>3): Likewise.
13618 (one_cmpl<mode>2): Likewise.
13619 (aarch64_simd_vec_set<mode>): Likewise.
13620 (aarch64_simd_lshr<mode>): Likewise.
13621 (aarch64_simd_ashr<mode>): Likewise.
13622 (aarch64_simd_imm_shl<mode>): Likewise.
13623 (aarch64_simd_reg_sshl<mode): Likewise.
13624 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13625 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13626 (aarch64_simd_vec_setv2di): Likewise.
13627 (aarch64_simd_vec_set<mode>): Likewise.
13628 (aarch64_mla<mode>): Likewise.
13629 (*aarch64_mla_elt<mode>): Likewise.
13630 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13631 (aarch64_mls<mode>): Likewise.
13632 (*aarch64_mls_elt<mode>): Likewise.
13633 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13634 (<su><maxmin><mode>3): Likewise.
13635 (move_lo_quad_<mode>): Likewise.
13636 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13637 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13638 (vec_pack_trunc_<mode>): Likewise.
13639 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13640 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13641 (*aarch64_<su>mlal_lo<mode>): Likewise.
13642 (*aarch64_<su>mlal_hi<mode>): Likewise.
13643 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13644 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13645 (*aarch64_<su>mlal<mode>): Likewise.
13646 (*aarch64_<su>mlsl<mode>): Likewise.
13647 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13648 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13649 (add<mode>3): Likewise.
13650 (sub<mode>3): Likewise.
13651 (mul<mode>3): Likewise.
13652 (div<mode>3): Likewise.
13653 (neg<mode>2): Likewise.
13654 (abs<mode>2): Likewise.
13655 (fma<mode>4): Likewise.
13656 (*aarch64_fma4_elt<mode>): Likewise.
13657 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13658 (*aarch64_fma4_elt_to_128df): Likewise.
13659 (*aarch64_fma4_elt_to_64v2df): Likewise.
13660 (fnma<mode>4): Likewise.
13661 (*aarch64_fnma4_elt<mode>): Likewise.
13662 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13663 (*aarch64_fnma4_elt_to_128df): Likewise.
13664 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13665 (<frint_pattern><mode>2): Likewise.
13666 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13667 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13668 (vec_unpacks_lo_v4sf): Likewise.
13669 (aarch64_float_extend_lo_v2df): Likewise.
13670 (vec_unpacks_hi_v4sf): Likewise.
13671 (aarch64_float_truncate_lo_v2sf): Likewise.
13672 (aarch64_float_truncate_hi_v4sf): Likewise.
13673 (aarch64_vmls<mode>): Likewise.
13674 (<su><maxmin><mode>3): Likewise.
13675 (<maxmin_uns><mode>3): Likewise.
13676 (reduc_<sur>plus_<mode>): Likewise.
13677 (reduc_<sur>plus_v2di): Likewise.
13678 (reduc_<sur>plus_v2si): Likewise.
13679 (reduc_<sur>plus_<mode>): Likewise.
13680 (aarch64_addpv4sf): Likewise.
13681 (clz<mode>2): Likewise.
13682 (reduc_<maxmin_uns>_<mode>): Likewise.
13683 (reduc_<maxmin_uns>_v2di): Likewise.
13684 (reduc_<maxmin_uns>_v2si): Likewise.
13685 (reduc_<maxmin_uns>_<mode>): Likewise.
13686 (reduc_<maxmin_uns>_v4sf): Likewise.
13687 (aarch64_simd_bsl<mode>_internal): Likewise.
13688 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13689 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13690 (aarch64_get_lane<mode>): Likewise.
13691 (*aarch64_combinez<mode>): Likewise.
13692 (aarch64_combine<mode>): Likewise.
13693 (aarch64_simd_combine<mode>): Likewise.
13694 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13695 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13696 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13697 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13698 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13699 (aarch64_<sur>h<addsub><mode>): Likewise.
13700 (aarch64_<sur><addsub>hn<mode>): Likewise.
13701 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13702 (aarch64_pmul<mode>): Likewise.
13703 (aarch64_<su_optab><optab><mode>): Likewise.
13704 (aarch64_<sur>qadd<mode>): Likewise.
13705 (aarch64_sqmovun<mode>): Likewise.
13706 (aarch64_<sur>qmovn<mode>): Likewise.
13707 (aarch64_s<optab><mode>): Likewise.
13708 (aarch64_sq<r>dmulh<mode>): Likewise.
13709 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13710 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13711 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13712 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13713 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13714 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13715 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13716 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13717 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13718 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13719 (aarch64_sqdmull<mode>): Likewise.
13720 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13721 (aarch64_sqdmull_n<mode>): Likewise.
13722 (aarch64_sqdmull2<mode>_internal): Likewise.
13723 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13724 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13725 (aarch64_<sur>shl<mode>): Likewise.
13726 (aarch64_<sur>q<r>shl<mode>
13727 (aarch64_<sur>shll_n<mode>): Likewise.
13728 (aarch64_<sur>shll2_n<mode>): Likewise.
13729 (aarch64_<sur>shr_n<mode>): Likewise.
13730 (aarch64_<sur>sra_n<mode>): Likewise.
13731 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13732 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13733 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13734 (aarch64_cm<optab><mode>): Likewise.
13735 (aarch64_cm<optab>di): Likewise.
13736 (aarch64_cm<optab><mode>): Likewise.
13737 (aarch64_cm<optab>di): Likewise.
13738 (aarch64_cmtst<mode>): Likewise.
13739 (aarch64_cmtstdi): Likewise.
13740 (aarch64_cm<optab><mode>): Likewise.
13741 (*aarch64_fac<optab><mode>): Likewise.
13742 (aarch64_addp<mode>): Likewise.
13743 (aarch64_addpdi): Likewise.
13744 (sqrt<mode>2): Likewise.
13745 (vec_load_lanesoi<mode>): Likewise.
13746 (vec_store_lanesoi<mode>): Likewise.
13747 (vec_load_lanesci<mode>): Likewise.
13748 (vec_store_lanesci<mode>): Likewise.
13749 (vec_load_lanesxi<mode>): Likewise.
13750 (vec_store_lanesxi<mode>): Likewise.
13751 (*aarch64_mov<mode>): Likewise.
13752 (aarch64_ld2<mode>_dreg): Likewise.
13753 (aarch64_ld2<mode>_dreg): Likewise.
13754 (aarch64_ld3<mode>_dreg): Likewise.
13755 (aarch64_ld3<mode>_dreg): Likewise.
13756 (aarch64_ld4<mode>_dreg): Likewise.
13757 (aarch64_ld4<mode>_dreg): Likewise.
13758 (aarch64_tbl1<mode>): Likewise.
13759 (aarch64_tbl2v16qi): Likewise.
13760 (aarch64_combinev16qi): Likewise.
13761 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13762 (aarch64_st2<mode>_dreg): Likewise.
13763 (aarch64_st2<mode>_dreg): Likewise.
13764 (aarch64_st3<mode>_dreg): Likewise.
13765 (aarch64_st3<mode>_dreg): Likewise.
13766 (aarch64_st4<mode>_dreg): Likewise.
13767 (aarch64_st4<mode>_dreg): Likewise.
13768 (*aarch64_simd_ld1r<mode>): Likewise.
13769 (aarch64_frecpe<mode>): Likewise.
13770 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13771 (aarch64_frecps<mode>): Likewise.
13772
13773 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13774
13775 * config/arm/iterators.md (V_elem_ch): New.
13776 (q): Likewise.
13777 (VQH_type): Likewise.
13778 * config/arm/arm.md (is_neon_type): New.
13779 (conds): Use is_neon_type.
13780 (anddi3_insn): Update type attribute.
13781 (xordi3_insn): Likewise.
13782 (one_cmpldi2): Likewise.
13783 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13784 * config/arm/neon.md (neon_mov): Update type attribute.
13785 (*movmisalign<mode>_neon_store): Likewise.
13786 (*movmisalign<mode>_neon_load): Likewise.
13787 (vec_set<mode>_internal): Likewise.
13788 (vec_set<mode>_internal): Likewise.
13789 (vec_setv2di_internal): Likewise.
13790 (vec_extract<mode>): Likewise.
13791 (vec_extract<mode>): Likewise.
13792 (vec_extractv2di): Likewise.
13793 (*add<mode>3_neon): Likewise.
13794 (adddi3_neon): Likewise.
13795 (*sub<mode>3_neon): Likewise.
13796 (subdi3_neon): Likewise.
13797 (fma<VCVTF:mode>4): Likewise.
13798 (fma<VCVTF:mode>4_intrinsic): Likewise.
13799 (*fmsub<VCVTF:mode>4): Likewise.
13800 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13801 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13802 (ior<mode>3): Likewise.
13803 (and<mode>3): Likewise.
13804 (orn<mode>3_neon): Likewise.
13805 (orndi3_neon): Likewise.
13806 (bic<mode>3_neon): Likewise.
13807 (bicdi3_neon): Likewise.
13808 (xor<mode>3): Likewise.
13809 (one_cmpl<mode>2): Likewise.
13810 (abs<mode>2): Likewise.
13811 (neg<mode>2): Likewise.
13812 (negdi2_neon): Likewise.
13813 (*umin<mode>3_neon): Likewise.
13814 (*umax<mode>3_neon): Likewise.
13815 (*smin<mode>3_neon): Likewise.
13816 (*smax<mode>3_neon): Likewise.
13817 (vashl<mode>3): Likewise.
13818 (vashr<mode>3_imm): Likewise.
13819 (vlshr<mode>3_imm): Likewise.
13820 (ashl<mode>3_signed): Likewise.
13821 (ashl<mode>3_unsigned): Likewise.
13822 (neon_load_count): Likewise.
13823 (ashldi3_neon_noclobber): Likewise.
13824 (ashldi3_neon): Likewise.
13825 (signed_shift_di3_neon): Likewise.
13826 (unsigned_shift_di3_neon): Likewise.
13827 (ashrdi3_neon_imm_noclobber): Likewise.
13828 (lshrdi3_neon_imm_noclobber): Likewise.
13829 (<shift>di3_neon): Likewise.
13830 (widen_ssum<mode>3): Likewise.
13831 (widen_usum<mode>3): Likewise.
13832 (quad_halves_<code>v4si): Likewise.
13833 (quad_halves_<code>v4sf): Likewise.
13834 (quad_halves_<code>v8hi): Likewise.
13835 (quad_halves_<code>v16qi): Likewise.
13836 (reduc_splus_v2di): Likewise.
13837 (neon_vpadd_internal<mode>): Likewise.
13838 (neon_vpsmin<mode>): Likewise.
13839 (neon_vpsmax<mode>): Likewise.
13840 (neon_vpumin<mode>): Likewise.
13841 (neon_vpumax<mode>): Likewise.
13842 (*ss_add<mode>_neon): Likewise.
13843 (*us_add<mode>_neon): Likewise.
13844 (*ss_sub<mode>_neon): Likewise.
13845 (*us_sub<mode>_neon): Likewise.
13846 (neon_vadd<mode>_unspec): Likewise.
13847 (neon_vaddl<mode>): Likewise.
13848 (neon_vaddw<mode>): Likewise.
13849 (neon_vhadd<mode>): Likewise.
13850 (neon_vqadd<mode>): Likewise.
13851 (neon_vaddhn<mode>): Likewise.
13852 (neon_vmul<mode>): Likewise.
13853 (neon_vfms<VCVTF:mode>): Likewise.
13854 (neon_vmlal<mode>): Likewise.
13855 (neon_vmls<mode>): Likewise.
13856 (neon_vmlsl<mode>): Likewise.
13857 (neon_vqdmulh<mode>): Likewise.
13858 (neon_vqdmlal<mode>): Likewise.
13859 (neon_vqdmlsl<mode>): Likewise.
13860 (neon_vmull<mode>): Likewise.
13861 (neon_vqdmull<mode>): Likewise.
13862 (neon_vsub<mode>_unspec): Likewise.
13863 (neon_vsubl<mode>): Likewise.
13864 (neon_vsubw<mode>): Likewise.
13865 (neon_vqsub<mode>): Likewise.
13866 (neon_vhsub<mode>): Likewise.
13867 (neon_vsubhn<mode>): Likewise.
13868 (neon_vceq<mode>): Likewise.
13869 (neon_vcge<mode>): Likewise.
13870 (neon_vcgeu<mode>): Likewise.
13871 (neon_vcgt<mode>): Likewise.
13872 (neon_vcgtu<mode>): Likewise.
13873 (neon_vcle<mode>): Likewise.
13874 (neon_vclt<mode>): Likewise.
13875 (neon_vcage<mode>): Likewise.
13876 (neon_vcagt<mode>): Likewise.
13877 (neon_vtst<mode>): Likewise.
13878 (neon_vabd<mode>): Likewise.
13879 (neon_vabdl<mode>): Likewise.
13880 (neon_vaba<mode>): Likewise.
13881 (neon_vabal<mode>): Likewise.
13882 (neon_vmax<mode>): Likewise.
13883 (neon_vmin<mode>): Likewise.
13884 (neon_vpaddl<mode>): Likewise.
13885 (neon_vpadal<mode>): Likewise.
13886 (neon_vpmax<mode>): Likewise.
13887 (neon_vpmin<mode>): Likewise.
13888 (neon_vrecps<mode>): Likewise.
13889 (neon_vrsqrts<mode>): Likewise.
13890 (neon_vqabs<mode>): Likewise.
13891 (neon_vqneg<mode>): Likewise.
13892 (neon_vcls<mode>): Likewise.
13893 (clz<mode>2): Likewise.
13894 (popcount<mode>2): Likewise.
13895 (neon_vrecpe<mode>): Likewise.
13896 (neon_vrsqrte<mode>): Likewise.
13897 (neon_vget_lane<mode>_sext_internal): Likewise.
13898 (neon_vget_lane<mode>_zext_internal): Likewise.
13899 (neon_vdup_n<mode>): Likewise.
13900 (neon_vdup_n<mode>): Likewise.
13901 (neon_vdup_nv2di): Likewise.
13902 (neon_vdup_lane<mode>_interal): Likewise.
13903 (*neon_vswp<mode>): Likewise.
13904 (neon_vcombine<mode>): Likewise.
13905 (float<mode><V_cvtto>2): Likewise.
13906 (floatuns<mode><V_cvtto>2): Likewise.
13907 (fix_trunc<mode><V_cvtto>2): Likewise.
13908 (fixuns_trunc<mode><V_cvtto>2
13909 (neon_vcvt<mode>): Likewise.
13910 (neon_vcvt<mode>): Likewise.
13911 (neon_vcvtv4sfv4hf): Likewise.
13912 (neon_vcvtv4hfv4sf): Likewise.
13913 (neon_vcvt_n<mode>): Likewise.
13914 (neon_vcvt_n<mode>): Likewise.
13915 (neon_vmovn<mode>): Likewise.
13916 (neon_vqmovn<mode>): Likewise.
13917 (neon_vqmovun<mode>): Likewise.
13918 (neon_vmovl<mode>): Likewise.
13919 (neon_vmul_lane<mode>): Likewise.
13920 (neon_vmul_lane<mode>): Likewise.
13921 (neon_vmull_lane<mode>): Likewise.
13922 (neon_vqdmull_lane<mode>): Likewise.
13923 (neon_vqdmulh_lane<mode>): Likewise.
13924 (neon_vqdmulh_lane<mode>): Likewise.
13925 (neon_vmla_lane<mode>): Likewise.
13926 (neon_vmla_lane<mode>): Likewise.
13927 (neon_vmlal_lane<mode>): Likewise.
13928 (neon_vqdmlal_lane<mode>): Likewise.
13929 (neon_vmls_lane<mode>): Likewise.
13930 (neon_vmls_lane<mode>): Likewise.
13931 (neon_vmlsl_lane<mode>): Likewise.
13932 (neon_vqdmlsl_lane<mode>): Likewise.
13933 (neon_vext<mode>): Likewise.
13934 (neon_vrev64<mode>): Likewise.
13935 (neon_vrev32<mode>): Likewise.
13936 (neon_vrev16<mode>): Likewise.
13937 (neon_vbsl<mode>_internal): Likewise.
13938 (neon_vshl<mode>): Likewise.
13939 (neon_vqshl<mode>): Likewise.
13940 (neon_vshr_n<mode>): Likewise.
13941 (neon_vshrn_n<mode>): Likewise.
13942 (neon_vqshrn_n<mode>): Likewise.
13943 (neon_vqshrun_n<mode>): Likewise.
13944 (neon_vshl_n<mode>): Likewise.
13945 (neon_vqshl_n<mode>): Likewise.
13946 (neon_vqshlu_n<mode>): Likewise.
13947 (neon_vshll_n<mode>): Likewise.
13948 (neon_vsra_n<mode>): Likewise.
13949 (neon_vsri_n<mode>): Likewise.
13950 (neon_vsli_n<mode>): Likewise.
13951 (neon_vtbl1v8qi): Likewise.
13952 (neon_vtbl2v8qi): Likewise.
13953 (neon_vtbl3v8qi): Likewise.
13954 (neon_vtbl4v8qi): Likewise.
13955 (neon_vtbl1v16qi): Likewise.
13956 (neon_vtbl2v16qi): Likewise.
13957 (neon_vcombinev16qi): Likewise.
13958 (neon_vtbx1v8qi): Likewise.
13959 (neon_vtbx2v8qi): Likewise.
13960 (neon_vtbx3v8qi): Likewise.
13961 (neon_vtbx4v8qi): Likewise.
13962 (*neon_vtrn<mode>_insn): Likewise.
13963 (*neon_vzip<mode>_insn): Likewise.
13964 (*neon_vuzp<mode>_insn): Likewise.
13965 (neon_vld1<mode>): Likewise.
13966 (neon_vld1_lane<mode>): Likewise.
13967 (neon_vld1_lane<mode>): Likewise.
13968 (neon_vld1_dup<mode>): Likewise.
13969 (neon_vld1_dup<mode>): Likewise.
13970 (neon_vld1_dupv2di): Likewise.
13971 (neon_vst1<mode>): Likewise.
13972 (neon_vst1_lane<mode>): Likewise.
13973 (neon_vst1_lane<mode>): Likewise.
13974 (neon_vld2<mode>): Likewise.
13975 (neon_vld2<mode>): Likewise.
13976 (neon_vld2_lane<mode>): Likewise.
13977 (neon_vld2_lane<mode>): Likewise.
13978 (neon_vld2_dup<mode>): Likewise.
13979 (neon_vst2<mode>): Likewise.
13980 (neon_vst2<mode>): Likewise.
13981 (neon_vst2_lane<mode>): Likewise.
13982 (neon_vst2_lane<mode>): Likewise.
13983 (neon_vld3<mode>): Likewise.
13984 (neon_vld3qa<mode>): Likewise.
13985 (neon_vld3qb<mode>): Likewise.
13986 (neon_vld3_lane<mode>): Likewise.
13987 (neon_vld3_lane<mode>): Likewise.
13988 (neon_vld3_dup<mode>): Likewise.
13989 (neon_vst3<mode>): Likewise.
13990 (neon_vst3qa<mode>): Likewise.
13991 (neon_vst3qb<mode>): Likewise.
13992 (neon_vst3_lane<mode>): Likewise.
13993 (neon_vst3_lane<mode>): Likewise.
13994 (neon_vld4<mode>): Likewise.
13995 (neon_vld4qa<mode>): Likewise.
13996 (neon_vld4qb<mode>): Likewise.
13997 (neon_vld4_lane<mode>): Likewise.
13998 (neon_vld4_lane<mode>): Likewise.
13999 (neon_vld4_dup<mode>): Likewise.
14000 (neon_vst4<mode>): Likewise.
14001 (neon_vst4qa<mode>): Likewise.
14002 (neon_vst4qb<mode>): Likewise.
14003 (neon_vst4_lane<mode>): Likewise.
14004 (neon_vst4_lane<mode>): Likewise.
14005 (neon_vec_unpack<US>_lo_<mode>): Likewise.
14006 (neon_vec_unpack<US>_hi_<mode>): Likewise.
14007 (neon_vec_<US>mult_lo_<mode>): Likewise.
14008 (neon_vec_<US>mult_hi_<mode>): Likewise.
14009 (neon_vec_<US>shiftl_<mode>): Likewise.
14010 (neon_unpack<US>_<mode>): Likewise.
14011 (neon_vec_<US>mult_<mode>): Likewise.
14012 (vec_pack_trunc_<mode>): Likewise.
14013 (neon_vec_pack_trunc_<mode>): Likewise.
14014 (neon_vabd<mode>_2): Likewise.
14015 (neon_vabd<mode>_3): Likewise.
14016
14017 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14018
14019 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
14020 (load_pair): Update type attribute.
14021 (store_pair): Update type attribute.
14022 * config/aarch64/iterators.md (q): New.
14023
14024 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14025
14026 * config/arm/types.md: Add new types for Neon insns.
14027
14028 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14029 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14030 Sergey Lega <sergey.s.lega@intel.com>
14031 Anna Tikhonova <anna.tikhonova@intel.com>
14032 Ilya Tocar <ilya.tocar@intel.com>
14033 Andrey Turetskiy <andrey.turetskiy@intel.com>
14034 Ilya Verbin <ilya.verbin@intel.com>
14035 Kirill Yukhin <kirill.yukhin@intel.com>
14036 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14037
14038 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
14039 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
14040 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
14041 (rcp14<mode>): New.
14042 (srcp14<mode>): Ditto.
14043 (rsqrt14<mode>): Ditto.
14044 (rsqrt14<mode>): Ditto.
14045 (avx512f_vmscalef<mode>): Ditto.
14046 (avx512f_scalef<mode>): Ditto.
14047 (avx512f_getexp<mode>): Ditto.
14048 (avx512f_sgetexp<mode>): Ditto.
14049 (avx512f_fixupimm<mode>): Ditto.
14050 (avx512f_sfixupimm<mode>): Ditto.
14051 (avx512f_rndscale<mode>): Ditto.
14052 (*avx512er_exp2<mode>): Ditto.
14053 (*avx512er_rcp28<mode>): Ditto.
14054 (avx512er_rsqrt28<mode>): Ditto.
14055 (avx512f_getmant<mode>): Ditto.
14056 (avx512f_getmant<mode>): Ditto.
14057 (avx512f_rndscale<mode>): Fix formatting.
14058
14059 2013-10-15 Martin Jambor <mjambor@suse.cz>
14060
14061 * ipa-utils.h (ipa_edge_within_scc): Declare.
14062 * ipa-cp.c (edge_within_scc): Moved...
14063 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
14064
14065 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14067 Sergey Lega <sergey.s.lega@intel.com>
14068 Anna Tikhonova <anna.tikhonova@intel.com>
14069 Ilya Tocar <ilya.tocar@intel.com>
14070 Andrey Turetskiy <andrey.turetskiy@intel.com>
14071 Ilya Verbin <ilya.verbin@intel.com>
14072 Kirill Yukhin <kirill.yukhin@intel.com>
14073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14074
14075 * config/i386/predicates.md (const_8_to_15_operand): New.
14076 (const_16_to_31_operand): Ditto.
14077 * config/i386/sse.md (V8FI): New.
14078 (V16FI): Ditto.
14079 (reduc_splus_v8df): Ditto.
14080 (reduc_splus_v16sf): Ditto.
14081 (avx512f_vextract<shuffletype>32x4_1): Ditto.
14082 (vec_extract_hi_<mode>): Ditto.
14083 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
14084 (vec_set_lo_<mode>): Ditto.
14085 (vec_set_hi_<mode>): Ditto.
14086 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
14087 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
14088 (avx512f_pshufd_1): Ditto.
14089 (avx512f_broadcast<mode>): Ditto.
14090 (avx512f_broadcast<mode>): Ditto.
14091 (define_split): Split vec_extract_lo into move.
14092 (ssequartermode): Ditto.
14093 (ssedoublemode): Extened with wider modes.
14094 (vec_extract_lo_<mode>): Ditto.
14095
14096 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14097 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14098 Sergey Lega <sergey.s.lega@intel.com>
14099 Anna Tikhonova <anna.tikhonova@intel.com>
14100 Ilya Tocar <ilya.tocar@intel.com>
14101 Andrey Turetskiy <andrey.turetskiy@intel.com>
14102 Ilya Verbin <ilya.verbin@intel.com>
14103 Kirill Yukhin <kirill.yukhin@intel.com>
14104 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14105
14106 * config/i386/predicates.md (register_or_constm1_operand): New.
14107 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
14108 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
14109 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
14110 UNSPEC_SCATTER_PREFETCH
14111 (VI48_512): New.
14112 (avx512f_ucmp<mode>3): Ditto.
14113 (avx512f_vternlog<mode>): Ditto.
14114 (avx512f_align<mode>): Ditto.
14115 (<shift_insn><mode>3): Ditto.
14116 (avx512f_<rotate>v<mode>): Ditto.
14117 (avx512f_<rotate><mode>): Ditto.
14118 (avx512f_eq<mode>3): Ditto.
14119 (avx512f_eq<mode>3_1): Ditto.
14120 (avx512f_gt<mode>3): Ditto.
14121 (avx512f_testm<mode>3): Ditto.
14122 (avx512f_testnm<mode>3): Ditto.
14123 (avx512pf_gatherpf<mode>): Ditto.
14124 (*avx512pf_gatherpf<mode>_mask): Ditto.
14125 (*avx512pf_gatherpf<mode>): Ditto.
14126 (avx512pf_scatterpf<mode>): Ditto.
14127 (*avx512pf_scatterpf<mode>_mask): Ditto.
14128 (*avx512pf_scatterpf<mode>): Ditto.
14129 (avx512f_vec_dup_gpr<mode>): Ditto.
14130 (clz<mode>2): Ditto.
14131 (conflict<mode>): Ditto.
14132 (REDUC_SMINMAX_MODE): Extened with wider modes.
14133 (reduc_<code>_<mode>): Ditto.
14134 (vlshr<mode>3): Ditto.
14135 (vashl<mode>3): Ditto.
14136
14137 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14138 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14139 Sergey Lega <sergey.s.lega@intel.com>
14140 Anna Tikhonova <anna.tikhonova@intel.com>
14141 Ilya Tocar <ilya.tocar@intel.com>
14142 Andrey Turetskiy <andrey.turetskiy@intel.com>
14143 Ilya Verbin <ilya.verbin@intel.com>
14144 Kirill Yukhin <kirill.yukhin@intel.com>
14145 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14146
14147 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14148 UNSPEC_SCATTER.
14149 (VI48F_512): New.
14150 (avx512fmaskmode): Ditto.
14151 (bcstscalarsuff): Ditto.
14152 (avx512f_blendm<mode>): Ditto.
14153 (cmp_imm_predicate): Ditto.
14154 (avx512f_cmp<mode>3): Ditto.
14155 (avx512f_vec_dup<mode>): Ditto.
14156 (avx512f_vec_dup_mem<mode>): Ditto.
14157 (avx512f_vpermi2var<mode>3): Ditto.
14158 (avx512f_vpermt2var<mode>3): Ditto.
14159 (vec_init<mode>): Ditto.
14160 (avx512f_gathersi<mode>): Ditto.
14161 (*avx512f_gathersi<mode>): Ditto.
14162 (*avx512f_gathersi<mode>_2): Ditto.
14163 (avx512f_gatherdi<mode>): Ditto.
14164 (*avx512f_gatherdi<mode>): Ditto.
14165 (*avx512f_gatherdi<mode>_2): Ditto.
14166 (avx512f_scattersi<mode>): Ditto.
14167 (*avx512f_scattersi<mode>): Ditto.
14168 (avx512f_scatterdi<mode>): Ditto.
14169 (*avx512f_scatterdi<mode>): Ditto.
14170 (sseintprefix): Extened with wider modes.
14171 (VEC_GATHER_IDXSI): Ditto.
14172 (VEC_GATHER_IDXDI): Ditto.
14173 (VEC_GATHER_SRCDI): Ditto.
14174
14175 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14176 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14177
14178 * config/arm/t-aprofile: New file.
14179 * config.gcc: Handle --with-multilib-list option.
14180
14181 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
14182
14183 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14184 the input for r2.
14185
14186 2013-10-15 Richard Biener <rguenther@suse.de>
14187
14188 * tree-loop-distribution.c (build_empty_rdg): Inline into
14189 single user.
14190 (rdg_flag_vertex): Inline into single user.
14191 (rdg_flag_vertex_and_dependent): Likewise.
14192 (build_rdg_partition_for_vertex): Remove processed bitmap.
14193 (rdg_build_partitions): Simplify.
14194
14195 2013-10-15 Richard Biener <rguenther@suse.de>
14196
14197 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14198 Restructure forwarding through conversions and copies to
14199 avoid performing copy-propagation the wrong way. Adjust
14200 recursion invocations.
14201 (forward_propagate_addr_expr): Add argument stating if we
14202 are recursing from a single-use.
14203 (ssa_forward_propagate_and_combine): Adjust.
14204
14205 2013-10-14 David Malcolm <dmalcolm@redhat.com>
14206
14207 * dumpfile.h (gcc::dump_manager): New class, to hold state
14208 relating to dumpfile management.
14209 (get_dump_file_name): Remove in favor of method of dump_manager.
14210 (dump_initialized_p): Likewise.
14211 (dump_start): Likewise.
14212 (dump_finish): Likewise.
14213 (dump_switch_p): Likewise.
14214 (dump_register): Likewise.
14215 (get_dump_file_info): Likewise.
14216 * context.c (gcc::context::context): Construct the dump_manager
14217 instance.
14218 * context.h (gcc::context::get_dumps): New.
14219 (gcc::context::m_dumps): New.
14220 * coverage.c (coverage_init): Port to dump_manager API.
14221 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14222 (extra_dump_files_in_use): Likewise.
14223 (extra_dump_files_alloced): Likewise.
14224 (gcc::dump_manager::dump_manager): New.
14225 (dump_register): Convert to...
14226 (gcc::dump_manager::dump_register): ...method, replacing
14227 function-static next_dump with m_next_dump field.
14228 (get_dump_file_info): Convert to...
14229 (gcc::dump_manager::get_dump_file_info): ...method.
14230 (get_dump_file_name): Convert to...
14231 (gcc::dump_manager::get_dump_file_name): ...method.
14232 (dump_start): Convert to...
14233 (gcc::dump_manager::dump_start): ...method.
14234 (dump_finish): Convert to...
14235 (gcc::dump_manager::dump_finish): ...method.
14236 (dump_begin): Replace body with...
14237 (gcc::dump_manager::dump_begin): ...new method.
14238 (dump_phase_enabled_p): Convert to...
14239 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14240 (dump_phase_enabled_p): Convert to...
14241 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14242 (dump_initialized_p): Convert to...
14243 (gcc::dump_manager::dump_initialized_p): ...method.
14244 (dump_flag_name): Replace body with...
14245 (gcc::dump_manager::dump_flag_name): ...new method.
14246 (dump_enable_all): Convert to...
14247 (gcc::dump_manager::dump_enable_all): ...new method.
14248 (opt_info_enable_passes): Convert to...
14249 (gcc::dump_manager::opt_info_enable_passes): ...new method.
14250 (dump_switch_p_1): Convert to...
14251 (gcc::dump_manager::dump_switch_p_1): ...new method.
14252 (dump_switch_p): Convert to...
14253 (gcc::dump_manager::dump_switch_p): ...new method.
14254 (opt_info_switch_p): Port to dump_manager API.
14255 (enable_rtl_dump_file): Likewise.
14256 * opts-global.c (handle_common_deferred_options): Port to new
14257 dump_manager API.
14258 * passes.c (pass_manager::finish_optimization_passes): Likewise.
14259 (pass_manager::register_one_dump_file): Likewise.
14260 (pass_manager::register_pass): Likewise.
14261 (pass_init_dump_file): Likewise.
14262 (pass_fini_dump_file): Likewise.
14263 * statistics.c (statistics_early_init): Likewise.
14264
14265 2013-10-14 Richard Biener <rguenther@suse.de>
14266
14267 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14268 iterative_hash_canonical_type, gimple_canonical_type_hash,
14269 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14270 gimple_register_canonical_type, print_gimple_types_stats,
14271 free_gimple_type_tables): Move to lto/lto.c
14272 (gt-gimple.h): Do not include.
14273 * gimple.h (gimple_register_canonical_type,
14274 print_gimple_types_stats, free_gimple_type_tables): Remove.
14275 * Makefile.in (GTFILES): Remove gimple.c.
14276
14277 2013-10-14 Travis Snoozy <quandary@remstate.com>
14278
14279 PR target/58716
14280 * config/msp430/msp430.c (msp430_option_override): Correct thinko
14281 scanning for msp430x targets.
14282
14283 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
14284
14285 PR bootstrap/58509
14286 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14287 (registers_ok_for_ldd_peep): Move around.
14288 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14289 * config/sparc/sparc.md (widening peepholes): Use it.
14290
14291 2013-10-14 Richard Biener <rguenther@suse.de>
14292
14293 PR middle-end/58712
14294 PR middle-end/55358
14295 * gimple.c (iterative_hash_canonical_type): Make sure to
14296 record the hash into the correct hashtable slot.
14297
14298 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
14299
14300 PR rtl-optimization/58662
14301 * combine.c (try_combine): Take into account death nodes on I2 when
14302 splitting a PARALLEL of two independent SETs. Fix dump message.
14303
14304 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
14305
14306 PR target/51244
14307 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14308 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14309 extra_objs.
14310 * config/sh/t-sh (sh_treg_combine.o): New entry.
14311 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14312 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14313 (register_sh_passes): New function. Register sh_treg_combine pass.
14314 (sh_option_override): Invoke it.
14315 (sh_canonicalize_comparison): Handle op0_preserve_value.
14316 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14317 opportunities. Canonicalize branch condition.
14318 (nott): Allow only if pseudos can be created for non-SH2A.
14319
14320 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
14321
14322 PR target/58690
14323 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14324 (ix86_expand_movmem): Replace copy_addr_to_reg with
14325 ix86_copy_addr_to_reg.
14326 (ix86_expand_setmem): Likewise.
14327
14328 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
14329
14330 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14331 provided by ix86_fp_compare_mode instead of CCFPUmode.
14332
14333 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
14334
14335 * config/aarch64/arm_neon.h
14336 (vtbx<1,3>_<psu>8): Fix register constriants.
14337
14338 2013-10-11 Jeff Law <law@redhat.com>
14339
14340 PR tree-optimization/58640
14341 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14342 threading paths that cross over two loop entry points.
14343
14344 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14345
14346 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14347 handle vector float as well.
14348 (*vsx_le_perm_load_v4si): Likewise.
14349 (*vsx_le_perm_store_v2di): Likewise.
14350 (*vsx_le_perm_store_v4si): Likewise.
14351
14352 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14353
14354 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14355 directly to circumvent subtract from splat{31} workaround.
14356 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14357 prototype.
14358 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14359 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14360 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14361 (altivec_vperm_<mode>): Convert to define_insn_and_split to
14362 separate big and little endian logic.
14363 (*altivec_vperm_<mode>_internal): New define_insn.
14364 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14365 separate big and little endian logic.
14366 (*altivec_vperm_<mode>_uns_internal): New define_insn.
14367 (vec_permv16qi): Add little endian logic.
14368
14369 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
14370
14371 * doc/extend.texi (returns_nonnull): Remove arguments.
14372
14373 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14375 Sergey Lega <sergey.s.lega@intel.com>
14376 Anna Tikhonova <anna.tikhonova@intel.com>
14377 Ilya Tocar <ilya.tocar@intel.com>
14378 Andrey Turetskiy <andrey.turetskiy@intel.com>
14379 Ilya Verbin <ilya.verbin@intel.com>
14380 Kirill Yukhin <kirill.yukhin@intel.com>
14381 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14382
14383 * config/i386/sse.md (VI48F_256_512): New.
14384 (avx2_permvar<mode>): Change to ...
14385 (<avx2_avx512f>_permvar<mode>): This.
14386
14387 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14389 Sergey Lega <sergey.s.lega@intel.com>
14390 Anna Tikhonova <anna.tikhonova@intel.com>
14391 Ilya Tocar <ilya.tocar@intel.com>
14392 Andrey Turetskiy <andrey.turetskiy@intel.com>
14393 Ilya Verbin <ilya.verbin@intel.com>
14394 Kirill Yukhin <kirill.yukhin@intel.com>
14395 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14396
14397 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14398 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14399 * config/i386/sse.md (VI4_AVX): New.
14400 (sf2simodelower): Ditto.
14401 (sse2_cvtps2dq): Change to ...
14402 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
14403
14404 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14406 Sergey Lega <sergey.s.lega@intel.com>
14407 Anna Tikhonova <anna.tikhonova@intel.com>
14408 Ilya Tocar <ilya.tocar@intel.com>
14409 Andrey Turetskiy <andrey.turetskiy@intel.com>
14410 Ilya Verbin <ilya.verbin@intel.com>
14411 Kirill Yukhin <kirill.yukhin@intel.com>
14412 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14413
14414 * config/i386/sse.md (V_512): New.
14415 (VI_512): Ditto.
14416 (vcond<V_512:mode><VF_512:mode>): Ditto.
14417 (vcond<V_512:mode><VI_512:mode>): Ditto.
14418 (vcondu<V_512:mode><VI_512:mode>): Ditto.
14419
14420 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14421 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14422 Sergey Lega <sergey.s.lega@intel.com>
14423 Anna Tikhonova <anna.tikhonova@intel.com>
14424 Ilya Tocar <ilya.tocar@intel.com>
14425 Andrey Turetskiy <andrey.turetskiy@intel.com>
14426 Ilya Verbin <ilya.verbin@intel.com>
14427 Kirill Yukhin <kirill.yukhin@intel.com>
14428 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14429
14430 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14431 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14432 (FMAMODE): Ditto.
14433 (fma<mode>4): Removed condition.
14434 (fms<mode>4): Ditto.
14435 (fnma<mode>4): Ditto.
14436 (fnms<mode>4): Ditto.
14437 (fma4i_fmadd_<mode>): Ditto.
14438 (*fma_fmadd_<mode>): Ditto.
14439 (*fma_fmsub_<mode>): Ditto.
14440 (*fma_fnmadd_<mode>): Ditto.
14441 (*fma_fnmsub_<mode>): Ditto.
14442 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14443 (*fma_fmaddsub_<mode>): Ditto.
14444 (*fma_fmsubadd_<mode>): Ditto.
14445 (*fmai_fmadd_<mode>): Ditto.
14446 (*fmai_fmsub_<mode>): Ditto.
14447 (*fmai_fnmadd_<mode>): Ditto.
14448 (*fmai_fnmsub_<mode>): Ditto.
14449
14450 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14452 Sergey Lega <sergey.s.lega@intel.com>
14453 Anna Tikhonova <anna.tikhonova@intel.com>
14454 Ilya Tocar <ilya.tocar@intel.com>
14455 Andrey Turetskiy <andrey.turetskiy@intel.com>
14456 Ilya Verbin <ilya.verbin@intel.com>
14457 Kirill Yukhin <kirill.yukhin@intel.com>
14458 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14459
14460 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14461 (VI124_256): Changed to ...
14462 (VI124_256_48_512): This.
14463 (ssepackmode): Extended with wider modes.
14464 (<code><mode>3): Changed iterator.
14465 (*avx2_<code><mode>3): Ditto.
14466 (vec_pack_trunc_<mode>): Ditto.
14467
14468 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14470 Sergey Lega <sergey.s.lega@intel.com>
14471 Anna Tikhonova <anna.tikhonova@intel.com>
14472 Ilya Tocar <ilya.tocar@intel.com>
14473 Andrey Turetskiy <andrey.turetskiy@intel.com>
14474 Ilya Verbin <ilya.verbin@intel.com>
14475 Kirill Yukhin <kirill.yukhin@intel.com>
14476 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14477
14478 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14479 (VI8F_256_512): Ditto.
14480 (abs<mode>2): Changed iterator.
14481 (avx2_perm<mode>): Changed to ...
14482 (<avx2_avx512f>_perm<mode>): This.
14483 (avx2_perm<mode>_1): Changed to ...
14484 (<avx2_avx512f>_perm<mode>_1): This.
14485
14486 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14488 Sergey Lega <sergey.s.lega@intel.com>
14489 Anna Tikhonova <anna.tikhonova@intel.com>
14490 Ilya Tocar <ilya.tocar@intel.com>
14491 Andrey Turetskiy <andrey.turetskiy@intel.com>
14492 Ilya Verbin <ilya.verbin@intel.com>
14493 Kirill Yukhin <kirill.yukhin@intel.com>
14494 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14495
14496 * config/i386/sse.md (VI48_AVX512F): New.
14497 (VI48_AVX2): Changed to ...
14498 (VI48_AVX2_48_AVX512F): This.
14499 (avx2_ashrv<mode>): Changed to ...
14500 (<avx2_avx512f>_ashrv<mode>): This.
14501 (avx2_<shift_insn>v<mode>): Changed to ...
14502 (<avx2_avx512f>_<shift_insn>v<mode>): This.
14503
14504 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14505 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14506 Sergey Lega <sergey.s.lega@intel.com>
14507 Anna Tikhonova <anna.tikhonova@intel.com>
14508 Ilya Tocar <ilya.tocar@intel.com>
14509 Andrey Turetskiy <andrey.turetskiy@intel.com>
14510 Ilya Verbin <ilya.verbin@intel.com>
14511 Kirill Yukhin <kirill.yukhin@intel.com>
14512 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14513
14514 * config/i386/sse.md (VI4_AVX512F): New.
14515 (VI8_AVX2_AVX512F): Ditto.
14516 (mul<mode>3): Extended with wider modes.
14517 (*<sse4_1_avx2>_mul<mode>3): Ditto.
14518 (mul<mode>3): Ditto.
14519 (vec_widen_<s>mult_odd_<mode>): Ditto.
14520
14521 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14523 Sergey Lega <sergey.s.lega@intel.com>
14524 Anna Tikhonova <anna.tikhonova@intel.com>
14525 Ilya Tocar <ilya.tocar@intel.com>
14526 Andrey Turetskiy <andrey.turetskiy@intel.com>
14527 Ilya Verbin <ilya.verbin@intel.com>
14528 Kirill Yukhin <kirill.yukhin@intel.com>
14529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14530
14531 * config/i386/sse.md (VI2_AVX512F): New.
14532 (VI124_AVX512F): Ditto.
14533 (sseunpackmode): Extended with wider modes.
14534 (sseunpackfltmode): Ditto.
14535 (vec_unpacks_float_hi_<mode>): Ditto.
14536 (vec_unpacks_float_lo_<mode>): Ditto.
14537 (vec_unpacku_float_hi_<mode>): Ditto.
14538 (vec_unpacku_float_lo_<mode>): Ditto.
14539 (vec_unpacks_lo_<mode>): Ditto.
14540 (vec_unpacks_hi_<mode>): Ditto.
14541 (vec_unpacku_lo_<mode>): Ditto.
14542 (vec_unpacku_hi_<mode>): Ditto.
14543
14544 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14545 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14546 Sergey Lega <sergey.s.lega@intel.com>
14547 Anna Tikhonova <anna.tikhonova@intel.com>
14548 Ilya Tocar <ilya.tocar@intel.com>
14549 Andrey Turetskiy <andrey.turetskiy@intel.com>
14550 Ilya Verbin <ilya.verbin@intel.com>
14551 Kirill Yukhin <kirill.yukhin@intel.com>
14552 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14553
14554 * config/i386/i386.md (multdiv): New.
14555 (multdiv_mnemonic): Ditto.
14556 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14557 (<sse>_vm<multdiv_mnemonic><mode>3): This.
14558 (<sse>_vmdiv<mode>3): Removed.
14559
14560 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14562 Sergey Lega <sergey.s.lega@intel.com>
14563 Anna Tikhonova <anna.tikhonova@intel.com>
14564 Ilya Tocar <ilya.tocar@intel.com>
14565 Andrey Turetskiy <andrey.turetskiy@intel.com>
14566 Ilya Verbin <ilya.verbin@intel.com>
14567 Kirill Yukhin <kirill.yukhin@intel.com>
14568 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14569
14570 * config/i386/sse.md (V): Extended with wider modes.
14571 (VF2): Ditto.
14572 (ssehalfvecmode): Ditto.
14573 (i128): Ditto.
14574 (ssepackfltmode): Ditto.
14575 (avx_vec_concat<mode>): Ditto.
14576 (V_256_512): New iterator.
14577 (VF2_512_256): Ditto.
14578 (si2dfmode): New attribute.
14579 (si2dfmodelower): Ditto.
14580 (sf2dfmode): Ditto.
14581 (concat_tg_mode): Ditto.
14582 (floatv4siv4df2): Changed to ...
14583 (float<si2dfmodelower><mode>2): This.
14584 (avx_cvtps2pd256): Changed to ...
14585 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14586 (vec_pack_trunc_v4df): Changed to ...
14587 (vec_pack_trunc_<mode>): This.
14588 (avx_vpermil<mode>): Changed to ...
14589 (<sse2_avx_avx512f>_vpermil<mode>): This.
14590 (<fixsuffix>fix_truncv8dfv8si2): New.
14591 (vec_pack_sfix_trunc_v8df): Ditto.
14592 (avx512f_rndscale<mode>): Ditto.
14593 (avx512f_roundpd512): Ditto.
14594 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14595
14596 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14598 Sergey Lega <sergey.s.lega@intel.com>
14599 Anna Tikhonova <anna.tikhonova@intel.com>
14600 Ilya Tocar <ilya.tocar@intel.com>
14601 Andrey Turetskiy <andrey.turetskiy@intel.com>
14602 Ilya Verbin <ilya.verbin@intel.com>
14603 Kirill Yukhin <kirill.yukhin@intel.com>
14604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14605
14606 * config/i386/i386.md (any_fix): New iterator.
14607 (fixsuffix): New attribute.
14608 * config/i386/sse.md (VF1): Extened with wider modes.
14609 (VI): Ditto.
14610 (VI_AVX2): Ditto.
14611 (VI8): Ditto.
14612 (sseintvecmodelower): Ditto.
14613 (ssescalarmode): Ditto.
14614 (ssescalarnum): Ditto.
14615 (VF1_128_256): New.
14616 (ssexmmmode): Ditto.
14617 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14618 (<sse>_rcp<mode>2): Change iterator.
14619 (rsqrt<mode>2): Ditto.
14620 (<sse>_rsqrt<mode>2): Ditto.
14621 (avx2_vec_dup<mode>): Ditto.
14622 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14623 (round<mode>2_sfix): Ditto.
14624 (avx2_pbroadcast<mode>): Ditto.
14625 (*andnot<mode>3): Handle XI mode.
14626 (*<code><mode>3): Ditto.
14627 (AVXTOSSEMODE): Removed.
14628 (avx_vpermil<mode>): Changed to ...
14629 (<sse2_avx_avx512f>_vpermil<mode>): This.
14630
14631 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14632 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14633 Sergey Lega <sergey.s.lega@intel.com>
14634 Anna Tikhonova <anna.tikhonova@intel.com>
14635 Ilya Tocar <ilya.tocar@intel.com>
14636 Andrey Turetskiy <andrey.turetskiy@intel.com>
14637 Ilya Verbin <ilya.verbin@intel.com>
14638 Kirill Yukhin <kirill.yukhin@intel.com>
14639 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14640
14641 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14642 (<sse>_comi): Ditto.
14643 (<sse>_ucomi): Ditto.
14644 (sse_cvtss2siq_2): Ditto.
14645 (sse2_cvtsd2si): Ditto.
14646 (sse2_cvtsd2siq): Ditto.
14647 (sse2_cvttsd2si): Ditto.
14648 (sse2_cvttsd2siq): Ditto.
14649 (<shift_insn><mode>3): Ditto.
14650 (sse2_cvtsi2sdq): Update constraint and prefix.
14651 (sse_cvtsi2ss): Update prefix.
14652 (sse_cvtsi2ssq): Ditto.
14653
14654 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14655
14656 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14657 ignore internal calls.
14658
14659 2013-10-11 Richard Biener <rguenther@suse.de>
14660
14661 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14662 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14663 TREE_OVERFLOW is set.
14664
14665 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14666
14667 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14668
14669 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14670 * gimple.h: Likewise.
14671
14672 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14673
14674 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14675 macros.
14676
14677 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14678
14679 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14680 * configure: Regenerate.
14681
14682 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14683
14684 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14685 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14686 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14687 similarly pp_right_paren.
14688 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14689 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14690 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14691 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14692 clauses.
14693 (omp_declare_simd_clauses_equal,
14694 omp_remove_redundant_declare_simd_attrs): New functions.
14695 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14696 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14697 * tree.h (OMP_LOOP_CHECK): Define.
14698 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14699 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14700 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14701 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14702 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14703 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14704 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14705 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14706 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14707 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14708 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14709 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14710 (omp_remove_redundant_declare_simd_attrs): New prototype.
14711 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14712 GIMPLE_OMP_TEAMS): New codes.
14713 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14714 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14715 fields.
14716 (target_nesting_level): New variable.
14717 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14718 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14719 for collapse > 1 static schedule unless ordered.
14720 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14721 (determine_parallel_type): Adjust get_ws_args_for caller.
14722 (install_var_field): Handle mask & 4 for double indirection.
14723 (scan_sharing_clauses): Ignore shared clause on teams construct.
14724 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14725 (create_omp_child_function): If inside target or declare target
14726 constructs, set "omp declare target" attribute on the child function.
14727 (find_combined_for): New function.
14728 (scan_omp_parallel): Handle combined loops.
14729 (scan_omp_target, scan_omp_teams): New functions.
14730 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14731 restrictions and set ctx->cancellable for cancellable constructs.
14732 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14733 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14734 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14735 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14736 (omp_clause_aligned_alignment): New function.
14737 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14738 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14739 on teams constructs. Handle user defined reductions and new
14740 OpenMP 4.0 clauses.
14741 (lower_reduction_clauses): Don't set placeholder to address of ref
14742 if it has already the right type.
14743 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14744 (expand_parallel_call): Use the new non-_start suffixed builtins,
14745 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14746 and GOMP_parallel_end after the call.
14747 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14748 (expand_omp_for_init_counts): Handle combined loops.
14749 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14750 loops.
14751 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14752 end of cancellable loops.
14753 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14754 Likewise. Handle collapse > 1 loops.
14755 (expand_omp_simd): Handle combined loops.
14756 (expand_omp_for): Add inner_stmt argument, adjust callers of
14757 expand_omp_for* functions, use expand_omp_for_static*chunk even
14758 for collapse > 1 unless ordered.
14759 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14760 of cancellable sections.
14761 (expand_omp_single): Remove need_barrier variable, just rely on
14762 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14763 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14764 (expand_omp_atomic_load, expand_omp_atomic_store,
14765 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14766 (expand_omp_target): New function.
14767 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14768 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14769 (build_omp_regions_1): Immediately close region for
14770 GF_OMP_TARGET_KIND_UPDATE.
14771 (maybe_add_implicit_barrier_cancel): New function.
14772 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14773 cancellation.
14774 (lower_omp_single): Likewise. Add clobber after the barrier.
14775 (lower_omp_taskgroup): New function.
14776 (lower_omp_for): Handle combined loops. Adjust
14777 lower_rec_input_clauses caller. Handle cancellation.
14778 (lower_depend_clauses): New function.
14779 (lower_omp_taskreg): Lower depend clauses. Adjust
14780 lower_rec_input_clauses caller. Add clobber after the call. Handle
14781 cancellation.
14782 (lower_omp_target, lower_omp_teams): New functions.
14783 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14784 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14785 and GOMP_cancellation_point calls.
14786 (lower_omp): Fold stmts inside of target region.
14787 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14788 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14789 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14790 (BT_FN_VOID_OMPFN_PTR_UINT,
14791 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14792 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14793 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14794 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14795 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14796 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14797 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14798 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14799 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14800 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14801 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14802 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14803 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14804 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14805 BUILT_IN_GOMP_PARALLEL_END.
14806 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14807 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14808 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14809 GF_OMP_FOR_KIND_DISTRIBUTE.
14810 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14811 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14812 (dump_gimple_omp_return): Print lhs if it has any.
14813 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14814 gimple_omp_atomic_seq_cst_p.
14815 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14816 and GIMPLE_OMP_TEAMS.
14817 * langhooks.c (lhd_omp_mappable_type): New function.
14818 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14819 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14820 hook.
14821 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14822 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14823 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14824 (struct gimplify_omp_ctx): Add combined_loop field.
14825 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14826 on stmts inside of target region.
14827 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14828 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14829 ORT_TARGET and ORT_TARGET_DATA.
14830 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14831 Handle GOVD_MAP.
14832 (omp_notice_threadprivate_variable): Complain about threadprivate
14833 variables in target region.
14834 (omp_notice_variable): Complain about vars with non-mappable type
14835 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14836 (omp_check_private): Ignore ORT_TARGET* regions.
14837 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14838 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14839 (find_combined_omp_for): New function.
14840 (gimplify_omp_for): Handle gimplification of combined loops.
14841 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14842 OMP_TEAMS.
14843 (gimplify_omp_target_update): New function.
14844 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14845 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14846 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14847 (gimplify_body): If fndecl has "omp declare target" attribute, add
14848 implicit ORT_TARGET context around it.
14849 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14850 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14851 * tree-nested.c (convert_nonlocal_reference_stmt,
14852 convert_local_reference_stmt, convert_gimple_call): Handle
14853 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14854 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14855 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14856 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14857 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14858 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14859 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14860 BUILT_IN_GOMP_LOOP_END_CANCEL,
14861 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14862 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14863 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14864 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14865 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14866 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14867 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14868 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14869 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14870 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14871 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14872 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14873 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14874 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14875 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14876 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14877 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14878 gimple_build_omp_teams): New functions.
14879 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14880 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14881 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14882 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14883 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14884 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14885 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14886 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14887 GF_OMP_ATOMIC_SEQ_CST): New.
14888 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14889 gimple_build_omp_teams): New prototypes.
14890 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14891 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14892 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14893 GIMPLE_OMP_SINGLE as end of range.
14894 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14895 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14896 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14897 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14898 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14899 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14900 gimple_omp_target_kind, gimple_omp_target_set_kind,
14901 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14902 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14903 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14904 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14905 gimple_omp_teams_set_clauses): New inlines.
14906 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14907 and GIMPLE_OMP_TASKGROUP.
14908 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14909 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14910 enum omp_clause_proc_bind_kind): New.
14911 (union omp_clause_subcode): Add depend_kind, map_kind and
14912 proc_bind_kind fields.
14913 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14914 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14915 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14916 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14917 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14918
14919 2013-10-10 Teresa Johnson <tejohnson@google.com>
14920
14921 * predict.c (tree_estimate_probability): Add new parameter
14922 for estimate_bb_frequencies.
14923 (estimate_bb_frequencies): Add new parameter to force estimation.
14924 (rebuild_frequencies): When max frequency in function is small,
14925 recompute counts from frequencies.
14926 * predict.h (estimate_bb_frequencies): New parameter.
14927
14928 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14929
14930 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14931 optimizations are disabled.
14932
14933 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14934
14935 * coverage.c (coverage_finish): Fix leak of da_file_name.
14936
14937 2013-10-10 Jan Hubicka <jh@suse.cz>
14938
14939 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14940 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14941 Bobcat and generic.
14942
14943 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14944
14945 PR middle-end/58670
14946 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14947 if any labels are in FALLTHRU_BB, use a special label emitted
14948 immediately after the asm goto insn rather than label_rtx
14949 of the LABEL_DECL.
14950 (expand_asm_stmt): Adjust caller.
14951 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14952 edge if the last insn in predecessor is a jump with single successor,
14953 but it isn't simplejump_p.
14954
14955 2013-10-10 Richard Biener <rguenther@suse.de>
14956
14957 PR tree-optimization/58656
14958 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14959
14960 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14961
14962 * gimplify.c: Include expr.h and tm_p.h for targets with special
14963 va-arg padding requirements.
14964
14965 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14966
14967 * tree-flow.h: Move some prototypes to gimple.h.
14968 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14969 * gimple.h: Relocate some prototypes from tree-flow.h
14970 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14971 Move to gimplify.c.
14972 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14973 (build_va_arg_indirect_ref): Relocate and make static.
14974 (std_gimplify_va_arg_expr): Relocate here.
14975 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14976 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14977
14978 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14979
14980 * doc/md.texi: Document the mnemonic attribute.
14981
14982 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14983
14984 PR target/57377
14985 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14986 (set_attr_alternative x ...) when searching for user defined
14987 mnemonic attribute.
14988
14989 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14990
14991 * config/alpha/alpha.c: Add gimple-ssa.h to include list.
14992
14993 2013-10-09 Easwaran Raman <eraman@google.com>
14994
14995 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14996 * cfgexpand.c (defer_stack_allocation): ...use here
14997 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14998
14999 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
15000
15001 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
15002 (operand_equal_for_value_replacement): New function, extracted from
15003 value_replacement and enhanced to catch more cases.
15004 (value_replacement): Use operand_equal_for_value_replacement.
15005
15006 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15007
15008 * loop-doloop.c (doloop_modify, doloop_optimize): Use
15009 get_max_loop_iterations.
15010
15011 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15012
15013 * config/arm/aarch-common.c (arm_early_load_addr_dep):
15014 Place comment above function.
15015
15016 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15017
15018 * tree-flow.h: Remove all remaining prototypes, enums and structs that
15019 are not related to tree-cfg.c.
15020 * tree-ssa-address.h: New file. Relocate prototypes.
15021 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
15022 (addr_for_mem_ref): New. Combine call to get_address_description and
15023 return addr_for_mem_ref.
15024 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
15025 * tree-ssa-live.h: Adjust prototypes.
15026 * passes.c: Include tree-ssa-live.h.
15027 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
15028 * graphite.c (graphite_transform_loops): Make static.
15029 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
15030 make_pass_graphite, pass_data_graphite_transforms,
15031 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
15032 * ipa-pure-const.c (warn_function_noreturn): Make static.
15033 (execute_warn_function_noreturn, gate_warn_function_noreturn,
15034 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
15035 Relocate from tree-cfg.c
15036 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
15037 static.
15038 (execute_warn_function_noreturn, gate_warn_function_noreturn,
15039 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
15040 Move to ipa-pure-const.c.
15041 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
15042 Relocate from tree-optimize.c.
15043 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
15044 make_pass_fixup_cfg): Move to tree-cfg.c.
15045 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
15046 Relocate some prototypes.
15047 * tree-data-ref.h (tree_check_data_deps) Add prototype.
15048 * tree-dump.c (dump_function_to_file): Remove prototype.
15049 Add tree-flow.h to the include file.
15050 * tree-dump.h: Remove prototype.
15051 * tree-parloops.h: New File. Add prototypes.
15052 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
15053 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
15054 from tree-ssa-loop.c.
15055 * tree-predcom.c (run_tree_predictive_commoning,
15056 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
15057 Relocate here from tree-ssa-loop.c.
15058 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
15059 ssa_name_values.release ().
15060 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
15061 (ssa_name_values): Relocate from tree-flow.h.
15062 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
15063 * tree-ssa-loop.c (run_tree_predictive_commoning,
15064 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
15065 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
15066 make_pass_graphite, pass_data_graphite_transforms,
15067 make_pass_graphite_transforms, gate_tree_parallelize_loops,
15068 tree_parallelize_loops, pass_data_parallelize_loops,
15069 make_pass_parallelize_loops): Move to other files.
15070 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
15071 moved here.
15072 * tree.h: Remove prototypes from tree-address.c.
15073
15074 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15075
15076 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
15077 (struct int_tree_map): Move to tree-hasher.h
15078 (SCALE, LABEL, PERCENT): Move to gimple.h
15079 * tree-flow-inline.h: Delete. Move functions to other files.
15080 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
15081 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
15082 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
15083 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
15084 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
15085 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
15086 * tree-hasher.h: Don't include tree-flow.h.
15087 (struct int_tree_map): Relocate from tree-flow.h.
15088 * tree-sra.c (contains_view_convert_expr_p): Relocate from
15089 tree-flow-inline.h and make static.
15090 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
15091 tree-flow-inline.h.
15092 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
15093 tree-flow-inline.h and make static.
15094 * tree.h (is_global_var, may_be_aliased): Relocate from
15095 tree-flow-inline.h.
15096 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
15097 * value-prof.c: No longer include tree-flow-inline.h.
15098 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
15099
15100 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15101
15102 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
15103 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
15104 (enum move_pos): Move to tree-ssa-loop-im.h
15105 * cfgloop.h: Move some prototypes.
15106 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
15107 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
15108 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
15109 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
15110 (loop_containing_stmt): Relocate from tree-flow-inline.h.
15111 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
15112 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
15113 (enum move_pos): Relocate here.
15114 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
15115 tree-ssa-loop.c.
15116 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
15117 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
15118 make_pass_lim): Relocate here from tree-ssa-loop.c.
15119 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
15120 tree-ssa-loop.c.
15121 (loop_edge_to_cancel, unloop_loops): Make static.
15122 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15123 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
15124 (tree_complete_unroll, gate_tree_complete_unroll,
15125 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
15126 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15127 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
15128 * tree-ssa-loop-ivopts.c: Remove local prototypes.
15129 (stmt_invariant_in_loop_p): Remove unused function.
15130 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
15131 * tree-ssa-loop-manip.h: New file. Add prototypes.
15132 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
15133 (gcov_type_to_double_int): Move to cfgloop.h.
15134 (double_int_cmp, bound_index,
15135 estimate_numbers_of_iterations_loop): Make static.
15136 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
15137 (max_loop_iterations): Factor out get_max_loop_iterations.
15138 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
15139 cfgloop.c.
15140 * tree-ssa-loop-niter.h: New file. Add prototypes.
15141 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
15142 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
15143 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
15144 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15145 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15146 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15147 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15148 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15149 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15150 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15151 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15152 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15153 pass_data_complete_unroll, make_pass_complete_unroll,
15154 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15155 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15156 tree-ssa-loop-ivcanon.c.
15157 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15158 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15159 tree-ssa-loop-prefetch.c.
15160 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15161 tree-ssa-loop-im.c.
15162 (get_lsm_tmp_name): Relocate and add suffix parameter.
15163 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15164 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15165 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15166 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15167 (get_estimated_loop_iterations): Factor out accessor from
15168 estimated_loop_iterations in tree-ssa-loop-niter.c.
15169 (get_max_loop_iterations): Factor out accessor from
15170 _max_loop_iterations in tree-ssa-niter.c.
15171 * loop-unroll.c (decide_unroll_constant_iterations,
15172 decide_unroll_runtime_iterations, decide_peel_simple,
15173 decide_unroll_stupid): Use new get_* accessors.
15174
15175 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
15176
15177 PR tree-optimization/20318
15178 * doc/extend.texi (returns_nonnull): New function attribute.
15179 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15180 attribute.
15181 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15182 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15183
15184 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
15185
15186 PR middle-end/58570
15187 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15188 false if both components are bitfields.
15189
15190 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15191
15192 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15193 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15194 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15195 * config/aarch64/aarch64.h
15196 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15197 * config/aarch64/aarch64-simd-builtins.def
15198 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15199
15200 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15201
15202 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15203
15204 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15205
15206 * config/aarch64/arm_neon.h (vdiv_f64): Added.
15207
15208 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15209
15210 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15211 (vneg_f64): New intrinsic.
15212 (vneg_s8): Asm replaced with C.
15213 (vneg_s16): Likewise.
15214 (vneg_s32): Likewise.
15215 (vneg_s64): New intrinsic.
15216 (vnegq_f32): Asm replaced with C.
15217 (vnegq_f64): Likewise.
15218 (vnegq_s8): Likewise.
15219 (vnegq_s16): Likewise.
15220 (vnegq_s32): Likewise.
15221 (vnegq_s64): Likewise.
15222
15223 2013-10-09 Renlin Li <Renlin.Li@arm.com>
15224
15225 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15226
15227 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15228
15229 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15230 packed stack special handling.
15231 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15232 back to fixed stack slots for FPRs saved due to stdarg.
15233
15234 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15235
15236 * config/s390/s390.c (s390_frame_info): Restructure function.
15237
15238 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15239
15240 * config/s390/s390.c (struct s390_frame_layout): New field
15241 gpr_save_slots.
15242 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15243 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15244 regs_ever_clobbered to char*.
15245 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15246 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
15247 (s390_register_info): Enable FPR save slots. Move/Copy some
15248 functionality into ...
15249 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15250 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15251 function.
15252 (s390_frame_info): Do gpr slot allocation here now. stdarg does
15253 not imply a stack frame.
15254 (s390_init_frame_layout): Remove variable clobbered_regs.
15255 (s390_update_register_info): Remove function.
15256 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15257 cannot be used for register renaming.
15258 (s390_hard_regno_scratch_ok): New function.
15259 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15260 (s390_initial_elimination_offset): Change offset calculation of
15261 the return address pointer.
15262 (save_gprs): Deal with only r6 being saved from the call-saved regs.
15263 (restore_gprs): Set frame related flag.
15264 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15265 (s390_emit_prologue): Call s390_register_info instead of
15266 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
15267 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15268 (s390_optimize_prologue): Call s390_optimize_register_info.
15269 Try to remove also FPR slot save/restore INSNs. Remove frame
15270 related flags from restore INSNs.
15271
15272 2013-10-08 DJ Delorie <dj@redhat.com>
15273
15274 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15275 (movhi): Likewise.
15276
15277 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15278 avoid conflict with the MI use of %c.
15279 * config/rl78/rl78-real.md: change %c to %C throughout.
15280 * config/rl78/rl78-virt.md: Likewise.
15281
15282 2013-10-08 Jan Hubicka <jh@suse.cz>
15283
15284 * config/i386/i386.c (ix86_option_override_internal): Switch
15285 to SSE math for -ffast-math when target ISA supports SSE2.
15286
15287 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
15288
15289 * tree-flow.h: Remove some prototypes.
15290 * tree.h: Remove some protypes, add a couple.
15291 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15292 using_eh_for_cleanups_p): Add interface routines for front ends.
15293 * tree-eh.h: New file. Add protoptyes.
15294 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15295 (add_stmt_to_eh_lp_fn): Make static.
15296 (lower_try_finally): Use new using_eh_for_cleanups_p.
15297 * emit-rtl.c: Include tree-eh.h.
15298 * gimple.h: Include tree-eh.h.
15299
15300 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
15301
15302 PR tree-optimization/58480
15303 * tree-vrp.c (infer_nonnull_range): New function.
15304 (infer_value_range): Call infer_nonnull_range.
15305
15306 2013-10-08 Dehao Chen <dehao@google.com>
15307
15308 PR tree-optimization/58619
15309 * tree-inline.c (copy_phis_for_bb): Combine location data
15310 only if non-null.
15311
15312 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15313
15314 PR target/58423
15315 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15316 RTX_FRAME_RELATED_P on INSN.
15317
15318 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15319
15320 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15321 (altivec_expand_vec_perm_const): Call it.
15322
15323 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15324
15325 * config/rs6000/vector.md (mov<mode>): Emit permuted move
15326 sequences for LE VSX loads and stores at expand time.
15327 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15328 prototype.
15329 * config/rs6000/rs6000.c (rs6000_const_vec): New.
15330 (rs6000_gen_le_vsx_permute): New.
15331 (rs6000_gen_le_vsx_load): New.
15332 (rs6000_gen_le_vsx_store): New.
15333 (rs6000_gen_le_vsx_move): New.
15334 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15335 (*vsx_le_perm_load_v4si): New.
15336 (*vsx_le_perm_load_v8hi): New.
15337 (*vsx_le_perm_load_v16qi): New.
15338 (*vsx_le_perm_store_v2di): New.
15339 (*vsx_le_perm_store_v4si): New.
15340 (*vsx_le_perm_store_v8hi): New.
15341 (*vsx_le_perm_store_v16qi): New.
15342 (*vsx_xxpermdi2_le_<mode>): New.
15343 (*vsx_xxpermdi4_le_<mode>): New.
15344 (*vsx_xxpermdi8_le_V8HI): New.
15345 (*vsx_xxpermdi16_le_V16QI): New.
15346 (*vsx_lxvd2x2_le_<mode>): New.
15347 (*vsx_lxvd2x4_le_<mode>): New.
15348 (*vsx_lxvd2x8_le_V8HI): New.
15349 (*vsx_lxvd2x16_le_V16QI): New.
15350 (*vsx_stxvd2x2_le_<mode>): New.
15351 (*vsx_stxvd2x4_le_<mode>): New.
15352 (*vsx_stxvd2x8_le_V8HI): New.
15353 (*vsx_stxvd2x16_le_V16QI): New.
15354
15355 2013-10-07 Renlin Li <Renlin.Li@arm.com>
15356
15357 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15358
15359 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15360
15361 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15362 loop to work also for 31bit ABI.
15363 Save the stack pointer for frame_size > 0.
15364
15365 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15366
15367 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15368 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15369 constraint letters from expanders.
15370 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15371 retry count to general_operand.
15372 ("tabort"): Give operand 0 a mode.
15373 ("tabort_1"): Add mode and constraint letter for operand 0.
15374 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15375
15376 2013-10-04 Jeff Law <law@redhat.com>
15377
15378 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15379
15380 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15381 out of ...
15382 (thread_across_edge): Here. Call it.
15383
15384 2013-10-04 Cary Coutant <ccoutant@google.com>
15385
15386 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15387 discarding a location list expression (or a piece of one).
15388
15389 2013-10-03 Jan Hubicka <jh@suse.cz>
15390
15391 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15392 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
15393 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15394
15395 2013-10-03 Jan Hubicka <jh@suse.cz>
15396
15397 * config/i386/i386.c (ix86_option_override_internal): Do not enable
15398 accumulate-outgoing-args when producing unwind info.
15399
15400 2013-10-03 Wei Mi <wmi@google.com>
15401
15402 * lra-constraints.c (insert_move_for_subreg): New function
15403 extracted from simplify_operand_subreg.
15404 (simplify_operand_subreg): Add reload for paradoxical subreg.
15405
15406 2013-10-03 Rong Xu <xur@google.com>
15407
15408 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15409 the candidate of builtin_expect such that we should fix the
15410 size/time estimation.
15411 (estimate_function_body_sizes): Do the acutally size/time fix-up
15412 for builtin_expect.
15413
15414 2013-10-03 Rong Xu <xur@google.com>
15415
15416 * predict.c (tree_predict_by_opcode): Get the probability
15417 for builtin_expect from param builtin_expect_probability.
15418 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15419 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15420 * doc/invoke.texi: Add documentation for builtin-expect-probability.
15421
15422 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
15423
15424 PR c++/19476
15425 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15426 * calls.c (alloca_call_p): Use get_callee_fndecl.
15427 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15428 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15429 Likewise.
15430 (vrp_visit_stmt): Remove duplicated code.
15431
15432 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15433
15434 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15435 ceildf2, btruncdf2, instead of vsx_* name.
15436
15437 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15438 iterators to only do V2DF and V4SF here. Move the DF code to
15439 rs6000.md where it is combined with SF mode. Replace <VSv> with
15440 just 'v' since only vector operations are handled with these insns
15441 after moving the DF support to rs6000.md.
15442 (vsx_sub<mode>3): Likewise.
15443 (vsx_mul<mode>3): Likewise.
15444 (vsx_div<mode>3): Likewise.
15445 (vsx_fre<mode>2): Likewise.
15446 (vsx_neg<mode>2): Likewise.
15447 (vsx_abs<mode>2): Likewise.
15448 (vsx_nabs<mode>2): Likewise.
15449 (vsx_smax<mode>3): Likewise.
15450 (vsx_smin<mode>3): Likewise.
15451 (vsx_sqrt<mode>2): Likewise.
15452 (vsx_rsqrte<mode>2): Likewise.
15453 (vsx_fms<mode>4): Likewise.
15454 (vsx_nfma<mode>4): Likewise.
15455 (vsx_copysign<mode>3): Likewise.
15456 (vsx_btrunc<mode>2): Likewise.
15457 (vsx_floor<mode>2): Likewise.
15458 (vsx_ceil<mode>2): Likewise.
15459 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15460 (vsx_sminsf3): Likewise.
15461 (vsx_fmadf4): Likewise.
15462 (vsx_fmsdf4): Likewise.
15463 (vsx_nfmadf4): Likewise.
15464 (vsx_nfmsdf4): Likewise.
15465 (vsx_cmpdf_internal1): Likewise.
15466
15467 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15468 simpler to select whether a target has SPE or traditional floating
15469 point support in iterators.
15470 (TARGET_DF_SPE): Likewise.
15471 (TARGET_SF_FPR): Likewise.
15472 (TARGET_DF_FPR): Likewise.
15473 (TARGET_SF_INSN): Macros to say whether floating point support
15474 exists for a given operation for expanders.
15475 (TARGET_DF_INSN): Likewise.
15476
15477 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15478 combining of SF/DF mode operations, using both traditional and VSX
15479 registers.
15480 (Fvsx): Likewise.
15481 (Ff): Likewise.
15482 (Fv): Likewise.
15483 (Fs): Likewise.
15484 (Ffre): Likewise.
15485 (FFRE): Likewise.
15486 (abs<mode>2): Combine SF/DF modes using traditional floating point
15487 instructions. Add support for using the upper DF registers with
15488 VSX support, and SF registers with power8-vector support. Update
15489 expanders for operations supported by both the SPE and traditional
15490 floating point units.
15491 (abs<mode>2_fpr): Likewise.
15492 (nabs<mode>2): Likewise.
15493 (nabs<mode>2_fpr): Likewise.
15494 (neg<mode>2): Likewise.
15495 (neg<mode>2_fpr): Likewise.
15496 (add<mode>3): Likewise.
15497 (add<mode>3_fpr): Likewise.
15498 (sub<mode>3): Likewise.
15499 (sub<mode>3_fpr): Likewise.
15500 (mul<mode>3): Likewise.
15501 (mul<mode>3_fpr): Likewise.
15502 (div<mode>3): Likewise.
15503 (div<mode>3_fpr): Likewise.
15504 (sqrt<mode>3): Likewise.
15505 (sqrt<mode>3_fpr): Likewise.
15506 (fre<Fs>): Likewise.
15507 (rsqrt<mode>2): Likewise.
15508 (cmp<mode>_fpr): Likewise.
15509 (smax<mode>3): Likewise.
15510 (smin<mode>3): Likewise.
15511 (smax<mode>3_vsx): Likewise.
15512 (smin<mode>3_vsx): Likewise.
15513 (negsf2): Delete SF operations that are merged with DF.
15514 (abssf2): Likewise.
15515 (addsf3): Likewise.
15516 (subsf3): Likewise.
15517 (mulsf3): Likewise.
15518 (divsf3): Likewise.
15519 (fres): Likewise.
15520 (fmasf4_fpr): Likewise.
15521 (fmssf4_fpr): Likewise.
15522 (nfmasf4_fpr): Likewise.
15523 (nfmssf4_fpr): Likewise.
15524 (sqrtsf2): Likewise.
15525 (rsqrtsf_internal1): Likewise.
15526 (smaxsf3): Likewise.
15527 (sminsf3): Likewise.
15528 (cmpsf_internal1): Likewise.
15529 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15530 (negdf2): Delete DF operations that are merged with SF.
15531 (absdf2): Likewise.
15532 (nabsdf2): Likewise.
15533 (adddf3): Likewise.
15534 (subdf3): Likewise.
15535 (muldf3): Likewise.
15536 (divdf3): Likewise.
15537 (fred): Likewise.
15538 (rsqrtdf_internal1): Likewise.
15539 (fmadf4_fpr): Likewise.
15540 (fmsdf4_fpr): Likewise.
15541 (nfmadf4_fpr): Likewise.
15542 (nfmsdf4_fpr): Likewise.
15543 (sqrtdf2): Likewise.
15544 (smaxdf3): Likewise.
15545 (smindf3): Likewise.
15546 (cmpdf_internal1): Likewise.
15547 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15548 (btrunc<mode>2): Delete separate expander, and combine with the
15549 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
15550 (btrunc<mode>2_fpr): Likewise.
15551 (ceil<mode>2): Likewise.
15552 (ceil<mode>2_fpr): Likewise.
15553 (floor<mode>2): Likewise.
15554 (floor<mode>2_fpr): Likewise.
15555 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15556 Add support for using the upper registers with VSX and
15557 power8-vector. Move insns to be closer to the define_expands. On
15558 VSX systems, prefer the traditional form of FMA over the VSX
15559 version, since the traditional form allows the target not to
15560 overlap with the inputs.
15561 (fms<mode>4_fpr): Likewise.
15562 (nfma<mode>4_fpr): Likewise.
15563 (nfms<mode>4_fpr): Likewise.
15564
15565 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15566 Richard Earnshaw <richard.earnshaw@arm.com>
15567
15568 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15569 (struct mult_cost_table): Likewise.
15570 (struct mem_cost_table): Likewise.
15571 (struct fp_cost_table): Likewise.
15572 (struct vector_cost_table): Likewise.
15573 (cpu_cost_table): Likewise.
15574 * config/arm/arm.opt (mold-rts-costs): New option.
15575 (mnew-generic-costs): Likewise.
15576 * config/arm/arm.c (generic_extra_costs): New table.
15577 (cortexa15_extra_costs): Likewise.
15578 (arm_slowmul_tune): Use NULL as new costs.
15579 (arm_fastmul_tune): Likewise.
15580 (arm_strongarm_tune): Likewise.
15581 (arm_xscale_tune): Likewise.
15582 (arm_9e_tune): Likewise.
15583 (arm_v6t2_tune): Likewise.
15584 (arm_cortex_a5_tune): Likewise.
15585 (arm_cortex_a9_tune): Likewise.
15586 (arm_v6m_tune): Likewise.
15587 (arm_fa726te_tune): Likewise.
15588 (arm_cortex_a15_tune): Use cortex15_extra_costs.
15589 (arm_cortex_tune): Use generict_extra_costs.
15590 (shifter_op_p): New function.
15591 (arm_unspec_cost): Likewise.
15592 (LIBCALL_COST): Define.
15593 (arm_new_rtx_costs): New function.
15594 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15595 table is available. Use old costs otherwise unless mnew-generic-costs
15596 is specified.
15597 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15598 (cpu_cost_table): Declare.
15599
15600 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15601
15602 PR target/58460
15603 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15604 (*subs_mul_imm_<mode>)
15605 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15606 (*sub_<shift>_<mode>)
15607 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15608 Remove k constraint.
15609
15610 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15611
15612 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15613 code.
15614 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15615
15616 2013-10-02 Teresa Johnson <tejohnson@google.com>
15617
15618 * predict.c (probably_never_executed): New function.
15619 (probably_never_executed_bb_p): Invoke probably_never_executed.
15620 (probably_never_executed_edge_p): Ditto.
15621 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15622 Treat profile insanities conservatively.
15623
15624 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15625
15626 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15627
15628 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15629
15630 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15631 use it. Use smaller increase for scratch. Don't increase reject
15632 for early clobber scratch.
15633 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15634 setting eliminated regs except setting fp from hfp.
15635 (lra_eliminate): Check lra_insn_recog_data on NULL.
15636
15637 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15638
15639 PR target/58587
15640 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15641 setting -mvsx-timode by default until the underlying problem is fixed.
15642 (RS6000_CPU, power7 defaults): Likewise.
15643
15644 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15645
15646 * config/x-linux (host-linux.o): Remove header dependencies.
15647 Use $(COMPILE) and $(POSTCOMPILE).
15648 * config/t-linux-android (linux-android.o): Ditto.
15649
15650 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15651
15652 * Makefile.in (expmed.o-warn): Remove.
15653
15654 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15655
15656 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15657 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15658
15659 2013-10-02 Teresa Johnson <tejohnson@google.com>
15660
15661 * dojump.c (do_jump_1): Divide probability between
15662 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15663
15664 2013-10-02 Tom Tromey <tromey@redhat.com>
15665
15666 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15667
15668 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15669
15670 * tree-flow.h: Remove some prototypes.
15671 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15672 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15673 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15674 mark_virtual_phi_result_for_renaming): Relocate here.
15675 * tree-into-ssa.h: Add prototypes.
15676 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15677 single_pred_before_succ_order.
15678 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15679 (nonfreeing_call_p) Move to gimple.c.
15680 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15681 tree-ssa-phiopt.c.
15682 * basic-block.h (single_pred_before_succ_order): Add prototype.
15683 * gimple.c (nonfreeing_call_p): Relocate here.
15684 * gimple.h: Add prototype.
15685 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15686 * tree-ssa-dom.h: New file. Relocate prototypes here.
15687 * tree-ssa.h: Include tree-ssa-dom.h.
15688
15689 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15690
15691 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15692 Use $(COMPILE) and $(POSTCOMPILE).
15693
15694 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15695
15696 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15697
15698 * tree-flow.h: Remove some prototypes.
15699 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15700 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15701 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15702 propagate_tree_value*): Move from here to...
15703 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15704 propagate_tree_value*): Relocate here.
15705 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15706 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15707 * gimple-fold.c: Remove gimple-fold.h from include list.
15708 * tree-vrp.c: Remove gimple-fold.h from include list.
15709 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15710 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15711 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15712 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15713 * sese.c: Add tree-ssa-propagate.h to include list.
15714
15715 2013-10-02 Richard Biener <rguenther@suse.de>
15716
15717 * tree-loop-distribution.c: Include tree-vectorizer.h for
15718 find_loop_location.
15719 (enum partition_kind): Remove PKIND_REDUCTION.
15720 (struct partition_s): Remove has_writes member, add reduction_p member.
15721 (partition_alloc): Adjust.
15722 (partition_builtin_p): Likewise.
15723 (partition_has_writes): Remove.
15724 (partition_reduction_p): New function.
15725 (partition_merge_into): Likewise.
15726 (generate_code_for_partition): Commonize builtin partition
15727 handling tail.
15728 (rdg_cannot_recompute_vertex_p): Remove.
15729 (already_processed_vertex_p): Likewise.
15730 (rdg_flag_vertex): Do not set has_writes.
15731 (classify_partition): Adjust.
15732 (rdg_build_partitions): Do not set has_writes, treat all
15733 partitions as useful.
15734 (distribute_loop): Record number of library calls generated. Adjust.
15735 (tree_loop_distribution): Report number of loops and library
15736 calls generated as opt-info.
15737
15738 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15739
15740 * tree-flow.h: Include new .h files. Move prototypes.
15741 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15742 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15743 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15744 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15745 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15746 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15747 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15748 * tree.h (get_ref_base_and_extent): Move prototype out.
15749 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15750 tree-dfa.h.
15751 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15752 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15753 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15754 * tree-scalar-evolution.c: Include tree.h.
15755 * sese.c: Include tree.h.
15756 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15757 * dwarf2out.c: Include tree-dfa.h.
15758 * tree-chrec.c: Include tree.h.
15759 * tree-data-ref.c: Include tree.h.
15760
15761 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15762
15763 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15764 Fix whitespace.
15765
15766 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15767
15768 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15769 Use $(COMPILE) and $(POSTCOMPILE).
15770 (sol2-cxx.o): Likewise.
15771 (sol2-stubs.o): Likewise.
15772 (sol2.o): Likewise.
15773 * config/x-solaris (host-solaris.o): Likewise.
15774
15775 * config/sparc/t-sparc (sparc.o): Remove.
15776 (sparc-c.o): Remove header dependencies.
15777 Use $(COMPILE) and $(POSTCOMPILE).
15778 * config/sparc/x-sparc: Likewise.
15779
15780 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15781
15782 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15783 * config/arc/arc700.md: Likewise.
15784 * config/arc/arc-modes.def: Likewise.
15785 * config/arc/arc-simd.h: Likewise.
15786 * config/arc/t-arc-uClibc: Likewise.
15787 * config/arc/t-arc-newlib: Likewise.
15788
15789 2013-10-02 Renlin Li <renlin.li@arm.com>
15790
15791 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15792 plus_constant.
15793 (aarch64_expand_epilogue): Likewise.
15794
15795 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15796 Yufeng Zhang <yufeng.zhang@arm.com>
15797
15798 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15799 declaration.
15800 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15801 'base_in' represent a conversion and legal_cast_p_1 holds; set
15802 'base_in' with the returned value from get_unwidened.
15803
15804 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15805
15806 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15807 plus_constant is not used.
15808
15809 2013-10-01 Wei Mi <wmi@google.com>
15810
15811 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15812 * config/i386/i386.md: Add define_peephole2 to
15813 break partial reg stall for cvtss2sd/cvtsd2ss.
15814
15815 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15816
15817 * config/arc/arc.c (pass_arc_ifcvt::clone):
15818 Update for ctxt_ -> m_ctxt change.
15819
15820 2013-10-01 Jeff Law <law@redhat.com>
15821
15822 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15823 outgoing_edge and intermediate_edge fields. Instead store the path.
15824 (redirection_data::hash): Hash on the last edge's destination index.
15825 (redirection_data::equal): Check the entire thread path.
15826 (lookup_redirectio_data): Corresponding changes.
15827 (create_edge_and_update_destination_phis): Likewise.
15828 (thread_single_edge): Likewise.
15829
15830 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15831 Diego Novillo <dnovillo@google.com>
15832
15833 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15834 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15835 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15836 versions of these patterns.
15837
15838 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15839 (__builtin_arc_aligned): Likewise.
15840
15841 * config/arc/arc.md: Expand adc_0 comment stating the intended
15842 purpose and why it isn't ready.
15843 Replace commented out call_value_via_label_mixed with a
15844 plain comment about bl_s.
15845
15846 * config/arc/arc.c (stdio.h): Don't include directly.
15847 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15848 Remove if (1) condition.
15849 (arc_encode_section_info): Fix comment.
15850
15851 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15852
15853 * config/arc/arc.c (arc_conditional_register_usage):
15854 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15855 Also set reg_alloc_order for DMA config regs.
15856
15857 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15858 Jeremy Bennett <jeremy.bennett@embecosm.com>
15859
15860 * doc/install.texi (--with-cpu): Mention ARC.
15861 (arc-*-elf32): New paragraph.
15862 (arc-linux-uclibc): Likewise.
15863 * doc/md.texi (Machine Constraints): Add ARC part.
15864 * doc/invoke.texi: (menu): Add ARC Options.
15865 (Machine Dependent Options) <ARC Options>: Add synopsis.
15866 (node ARC Options): Add.
15867 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15868 (ARC Built-in Functions): New section defining
15869 generic ARC built-in functions.
15870 (ARC SIMD Built-in Functions): New section defining SIMD specific
15871 built-in functions.
15872 (Declaring Attributes of Functions): Extended
15873 description of short_call and long_call attributes for ARC and
15874 added index entries.
15875
15876 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15877 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15878 Joern Rennecke <joern.rennecke@embecosm.com>
15879 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15880 Brendan Kehoe <brendan@zen.org>
15881 Michael Eager <eager@eagercon.com>
15882 Simon Cook <simon.cook@embecosm.com>
15883 Jeremy Bennett <jeremy.bennett@embecosm.com>
15884
15885 * config/arc, common/config/arc: New directories.
15886
15887 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15888 Brendan Kehoe <brendan@zen.org>
15889 Simon Cook <simon.cook@embecosm.com>
15890
15891 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15892
15893 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15894
15895 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15896 * tree-ssa-coalesce.h: New. Move prototype to here.
15897 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15898 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15899 (gimple_can_coalesce_p): Move to...
15900 * gimple.c (gimple_can_coalesce_p): Here.
15901
15902 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15903
15904 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15905 (dump_decl_set): Move to gimple.c.
15906 * gimple.h: Don't include tree-ssa-operands.h.
15907 (dump_decl_set): Add prototype.
15908 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15909 Move to gimple-ssa.h.
15910 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15911 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15912 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15913 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15914 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15915 than PHI_ARG_DEF.
15916 (dump_decl_set): Relocate here.
15917 * gimple-ssa.h: New file.
15918 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15919 Relocate from gimple.h.
15920 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15921 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15922 swap_tree_operands and remove non-ssa path.
15923 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15924 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15925 swap_ssa_operands.
15926 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15927 vect_is_simple_reduction_1): Use swap_ssa_operands.
15928 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15929 (enum need_phi_state): Move to tree-into-ssa.c.
15930 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15931 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15932 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15933 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15934 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15935 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15936 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15937 num_imm_uses): Move to ssa-iterators.h.
15938 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15939 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15940 tree-phinodes.h.
15941 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15942 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15943 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15944 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15945 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15946 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15947 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15948 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15949 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15950 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15951 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15952 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15953 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15954 (set_phi_nodes): Move to tree-phinodes.h.
15955 * tree-ssa-operands.h (enum ssa_op_iter_type,
15956 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15957 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15958 (dump_decl_set): Remove prototype.
15959 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15960 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15961 (set_phi_nodes): Relocate from tree-flow-inline.h.
15962 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15963 tree-flow-inline.h
15964 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15965 include list. Temporarily add gimple.h to include list.
15966 * ssa-iterators.h: New file.
15967 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15968 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15969 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15970 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15971 Relocate from tree-ssa-operands.h.
15972 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15973 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15974 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15975 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15976 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15977 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15978 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15979 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15980 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15981 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15982 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15983 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15984 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15985 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15986 Relocate from tree-flow-inline.h.
15987 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15988
15989 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15990
15991 * aarch64-simd.md
15992 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15993 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15994 Insert '\t' to output template.
15995 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15996 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15997 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15998 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15999
16000 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
16001
16002 * doc/install.texi (Host/target specific installation notes for GCC):
16003 Put @anchor before @heading.
16004 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
16005 Use @email for email addresses.
16006
16007 2013-10-01 Jeff Law <law@redhat.com>
16008
16009 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
16010 a vec. Only delete the path if we create one without successfully
16011 registering a jump thread.
16012 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
16013 as a pointer.
16014 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
16015 (paths): New vector of jump threading paths.
16016 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
16017 (THREAD_PATH): New accessor macro for the entire thread path.
16018 (lookup_redirection_data): Get intermediate and final outgoing edge
16019 from the thread path.
16020 (create_edge_and_update_destination_phis): Copy the threading path.
16021 (ssa_fix_duplicate_block_edges): Get edges and block types from the
16022 jump threading path.
16023 (ssa_redirect_edges): Get edges and block types from the jump threading
16024 path. Free the path vector.
16025 (thread_block): Get edges from the jump threading path. Look at the
16026 entire path to see if we thread to a loop exit. If we cancel a jump
16027 thread request, then free the path vector.
16028 (thread_single_edge): Get edges and block types from the jump threading
16029 path. Free the path vector.
16030 (thread_through_loop_header): Get edges and block types from the jump
16031 threading path. Free the path vector.
16032 (mark_threaded_blocks): Iterate over the vector of paths and store
16033 the path on the appropriate edge. Get edges and block types from the
16034 jump threading path.
16035 (mark_threaded_blocks): Get edges and block types from the jump
16036 threading path. Free the path vector.
16037 (thread_through_all_blocks): Use the vector of paths rather than
16038 a vector of 3-edge sets.
16039 (register_jump_thread): Accept pointer to a path vector rather
16040 than the path vector itself. Store the path vector for later use.
16041 Simplify.
16042
16043 2013-10-01 Jakub Jelinek <jakub@redhat.com>
16044 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16045
16046 PR target/58574
16047 * config/s390/s390.c (s390_split_branches): Modify check for table
16048 jump insns.
16049 (s390_chunkify_start): Rearrange table jump insn check in order to
16050 deal with compare and branch insns correctly.
16051
16052 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
16053
16054 PR target/58578
16055 Revert
16056 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
16057 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
16058 define_insn_and_split.
16059 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
16060 (shiftsi3_compare): New pattern.
16061 (rrx): New pattern.
16062 * config/arm/unspecs.md (UNSPEC_RRX): New.
16063
16064 2013-10-01 Alan Modra <amodra@gmail.com>
16065
16066 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
16067 casing inout operands.
16068
16069 2013-10-01 Richard Biener <rguenther@suse.de>
16070
16071 PR tree-optimization/58553
16072 * tree-loop-distribution.c (struct partition_s): Add niter member.
16073 (classify_partition): Populate niter member for the partition
16074 and properly identify whether the relevant store happens before
16075 or after the loop exit.
16076 (generate_memset_builtin): Use niter member from the partition.
16077 (generate_memcpy_builtin): Likewise.
16078
16079 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
16080
16081 * vec.h (vec_prefix, vec): Prefix member names with "m_".
16082 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
16083
16084 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
16085
16086 * basic-block.h (edge_list): Prefix member names with "m_".
16087 * context.h (context): Likewise.
16088 * domwalk.h (dom_walker): Likewise.
16089 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
16090 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
16091 * hash-table.h (hash_table): Likewise.
16092 * machmode.h (bit_field_mode_iterator): Likewise.
16093 * pass_manager.h (pass_list): Likewise.
16094 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
16095 * tree-pass.h (pass_data): Likewise.
16096 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
16097 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
16098 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
16099 * asan.c (pass_data_asan): Update accordingly.
16100 * cfganal.c (control_dependences::find_control_dependence): Likewise.
16101 (control_dependences::control_dependences): Likewise.
16102 (control_dependences::~control_dependences): Likewise.
16103 (control_dependences::~control_dependences): Likewise.
16104 (control_dependences::get_edges_dependent_on): Likewise.
16105 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
16106 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
16107 * context.c (gcc::context::context): Likewise.
16108 * cprop.c (pass_rtl_cprop::clone): Likewise.
16109 * domwalk.c (dom_walker::walk): Likewise.
16110 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
16111 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
16112 * mode-switching.c (pass_mode_switching::clone): Likewise.
16113 * passes.c (opt_pass::opt_pass): Likewise.
16114 (pass_manager::pass_manager): Likewise.
16115 * predict.c (pass_strip_predict_hints::clone): Likewise.
16116 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
16117 (pass_split_all_insns::clone): Likewise.
16118 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
16119 Likewise.
16120 (bit_field_mode_iterator::next_mode): Likewise.
16121 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
16122 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
16123 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
16124 * tree-complex.c (pass_lower_complex::clone): Likewise.
16125 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
16126 * tree-object-size.c (pass_object_sizes::clone): Likewise.
16127 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
16128 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
16129 (pass_fold_builtins::clone): Likewise.
16130 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
16131 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
16132 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
16133 (pass_cd_dce::clone): Likewise.
16134 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
16135 (pass_phi_only_cprop::clone): Likewise.
16136 * tree-ssa-dse.c (pass_dse::clone): Likewise.
16137 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
16138 * tree-ssa-loop.c (pass_lim::clone): Likewise.
16139 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
16140 * tree-ssa-pre.c (pass_fre::clone): Likewise.
16141 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
16142 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
16143 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
16144 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16145 * tree-vrp.c (pass_vrp::clone): Likewise.
16146 * tsan.c (pass_tsan::clone): Likewise.
16147
16148 2013-09-30 Jakub Jelinek <jakub@redhat.com>
16149
16150 PR middle-end/58564
16151 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16152 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16153
16154 PR middle-end/58564
16155 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16156 optimization, punt if sign_bit_p looked through any zero extension.
16157
16158 2013-09-30 Teresa Johnson <tejohnson@google.com>
16159
16160 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16161 Update redirected out edge count in joiner case.
16162 (ssa_redirect_edges): Common the joiner and non-joiner cases
16163 so that joiner case gets profile updates.
16164
16165 2013-09-30 Richard Biener <rguenther@suse.de>
16166
16167 PR tree-optimization/58554
16168 * tree-loop-distribution.c (classify_partition): Require
16169 unconditionally executed stores for memcpy and memset recognition.
16170 (tree_loop_distribution): Calculate dominance info.
16171
16172 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16173
16174 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16175 (NO_PROFILE_COUNTERS): Likewise.
16176 (PROFILE_HOOK): Likewise.
16177 (FUNCTION_PROFILER): Likewise.
16178 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16179
16180 2013-09-30 Iain Sandoe <iain@codesourcery.com>
16181
16182 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16183 calls and defines in TARGET_MACHO conditional.
16184 (load_macho_picbase_di): Likewise.
16185 (reload_macho_picbase): Likewise.
16186 (reload_macho_picbase_si): Likewise.
16187 (reload_macho_picbase_di): Likewise.
16188 (nonlocal_goto_receiver): Likewise.
16189
16190 2013-09-30 Nick Clifton <nickc@redhat.com>
16191
16192 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
16193 that use the MSP430X ISA.
16194 (msp430_option_override): Scan -mmcu command line option for any
16195 MCU name that supports the MSP430X ISA.
16196 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16197 -mmcu options which enable the MSP430X ISA.
16198
16199 2013-09-30 Richard Biener <rguenther@suse.de>
16200
16201 PR middle-end/58532
16202 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16203 before looking for setjmp-like calls.
16204
16205 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16206
16207 PR target/10901
16208 * config/darwin-protos.h (machopic_get_function_picbase): New.
16209 * config/darwin.c (machopic_get_function_picbase): New.
16210 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16211 label for a new func. (load_macho_picbase_di): Likewise.
16212 (reload_macho_picbase): New expand.
16213 (reload_macho_picbase_si): New insn.
16214 (reload_macho_picbase_di): New insn.
16215 (nonlocal_goto_receiver): New define and split.
16216 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16217 (unspecv enum): Add UNSPECV_NLGR.
16218
16219 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16220
16221 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16222 that altivec registers are correctly sized on Darwin.
16223
16224 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16225
16226 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16227 darwin-driver.o): Use COMPILE and POSTCOMPILE.
16228 * config/x-darwin (host-darwin.o): Likewise.
16229 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16230 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16231 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16232
16233 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
16234
16235 * doc/invoke.texi: Fix usage of @tie{} command.
16236
16237 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
16238
16239 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16240
16241 2013-09-28 Jan Hubicka <jh@suse.cz>
16242
16243 * config/i386/x86-tune.def: Add documentation for each of the options;
16244 add whitespace.
16245
16246 2013-09-28 Jan Hubicka <jh@suse.cz>
16247
16248 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16249 generic.
16250 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16251 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16252 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16253 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16254 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16255
16256 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
16257
16258 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16259 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16260 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16261 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16262 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16263 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16264 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16265 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16266 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16267 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16268 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16269 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16270 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16271 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16272 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16273 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16274 gimple.h, godump.c, graphite-clast-to-gimple.c,
16275 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16276 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16277 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16278 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16279 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16280 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16281 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16282 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16283 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16284 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16285 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16286 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16287 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16288 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16289 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16290 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16291 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16292 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16293 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16294 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16295 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16296 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16297 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16298 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16299 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16300 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16301 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16302 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16303 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16304 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16305 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16306 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16307 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16308 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16309 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16310 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16311 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16312 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16313 whitespace before "(".
16314
16315 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
16316
16317 * expr.h (extract_bit_field): Remove packedp parameter.
16318 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16319 from forward declaration.
16320 (store_split_bit_field): Remove packedp arg from calls to
16321 extract_fixed_bit_field.
16322 (extract_bit_field_1): Remove packedp parameter and packedp
16323 argument from recursive calls and calls to extract_fixed_bit_field.
16324 (extract_bit_field): Remove packedp parameter and corresponding
16325 arg to extract_bit_field_1.
16326 (extract_fixed_bit_field): Remove packedp parameter. Remove code
16327 to issue warnings.
16328 (extract_split_bit_field): Remove packedp arg from call to
16329 extract_fixed_bit_field.
16330 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16331 (copy_blkmode_from_reg): Likewise.
16332 (copy_blkmode_to_reg): Likewise.
16333 (read_complex_part): Likewise.
16334 (store_field): Likewise.
16335 (expand_expr_real_1): Likewise.
16336 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16337 to extract_bit_field.
16338 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16339 call to extract_bit_field.
16340 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16341 call to extract_bit_field.
16342 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16343 and special packedp behavior from -fstrict-volatile-bitfields
16344 documentation.
16345
16346 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16347
16348 * lra-eliminations.c (init_elim_table): Guard value_p.
16349
16350 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16351
16352 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16353 DFmode, DImode, and SFmode in the upper VSX registers based on the
16354 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
16355 if -mpower8-vector. Combine -mvsx-timode handling with the rest
16356 of the VSX register handling.
16357
16358 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16359 (f32_sv): Likewise.
16360 (zero_extendsidi2_lfiwzx): Add support for loading into the
16361 Altivec registers with -mpower8-vector. Use wu/wv constraints to
16362 only do VSX memory options on Altivec registers.
16363 (extendsidi2_lfiwax): Likewise.
16364 (extendsfdf2_fpr): Likewise.
16365 (mov<mode>_hardfloat, SF/SD modes): Likewise.
16366 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16367 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16368 (movdi_internal64): Likewise.
16369
16370 2013-09-27 Xinliang David Li <davidxl@google.com>
16371
16372 * opts.c (finish_options): Adjust parameters
16373 according to vect cost model.
16374 (common_handle_option): Set dynamic vect cost
16375 model for FDO.
16376 targhooks.c (default_add_stmt_cost): Compute stmt cost
16377 unconditionally.
16378 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16379 Use helper function.
16380 * tree-vectorizer.h (unlimited_cost_model): New function.
16381 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16382 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16383 function.
16384 (vect_enhance_data_refs_alignment): Ditto.
16385 * flag-types.h: New enum.
16386 * common/config/i386/i386-common.c (ix86_option_init_struct):
16387 No need to initialize vect_cost_model flag.
16388 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16389 unconditionally.
16390
16391 2013-09-27 Diego Novillo <dnovillo@google.com>
16392
16393 * gimple.h (enum ssa_mode): Remove.
16394
16395 2013-09-27 Paulo Matos <pmatos@broadcom.com>
16396
16397 * cfgloop.h (number_of_loops): Fix typo in check for null.
16398
16399 2013-09-27 Jakub Jelinek <jakub@redhat.com>
16400
16401 PR middle-end/58551
16402 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16403 are children of outermost saved_cfun's loop, and set it up to
16404 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
16405 if loop != loop0 and SESE region contains bbs that belong to loop0.
16406
16407 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16408
16409 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16410 (binary_scale_code_p, get_base_term, get_index_term): New functions.
16411 (set_address_segment, set_address_base, set_address_index)
16412 (set_address_disp): Accept the argument unconditionally.
16413 (baseness): Remove must_be_base_p and must_be_index_p checks.
16414 (decompose_normal_address): Classify as much as possible in the
16415 main loop.
16416
16417 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16418
16419 * cse.c (count_reg_usage): Handle INT_LIST.
16420 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16421 * reginfo.c (reg_scan_mark_refs): Likewise.
16422 * reload1.c (eliminate_regs_1): Likewise.
16423
16424 2013-09-27 Iain Sandoe <iain@codesourcery.com>
16425
16426 PR middle-end/58547
16427 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16428 signed.
16429
16430 2013-09-27 Richard Biener <rguenther@suse.de>
16431
16432 PR tree-optimization/58459
16433 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16434 restriction not propagating into loops.
16435
16436 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
16437
16438 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16439 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16440 * doc/tree-ssa.texi (Walking use-def chains): Delete.
16441
16442 2013-09-26 Richard Biener <rguenther@suse.de>
16443
16444 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16445
16446 2013-09-26 Richard Biener <rguenther@suse.de>
16447
16448 * alias.h (component_uses_parent_alias_set): Rename to ...
16449 (component_uses_parent_alias_set_from): ... this.
16450 * alias.c (component_uses_parent_alias_set): Rename to ...
16451 (component_uses_parent_alias_set_from): ... this and return
16452 the desired parent.
16453 (reference_alias_ptr_type_1): Use the result from
16454 component_uses_parent_alias_set_from instead of stripping
16455 components one at a time.
16456 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16457
16458 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16459
16460 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16461 Move prototypes to...
16462 * tree-ssa-ter.h: New File. Move prototypes here.
16463 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16464 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16465 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
16466 from is_replaceable_p.
16467 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16468 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
16469 (process_replaceable): Use ter_is_replaceable_p.
16470 (find_replaceable_in_bb): Use ter_is_replaceable_p.
16471 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
16472 newly refactored ssa_is_replaceable_p.
16473 * cfgexpand.c: Include tree-outof-ssa.h.
16474 * ssaexpand.h: Delete.
16475
16476 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16477
16478 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16479 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16480 tree-ssa.c
16481 (create_gimple_tmp): Delete.
16482 (get_expr_type, build_assign, build_type_cast): Move to...
16483 * gimple-builder.c: New File.
16484 (get_expr_type): Relocate from gimple.c.
16485 (build_assign, build_type_cast): Change to only create ssanames.
16486 * gimple.h: Move prototypes to...
16487 * gimple-builder.h: New File. Here.
16488 * tree-ssa.h: And here.
16489 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16490 count_uses_and_derefs): Relocate from gimple.c.
16491 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16492 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16493 * tree-ssa-math-opts (execute_cse_reciprocals): Use
16494 gimple_replace_ssa_lhs.
16495 * asan.c: Include gimple-builder.h.
16496 * Makefile.in: Add gimple-builder.o.
16497
16498 2013-09-26 Richard Biener <rguenther@suse.de>
16499
16500 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16501 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16502 (loe_visit_block): Use gcc_checking_assert.
16503 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16504 gimple_assign_ssa_name_copy_p.
16505 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16506 change.
16507
16508 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
16509
16510 * config/rs6000/t-rs6000 (rs6000.o): Remove.
16511 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16512
16513 2013-09-26 Richard Biener <rguenther@suse.de>
16514
16515 PR tree-optimization/58539
16516 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16517 the fact that debug statements are not taking part in loop-closed
16518 SSA construction.
16519
16520 2013-09-26 Nick Clifton <nickc@redhat.com>
16521
16522 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16523 time warning message.
16524 (msp430_print_operand_raw): Delete unused letter parameter.
16525 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16526 (msp430_print_operand_address): New function.
16527 (msp430_print_operand): Move address printing code from here to
16528 new function.
16529 * config/msp430/msp430.md (movsipsi2): Add comment in generated
16530 assembler.
16531 (zero_extendpsisi2): Likewise.
16532 (extendpsisi2): New pattern.
16533 (andneghi3): New pattern.
16534
16535 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
16536
16537 * config/aarch64/aarch64.opt (mlra): New option.
16538 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16539 (TARGET_LRA_P): Define.
16540
16541 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
16542
16543 * expr.c (expand_assignment): Remove obsolete comment.
16544
16545 2013-09-25 Jeff Law <law@redhat.com>
16546
16547 * tree-flow.h (thread_through_all_blocks): Prototype moved into
16548 tree-ssa-threadupdate.h.
16549 (register_jump_thread): Similarly.
16550 * tree-ssa-threadupdate.h: New header file.
16551 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16552 * tree-vrp.c: Likewise.
16553 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16554 (thread_around_empty_blocks): Change type of path vector argument to
16555 an edge,type pair from just an edge. Initialize both elements when
16556 appending to a jump threading path. Tweak references to elements
16557 appropriately.
16558 (thread_across_edge): Similarly. Release memory for the elements
16559 as needed.
16560 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16561 (dump_jump_thread_path): New function broken out from
16562 register_jump_thread.
16563 (register_jump_thread): Use dump_jump_thread_path. Change type of
16564 path vector entries. Search the path for NULL edges and dump
16565 the path if one is found. Tweak the conversion of path to 3-edge
16566 form to use the block copy type information embedded in the path.
16567
16568 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16569
16570 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16571
16572 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16573 Vladimir Makarov <vmakarov@redhat.com>
16574
16575 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16576 from the least significant bit.
16577 (strip_address_mutations): Add bitfield operations handling.
16578 (must_be_index_p): Add shifting and rotate operations handling.
16579 (set_address_base): Use must_be_base_p predicate.
16580 (set_address_index): Use must_be_index_p predicate.
16581
16582 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16583 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16584 Sergey Lega <sergey.s.lega@intel.com>
16585 Anna Tikhonova <anna.tikhonova@intel.com>
16586 Ilya Tocar <ilya.tocar@intel.com>
16587 Andrey Turetskiy <andrey.turetskiy@intel.com>
16588 Ilya Verbin <ilya.verbin@intel.com>
16589 Kirill Yukhin <kirill.yukhin@intel.com>
16590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16591
16592 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16593 Use new names.
16594 (ix86_expand_vector_move_misalign): Support new unaligned load and
16595 stores and use new names.
16596 (CODE_FOR_sse2_storedqu): Rename to ...
16597 (CODE_FOR_sse2_storedquv16qi): ... this.
16598 (CODE_FOR_sse2_loaddqu): Rename to ...
16599 (CODE_FOR_sse2_loaddquv16qi): ... this.
16600 (CODE_FOR_avx_loaddqu256): Rename to ...
16601 (CODE_FOR_avx_loaddquv32qi): ... this.
16602 (CODE_FOR_avx_storedqu256): Rename to ...
16603 (CODE_FOR_avx_storedquv32qi): ... this.
16604 * config/i386/i386.md (fpint_logic): New.
16605 * config/i386/sse.md (VMOVE): Extend for AVX512.
16606 (VF): Ditto.
16607 (VF_128_256): New.
16608 (VF_512): Ditto.
16609 (VI_UNALIGNED_LOADSTORE): Ditto.
16610 (sse2_avx_avx512f): Ditto.
16611 (sse2_avx2): Extend for AVX512.
16612 (sse4_1_avx2): Ditto.
16613 (avx2_avx512f): New.
16614 (sse): Extend for AVX512.
16615 (sse2): Ditto.
16616 (sse4_1): Ditto.
16617 (avxsizesuffix): Ditto.
16618 (sseintvecmode): Ditto.
16619 (ssePSmode): Ditto.
16620 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16621 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16622 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16623 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16624 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16625 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16626 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16627 (STORENT_MODE): Extend for AVX512.
16628 (*absneg<mode>2): Replace constraint "x" with "v".
16629 (*mul<mode>3): Ditto.
16630 (*ieee_smin<mode>3): Ditto.
16631 (*ieee_smax<mode>3): Ditto.
16632 (avx_cmp<mode>3): Replace VF with VF_128_256.
16633 (*<sse>_maskcmp<mode>3_comm): Ditto.
16634 (<sse>_maskcmp<mode>3): Ditto.
16635 (<sse>_andnot<mode>3): Extend for AVX512.
16636 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16637 (<code><mode>3, fpint_logic): New.
16638 (*<code><mode>3): Extend for AVX512.
16639 (avx512flogicsuff): New.
16640 (avx512f_<logic><mode>): Ditto.
16641 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16642 VF_128_256.
16643 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16644 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16645 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16646 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16647 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16648 (xop_vpermil2<mode>3): Ditto.
16649 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16650 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16651 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16652 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16653
16654 2013-09-25 Tom Tromey <tromey@redhat.com>
16655
16656 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16657 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16658 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16659 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16660 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16661 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16662 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16663 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16664 (GRAPHITE_HTAB_H): Remove.
16665
16666 2013-09-25 Tom Tromey <tromey@redhat.com>
16667
16668 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16669
16670 2013-09-25 Tom Tromey <tromey@redhat.com>
16671
16672 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16673
16674 2013-09-25 Tom Tromey <tromey@redhat.com>
16675
16676 * config/i386/t-i386 (i386.o): Remove.
16677 (i386-c.o): Use COMPILE and POSTCOMPILE.
16678
16679 2013-09-25 Tom Tromey <tromey@redhat.com>
16680
16681 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16682
16683 2013-09-25 Tom Tromey <tromey@redhat.com>
16684
16685 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16686 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16687 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16688 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16689 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16690 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16691 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16692 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16693 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16694 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16695 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16696 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16697 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16698 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16699 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16700 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16701 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16702 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16703 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16704 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16705 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16706 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16707 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16708 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16709 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16710 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16711 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16712 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16713 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16714 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16715 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16716 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16717 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16718 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16719 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16720 (graphite-clast-to-gimple.o, graphite-dependences.o)
16721 (graphite-interchange.o, graphite-poly.o)
16722 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16723 (graphite-optimize-isl.o, tree-vect-loop.o)
16724 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16725 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16726 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16727 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16728 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16729 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16730 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16731 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16732 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16733 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16734 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16735 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16736 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16737 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16738 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16739 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16740 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16741 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16742 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16743 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16744 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16745 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16746 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16747 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16748 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16749 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16750 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16751 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16752 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16753 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16754 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16755 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16756 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16757 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16758 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16759 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16760 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16761 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16762 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16763 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16764 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16765 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16766 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16767 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16768 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16769 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16770 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16771 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16772 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16773 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16774 (gcov-dump.o): Remove.
16775 (default-c.o): Use COMPILE and POSTCOMPILE.
16776 (CFLAGS-gcc.o): New variable.
16777 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16778
16779 2013-09-25 Tom Tromey <tromey@redhat.com>
16780
16781 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16782 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16783 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16784 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16785 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16786 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16787 (c-family/array-notation-common.o, c-family/stub-objc.o)
16788 (c-family/c-ubsan.o): Remove.
16789
16790 2013-09-25 Tom Tromey <tromey@redhat.com>
16791
16792 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16793
16794 2013-09-25 Tom Tromey <tromey@redhat.com>
16795
16796 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16797 to add -DENABLE_SHARED_LIBGCC.
16798 (gcc.o): Don't use subshell.
16799
16800 2013-09-25 Tom Tromey <tromey@redhat.com>
16801
16802 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16803 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16804 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16805 * configure, config.in: Rebuild.
16806
16807 2013-09-25 Tom Tromey <tromey@redhat.com>
16808
16809 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16810 (COMPILE, POSTCOMPILE): New variables.
16811 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16812 (DEPFILES): New variable.
16813 Include ".Po" files.
16814 * configure.ac: Add checks for dependency checking.
16815 * configure, aclocal.m4: Regenerate.
16816
16817 2013-09-25 Tom Tromey <tromey@redhat.com>
16818
16819 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16820 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16821
16822 2013-09-25 Tom Tromey <tromey@redhat.com>
16823
16824 * Makefile.in (generated_files): Add options.h,
16825 target-hooks-def.h, insn-opinit.h,
16826 common/common-target-hooks-def.h, pass-instances.def,
16827 c-family/c-target-hooks-def.h.
16828
16829 2013-09-25 Jeff Law <law@redhat.com>
16830
16831 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16832 than foo[foo.length () - 1] to access last member in a vec.
16833 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16834
16835 2013-09-25 Richard Biener <rguenther@suse.de>
16836
16837 PR middle-end/58521
16838 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16839
16840 2013-09-25 Jan Hubicka <jh@suse.cz>
16841
16842 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16843 test.
16844
16845 2013-09-25 Marek Polacek <polacek@redhat.com>
16846
16847 PR sanitizer/58420
16848 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16849 when determining the type name.
16850
16851 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16852
16853 * config/sh/sh.md: Fix formatting.
16854
16855 2013-09-24 Xinliang David Li <davidxl@google.com>
16856
16857 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16858 max peel iterations parameter.
16859 * param.def: New parameter.
16860 * doc/invoke.texi: Document New parameter.
16861
16862 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16863
16864 * gimple-pretty-print.c: Various whitespace tweaks.
16865 * tree-core.h: Likewise.
16866 * tree-pretty-print.c: Likewise.
16867 * tree-ssa-alias.c: Likewise.
16868 * tree-ssa-copy.c: Likewise.
16869 * tree-ssanames.c: Likewise.
16870 * tree-ssanames.h: Likewise.
16871 * tree-vrp.c: Likewise.
16872
16873 2013-09-24 Alan Modra <amodra@gmail.com>
16874
16875 PR middle-end/57134
16876 PR middle-end/57586
16877 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16878 for output operands that disallow regs. Don't use EXPAND_WRITE on
16879 inout operands.
16880
16881 2013-09-24 Richard Biener <rguenther@suse.de>
16882
16883 PR middle-end/58513
16884 * tree.c (reference_alias_ptr_type): Move ...
16885 * alias.c (reference_alias_ptr_type): ... here and implement
16886 in terms of the new reference_alias_ptr_type_1.
16887 (ref_all_alias_ptr_type_p): New helper.
16888 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16889 use ref_all_alias_ptr_type_p.
16890 (get_deref_alias_set): Add flag_strict_aliasing check here.
16891 (reference_alias_ptr_type_1): New function, split out from ...
16892 (get_alias_set): ... here.
16893 (alias_ptr_types_compatible_p): New function.
16894 * alias.h (reference_alias_ptr_type): Declare.
16895 (alias_ptr_types_compatible_p): Likewise.
16896 * tree.h (reference_alias_ptr_type): Remove.
16897 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16898 to compare MEM_REF alias types.
16899
16900 2013-09-24 Richard Biener <rguenther@suse.de>
16901
16902 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16903
16904 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16905
16906 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16907 reload helper function arrays into a single array reg_addr.
16908 (reload_fpr_gpr): Likewise.
16909 (reload_gpr_vsx): Likewise.
16910 (reload_vsx_gpr): Likewise.
16911 (struct rs6000_reg_addr): Likewise.
16912 (reg_addr): Likewise.
16913 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16914 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16915 (rs6000_init_hard_regno_mode_ok): Likewise.
16916 (rs6000_secondary_reload_direct_move): Likewise.
16917 (rs6000_secondary_reload): Likewise.
16918
16919 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16920 constraints: wu, ww, and wy. Repurpose wv constraint added during
16921 power8 changes. Put wg constraint in alphabetical order.
16922
16923 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16924 for future work to add ISA 2.07 VSX single precision support.
16925 (-mvsx-scalar-double): Change default from -1 to 1, update
16926 documentation comment.
16927 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16928 (-mupper-regs-df): New debug switch to control whether DF values
16929 can go in the traditional Altivec registers.
16930 (-mupper-regs-sf): New debug switch to control whether SF values
16931 can go in the traditional Altivec registers.
16932
16933 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16934 and wy constraints.
16935 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16936 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16937 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16938 (rs6000_debug_legitimate_address_p): Print if we are running
16939 before, during, or after reload.
16940 (rs6000_secondary_reload): Add a comment.
16941 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16942
16943 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16944 constraints. Update documentation string.
16945 (wd constraint): Likewise.
16946 (wf constraint): Likewise.
16947 (wg constraint): Likewise.
16948 (wn constraint): Likewise.
16949 (ws constraint): Likewise.
16950 (wt constraint): Likewise.
16951 (wx constraint): Likewise.
16952 (wz constraint): Likewise.
16953 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16954 instructions.
16955 (ww constraint): Likewise.
16956 (wy constraint): Likewise.
16957 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16958 in the previous submissions.
16959 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16960
16961 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16962
16963 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16964 (REG_BR_PROB): Say that the probability is stored in an int_list.
16965 * reg-notes.def: Update commentary to mention INT_LIST.
16966 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16967 (INT_LIST): New rtx.
16968 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16969 * rtlanal.c (int_reg_note_p): New function.
16970 (alloc_reg_note): Assert that the note does not have an int argument.
16971 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16972 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16973 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16974 rather than an INSN_LIST. Handle INT_LIST.
16975 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16976 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16977 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16978 Manipulate them as ints rather than rtxes.
16979 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16980 * regmove.c (copy_src_to_dest): Likewise.
16981 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16982
16983 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16984 into the cases that need it.
16985 * config/arm/arm.c (arm_unwind_emit): Likewise.
16986
16987 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16988 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16989 * loop-doloop.c (add_test, doloop_modify): Likewise.
16990 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16991 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16992 * predict.c (combine_predictions_for_insn): Likewise.
16993 * print-rtl.c (print_rtx): Handle INT_LIST.
16994 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16995 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16996 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16997 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16998 (ix86_split_fp_branch, predict_jump): Likewise.
16999 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
17000 * config/sh/sh.c (expand_cbranchsi4): Likewise.
17001 * config/spu/spu.c (ea_load_store_inline): Likewise.
17002
17003 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
17004 value of a REG_BR_PROB note.
17005 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
17006 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
17007 * emit-rtl.c (try_split): Likewise.
17008 * predict.c (br_prob_note_reliable_p): Likewise.
17009 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
17010 * reorg.c (mostly_true_jump): Likewise.
17011 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
17012 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
17013 * config/i386/i386.c (ix86_print_operand): Likewise.
17014 * config/ia64/ia64.c (ia64_print_operand): Likewise.
17015 * config/mmix/mmix.c (mmix_print_operand): Likewise.
17016 * config/rs6000/rs6000.c (output_cbranch): Likewise.
17017 * config/s390/s390.c (s390_expand_tbegin): Likewise.
17018 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
17019 * config/sparc/sparc.c (output_cbranch): Likewise.
17020 * config/spu/spu.c (get_branch_target): Likewise.
17021 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
17022 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
17023
17024 2013-09-23 Jan Hubicka <jh@suse.cz>
17025
17026 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
17027 for ipa-devirt.
17028 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
17029 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
17030 of external calls
17031 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
17032 (gimple_fold_call): Dump inconsistent devirtualizations; add
17033 sanity check for type based devirtualizations.
17034 * ipa-prop.c: Include ipa-utils.h
17035 (ipa_intraprocedural_devirtualization): Add sanity check.
17036 (try_make_edge_direct_virtual_call): Likewise.
17037
17038 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
17039
17040 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
17041 assignment statements.
17042
17043 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17044
17045 * gimple-pretty-print.c (dump_ssaname_info): New function.
17046 (dump_gimple_phi): Call it.
17047 (pp_gimple_stmt_1): Likewise.
17048 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
17049 (range_info_def): Declare.
17050 * tree-pretty-print.c (pp_double_int): New function.
17051 (dump_generic_node): Call it.
17052 * tree-pretty-print.h (pp_double_int): Declare.
17053 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
17054 * tree-ssanames.h (range_info_def): New structure.
17055 (value_range_type): Move definition here.
17056 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
17057 Declare.
17058 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
17059 initialization.
17060 (set_range_info): New function.
17061 (get_range_info): Likewise.
17062 (duplicate_ssa_name_range_info): Likewise.
17063 (duplicate_ssa_name_fn): Check pointer type and call
17064 duplicate_ssa_name_range_info.
17065 * tree-ssa-copy.c (fini_copy_prop): Likewise.
17066 * tree-vrp.c (value_range_type): Remove definition, now in
17067 tree-ssanames.h.
17068 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
17069 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
17070 (SSA_NAME_RANGE_INFO): New macro.
17071
17072 2013-09-23 Richard Biener <rguenther@suse.de>
17073
17074 PR tree-optimization/58464
17075 * tree-ssa-pre.c (phi_trans_lookup): Remove.
17076 (phi_trans_add): Change to add conditionally on being not present.
17077 (phi_translate_1): Remove recursion detection here.
17078 (phi_translate): Pre-seed the cache with NULL to catch
17079 recursion here in a more generic way.
17080 (bitmap_find_leader): Adjust comment.
17081 (get_representative_for): Dump value-numbers.
17082 (create_expression_by_pieces): Likewise.
17083 (insert_into_preds_of_block): Likewise.
17084
17085 2013-09-23 Christian Bruel <christian.bruel@st.com>
17086
17087 PR target/58475
17088 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
17089 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
17090
17091 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
17092
17093 Revert r202780:
17094 2013-09-20 Renlin Li <renlin.li@arm.com>
17095
17096 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
17097 plus_constant.
17098 (aarch64_expand_epilogue): Likewise.
17099 (aarch64_legitimize_reload_address): Likewise.
17100
17101 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
17102
17103 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
17104 NULL_TREE before pushing them onto the vector. Likewise for labels.
17105
17106 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
17107
17108 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
17109 comparison operators when -fno-trapping-math is in effect.
17110 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
17111 comparison operators in TFmode and assert that unsupported operators
17112 cannot reach here.
17113 (ia64_print_operand): Likewise.
17114
17115 2013-09-21 Jan Hubicka <jh@suse.cz>
17116
17117 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
17118 (sse_typeless_stores): Enable for core
17119 (sse_load0_by_pxor): Likewise.
17120 (four_jump_limit): Disable for core.
17121 (pad_returns): Likewise.
17122 (avoid_vector_decode): Likewise.
17123 (fuse_cmp_and_branch): Enable for cores.
17124 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
17125
17126 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17127
17128 PR middle-end/56791
17129 * config/pa/pa.c (pa_option_override): Disable auto increment and
17130 decrement instructions until reload is completed.
17131
17132 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
17133 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17134 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17135
17136 2013-09-20 DJ Delorie <dj@redhat.com>
17137 Nick Clifton <nickc@redhat.com>
17138
17139 * config/rl78/rl78.c: Various whitespace and comment tweaks.
17140 (need_to_save): Save bank 0 on interrupts.
17141 (characterize_address): Strip far address wrappers.
17142 (rl78_as_legitimate_address): Likewise.
17143 (transcode_memory_rtx): Likewise.
17144 (rl78_peep_movhi_p): Disable this peephole after devirt.
17145 (rl78_propogate_register_origins): Forget all origins when a
17146 CLOBBER is seen.
17147 * config/rl78/rl78-virt.md: Various whitespace tweaks.
17148 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
17149 peephole2's.
17150 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17151 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17152 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17153 relocating.
17154 * config/rl78/constraints.md: Various whitespace and paren tweaks.
17155
17156 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17157
17158 * config/pa/pa.md: In "scc" insn patterns, change output template to
17159 handle const0_rtx in reg_or_0_operand operands.
17160
17161 2013-09-20 Martin Husemann <martin@NetBSD.org>
17162
17163 PR target/56875
17164 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17165 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17166
17167 2013-09-20 Richard Biener <rguenther@suse.de>
17168
17169 PR middle-end/58484
17170 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17171 remembering SSA name version and block index.
17172 (new_scev_info_str): Adjust.
17173 (hash_scev_info): Likewise. Also hash the block index.
17174 (eq_scev_info): Adjust.
17175 (find_var_scev_info): Likewise.
17176 (struct instantiate_cache_entry): Remove.
17177 (struct instantiate_cache_type): Use a htab to map name, block
17178 to chrec.
17179 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17180 (get_instantiated_value_entry): Likewise.
17181 (hash_idx_scev_info, eq_idx_scev_info): New functions.
17182 (instantiate_scev_name): Adjust.
17183
17184 2013-09-20 Jeff Law <law@redhat.com>
17185
17186 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17187
17188 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
17189
17190 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17191 Call aarch64_simd_expand_args to update op[argc].
17192
17193 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17194
17195 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17196 plugin argument.
17197
17198 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17199
17200 * gengtype.c (file_rules): Added rule for *.cc files.
17201 (get_output_file_with_visibility): Give fatal message when no
17202 rules found.
17203
17204 2013-09-20 Renlin Li <renlin.li@arm.com>
17205
17206 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17207 (aarch64_expand_epilogue): Likewise.
17208 (aarch64_legitimize_reload_address): Likewise.
17209
17210 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17211
17212 PR middle-end/57748
17213 * expr.c (expand_assignment): Remove misalignp code path.
17214
17215 2013-09-20 Marek Polacek <polacek@redhat.com>
17216
17217 PR sanitizer/58413
17218 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17219 TYPE_PRECISION. Add asserts.
17220
17221 2013-09-20 Richard Biener <rguenther@suse.de>
17222
17223 PR tree-optimization/58453
17224 * tree-loop-distribution.c (distribute_loop): Apply the cost
17225 model for -ftree-loop-distribute-patterns, too.
17226
17227 2013-09-20 Richard Biener <rguenther@suse.de>
17228
17229 PR middle-end/58473
17230 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17231 make type comparison less strict.
17232
17233 2013-09-20 Alan Modra <amodra@gmail.com>
17234
17235 * configure: Regenerate.
17236 * aclocal.m4: Regenerate.
17237
17238 2013-09-20 Marek Polacek <polacek@redhat.com>
17239
17240 PR other/58467
17241 * doc/extend.texi: Document that attribute used is meant to be used
17242 on variables with static storage duration.
17243
17244 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17245
17246 PR tree-optimization/58472
17247 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17248 simd_lane_access set inv_p = false.
17249 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17250 the simduid magic VAR_DECL.
17251
17252 2013-09-19 Jan Hubicka <jh@suse.cz>
17253
17254 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17255
17256 2013-09-17 Jeff Law <law@redhat.com>
17257
17258 * tree-ssa-dom.c (record_temporary_equivalences): New function
17259 split out of dom_opt_dom_walker::after_dom_children.
17260 (dom_opt_dom_walker::thread_across_edge): Move common code
17261 in here from dom_opt_dom_walker::after_dom_children.
17262 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17263
17264 2013-09-19 Jan Hubicka <jh@suse.cz>
17265
17266 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17267 (TARGET_GENERIC): Use PROCESOR_GENERIC
17268 (enum processor_type): Unify generic32 and 64.
17269 * i386.md (cpu): Likewise.
17270 * x86-tune.def (use_leave): Enable for generic32.
17271 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17272 * athlon.md: Change generic64 to generic in all occurences.
17273 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17274 (ix86_target_macros_internal): Likewise.
17275 * driver-i386.c (host_detect_local_cpu): Likewise.
17276 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17277 to ..
17278 (generic_memcpy, generic_memset, generic_cost): This one.
17279 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17280 (m_GENERIC32, m_GENERIC64): Remove.
17281 (m_GENERIC): Turn into one flag.
17282 (processor_target): Unify generic tunnings.
17283 (ix86_option_override_internal): Replace generic32/64 by generic.
17284 (ix86_issue_rate): Likewise.
17285 (ix86_adjust_cost): Likewise.
17286
17287 2013-09-19 Jan Hubicka <jh@suse.cz>
17288
17289 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17290 of speculative flag.
17291
17292 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17293
17294 * omp-low.c (expand_omp_sections): Always pass len - 1 to
17295 GOMP_sections_start, even if !exit_reachable.
17296
17297 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17298
17299 * lra-constraints.c (need_for_all_save_p): Use macro
17300 HARD_REGNO_CALL_PART_CLOBBERED.
17301 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17302 set up pseudo conflict hard regs.
17303
17304 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17305
17306 PR target/58452
17307 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17308 operands.
17309
17310 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17311
17312 PR rtl-optimization/58438
17313 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17314 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17315 from previous subpasses.
17316
17317 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
17318
17319 * arm.c (arm_get_frame_offsets): Validate architecture supports
17320 LDRD/STRD before accepting the tuning preference.
17321 (arm_expand_prologue): Likewise.
17322 (arm_expand_epilogue): Likewise.
17323
17324 2013-09-18 Richard Biener <rguenther@suse.de>
17325
17326 PR tree-optimization/58417
17327 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17328 have chrecs with symbols defined in the loop as operands.
17329 (chrec_fold_multiply): Likewise.
17330 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17331 parameters before folding binary operations.
17332 (struct instantiate_cache_entry_hasher): Remove.
17333 (struct instantiate_cache_type): Use a pointer-map.
17334 (instantiate_cache_type::instantiate_cache_type): New function.
17335 (instantiate_cache_type::get): Likewise.
17336 (instantiate_cache_type::set): Likewise.
17337 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17338 (get_instantiated_value_entry): Likewise.
17339 (global_cache): New global.
17340 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17341 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17342 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17343 (instantiate_scev_name): Adjust.
17344 (instantiate_scev): Construct global instead of local cache.
17345 (resolve_mixers): Likewise.
17346
17347 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
17348 Paolo Carlini <paolo.carlini@oracle.com>
17349
17350 PR c++/58458
17351 * doc/implement-cxx.texi: Fix references to the C++ standards.
17352
17353 2013-09-18 Jakub Jelinek <jakub@redhat.com>
17354
17355 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17356 * tree-vect-data-refs.c (vect_analyze_data_refs): For
17357 simd_lane_access drs, update also DR_ALIGNED_TO.
17358
17359 2013-09-18 Marek Polacek <polacek@redhat.com>
17360
17361 PR sanitizer/58411
17362 * doc/extend.texi: Document no_sanitize_undefined attribute.
17363 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17364 no_sanitize_undefined attribute.
17365
17366 2013-09-18 Nick Clifton <nickc@redhat.com>
17367
17368 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17369 (ASM_DECLARE_FUNCTION_NAME): Define.
17370
17371 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
17372
17373 * compare-elim.c (find_comparison_dom_walker): New class
17374 (find_comparisons_in_bb): Rename to
17375 find_comparison_dom_walker::before_dom_children
17376 (find_comparisons): Adjust
17377 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17378 adjust.
17379 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17380 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17381 (init_walk_dominator_tree): Remove declaration.
17382 (fini_walk_dominator_tree): Remove declaration.
17383 * fwprop.c (single_def_use_dom_walker): New class
17384 (single_def_use_enter_block): Convert to
17385 single_def_use_dom_walker::before_dom_children.
17386 (single_def_use_leave_block): Convert to
17387 single_def_use_dom_walker::after_dom_children.
17388 (build_single_def_use_links): Adjust.
17389 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17390 class.
17391 (find_candidates_in_block): Convert to
17392 find_candidates_dom_walker::before_dom_children.
17393 (execute_strength_reduction): Adjust.
17394 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17395 (sese_dom_walker): New class.
17396 (sese_dom_walker::sese_dom_walker): New constructor.
17397 (sese_dom_walker::~sese_dom_walker): New destructor.
17398 (build_sese_conditions_before): Convert to
17399 sese_dom_walker::before_dom_children.
17400 (build_sese_conditions_after): Convert to
17401 sese_dom_walker::after_dom_children.
17402 (build_poly_scop): Adjust
17403 * tree-into-ssa.c (rewrite_dom_walker): New class
17404 (rewrite_enter_block): Convert to
17405 rewrite_dom_walker::before_dom_children.
17406 (rewrite_leave_block): Convert to
17407 rewrite_dom_walker::after_dom_children.
17408 (rewrite_update_dom_walker): New class.
17409 (rewrite_update_enter_block): Convert to
17410 rewrite_update_dom_walker::before_dom_children.
17411 (rewrite_update_leave_block): Convert to
17412 rewrite_update_dom_walker::after_dom_children.
17413 (rewrite_blocks, rewrite_into_ssa): Adjust.
17414 (mark_def_dom_walker): New class.
17415 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17416 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17417 (mark_def_sites_blocks): Convert to
17418 mark_def_dom_walker::before_dom_children.
17419 (mark_def_site_blocks): Remove.
17420 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17421 (tree_ssa_dominator_optimize): Adjust.
17422 (dom_thread_across_edge): Convert to method
17423 dom_opt_dom_walker::thread_across_edge.
17424 (dom_opt_enter_block): Convert to member function
17425 dom_opt_dom_walker::before_dom_children.
17426 (dom_opt_leave_block): Convert to member function
17427 dom_opt_dom_walker::after_dom_children.
17428 * tree-ssa-dse.c (dse_dom_walker): New class.
17429 (dse_enter_block): Convert to member function
17430 dse_dom_walker::before_dom_children.
17431 (tree_ssa_dse): Adjust.
17432 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17433 (determine_invariantness_stmt): Convert to method
17434 invariantness_dom_walker::before_dom_children.
17435 (determine_invariantness): Remove
17436 (move_computations_dom_walker): New class.
17437 (move_computations_stmt): Convert to method
17438 move_computations_dom_walker::before_dom_children.
17439 (move_computations, tree_ssa_lim): Adjust.
17440 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17441 (nt_init_block): Convert to method
17442 notrappping_dom_walker::before_dom_children.
17443 (nt_fini_block): Convert to method
17444 method nontrapping_dom_walker::after_dom_children.
17445 (get_non_trapping): Adjust.
17446 * tree-ssa-pre.c (eliminate_dom_walker): New class.
17447 (eliminate_bb): Convert to method
17448 eliminate_dom_walker::before_dom_children.
17449 (eliminate_leave_block): Convert to method
17450 eliminate_dom_walker::after_dom_children.
17451 (eliminate): Adjust.
17452 * tree-ssa-strlen.c (strlen_dom_walker): New class.
17453 (strlen_enter_block): Convert to method
17454 strlen_dom_walker::before_dom_children.
17455 (strlen_leave_block): Convert to method
17456 method strlen_dom_walker::after_dom_children.
17457 (tree_ssa_strlen): Adjust.
17458 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17459 (tree_ssa_uncprop): Adjust.
17460 (uncprop_leave_block): Convert to method
17461 uncprop_dom_walker::after_dom_children.
17462 (uncprop_leave_block): Convert to method
17463 uncprop_dom_walker::before_dom_children.
17464
17465 2013-09-18 Bin Cheng <bin.cheng@arm.com>
17466
17467 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17468 branch in same basic block. Check both src and dest of the move insn.
17469
17470 2013-09-17 Nick Clifton <nickc@redhat.com>
17471
17472 * config/rl78/rl78-real.md (bf): New pattern.
17473 (bt): New pattern.
17474 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17475 (rl78_print_operand): Do not put a # before a %B.
17476 * config/rl78/rl78.opt: Tweak doc strings.
17477
17478 2013-09-17 DJ Delorie <dj@redhat.com>
17479
17480 * config/rl78/constraints.md (Wcv): Allow up to $r31.
17481 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17482 (rl78_option_override): Likewise, if -mallregs.
17483 (is_virtual_register): Likewise.
17484 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17485 (REGNO_OK_FOR_BASE_P): Likewise.
17486 * config/rl78/rl78.opt (-mallregs): New.
17487
17488 2013-09-17 Nick Clifton <nickc@redhat.com>
17489
17490 * config/rl78/rl78.c (need_to_save): Change return type to bool.
17491 For interrupt functions: save all call clobbered registers if the
17492 interrupt handler is not a leaf function.
17493 (rl78_expand_prologue): Always recompute the frame information.
17494 For interrupt functions: only select bank 0 if one of the bank 0
17495 registers is going to be psuhed.
17496
17497 2013-09-17 DJ Delorie <dj@redhat.com>
17498
17499 * config/rl78/constraints.md: For each W* constraint, rename to C*
17500 and create a W* constraint that checks for an optional ES: prefix
17501 pattern also.
17502 * config/rl78/rl78.md (UNS_ES_ADDR): New.
17503 (es_addr): New. Used to wrap far addresses.
17504 * config/rl78/rl78-protos.h (rl78_es_addr): New.
17505 (rl78_es_base): New.
17506 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17507 wrapped far addresses.
17508 (rl78_print_operand_1): Unwrap far addresses before processing.
17509 (rl78_lo16): Wrap far addresses in unspecs.
17510 (rl78_es_addr): New.
17511 (rl78_es_base): New.
17512 (insn_ok_now): Check for not-yet-wrapped far addresses.
17513 (transcode_memory_rtx): Properly re-wrap far addresses.
17514
17515 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17516
17517 * config/sparc/t-rtems: Add leon3 multilibs.
17518
17519 2013-09-17 Cong Hou <congh@google.com>
17520
17521 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17522 when checking the dot production pattern. The type of rhs operand
17523 of multiply is now checked correctly.
17524
17525 2013-09-17 Jeff Law <law@redhat.com>
17526
17527 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17528 edge implied equivalences into successor phis.
17529 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17530 here from tree-ssa-threadedge.c.
17531 (mark_threaded_blocks): When threading through a joiner, if both
17532 successors of the joiner's clone reach the same block, verify the
17533 PHI arguments are equal. If not, cancel the jump threading request.
17534 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17535 tree-ssa-threadupdate.c
17536 (thread_across_edge): Don't check PHI argument equality when
17537 threading through joiner block here.
17538
17539 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
17540
17541 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17542 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17543 (warn_uninit, warn_uninitialized_vars,
17544 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17545 Move to tree-ssa-uninit.c.
17546 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17547 (has_undefined_value_p): New. Pass dependant parts of
17548 ssa_undefined_value_p.
17549 (uninit_undefined_value_p): Use has_undefined_value_p.
17550 (warn_uninit, warn_uninitialized_vars,
17551 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17552 Move from tree-ssa.c.
17553 * tree-ssa.h: Adjust prototypes.
17554
17555 2013-09-17 Jan Hubicka <jh@suse.cz>
17556
17557 PR middle-end/58332
17558 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17559 * ipa-inline.c (can_inline_edge_p): Do not downgrade
17560 FUNCTION_NOT_OPTIMIZED.
17561 * ipa-inline-analysis.c (compute_inline_parameters): Function
17562 not optimized is not inlinable unless it is alwaysinline.
17563 (inline_analyze_function): Force calls in not optimized
17564 function not inlinable.
17565
17566 2013-09-17 Jan Hubicka <jh@suse.cz>
17567
17568 PR middle-end/58329
17569 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17570 to return NULL.
17571 * ipa.c (function_and_variable_visibility): Likewise.
17572 * ipa-profile.c (ipa_profile): Likewise.
17573
17574 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
17575
17576 PR ipa/58398
17577 * cgraph.c (cgraph_function_body_availability): Check for ifunc
17578 attribute, and don't inline the resolver in this case.
17579
17580 2013-09-17 Teresa Johnson <tejohnson@google.com>
17581
17582 * coverage.c (get_coverage_counts): Add missing newline.
17583
17584 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17585
17586 PR tree-optimization/58088
17587 * fold-const.c (mask_with_trailing_zeros): New function.
17588 (fold_binary_loc): Make sure we don't recurse infinitely
17589 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17590 Use mask_with_trailing_zeros where appropriate.
17591
17592 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17593
17594 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17595 of 'prev' var to get better distance estimation.
17596
17597 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17598
17599 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17600 * tree-inline.c (is_parameter_of): New predicate.
17601 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17602 a parameter has been remapped.
17603 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17604 (optimize_inline_calls): Initialize transform_parameter.
17605 (copy_gimple_seq_and_replace_locals): Likewise.
17606 (tree_function_versioning): Likewise.
17607 (maybe_inline_call_in_expr): Likewise.
17608
17609 2013-09-17 Nick Clifton <nickc@redhat.com>
17610
17611 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17612 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17613 interrupt handlers.
17614 (is_attr_func): New function.
17615 (msp430_is_interrupt_func): New function.
17616 (is_naked_func): New function.
17617 (is_reentrant_func): New function.
17618 (is_critical_func): New function.
17619 (msp430_start_function): Add annotations for function attributes.
17620 (msp430_attr): New function.
17621 (msp430_attribute_table): New.
17622 (msp430_function_section): New function.
17623 (TARGET_ASM_FUNCTION_SECTION): Define.
17624 (msp430_builtin): New enum.
17625 (msp430_init_builtins): New function.
17626 (msp430_builtin_devl): New function.
17627 (msp430_expand_builtin): New function.
17628 (TARGET_INIT_BUILTINS): Define.
17629 (TARGET_EXPAND_BUILTINS): Define.
17630 (TARGET_BUILTIN_DECL): Define.
17631 (msp430_expand_prologue): Add support for naked, interrupt,
17632 critical and reentrant functions.
17633 (msp430_expand_epilogue): Likewise.
17634 (msp430_print_operand): Handle 'O' character.
17635 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17636 NO_TRAMPOLINES.
17637 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17638 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17639 (pushm): Use a 'n' rather than an 'i' constraint.
17640 (msp_return): Add generation of the interrupt return instruction.
17641 (disable_interrupts): New pattern.
17642 (enable_interrupts): New pattern.
17643 (push_intr_state): New pattern.
17644 (pop_intr_state): New pattern.
17645 (bic_SR): New pattern.
17646 (bis_SR): New pattern.
17647 * doc/extend.texi: Document MSP430 function attributes and builtin
17648 functions.
17649
17650 2013-09-17 Richard Biener <rguenther@suse.de>
17651
17652 PR tree-optimization/58432
17653 * tree-loop-distribution.c (tree_loop_distribution): Also
17654 scan PHIs for outside loop uses and seed a partition from them.
17655
17656 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17657
17658 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17659 (restructure_reference): Call backtrace_base_for_ref.
17660
17661 2013-09-17 Alan Modra <amodra@gmail.com>
17662
17663 PR target/57589
17664 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17665 patch.
17666
17667 2013-09-16 DJ Delorie <dj@redhat.com>
17668
17669 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17670 vregs location for RL78/G10.
17671 (rl78_expand_prologue): Avoid SEL on G10.
17672 (rl78_expand_epilogue): Likewise.
17673 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17674 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17675 __RL78_G10__ when appropriate.
17676 (ASM_SPEC): Pass -mg10 along to the assembler.
17677 * config/rl78/rl78.md (sel_rb): Disable for G10.
17678 * config/rl78/rl78.opt: Add -mg10 option.
17679 * config/rl78/t-rl78: Add -mg10 multilib.
17680
17681 2013-09-16 Xinliang David Li <davidxl@google.com>
17682
17683 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17684 * omp-low.c (omp_max_vf): Ditto.
17685 (expand_omp_simd): Ditto.
17686 * tree-vectorizer.c (vectorize_loops): Ditto.
17687 (gate_vect_slp): Ditto.
17688 (gate_increase_alignment): Ditto.
17689 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17690 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17691 (gate_tree_vectorize): Name change.
17692 (tree_vectorize): Ditto.
17693 (pass_vectorize::gate): Call new function.
17694 (pass_vectorize::execute): Ditto.
17695 * opts.c: O3 default setting change.
17696 (finish_options): Check new flag.
17697 * doc/invoke.texi: Document new flags.
17698 * common.opt: New flags.
17699
17700 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17701
17702 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17703 (Condition Code): Don't reference it.
17704 * doc/tm.texi: Regenerate.
17705
17706 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17707
17708 PR middle-end/58418
17709 * lra-constraints.c (undo_optional_reloads): Consider all optional
17710 reload even if it did not get a hard reg.
17711
17712 2013-09-16 Teresa Johnson <tejohnson@google.com>
17713
17714 * dumpfile.c (dump_loc): Remove newline emission.
17715 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17716 emission to dump_printf_loc calls where missing.
17717 (vect_mark_for_runtime_alias_test): Ditto.
17718 (vect_analyze_data_ref_dependence): Ditto.
17719 (vect_analyze_data_ref_dependences): Ditto.
17720 (vect_slp_analyze_data_ref_dependence): Ditto.
17721 (vect_slp_analyze_data_ref_dependences): Ditto.
17722 (vect_compute_data_ref_alignment): Ditto.
17723 (vect_update_misalignment_for_peel): Ditto.
17724 (vect_verify_datarefs_alignment): Ditto.
17725 (vector_alignment_reachable_p): Ditto.
17726 (vect_get_data_access_cost): Ditto.
17727 (vect_enhance_data_refs_alignment): Ditto.
17728 (vect_find_same_alignment_drs): Ditto.
17729 (vect_analyze_data_refs_alignment): Ditto.
17730 (vect_analyze_group_access): Ditto.
17731 (vect_analyze_data_ref_access): Ditto.
17732 (vect_analyze_data_ref_accesses): Ditto.
17733 (vect_prune_runtime_alias_test_list): Ditto.
17734 (vect_analyze_data_refs): Ditto.
17735 (vect_create_addr_base_for_vector_ref): Ditto.
17736 (vect_create_data_ref_ptr): Ditto.
17737 (vect_grouped_store_supported): Ditto.
17738 (vect_grouped_load_supported): Ditto.
17739 * value-prof.c (check_counter): Ditto.
17740 (check_ic_target): Ditto.
17741 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17742 (vect_recog_widen_mult_pattern): Ditto.
17743 (vect_recog_widen_sum_pattern): Ditto.
17744 (vect_recog_over_widening_pattern): Ditto.
17745 (vect_recog_widen_shift_pattern): Ditto.
17746 (vect_recog_rotate_pattern): Ditto.
17747 (vect_recog_vector_vector_shift_pattern): Ditto.
17748 (vect_recog_divmod_pattern): Ditto.
17749 (vect_recog_mixed_size_cond_pattern): Ditto.
17750 (vect_recog_bool_pattern): Ditto.
17751 (vect_pattern_recog_1): Ditto.
17752 (vect_pattern_recog): Ditto.
17753 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17754 (vect_is_simple_iv_evolution): Ditto.
17755 (vect_analyze_scalar_cycles_1): Ditto.
17756 (vect_get_loop_niters): Ditto.
17757 (vect_analyze_loop_1): Ditto.
17758 (vect_analyze_loop_form): Ditto.
17759 (vect_analyze_loop_operations): Ditto.
17760 (vect_analyze_loop_2): Ditto.
17761 (vect_analyze_loop): Ditto.
17762 (report_vect_op): Ditto.
17763 (vect_is_slp_reduction): Ditto.
17764 (vect_is_simple_reduction_1): Ditto.
17765 (vect_get_known_peeling_cost): Ditto.
17766 (vect_estimate_min_profitable_iters): Ditto.
17767 (vect_model_reduction_cost): Ditto.
17768 (vect_model_induction_cost): Ditto.
17769 (get_initial_def_for_induction): Ditto.
17770 (vect_create_epilog_for_reduction): Ditto.
17771 (vectorizable_reduction): Ditto.
17772 (vectorizable_induction): Ditto.
17773 (vectorizable_live_operation): Ditto.
17774 (vect_loop_kill_debug_uses): Ditto.
17775 (vect_transform_loop): Ditto.
17776 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17777 (vect_stmt_relevant_p): Ditto.
17778 (process_use): Ditto.
17779 (vect_mark_stmts_to_be_vectorized): Ditto.
17780 (vect_model_simple_cost): Ditto.
17781 (vect_model_promotion_demotion_cost): Ditto.
17782 (vect_model_store_cost): Ditto.
17783 (vect_get_store_cost): Ditto.
17784 (vect_model_load_cost): Ditto.
17785 (vect_get_load_cost): Ditto.
17786 (vect_init_vector_1): Ditto.
17787 (vect_get_vec_def_for_operand): Ditto.
17788 (vect_finish_stmt_generation): Ditto.
17789 (vectorizable_call): Ditto.
17790 (vectorizable_conversion): Ditto.
17791 (vectorizable_assignment): Ditto.
17792 (vectorizable_shift): Ditto.
17793 (vectorizable_operation): Ditto.
17794 (vectorizable_store): Ditto.
17795 (vectorizable_load): Ditto.
17796 (vectorizable_condition): Ditto.
17797 (vect_analyze_stmt): Ditto.
17798 (vect_transform_stmt): Ditto.
17799 (vect_is_simple_use): Ditto.
17800 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17801 (vect_can_advance_ivs_p): Ditto.
17802 (vect_update_ivs_after_vectorizer): Ditto.
17803 (vect_do_peeling_for_loop_bound): Ditto.
17804 (vect_gen_niters_for_prolog_loop): Ditto.
17805 (vect_update_inits_of_drs): Ditto.
17806 (vect_create_cond_for_alias_checks): Ditto.
17807 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17808 (vect_build_slp_tree_1): Ditto.
17809 (vect_supported_load_permutation_p): Ditto.
17810 (vect_analyze_slp_instance): Ditto.
17811 (vect_analyze_slp): Ditto.
17812 (vect_make_slp_decision): Ditto.
17813 (vect_detect_hybrid_slp): Ditto.
17814 (vect_bb_vectorization_profitable_p): Ditto.
17815 (vect_slp_analyze_bb_1): Ditto.
17816 (vect_update_slp_costs_according_to_vf): Ditto.
17817 (vect_get_mask_element): Ditto.
17818 (vect_transform_slp_perm_load): Ditto.
17819 (vect_schedule_slp_instance): Ditto.
17820 (vect_schedule_slp): Ditto.
17821 (vect_slp_transform_bb): Ditto.
17822 * profile.c (read_profile_edge_counts): Ditto.
17823 (compute_branch_probabilities): Ditto.
17824 * coverage.c (get_coverage_counts): Ditto.
17825
17826 2013-09-16 Diego Novillo <dnovillo@google.com>
17827
17828 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17829
17830 2013-09-16 Jan Hubicka <jh@suse.cz>
17831
17832 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17833 abstract functions; for static functions check the presence of body.
17834
17835 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17836
17837 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17838 * config/aarch64/aarch64-simd.md
17839 (aarch64_mla_elt<mode>): New.
17840 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17841 (aarch64_mls_elt<mode>): Likewise.
17842 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17843 (aarch64_fma4_elt<mode>): Likewise.
17844 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17845 (aarch64_fma4_elt_to_128v2df): Likewise.
17846 (aarch64_fma4_elt_to_64df): Likewise.
17847 (fnma<mode>4): Likewise.
17848 (aarch64_fnma4_elt<mode>): Likewise.
17849 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17850 (aarch64_fnma4_elt_to_128v2df): Likewise.
17851 (aarch64_fnma4_elt_to_64df): Likewise.
17852 * config/aarch64/iterators.md (VDQSF): New.
17853 * config/aarch64/arm_neon.h
17854 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17855 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17856
17857 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17858
17859 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17860 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17861 (aarch64_mul3_elt_to_128df): Likewise.
17862 (aarch64_mul3_elt_to_64v2df): Likewise.
17863 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17864 (VMUL): New.
17865 (VMUL_CHANGE_NLANES) Likewise.
17866 (h_con): Likewise.
17867 (f): Likewise.
17868 * config/aarch64/arm_neon.h
17869 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17870
17871 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17872
17873 * config/aarch64/arm_neon.h
17874 (vcvtx_high_f32_f64): Fix parameters.
17875
17876 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17877 Uros Bizjak <ubizjak@gmail.com>
17878
17879 * config/alpha.c: Include tree-ssanames.h.
17880
17881 2013-09-16 Richard Biener <rguenther@suse.de>
17882
17883 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17884 (dot_rdg_1): Handle control_dd.
17885 (create_edge_for_control_dependence): New function.
17886 (create_rdg_edges): Add control dependences if asked for.
17887 (build_rdg): Likewise.
17888 (generate_loops_for_partition): If there are not necessary
17889 control stmts remove all their dependencies.
17890 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17891 (distribute_loop): Pass on control dependences.
17892 (tree_loop_distribution): Compute control dependences and remove
17893 restriction on number of loop nodes.
17894
17895 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17896
17897 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17898 for internal calls.
17899
17900 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17901
17902 * cse.c (try_const_anchors): Punt on CC modes.
17903
17904 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17905
17906 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17907
17908 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17909
17910 PR target/58382
17911 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17912 calls to word_mode.
17913
17914 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17915
17916 PR target/48094
17917 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17918 seen.
17919 (darwin_objc1_section): Likewise.
17920 (darwin_file_end): Emit Image Info section when required.
17921
17922 2013-09-14 Jan Hubicka <jh@suse.cz>
17923
17924 * tree-into-ssa.c (gate_into_ssa): New.
17925 (pass_data_build_ssa): Use it.
17926 * cgraph.h (expand_thunk): Update prototype.
17927 * cgraphunit.c (analyze_function): Expand thunks early.
17928 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17929 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17930 set lowered flag; do not add new function.
17931 (assemble_thunks_and_aliases): Update.
17932 * tree-ssa.c (gate_init_datastructures): New gate.
17933 (pass_data_init_datastructures): Use it.
17934
17935 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17936
17937 PR target/58269
17938 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17939 xmm register set described in the psABI.
17940
17941 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17942
17943 * dwarf2out.c (should_emit_struct_debug): Add check
17944 for type_decl variable is not NULL.
17945
17946 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17947
17948 * config.gcc: Use new winnt-c.c target hooks
17949 * config/t-winnt: New file
17950 * config/winnt-c.c: New file
17951 * doc/tm.texi.in: Document new hook
17952 * doc/tm.texi: Regenerated
17953
17954 2013-09-13 Jan Hubicka <jh@suse.cz>
17955
17956 PR middle-end/58094
17957 * ipa-inline.c (check_callers): New function.
17958 (check_caller_edge): Remove.
17959 (want_inline_function_to_all_callers_p): Also permit alises that are
17960 called dirrectly.
17961 (inline_to_all_callers): Terminate the walk when devirtualization
17962 introduce new calls.
17963
17964 2013-09-13 Jan Hubicka <jh@suse.cz>
17965
17966 * ipa-inline-analysis.c (struct growth_data): Add node.
17967 (do_estimate_growth_1): Fix detection of recursion.
17968
17969 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17970
17971 PR tree-optimization/58392
17972 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17973 to avoid shadowing of outer loop variable. If
17974 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17975 replace_by_duplicate_decl simduid of loops that have it set and
17976 set dest_cfun->has_simduid_loops and/or
17977 dest_cfun->has_force_vect_loops.
17978 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17979 instead of maybe_lookup_decl.
17980 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17981 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17982 call. Copy over force_vect and copy and remap simduid. Set
17983 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17984 (copy_cfg_body): Remove blocks_to_copy argument. Use
17985 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17986 caller. Don't set cfun->has_simduid_loops and/or
17987 cfun->has_force_vect_loops here.
17988 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17989 caller.
17990 (expand_call_inline, tree_function_versioning): Adjust copy_body
17991 callers.
17992
17993 2013-09-13 Martin Jambor <mjambor@suse.cz>
17994
17995 PR bootstrap/58388
17996 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17997 the assert if the edge was a speculative one.
17998
17999 2013-09-13 Richard Biener <rguenther@suse.de>
18000
18001 * tree-data-ref.h (known_dependences_p): Move here ...
18002 * tree-loop-distribution.c (known_dependences_p): ... from here.
18003 (dump_rdg_component, debug_rdg_component): Remove.
18004 (dump_rdg): Adjust.
18005 (generate_loops_for_partition): Use gimple_uid instead of
18006 relying on matching stmt visit order.
18007 (rdg_build_partitions): Take starting stmt vector.
18008 (ldist_gen): Merge into ...
18009 (distribute_loop): ... this function. Do not compute starting
18010 vertices vector.
18011 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
18012
18013 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18014
18015 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
18016 Set type attribute correctly. Set predicable_short_it attribute.
18017 (cmpsi_shiftsi): Remove %? from output template.
18018
18019 2013-09-13 Richard Biener <rguenther@suse.de>
18020
18021 * tree-loop-distribution.c (struct rdg_component,
18022 rdg_defs_used_in_other_loops_p, free_rdg_components,
18023 rdg_build_components): Remove.
18024 (stmts_from_loop): Do not record virtual PHIs.
18025 (generate_loops_for_partition): Skip virtual PHIs.
18026 (build_rdg_partition_for_component): Rename to ...
18027 (build_rdg_partition_for_vertex): ... this and adjust.
18028 (rdg_build_partitions): Take a vector of starting vertices
18029 instead of components. Remove unnecessary leftover handling.
18030 (ldist_gen): Do not build components or record other stores.
18031 (distribute_loop): Do not distribute loops containing stmts
18032 with side-effects.
18033
18034 2013-09-13 Christian Bruel <christian.bruel@st.com>
18035
18036 PR target/58314
18037 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
18038
18039 2013-09-13 Kai Tietz <ktietz@redhat.com>
18040
18041 * config.gcc: Separate cases for mingw and cygwin targets,
18042 and add 64-bit cygwin target case.
18043
18044 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
18045 dll-export inline-functions.
18046 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
18047
18048 2013-09-13 Jeff Law <law@redhat.com>
18049
18050 PR middle-end/58387
18051 Revert:
18052 2013-09-06 Jeff Law <law@redhat.com>
18053
18054 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18055 edge implied equivalences into successor phis.
18056
18057 2013-09-12 DJ Delorie <dj@redhat.com>
18058
18059 * config/rl78/rl78-virt.md: Change from | to \; for asm line
18060 separators.
18061
18062 2013-09-12 Brooks Moses <bmoses@google.com>
18063
18064 PR driver/42955
18065 * Makefile.in: Do not install driver binaries in $(target)/bin.
18066
18067 2013-09-12 DJ Delorie <dj@redhat.com>
18068
18069 * config/rl78/rl78.opt (mrelax): New.
18070 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
18071 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
18072
18073 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
18074 between SP and FP.
18075 (rl78_expand_epilogue): Likewise.
18076
18077 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
18078
18079 PR middle-end/58335
18080 * lra-eliminations.c (remove_reg_equal_offset_note): New.
18081 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
18082 pointer elimination with using remove_reg_equal_offset_note.
18083
18084 2013-09-12 DJ Delorie <dj@redhat.com>
18085
18086 * config/msp430/: New port.
18087 * config.gcc (msp430): Added.
18088 * doc/invoke.texi: Document MSP430 options.
18089 * doc/install.texi: Document msp430-elf
18090 * doc/md.texi: Document msp430-elf
18091 * doc/contrib.texi: Document msp430-elf
18092
18093 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
18094 PSImode.
18095
18096 2013-09-12 Martin Jambor <mjambor@suse.cz>
18097
18098 PR ipa/58389
18099 * ipa-prop.c (remove_described_reference): Give up if the edge in the
18100 reference descriptor is NULL.
18101 (ipa_edge_removal_hook): If owning a reference descriptor, set its
18102 edge to NULL.
18103
18104 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18105
18106 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
18107 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
18108 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
18109 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
18110 make_temp_ssa_name): move to tree-ssanames.h
18111 * tree-ssa-alias.h: Move prototype.
18112 * tree-ssa.h: Include tree-ssanames.h.
18113 * tree-ssanames.c (FREE_SSANAMES): Move to here.
18114 * tree-ssanames.h: New. Move items from tree-flow*.h
18115 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
18116
18117 2013-09-12 Richard Biener <rguenther@suse.de>
18118
18119 PR tree-optimization/58404
18120 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18121 propagate non-invariant addresses into dereferences wrapped
18122 in component references.
18123
18124 2013-09-12 Richard Biener <rguenther@suse.de>
18125
18126 PR tree-optimization/58402
18127 * passes.def: Move pass_late_warn_uninitialized later.
18128
18129 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18130
18131 * tree-ssa.h: New. Move content from tree-flow.h and
18132 tree-flow-inline.h.
18133 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
18134 Move prototypes belonging to tree-ssa.c.
18135 * tree-flow-inline.h (redirect_edge_var_map_def,
18136 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
18137 tree-ssa.h.
18138 * gimple.h: Adjust prototypes.
18139 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
18140 to...
18141 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
18142 * tree.h: Move prototype to tree-ssa.h.
18143 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
18144 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18145 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18146 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18147 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18148 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18149 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18150 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18151 graphite-blocking.c, graphite-clast-to-gimple.c,
18152 graphite-dependences.c, graphite-interchange.c,
18153 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18154 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18155 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18156 ipa-reference.c, ipa-split.c, ipa-utils.c,
18157 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18158 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18159 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18160 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18161 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18162 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18163 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18164 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18165 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18166 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18167 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18168 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18169 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18170 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18171 value-prof.c, var-tracking.c,
18172 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18173
18174 2013-09-12 Richard Biener <rguenther@suse.de>
18175
18176 PR tree-optimization/58396
18177 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18178 (build_rdg): Take a loop-nest parameter, fix memleaks.
18179 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18180
18181 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18182
18183 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18184 for SLM.
18185
18186 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
18187
18188 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18189 The FMA instruction names should have a 'v' prefix.
18190
18191 2013-09-12 Richard Biener <rguenther@suse.de>
18192
18193 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18194 (dot_rdg): Use popen instead of system in optional code.
18195 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18196 (already_processed_vertex_p): Adjust.
18197 (has_anti_or_output_dependence, predecessor_has_mem_write,
18198 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18199 rdg_flag_uses): Remove.
18200 (rdg_flag_vertex): Simplify.
18201 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18202 remove recursion.
18203 (build_rdg_partition_for_component): Process the first vertex
18204 of a component only.
18205 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18206
18207 2013-09-12 Alan Modra <amodra@gmail.com>
18208
18209 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18210
18211 2013-09-11 DJ Delorie <dj@redhat.com>
18212 Nick Clifton <nickc@redhat.com>
18213
18214 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18215 (rl78_stack_based_mem): New.
18216 * config/rl78/constraints.md (Iv08): New.
18217 (Iv16): New.
18218 (Iv24): New.
18219 (Is09): New.
18220 (Is17): New.
18221 (Is25): New.
18222 (ISsi): New.
18223 (IShi): New.
18224 (ISqi): New.
18225 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18226 (movhi): Likewise.
18227 (movsi): Change from expand to insn-and-split.
18228 (ashrsi3): Clobber AX.
18229 (lshrsi3): New.
18230 (ashlsi3): New.
18231 (cbranchsi4): New.
18232 * config/rl78/rl78.md (CC_REG): Fix.
18233 (addsi3): Allow memory and immediate operands.
18234 (addsi3_internal): Split into...
18235 (addsi3_internal_virt): ...new, and ...
18236 (addsi3_internal_real): ...new.
18237 (subsi): New.
18238 (subsi3_internal_virt): New.
18239 (subsi3_internal_real): New.
18240 (mulsi3): Add memory operand.
18241 (mulsi3_rl78): Likewise.
18242 (mulsi3_g13): Likewise.
18243 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18244 (cbranchqi4_real): Add more constraint options.
18245 (cbranchhi4_real): Expand pattern.
18246 (cbranchhi4_real_signed): New.
18247 (cbranchhi4_real_inverted): New.
18248 (cbranchsi4_real_lt): New.
18249 (cbranchsi4_real_ge): New.
18250 (cbranchsi4_real_signed): New.
18251 (cbranchsi4_real): New.
18252 (peephole2): New.
18253 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18254 constant shifts.
18255 (lshrsi3_virt): Likewise.
18256 (ashlsi3_virt): Likewise.
18257 (cbranchqi4_virt_signed): New.
18258 (cbranchhi4_virt_signed): New.
18259 (cbranchsi4_virt): New.
18260 * config/rl78/rl78.c: Whitespace fixes throughout.
18261 (move_elim_pass): New.
18262 (pass_data_rl78_move_elim): New.
18263 (pass_rl78_move_elim): New.
18264 (make_pass_rl78_move_elim): New.
18265 (rl78_devirt_info): Run devirt earlier.
18266 (rl78_move_elim_info): New.
18267 (rl78_asm_file_start): Register it.
18268 (rl78_split_movsi): New.
18269 (rl78_as_legitimate_address): Allow virtual base registers when
18270 appropriate.
18271 (rl78_addr_space_convert): Remove spurious debug stuff.
18272 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18273 (rl78_print_operand): More cases for not printing '#'.
18274 (rl78_expand_compare): Remove most of the logic.
18275 (content_memory): New.
18276 (clear_content_memory): New.
18277 (get_content_index): New.
18278 (get_content_name): New.
18279 (display_content_memory): New.
18280 (update_content): New.
18281 (record_content): New.
18282 (already_contains): New.
18283 (insn_ok_now): Re-recog insns with virtual registers.
18284 (add_postponed_content_update): New.
18285 (process_postponed_content_update): New.
18286 (gen_and_emit_move): New.
18287 (transcode_memory_rtx): Record new location content.
18288 Use gen_and_emit_move.
18289 (force_into_acc): New.
18290 (move_to_acc): Use gen_and_emit_move.
18291 (move_from_acc): Likewise.
18292 (move_acc_to_reg): Likewise.
18293 (move_to_x): Likewise.
18294 (move_to_hl): Likewise.
18295 (move_to_de): Likewise.
18296 (rl78_alloc_physical_registers_op1): Record location content.
18297 (has_constraint): New.
18298 (rl78_alloc_physical_registers_op2): Record location content.
18299 Optimize use of HL.
18300 (rl78_alloc_physical_registers_ro1): Likewise.
18301 (rl78_alloc_physical_registers_cmp): Likewise.
18302 (rl78_alloc_physical_registers_umul): Likewise.
18303 (rl78_alloc_address_registers_macax): New.
18304 (rl78_alloc_physical_registers): Initialize and set location
18305 content memory as needed.
18306 (rl78_reorg): Make sure split2 is called.
18307 (rl78_rtx_costs): New.
18308
18309 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
18310
18311 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18312 for (not (neg ...)) and (neg (not ...)) cases.
18313
18314 2013-09-11 Richard Biener <rguenther@suse.de>
18315
18316 PR middle-end/58377
18317 * passes.def: Split critical edges before late uninit warning passes.
18318 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18319
18320 2013-09-11 Jakub Jelinek <jakub@redhat.com>
18321
18322 PR tree-optimization/58385
18323 * fold-const.c (build_range_check): If both low and high are NULL,
18324 use omit_one_operand_loc to preserve exp side-effects.
18325
18326 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18327
18328 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18329
18330 2013-09-11 Richard Biener <rguenther@suse.de>
18331
18332 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18333 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18334 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18335 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18336 stmts_from_loop, known_dependences_p, build_empty_rdg,
18337 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18338 * tree-loop-distribution.c: ... here.
18339 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18340 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18341 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18342 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18343 * tree-loop-distribution.c: ... here.
18344 * tree-loop-distribution.c: Include gimple-pretty-print.h.
18345 (struct partition_s): Add loops member.
18346 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18347 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18348 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18349
18350 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18351 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18352 Sergey Lega <sergey.s.lega@intel.com>
18353 Anna Tikhonova <anna.tikhonova@intel.com>
18354 Ilya Tocar <ilya.tocar@intel.com>
18355 Andrey Turetskiy <andrey.turetskiy@intel.com>
18356 Ilya Verbin <ilya.verbin@intel.com>
18357 Kirill Yukhin <kirill.yukhin@intel.com>
18358 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18359
18360 * config/i386/constraints.md (k): New.
18361 (Yk): Ditto.
18362 * config/i386/i386.c (const regclass_map): Add new mask registers.
18363 (dbx_register_map): Ditto.
18364 (dbx64_register_map): Ditto.
18365 (svr4_dbx_register_map): Ditto.
18366 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18367 disabled.
18368 (ix86_preferred_reload_class): Disable constants for mask registers.
18369 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18370 (ix86_hard_regno_mode_ok): Support new mask registers.
18371 (x86_order_regs_for_local_alloc): Ditto.
18372 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18373 (FIXED_REGISTERS): Add new mask registers.
18374 (CALL_USED_REGISTERS): Ditto.
18375 (REG_ALLOC_ORDER): Ditto.
18376 (VALID_MASK_REG_MODE): New.
18377 (FIRST_MASK_REG): Ditto.
18378 (LAST_MASK_REG): Ditto.
18379 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18380 (MAYBE_MASK_CLASS_P): New.
18381 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18382 (REG_CLASS_CONTENTS): Ditto.
18383 (MASK_REGNO_P): New.
18384 (ANY_MASK_REG_P): Ditto.
18385 (HI_REGISTER_NAMES): Add new mask registers.
18386 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18387 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18388 mask registers.
18389 (attribute "type"): Add mskmov, msklog.
18390 (attribute "length_immediate"): Support them.
18391 (attribute "memory"): Ditto.
18392 (attribute "prefix_0f"): Ditto.
18393 (*movhi_internal): Support new mask registers.
18394 (*movqi_internal): Ditto.
18395 (define_split): Split out clobber pattern is a logic
18396 insn on mask registers.
18397 (*k<logic><mode>): New.
18398 (*andhi_1): Extend to support mask regs.
18399 (*andqi_1): Extend to support mask regs.
18400 (kandn<mode>): New.
18401 (define_split): Split and-not to and and not if operands
18402 are not mask regs.
18403 (*<code><mode>_1): Separate HI mode to new pattern...
18404 (*<code>hi_1): This.
18405 (*<code>qi_1): Extend to support mask regs.
18406 (kxnor<mode>): New.
18407 (kortestzhi): Ditto.
18408 (kortestchi): Ditto.
18409 (kunpckhi): Ditto.
18410 (*one_cmpl<mode>2_1): Remove HImode and handle it...
18411 (*one_cmplhi2_1): ...Here, now with mask registers support.
18412 (*one_cmplqi2_1): Support new mask registers.
18413 (HI/QImode arithmetics splitter): Don't split if mask registers
18414 are used.
18415 (HI/QImode not splitter): Ditto.
18416 * config/i386/predicated.md (mask_reg_operand): New.
18417 (general_reg_operand): Ditto.
18418
18419 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18420
18421 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18422 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18423
18424 2013-09-10 Jeff Law <law@redhat.com>
18425
18426 PR tree-optimization/58380
18427 * tree-ssa-threadupdate.c (thread_block): Recognize another case
18428 of threading through a buried loop header.
18429
18430 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18431 return value for single successor case.
18432
18433 2013-09-10 Jan Hubicka <jh@suse.cz>
18434
18435 * ipa-devirt.c (ipa_devirt): Enable with LTO.
18436
18437 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
18438
18439 PR target/58361
18440 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18441 support conditional execution.
18442 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18443
18444 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
18445
18446 * lra.c (lra): Clear lra_optional_reload_pseudos before every
18447 constraint pass.
18448 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18449 Check destination too to check move insn.
18450 (undo_optional_reloads): Add check that the original peudo did not
18451 changed its allocation and the optional reload was inherited on last
18452 inheritance pass. Break loop after deciding to keep optional reload.
18453 (lra_undo_inheritance): Add check that inherited pseudo still in
18454 memory.
18455
18456 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
18457
18458 * config/aarch64/aarch64.md (generic_sched): New.
18459 * config/aarch64/aarch64-generic.md (load): Make conditional
18460 on generic_sched attribute.
18461 (nonload): Likewise.
18462
18463 2013-09-10 Jan Hubicka <jh@suse.cz>
18464
18465 * lto-cgraph.c: Include ipa-utils.h.
18466 (compute_ltrans_boundary): Also add possible targets into the boundary.
18467
18468 2013-09-10 Jan Hubicka <jh@suse.cz>
18469
18470 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18471 VAR_DECL of vtable rather than full expression.
18472
18473 2013-09-10 Jan Hubicka <jh@suse.cz>
18474 Paolo Carlini <paolo.carlini@oracle.com>
18475
18476 * cgraphunit.c (analyze_functions): Save input_location, set it
18477 to UNKNOWN_LOCATION and restore it at the end.
18478
18479 2013-09-10 Martin Jambor <mjambor@suse.cz>
18480
18481 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18482 represented by a thunk.
18483
18484 2013-09-10 Jeff Law <law@redhat.com>
18485
18486 PR tree-optimization/58343
18487 * tree-ssa-threadupdate.c (thread_block): Identify and disable
18488 jump threading requests through loop headers buried in the middle
18489 of a jump threading path.
18490
18491 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18492 in return value/type.
18493
18494 2013-09-10 Jakub Jelinek <jakub@redhat.com>
18495
18496 PR rtl-optimization/58365
18497 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18498 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18499 it differs.
18500
18501 2013-09-10 Richard Biener <rguenther@suse.de>
18502
18503 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18504 * tree-data-ref.c (create_rdg_vertices): Collect all data
18505 references, signal failure to the caller, use data-ref API.
18506 (build_rdg): Compute data references only once. Maintain lifetime
18507 of data references and data dependences from within RDG.
18508 (free_rdg): Free dependence relations.
18509 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18510 inventing extra dependences.
18511 (distribute_loop): Update for RDG API changes.
18512
18513 2013-09-10 Kai Tietz <ktietz@redhat.com>
18514
18515 * doc/invoke.texi (fms-extensions): Document changed
18516 behavior for ms-abi targets.
18517 * config/i386/i386.c (ix86_option_override_internal):
18518 Set default value of option -fms-extension for ms-abi targets.
18519
18520 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18521
18522 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18523
18524 2013-09-10 Alan Modra <amodra@gmail.com>
18525
18526 PR target/58330
18527 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18528
18529 2013-09-10 Alan Modra <amodra@gmail.com>
18530
18531 * config/rs6000/predicates.md (add_cint_operand): New.
18532 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18533 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18534 using add_cint_operand.
18535 (largetoc_high_plus_aix): Likewise.
18536
18537 2013-09-09 Jakub Jelinek <jakub@redhat.com>
18538
18539 PR tree-optimization/58364
18540 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18541 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18542 the current range can't be an unconditional true or false.
18543
18544 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
18545
18546 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18547
18548 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
18549
18550 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18551
18552 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
18553
18554 PR c++/43452
18555 * doc/invoke.texi (-Wdelete-incomplete): Document it.
18556
18557 2013-09-09 Ian Bolton <ian.bolton@arm.com>
18558
18559 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18560 NO_REGS for immediate that can't be moved directly into FP_REGS.
18561
18562 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18563
18564 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18565 comparison with negated operand.
18566 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18567 RTL form.
18568
18569 2013-09-09 Richard Biener <rguenther@suse.de>
18570
18571 PR middle-end/58326
18572 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18573 of a subloop record all its block as affecting loop-closed SSA form.
18574
18575 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18576
18577 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18578 of an rtx/bitpos pair.
18579 (store_fixed_bit_field): Update accordingly.
18580
18581 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18582
18583 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18584 GEN_INT.
18585 * builtins.c (expand_errno_check): Likewise.
18586 * dwarf2cfi.c (init_return_column_size): Likewise.
18587 * except.c (sjlj_mark_call_sites): Likewise.
18588 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18589 * lra-constraints.c (emit_inc): Likewise.
18590 * ree.c (combine_set_extension): Likewise.
18591 * regmove.c (fixup_match_2): Likewise.
18592 * reload1.c (inc_for_reload): Likewise.
18593
18594 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18595
18596 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18597 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18598 Use gen_int_mode with the mode of the associated simplify_* call.
18599 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18600 * expmed.c (expand_shift_1): Likewise.
18601 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18602 * loop-iv.c (iv_number_of_iterations): Likewise.
18603 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18604 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18605
18606 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18607
18608 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18609 of the associated expand_* call.
18610 (asan_emit_stack_protection): Likewise.
18611 * builtins.c (round_trampoline_addr): Likewise.
18612 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18613 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18614 (emit_store_flag): Likewise.
18615 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18616 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18617 Likewise.
18618 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18619 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18620 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18621 * modulo-sched.c (generate_prolog_epilog): Likewise.
18622 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18623 (expand_ctz, expand_ffs, expand_unop): Likewise.
18624
18625 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18626
18627 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18628 of the associated gen_rtx_* call.
18629 * caller-save.c (init_caller_save): Likewise.
18630 * combine.c (find_split_point, make_extraction): Likewise.
18631 (make_compound_operation): Likewise.
18632 * dwarf2out.c (mem_loc_descriptor): Likewise.
18633 * explow.c (plus_constant, probe_stack_range): Likewise.
18634 * expmed.c (expand_mult_const): Likewise.
18635 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18636 * reload1.c (init_reload): Likewise.
18637 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18638 * var-tracking.c (adjust_mems): Likewise.
18639 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18640 rather than gen_rtx_fmt_ee.
18641
18642 2013-09-09 Jan Hubicka <jh@suse.cz>
18643
18644 PR middle-end/58294
18645 * value-prof.c (gimple_ic): Copy also abnormal edges.
18646
18647 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18648
18649 * asan.c (asan_shadow_cst): Use gen_int_mode.
18650
18651 2013-09-08 Jan Hubicka <jh@suse.cz>
18652
18653 * ipa-profile.c: Add toplevel comment.
18654 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18655 (contains_hot_call_p): New function.
18656 (ipa_propagate_frequency): Set frequencies based on counts when
18657 profile is read.
18658 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18659 profile; do not tamper with profile after inlining if it is read.
18660
18661 2013-09-08 Jan Hubicka <jh@suse.cz>
18662
18663 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18664 speculative edges.
18665
18666 2013-09-08 Jan Hubicka <jh@suse.cz>
18667
18668 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18669 summary generation.
18670
18671 2013-09-08 Jeff Law <law@redhat.com>
18672
18673 PR bootstrap/58340
18674 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18675 of 'found'.
18676
18677 2013-09-08 Andi Kleen <ak@linux.intel.com>
18678
18679 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18680
18681 2013-09-08 Jan Hubicka <jh@suse.cz>
18682
18683 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18684
18685 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18686
18687 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18688 for non-debug insns.
18689 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18690 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18691 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18692 accordingly.
18693
18694 2013-09-08 Jan Hubicka <jh@suse.cz>
18695
18696 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18697 targets and devirtualize to BUILT_IN_UNREACHABLE.
18698 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18699 * ipa.c (walk_polymorphic_call_targets): New function.
18700 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18701 functions; use the new timevar.
18702 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18703 was removed from the program.
18704 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18705 not consider it in the walk when its vtable is dead.
18706 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18707 record_binfo.
18708 (devirt_variable_node_removal_hook): New function.
18709 (possible_polymorphic_call_targets): Also register
18710 devirt_variable_node_removal_hook.
18711 (ipa_devirt): Do not do non-speculative devirtualization.
18712 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18713
18714 2013-09-08 Jan Hubicka <jh@suse.cz>
18715
18716 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18717 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18718 varpool_remove_variable_insertion_hook): Declare.
18719 * varpool.c (varpool_node_hook_list): New structure.
18720 (first_varpool_node_removal_hook,
18721 first_varpool_variable_insertion_hook): New variables.
18722 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18723 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18724 varpool_remove_variable_insertion_hook,
18725 varpool_call_variable_insertion_hooks): New functions.
18726 (varpool_remove_node): Use it.
18727
18728 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18729
18730 PR c++/54941
18731 * diagnostic.c (diagnostic_build_prefix): When s.file is
18732 "<built-in>" don't output line and column numbers.
18733
18734 2013-09-06 Jan Hubicka <jh@suse.cz>
18735
18736 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18737 * lto-streamer-out.c: Stream thunks, too.
18738 * lto-streamer-in.c (input_function): Pop cfun here
18739 (lto_read_body): Instead of here.
18740
18741 2013-09-06 Caroline Tice <cmtice@google.com>
18742
18743 * doc/install.texi: Add documentation for the --enable-vtable-verify
18744 and the --disable-libvtv configure options.
18745
18746 2013-09-06 Jeff Law <law@redhat.com>
18747
18748 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18749 edge implied equivalences into successor phis.
18750
18751 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18752
18753 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18754
18755 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18756
18757 * resource.c (mark_target_live_regs): Compute resources taking
18758 into account if a call is predicated or not.
18759
18760 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18761
18762 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18763 the compiler in the function names.
18764
18765 2013-09-06 Jan Hubicka <jh@suse.cz>
18766
18767 PR middle-end/58094
18768 * ipa-inline.c (has_caller_p): New function.
18769 (want_inline_function_to_all_callers_p): Use it.
18770 (sum_callers, inline_to_all_callers): Break out from ...
18771 (ipa_inline): ... here.
18772
18773 2013-09-06 Jan Hubicka <jh@suse.cz>
18774
18775 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18776 only when AVX is enabled.
18777
18778 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18779
18780 * config/aarch64/aarch64.md
18781 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18782 is fpsimd_<load/store>2.
18783 (load_pair<mode>): Likewise.
18784 (store_pair<mode>): Likewise.
18785
18786 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18787
18788 * config/arm/types.md (type): Add "mrs" type.
18789 * config/aarch64/aarch64.md
18790 (aarch64_load_tp_hard): Make type "mrs".
18791 * config/arm/arm.md
18792 (load_tp_hard): Make type "mrs".
18793 * config/arm/cortex-a15.md: Update with new attributes.
18794 * config/arm/cortex-a5.md: Update with new attributes.
18795 * config/arm/cortex-a53.md: Update with new attributes.
18796 * config/arm/cortex-a7.md: Update with new attributes.
18797 * config/arm/cortex-a8.md: Update with new attributes.
18798 * config/arm/cortex-a9.md: Update with new attributes.
18799 * config/arm/cortex-m4.md: Update with new attributes.
18800 * config/arm/cortex-r4.md: Update with new attributes.
18801 * config/arm/fa526.md: Update with new attributes.
18802 * config/arm/fa606te.md: Update with new attributes.
18803 * config/arm/fa626te.md: Update with new attributes.
18804 * config/arm/fa726te.md: Update with new attributes.
18805
18806 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18807
18808 * config/aarch64/aarch64.md
18809 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18810 (*movtf_aarch64): Likewise.
18811 * config/arm/arm.md
18812 (thumb1_movdi_insn): Use "multiple" for type where more than one
18813 instruction is used for a move.
18814 (*arm32_movhf): Likewise.
18815 (*thumb_movdf_insn): Likewise.
18816
18817 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18818
18819 * config/arm/types.md (type): Rename fcpys to fmov.
18820 * config/arm/vfp.md
18821 (*arm_movsi_vfp): Rename type fcpys as fmov.
18822 (*thumb2_movsi_vfp): Likewise
18823 (*movhf_vfp_neon): Likewise
18824 (*movhf_vfp): Likewise
18825 (*movsf_vfp): Likewise
18826 (*thumb2_movsf_vfp): Likewise
18827 (*movsfcc_vfp): Likewise
18828 (*thumb2_movsfcc_vfp): Likewise
18829 * config/aarch64/aarch64-simd.md
18830 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18831 * config/aarch64/aarch64.md
18832 (*movsi_aarch64): Replace type mov_reg with fmovs.
18833 (*movdi_aarch64): Likewise
18834 (*movsf_aarch64): Likewise
18835 (*movdf_aarch64): Likewise
18836 * config/arm/arm.c
18837 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18838 * config/arm/iwmmxt.md
18839 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18840 * config/arm/arm1020e.md: Update with new attributes.
18841 * config/arm/cortex-a15-neon.md: Update with new attributes.
18842 * config/arm/cortex-a5.md: Update with new attributes.
18843 * config/arm/cortex-a53.md: Update with new attributes.
18844 * config/arm/cortex-a7.md: Update with new attributes.
18845 * config/arm/cortex-a8-neon.md: Update with new attributes.
18846 * config/arm/cortex-a9.md: Update with new attributes.
18847 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18848 * config/arm/cortex-r4f.md: Update with new attributes.
18849 * config/arm/marvell-pj4.md: Update with new attributes.
18850 * config/arm/vfp11.md: Update with new attributes.
18851
18852 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18853
18854 * config/aarch64/aarch64.md
18855 (*madd<mode>): Fix type attribute.
18856 (*maddsi_uxtw): Likewise.
18857 (*msub<mode>): Likewise.
18858 (*msubsi_uxtw): Likewise.
18859 (<su_optab>maddsidi4): Likewise.
18860 (<su_optab>msubsidi4): Likewise.
18861
18862 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18863
18864 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18865 * config/arm/arm.md (core_cycles): Remove fdiv.
18866 * config/arm/vfp.md:
18867 (*sqrtsf2_vfp): Update for attribute changes.
18868 (*sqrtdf2_vfp): Likewise.
18869 * config/aarch64/aarch64.md:
18870 (sqrt<mode>2): Update for attribute changes.
18871 * config/arm/arm1020e.md: Update with new attributes.
18872 * config/arm/cortex-a15-neon.md: Update with new attributes.
18873 * config/arm/cortex-a5.md: Update with new attributes.
18874 * config/arm/cortex-a53.md: Update with new attributes.
18875 * config/arm/cortex-a7.md: Update with new attributes.
18876 * config/arm/cortex-a8-neon.md: Update with new attributes.
18877 * config/arm/cortex-a9.md: Update with new attributes.
18878 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18879 * config/arm/cortex-r4f.md: Update with new attributes.
18880 * config/arm/marvell-pj4.md: Update with new attributes.
18881 * config/arm/vfp11.md: Update with new attributes.
18882
18883 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18884
18885 * config/arm/types.md
18886 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18887 * config/aarch64/aarch64.md
18888 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18889 new attributes.
18890 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18891 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18892 (float<GPI:mode><GPF:mode>2): Likewise.
18893 * config/arm/vfp.md
18894 (*truncsisf2_vfp): Update with new attributes.
18895 (*truncsidf2_vfp): Likewise.
18896 (fixuns_truncsfsi2): Likewise.
18897 (fixuns_truncdfsi2): Likewise.
18898 (*floatsisf2_vfp): Likewise.
18899 (*floatsidf2_vfp): Likewise.
18900 (floatunssisf2): Likewise.
18901 (floatunssidf2): Likewise.
18902 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18903 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18904 * config/arm/arm1020e.md: Update with new attributes.
18905 * config/arm/cortex-a15-neon.md: Update with new attributes.
18906 * config/arm/cortex-a5.md: Update with new attributes.
18907 * config/arm/cortex-a53.md: Update with new attributes.
18908 * config/arm/cortex-a7.md: Update with new attributes.
18909 * config/arm/cortex-a8-neon.md: Update with new attributes.
18910 * config/arm/cortex-a9.md: Update with new attributes.
18911 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18912 * config/arm/cortex-r4f.md: Update with new attributes.
18913 * config/arm/marvell-pj4.md: Update with new attributes.
18914 * config/arm/vfp11.md: Update with new attributes.
18915
18916 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18917
18918 * config/aarch64/arm_neon.h
18919 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18920 (vqtbx<1,2,3,4><q>_s8): Likewise.
18921
18922 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18923
18924 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18925 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18926 (add<mode>3): Add type attribute.
18927 (add<mode>3): Likewise.
18928 (usadd<mode>3): Likewise.
18929 (ssadd<mode>3): Likewise.
18930 (sub<mode>3): Likewise.
18931 (sub<mode>3): Likewise.
18932 (ussub<mode>3): Likewise.
18933 (sssub<mode>3): Likewise.
18934 (ssmulsa3): Likewise.
18935 (usmulusa3): Likewise.
18936 (arm_usatsihi): Likewise.
18937 * config/arm/vfp.md
18938 (*movdi_vfp): Add types for all instructions.
18939 (*movdi_vfp_cortexa8): Likewise.
18940 (*movhf_vfp_neon): Likewise.
18941 (*movhf_vfp): Likewise.
18942 (*movdf_vfp): Likewise.
18943 (*thumb2_movdf_vfp): Likewise.
18944 (*thumb2_movdfcc_vfp): Likewise.
18945 * config/arm/arm.md: Add type attribute to all insn patterns.
18946 (*thumb1_adddi3): Add type attribute.
18947 (*arm_adddi3): Likewise.
18948 (*adddi_sesidi_di): Likewise.
18949 (*adddi_zesidi_di): Likewise.
18950 (*thumb1_addsi3): Likewise.
18951 (addsi3_compare0): Likewise.
18952 (*addsi3_compare0_scratch): Likewise.
18953 (*compare_negsi_si): Likewise.
18954 (cmpsi2_addneg): Likewise.
18955 (*addsi3_carryin_<optab>): Likewise.
18956 (*addsi3_carryin_alt2_<optab>): Likewise.
18957 (*addsi3_carryin_clobercc_<optab>): Likewise.
18958 (*subsi3_carryin): Likewise.
18959 (*subsi3_carryin_const): Likewise.
18960 (*subsi3_carryin_compare): Likewise.
18961 (*subsi3_carryin_compare_const): Likewise.
18962 (*arm_subdi3): Likewise.
18963 (*thumb_subdi3): Likewise.
18964 (*subdi_di_zesidi): Likewise.
18965 (*subdi_di_sesidi): Likewise.
18966 (*subdi_zesidi_di): Likewise.
18967 (*subdi_sesidi_di): Likewise.
18968 (*subdi_zesidi_ze): Likewise.
18969 (thumb1_subsi3_insn): Likewise.
18970 (*arm_subsi3_insn): Likewise.
18971 (*anddi3_insn): Likewise.
18972 (*anddi_zesidi_di): Likewise.
18973 (*anddi_sesdi_di): Likewise.
18974 (*ne_zeroextracts): Likewise.
18975 (*ne_zeroextracts): Likewise.
18976 (*ite_ne_zeroextr): Likewise.
18977 (*ite_ne_zeroextr): Likewise.
18978 (*anddi_notdi_di): Likewise.
18979 (*anddi_notzesidi): Likewise.
18980 (*anddi_notsesidi): Likewise.
18981 (andsi_notsi_si): Likewise.
18982 (thumb1_bicsi3): Likewise.
18983 (*iordi3_insn): Likewise.
18984 (*iordi_zesidi_di): Likewise.
18985 (*iordi_sesidi_di): Likewise.
18986 (*thumb1_iorsi3_insn): Likewise.
18987 (*xordi3_insn): Likewise.
18988 (*xordi_zesidi_di): Likewise.
18989 (*xordi_sesidi_di): Likewise.
18990 (*arm_xorsi3): Likewise.
18991 (*andsi_iorsi3_no): Likewise.
18992 (*smax_0): Likewise.
18993 (*smax_m1): Likewise.
18994 (*arm_smax_insn): Likewise.
18995 (*smin_0): Likewise.
18996 (*arm_smin_insn): Likewise.
18997 (*arm_umaxsi3): Likewise.
18998 (*arm_uminsi3): Likewise.
18999 (*minmax_arithsi): Likewise.
19000 (*minmax_arithsi_): Likewise.
19001 (*satsi_<SAT:code>): Likewise.
19002 (arm_ashldi3_1bit): Likewise.
19003 (arm_ashrdi3_1bit): Likewise.
19004 (arm_lshrdi3_1bit): Likewise.
19005 (*arm_negdi2): Likewise.
19006 (*thumb1_negdi2): Likewise.
19007 (*arm_negsi2): Likewise.
19008 (*thumb1_negsi2): Likewise.
19009 (*negdi_extendsid): Likewise.
19010 (*negdi_zero_extend): Likewise.
19011 (*arm_abssi2): Likewise.
19012 (*thumb1_abssi2): Likewise.
19013 (*arm_neg_abssi2): Likewise.
19014 (*thumb1_neg_abss): Likewise.
19015 (one_cmpldi2): Likewise.
19016 (extend<mode>di2): Likewise.
19017 (*compareqi_eq0): Likewise.
19018 (*arm_extendhisi2addsi): Likewise.
19019 (*arm_movdi): Likewise.
19020 (*thumb1_movdi_insn): Likewise.
19021 (*arm_movt): Likewise.
19022 (*thumb1_movsi_insn): Likewise.
19023 (pic_add_dot_plus_four): Likewise.
19024 (pic_add_dot_plus_eight): Likewise.
19025 (tls_load_dot_plus_eight): Likewise.
19026 (*thumb1_movhi_insn): Likewise.
19027 (*thumb1_movsf_insn): Likewise.
19028 (*movdf_soft_insn): Likewise.
19029 (*thumb_movdf_insn): Likewise.
19030 (cbranchsi4_insn): Likewise.
19031 (cbranchsi4_scratch): Likewise.
19032 (*negated_cbranchsi4): Likewise.
19033 (*tbit_cbranch): Likewise.
19034 (*tlobits_cbranch): Likewise.
19035 (*tstsi3_cbranch): Likewise.
19036 (*cbranchne_decr1): Likewise.
19037 (*addsi3_cbranch): Likewise.
19038 (*addsi3_cbranch_scratch): Likewise.
19039 (*arm_cmpdi_insn): Likewise.
19040 (*arm_cmpdi_unsig): Likewise.
19041 (*arm_cmpdi_zero): Likewise.
19042 (*thumb_cmpdi_zero): Likewise.
19043 (*deleted_compare): Likewise.
19044 (*mov_scc): Likewise.
19045 (*mov_negscc): Likewise.
19046 (*mov_notscc): Likewise.
19047 (*cstoresi_eq0_thumb1_insn): Likewise.
19048 (cstoresi_nltu_thumb1): Likewise.
19049 (cstoresi_ltu_thu): Likewise.
19050 (thumb1_addsi3_addgeu): Likewise.
19051 (*arm_jump): Likewise.
19052 (*thumb_jump): Likewise.
19053 (*check_arch2): Likewise.
19054 (arm_casesi_internal): Likewise.
19055 (thumb1_casesi_dispatch): Likewise.
19056 (*arm_indirect_jump): Likewise.
19057 (*thumb1_indirect_jump): Likewise.
19058 (nop): Likewise.
19059 (*and_scc): Likewise.
19060 (*ior_scc): Likewise.
19061 (*compare_scc): Likewise.
19062 (*cond_move): Likewise.
19063 (*cond_arith): Likewise.
19064 (*cond_sub): Likewise.
19065 (*cmp_ite0): Likewise.
19066 (*cmp_ite1): Likewise.
19067 (*cmp_and): Likewise.
19068 (*cmp_ior): Likewise.
19069 (*ior_scc_scc): Likewise.
19070 (*ior_scc_scc_cmp): Likewise.
19071 (*and_scc_scc): Likewise.
19072 (*and_scc_scc_cmp): Likewise.
19073 (*and_scc_scc_nod): Likewise.
19074 (*negscc): Likewise.
19075 (movcond_addsi): Likewise.
19076 (movcond): Likewise.
19077 (*ifcompare_plus_move): Likewise.
19078 (*if_plus_move): Likewise.
19079 (*ifcompare_move_plus): Likewise.
19080 (*if_move_plus): Likewise.
19081 (*ifcompare_arith_arith): Likewise.
19082 (*if_arith_arith): Likewise.
19083 (*ifcompare_arith_move): Likewise.
19084 (*if_arith_move): Likewise.
19085 (*ifcompare_move_arith): Likewise.
19086 (*if_move_arith): Likewise.
19087 (*ifcompare_move_not): Likewise.
19088 (*if_move_not): Likewise.
19089 (*ifcompare_not_move): Likewise.
19090 (*if_not_move): Likewise.
19091 (*ifcompare_shift_move): Likewise.
19092 (*if_shift_move): Likewise.
19093 (*ifcompare_move_shift): Likewise.
19094 (*if_move_shift): Likewise.
19095 (*ifcompare_shift_shift): Likewise.
19096 (*ifcompare_not_arith): Likewise.
19097 (*ifcompare_arith_not): Likewise.
19098 (*if_arith_not): Likewise.
19099 (*ifcompare_neg_move): Likewise.
19100 (*if_neg_move): Likewise.
19101 (*ifcompare_move_neg): Likewise.
19102 (*if_move_neg): Likewise.
19103 (prologue_thumb1_interwork): Likewise.
19104 (*cond_move_not): Likewise.
19105 (*sign_extract_onebit): Likewise.
19106 (*not_signextract_onebit): Likewise.
19107 (stack_tie): Likewise.
19108 (align_4): Likewise.
19109 (align_8): Likewise.
19110 (consttable_end): Likewise.
19111 (consttable_1): Likewise.
19112 (consttable_2): Likewise.
19113 (consttable_4): Likewise.
19114 (consttable_8): Likewise.
19115 (consttable_16): Likewise.
19116 (*thumb1_tablejump): Likewise.
19117 (prefetch): Likewise.
19118 (force_register_use): Likewise.
19119 (thumb_eh_return): Likewise.
19120 (load_tp_hard): Likewise.
19121 (load_tp_soft): Likewise.
19122 (tlscall): Likewise.
19123 (*arm_movtas_ze): Likewise.
19124 (*arm_rev): Likewise.
19125 (*arm_revsh): Likewise.
19126 (*arm_rev16): Likewise.
19127 * config/arm/thumb2.md
19128 (*thumb2_smaxsi3): Likewise.
19129 (*thumb2_sminsi3): Likewise.
19130 (*thumb32_umaxsi3): Likewise.
19131 (*thumb2_uminsi3): Likewise.
19132 (*thumb2_negdi2): Likewise.
19133 (*thumb2_abssi2): Likewise.
19134 (*thumb2_neg_abss): Likewise.
19135 (*thumb2_movsi_insn): Likewise.
19136 (tls_load_dot_plus_four): Likewise.
19137 (*thumb2_movhi_insn): Likewise.
19138 (*thumb2_mov_scc): Likewise.
19139 (*thumb2_mov_negs): Likewise.
19140 (*thumb2_mov_negs): Likewise.
19141 (*thumb2_mov_nots): Likewise.
19142 (*thumb2_mov_nots): Likewise.
19143 (*thumb2_movsicc_): Likewise.
19144 (*thumb2_movsfcc_soft_insn): Likewise.
19145 (*thumb2_indirect_jump): Likewise.
19146 (*thumb2_and_scc): Likewise.
19147 (*thumb2_ior_scc): Likewise.
19148 (*thumb2_ior_scc_strict_it): Likewise.
19149 (*thumb2_cond_move): Likewise.
19150 (*thumb2_cond_arith): Likewise.
19151 (*thumb2_cond_ari): Likewise.
19152 (*thumb2_cond_sub): Likewise.
19153 (*thumb2_negscc): Likewise.
19154 (*thumb2_movcond): Likewise.
19155 (thumb2_casesi_internal): Likewise.
19156 (thumb2_casesi_internal_pic): Likewise.
19157 (*thumb2_alusi3_short): Likewise.
19158 (*thumb2_mov<mode>_shortim): Likewise.
19159 (*thumb2_addsi_short): Likewise.
19160 (*thumb2_subsi_short): Likewise.
19161 (thumb2_addsi3_compare0): Likewise.
19162 (*thumb2_cbz): Likewise.
19163 (*thumb2_cbnz): Likewise.
19164 (*thumb2_one_cmplsi2_short): Likewise.
19165 (*thumb2_negsi2_short): Likewise.
19166 (*orsi_notsi_si): Likewise.
19167 * config/arm/arm1020e.md: Update with new attributes.
19168 * config/arm/arm1026ejs.md: Update with new attributes.
19169 * config/arm/arm1136jfs.md: Update with new attributes.
19170 * config/arm/arm926ejs.md: Update with new attributes.
19171 * config/arm/cortex-a15.md: Update with new attributes.
19172 * config/arm/cortex-a5.md: Update with new attributes.
19173 * config/arm/cortex-a53.md: Update with new attributes.
19174 * config/arm/cortex-a7.md: Update with new attributes.
19175 * config/arm/cortex-a8.md: Update with new attributes.
19176 * config/arm/cortex-a9.md: Update with new attributes.
19177 * config/arm/cortex-m4.md: Update with new attributes.
19178 * config/arm/cortex-r4.md: Update with new attributes.
19179 * config/arm/fa526.md: Update with new attributes.
19180 * config/arm/fa606te.md: Update with new attributes.
19181 * config/arm/fa626te.md: Update with new attributes.
19182 * config/arm/fa726te.md: Update with new attributes.
19183
19184 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19185
19186 * config/aarch64/aarch64-simd.md
19187 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19188 <vwx> iterator to ensure correct register choice.
19189 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19190 (aarch64_sqdmull_n<mode>): Likewise.
19191 (aarch64_sqdmull2_n<mode>_internal): Likewise.
19192 * config/aarch64/arm_neon.h
19193 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19194 (vml<as><q>_n_<su>16): Likewise.
19195 (vml<as>l_high_lane<q>_<su>16): Likewise.
19196 (vml<as>l_high_n_<su>16): Likewise.
19197 (vml<as>l_lane<q>_<su>16): Likewise.
19198 (vml<as>l_n_<su>16): Likewise.
19199 (vmul<q>_lane<q>_<su>16): Likewise.
19200 (vmul<q>_n_<su>16): Likewise.
19201 (vmull_lane<q>_<su>16): Likewise.
19202 (vmull_n_<su>16): Likewise.
19203 (vmull_high_lane<q>_<su>16): Likewise.
19204 (vmull_high_n_<su>16): Likewise.
19205 (vqrdmulh<q>_n_s16): Likewise.
19206
19207 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
19208
19209 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19210 have the correct lane parameter.
19211
19212 2013-09-06 Richard Biener <rguenther@suse.de>
19213
19214 * cfganal.c (control_dependences::~control_dependences):
19215 Properly free all of the vector.
19216
19217 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
19218
19219 PR target/58269
19220 * config/i386/i386.c (ix86_conditional_register_usage):
19221 Proper initialize extended SSE registers.
19222
19223 2013-09-06 Jan Hubicka <jh@suse.cz>
19224
19225 PR tree-optimization/58311
19226 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19227
19228 2013-09-06 Jan Hubicka <jh@suse.cz>
19229
19230 * Makefile.in (tree-sra.o): Update dependencies.
19231 * tree-sra.c: Include ipa-utils.h
19232 (scan_function): Use recursive_call_p.
19233 (has_caller_p): New function.
19234 (cgraph_for_node_and_aliases): Count also callers of aliases.
19235
19236 2013-09-06 Jan Hubicka <jh@suse.cz>
19237
19238 PR middle-end/58094
19239 * cgraph.h (symtab_semantically_equivalent_p): Declare.
19240 * tree-tailcall.c: Include ipa-utils.h.
19241 (find_tail_calls): Use it.
19242 * ipa-pure-const.c (check_call): Likewise.
19243 * ipa-utils.c (recursive_call_p): New function.
19244 * ipa-utils.h (recursive_call_p): Dclare.
19245 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19246 (symtab_semantically_equivalent_p): New function.
19247 * Makefile.in (tree-tailcall.o): Update dependencies.
19248
19249 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19250
19251 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19252 non-inlinable part.
19253
19254 2013-09-06 Richard Biener <rguenther@suse.de>
19255
19256 * lto-streamer.h (lto_global_var_decls): Remove.
19257 * Makefile.in (OBJS): Remove lto-symtab.o.
19258 (lto-symtab.o): Remove.
19259 (GTFILES): Remove lto-symtab.c
19260 * lto-symtab.c: Move to lto/
19261
19262 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19263
19264 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19265 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19266 (UNSPEC_FPINT_RINT): New constant definitions.
19267 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19268 definition with 2 attributes.
19269 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19270 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19271 definitions.
19272
19273 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19274
19275 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19276 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19277 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
19278 attribute to "z196_alone".
19279 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19280 "zEC12_simple".
19281
19282 2013-09-06 Richard Biener <rguenther@suse.de>
19283
19284 * basic-block.h (class control_dependences): New.
19285 * tree-ssa-dce.c (control_dependence_map): Remove.
19286 (cd): New global.
19287 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19288 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19289 find_pdom, find_control_dependence, find_all_control_dependences):
19290 Move to cfganal.c.
19291 (mark_control_dependent_edges_necessary,
19292 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19293 tree_dce_done, perform_tree_ssa_dce): Adjust.
19294 * cfganal.c (set_control_dependence_map_bit,
19295 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19296 find_all_control_dependences): Move from tree-ssa-dce.c and
19297 implement as methods of control_dependences class.
19298 (control_dependences::control_dependences): New.
19299 (control_dependences::~control_dependences): Likewise.
19300 (control_dependences::get_edges_dependent_on): Likewise.
19301 (control_dependences::get_edge): Likewise.
19302
19303 2013-09-04 Jan Hubicka <jh@suse.cz>
19304
19305 * tree.c (types_same_for_odr): Drop overactive check.
19306 * ipa-devirt.c (hash_type_name): Likewise.
19307
19308 2013-09-04 Jan Hubicka <jh@suse.cz>
19309
19310 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19311 (analyze_functions): ... here.
19312
19313 2013-09-04 Jan Hubicka <jh@suse.cz>
19314
19315 PR middle-end/58201
19316 * cgraphunit.c (analyze_functions): Clear AUX fields
19317 after processing; initialize assembler name has.
19318
19319 2013-09-05 Jeff Law <law@redhat.com>
19320
19321 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19322 from thread_around_empty_block. Record threading path into PATH.
19323 Recurse if threading through the initial block is successful.
19324 (thread_across_edge): Corresponding changes to slightly simplify.
19325
19326 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19327
19328 * config/aarch64/aarch64.md
19329 (type): Remove frecpe, frecps, frecpx.
19330 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19331 fix to be a TARGET_SIMD instruction.
19332 (aarch64_frecps): Remove.
19333 * config/aarch64/aarch64-simd.md
19334 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19335 (aarch64_frecps<mode>): Handle all float/vector of float modes.
19336
19337 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19338 Sofiane Naci <sofiane.naci@arm.com>
19339
19340 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19341 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19342 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19343 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19344 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
19345 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19346 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
19347 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
19348 into "clz, "rbit". Rename "shift" to "shift_imm".
19349 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19350 changes. Update for attribute changes all occurrences of arlo_* and
19351 shift* types.
19352 * config/arm/arm-fixed.md: Update for attribute changes
19353 all occurrences of arlo_* types.
19354 * config/arm/thumb2.md: Update for attribute changes all occurrences
19355 of arlo_* types.
19356 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
19357 (cortexa7_older_only): Likewise.
19358 (cortexa7_younger): Likewise.
19359 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19360 (1020alu_shift_op): Likewise.
19361 (1020alu_shift_reg_op): Likewise.
19362 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19363 (alu_shift_op): Likewise.
19364 (alu_shift_reg_op): Likewise.
19365 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19366 (11_alu_shift_op): Likewise.
19367 (11_alu_shift_reg_op): Likewise.
19368 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19369 (9_alu_shift_reg_op): Likewise.
19370 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19371 attribute changes.
19372 (cortex_a15_alu_shift): Likewise.
19373 (cortex_a15_alu_shift_reg): Likewise.
19374 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19375 attribute changes.
19376 (cortex_a5_alu_shift): Likewise.
19377 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19378 attribute changes.
19379 (cortex_a53_alu_shift): Likewise.
19380 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19381 attribute changes.
19382 (cortex_a7_alu_reg): Likewise.
19383 (cortex_a7_alu_shift): Likewise.
19384 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19385 attribute changes.
19386 (cortex_a8_alu_shift): Likewise.
19387 (cortex_a8_alu_shift_reg): Likewise.
19388 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19389 (cortex_a9_dp_shift): Likewise.
19390 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19391 attribute changes.
19392 * config/arm/cortex-r4.md
19393 (cortex_r4_alu): Update for attribute changes.
19394 (cortex_r4_mov): Likewise.
19395 (cortex_r4_alu_shift_reg): Likewise.
19396 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19397 (526_alu_shift_op): Likewise.
19398 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19399 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19400 (626te_alu_shift_op): Likewise.
19401 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19402 (726te_alu_shift_op): Likewise.
19403 (726te_alu_shift_reg_op): Likewise.
19404 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19405 (mp626_alu_shift_op): Likewise.
19406 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19407 (pj4_alu_conds): Likewise.
19408 (pj4_shift): Likewise.
19409 (pj4_shift_conds): Likewise.
19410 (pj4_alu_shift): Likewise.
19411 (pj4_alu_shift_conds): Likewise.
19412 * config/aarch64/aarch64.md: Update for attribute change
19413 all occurrences of arlo_* and shift* types.
19414
19415 2013-09-05 Mike Stump <mikestump@comcast.net>
19416
19417 * tree.h: Move documentation for tree_function_decl to tree-core.h
19418 with the declaration.
19419
19420 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
19421
19422 PR target/58139
19423 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19424 looking for widest mode.
19425
19426 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
19427
19428 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19429
19430 2013-09-05 Richard Biener <rguenther@suse.de>
19431
19432 PR tree-optimization/58137
19433 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19434 Do not create vectors of pointers.
19435 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19436 types for the components of the vector initializer.
19437 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19438 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19439
19440 2013-09-05 Martin Jambor <mjambor@suse.cz>
19441
19442 * ipa-prop.c (remove_described_reference): Accept missing references,
19443 return false if that hppens, otherwise return true.
19444 (cgraph_node_for_jfunc): New function.
19445 (try_decrement_rdesc_refcount): Likewise.
19446 (try_make_edge_direct_simple_call): Use them.
19447 (ipa_edge_removal_hook): Remove references from rdescs.
19448 (ipa_edge_duplication_hook): Clone rdescs and their references
19449 when the new edge has the same caller as the old one.
19450 * cgraph.c (cgraph_resolve_speculation): Remove speculative
19451 reference before removing any edges.
19452
19453 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
19454
19455 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19456 initial store.
19457 * thumb2.md (thumb2_storewb_parisi): New pattern.
19458
19459 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
19460
19461 * config/aarch64/aarch64-option-extensions.def: Add
19462 AARCH64_OPT_EXTENSION of 'crc'.
19463 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19464 (AARCH64_ISA_CRC): Ditto.
19465 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19466 description of the CRC extension.
19467
19468 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
19469
19470 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19471 * config/rs6000/linux.h: Ditto.
19472 * alpha/linux.h: Ditto.
19473 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19474 no_c99_libc_has_function.
19475 * config/c6x/uclinux-elf.h: Ditto.
19476 * config/lm32/uclinux-elf.h: Ditto.
19477 * config/m68k/uclinux.h: Ditto.
19478 * config/moxie/uclinux.h: Ditto.
19479 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19480 (crisv32-*-linux*, cris-*-linux*): Ditto.
19481 * config/bfin/bfin.c: Include "tm_p.h".
19482
19483 2013-09-05 Richard Biener <rguenther@suse.de>
19484
19485 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19486 check for a definition without a basic-block.
19487
19488 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19489 Sofiane Naci <sofiane.naci@arm.com>
19490
19491 * config/aarch64/aarch64.md
19492 (*movti_aarch64): Rename r_2_f and f_2_r.
19493 (*movsf_aarch64): Likewise.
19494 (*movdf_aarch64): Likewise.
19495 (*movtf_aarch64): Likewise.
19496 (aarch64_movdi_<mode>low): Likewise.
19497 (aarch64_movdi_<mode>high): Likewise.
19498 (aarch64_mov<mode>high_di): Likewise.
19499 (aarch64_mov<mode>low_di): Likewise.
19500 (aarch64_movtilow_tilow): Likewise.
19501 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
19502 values to config/arm/types.md
19503 (attribute "conds"): Update for attribute change.
19504 (anddi3_insn): Likewise.
19505 (iordi3_insn): Likewise.
19506 (xordi3_insn): Likewise.
19507 (one_cmpldi2): Likewise.
19508 * config/arm/types.md (type): Add Neon types.
19509 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19510 use "type" attribute.
19511 (movmisalign<mode>_neon_store): Likewise.
19512 (movmisalign<mode>_neon_load): Likewise.
19513 (vec_set<mode>_internal): Likewise.
19514 (vec_setv2di_internal): Likewise.
19515 (vec_extract<mode>): Likewise.
19516 (vec_extractv2di): Likewise.
19517 (add<mode>3_neon): Likewise.
19518 (adddi3_neon): Likewise.
19519 (sub<mode>3_neon): Likewise.
19520 (subdi3_neon): Likewise.
19521 (mul<mode>3_neon): Likewise.
19522 (mul<mode>3add<mode>_neon): Likewise.
19523 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19524 (fma<VCVTF:mode>4)): Likewise.
19525 (fma<VCVTF:mode>4_intrinsic): Likewise.
19526 (fmsub<VCVTF:mode>4)): Likewise.
19527 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19528 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19529 (ior<mode>3): Likewise.
19530 (and<mode>3): Likewise.
19531 (anddi3_neon): Likewise.
19532 (orn<mode>3_neon): Likewise.
19533 (orndi3_neon): Likewise.
19534 (bic<mode>3_neon): Likewise.
19535 (bicdi3_neon): Likewise.
19536 (xor<mode>3): Likewise.
19537 (one_cmpl<mode>2): Likewise.
19538 (abs<mode>2): Likewise.
19539 (neg<mode>2): Likewise.
19540 (umin<mode>3_neon): Likewise.
19541 (umax<mode>3_neon): Likewise.
19542 (smin<mode>3_neon): Likewise.
19543 (smax<mode>3_neon): Likewise.
19544 (vashl<mode>3): Likewise.
19545 (vashr<mode>3_imm): Likewise.
19546 (vlshr<mode>3_imm): Likewise.
19547 (ashl<mode>3_signed): Likewise.
19548 (ashl<mode>3_unsigned): Likewise.
19549 (neon_load_count): Likewise.
19550 (ashldi3_neon_noclobber): Likewise.
19551 (signed_shift_di3_neon): Likewise.
19552 (unsigned_shift_di3_neon): Likewise.
19553 (ashrdi3_neon_imm_noclobber): Likewise.
19554 (lshrdi3_neon_imm_noclobber): Likewise.
19555 (widen_ssum<mode>3): Likewise.
19556 (widen_usum<mode>3): Likewise.
19557 (quad_halves_<code>v4si): Likewise.
19558 (quad_halves_<code>v4sf): Likewise.
19559 (quad_halves_<code>v8hi): Likewise.
19560 (quad_halves_<code>v16qi): Likewise.
19561 (reduc_splus_v2di): Likewise.
19562 (neon_vpadd_internal<mode>): Likewise.
19563 (neon_vpsmin<mode>): Likewise.
19564 (neon_vpsmax<mode>): Likewise.
19565 (neon_vpumin<mode>): Likewise.
19566 (neon_vpumax<mode>): Likewise.
19567 (ss_add<mode>_neon): Likewise.
19568 (us_add<mode>_neon): Likewise.
19569 (ss_sub<mode>_neon): Likewise.
19570 (us_sub<mode>_neon): Likewise.
19571 (neon_vadd<mode>_unspec): Likewise.
19572 (neon_vaddl<mode>): Likewise.
19573 (neon_vaddw<mode>): Likewise.
19574 (neon_vhadd<mode>): Likewise.
19575 (neon_vqadd<mode>): Likewise.
19576 (neon_vaddhn<mode>): Likewise.
19577 (neon_vmul<mode>): Likewise.
19578 (neon_vmla<mode>): Likewise.
19579 (neon_vmlal<mode>): Likewise.
19580 (neon_vmls<mode>): Likewise.
19581 (neon_vmlsl<mode>): Likewise.
19582 (neon_vqdmulh<mode>): Likewise.
19583 (neon_vqdmlal<mode>): Likewise.
19584 (neon_vqdmlsl<mode>): Likewise.
19585 (neon_vmull<mode>): Likewise.
19586 (neon_vqdmull<mode>): Likewise.
19587 (neon_vsub<mode>_unspec): Likewise.
19588 (neon_vsubl<mode>): Likewise.
19589 (neon_vsubw<mode>): Likewise.
19590 (neon_vqsub<mode>): Likewise.
19591 (neon_vhsub<mode>): Likewise.
19592 (neon_vsubhn<mode>): Likewise.
19593 (neon_vceq<mode>): Likewise.
19594 (neon_vcge<mode>): Likewise.
19595 (neon_vcgeu<mode>): Likewise.
19596 (neon_vcgt<mode>): Likewise.
19597 (neon_vcgtu<mode>): Likewise.
19598 (neon_vcle<mode>): Likewise.
19599 (neon_vclt<mode>): Likewise.
19600 (neon_vcage<mode>): Likewise.
19601 (neon_vcagt<mode>): Likewise.
19602 (neon_vtst<mode>): Likewise.
19603 (neon_vabd<mode>): Likewise.
19604 (neon_vabdl<mode>): Likewise.
19605 (neon_vaba<mode>): Likewise.
19606 (neon_vabal<mode>): Likewise.
19607 (neon_vmax<mode>): Likewise.
19608 (neon_vmin<mode>): Likewise.
19609 (neon_vpaddl<mode>): Likewise.
19610 (neon_vpadal<mode>): Likewise.
19611 (neon_vpmax<mode>): Likewise.
19612 (neon_vpmin<mode>): Likewise.
19613 (neon_vrecps<mode>): Likewise.
19614 (neon_vrsqrts<mode>): Likewise.
19615 (neon_vqabs<mode>): Likewise.
19616 (neon_vqneg<mode>): Likewise.
19617 (neon_vcls<mode>): Likewise.
19618 (clz<mode>2): Likewise.
19619 (popcount<mode>2): Likewise.
19620 (neon_vrecpe): Likewise.
19621 (neon_vrsqrte): Likewise.
19622 (neon_vget_lane<mode>_sext_internal): Likewise.
19623 (neon_vget_lane<mode>_zext_internal): Likewise.
19624 (neon_vdup_n<mode>): Likewise.
19625 (neon_vdup_nv2di): Likewise.
19626 (neon_vdpu_lane<mode>_internal): Likewise.
19627 (neon_vswp<mode>): Likewise.
19628 (float<mode><V_cvtto>2): Likewise.
19629 (floatuns<mode><V_cvtto>2): Likewise.
19630 (fix_trunc<mode><V_cvtto>)2): Likewise
19631 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19632 (neon_vcvt<mode>): Likewise.
19633 (neon_vcvtv4sfv4hf): Likewise.
19634 (neon_vcvtv4hfv4sf): Likewise.
19635 (neon_vcvt_n<mode>): Likewise.
19636 (neon_vmovn<mode>): Likewise.
19637 (neon_vqmovn<mode>): Likewise.
19638 (neon_vqmovun<mode>): Likewise.
19639 (neon_vmovl<mode>): Likewise.
19640 (neon_vmul_lane<mode>): Likewise.
19641 (neon_vmull_lane<mode>): Likewise.
19642 (neon_vqdmull_lane<mode>): Likewise.
19643 (neon_vqdmulh_lane<mode>): Likewise.
19644 (neon_vmla_lane<mode>): Likewise.
19645 (neon_vmlal_lane<mode>): Likewise.
19646 (neon_vqdmlal_lane<mode>): Likewise.
19647 (neon_vmls_lane<mode>): Likewise.
19648 (neon_vmlsl_lane<mode>): Likewise.
19649 (neon_vqdmlsl_lane<mode>): Likewise.
19650 (neon_vext<mode>): Likewise.
19651 (neon_vrev64<mode>): Likewise.
19652 (neon_vrev32<mode>): Likewise.
19653 (neon_vrev16<mode>): Likewise.
19654 (neon_vbsl<mode>_internal): Likewise.
19655 (neon_vshl<mode>): Likewise.
19656 (neon_vqshl<mode>): Likewise.
19657 (neon_vshr_n<mode>): Likewise.
19658 (neon_vshrn_n<mode>): Likewise.
19659 (neon_vqshrn_n<mode>): Likewise.
19660 (neon_vqshrun_n<mode>): Likewise.
19661 (neon_vshl_n<mode>): Likewise.
19662 (neon_vqshl_n<mode>): Likewise.
19663 (neon_vqshlu_n<mode>): Likewise.
19664 (neon_vshll_n<mode>): Likewise.
19665 (neon_vsra_n<mode>): Likewise.
19666 (neon_vsri_n<mode>): Likewise.
19667 (neon_vsli_n<mode>): Likewise.
19668 (neon_vtbl1v8qi): Likewise.
19669 (neon_vtbl2v8qi): Likewise.
19670 (neon_vtbl3v8qi): Likewise.
19671 (neon_vtbl4v8qi): Likewise.
19672 (neon_vtbx1v8qi): Likewise.
19673 (neon_vtbx2v8qi): Likewise.
19674 (neon_vtbx3v8qi): Likewise.
19675 (neon_vtbx4v8qi): Likewise.
19676 (neon_vtrn<mode>_internal): Likewise.
19677 (neon_vzip<mode>_internal): Likewise.
19678 (neon_vuzp<mode>_internal): Likewise.
19679 (neon_vld1<mode>): Likewise.
19680 (neon_vld1_lane<mode>): Likewise.
19681 (neon_vld1_dup<mode>): Likewise.
19682 (neon_vld1_dupv2di): Likewise.
19683 (neon_vst1<mode>): Likewise.
19684 (neon_vst1_lane<mode>): Likewise.
19685 (neon_vld2<mode>): Likewise.
19686 (neon_vld2_lane<mode>): Likewise.
19687 (neon_vld2_dup<mode>): Likewise.
19688 (neon_vst2<mode>): Likewise.
19689 (neon_vst2_lane<mode>): Likewise.
19690 (neon_vld3<mode>): Likewise.
19691 (neon_vld3qa<mode>): Likewise.
19692 (neon_vld3qb<mode>): Likewise.
19693 (neon_vld3_lane<mode>): Likewise.
19694 (neon_vld3_dup<mode>): Likewise.
19695 (neon_vst3<mode>): Likewise.
19696 (neon_vst3qa<mode>): Likewise.
19697 (neon_vst3qb<mode>): Likewise.
19698 (neon_vst3_lane<mode>): Likewise.
19699 (neon_vld4<mode>): Likewise.
19700 (neon_vld4qa<mode>): Likewise.
19701 (neon_vld4qb<mode>): Likewise.
19702 (neon_vld4_lane<mode>): Likewise.
19703 (neon_vld4_dup<mode>): Likewise.
19704 (neon_vst4<mode>): Likewise.
19705 (neon_vst4qa<mode>): Likewise.
19706 (neon_vst4qb<mode>): Likewise.
19707 (neon_vst4_lane<mode>): Likewise.
19708 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19709 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19710 (neon_vec_<US>mult_lo_<mode>): Likewise.
19711 (neon_vec_<US>mult_hi_<mode>): Likewise.
19712 (neon_vec_<US>shiftl_<mode>): Likewise.
19713 (neon_unpack<US>_<mode>): Likewise.
19714 (neon_vec_<US>mult_<mode>): Likewise.
19715 (vec_pack_trunc_<mode>): Likewise.
19716 (neon_vec_pack_trunk_<mode>): Likewise.
19717 (neon_vabd<mode>_2): Likewise.
19718 (neon_vabd<mode>_3): Likewise.
19719 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19720 (thumb2_movsi_vfp): Likewise.
19721 (movdi_vfp): Likewise.
19722 (movdi_vfp_cortexa8): Likewise.
19723 (movhf_vfp_neon): Likewise.
19724 (movhf_vfp): Likewiwse.
19725 (movsf_vfp): Likewiwse.
19726 (thumb2_movsf_vfp): Likewiwse.
19727 (movdf_vfp): Likewise.
19728 (thumb2_movdf_vfp): Likewise.
19729 (movsfcc_vfp): Likewise.
19730 (thumb2_movsfcc_vfp): Likewise.
19731 (movdfcc_vfp): Likewise.
19732 (thumb2_movdfcc_vfp): Likewise.
19733 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19734 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19735 (v10_v2c): Likewise.
19736 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19737 attribute change.
19738 (cortex_a15_neon_int_2): Likewise.
19739 (cortex_a15_neon_int_3): Likewise.
19740 (cortex_a15_neon_int_4): Likewise.
19741 (cortex_a15_neon_int_5): Likewise.
19742 (cortex_a15_neon_vqneg_vqabs): Likewise.
19743 (cortex_a15_neon_vmov): Likewise.
19744 (cortex_a15_neon_vaba): Likewise.
19745 (cortex_a15_neon_vaba_qqq): Likewise.
19746 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19747 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19748 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19749 scalar_64_32_long_scalar): Likewise.
19750 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19751 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19752 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19753 lotype_qdd_64_32_long): Likewise.
19754 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19755 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19756 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19757 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19758 (cortex_a15_neon_shift_1): Likewise.
19759 (cortex_a15_neon_shift_2): Likewise.
19760 (cortex_a15_neon_shift_3): Likewise.
19761 (cortex_a15_neon_vshl_ddd): Likewise.
19762 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19763 (cortex_a15_neon_vsra_vrsra): Likewise.
19764 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19765 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19766 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19767 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19768 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19769 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19770 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19771 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19772 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19773 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19774 (cortex_a15_neon_bp_simple): Likewise.
19775 (cortex_a15_neon_bp_2cycle): Likewise.
19776 (cortex_a15_neon_bp_3cycle): Likewise.
19777 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19778 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19779 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19780 (cortex_a15_neon_vld2_4_regs): Likewise.
19781 (cortex_a15_neon_vld3_vld4): Likewise.
19782 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19783 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19784 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19785 (cortex_a15_neon_vst3_vst4): Likewise.
19786 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19787 (cortex_a15_neon_vld3_vld4_lane" 10
19788 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19789 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19790 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19791 (cortex_a15_neon_ldm_2): Likewise.0
19792 (cortex_a15_neon_stm_2): Likewise.
19793 (cortex_a15_neon_mcr): Likewise.
19794 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19795 (cortex_a15_neon_mrc): Likewise.
19796 (cortex_a15_neon_mrrc): Likewise.
19797 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19798 change.
19799 (cortex_a15_alu_shift): Likewise.
19800 (cortex_a15_alu_shift_reg): Likewise.
19801 (cortex_a15_mult32): Likewise.
19802 (cortex_a15_mult64): Likewise.
19803 (cortex_a15_block): Likewise.
19804 (cortex_a15_branch): Likewise.
19805 (cortex_a15_load1): Likewise.
19806 (cortex_a15_load3): Likewise.
19807 (cortex_a15_store1): Likewise.
19808 (cortex_a15_store3): Likewise.
19809 (cortex_a15_call): Likewise.
19810 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19811 (cortex_a5_f2r): Likewise.
19812 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19813 change.
19814 (cortex_a53_f2r): Likewise.
19815 * config/arm/cortex-a7.md
19816 (cortex_a7_branch): Update for attribute change.
19817 (cortex_a7_call): Likewise.
19818 (cortex_a7_alu_imm): Likewise.
19819 (cortex_a7_alu_reg): Likewise.
19820 (cortex_a7_alu_shift): Likewise.
19821 (cortex_a7_mul): Likewise.
19822 (cortex_a7_load1): Likewise.
19823 (cortex_a7_store1): Likewise.
19824 (cortex_a7_load2): Likewise.
19825 (cortex_a7_store2): Likewise.
19826 (cortex_a7_load3): Likewise.
19827 (cortex_a7_store3): Likewise.
19828 (cortex_a7_load4): Likewise.
19829 (cortex_a7_store4): Likewise.
19830 (cortex_a7_fpalu): Likewise.
19831 (cortex_a7_fconst): Likewise.
19832 (cortex_a7_fpmuls): Likewise.
19833 (cortex_a7_neon_mul): Likewise.
19834 (cortex_a7_fpmacs): Likewise.
19835 (cortex_a7_neon_mla: Likewise.
19836 (cortex_a7_fpmuld: Likewise.
19837 (cortex_a7_fpmacd: Likewise.
19838 (cortex_a7_fpfmad: Likewise.
19839 (cortex_a7_fdivs: Likewise.
19840 (cortex_a7_fdivd: Likewise.
19841 (cortex_a7_r2f: Likewise.
19842 (cortex_a7_f2r: Likewise.
19843 (cortex_a7_f_flags: Likewise.
19844 (cortex_a7_f_loads: Likewise.
19845 (cortex_a7_f_loadd: Likewise.
19846 (cortex_a7_f_stores: Likewise.
19847 (cortex_a7_f_stored: Likewise.
19848 (cortex_a7_neon): Likewise.
19849 * config/arm/cortex-a8-neon.md
19850 (cortex_a8_neon_mrc): Update for attribute change.
19851 (cortex_a8_neon_mrrc): Likewise.
19852 (cortex_a8_neon_int_1): Likewise.
19853 (cortex_a8_neon_int_2): Likewise.
19854 (cortex_a8_neon_int_3): Likewise.
19855 (cortex_a8_neon_int_4): Likewise.
19856 (cortex_a8_neon_int_5): Likewise.
19857 (cortex_a8_neon_vqneg_vqabs): Likewise.
19858 (cortex_a8_neon_vmov): Likewise.
19859 (cortex_a8_neon_vaba): Likewise.
19860 (cortex_a8_neon_vaba_qqq): Likewise.
19861 (cortex_a8_neon_vsma): Likewise.
19862 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19863 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19864 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19865 long_scalar): Likewise.
19866 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19867 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19868 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19869 long_scalar_qdd_64_32_long): Likewise.
19870 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19871 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19872 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19873 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19874 (cortex_a8_neon_shift_1): Likewise.
19875 (cortex_a8_neon_shift_2): Likewise.
19876 (cortex_a8_neon_shift_3): Likewise.
19877 (cortex_a8_neon_vshl_ddd): Likewise.
19878 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19879 (cortex_a8_neon_vsra_vrsra): Likewise.
19880 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19881 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19882 (cortex_a8_neon_fp_vsum): Likewise.
19883 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19884 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19885 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19886 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19887 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19888 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19889 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19890 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19891 (cortex_a8_neon_bp_simple): Likewise.
19892 (cortex_a8_neon_bp_2cycle): Likewise.
19893 (cortex_a8_neon_bp_3cycle): Likewise.
19894 (cortex_a8_neon_ldr): Likewise.
19895 (cortex_a8_neon_str): Likewise.
19896 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19897 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19898 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19899 (cortex_a8_neon_vld2_4_regs): Likewise.
19900 (cortex_a8_neon_vld3_vld4): Likewise.
19901 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19902 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19903 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19904 (cortex_a8_neon_vst3_vst4): Likewise.
19905 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19906 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19907 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19908 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19909 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19910 (cortex_a8_neon_mcr): Likewise.
19911 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19912 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19913 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19914 change.
19915 (ca9_neon_mrrc): Likewise.
19916 (cortex_a9_neon_int_1): Likewise.
19917 (cortex_a9_neon_int_2): Likewise.
19918 (cortex_a9_neon_int_3): Likewise.
19919 (cortex_a9_neon_int_4): Likewise.
19920 (cortex_a9_neon_int_5): Likewise.
19921 (cortex_a9_neon_vqneg_vqabs): Likewise.
19922 (cortex_a9_neon_vmov): Likewise.
19923 (cortex_a9_neon_vaba): Likewise.
19924 (cortex_a9_neon_vaba_qqq): Likewise.
19925 (cortex_a9_neon_vsma): Likewise.
19926 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19927 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19928 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19929 long_scalar): Likewise.
19930 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19931 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19932 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19933 long_scalar_qdd_64_32_long): Likewise.
19934 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19935 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19936 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19937 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19938 (cortex_a9_neon_shift_1): Likewise.
19939 (cortex_a9_neon_shift_2): Likewise.
19940 (cortex_a9_neon_shift_3): Likewise.
19941 (cortex_a9_neon_vshl_ddd): Likewise.
19942 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19943 (cortex_a9_neon_vsra_vrsra): Likewise.
19944 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19945 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19946 (cortex_a9_neon_fp_vsum): Likewise.
19947 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19948 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19949 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19950 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19951 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19952 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19953 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19954 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19955 (cortex_a9_neon_bp_simple): Likewise.
19956 (cortex_a9_neon_bp_2cycle): Likewise.
19957 (cortex_a9_neon_bp_3cycle): Likewise.
19958 (cortex_a9_neon_ldr): Likewise.
19959 (cortex_a9_neon_str): Likewise.
19960 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19961 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19962 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19963 (cortex_a9_neon_vld2_4_regs): Likewise.
19964 (cortex_a9_neon_vld3_vld4): Likewise.
19965 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19966 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19967 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19968 (cortex_a9_neon_vst3_vst4): Likewise.
19969 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19970 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19971 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19972 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19973 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19974 (cortex_a9_neon_mcr): Likewise.
19975 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19976 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19977 (cortex_a9_fps): Likewise.
19978 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19979 change.
19980 (cortex_m4_fmuls): Likewise.
19981 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19982 change.
19983 (cortex_r4_mrc): Likewise.
19984 * config/arm/iterators.md: Update comment referring to neon_type.
19985 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19986 (iwmmxt_movsi_insn): Likewise.
19987 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19988 attribute change.
19989 (pj4_core_to_vfp): Likewise.
19990 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19991 attribute change.
19992 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19993 (vfp_fstore): Likewise.
19994 * doc/md.texi: Change references to neon_type to refer to type.
19995
19996 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19997
19998 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19999
20000 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
20001
20002 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
20003 lglobl if not weak.
20004
20005 2013-09-04 Easwaran Raman <eraman@google.com>
20006
20007 PR middle-end/57370
20008 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
20009 (build_and_add_sum): Use it.
20010 (appears_later_in_bb): Simplify code.
20011
20012 2013-09-04 Teresa Johnson <tejohnson@google.com>
20013
20014 * dumpfile.c (dump_finish): Don't close stderr/stdout.
20015
20016 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
20017
20018 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
20019
20020 2013-09-04 Jan Hubicka <jh@suse.cz>
20021
20022 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
20023 * ipa-devirt.c: Include diganostic.h
20024 (odr_type_d): Add types and types_set.
20025 (hash_type_name): Work for types with vtables during LTO.
20026 (odr_hasher::remove): Fix comment; destroy types_set.
20027 (add_type_duplicate): New function,
20028 (get_odr_type): Use it.
20029 (dump_type_inheritance_graph): Dump type duplicates.
20030 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
20031 graph.
20032 * tree.c (types_same_for_odr): Give exact answers on types with
20033 virtual tables.
20034
20035 2013-09-04 Dodji Seketeli <dodji@redhat.com>
20036
20037 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
20038 explaining their differences.
20039
20040 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
20041
20042 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
20043
20044 2013-09-03 Jeff Law <law@redhat.com>
20045
20046 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
20047 when not threading through a joiner block. Pass joiner/no joiner
20048 state to register_jump_thread.
20049 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
20050 state from argument rather than implying on path length.
20051 Dump the entire jump thread path into debugging dump.
20052 * tree-flow.h (register_jump_thread): Update prototype.
20053
20054 2013-08-29 Xinliang David Li <davidxl@google.com>
20055
20056 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20057 Remove a trivial gcc_assert.
20058
20059 2013-08-29 Xinliang David Li <davidxl@google.com>
20060
20061 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
20062 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
20063 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20064 Delay base decl alignment adjustment.
20065 * tree-vectorizer.c (vect_destroy_datarefs): New function.
20066 * tree-vectorizer.h: New data structure.
20067 (set_dr_misalignment): New function.
20068 (dr_misalignment): Ditto.
20069 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
20070 (vectorizable_load): Ditto.
20071 (ensure_base_align): New function.
20072 (vectorize_loops): Add dbg_cnt support.
20073 (execute_vect_slp): Ditto.
20074 * dbgcnt.def: New debug counter.
20075 * Makefile: New dependency.
20076
20077 2013-09-03 Meador Inge <meadori@codesourcery.com>
20078
20079 Revert:
20080
20081 2013-08-30 Meador Inge <meadori@codesourcery.com>
20082
20083 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20084
20085 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
20086
20087 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
20088 function descriptor.
20089
20090 2013-09-03 Richard Biener <rguenther@suse.de>
20091
20092 * tree-affine.c (add_elt_to_tree): Fix association issue,
20093 avoid useless converts and make sure to always return a
20094 properly typed result.
20095
20096 2013-09-03 Richard Biener <rguenther@suse.de>
20097
20098 PR middle-end/57656
20099 * fold-const.c (negate_expr_p): Fix division case.
20100 (negate_expr): Likewise.
20101
20102 2013-09-03 Richard Biener <rguenther@suse.de>
20103
20104 PR lto/58285
20105 * tree-streamer-out.c: Include tm.h.
20106 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
20107
20108 2013-09-03 Jan Hubicka <jh@suse.cz>
20109
20110 * tree-profile.c (tree_profiling): Cleanup CFG when done.
20111
20112 2013-09-03 Alan Modra <amodra@gmail.com>
20113
20114 * config.gcc (powerpc*-*-linux*): Add support for little-endian
20115 multilibs to big-endian target and vice versa.
20116 * config/rs6000/t-linux64: Use := assignment on all vars.
20117 (MULTILIB_EXTRA_OPTS): Remove fPIC.
20118 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
20119 * config/rs6000/t-linux64le: New file.
20120 * config/rs6000/t-linux64bele: New file.
20121 * config/rs6000/t-linux64lebe: New file.
20122
20123 2013-09-02 Jan Hubicka <jh@suse.cz>
20124
20125 * ipa-inline-transform.c (inline_transform): Do not
20126 optimize_inline_calls when not optimizing.
20127
20128 2013-09-02 Jan Hubicka <jh@suse.cz>
20129
20130 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
20131 duplicated nodes for assembler names.
20132 * symtab.c (symtab_unregister_node): Do not attempt to unlink
20133 hard registers from assembler name hash.
20134
20135 2013-09-02 Jan Hubicka <jh@suse.cz>
20136
20137 * ipa-split.c (execute_split_functions): Split externally visible
20138 functions called once.
20139
20140 2013-09-02 Martin Jambor <mjambor@suse.cz>
20141
20142 PR ipa/58106
20143 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
20144 linked list. When finding the correct duplicate, also consider also
20145 the caller in additon to its inlined_to node.
20146
20147 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
20148
20149 * config/aarch64/aarch64-simd-builtins.def
20150 (dup_lane_scalar): Remove.
20151 * config/aarch64/aarch64-simd.md
20152 (aarch64_simd_dup): Add 'w->w' alternative.
20153 (aarch64_dup_lane<mode>): Allow for VALL.
20154 (aarch64_dup_lane_scalar<mode>): Remove.
20155 (aarch64_dup_lane_<vswap_width_name><mode>): New.
20156 (aarch64_get_lane_signed<mode>): Add w->w altenative.
20157 (aarch64_get_lane_unsigned<mode>): Likewise.
20158 (aarch64_get_lane<mode>): Likewise.
20159 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20160 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20161 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20162 (VCON): Change container of V2SF.
20163 (vswap_width_name): Likewise.
20164 * config/aarch64/arm_neon.h
20165 (__aarch64_vdup_lane_any): New.
20166 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20167 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20168 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20169
20170 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
20171
20172 PR middle-end/56382
20173 * expr.c (emit_move_complex): Do not move complex FP values as parts if
20174 the source or the destination is a single hard register.
20175
20176 2013-09-02 Richard Biener <rguenther@suse.de>
20177
20178 PR middle-end/57511
20179 * tree-scalar-evolution.c (instantiate_scev_name): Allow
20180 non-linear SCEVs.
20181
20182 2013-09-02 Richard Biener <rguenther@suse.de>
20183
20184 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20185 arithmetic to sizetype.
20186
20187 2013-09-02 Bin Cheng <bin.cheng@arm.com>
20188
20189 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20190 Find auto-increment use both before and after candidate.
20191
20192 2013-09-02 Marek Polacek <polacek@redhat.com>
20193
20194 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20195
20196 2013-09-01 Jan Hubicka <jh@suse.cz>
20197
20198 * Makefile.in: Add ipa-profile.o
20199 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20200 * cgraph.c (struct cgraph_propagate_frequency_data,
20201 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20202 ipa-profile.c; replace cgraph_ by ipa_ prefix.
20203 * cgraph.h (cgraph_propagate_frequency): Remove.
20204 * ipa-inline-analysis.c: Include ipa-utils.h;
20205 drop duplicated cfgloop.h.
20206 (inline_update_callee_summaries): Update.
20207 * ipa-profile.c: New file.
20208 * ipa-utils.h (ipa_propagate_frequency): Declare.
20209 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20210 data-streamer.h, value-prof.h.
20211 (symtab_remove_unreachable_nodes): Update profile.
20212 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20213 account_time_size, cmp_counts, dump_histogram,
20214 ipa_profile_generate_summary, ipa_profile_write_summary,
20215 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20216 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20217 Move to ipa-profile.c.
20218
20219 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
20220
20221 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20222
20223 2013-09-01 Jan Hubicka <jh@suse.cz>
20224
20225 * common.opt (fdevirtualize-speculatively): New function.
20226 * invoke.texi (fdevirtualize-speculatively): Document.
20227 * ipa-devirt.c: Include ipa-inline.h
20228 (likely_target_p): New function.
20229 (ipa_devirt): New function.
20230 (gate_ipa_devirt): New function.
20231 (pass_data_ipa_devirt): New static var.
20232 (pass_ipa_devirt): Likewise.
20233 (make_pass_ipa_devirt): New function.
20234 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20235 (common_handle_option): Disable devirtualization when
20236 value range profiling is available.
20237 * passes.def (pass_ipa_devirt): Add.
20238 * timever.def (TV_IPA_DEVIRT): New timevar.
20239 * tree-pass.h (make_pass_ipa_devirt):
20240
20241 2013-09-01 Iain Sandoe <iain@codesourcery.com>
20242
20243 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20244 include sanitize(undefined).
20245
20246 2013-08-31 Diego Novillo <dnovillo@google.com>
20247
20248 * Makefile.in (TREE_CORE_H): Define.
20249 (TREE_H): Use.
20250 (GTFILES): Add tree-core.h.
20251 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20252 size the array.
20253 * tree-core.h: New file.
20254 Move all data structures, enum, typedefs, global
20255 declarations and constants from ...
20256 * tree.h: ... here.
20257
20258 2013-08-31 Jan Hubicka <jh@suse.cz>
20259
20260 * bulitins.c (expand_builtin): Do not early exit for gcov
20261 instrumented functions.
20262
20263 2013-08-31 Marek Polacek <polacek@redhat.com>
20264
20265 * ubsan.c: Include tm_p.h.
20266
20267 2013-08-31 Jan Hubicka <jh@suse.cz>
20268
20269 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20270 warning.
20271
20272 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20273 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20274 * tree-cfg.c (verify_gimple_label): ... here.
20275 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20276 (ipa_merge_profiles): New function.
20277 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20278 (lto_input_function_body): Likewise.
20279 * ipa-utils.h (ipa_merge_profiles): Declare.
20280 * lto-streamer.h (lto_input_function_body): Update prototype.
20281 (emit_label_in_global_context_p): Remove.
20282 * lto-symtab.c: Include ipa-utils.h
20283 (lto_cgraph_replace_node): Use ipa_merge_profiles.
20284
20285 2013-08-31 Jan Hubicka <jh@suse.cz>
20286
20287 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20288
20289 2013-08-31 Jan Hubicka <jh@suse.cz>
20290
20291 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20292
20293 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
20294
20295 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20296 "cmp" RTX before signed_comparison_operator check to account
20297 for "code" changes.
20298
20299 2013-08-30 Jan Hubicka <jh@suse.cz>
20300
20301 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20302 (detect_type_change_1): Rename to ...
20303 (detect_type_change): ... this one; early return on non-polymorphic
20304 types.
20305 (detect_type_change_ssa): Add comp_type parameter; update
20306 use of detect_type_change.
20307 (compute_complex_assign_jump_func): Add param_type parameter;
20308 update use of detect_type_change_ssa.
20309 (compute_complex_ancestor_jump_func): Likewise.
20310 (ipa_get_callee_param_type): New function.
20311 (ipa_compute_jump_functions_for_edge): Compute parameter type;
20312 update calls to the jump function computation functions.
20313
20314 2013-08-30 Teresa Johnson <tejohnson@google.com>
20315 Steven Bosscher <steven@gcc.gnu.org>
20316
20317 * cfgrtl.c (fixup_new_cold_bb): New routine.
20318 (commit_edge_insertions): Invoke fixup_partitions.
20319 (find_partition_fixes): New routine.
20320 (fixup_partitions): Ditto.
20321 (verify_hot_cold_block_grouping): Update comments.
20322 (rtl_verify_edges): Invoke find_partition_fixes.
20323 (rtl_verify_bb_pointers): Update comments.
20324 (rtl_verify_bb_layout): Ditto.
20325 * basic-block.h (probably_never_executed_edge_p): Declare.
20326 (fixup_partitions): Ditto.
20327 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20328 * bb-reorder.c (sanitize_hot_paths): New function.
20329 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20330 sanitize_hot_paths.
20331 * predict.c (probably_never_executed_edge_p): New routine.
20332 * cfg.c (check_bb_profile): Add partition insanity warnings.
20333
20334 2013-08-30 Meador Inge <meadori@codesourcery.com>
20335
20336 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20337
20338 2013-08-30 Marek Polacek <polacek@redhat.com>
20339
20340 * Makefile.in (ubsan.o): Add.
20341 (c-family/c-ubsan.o): Add.
20342 (builtins.o): Add ubsan.h dependency.
20343 * ubsan.h: New file.
20344 * ubsan.c: New file.
20345 * common.opt: Add -fsanitize=undefined option.
20346 (flag_sanitize): Add variable.
20347 (fsanitize=): Add option. Add Driver.
20348 (fsanitize=thread): Remove option.
20349 (fsanitize=address): Likewise.
20350 (static-libubsan): New option.
20351 * doc/invoke.texi: Document the new flag and -static-libubsan.
20352 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20353 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20354 * builtin-attrs.def (ATTR_COLD): Define.
20355 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20356 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20357 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20358 * flag-types.h (sanitize_code): New enum.
20359 * opts.c (common_handle_option): Parse command line arguments
20360 of -fsanitize=. Add -fsanitize=unreachable option.
20361 * varasm.c (get_variable_section): Adjust.
20362 (assemble_noswitch_variable): Likewise.
20363 (assemble_variable): Likewise.
20364 (output_constant_def_contents): Likewise.
20365 (categorize_decl_for_section): Likewise.
20366 (place_block_symbol): Likewise.
20367 (output_object_block): Likewise.
20368 * builtins.def: Likewise.
20369 * toplev.c (compile_file): Likewise.
20370 (process_options): Likewise.
20371 * cppbuiltin.c: Likewise.
20372 * tsan.c (tsan_pass): Likewise.
20373 (tsan_gate): Likewise.
20374 (tsan_gate_O0): Likewise.
20375 * cfgexpand.c (partition_stack_vars): Likewise.
20376 (expand_stack_vars): Likewise.
20377 (defer_stack_allocation): Likewise.
20378 (expand_used_vars): Likewise.
20379 * cfgcleanup.c (old_insns_match_p): Likewise.
20380 * asan.c (asan_finish_file): Likewise.
20381 (asan_instrument): Likewise.
20382 (gate_asan): Likewise.
20383 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20384 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20385 (asan_global_struct): Use pointer_sized_int_node instead
20386 calling build_nonstandard_integer_type.
20387 (initialize_sanitizer_builtins): Likewise.
20388 (asan_finish_file): Likewise.
20389 * gcc.c: Document %{%:function(args):X}.
20390 (static_spec_functions): Add sanitize.
20391 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20392 store funcval != NULL there.
20393 (do_spec_1): Adjust handle_spec_function caller.
20394 (handle_braces): Allow %:function(args) as condition.
20395 (sanitize_spec_function): New function.
20396 (ADD_STATIC_LIBUBSAN_LIBS): Define.
20397 (LIBUBSAN_SPEC): Likewise.
20398 (LIBUBSAN_EARLY_SPEC): Likewise.
20399 (SANITIZER_SPEC): Handle libubsan.
20400 (SANITIZER_EARLY_SPEC): Likewise.
20401 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20402 instead of fsanitize=address.
20403 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20404 instead of fsanitize=address*.
20405 * builtins.c: Include ubsan.h.
20406 (fold_builtin_0): Instrument __builtin_unreachable.
20407 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20408 instead of flag_asan.
20409 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20410 (pointer_sized_int_node): Define.
20411 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20412
20413 2013-08-30 Mike Stump <mikestump@comcast.net>
20414
20415 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20416 with RE patterns.
20417
20418 2013-08-29 Jan Hubicka <jh@suse.cz>
20419
20420 * cgraph.c (cgraph_function_body_availability): Handle weakref
20421 correctly.
20422 * passes.def: Remove pass_fixup_cfg.
20423 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20424 track when we need to remove functions.
20425 (gate_ipa_inline): Execute inlining always; add comment why.
20426 (pass_data_ipa_inline): Remove TODO_remove_functions.
20427 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20428 do not produce summaries.
20429 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20430 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20431 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20432 constant pool and vtable.
20433
20434 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
20435
20436 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20437 New arm_neon.h's internal macros to specify 64-bit constants.
20438 Avoid using stdint.h's macros.
20439
20440 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
20441
20442 * recog.c (verify_changes): Verify that changes[i].old is non-zero
20443 before applying REG_P.
20444
20445 2013-08-30 Jakub Jelinek <jakub@redhat.com>
20446
20447 PR tree-optimization/58277
20448 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20449 after seeing too many stmts with vdef in between dombb and current
20450 bb, invalidate everything.
20451
20452 2013-08-30 Richard Biener <rguenther@suse.de>
20453
20454 * fold-const.c (fold_single_bit_test): Fix overflow test.
20455
20456 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
20457
20458 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20459 and which can live in a register, always retrieve the value on entry.
20460 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20461 passed by invisible reference specially.
20462 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20463 (vt_add_function_parameter): Correctly deal with a parameter passed by
20464 invisible reference.
20465
20466 2013-08-30 Jan Hubicka <jh@suse.cz>
20467
20468 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20469
20470 2013-08-30 Richard Biener <rguenther@suse.de>
20471
20472 PR tree-optimization/58228
20473 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20474 allow invariant loads in nested loop vectorization.
20475
20476 2013-08-30 Richard Biener <rguenther@suse.de>
20477
20478 PR tree-optimization/58223
20479 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20480 (has_anti_or_output_dependence): ... this and adjust to also
20481 look for output dependences.
20482 (mark_nodes_having_upstream_mem_writes): Adjust.
20483 (rdg_flag_uses): Likewise.
20484
20485 2013-08-30 Richard Biener <rguenther@suse.de>
20486
20487 PR tree-optimization/58010
20488 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20489 assert that we have a loop-closed PHI.
20490
20491 2013-08-29 Jan Hubicka <jh@suse.cz>
20492
20493 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20494 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20495 * lto-section-in.c (lto_free_function_in_decl_state): New function.
20496 (lto_free_function_in_decl_state_for_node): New function.
20497
20498 2013-08-29 Xinliang David Li <davidxl@google.com>
20499
20500 * loop-unroll.c (report_unroll_peel): Minor message change.
20501 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20502 Emit alignment peeling message with default -fopt-info.
20503 (vect_loop_versioning): Emit loop version info message.
20504 * tree-vectorizer.c (vectorize_loops): Minor message change.
20505 (execute_vect_slp): Ditto.
20506
20507 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
20508
20509 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20510 of the clone from the DECL_NAME of the original function.
20511
20512 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
20513
20514 * passes.c (register_pass): Add overload.
20515 * tree-pass.h (register_pass): Forward declare it. Add comment.
20516
20517 2013-08-29 Jan Hubicka <jh@suse.cz>
20518
20519 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20520 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20521 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20522 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20523 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20524 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20525 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20526 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20527
20528 2013-08-29 Teresa Johnson <tejohnson@google.com>
20529
20530 * dumpfile.c (dump_loc): Output column number.
20531 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20532 * doc/invoke.texi: Document optall -fopt-info flag.
20533 * profile.c (read_profile_edge_counts): Use new dump framework.
20534 (compute_branch_probabilities): Ditto.
20535 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20536 when pass not in any opt group.
20537 * pass_manager.h (pass_manager::get_pass_profile): New method.
20538 * value-prof.c (check_counter): Use new dump framework.
20539 (check_ic_target): Ditto.
20540 * coverage.c (get_coverage_counts): Ditto.
20541 (coverage_init): Setup new dump framework.
20542
20543 2013-08-29 Richard Biener <rguenther@suse.de>
20544
20545 PR tree-optimization/58246
20546 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20547 handle the dominance check inside a basic-block.
20548
20549 2013-08-29 Richard Biener <rguenther@suse.de>
20550
20551 PR middle-end/57287
20552 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20553 of default defs that appear in abnormal PHI nodes.
20554
20555 2013-08-29 Richard Biener <rguenther@suse.de>
20556
20557 PR tree-optimization/57685
20558 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20559 single-use operands to avoid exponential complexity.
20560
20561 2013-08-28 Dehao Chen <dehao@google.com>
20562
20563 * ipa-inline.c (edge_badness): Fix integer underflow.
20564
20565 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
20566
20567 * gtm-builtins.def (_ITM_free): Declare leaf.
20568
20569 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20570
20571 PR target/58067
20572 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20573 (*tls_local_dynamic_base_64_largepic): Likewise.
20574 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20575 Remove predicate from call operand.
20576 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20577 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20578
20579 2013-08-28 Jeff Law <law@redhat.com>
20580
20581 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20582 checks for the number of predecessors and successors allowed.
20583 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20584 which require copying a joiner block if there is a request which
20585 is a subpath that requires no joiner block copying.
20586
20587 2013-08-28 Jan Hubicka <jh@suse.cz>
20588
20589 * lto-streamer-out.c (DFS_write_tree_body): Drop
20590 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20591 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20592 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20593 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20594 Do not read DECL_ERROR_ISSUED.
20595 (unpack_ts_decl_with_vis_value_fields): Do not read
20596 DECL_DEFER_OUTPUT.
20597 (lto_input_ts_binfo_tree_pointers): Do not read
20598 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20599 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20600 write DECL_ERROR_ISSUED..
20601 (pack_ts_decl_with_vis_value_fields): Do not write
20602 DECL_DEFER_OUTPUT.
20603 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20604 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20605 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20606 * tree.h (tree_decl_common): Update comment.
20607 (DECL_ERROR_ISSUED): Remove.
20608
20609 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20610
20611 PR middle-end/58257
20612 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20613
20614 2013-08-28 Jan Hubicka <jh@suse.cz>
20615
20616 * builtins.def (free): Declare leaf.
20617
20618 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20619
20620 * gdbhooks.py: New.
20621 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20622 * configure: Regenerate.
20623
20624 2013-08-27 Martin Jambor <mjambor@suse.cz>
20625
20626 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20627 (ipa_ancestor_jf_data): Likewise.
20628 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20629 (ipa_get_jf_pass_through_type_preserved): New function.
20630 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20631 (ipa_get_jf_ancestor_type_preserved): New function.
20632 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20633 (ipa_get_jf_ancestor_result): Likewise.
20634 (propagate_vals_accross_pass_through): Use
20635 ipa_get_jf_pass_through_result to do all the value mappings.
20636 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20637 type_preserved flag.
20638 (ipa_set_jf_cst_copy): New function.
20639 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20640 (ipa_set_jf_arith_pass_through): Likewise.
20641 (ipa_set_ancestor_jf): Likewise.
20642 (compute_complex_assign_jump_func): Set type_preserved instead of
20643 punting.
20644 (ipa_compute_jump_functions_for_edge): Likewise.
20645 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20646 (update_jump_functions_after_inlining): Update type_preserved.
20647 Explicitely create jump functions when combining one with pass_through.
20648 (ipa_write_jump_function): Stream the type_preserved flags.
20649 (ipa_read_jump_function): Likewise.
20650
20651 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20652 Aldy Hernandez <aldyh@redhat.com>
20653
20654 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20655 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20656 * function.h (struct function): Add has_force_vect_loops and
20657 has_simduid_loops.
20658 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20659 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20660 handle it.
20661 * gimple.def: Update CLAUSES comments.
20662 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20663 (gimple_build_omp_for): Add argument to prototype.
20664 (gimple_omp_for_kind): New.
20665 (gimple_omp_for_set_kind): New.
20666 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20667 GOVD_DATA_SHARE_CLASS.
20668 (enum omp_region_type): Add ORT_SIMD.
20669 (gimple_add_tmp_var): Handle ORT_SIMD.
20670 (gimplify_var_or_parm_decl): Same.
20671 (is_gimple_stmt): Same.
20672 (omp_firstprivatize_variable): Same.
20673 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20674 (omp_notice_variable): Handle ORT_SIMD.
20675 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20676 (omp_check_private): Handle ORT_SIMD.
20677 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20678 OMP_CLAUSE_SAFELEN.
20679 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20680 Handle OMP_CLAUSE_LASTPRIVATE.
20681 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20682 OMP_CLAUSE_SAFELEN.
20683 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20684 (gimplify_expr): Handle OMP_SIMD.
20685 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20686 (expand_GOMP_SIMD_VF): New.
20687 (expand_GOMP_SIMD_LAST_LANE): New.
20688 * internal-fn.def (GOMP_SIMD_LANE): New.
20689 (GOMP_SIMD_VF): New.
20690 (GOMP_SIMD_LAST_LANE): New.
20691 * omp-low.c: Include target.h.
20692 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20693 OMP_CLAUSE_SAFELEN.
20694 (check_omp_nesting_restrictions): Same.
20695 (omp_max_vf): New.
20696 (lower_rec_simd_input_clauses): New.
20697 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20698 OMP_CLAUSE_LINEAR.
20699 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20700 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20701 (expand_omp_build_assign): New.
20702 (expand_omp_for_init_counts): New.
20703 (expand_omp_for_init_vars): New.
20704 (extract_omp_for_update_vars): New.
20705 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20706 and rewrite accordingly.
20707 (expand_omp_simd): New.
20708 (expand_omp_for): Use expand_omp_simd.
20709 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20710 (lower_omp_for): Do not lower the body.
20711 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20712 in their own loops.
20713 * tree-flow.h (find_omp_clause): Remove prototype.
20714 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20715 forcing vectorization of the loop, or if flag_tree_vectorize.
20716 (gate_tree_if_conversion): Similarly.
20717 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20718 gimple_build_omp_for.
20719 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20720 * tree-parloops (create_parallel_loop): Pass kind argument to
20721 gimple_build_omp_for.
20722 * tree-pretty-print.c (dump_omp_clause): Add cases for
20723 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20724 OMP_CLAUSE__SIMDUID_.
20725 (dump_generic_node): Handle OMP_SIMD.
20726 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20727 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20728 unroll OMP_SIMD loops here.
20729 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20730 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20731 loop->safelen.
20732 (vect_analyze_data_refs): Handle simd loops.
20733 * tree-vect-loop.c (vectorizable_live_operation): Handle
20734 IFN_GOMP_SIMD*.
20735 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20736 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20737 (vectorizable_load): Same.
20738 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20739 (struct simduid_to_vf): New.
20740 (simduid_to_vf::hash): New.
20741 (simduid_to-vf::equal): New.
20742 (struct simd_array_to_simduid): New.
20743 (simd_array_to_simduid::hash): New.
20744 (simd_array_to_simduid::equal): New.
20745 (adjust_simduid_builtins): New.
20746 (struct note_simd_array_uses_struct): New.
20747 (note_simd_array_uses_cb): New.
20748 (note_simd_array_uses): New.
20749 (vectorize_loops): Handle simd hints and adjust simd builtins
20750 accordingly.
20751 * tree-vectorizer.h (struct _stmt_vec_info): Add
20752 simd_lane_access_p field.
20753 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20754 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20755 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20756 (omp_clause_code_name): Same.
20757 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20758 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20759 * tree.def (OMP_SIMD): New entry.
20760 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20761 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20762 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20763 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20764 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20765 (OMP_CLAUSE_LINEAR_STEP): New.
20766 (OMP_CLAUSE_SAFELEN_EXPR): New.
20767 (OMP_CLAUSE__SIMDUID__DECL): New.
20768 (find_omp_clause): New prototype.
20769
20770 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20771
20772 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20773 Haswell processor detection.
20774
20775 2013-08-27 Christian Widmer <shadow@umbrox.de>
20776
20777 PR target/57927
20778 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20779 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20780 AVX2 capable processors.
20781
20782 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20783
20784 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20785 of vget_low_* with implementations in terms of other intrinsics.
20786
20787 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20788
20789 PR middle-end/57219
20790 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20791 values to -1, 0 and 1.
20792
20793 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20794
20795 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20796 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20797 (<optab><mode>3_insn): Remove.
20798 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20799 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20800 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20801 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20802 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20803 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20804 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20805 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20806 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20807 (ror<mode>3_insn): Likewise.
20808 * config/aarch64/predicates.md (aarch64_simd_register): New.
20809
20810 2013-08-27 Richard Biener <rguenther@suse.de>
20811
20812 PR tree-optimization/57521
20813 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20814 one edge is non-critical.
20815 (find_phi_replacement_condition): Make sure to use a non-critical
20816 edge. Cleanup and remove old bug workarounds.
20817 (bb_postdominates_preds): Remove.
20818 (if_convertible_loop_p_1): Do not compute post-dominators.
20819 (combine_blocks): Do not free post-dominators.
20820 (main_tree_if_conversion): Likewise.
20821 (pass_data_if_conversion): Add TODO_verify_ssa.
20822
20823 2013-08-27 DJ Delorie <dj@redhat.com>
20824
20825 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20826
20827 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20828
20829 * function.c (assign_parm_find_data_types): Set passed_mode and
20830 nominal_mode to the TYPE_MODE of nominal_type for the built
20831 pointer type in case of the struct-pass-by-reference.
20832
20833 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20834
20835 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20836 (UINT16_TYPE): Change default to "unsigned int".
20837
20838 * config/avr/avr.opt (mfract-convert-truncate): New option.
20839 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20840 is set, round negative fractional integers according to n1169
20841 when converting to integer types.
20842
20843 2013-08-26 Jan Hubicka <jh@suse.cz>
20844
20845 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20846 methods can not be called indirectly when their address is not taken.
20847
20848 2013-08-26 Jan Hubicka <jh@suse.cz>
20849
20850 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20851 ctor_for_folding.
20852
20853 2013-08-26 Jan Hubicka <jh@suse.cz>
20854
20855 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20856 can be unshared.
20857
20858 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20859
20860 * reload.c (find_valid_class): Allow classes that do not include
20861 FIRST_PSEUDO_REGISTER - 1.
20862
20863 2013-08-26 Jan Hubicka <jh@suse.cz>
20864
20865 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20866 fix edge count/frequency when speculation failed; fix type check
20867 for the direct call.
20868
20869 2013-08-26 Jan Hubicka <jh@suse.cz>
20870
20871 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20872
20873 2013-08-26 Jan Hubicka <jh@suse.cz>
20874
20875 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20876 to be changed by edge redirection.
20877
20878 2013-08-26 Jan Hubicka <jh@suse.cz>
20879
20880 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20881 formating; add sanity check.
20882 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20883 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20884 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20885 (resolve_noninline_speculation): Update callee keys, too.
20886
20887 2013-08-26 Jan Hubicka <jh@suse.cz>
20888
20889 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20890 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20891
20892 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20893
20894 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20895 into proper place.
20896
20897 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20898
20899 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20900 (x86_64_elf_select_section): Ditto.
20901 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20902 arguments.
20903 (ix86_pass_by_reference): Ditto.
20904 (output_set_got): Ditto.
20905 (ix86_unary_operator_ok): Ditto.
20906 (ix86_expand_builtin): Ditto.
20907
20908 2013-08-23 Jan Hubicka <jh@suse.cz>
20909
20910 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20911
20912 2013-08-23 Jan Hubicka <jh@suse.cz>
20913
20914 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20915 (tree_decl_with_vis): Add FINAL field.
20916
20917 2013-08-23 Jeff Law <law@redhat.com>
20918
20919 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20920 the debugging dump when the expression is fully redundant.
20921
20922 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20923
20924 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20925 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20926 * pretty-print.c (pp_formatted_text_data): Likewise.
20927 (pp_write_text_to_stream): Likewise.
20928 (pp_write_text_as_dot_label_to_stream): Likewise.
20929 (pp_append_r): Likewise.
20930 (pp_format): Likewise.
20931 (pp_flush): Likewise.
20932 (pp_clear_output_area): Likewise.
20933 (pp_append_text): Likewise.
20934 (pp_formatted_text): Likewise.
20935 (pp_remaining_character_count_for_line): Likewise.
20936 (pp_newline): Likewise.
20937 (pp_character): Likewise.
20938 (output_buffer::~output_buffer): Define.
20939 (pretty_printer::~pretty_printer): Destruct output buffer.
20940 * pretty-print.h (output_buffer::~output_buffer): Declare.
20941 (pretty_printer::~pretty_printer): Declare virtual.
20942
20943 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20944
20945 PR other/57324
20946 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20947 HOST_WIDE_INT_M1U): New macros.
20948 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20949 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20950 unsigned -1 for lshift.
20951 * cse.c (cse_insn): Likewise.
20952 * double-int.c (rshift_double, lshift_double): Likewise.
20953 * builtins.c (fold_builtin_bitop): Likewise.
20954 * combine.c (force_to_mode): Likewise.
20955 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20956 * simplify-rtx.c (simplify_const_unary_operation,
20957 simplify_const_binary_operation): Likewise.
20958 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20959 check_va_list_escapes): Likewise.
20960 * rtlanal.c (nonzero_bits1): Likewise.
20961 * expmed.c (expand_smod_pow2): Likewise.
20962 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20963
20964 2013-08-23 Jan Hubicka <jh@suse.cz>
20965
20966 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20967 as having address taken.
20968
20969 2013-08-23 Jan Hubicka <jh@suse.cz>
20970
20971 * ipa-utils.h (method_class_type): Declare.
20972 * ipa-devirt.c (method_class_type): Export.
20973
20974 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20975 do not walk base classes of anonymous types.
20976
20977 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20978
20979 PR rtl-optimization/58220
20980 PR regression/58221
20981 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20982 handle SEQUENCE insns properly.
20983
20984 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20985
20986 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20987 definition.
20988 (pp_newline_and_indent): Likewise.
20989 (pp_separate_with): Likewise.
20990 * pretty-print.c (pp_newline_and_flush): Define.
20991 (pp_newline_and_indent): Likewise.
20992 (pp_separate_with): Likewise.
20993
20994 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20995
20996 PR target/58218
20997 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20998 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20999
21000 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
21001
21002 * config/i386/predicates.md (ext_sse_reg_operand): New.
21003 * config/i386/i386.md (*movti_internal): Use
21004 predicate to determine if EVEX is needed.
21005 (*movsi_internal): Ditto.
21006 (*movdf_internal): Ditto.
21007 (*movsf_internal): Ditto.
21008 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
21009
21010 2013-08-23 Jakub Jelinek <jakub@redhat.com>
21011
21012 PR tree-optimization/58209
21013 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
21014 (find_tail_calls): Give up for pointer result types if m is non-NULL.
21015 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
21016 emit POINTER_PLUS_EXPR.
21017 (create_tailcall_accumulator): For pointer result type accumulate in
21018 sizetype type.
21019
21020 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
21021
21022 * configure.ac: Add backslashes missing from the last change.
21023 * configure: Regenerate.
21024
21025 2013-08-22 Jan Hubicka <jh@susue.cz>
21026
21027 * ipa.c (function_and_variable_visibility): First remember function
21028 was global and then make it local.
21029
21030 2013-08-22 Julian Brown <julian@codesourcery.com>
21031
21032 * configure.ac: Add aarch64 to list of arches which use "nop" in
21033 debug_line test.
21034 * configure: Regenerate.
21035
21036 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21037
21038 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
21039 gnu_libc_has_function.
21040 * config/s390/tpf.h: Likewise.
21041
21042 2013-08-22 Jan Hubicka <jh@susue.cz>
21043
21044 * timevar.c (validate_phases): Add cast.
21045
21046 2013-08-22 Jan Hubicka <jh@susue.cz>
21047
21048 * timevar.c (validate_phases): Use size_t for memory.
21049 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
21050
21051 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
21052
21053 * pretty-print.h (output_buffer::output_buffer): Declare.
21054 (pretty_printer::pretty_printer): Likewise.
21055 (pp_construct): Remove.
21056 * pretty-print.c (output_buffer::output_buffer): Define.
21057 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
21058 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
21059 (print_gimple_expr): Likewise.
21060 (print_gimple_seq): Likewise.
21061 (gimple_dump_bb): Likewise.
21062 * sched-vis.c (dump_value_slim): Likewise.
21063 (dump_insn_slim): Likewise.
21064 (dump_rtl_slim): Likewise.
21065 (str_pattern_slim): Likewise.
21066 * tree-mudflap.c (mf_varname_tree): Likewise.
21067 * graph.c (print_graph_cfg): Likewise.
21068 (start_graph_dump): Likewise.
21069 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
21070 placement-new.
21071 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
21072 pretty printer initialization.
21073 * coretypes.h (diagnostic_context): Remove superflous type alias
21074 declaration.
21075 (pretty_printer): Likewise. Declare directly as a class.
21076 (pretty_print_info): Remove declaration as class.
21077 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
21078 and pp_clear_output_area.
21079 (asan_add_global): Likewise.
21080
21081 2013-08-22 Jan Hubicka <jh@suse.cz>
21082
21083 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
21084 * ipa-utils.h (update_type_inheritance_graph): Declare.
21085 (possible_polymorphic_call_target_p): Declare.
21086 (possible_polymorphic_call_target_p): New.
21087 * ipa-devirt.c: Update toplevel comments.
21088 (cached_polymorphic_call_targets): Move up.
21089 (odr_type_d): Move ID down.
21090 (polymorphic_type_binfo_p): Update comment.
21091 (odr_hasher::remove): Likewise;
21092 (get_odr_type): Set anonymous_namespace.
21093 (dump_odr_type): Dump it.
21094 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
21095 (maybe_record_node): Record node in cached_polymorphic_call_targets.
21096 (record_binfo): Add comment.
21097 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
21098 built.
21099 (devirt_node_removal_hook): Do not iCE when cache is freed.
21100 (possible_polymorphic_call_target_p): New predicate.
21101 (update_type_inheritance_graph): New function.
21102
21103 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
21104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21105 Sergey Lega <sergey.s.lega@intel.com>
21106 Anna Tikhonova <anna.tikhonova@intel.com>
21107 Ilya Tocar <ilya.tocar@intel.com>
21108 Andrey Turetskiy <andrey.turetskiy@intel.com>
21109 Ilya Verbin <ilya.verbin@intel.com>
21110 Kirill Yukhin <kirill.yukhin@intel.com>
21111 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21112
21113 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
21114 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
21115 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
21116 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
21117 (OPTION_MASK_ISA_AVX2_UNSET): Update.
21118 (OPTION_MASK_ISA_AVX512F_UNSET): New.
21119 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
21120 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
21121 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
21122 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
21123 OPT_mavx512pf, OPT_mavx512er cases.
21124 * config/i386/constraints.md (v): New constraint.
21125 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
21126 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
21127 (bit_AVX512CD): New.
21128 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21129 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
21130 * config/i386/i386-c.c (ix86_target_macros_internal):
21131 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
21132 __AVX512PF__.
21133 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
21134 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
21135 * config/i386/i386.c (regclass_map, dbx_register_map)
21136 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
21137 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
21138 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
21139 -mavx512pf options.
21140 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
21141 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
21142 -mavx512pf options. Fix formatting.
21143 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
21144 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
21145 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21146 -mavx512cd, -mavx512pf options.
21147 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21148 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21149 (ix86_preferred_output_reload_class): Replace SSE_REGS with
21150 ALL_SSE_REGS.
21151 (ix86_hard_regno_mode_ok): Support 512-bit registers.
21152 (ix86_set_reg_reg_cost): Ditto.
21153 (x86_order_regs_for_local_alloc): Ditto.
21154 (MAX_VECT_LEN): Extend to 64-byte.
21155 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21156 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21157 (TARGET_AVX512ER, TARGET_AVX512CD): New.
21158 (BIGGEST_ALIGNMENT): Extend to 512-bits.
21159 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21160 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21161 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21162 (SSE_REG_MODE_P): Support new modes.
21163 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21164 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21165 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21166 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21167 (REG_CLASS_CONTENTS): Add new registers.
21168 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21169 (EXT_REX_SSE_REGNO_P): New.
21170 (HI_REGISTER_NAMES): Add new registers.
21171 * config/i386/i386.md: Define constants for new registers.
21172 (mode): Add new 512-bit modes.
21173 (prefix): Support evex prefix.
21174 (isa): Support avx512f, noavx512f, fma_avx512f.
21175 (ssemodesuffix): Add new 512-bit modes.
21176 (movxi): New.
21177 (*movxi_internal_avx512f): Ditto.
21178 (*movdi_internal): Replace constraint "x" with the new constraint "v".
21179 Support MODE_XI.
21180 (*movsi_internal): Likewise.
21181 (*movdf_internal): Likewise.
21182 (*movsf_internal): Likewise.
21183 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21184 (<code><mode>3): Likewise.
21185 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21186 New.
21187 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21188 with the new constraint "v".
21189 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21190 modes.
21191 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21192 with the new constraint "v".
21193 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21194 (<sse2>_storedqu<avxsizesuffix>): Likewise.
21195 (*<plusminus_insn><mode>3): Likewise.
21196 (<sse>_vm<plusminus_insn><mode>3): Likewise.
21197 (*mul<mode>3): Likewise.
21198 (<sse>_vmmul<mode>3): Likewise.
21199 (<sse>_div<mode>3): Likewise.
21200 (<sse>_vmdiv<mode>3): Likewise.
21201 (<sse>_sqrt<mode>2): Likewise.
21202 (<sse>_vmsqrt<mode>2): Likewise.
21203 (*<code><mode>3_finite): Likewise.
21204 (*<code><mode>3) <smaxmin>: Likewise.
21205 (<sse>_vm<code><mode>3): Likewise.
21206 (*<code><mode>3) <any_logic>: Likewise.
21207 (*fma_fmadd_<mode>): Likewise.
21208 (*fma_fmsub_<mode>): Likewise.
21209 (*fma_fnmadd_<mode>): Likewise.
21210 (*fma_fnmsub_<mode>): Likewise.
21211 (*fma_fmaddsub_<mode>): Likewise.
21212 (*fma_fmsubadd_<mode>): Likewise.
21213 (*fmai_fmadd_<mode>): Likewise.
21214 (*fmai_fmsub_<mode>): Likewise.
21215 (*fmai_fnmadd_<mode>): Likewise.
21216 (*fmai_fnmsub_<mode>): Likewise.
21217 (sse_cvtsi2ss): Likewise.
21218 (sse_cvtsi2ssq): Likewise.
21219 (sse_cvtss2si): Likewise.
21220 (sse_cvtss2si_2): Likewise.
21221 (sse_cvtss2siq): Likewise.
21222 (sse_cvtss2siq_2): Likewise.
21223 (sse_cvttss2si): Likewise.
21224 (sse_cvtss2siq_2): Likewise.
21225 (float<sseintvecmodelower><mode>2): Likewise.
21226 (sse2_cvtsd2si_2): Likewise.
21227 (sse2_cvtsd2siq_2): Likewise.
21228 (*<plusminus_insn><mode>3): Likewise.
21229 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21230 (*<sse4_1_avx2>_mul<mode>3): Likewise.
21231 (ashr<mode>3): Likewise.
21232 (<shift_insn><mode>3): Likewise.
21233 (avx2_<code><mode>3): Likewise.
21234 (*avx2_<code><mode>3): Likewise.
21235 (*andnot<mode>3): Likewise.
21236 (*<code><mode>3) <any_logic>: Likewise.
21237 (abs<mode>2): Likewise.
21238 (avx2_permvar<mode>): Likewise.
21239 (avx2_perm<mode>_1): Likewise.
21240 (*avx_vpermilp<mode>): Likewise.
21241 (avx_vpermilvar<mode>3): Likewise.
21242 (avx2_ashrv<mode>): Likewise.
21243 (avx2_<shift_insn>v<mode>): Likewise.
21244 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21245 -mavx512cd.
21246 * doc/rtl.texi: Document XImode.
21247
21248 2013-08-21 Jeff Law <law@redhat.com>
21249
21250 * tree-flow.h (register_jump_thread): Pass vector of edges
21251 instead of each important edge.
21252 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21253 thread path into a vector and pass that to register_jump_thread.
21254 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21255 passed in edge vector to the current 3-edge form.
21256
21257 Revert:
21258 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21259
21260 * dce.c (fini_dce): Call df_analyze again just in case
21261 delete_unmarked_insns removed anything.
21262
21263 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
21264
21265 * reload.h (struct reg_equivs): Rename to ..
21266 (struct reg_equivs_s): .. this.
21267
21268 2013-08-20 Martin Liska <marxin.liska@gmail.com>
21269
21270 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21271
21272 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21273
21274 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21275
21276 2013-08-21 Jeff Law <law@redhat.com>
21277
21278 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21279 simplify assignments too. If the RHS collapses to a singleton
21280 range, then return the value for the range.
21281
21282 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
21283
21284 * config/i386/sse.md (V16): Rename to...
21285 (VMOVE): this.
21286 (mov<mode>): Update iterator name.
21287 (*mov<mode>_internal): Ditto.
21288 (push<mode>1): Ditto.
21289 (movmisalign<mode>): Ditto.
21290
21291 2013-08-20 Jan Hubicka <jh@suse.cz>
21292
21293 PR bootstrap/58186
21294 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21295 entry for direct edges.
21296 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21297
21298 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21299
21300 Revert my last two changes, r201865 and r201864:
21301
21302 Revert r201865:
21303 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21304
21305 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21306 instances can own GC refs.
21307
21308 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21309 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21310 (gcc::context::gt_pch_nx): Likewise.
21311 (gcc::context::gt_pch_nx): Likewise.
21312 * ggc.h (gt_ggc_mx <T>): New.
21313 (gt_pch_nx_with_op <T>): New.
21314 (gt_pch_nx <T>): New.
21315 * passes.c (opt_pass::gt_ggc_mx): New.
21316 (opt_pass::gt_pch_nx): New.
21317 (opt_pass::gt_pch_nx_with_op): New.
21318 (pass_manager::gt_ggc_mx): New.
21319 (pass_manager::gt_pch_nx): New.
21320 (pass_manager::gt_pch_nx_with_op): New.
21321 (pass_manager::operator new): Use
21322 ggc_internal_cleared_alloc_stat rather than xcalloc.
21323 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21324 (pass_manager::gt_ggc_mx): New.
21325 (pass_manager::gt_pch_nx): New.
21326 (pass_manager::gt_pch_nx_with_op): New.
21327 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21328 (opt_pass::operator new): New.
21329 (opt_pass::gt_ggc_mx): New.
21330 (opt_pass::gt_pch_nx): New.
21331 (opt_pass::gt_pch_nx_with_op): New.
21332
21333 Revert r201864:
21334 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21335
21336 * Makefile.in (GTFILES): Add context.h.
21337 * context.c (gcc::context::operator new): New.
21338 (gcc::context::gt_ggc_mx): New.
21339 (gcc::context::gt_pch_nx): New.
21340 (gcc::context::gt_pch_nx): New.
21341 * context.h (gcc::context): Add GTY((user)) marking.
21342 (gcc::context::operator new): New.
21343 (gcc::context::gt_ggc_mx): New.
21344 (gcc::context::gt_pch_nx): New.
21345 (gcc::context::gt_pch_nx): New.
21346 (g): Add GTY marking.
21347 (gt_ggc_mx (gcc::context *)): New.
21348 (gt_pch_nx (gcc::context *)): New.
21349 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21350 void *cookie)): New.
21351 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21352
21353 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21354
21355 * dce.c (fini_dce): Call df_analyze again just in case
21356 delete_unmarked_insns removed anything.
21357
21358 2013-08-20 Teresa Johnson <tejohnson@google.com>
21359
21360 PR rtl-optimizations/57451
21361 * final.c (reemit_insn_block_notes): Prevent lexical blocks
21362 from crossing split section boundaries.
21363
21364 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21365
21366 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21367 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21368 with MULTLIB_DEFAULTS.
21369
21370 2013-08-20 Nick Clifton <nickc@redhat.com>
21371
21372 * target.def (narrow_volatile_bitfield): Note that the default
21373 value is false, not !TARGET_STRICT_ALIGN.
21374 * doc/tm.texi: Regenerate.
21375
21376 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
21377
21378 Fix LIB_SPEC for systems without libpthread.
21379
21380 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21381 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21382 for Android.
21383 * config/i386/linux-common.h: Likewise.
21384 * config/mips/linux-common.h: Likewise.
21385
21386 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21387
21388 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21389 checks.
21390
21391 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21392
21393 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21394 instances can own GC refs.
21395
21396 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21397 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21398 (gcc::context::gt_pch_nx): Likewise.
21399 (gcc::context::gt_pch_nx): Likewise.
21400 * ggc.h (gt_ggc_mx <T>): New.
21401 (gt_pch_nx_with_op <T>): New.
21402 (gt_pch_nx <T>): New.
21403 * passes.c (opt_pass::gt_ggc_mx): New.
21404 (opt_pass::gt_pch_nx): New.
21405 (opt_pass::gt_pch_nx_with_op): New.
21406 (pass_manager::gt_ggc_mx): New.
21407 (pass_manager::gt_pch_nx): New.
21408 (pass_manager::gt_pch_nx_with_op): New.
21409 (pass_manager::operator new): Use
21410 ggc_internal_cleared_alloc_stat rather than xcalloc.
21411 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21412 (pass_manager::gt_ggc_mx): New.
21413 (pass_manager::gt_pch_nx): New.
21414 (pass_manager::gt_pch_nx_with_op): New.
21415 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21416 (opt_pass::operator new): New.
21417 (opt_pass::gt_ggc_mx): New.
21418 (opt_pass::gt_pch_nx): New.
21419 (opt_pass::gt_pch_nx_with_op): New.
21420
21421 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21422
21423 * Makefile.in (GTFILES): Add context.h.
21424 * context.c (gcc::context::operator new): New.
21425 (gcc::context::gt_ggc_mx): New.
21426 (gcc::context::gt_pch_nx): New.
21427 (gcc::context::gt_pch_nx): New.
21428 * context.h (gcc::context): Add GTY((user)) marking.
21429 (gcc::context::operator new): New.
21430 (gcc::context::gt_ggc_mx): New.
21431 (gcc::context::gt_pch_nx): New.
21432 (gcc::context::gt_pch_nx): New.
21433 (g): Add GTY marking.
21434 (gt_ggc_mx (gcc::context *)): New.
21435 (gt_pch_nx (gcc::context *)): New.
21436 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21437 void *cookie)): New.
21438 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21439
21440 2013-08-20 Alan Modra <amodra@gmail.com>
21441
21442 PR target/57865
21443 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21444 (rs6000_emit_epilogue): Likewise.
21445
21446 2013-08-19 Dehao Chen <dehao@google.com>
21447
21448 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21449
21450 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
21451 Jakub Jelinek <jakub@redhat.com>
21452
21453 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21454 (BUILT_IN_FABSD64): Likewise.
21455 (BUILT_IN_FABSD128): Likewise.
21456 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21457 (fold_builtin_1): Likewise.
21458 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21459 destination and source operands.
21460 (*abstd2_fpr): Likewise.
21461 (*nabstd2_fpr): Likewise.
21462
21463 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
21464
21465 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21466 JUMP_P and INSN_P.
21467
21468 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
21469
21470 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21471 incomplete.
21472
21473 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
21474
21475 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21476 * builtins.c (default_libc_has_function): New.
21477 (gnu_libc_has_function): Ditto.
21478 (no_c99_libc_has_function): Ditto.
21479 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21480 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21481 (fold_builtin_sincos): Likewise.
21482 (fold_builtin_cexp): Likewise.
21483 * builtins.def (DEF_C94_BUILTIN): Likewise.
21484 (DEF_C99_BUILTIN): Likewise.
21485 (DEF_C99_C90RES_BUILTIN): Likewise.
21486 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21487 definitions to using this define.
21488 * config/darwin-protos.h (darwin_libc_has_function): New.
21489 * config/darwin.c (darwin_libc_has_function): Ditto.
21490 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21491 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21492 * config/darwin.h: Ditto.
21493 * config/elfos.h: Ditto.
21494 * config/freebsd.h: Ditto.
21495 * config/i386/cygming.h: Ditto.
21496 * config/i386/djgpp.h: Ditto.
21497 * config/i386/i386-interix.h: Ditto.
21498 * config/microblaze/microblaze.h: Ditto.
21499 * config/mmix/mmix.h: Ditto.
21500 * config/gnu-user.h: Ditto.
21501 * config/ia64/hpux.h: Ditto.
21502 * config/pa/pa-hpux.h: Ditto.
21503 * config/pdp11/pdp11.h: Ditto.
21504 * config/picochip/picochip.h: Ditto.
21505 * config/linux.h: Ditto.
21506 * config/netbsd.h: Ditto.
21507 * config/openbsd.h: Ditto.
21508 * config/rs6000/aix43.h: Ditto.
21509 * config/rs6000/aix51.h: Ditto.
21510 * config/rs6000/aix52.h: Ditto.
21511 * config/rs6000/aix53.h: Ditto.
21512 * config/rs6000/aix61.h: Ditto.
21513 * config/rs6000/darwin.h: Ditto.
21514 * config/rs6000/linux.h: Ditto.
21515 * config/rs6000/linux64.h: Ditto.
21516 * config/s390/tpf.h: Ditto.
21517 * config/sol2-10.h: Ditto.
21518 * config/sol2.h: Ditto.
21519 * config/vms/vms.h: Ditto.
21520 * config/vxworks.h: Ditto.
21521 * config/linux-android.c (linux_android_libc_has_function):
21522 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21523 * config/linux-protos.h (linux_android_libc_has_function):
21524 New declaration.
21525 * config/i386/i386.c (ix86_libc_has_function): New.
21526 * config/i386/i386-protos.h
21527 (ix86_libc_has_function): New declaration.
21528 * config/i386/i386.md
21529 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21530 ("isinf<mode>2): Likewise.
21531 * convert.c (convert_to_integer): Using new target hook
21532 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21533 TARGET_C99_FUNCTIONS.
21534 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21535 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21536 * coretypes.h (function_class): New enum for different
21537 classes of functions.
21538 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21539 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21540 (TARGET_HAS_SINCOS): Likewise.
21541 (TARGET_LIBC_HAS_FUNCTION): New.
21542 * doc/tm.texi: Regenerated.
21543 * targhooks.h (default_libc_has_function): New declaration.
21544 (no_c99_libc_has_function): Ditto.
21545 (gnu_libc_has_function): Ditto.
21546 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21547 and TARGET_HAS_SINCOS.
21548
21549 2013-08-18 Jan Hubicka <jh@suse.cz>
21550
21551 * Makeifle-in (ipa-devirt.o): New.
21552 (GTFILES): Add ipa-utils.h and ipa-devirt.c
21553 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21554 (analyze_functions): Look into possible targets of polymorphic call.
21555 * dumpfile.c (dump_files): Add type-inheritance dump.
21556 * dumpfile.h (TDI_inheritance): New.
21557 * ipa-devirt.c: New file.
21558 * ipa-utils.h (odr_type_d): Forward declare.
21559 (odr_type): New type.
21560 (build_type_inheritance_graph): Declare.
21561 (possible_polymorphic_call_targets): Declare and introduce inline
21562 variant when only edge is pased.
21563 (dump_possible_polymorphic_call_targets): Likewise.
21564 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21565 * tree.c (type_in_anonymous_namespace_p): Break out from ...
21566 (types_same_for_odr): ... here.
21567 * tree.h (type_in_anonymous_namespace_p): Declare.
21568
21569 2013-08-18 Jakub Jelinek <jakub@redhat.com>
21570
21571 PR tree-optimization/58006
21572 * tree-parloops.c (take_address_of): Don't ICE if get_name
21573 returns NULL.
21574 (eliminate_local_variables_stmt): Remove clobber stmts.
21575
21576 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
21577
21578 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21579 error message is issued for an alias to undefined symbol.
21580
21581 2013-08-18 Jan Hubicka <jh@suse.cz>
21582
21583 * cgraph.c (cgraph_create_indirect_edge): Discover
21584 polymorphic calls and record basic info into indirect_info.
21585 * gimple-fold.c (gimple_fold_call): When doing BINFO based
21586 devirtualization, ignore objc function calls.
21587 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21588 call with no parm index info.
21589 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21590 * tree.c (virtual_method_call_p): New function.
21591 * tree.h (virtual_method_call_p): Declare.
21592
21593 2013-08-16 Jan Hubicka <jh@suse.cz>
21594
21595 PR middle-end/58179
21596 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21597
21598 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21599
21600 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21601 attribute.
21602
21603 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21604
21605 * gengtype.c (type_for_name): Add special-case support for
21606 locating types within the "gcc::" namespace.
21607 (open_base_files): Emit a "using namespace gcc" directive.
21608
21609 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21610
21611 PR target/58160
21612 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21613 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21614
21615 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21616 array instead of each individual operand as a separate argument.
21617 (emit_fusion_gpr_load): Likewise.
21618 (expand_fusion_gpr_load): Add new function declaration.
21619
21620 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21621 signature to have the operands passed as an array, instead of as
21622 separate arguments. Allow ZERO_EXTEND to be in the memory
21623 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21624 depend on the register live/dead flags when peepholes are run.
21625 (expand_fusion_gpr_load): New function to be called from the
21626 peephole2 pass, to change the register that addis sets to be the
21627 target register.
21628 (emit_fusion_gpr_load): Change the calling signature to have the
21629 operands passed as an array, instead of as separate arguments.
21630 Allow ZERO_EXTEND to be in the memory address, and also
21631 SIGN_EXTEND if -mpower8-fusion-sign.
21632
21633 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21634 unspec enumeration.
21635 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21636 adjust the register addis loads up in the peephole2 pass. Do not
21637 depend on the register live/dead state when the peephole pass is done.
21638
21639 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21640
21641 * gengtype.c (create_user_defined_type): Ensure that the kind
21642 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21643 declaration is seen before the GTY((user)) marking.
21644
21645 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21646
21647 PR target/58105
21648 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21649
21650 2013-08-16 Jan Hubicka <jh@suse.cz>
21651
21652 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21653 arugment expected_type.
21654 (gimple_fold_call): Use it.
21655 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21656 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21657 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21658 (try_make_edge_direct_virtual_call): Likewise.
21659 * tree.c (obj_type_ref_class): New.
21660 * tree.h (obj_type_ref_class): Use it.
21661
21662 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21663
21664 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21665 (rtl_slim_pp): Likewise.
21666 (init_rtl_slim_pretty_print): Likewise.
21667 (dump_value_slim): Don't call it. Use local pretty printer.
21668 (dump_insn_slim): Likewise.
21669 (dump_rtl_slim): Likewise.
21670 (str_pattern_slim): Likewise.
21671 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21672 Simplify.
21673
21674 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21675
21676 PR tree-optimization/58164
21677 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21678 walk gimple_goto_dest of GIMPLE_GOTO.
21679
21680 PR tree-optimization/58165
21681 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21682 bi_call must be the last stmt in a bb, don't split_block, instead
21683 use fallthru edge from it and give up if there is none.
21684 Release conds vector when returning early.
21685
21686 2013-08-14 Xinliang David Li <davidxl@google.com>
21687
21688 * config/i386/i386.c (ix86_option_override_internal):
21689 Remove unused variable and field.
21690
21691 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21692
21693 PR target/57949
21694 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21695 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21696 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21697 and Linux, correct BLKmode alignment when 128-bit alignment is
21698 required and compatibility flag is not set.
21699 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21700 for zero-size arguments when compatibility flag is not set.
21701
21702 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21703
21704 PR tree-optimization/58145
21705 * tree-sra.c (build_ref_for_offset): If prev_base has
21706 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21707
21708 2013-08-14 Xinliang David Li <davidxl@google.com>
21709
21710 * config/i386/i386.c (ix86_option_override_internal):
21711 Fix uninitialized variable error.
21712
21713 2013-08-14 Xinliang David Li <davidxl@google.com>
21714
21715 * config/i386/i386.opt: Define two new options.
21716 * config/i386/x86-tune.def: Add arch selector field in macros.
21717 * config/i386/i386.h: Adjust macro definition.
21718 * config/i386/i386.c (ix86_option_override_internal):
21719 Refactor the code.
21720 (parse_mtune_ctrl_str): New function.
21721 (set_ix86_tune_features): New function.
21722 (ix86_function_specific_restore): Call the new helper function.
21723
21724 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21725
21726 PR rtl-optimization/57662
21727 * sel-sched.c (code_motion_process_successors): When the current insn
21728 is removed after the recursive traversal, break from the loop.
21729 Add comments and debug printouts.
21730
21731 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21732 Alexandre Oliva <aoliva@redhat.com>
21733
21734 PR target/58067
21735 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21736 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21737 there also UNSPEC_PLTOFF.
21738
21739 2013-08-14 Marek Polacek <polacek@redhat.com>
21740
21741 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21742 NUM_CONDITIONS bit positions.
21743
21744 2013-08-13 Cary Coutant <ccoutant@google.com>
21745
21746 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21747 (attr_checksum): Hash vector contents instead of pointer.
21748 (attr_checksum_ordered): Likewise.
21749
21750 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21751
21752 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21753 when Pmode != word_mode. Add length_address attribute.
21754 (sse3_monitor_<mode>): Merge from sse3_monitor and
21755 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21756 Pmode != word_mode. Update insn length attribute.
21757 * config/i386/i386.c (ix86_option_override_internal): Update
21758 ix86_gen_monitor selection for merged sse3_monitor insn.
21759
21760 2013-08-13 Julian Brown <julian@codesourcery.com>
21761
21762 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21763 perform invalid legitimization on greater-than-word-size modes for
21764 TARGET_E500_DOUBLE.
21765
21766 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21767
21768 * ira.c (setup_class_translate_array): Use aclass instead of cl
21769 for classes not fully covered by allocno classes.
21770
21771 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21772
21773 PR tree-optimization/57661
21774 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21775 * tree-inline.c (tree_function_versioning): Initialize it.
21776 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21777 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21778 that is not being copied.
21779
21780 PR sanitizer/56417
21781 * asan.c (instrument_strlen_call): Fix typo in comment.
21782 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21783
21784 2013-08-13 Steve Ellcey <sellcey@mips.com>
21785
21786 * config/mips/mips.md (prefetch): Use lw instead of ld on
21787 loongson in 32bit mode.
21788
21789 2013-08-13 Nick Clifton <nickc@redhat.com>
21790
21791 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21792
21793 2013-08-13 Jan Hubicka <jh@suse.cz>
21794
21795 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21796 introduced edge; fix typo in sanity check.
21797 (cgraph_resolve_speculation): Export; improve diagnostic.
21798 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21799 speculation at type mismatch.
21800 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21801 (cgraph_resolve_speculation): Declare.
21802 (symtab_can_be_discarded): New function.
21803 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21804 * ipa-inline-transform.c (speculation_removed): New global var.
21805 (clone_inlined_nodes): See if speculation can be removed.
21806 (inline_call): If speculations was removed, we growths may not match.
21807 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21808 (speculation_useful_p): New function.
21809 (resolve_noninline_speculation): New function.
21810 (inline_small_functions): Resolve useless speculations.
21811 * ipa-inline.h (speculation_useful_p): Declare
21812 * ipa.c (can_replace_by_local_alias): Simplify.
21813 (ipa_profile): Produce speculative calls in non-lto, too;
21814 add simple cost model; produce local aliases.
21815
21816 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21817
21818 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21819 PASS_MANAGER_H.
21820
21821 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21822
21823 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21824
21825 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21826
21827 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21828 iterator instead of X87MODEF.
21829
21830 2013-08-12 Perez Read <netfirewall@gmail.com>
21831
21832 PR target/58132
21833 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21834 operand 0 for intel asm alternative.
21835 (*movabs<mode>_2): Ditto for operand 1.
21836
21837 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21838
21839 * config/aarch64/arm_none.h
21840 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21841
21842 2013-08-12 Nick Clifton <nickc@redhat.com>
21843
21844 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21845
21846 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21847
21848 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21849 expand for QI/HImode operand to produce more effictive code for
21850 unsigned char(short) --> float(double) conversion.
21851
21852 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21853
21854 * doc/invoke.texi: Mention that -ftls-model does not force the final
21855 model.
21856
21857 2013-08-12 Marek Polacek <polacek@redhat.com>
21858 Marc Glisse <marc.glisse@inria.fr>
21859
21860 PR tree-optimization/57980
21861 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21862 when creating -1 constant.
21863
21864 2013-08-10 Jan Hubicka <jh@suse.cz>
21865
21866 Workaround binutils PR14342.
21867 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21868 (gimple_init_edge_profiler): Likewise.
21869 (gimple_gen_ic_func_profiler): Likewise.
21870
21871 2013-08-09 Jan Hubicka <jh@suse.cz>
21872
21873 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21874
21875 2013-08-09 Xinliang David Li <davidxl@google.com>
21876
21877 * config/i386/stringop.def: New file.
21878 * config/i386/stringop.opt: New file.
21879 * config/i386/i386-opts.h: Include stringopt.def.
21880 * config/i386/i386.opt: Include stringopt.opt.
21881 * config/i386/i386.c (ix86_option_override_internal):
21882 Override default size based stringop inline strategies with options.
21883 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21884 New function.
21885
21886 2013-08-09 Jan Hubicka <jh@suse.cz>
21887
21888 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21889
21890 2013-08-09 Jan Hubicka <jh@suse.cz>
21891
21892 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21893 CGRAPH_FREQ_MAX.
21894 (dump_cgraph_node): Dump profile-id.
21895 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21896 and common_target_probability.
21897 * lto-cgraph.c (lto_output_edge): Stream common targets.
21898 (lto_output_node): Stream profile ids.
21899 (input_node): Stream profile ids.
21900 (input_edge): Stream common targets.
21901 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21902 * ipa.c: Include value-prof.h
21903 (ipa_profile_generate_summary): Turn indirect call statement histograms
21904 into common targets.
21905 (ipa_profile): Turn common targets into speculative edges.
21906
21907 2013-08-09 Jan Hubicka <jh@suse.cz>
21908
21909 * cgraph.h (cgraph_node): Add profile_id.
21910 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21911 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21912 (del_node_map): Update.
21913 (find_func_by_funcdef_no): Replace by ...
21914 (find_func_by_profile_id): ... this one.
21915 (gimple_ic_transform): Do not remove useful histograms when
21916 speculation is not done; dump info when indirect call removal
21917 can happen at LTO.
21918 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21919 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21920 (__gcov_indirect_call_profiler_v2): .. this one.
21921 * profile.h (init_node_map): Update.
21922 * coverage.c (coverage_compute_profile_id): New function.
21923 * coverage.h (coverage_compute_profile_id): Declare.
21924 * tree-profile.c (init_ic_make_global_vars): Make
21925 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21926 (gimple_init_edge_profiler): Update prototype of
21927 __gcov_indirect_call_profiler.
21928 (gimple_gen_ic_func_profiler): Simplify.
21929 (tree_profiling): Use init_node_map
21930
21931 2013-08-09 Jan Hubicka <jh@suse.cz>
21932
21933 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21934 non-speculative refs.
21935 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21936 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21937 (cgraph_set_call_stmt): Likewise.
21938 (cgraph_create_edge_1): Fix release checking compilatoin;
21939 clear lto_stmt_uid.
21940 (cgraph_free_edge): Free indirect info.
21941 (cgraph_turn_edge_to_speculative): New function.
21942 (cgraph_speculative_call_info): New function.
21943 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21944 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21945 (dump_cgraph_node): Dump speculation.
21946 (verify_edge_count_and_frequency): Accept speculative edges.
21947 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21948 (verify_cgraph_node): Handle speculation.
21949 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21950 (cgraph_set_call_stmt): Update prototype.
21951 (cgraph_make_edge_direct): Update prototype.
21952 (cgraph_speculative_call_info): Declare.
21953 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21954 to change; update call of ipa_find_references.
21955 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21956 lto_stmt_uid and speculative flags.
21957 (ipa_dump_references): Dump speculation.
21958 (ipa_clone_references): Clone speculative flag.
21959 (ipa_clone_referring): Likewise.
21960 (ipa_clone_ref): New function.
21961 (ipa_find_reference): Look into lto_stmt_uids
21962 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21963 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21964 (ipa_find_reference): Update declaration.
21965 (ipa_clone_ref): Declare.
21966 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21967 stream speculative flag.
21968 (lto_output_ref): Stream statements uids and speculation.
21969 (input_ref): Likewise.
21970 (input_edge): Stream speuclation.
21971 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21972 (cgraph_set_call_stmt_including_clones): Handle speculation.
21973 * ipa-inline.c (heap_edge_removal_hook): New function.
21974 (inline_small_functions): Register it.
21975 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21976 also initialize refs.
21977 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21978 edge to change.
21979 (try_make_edge_direct_simple_call): Likewise.
21980 (try_make_edge_direct_simple_call): Likewise.
21981 (update_indirect_edges_after_inlining): Likewise.
21982 (remove_described_reference): Look proper lto_stmt_uid.
21983 (propagate_controlled_uses): Likewise.
21984 (propagate_controlled_uses): Liekwise.
21985 * tree-inline.c (copy_bb): Copy speculative edges.
21986 (redirect_all_calls): New function.
21987 (copy_cfg_body): Do redirection after loop info is updated.
21988 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21989
21990 2013-08-09 Jan Hubicka <jh@suse.cz>
21991
21992 * lto-streamer-out.c (output_function): Renumber PHIs.
21993 * lto-streamer-in.c (input_function): Likewise.
21994
21995 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21996
21997 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21998 (get_lane_unsigned): Likewise.
21999 (dup_lane_scalar): Likewise.
22000 (get_lane): enable for VALL.
22001 * config/aarch64/aarch64-simd.md
22002 (aarch64_dup_lane_scalar<mode>): Remove.
22003 (aarch64_get_lane_signed<mode>): Likewise.
22004 (aarch64_get_lane_unsigned<mode>): Likewise.
22005 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
22006 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
22007 (aarch64_get_lane<mode>): Enable for all vector modes.
22008 (aarch64_get_lanedi): Remove misleading constraints.
22009 * config/aarch64/arm_neon.h
22010 (__aarch64_vget_lane_any): Define.
22011 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
22012 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
22013 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
22014 * config/aarch64/iterators.md (VDQQH): New.
22015 (VDQQHS): Likewise.
22016 (vwcore): Likewise.
22017
22018 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
22019
22020 * configure.ac: Add GAS check for LEON instructions on SPARC.
22021 * configure: Regenerate.
22022 * config.in: Likewise.
22023 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
22024 sparc*-*-* block.
22025 * config/sparc/sparc.opt (LEON, LEON3): New masks.
22026 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
22027 for LEON or LEON3.
22028 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
22029 (AS_LEON_FLAG): New macro.
22030 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
22031 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
22032 Deal with LEON and LEON3 for the memory model.
22033 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
22034 (atomic_compare_and_swap<mode>_1): Likewise.
22035 (*atomic_compare_and_swap<mode>_1): Likewise.
22036
22037 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22038
22039 * config/arm/neon.md (vcond): Fix floating-point vector
22040 comparisons against 0.
22041
22042 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
22043
22044 * lra-constraints.c (emit_spill_move): Remove assert.
22045 (process_alt_operands): Add more debugging
22046 output. Increase reject for spilling into memory. Decrease
22047 reject for reloading scratch.
22048 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
22049
22050 2013-08-08 Steve Ellcey <sellcey@mips.com>
22051
22052 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
22053 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
22054 micromips incompatible. Add nan2008.
22055 (MULTILIB_DIRNAMES): Add nan2008.
22056 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
22057 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
22058 and micromips incompatible. Add nan2008.
22059 (MULTILIB_DIRNAMES): Add nan2008.
22060 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
22061
22062 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
22063
22064 PR rtl-optimization/58079
22065 * combine.c (combine_simplify_rtx): Avoid using SUBST if
22066 simplify_comparison has widened a comparison with an integer.
22067
22068 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22069
22070 * config/arm/neon.md (movmisalign<mode>): Disable when we
22071 don't allow unaligned accesses.
22072 (*movmisalign<mode>_neon_store): Likewise.
22073 (*movmisalign<mode>_neon_load): Likewise.
22074 (*movmisalign<mode>_neon_store): Likewise.
22075 (*movmisalign<mode>_neon_load): Likewise.
22076
22077 2013-08-08 Jan Hubicka <jh@suse.cz>
22078
22079 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
22080 (make_pass_rebuild_cgraph_edges): Also clear references.
22081 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
22082 * ipa-inline-transform.c (inline_transform): Remove all references
22083 after inlining.
22084 * cgraphunit.c (expand_function): Remove all references after
22085 expansion.
22086 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
22087 (ipa_find_reference): Rewrite to iterator.
22088 (remove_stmt_references): Likewise.
22089 (ipa_clear_stmts_in_references): New function.
22090 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
22091 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
22092 clear references.
22093 * ipa-split.c (split_function): Remove references in split function.
22094
22095 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
22096
22097 PR target/57431
22098 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
22099 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
22100
22101 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
22102
22103 PR target/56979
22104 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
22105 suggested mode for the assignment isn't compatible with the
22106 registers required.
22107
22108 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22109
22110 PR target/58065
22111 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
22112
22113 2013-08-07 Xinliang David Li <davidxl@google.com>
22114
22115 * config/i386/i386.opt: New option -mtune-ctrl=.
22116 * config/i386/x86-tune.def: New file.
22117 * config/i386/i386.h: include x86-tune.def.
22118 * config/i386/i386.c (ix86_option_override_internal):
22119 Parsing -mtune-ctrl= option and set tune features.
22120
22121 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
22122
22123 PR other/12081
22124 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
22125 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
22126 to gen_2arg_fn_t.
22127
22128 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22129
22130 * rtl.h (update_alignments): Declare.
22131 * final.c (grow_label_align): New function extracted from...
22132 (shorten_branches): ...here. Call it.
22133 (update_alignments): New function.
22134 * reorg.c (sibling_labels): New variable.
22135 (get_label_before): Add SIBLING parameter. If it is non-zero, push
22136 the new label along with it onto the sibling_labels vector.
22137 (fill_simple_delay_slots): Adjust call to get_label_before.
22138 (fill_slots_from_thread): Likewise.
22139 (relax_delay_slots): Likewise.
22140 (make_return_insns): Likewise.
22141 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
22142
22143 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22144
22145 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22146 document its semantics.
22147 (diagnostic_report_diagnostic): Adjust accordingly.
22148
22149 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22150
22151 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22152 (sparc_option_override): ...and port to new C++ pass API.
22153 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22154
22155 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
22156
22157 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22158
22159 2013-08-06 Caroline Tice <cmtice@google.com>
22160
22161 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22162 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22163 * tree-pass.h: Add pass_vtable_verify.
22164 * varasm.c (assemble_variable): Add code to properly set the comdat
22165 section and name for the .vtable_map_vars section.
22166 (assemble_vtyv_preinit_initializer): New function.
22167 (default_sectin_type_flags): Make sure .vtable_map_vars section has
22168 LINK_ONCE flag.
22169 * output.h: Add function decl for assemble_vtv_preinit_initializer.
22170 * vtable-verify.c: New file.
22171 * vtable-verify.h: New file.
22172 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22173 initialiation levels.
22174 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22175 * passes.def: Insert pass_vtable_verify.
22176 * aclocal.m4: Reorder includes.
22177 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
22178 -fvtv-counts options.
22179 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22180 as appropriate, if -fvtable-verify=... is used.
22181 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22182 -fvtable-verify=... is used.
22183 * Makefile.in (OBJS): Add vtable-verify.o to list.
22184 (vtable-verify.o): Add new build rule.
22185 (GTFILES): Add vtable-verify.c to list.
22186 * common.opt (fvtable-verify=): New flag.
22187 (vtv_priority): Values for fvtable-verify= flag.
22188 (fvtv-counts): New flag.
22189 (fvtv-debug): New flag.
22190 * tree.h (save_vtable_map_decl): New extern function decl.
22191
22192 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22193
22194 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22195 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22196 (pass_data_rl78_devirt): ...new pass_data instance and...
22197 (make_pass_rl78_devirt): ...new function.
22198 (rl78_asm_file_start): Port pass registration to new C++ API.
22199
22200 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22201
22202 * coretypes.h (rtl_opt_pass): Add.
22203 (gcc::context): Add.
22204 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22205 (epiphany_init): Port to new C++ pass API.
22206 (epiphany_optimize_mode_switching): Likewise.
22207 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22208 (pass_manager::get_pass_mode_switching): New.
22209 (pass_manager::get_pass_peephole2): New.
22210 * mode-switching.c (pass_mode_switching): Add clone method.
22211 * recog.c (pass_peephole2): Add clone method.
22212 (pass_split_all_insns): Add clone method.
22213
22214 2013-08-06 David Malcolm <dmalcolm@redhat.com>
22215
22216 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22217 (mips_option_override): ...here, porting to new C++ API for passes.
22218
22219 2013-08-06 Jan Hubicka <jh@suse.cz>
22220
22221 * cgraph.c (cgraph_get_body): New function based on lto.c
22222 implementation.
22223 * cgraph.h (cgraph_get_body): Declare.
22224 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22225 LTO paths.
22226 * cgraphunit.c (expand_function): Get body prior expanding.
22227 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22228 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22229 really need.
22230 * passes.c (do_per_function_toporder): Get body.
22231 * tree-inline.c (expand_call_inline): Get body prior inlining it.
22232 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22233
22234 2013-08-06 Martin Jambor <mjambor@suse.cz>
22235
22236 PR fortran/57987
22237 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22238 is not re-finalized. Rename second parameter to no_collect.
22239
22240 2013-08-06 Martin Jambor <mjambor@suse.cz>
22241
22242 PR middle-end/58041
22243 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22244 MEM_REF has proper alignment information.
22245
22246 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
22247
22248 PR other/12081
22249 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22250 class insn_gen_fn.
22251 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22252 rtx (*) (rtx, ...) with insn_gen_fn.
22253 * genoutput.c (output_insn_data): Cast gen_? function pointers to
22254 insn_gen_fn::stored_funcptr. Add initializer braces.
22255
22256 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22257
22258 Rewrite how instances of passes are cloned to remove assumptions
22259 about their sizes (thus allowing pass subclasses to have
22260 additional data fields, albeit non-GC-managed ones at this point).
22261
22262 * passes.c (make_pass_instance): Now that passes have clone
22263 methods, rewrite this function to eliminate XNEW and memcpy
22264 calls that used hardcoded sizes. Since this function no longer
22265 creates pass instances, rename it to...
22266 (add_pass_instance): ...this. Document the old way that passes were
22267 numbered and flagged, and rework this function to continue using it.
22268 (next_pass_1): Add an initial_pass argument for use by
22269 add_pass_instance.
22270 (position_pass): When adding multiple instances of a pass, use
22271 the pass's clone method, rather than relying on the XNEW/memcpy
22272 within the former make_pass_instance (now add_pass_instance).
22273 (pass_manager::pass_manager): When invoking next_pass_1, also supply
22274 the initial instance of the current pass within the pass manager.
22275
22276 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22277
22278 This is the automated part of the conversion of passes from C
22279 structs to C++ classes.
22280
22281 Patch autogenerated by refactor_passes.py from
22282 https://github.com/davidmalcolm/gcc-refactoring-scripts
22283 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22284
22285 * asan.c (pass_asan): Convert from a global struct to a subclass of
22286 gimple_opt_pass along with...
22287 (pass_data_asan): ...new pass_data instance and...
22288 (make_pass_asan): ...new function.
22289 (pass_asan_O0): Convert from a global struct to a subclass of
22290 gimple_opt_pass along with...
22291 (pass_data_asan_O0): ...new pass_data instance and...
22292 (make_pass_asan_O0): ...new function.
22293 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22294 subclass of rtl_opt_pass along with...
22295 (pass_data_inc_dec): ...new pass_data instance and...
22296 (make_pass_inc_dec): ...new function.
22297 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22298 a subclass of rtl_opt_pass along with...
22299 (pass_data_reorder_blocks): ...new pass_data instance and...
22300 (make_pass_reorder_blocks): ...new function.
22301 (pass_duplicate_computed_gotos): Convert from a global struct to a
22302 subclass of rtl_opt_pass along with...
22303 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22304 (make_pass_duplicate_computed_gotos): ...new function.
22305 (pass_partition_blocks): Convert from a global struct to a subclass of
22306 rtl_opt_pass along with...
22307 (pass_data_partition_blocks): ...new pass_data instance and...
22308 (make_pass_partition_blocks): ...new function.
22309 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22310 struct to a subclass of rtl_opt_pass along with...
22311 (pass_data_branch_target_load_optimize1): ...new pass_data instance
22312 and...
22313 (make_pass_branch_target_load_optimize1): ...new function.
22314 (pass_branch_target_load_optimize2): Convert from a global struct to a
22315 subclass of rtl_opt_pass along with...
22316 (pass_data_branch_target_load_optimize2): ...new pass_data instance
22317 and...
22318 (make_pass_branch_target_load_optimize2): ...new function.
22319 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22320 of rtl_opt_pass along with...
22321 (pass_data_jump): ...new pass_data instance and...
22322 (make_pass_jump): ...new function.
22323 (pass_jump2): Convert from a global struct to a subclass of
22324 rtl_opt_pass along with...
22325 (pass_data_jump2): ...new pass_data instance and...
22326 (make_pass_jump2): ...new function.
22327 * cfgexpand.c (pass_expand): Convert from a global struct to a
22328 subclass of rtl_opt_pass along with...
22329 (pass_data_expand): ...new pass_data instance and...
22330 (make_pass_expand): ...new function.
22331 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22332 of rtl_opt_pass along with...
22333 (pass_data_free_cfg): ...new pass_data instance and...
22334 (make_pass_free_cfg): ...new function.
22335 (pass_into_cfg_layout_mode): Convert from a global struct to a
22336 subclass of rtl_opt_pass along with...
22337 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22338 (make_pass_into_cfg_layout_mode): ...new function.
22339 (pass_outof_cfg_layout_mode): Convert from a global struct to a
22340 subclass of rtl_opt_pass along with...
22341 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22342 (make_pass_outof_cfg_layout_mode): ...new function.
22343 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22344 struct to a subclass of gimple_opt_pass along with...
22345 (pass_data_build_cgraph_edges): ...new pass_data instance and...
22346 (make_pass_build_cgraph_edges): ...new function.
22347 (pass_rebuild_cgraph_edges): Convert from a global struct to a
22348 subclass of gimple_opt_pass along with...
22349 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22350 (make_pass_rebuild_cgraph_edges): ...new function.
22351 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22352 subclass of gimple_opt_pass along with...
22353 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22354 and...
22355 (make_pass_remove_cgraph_callee_edges): ...new function.
22356 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22357 struct to a subclass of rtl_opt_pass along with...
22358 (pass_data_stack_adjustments): ...new pass_data instance and...
22359 (make_pass_stack_adjustments): ...new function.
22360 * combine.c (pass_combine): Convert from a global struct to a subclass
22361 of rtl_opt_pass along with...
22362 (pass_data_combine): ...new pass_data instance and...
22363 (make_pass_combine): ...new function.
22364 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22365 global struct to a subclass of rtl_opt_pass along with...
22366 (pass_data_compare_elim_after_reload): ...new pass_data instance
22367 and...
22368 (make_pass_compare_elim_after_reload): ...new function.
22369 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22370 of rtl_opt_pass along with...
22371 (pass_data_rtl_cprop): ...new pass_data instance and...
22372 (make_pass_rtl_cprop): ...new function.
22373 * cse.c (pass_cse): Convert from a global struct to a subclass of
22374 rtl_opt_pass along with...
22375 (pass_data_cse): ...new pass_data instance and...
22376 (make_pass_cse): ...new function.
22377 (pass_cse2): Convert from a global struct to a subclass of
22378 rtl_opt_pass along with...
22379 (pass_data_cse2): ...new pass_data instance and...
22380 (make_pass_cse2): ...new function.
22381 (pass_cse_after_global_opts): Convert from a global struct to a
22382 subclass of rtl_opt_pass along with...
22383 (pass_data_cse_after_global_opts): ...new pass_data instance and...
22384 (make_pass_cse_after_global_opts): ...new function.
22385 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22386 of rtl_opt_pass along with...
22387 (pass_data_ud_rtl_dce): ...new pass_data instance and...
22388 (make_pass_ud_rtl_dce): ...new function.
22389 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22390 rtl_opt_pass along with...
22391 (pass_data_fast_rtl_dce): ...new pass_data instance and...
22392 (make_pass_fast_rtl_dce): ...new function.
22393 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22394 a subclass of rtl_opt_pass along with...
22395 (pass_data_df_initialize_opt): ...new pass_data instance and...
22396 (make_pass_df_initialize_opt): ...new function.
22397 (pass_df_initialize_no_opt): Convert from a global struct to a
22398 subclass of rtl_opt_pass along with...
22399 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22400 (make_pass_df_initialize_no_opt): ...new function.
22401 (pass_df_finish): Convert from a global struct to a subclass of
22402 rtl_opt_pass along with...
22403 (pass_data_df_finish): ...new pass_data instance and...
22404 (make_pass_df_finish): ...new function.
22405 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22406 rtl_opt_pass along with...
22407 (pass_data_rtl_dse1): ...new pass_data instance and...
22408 (make_pass_rtl_dse1): ...new function.
22409 (pass_rtl_dse2): Convert from a global struct to a subclass of
22410 rtl_opt_pass along with...
22411 (pass_data_rtl_dse2): ...new pass_data instance and...
22412 (make_pass_rtl_dse2): ...new function.
22413 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22414 subclass of rtl_opt_pass along with...
22415 (pass_data_dwarf2_frame): ...new pass_data instance and...
22416 (make_pass_dwarf2_frame): ...new function.
22417 * except.c (pass_set_nothrow_function_flags): Convert from a global
22418 struct to a subclass of rtl_opt_pass along with...
22419 (pass_data_set_nothrow_function_flags): ...new pass_data instance
22420 and...
22421 (make_pass_set_nothrow_function_flags): ...new function.
22422 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22423 subclass of rtl_opt_pass along with...
22424 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22425 and...
22426 (make_pass_convert_to_eh_region_ranges): ...new function.
22427 * final.c (pass_compute_alignments): Convert from a global struct to a
22428 subclass of rtl_opt_pass along with...
22429 (pass_data_compute_alignments): ...new pass_data instance and...
22430 (make_pass_compute_alignments): ...new function.
22431 (pass_final): Convert from a global struct to a subclass of
22432 rtl_opt_pass along with...
22433 (pass_data_final): ...new pass_data instance and...
22434 (make_pass_final): ...new function.
22435 (pass_shorten_branches): Convert from a global struct to a subclass of
22436 rtl_opt_pass along with...
22437 (pass_data_shorten_branches): ...new pass_data instance and...
22438 (make_pass_shorten_branches): ...new function.
22439 (pass_clean_state): Convert from a global struct to a subclass of
22440 rtl_opt_pass along with...
22441 (pass_data_clean_state): ...new pass_data instance and...
22442 (make_pass_clean_state): ...new function.
22443 * function.c (pass_instantiate_virtual_regs): Convert from a global
22444 struct to a subclass of rtl_opt_pass along with...
22445 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22446 (make_pass_instantiate_virtual_regs): ...new function.
22447 (pass_leaf_regs): Convert from a global struct to a subclass of
22448 rtl_opt_pass along with...
22449 (pass_data_leaf_regs): ...new pass_data instance and...
22450 (make_pass_leaf_regs): ...new function.
22451 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22452 subclass of rtl_opt_pass along with...
22453 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22454 and...
22455 (make_pass_thread_prologue_and_epilogue): ...new function.
22456 (pass_match_asm_constraints): Convert from a global struct to a
22457 subclass of rtl_opt_pass along with...
22458 (pass_data_match_asm_constraints): ...new pass_data instance and...
22459 (make_pass_match_asm_constraints): ...new function.
22460 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22461 subclass of rtl_opt_pass along with...
22462 (pass_data_rtl_fwprop): ...new pass_data instance and...
22463 (make_pass_rtl_fwprop): ...new function.
22464 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22465 rtl_opt_pass along with...
22466 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22467 (make_pass_rtl_fwprop_addr): ...new function.
22468 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22469 rtl_opt_pass along with...
22470 (pass_data_rtl_pre): ...new pass_data instance and...
22471 (make_pass_rtl_pre): ...new function.
22472 (pass_rtl_hoist): Convert from a global struct to a subclass of
22473 rtl_opt_pass along with...
22474 (pass_data_rtl_hoist): ...new pass_data instance and...
22475 (make_pass_rtl_hoist): ...new function.
22476 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22477 subclass of gimple_opt_pass along with...
22478 (pass_data_lower_cf): ...new pass_data instance and...
22479 (make_pass_lower_cf): ...new function.
22480 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22481 from a global struct to a subclass of gimple_opt_pass along with...
22482 (pass_data_strength_reduction): ...new pass_data instance and...
22483 (make_pass_strength_reduction): ...new function.
22484 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22485 of rtl_opt_pass along with...
22486 (pass_data_rtl_ifcvt): ...new pass_data instance and...
22487 (make_pass_rtl_ifcvt): ...new function.
22488 (pass_if_after_combine): Convert from a global struct to a subclass of
22489 rtl_opt_pass along with...
22490 (pass_data_if_after_combine): ...new pass_data instance and...
22491 (make_pass_if_after_combine): ...new function.
22492 (pass_if_after_reload): Convert from a global struct to a subclass of
22493 rtl_opt_pass along with...
22494 (pass_data_if_after_reload): ...new pass_data instance and...
22495 (make_pass_if_after_reload): ...new function.
22496 * init-regs.c (pass_initialize_regs): Convert from a global struct to
22497 a subclass of rtl_opt_pass along with...
22498 (pass_data_initialize_regs): ...new pass_data instance and...
22499 (make_pass_initialize_regs): ...new function.
22500 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22501 of ipa_opt_pass_d along with...
22502 (pass_data_ipa_cp): ...new pass_data instance and...
22503 (make_pass_ipa_cp): ...new function.
22504 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22505 global struct to a subclass of gimple_opt_pass along with...
22506 (pass_data_inline_parameters): ...new pass_data instance and...
22507 (make_pass_inline_parameters): ...new function.
22508 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22509 subclass of gimple_opt_pass along with...
22510 (pass_data_early_inline): ...new pass_data instance and...
22511 (make_pass_early_inline): ...new function.
22512 (pass_ipa_inline): Convert from a global struct to a subclass of
22513 ipa_opt_pass_d along with...
22514 (pass_data_ipa_inline): ...new pass_data instance and...
22515 (make_pass_ipa_inline): ...new function.
22516 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22517 struct to a subclass of gimple_opt_pass along with...
22518 (pass_data_local_pure_const): ...new pass_data instance and...
22519 (make_pass_local_pure_const): ...new function.
22520 (pass_ipa_pure_const): Convert from a global struct to a subclass of
22521 ipa_opt_pass_d along with...
22522 (pass_data_ipa_pure_const): ...new pass_data instance and...
22523 (make_pass_ipa_pure_const): ...new function.
22524 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22525 to a subclass of ipa_opt_pass_d along with...
22526 (pass_data_ipa_reference): ...new pass_data instance and...
22527 (make_pass_ipa_reference): ...new function.
22528 * ipa-split.c (pass_split_functions): Convert from a global struct to
22529 a subclass of gimple_opt_pass along with...
22530 (pass_data_split_functions): ...new pass_data instance and...
22531 (make_pass_split_functions): ...new function.
22532 (pass_feedback_split_functions): Convert from a global struct to a
22533 subclass of gimple_opt_pass along with...
22534 (pass_data_feedback_split_functions): ...new pass_data instance and...
22535 (make_pass_feedback_split_functions): ...new function.
22536 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22537 global struct to a subclass of simple_ipa_opt_pass along with...
22538 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22539 instance and...
22540 (make_pass_ipa_function_and_variable_visibility): ...new function.
22541 (pass_ipa_free_inline_summary): Convert from a global struct to a
22542 subclass of simple_ipa_opt_pass along with...
22543 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22544 (make_pass_ipa_free_inline_summary): ...new function.
22545 (pass_ipa_whole_program_visibility): Convert from a global struct to a
22546 subclass of ipa_opt_pass_d along with...
22547 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22548 and...
22549 (make_pass_ipa_whole_program_visibility): ...new function.
22550 (pass_ipa_profile): Convert from a global struct to a subclass of
22551 ipa_opt_pass_d along with...
22552 (pass_data_ipa_profile): ...new pass_data instance and...
22553 (make_pass_ipa_profile): ...new function.
22554 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22555 ipa_opt_pass_d along with...
22556 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22557 (make_pass_ipa_cdtor_merge): ...new function.
22558 * ira.c (pass_ira): Convert from a global struct to a subclass of
22559 rtl_opt_pass along with...
22560 (pass_data_ira): ...new pass_data instance and...
22561 (make_pass_ira): ...new function.
22562 (pass_reload): Convert from a global struct to a subclass of
22563 rtl_opt_pass along with...
22564 (pass_data_reload): ...new pass_data instance and...
22565 (make_pass_reload): ...new function.
22566 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22567 subclass of rtl_opt_pass along with...
22568 (pass_data_cleanup_barriers): ...new pass_data instance and...
22569 (make_pass_cleanup_barriers): ...new function.
22570 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22571 of rtl_opt_pass along with...
22572 (pass_data_loop2): ...new pass_data instance and...
22573 (make_pass_loop2): ...new function.
22574 (pass_rtl_loop_init): Convert from a global struct to a subclass of
22575 rtl_opt_pass along with...
22576 (pass_data_rtl_loop_init): ...new pass_data instance and...
22577 (make_pass_rtl_loop_init): ...new function.
22578 (pass_rtl_loop_done): Convert from a global struct to a subclass of
22579 rtl_opt_pass along with...
22580 (pass_data_rtl_loop_done): ...new pass_data instance and...
22581 (make_pass_rtl_loop_done): ...new function.
22582 (pass_rtl_move_loop_invariants): Convert from a global struct to a
22583 subclass of rtl_opt_pass along with...
22584 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22585 (make_pass_rtl_move_loop_invariants): ...new function.
22586 (pass_rtl_unswitch): Convert from a global struct to a subclass of
22587 rtl_opt_pass along with...
22588 (pass_data_rtl_unswitch): ...new pass_data instance and...
22589 (make_pass_rtl_unswitch): ...new function.
22590 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22591 subclass of rtl_opt_pass along with...
22592 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22593 and...
22594 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22595 (pass_rtl_doloop): Convert from a global struct to a subclass of
22596 rtl_opt_pass along with...
22597 (pass_data_rtl_doloop): ...new pass_data instance and...
22598 (make_pass_rtl_doloop): ...new function.
22599 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22600 a subclass of rtl_opt_pass along with...
22601 (pass_data_lower_subreg): ...new pass_data instance and...
22602 (make_pass_lower_subreg): ...new function.
22603 (pass_lower_subreg2): Convert from a global struct to a subclass of
22604 rtl_opt_pass along with...
22605 (pass_data_lower_subreg2): ...new pass_data instance and...
22606 (make_pass_lower_subreg2): ...new function.
22607 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22608 struct to a subclass of ipa_opt_pass_d along with...
22609 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22610 (make_pass_ipa_lto_gimple_out): ...new function.
22611 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22612 of ipa_opt_pass_d along with...
22613 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22614 (make_pass_ipa_lto_finish_out): ...new function.
22615 * mode-switching.c (pass_mode_switching): Convert from a global struct
22616 to a subclass of rtl_opt_pass along with...
22617 (pass_data_mode_switching): ...new pass_data instance and...
22618 (make_pass_mode_switching): ...new function.
22619 * modulo-sched.c (pass_sms): Convert from a global struct to a
22620 subclass of rtl_opt_pass along with...
22621 (pass_data_sms): ...new pass_data instance and...
22622 (make_pass_sms): ...new function.
22623 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22624 subclass of gimple_opt_pass along with...
22625 (pass_data_expand_omp): ...new pass_data instance and...
22626 (make_pass_expand_omp): ...new function.
22627 (pass_lower_omp): Convert from a global struct to a subclass of
22628 gimple_opt_pass along with...
22629 (pass_data_lower_omp): ...new pass_data instance and...
22630 (make_pass_lower_omp): ...new function.
22631 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22632 of gimple_opt_pass along with...
22633 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22634 (make_pass_diagnose_omp_blocks): ...new function.
22635 * passes.c (pass_early_local_passes): Convert from a global struct to
22636 a subclass of simple_ipa_opt_pass along with...
22637 (pass_data_early_local_passes): ...new pass_data instance and...
22638 (make_pass_early_local_passes): ...new function.
22639 (pass_all_early_optimizations): Convert from a global struct to a
22640 subclass of gimple_opt_pass along with...
22641 (pass_data_all_early_optimizations): ...new pass_data instance and...
22642 (make_pass_all_early_optimizations): ...new function.
22643 (pass_all_optimizations): Convert from a global struct to a subclass
22644 of gimple_opt_pass along with...
22645 (pass_data_all_optimizations): ...new pass_data instance and...
22646 (make_pass_all_optimizations): ...new function.
22647 (pass_all_optimizations_g): Convert from a global struct to a subclass
22648 of gimple_opt_pass along with...
22649 (pass_data_all_optimizations_g): ...new pass_data instance and...
22650 (make_pass_all_optimizations_g): ...new function.
22651 (pass_rest_of_compilation): Convert from a global struct to a subclass
22652 of rtl_opt_pass along with...
22653 (pass_data_rest_of_compilation): ...new pass_data instance and...
22654 (make_pass_rest_of_compilation): ...new function.
22655 (pass_postreload): Convert from a global struct to a subclass of
22656 rtl_opt_pass along with...
22657 (pass_data_postreload): ...new pass_data instance and...
22658 (make_pass_postreload): ...new function.
22659 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22660 subclass of rtl_opt_pass along with...
22661 (pass_data_gcse2): ...new pass_data instance and...
22662 (make_pass_gcse2): ...new function.
22663 * postreload.c (pass_postreload_cse): Convert from a global struct to
22664 a subclass of rtl_opt_pass along with...
22665 (pass_data_postreload_cse): ...new pass_data instance and...
22666 (make_pass_postreload_cse): ...new function.
22667 * predict.c (pass_profile): Convert from a global struct to a subclass
22668 of gimple_opt_pass along with...
22669 (pass_data_profile): ...new pass_data instance and...
22670 (make_pass_profile): ...new function.
22671 (pass_strip_predict_hints): Convert from a global struct to a subclass
22672 of gimple_opt_pass along with...
22673 (pass_data_strip_predict_hints): ...new pass_data instance and...
22674 (make_pass_strip_predict_hints): ...new function.
22675 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22676 of rtl_opt_pass along with...
22677 (pass_data_peephole2): ...new pass_data instance and...
22678 (make_pass_peephole2): ...new function.
22679 (pass_split_all_insns): Convert from a global struct to a subclass of
22680 rtl_opt_pass along with...
22681 (pass_data_split_all_insns): ...new pass_data instance and...
22682 (make_pass_split_all_insns): ...new function.
22683 (pass_split_after_reload): Convert from a global struct to a subclass
22684 of rtl_opt_pass along with...
22685 (pass_data_split_after_reload): ...new pass_data instance and...
22686 (make_pass_split_after_reload): ...new function.
22687 (pass_split_before_regstack): Convert from a global struct to a
22688 subclass of rtl_opt_pass along with...
22689 (pass_data_split_before_regstack): ...new pass_data instance and...
22690 (make_pass_split_before_regstack): ...new function.
22691 (pass_split_before_sched2): Convert from a global struct to a subclass
22692 of rtl_opt_pass along with...
22693 (pass_data_split_before_sched2): ...new pass_data instance and...
22694 (make_pass_split_before_sched2): ...new function.
22695 (pass_split_for_shorten_branches): Convert from a global struct to a
22696 subclass of rtl_opt_pass along with...
22697 (pass_data_split_for_shorten_branches): ...new pass_data instance
22698 and...
22699 (make_pass_split_for_shorten_branches): ...new function.
22700 * ree.c (pass_ree): Convert from a global struct to a subclass of
22701 rtl_opt_pass along with...
22702 (pass_data_ree): ...new pass_data instance and...
22703 (make_pass_ree): ...new function.
22704 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22705 subclass of rtl_opt_pass along with...
22706 (pass_data_stack_regs): ...new pass_data instance and...
22707 (make_pass_stack_regs): ...new function.
22708 (pass_stack_regs_run): Convert from a global struct to a subclass of
22709 rtl_opt_pass along with...
22710 (pass_data_stack_regs_run): ...new pass_data instance and...
22711 (make_pass_stack_regs_run): ...new function.
22712 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22713 subclass of rtl_opt_pass along with...
22714 (pass_data_cprop_hardreg): ...new pass_data instance and...
22715 (make_pass_cprop_hardreg): ...new function.
22716 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22717 subclass of rtl_opt_pass along with...
22718 (pass_data_reginfo_init): ...new pass_data instance and...
22719 (make_pass_reginfo_init): ...new function.
22720 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22721 of rtl_opt_pass along with...
22722 (pass_data_regmove): ...new pass_data instance and...
22723 (make_pass_regmove): ...new function.
22724 * regrename.c (pass_regrename): Convert from a global struct to a
22725 subclass of rtl_opt_pass along with...
22726 (pass_data_regrename): ...new pass_data instance and...
22727 (make_pass_regrename): ...new function.
22728 * reorg.c (pass_delay_slots): Convert from a global struct to a
22729 subclass of rtl_opt_pass along with...
22730 (pass_data_delay_slots): ...new pass_data instance and...
22731 (make_pass_delay_slots): ...new function.
22732 (pass_machine_reorg): Convert from a global struct to a subclass of
22733 rtl_opt_pass along with...
22734 (pass_data_machine_reorg): ...new pass_data instance and...
22735 (make_pass_machine_reorg): ...new function.
22736 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22737 of rtl_opt_pass along with...
22738 (pass_data_sched): ...new pass_data instance and...
22739 (make_pass_sched): ...new function.
22740 (pass_sched2): Convert from a global struct to a subclass of
22741 rtl_opt_pass along with...
22742 (pass_data_sched2): ...new pass_data instance and...
22743 (make_pass_sched2): ...new function.
22744 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22745 to a subclass of rtl_opt_pass along with...
22746 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22747 (make_pass_stack_ptr_mod): ...new function.
22748 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22749 to a subclass of rtl_opt_pass along with...
22750 (pass_data_rtl_store_motion): ...new pass_data instance and...
22751 (make_pass_rtl_store_motion): ...new function.
22752 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22753 of gimple_opt_pass along with...
22754 (pass_data_tracer): ...new pass_data instance and...
22755 (make_pass_tracer): ...new function.
22756 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22757 to a subclass of gimple_opt_pass along with...
22758 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22759 (make_pass_diagnose_tm_blocks): ...new function.
22760 (pass_lower_tm): Convert from a global struct to a subclass of
22761 gimple_opt_pass along with...
22762 (pass_data_lower_tm): ...new pass_data instance and...
22763 (make_pass_lower_tm): ...new function.
22764 (pass_tm_init): Convert from a global struct to a subclass of
22765 gimple_opt_pass along with...
22766 (pass_data_tm_init): ...new pass_data instance and...
22767 (make_pass_tm_init): ...new function.
22768 (pass_tm_mark): Convert from a global struct to a subclass of
22769 gimple_opt_pass along with...
22770 (pass_data_tm_mark): ...new pass_data instance and...
22771 (make_pass_tm_mark): ...new function.
22772 (pass_tm_edges): Convert from a global struct to a subclass of
22773 gimple_opt_pass along with...
22774 (pass_data_tm_edges): ...new pass_data instance and...
22775 (make_pass_tm_edges): ...new function.
22776 (pass_tm_memopt): Convert from a global struct to a subclass of
22777 gimple_opt_pass along with...
22778 (pass_data_tm_memopt): ...new pass_data instance and...
22779 (make_pass_tm_memopt): ...new function.
22780 (pass_ipa_tm): Convert from a global struct to a subclass of
22781 simple_ipa_opt_pass along with...
22782 (pass_data_ipa_tm): ...new pass_data instance and...
22783 (make_pass_ipa_tm): ...new function.
22784 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22785 subclass of gimple_opt_pass along with...
22786 (pass_data_call_cdce): ...new pass_data instance and...
22787 (make_pass_call_cdce): ...new function.
22788 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22789 subclass of gimple_opt_pass along with...
22790 (pass_data_build_cfg): ...new pass_data instance and...
22791 (make_pass_build_cfg): ...new function.
22792 (pass_split_crit_edges): Convert from a global struct to a subclass of
22793 gimple_opt_pass along with...
22794 (pass_data_split_crit_edges): ...new pass_data instance and...
22795 (make_pass_split_crit_edges): ...new function.
22796 (pass_warn_function_return): Convert from a global struct to a
22797 subclass of gimple_opt_pass along with...
22798 (pass_data_warn_function_return): ...new pass_data instance and...
22799 (make_pass_warn_function_return): ...new function.
22800 (pass_warn_function_noreturn): Convert from a global struct to a
22801 subclass of gimple_opt_pass along with...
22802 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22803 (make_pass_warn_function_noreturn): ...new function.
22804 (pass_warn_unused_result): Convert from a global struct to a subclass
22805 of gimple_opt_pass along with...
22806 (pass_data_warn_unused_result): ...new pass_data instance and...
22807 (make_pass_warn_unused_result): ...new function.
22808 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22809 a subclass of gimple_opt_pass along with...
22810 (pass_data_merge_phi): ...new pass_data instance and...
22811 (make_pass_merge_phi): ...new function.
22812 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22813 a subclass of gimple_opt_pass along with...
22814 (pass_data_lower_complex): ...new pass_data instance and...
22815 (make_pass_lower_complex): ...new function.
22816 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22817 gimple_opt_pass along with...
22818 (pass_data_lower_complex_O0): ...new pass_data instance and...
22819 (make_pass_lower_complex_O0): ...new function.
22820 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22821 subclass of gimple_opt_pass along with...
22822 (pass_data_lower_eh): ...new pass_data instance and...
22823 (make_pass_lower_eh): ...new function.
22824 (pass_refactor_eh): Convert from a global struct to a subclass of
22825 gimple_opt_pass along with...
22826 (pass_data_refactor_eh): ...new pass_data instance and...
22827 (make_pass_refactor_eh): ...new function.
22828 (pass_lower_resx): Convert from a global struct to a subclass of
22829 gimple_opt_pass along with...
22830 (pass_data_lower_resx): ...new pass_data instance and...
22831 (make_pass_lower_resx): ...new function.
22832 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22833 of gimple_opt_pass along with...
22834 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22835 (make_pass_lower_eh_dispatch): ...new function.
22836 (pass_cleanup_eh): Convert from a global struct to a subclass of
22837 gimple_opt_pass along with...
22838 (pass_data_cleanup_eh): ...new pass_data instance and...
22839 (make_pass_cleanup_eh): ...new function.
22840 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22841 to a subclass of simple_ipa_opt_pass along with...
22842 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22843 (make_pass_ipa_lower_emutls): ...new function.
22844 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22845 a subclass of gimple_opt_pass along with...
22846 (pass_data_if_conversion): ...new pass_data instance and...
22847 (make_pass_if_conversion): ...new function.
22848 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22849 subclass of gimple_opt_pass along with...
22850 (pass_data_build_ssa): ...new pass_data instance and...
22851 (make_pass_build_ssa): ...new function.
22852 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22853 global struct to a subclass of gimple_opt_pass along with...
22854 (pass_data_loop_distribution): ...new pass_data instance and...
22855 (make_pass_loop_distribution): ...new function.
22856 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22857 subclass of gimple_opt_pass along with...
22858 (pass_data_mudflap_1): ...new pass_data instance and...
22859 (make_pass_mudflap_1): ...new function.
22860 (pass_mudflap_2): Convert from a global struct to a subclass of
22861 gimple_opt_pass along with...
22862 (pass_data_mudflap_2): ...new pass_data instance and...
22863 (make_pass_mudflap_2): ...new function.
22864 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22865 subclass of gimple_opt_pass along with...
22866 (pass_data_mudflap_1): ...new pass_data instance and...
22867 (make_pass_mudflap_1): ...new function.
22868 (pass_mudflap_2): Convert from a global struct to a subclass of
22869 gimple_opt_pass along with...
22870 (pass_data_mudflap_2): ...new pass_data instance and...
22871 (make_pass_mudflap_2): ...new function.
22872 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22873 gimple_opt_pass along with...
22874 (pass_data_nrv): ...new pass_data instance and...
22875 (make_pass_nrv): ...new function.
22876 (pass_return_slot): Convert from a global struct to a subclass of
22877 gimple_opt_pass along with...
22878 (pass_data_return_slot): ...new pass_data instance and...
22879 (make_pass_return_slot): ...new function.
22880 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22881 to a subclass of gimple_opt_pass along with...
22882 (pass_data_object_sizes): ...new pass_data instance and...
22883 (make_pass_object_sizes): ...new function.
22884 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22885 global struct to a subclass of gimple_opt_pass along with...
22886 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22887 and...
22888 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22889 (pass_fixup_cfg): Convert from a global struct to a subclass of
22890 gimple_opt_pass along with...
22891 (pass_data_fixup_cfg): ...new pass_data instance and...
22892 (make_pass_fixup_cfg): ...new function.
22893 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22894 (make_pass_mudflap_1): ...new function.
22895 (pass_mudflap_2): Replace declaration with that of...
22896 (make_pass_mudflap_2): ...new function.
22897 (pass_asan): Replace declaration with that of...
22898 (make_pass_asan): ...new function.
22899 (pass_asan_O0): Replace declaration with that of...
22900 (make_pass_asan_O0): ...new function.
22901 (pass_tsan): Replace declaration with that of...
22902 (make_pass_tsan): ...new function.
22903 (pass_tsan_O0): Replace declaration with that of...
22904 (make_pass_tsan_O0): ...new function.
22905 (pass_lower_cf): Replace declaration with that of...
22906 (make_pass_lower_cf): ...new function.
22907 (pass_refactor_eh): Replace declaration with that of...
22908 (make_pass_refactor_eh): ...new function.
22909 (pass_lower_eh): Replace declaration with that of...
22910 (make_pass_lower_eh): ...new function.
22911 (pass_lower_eh_dispatch): Replace declaration with that of...
22912 (make_pass_lower_eh_dispatch): ...new function.
22913 (pass_lower_resx): Replace declaration with that of...
22914 (make_pass_lower_resx): ...new function.
22915 (pass_build_cfg): Replace declaration with that of...
22916 (make_pass_build_cfg): ...new function.
22917 (pass_early_tree_profile): Replace declaration with that of...
22918 (make_pass_early_tree_profile): ...new function.
22919 (pass_cleanup_eh): Replace declaration with that of...
22920 (make_pass_cleanup_eh): ...new function.
22921 (pass_sra): Replace declaration with that of...
22922 (make_pass_sra): ...new function.
22923 (pass_sra_early): Replace declaration with that of...
22924 (make_pass_sra_early): ...new function.
22925 (pass_early_ipa_sra): Replace declaration with that of...
22926 (make_pass_early_ipa_sra): ...new function.
22927 (pass_tail_recursion): Replace declaration with that of...
22928 (make_pass_tail_recursion): ...new function.
22929 (pass_tail_calls): Replace declaration with that of...
22930 (make_pass_tail_calls): ...new function.
22931 (pass_tree_loop): Replace declaration with that of...
22932 (make_pass_tree_loop): ...new function.
22933 (pass_tree_loop_init): Replace declaration with that of...
22934 (make_pass_tree_loop_init): ...new function.
22935 (pass_lim): Replace declaration with that of...
22936 (make_pass_lim): ...new function.
22937 (pass_tree_unswitch): Replace declaration with that of...
22938 (make_pass_tree_unswitch): ...new function.
22939 (pass_predcom): Replace declaration with that of...
22940 (make_pass_predcom): ...new function.
22941 (pass_iv_canon): Replace declaration with that of...
22942 (make_pass_iv_canon): ...new function.
22943 (pass_scev_cprop): Replace declaration with that of...
22944 (make_pass_scev_cprop): ...new function.
22945 (pass_empty_loop): Replace declaration with that of...
22946 (make_pass_empty_loop): ...new function.
22947 (pass_record_bounds): Replace declaration with that of...
22948 (make_pass_record_bounds): ...new function.
22949 (pass_graphite): Replace declaration with that of...
22950 (make_pass_graphite): ...new function.
22951 (pass_graphite_transforms): Replace declaration with that of...
22952 (make_pass_graphite_transforms): ...new function.
22953 (pass_if_conversion): Replace declaration with that of...
22954 (make_pass_if_conversion): ...new function.
22955 (pass_loop_distribution): Replace declaration with that of...
22956 (make_pass_loop_distribution): ...new function.
22957 (pass_vectorize): Replace declaration with that of...
22958 (make_pass_vectorize): ...new function.
22959 (pass_slp_vectorize): Replace declaration with that of...
22960 (make_pass_slp_vectorize): ...new function.
22961 (pass_complete_unroll): Replace declaration with that of...
22962 (make_pass_complete_unroll): ...new function.
22963 (pass_complete_unrolli): Replace declaration with that of...
22964 (make_pass_complete_unrolli): ...new function.
22965 (pass_parallelize_loops): Replace declaration with that of...
22966 (make_pass_parallelize_loops): ...new function.
22967 (pass_loop_prefetch): Replace declaration with that of...
22968 (make_pass_loop_prefetch): ...new function.
22969 (pass_iv_optimize): Replace declaration with that of...
22970 (make_pass_iv_optimize): ...new function.
22971 (pass_tree_loop_done): Replace declaration with that of...
22972 (make_pass_tree_loop_done): ...new function.
22973 (pass_ch): Replace declaration with that of...
22974 (make_pass_ch): ...new function.
22975 (pass_ccp): Replace declaration with that of...
22976 (make_pass_ccp): ...new function.
22977 (pass_phi_only_cprop): Replace declaration with that of...
22978 (make_pass_phi_only_cprop): ...new function.
22979 (pass_build_ssa): Replace declaration with that of...
22980 (make_pass_build_ssa): ...new function.
22981 (pass_build_alias): Replace declaration with that of...
22982 (make_pass_build_alias): ...new function.
22983 (pass_build_ealias): Replace declaration with that of...
22984 (make_pass_build_ealias): ...new function.
22985 (pass_dominator): Replace declaration with that of...
22986 (make_pass_dominator): ...new function.
22987 (pass_dce): Replace declaration with that of...
22988 (make_pass_dce): ...new function.
22989 (pass_dce_loop): Replace declaration with that of...
22990 (make_pass_dce_loop): ...new function.
22991 (pass_cd_dce): Replace declaration with that of...
22992 (make_pass_cd_dce): ...new function.
22993 (pass_call_cdce): Replace declaration with that of...
22994 (make_pass_call_cdce): ...new function.
22995 (pass_merge_phi): Replace declaration with that of...
22996 (make_pass_merge_phi): ...new function.
22997 (pass_split_crit_edges): Replace declaration with that of...
22998 (make_pass_split_crit_edges): ...new function.
22999 (pass_pre): Replace declaration with that of...
23000 (make_pass_pre): ...new function.
23001 (pass_profile): Replace declaration with that of...
23002 (make_pass_profile): ...new function.
23003 (pass_strip_predict_hints): Replace declaration with that of...
23004 (make_pass_strip_predict_hints): ...new function.
23005 (pass_lower_complex_O0): Replace declaration with that of...
23006 (make_pass_lower_complex_O0): ...new function.
23007 (pass_lower_complex): Replace declaration with that of...
23008 (make_pass_lower_complex): ...new function.
23009 (pass_lower_vector): Replace declaration with that of...
23010 (make_pass_lower_vector): ...new function.
23011 (pass_lower_vector_ssa): Replace declaration with that of...
23012 (make_pass_lower_vector_ssa): ...new function.
23013 (pass_lower_omp): Replace declaration with that of...
23014 (make_pass_lower_omp): ...new function.
23015 (pass_diagnose_omp_blocks): Replace declaration with that of...
23016 (make_pass_diagnose_omp_blocks): ...new function.
23017 (pass_expand_omp): Replace declaration with that of...
23018 (make_pass_expand_omp): ...new function.
23019 (pass_expand_omp_ssa): Replace declaration with that of...
23020 (make_pass_expand_omp_ssa): ...new function.
23021 (pass_object_sizes): Replace declaration with that of...
23022 (make_pass_object_sizes): ...new function.
23023 (pass_strlen): Replace declaration with that of...
23024 (make_pass_strlen): ...new function.
23025 (pass_fold_builtins): Replace declaration with that of...
23026 (make_pass_fold_builtins): ...new function.
23027 (pass_stdarg): Replace declaration with that of...
23028 (make_pass_stdarg): ...new function.
23029 (pass_early_warn_uninitialized): Replace declaration with that of...
23030 (make_pass_early_warn_uninitialized): ...new function.
23031 (pass_late_warn_uninitialized): Replace declaration with that of...
23032 (make_pass_late_warn_uninitialized): ...new function.
23033 (pass_cse_reciprocals): Replace declaration with that of...
23034 (make_pass_cse_reciprocals): ...new function.
23035 (pass_cse_sincos): Replace declaration with that of...
23036 (make_pass_cse_sincos): ...new function.
23037 (pass_optimize_bswap): Replace declaration with that of...
23038 (make_pass_optimize_bswap): ...new function.
23039 (pass_optimize_widening_mul): Replace declaration with that of...
23040 (make_pass_optimize_widening_mul): ...new function.
23041 (pass_warn_function_return): Replace declaration with that of...
23042 (make_pass_warn_function_return): ...new function.
23043 (pass_warn_function_noreturn): Replace declaration with that of...
23044 (make_pass_warn_function_noreturn): ...new function.
23045 (pass_cselim): Replace declaration with that of...
23046 (make_pass_cselim): ...new function.
23047 (pass_phiopt): Replace declaration with that of...
23048 (make_pass_phiopt): ...new function.
23049 (pass_forwprop): Replace declaration with that of...
23050 (make_pass_forwprop): ...new function.
23051 (pass_phiprop): Replace declaration with that of...
23052 (make_pass_phiprop): ...new function.
23053 (pass_tree_ifcombine): Replace declaration with that of...
23054 (make_pass_tree_ifcombine): ...new function.
23055 (pass_dse): Replace declaration with that of...
23056 (make_pass_dse): ...new function.
23057 (pass_nrv): Replace declaration with that of...
23058 (make_pass_nrv): ...new function.
23059 (pass_rename_ssa_copies): Replace declaration with that of...
23060 (make_pass_rename_ssa_copies): ...new function.
23061 (pass_sink_code): Replace declaration with that of...
23062 (make_pass_sink_code): ...new function.
23063 (pass_fre): Replace declaration with that of...
23064 (make_pass_fre): ...new function.
23065 (pass_check_data_deps): Replace declaration with that of...
23066 (make_pass_check_data_deps): ...new function.
23067 (pass_copy_prop): Replace declaration with that of...
23068 (make_pass_copy_prop): ...new function.
23069 (pass_vrp): Replace declaration with that of...
23070 (make_pass_vrp): ...new function.
23071 (pass_uncprop): Replace declaration with that of...
23072 (make_pass_uncprop): ...new function.
23073 (pass_return_slot): Replace declaration with that of...
23074 (make_pass_return_slot): ...new function.
23075 (pass_reassoc): Replace declaration with that of...
23076 (make_pass_reassoc): ...new function.
23077 (pass_rebuild_cgraph_edges): Replace declaration with that of...
23078 (make_pass_rebuild_cgraph_edges): ...new function.
23079 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
23080 (make_pass_remove_cgraph_callee_edges): ...new function.
23081 (pass_build_cgraph_edges): Replace declaration with that of...
23082 (make_pass_build_cgraph_edges): ...new function.
23083 (pass_local_pure_const): Replace declaration with that of...
23084 (make_pass_local_pure_const): ...new function.
23085 (pass_tracer): Replace declaration with that of...
23086 (make_pass_tracer): ...new function.
23087 (pass_warn_unused_result): Replace declaration with that of...
23088 (make_pass_warn_unused_result): ...new function.
23089 (pass_diagnose_tm_blocks): Replace declaration with that of...
23090 (make_pass_diagnose_tm_blocks): ...new function.
23091 (pass_lower_tm): Replace declaration with that of...
23092 (make_pass_lower_tm): ...new function.
23093 (pass_tm_init): Replace declaration with that of...
23094 (make_pass_tm_init): ...new function.
23095 (pass_tm_mark): Replace declaration with that of...
23096 (make_pass_tm_mark): ...new function.
23097 (pass_tm_memopt): Replace declaration with that of...
23098 (make_pass_tm_memopt): ...new function.
23099 (pass_tm_edges): Replace declaration with that of...
23100 (make_pass_tm_edges): ...new function.
23101 (pass_split_functions): Replace declaration with that of...
23102 (make_pass_split_functions): ...new function.
23103 (pass_feedback_split_functions): Replace declaration with that of...
23104 (make_pass_feedback_split_functions): ...new function.
23105 (pass_strength_reduction): Replace declaration with that of...
23106 (make_pass_strength_reduction): ...new function.
23107 (pass_ipa_lower_emutls): Replace declaration with that of...
23108 (make_pass_ipa_lower_emutls): ...new function.
23109 (pass_ipa_function_and_variable_visibility): Replace declaration with
23110 that of...
23111 (make_pass_ipa_function_and_variable_visibility): ...new function.
23112 (pass_ipa_tree_profile): Replace declaration with that of...
23113 (make_pass_ipa_tree_profile): ...new function.
23114 (pass_early_local_passes): Replace declaration with that of...
23115 (make_pass_early_local_passes): ...new function.
23116 (pass_ipa_whole_program_visibility): Replace declaration with that
23117 of...
23118 (make_pass_ipa_whole_program_visibility): ...new function.
23119 (pass_ipa_lto_gimple_out): Replace declaration with that of...
23120 (make_pass_ipa_lto_gimple_out): ...new function.
23121 (pass_ipa_increase_alignment): Replace declaration with that of...
23122 (make_pass_ipa_increase_alignment): ...new function.
23123 (pass_ipa_inline): Replace declaration with that of...
23124 (make_pass_ipa_inline): ...new function.
23125 (pass_ipa_free_lang_data): Replace declaration with that of...
23126 (make_pass_ipa_free_lang_data): ...new function.
23127 (pass_ipa_free_inline_summary): Replace declaration with that of...
23128 (make_pass_ipa_free_inline_summary): ...new function.
23129 (pass_ipa_cp): Replace declaration with that of...
23130 (make_pass_ipa_cp): ...new function.
23131 (pass_ipa_reference): Replace declaration with that of...
23132 (make_pass_ipa_reference): ...new function.
23133 (pass_ipa_pure_const): Replace declaration with that of...
23134 (make_pass_ipa_pure_const): ...new function.
23135 (pass_ipa_pta): Replace declaration with that of...
23136 (make_pass_ipa_pta): ...new function.
23137 (pass_ipa_lto_finish_out): Replace declaration with that of...
23138 (make_pass_ipa_lto_finish_out): ...new function.
23139 (pass_ipa_tm): Replace declaration with that of...
23140 (make_pass_ipa_tm): ...new function.
23141 (pass_ipa_profile): Replace declaration with that of...
23142 (make_pass_ipa_profile): ...new function.
23143 (pass_ipa_cdtor_merge): Replace declaration with that of...
23144 (make_pass_ipa_cdtor_merge): ...new function.
23145 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23146 of...
23147 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23148 (pass_init_datastructures): Replace declaration with that of...
23149 (make_pass_init_datastructures): ...new function.
23150 (pass_fixup_cfg): Replace declaration with that of...
23151 (make_pass_fixup_cfg): ...new function.
23152 (pass_expand): Replace declaration with that of...
23153 (make_pass_expand): ...new function.
23154 (pass_instantiate_virtual_regs): Replace declaration with that of...
23155 (make_pass_instantiate_virtual_regs): ...new function.
23156 (pass_rtl_fwprop): Replace declaration with that of...
23157 (make_pass_rtl_fwprop): ...new function.
23158 (pass_rtl_fwprop_addr): Replace declaration with that of...
23159 (make_pass_rtl_fwprop_addr): ...new function.
23160 (pass_jump): Replace declaration with that of...
23161 (make_pass_jump): ...new function.
23162 (pass_jump2): Replace declaration with that of...
23163 (make_pass_jump2): ...new function.
23164 (pass_lower_subreg): Replace declaration with that of...
23165 (make_pass_lower_subreg): ...new function.
23166 (pass_cse): Replace declaration with that of...
23167 (make_pass_cse): ...new function.
23168 (pass_fast_rtl_dce): Replace declaration with that of...
23169 (make_pass_fast_rtl_dce): ...new function.
23170 (pass_ud_rtl_dce): Replace declaration with that of...
23171 (make_pass_ud_rtl_dce): ...new function.
23172 (pass_rtl_dce): Replace declaration with that of...
23173 (make_pass_rtl_dce): ...new function.
23174 (pass_rtl_dse1): Replace declaration with that of...
23175 (make_pass_rtl_dse1): ...new function.
23176 (pass_rtl_dse2): Replace declaration with that of...
23177 (make_pass_rtl_dse2): ...new function.
23178 (pass_rtl_dse3): Replace declaration with that of...
23179 (make_pass_rtl_dse3): ...new function.
23180 (pass_rtl_cprop): Replace declaration with that of...
23181 (make_pass_rtl_cprop): ...new function.
23182 (pass_rtl_pre): Replace declaration with that of...
23183 (make_pass_rtl_pre): ...new function.
23184 (pass_rtl_hoist): Replace declaration with that of...
23185 (make_pass_rtl_hoist): ...new function.
23186 (pass_rtl_store_motion): Replace declaration with that of...
23187 (make_pass_rtl_store_motion): ...new function.
23188 (pass_cse_after_global_opts): Replace declaration with that of...
23189 (make_pass_cse_after_global_opts): ...new function.
23190 (pass_rtl_ifcvt): Replace declaration with that of...
23191 (make_pass_rtl_ifcvt): ...new function.
23192 (pass_into_cfg_layout_mode): Replace declaration with that of...
23193 (make_pass_into_cfg_layout_mode): ...new function.
23194 (pass_outof_cfg_layout_mode): Replace declaration with that of...
23195 (make_pass_outof_cfg_layout_mode): ...new function.
23196 (pass_loop2): Replace declaration with that of...
23197 (make_pass_loop2): ...new function.
23198 (pass_rtl_loop_init): Replace declaration with that of...
23199 (make_pass_rtl_loop_init): ...new function.
23200 (pass_rtl_move_loop_invariants): Replace declaration with that of...
23201 (make_pass_rtl_move_loop_invariants): ...new function.
23202 (pass_rtl_unswitch): Replace declaration with that of...
23203 (make_pass_rtl_unswitch): ...new function.
23204 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23205 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23206 (pass_rtl_doloop): Replace declaration with that of...
23207 (make_pass_rtl_doloop): ...new function.
23208 (pass_rtl_loop_done): Replace declaration with that of...
23209 (make_pass_rtl_loop_done): ...new function.
23210 (pass_web): Replace declaration with that of...
23211 (make_pass_web): ...new function.
23212 (pass_cse2): Replace declaration with that of...
23213 (make_pass_cse2): ...new function.
23214 (pass_df_initialize_opt): Replace declaration with that of...
23215 (make_pass_df_initialize_opt): ...new function.
23216 (pass_df_initialize_no_opt): Replace declaration with that of...
23217 (make_pass_df_initialize_no_opt): ...new function.
23218 (pass_reginfo_init): Replace declaration with that of...
23219 (make_pass_reginfo_init): ...new function.
23220 (pass_inc_dec): Replace declaration with that of...
23221 (make_pass_inc_dec): ...new function.
23222 (pass_stack_ptr_mod): Replace declaration with that of...
23223 (make_pass_stack_ptr_mod): ...new function.
23224 (pass_initialize_regs): Replace declaration with that of...
23225 (make_pass_initialize_regs): ...new function.
23226 (pass_combine): Replace declaration with that of...
23227 (make_pass_combine): ...new function.
23228 (pass_if_after_combine): Replace declaration with that of...
23229 (make_pass_if_after_combine): ...new function.
23230 (pass_ree): Replace declaration with that of...
23231 (make_pass_ree): ...new function.
23232 (pass_partition_blocks): Replace declaration with that of...
23233 (make_pass_partition_blocks): ...new function.
23234 (pass_match_asm_constraints): Replace declaration with that of...
23235 (make_pass_match_asm_constraints): ...new function.
23236 (pass_regmove): Replace declaration with that of...
23237 (make_pass_regmove): ...new function.
23238 (pass_split_all_insns): Replace declaration with that of...
23239 (make_pass_split_all_insns): ...new function.
23240 (pass_fast_rtl_byte_dce): Replace declaration with that of...
23241 (make_pass_fast_rtl_byte_dce): ...new function.
23242 (pass_lower_subreg2): Replace declaration with that of...
23243 (make_pass_lower_subreg2): ...new function.
23244 (pass_mode_switching): Replace declaration with that of...
23245 (make_pass_mode_switching): ...new function.
23246 (pass_sms): Replace declaration with that of...
23247 (make_pass_sms): ...new function.
23248 (pass_sched): Replace declaration with that of...
23249 (make_pass_sched): ...new function.
23250 (pass_ira): Replace declaration with that of...
23251 (make_pass_ira): ...new function.
23252 (pass_reload): Replace declaration with that of...
23253 (make_pass_reload): ...new function.
23254 (pass_clean_state): Replace declaration with that of...
23255 (make_pass_clean_state): ...new function.
23256 (pass_branch_prob): Replace declaration with that of...
23257 (make_pass_branch_prob): ...new function.
23258 (pass_value_profile_transformations): Replace declaration with that
23259 of...
23260 (make_pass_value_profile_transformations): ...new function.
23261 (pass_postreload_cse): Replace declaration with that of...
23262 (make_pass_postreload_cse): ...new function.
23263 (pass_gcse2): Replace declaration with that of...
23264 (make_pass_gcse2): ...new function.
23265 (pass_split_after_reload): Replace declaration with that of...
23266 (make_pass_split_after_reload): ...new function.
23267 (pass_branch_target_load_optimize1): Replace declaration with that
23268 of...
23269 (make_pass_branch_target_load_optimize1): ...new function.
23270 (pass_thread_prologue_and_epilogue): Replace declaration with that
23271 of...
23272 (make_pass_thread_prologue_and_epilogue): ...new function.
23273 (pass_stack_adjustments): Replace declaration with that of...
23274 (make_pass_stack_adjustments): ...new function.
23275 (pass_peephole2): Replace declaration with that of...
23276 (make_pass_peephole2): ...new function.
23277 (pass_if_after_reload): Replace declaration with that of...
23278 (make_pass_if_after_reload): ...new function.
23279 (pass_regrename): Replace declaration with that of...
23280 (make_pass_regrename): ...new function.
23281 (pass_cprop_hardreg): Replace declaration with that of...
23282 (make_pass_cprop_hardreg): ...new function.
23283 (pass_reorder_blocks): Replace declaration with that of...
23284 (make_pass_reorder_blocks): ...new function.
23285 (pass_branch_target_load_optimize2): Replace declaration with that
23286 of...
23287 (make_pass_branch_target_load_optimize2): ...new function.
23288 (pass_leaf_regs): Replace declaration with that of...
23289 (make_pass_leaf_regs): ...new function.
23290 (pass_split_before_sched2): Replace declaration with that of...
23291 (make_pass_split_before_sched2): ...new function.
23292 (pass_compare_elim_after_reload): Replace declaration with that of...
23293 (make_pass_compare_elim_after_reload): ...new function.
23294 (pass_sched2): Replace declaration with that of...
23295 (make_pass_sched2): ...new function.
23296 (pass_stack_regs): Replace declaration with that of...
23297 (make_pass_stack_regs): ...new function.
23298 (pass_stack_regs_run): Replace declaration with that of...
23299 (make_pass_stack_regs_run): ...new function.
23300 (pass_df_finish): Replace declaration with that of...
23301 (make_pass_df_finish): ...new function.
23302 (pass_compute_alignments): Replace declaration with that of...
23303 (make_pass_compute_alignments): ...new function.
23304 (pass_duplicate_computed_gotos): Replace declaration with that of...
23305 (make_pass_duplicate_computed_gotos): ...new function.
23306 (pass_variable_tracking): Replace declaration with that of...
23307 (make_pass_variable_tracking): ...new function.
23308 (pass_free_cfg): Replace declaration with that of...
23309 (make_pass_free_cfg): ...new function.
23310 (pass_machine_reorg): Replace declaration with that of...
23311 (make_pass_machine_reorg): ...new function.
23312 (pass_cleanup_barriers): Replace declaration with that of...
23313 (make_pass_cleanup_barriers): ...new function.
23314 (pass_delay_slots): Replace declaration with that of...
23315 (make_pass_delay_slots): ...new function.
23316 (pass_split_for_shorten_branches): Replace declaration with that of...
23317 (make_pass_split_for_shorten_branches): ...new function.
23318 (pass_split_before_regstack): Replace declaration with that of...
23319 (make_pass_split_before_regstack): ...new function.
23320 (pass_convert_to_eh_region_ranges): Replace declaration with that
23321 of...
23322 (make_pass_convert_to_eh_region_ranges): ...new function.
23323 (pass_shorten_branches): Replace declaration with that of...
23324 (make_pass_shorten_branches): ...new function.
23325 (pass_set_nothrow_function_flags): Replace declaration with that of...
23326 (make_pass_set_nothrow_function_flags): ...new function.
23327 (pass_dwarf2_frame): Replace declaration with that of...
23328 (make_pass_dwarf2_frame): ...new function.
23329 (pass_final): Replace declaration with that of...
23330 (make_pass_final): ...new function.
23331 (pass_rtl_seqabstr): Replace declaration with that of...
23332 (make_pass_rtl_seqabstr): ...new function.
23333 (pass_release_ssa_names): Replace declaration with that of...
23334 (make_pass_release_ssa_names): ...new function.
23335 (pass_early_inline): Replace declaration with that of...
23336 (make_pass_early_inline): ...new function.
23337 (pass_inline_parameters): Replace declaration with that of...
23338 (make_pass_inline_parameters): ...new function.
23339 (pass_update_address_taken): Replace declaration with that of...
23340 (make_pass_update_address_taken): ...new function.
23341 (pass_convert_switch): Replace declaration with that of...
23342 (make_pass_convert_switch): ...new function.
23343 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23344 to a subclass of simple_ipa_opt_pass along with...
23345 (pass_data_ipa_tree_profile): ...new pass_data instance and...
23346 (make_pass_ipa_tree_profile): ...new function.
23347 * tree-sra.c (pass_sra_early): Convert from a global struct to a
23348 subclass of gimple_opt_pass along with...
23349 (pass_data_sra_early): ...new pass_data instance and...
23350 (make_pass_sra_early): ...new function.
23351 (pass_sra): Convert from a global struct to a subclass of
23352 gimple_opt_pass along with...
23353 (pass_data_sra): ...new pass_data instance and...
23354 (make_pass_sra): ...new function.
23355 (pass_early_ipa_sra): Convert from a global struct to a subclass of
23356 gimple_opt_pass along with...
23357 (pass_data_early_ipa_sra): ...new pass_data instance and...
23358 (make_pass_early_ipa_sra): ...new function.
23359 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23360 subclass of gimple_opt_pass along with...
23361 (pass_data_ccp): ...new pass_data instance and...
23362 (make_pass_ccp): ...new function.
23363 (pass_fold_builtins): Convert from a global struct to a subclass of
23364 gimple_opt_pass along with...
23365 (pass_data_fold_builtins): ...new pass_data instance and...
23366 (make_pass_fold_builtins): ...new function.
23367 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23368 subclass of gimple_opt_pass along with...
23369 (pass_data_copy_prop): ...new pass_data instance and...
23370 (make_pass_copy_prop): ...new function.
23371 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23372 global struct to a subclass of gimple_opt_pass along with...
23373 (pass_data_rename_ssa_copies): ...new pass_data instance and...
23374 (make_pass_rename_ssa_copies): ...new function.
23375 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23376 subclass of gimple_opt_pass along with...
23377 (pass_data_dce): ...new pass_data instance and...
23378 (make_pass_dce): ...new function.
23379 (pass_dce_loop): Convert from a global struct to a subclass of
23380 gimple_opt_pass along with...
23381 (pass_data_dce_loop): ...new pass_data instance and...
23382 (make_pass_dce_loop): ...new function.
23383 (pass_cd_dce): Convert from a global struct to a subclass of
23384 gimple_opt_pass along with...
23385 (pass_data_cd_dce): ...new pass_data instance and...
23386 (make_pass_cd_dce): ...new function.
23387 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23388 subclass of gimple_opt_pass along with...
23389 (pass_data_dominator): ...new pass_data instance and...
23390 (make_pass_dominator): ...new function.
23391 (pass_phi_only_cprop): Convert from a global struct to a subclass of
23392 gimple_opt_pass along with...
23393 (pass_data_phi_only_cprop): ...new pass_data instance and...
23394 (make_pass_phi_only_cprop): ...new function.
23395 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23396 subclass of gimple_opt_pass along with...
23397 (pass_data_dse): ...new pass_data instance and...
23398 (make_pass_dse): ...new function.
23399 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23400 a subclass of gimple_opt_pass along with...
23401 (pass_data_forwprop): ...new pass_data instance and...
23402 (make_pass_forwprop): ...new function.
23403 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23404 struct to a subclass of gimple_opt_pass along with...
23405 (pass_data_tree_ifcombine): ...new pass_data instance and...
23406 (make_pass_tree_ifcombine): ...new function.
23407 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23408 subclass of gimple_opt_pass along with...
23409 (pass_data_ch): ...new pass_data instance and...
23410 (make_pass_ch): ...new function.
23411 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23412 subclass of gimple_opt_pass along with...
23413 (pass_data_tree_loop): ...new pass_data instance and...
23414 (make_pass_tree_loop): ...new function.
23415 (pass_tree_loop_init): Convert from a global struct to a subclass of
23416 gimple_opt_pass along with...
23417 (pass_data_tree_loop_init): ...new pass_data instance and...
23418 (make_pass_tree_loop_init): ...new function.
23419 (pass_lim): Convert from a global struct to a subclass of
23420 gimple_opt_pass along with...
23421 (pass_data_lim): ...new pass_data instance and...
23422 (make_pass_lim): ...new function.
23423 (pass_tree_unswitch): Convert from a global struct to a subclass of
23424 gimple_opt_pass along with...
23425 (pass_data_tree_unswitch): ...new pass_data instance and...
23426 (make_pass_tree_unswitch): ...new function.
23427 (pass_predcom): Convert from a global struct to a subclass of
23428 gimple_opt_pass along with...
23429 (pass_data_predcom): ...new pass_data instance and...
23430 (make_pass_predcom): ...new function.
23431 (pass_vectorize): Convert from a global struct to a subclass of
23432 gimple_opt_pass along with...
23433 (pass_data_vectorize): ...new pass_data instance and...
23434 (make_pass_vectorize): ...new function.
23435 (pass_graphite): Convert from a global struct to a subclass of
23436 gimple_opt_pass along with...
23437 (pass_data_graphite): ...new pass_data instance and...
23438 (make_pass_graphite): ...new function.
23439 (pass_graphite_transforms): Convert from a global struct to a subclass
23440 of gimple_opt_pass along with...
23441 (pass_data_graphite_transforms): ...new pass_data instance and...
23442 (make_pass_graphite_transforms): ...new function.
23443 (pass_check_data_deps): Convert from a global struct to a subclass of
23444 gimple_opt_pass along with...
23445 (pass_data_check_data_deps): ...new pass_data instance and...
23446 (make_pass_check_data_deps): ...new function.
23447 (pass_iv_canon): Convert from a global struct to a subclass of
23448 gimple_opt_pass along with...
23449 (pass_data_iv_canon): ...new pass_data instance and...
23450 (make_pass_iv_canon): ...new function.
23451 (pass_scev_cprop): Convert from a global struct to a subclass of
23452 gimple_opt_pass along with...
23453 (pass_data_scev_cprop): ...new pass_data instance and...
23454 (make_pass_scev_cprop): ...new function.
23455 (pass_record_bounds): Convert from a global struct to a subclass of
23456 gimple_opt_pass along with...
23457 (pass_data_record_bounds): ...new pass_data instance and...
23458 (make_pass_record_bounds): ...new function.
23459 (pass_complete_unroll): Convert from a global struct to a subclass of
23460 gimple_opt_pass along with...
23461 (pass_data_complete_unroll): ...new pass_data instance and...
23462 (make_pass_complete_unroll): ...new function.
23463 (pass_complete_unrolli): Convert from a global struct to a subclass of
23464 gimple_opt_pass along with...
23465 (pass_data_complete_unrolli): ...new pass_data instance and...
23466 (make_pass_complete_unrolli): ...new function.
23467 (pass_parallelize_loops): Convert from a global struct to a subclass
23468 of gimple_opt_pass along with...
23469 (pass_data_parallelize_loops): ...new pass_data instance and...
23470 (make_pass_parallelize_loops): ...new function.
23471 (pass_loop_prefetch): Convert from a global struct to a subclass of
23472 gimple_opt_pass along with...
23473 (pass_data_loop_prefetch): ...new pass_data instance and...
23474 (make_pass_loop_prefetch): ...new function.
23475 (pass_iv_optimize): Convert from a global struct to a subclass of
23476 gimple_opt_pass along with...
23477 (pass_data_iv_optimize): ...new pass_data instance and...
23478 (make_pass_iv_optimize): ...new function.
23479 (pass_tree_loop_done): Convert from a global struct to a subclass of
23480 gimple_opt_pass along with...
23481 (pass_data_tree_loop_done): ...new pass_data instance and...
23482 (make_pass_tree_loop_done): ...new function.
23483 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23484 struct to a subclass of gimple_opt_pass along with...
23485 (pass_data_cse_reciprocals): ...new pass_data instance and...
23486 (make_pass_cse_reciprocals): ...new function.
23487 (pass_cse_sincos): Convert from a global struct to a subclass of
23488 gimple_opt_pass along with...
23489 (pass_data_cse_sincos): ...new pass_data instance and...
23490 (make_pass_cse_sincos): ...new function.
23491 (pass_optimize_bswap): Convert from a global struct to a subclass of
23492 gimple_opt_pass along with...
23493 (pass_data_optimize_bswap): ...new pass_data instance and...
23494 (make_pass_optimize_bswap): ...new function.
23495 (pass_optimize_widening_mul): Convert from a global struct to a
23496 subclass of gimple_opt_pass along with...
23497 (pass_data_optimize_widening_mul): ...new pass_data instance and...
23498 (make_pass_optimize_widening_mul): ...new function.
23499 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23500 subclass of gimple_opt_pass along with...
23501 (pass_data_phiopt): ...new pass_data instance and...
23502 (make_pass_phiopt): ...new function.
23503 (pass_cselim): Convert from a global struct to a subclass of
23504 gimple_opt_pass along with...
23505 (pass_data_cselim): ...new pass_data instance and...
23506 (make_pass_cselim): ...new function.
23507 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23508 subclass of gimple_opt_pass along with...
23509 (pass_data_phiprop): ...new pass_data instance and...
23510 (make_pass_phiprop): ...new function.
23511 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23512 subclass of gimple_opt_pass along with...
23513 (pass_data_pre): ...new pass_data instance and...
23514 (make_pass_pre): ...new function.
23515 (pass_fre): Convert from a global struct to a subclass of
23516 gimple_opt_pass along with...
23517 (pass_data_fre): ...new pass_data instance and...
23518 (make_pass_fre): ...new function.
23519 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23520 subclass of gimple_opt_pass along with...
23521 (pass_data_reassoc): ...new pass_data instance and...
23522 (make_pass_reassoc): ...new function.
23523 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23524 subclass of gimple_opt_pass along with...
23525 (pass_data_sink_code): ...new pass_data instance and...
23526 (make_pass_sink_code): ...new function.
23527 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23528 subclass of gimple_opt_pass along with...
23529 (pass_data_strlen): ...new pass_data instance and...
23530 (make_pass_strlen): ...new function.
23531 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23532 struct to a subclass of gimple_opt_pass along with...
23533 (pass_data_build_alias): ...new pass_data instance and...
23534 (make_pass_build_alias): ...new function.
23535 (pass_build_ealias): Convert from a global struct to a subclass of
23536 gimple_opt_pass along with...
23537 (pass_data_build_ealias): ...new pass_data instance and...
23538 (make_pass_build_ealias): ...new function.
23539 (pass_ipa_pta): Convert from a global struct to a subclass of
23540 simple_ipa_opt_pass along with...
23541 (pass_data_ipa_pta): ...new pass_data instance and...
23542 (make_pass_ipa_pta): ...new function.
23543 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23544 subclass of gimple_opt_pass along with...
23545 (pass_data_uncprop): ...new pass_data instance and...
23546 (make_pass_uncprop): ...new function.
23547 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23548 global struct to a subclass of gimple_opt_pass along with...
23549 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23550 (make_pass_late_warn_uninitialized): ...new function.
23551 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23552 to a subclass of gimple_opt_pass along with...
23553 (pass_data_init_datastructures): ...new pass_data instance and...
23554 (make_pass_init_datastructures): ...new function.
23555 (pass_early_warn_uninitialized): Convert from a global struct to a
23556 subclass of gimple_opt_pass along with...
23557 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23558 (make_pass_early_warn_uninitialized): ...new function.
23559 (pass_update_address_taken): Convert from a global struct to a
23560 subclass of gimple_opt_pass along with...
23561 (pass_data_update_address_taken): ...new pass_data instance and...
23562 (make_pass_update_address_taken): ...new function.
23563 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23564 struct to a subclass of gimple_opt_pass along with...
23565 (pass_data_release_ssa_names): ...new pass_data instance and...
23566 (make_pass_release_ssa_names): ...new function.
23567 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23568 subclass of gimple_opt_pass along with...
23569 (pass_data_stdarg): ...new pass_data instance and...
23570 (make_pass_stdarg): ...new function.
23571 * tree-switch-conversion.c (pass_convert_switch): Convert from a
23572 global struct to a subclass of gimple_opt_pass along with...
23573 (pass_data_convert_switch): ...new pass_data instance and...
23574 (make_pass_convert_switch): ...new function.
23575 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23576 to a subclass of gimple_opt_pass along with...
23577 (pass_data_tail_recursion): ...new pass_data instance and...
23578 (make_pass_tail_recursion): ...new function.
23579 (pass_tail_calls): Convert from a global struct to a subclass of
23580 gimple_opt_pass along with...
23581 (pass_data_tail_calls): ...new pass_data instance and...
23582 (make_pass_tail_calls): ...new function.
23583 * tree-vect-generic.c (pass_lower_vector): Convert from a global
23584 struct to a subclass of gimple_opt_pass along with...
23585 (pass_data_lower_vector): ...new pass_data instance and...
23586 (make_pass_lower_vector): ...new function.
23587 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23588 gimple_opt_pass along with...
23589 (pass_data_lower_vector_ssa): ...new pass_data instance and...
23590 (make_pass_lower_vector_ssa): ...new function.
23591 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23592 to a subclass of gimple_opt_pass along with...
23593 (pass_data_slp_vectorize): ...new pass_data instance and...
23594 (make_pass_slp_vectorize): ...new function.
23595 (pass_ipa_increase_alignment): Convert from a global struct to a
23596 subclass of simple_ipa_opt_pass along with...
23597 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23598 (make_pass_ipa_increase_alignment): ...new function.
23599 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23600 gimple_opt_pass along with...
23601 (pass_data_vrp): ...new pass_data instance and...
23602 (make_pass_vrp): ...new function.
23603 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23604 subclass of simple_ipa_opt_pass along with...
23605 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23606 (make_pass_ipa_free_lang_data): ...new function.
23607 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23608 gimple_opt_pass along with...
23609 (pass_data_tsan): ...new pass_data instance and...
23610 (make_pass_tsan): ...new function.
23611 (pass_tsan_O0): Convert from a global struct to a subclass of
23612 gimple_opt_pass along with...
23613 (pass_data_tsan_O0): ...new pass_data instance and...
23614 (make_pass_tsan_O0): ...new function.
23615 * var-tracking.c (pass_variable_tracking): Convert from a global
23616 struct to a subclass of rtl_opt_pass along with...
23617 (pass_data_variable_tracking): ...new pass_data instance and...
23618 (make_pass_variable_tracking): ...new function.
23619 * web.c (pass_web): Convert from a global struct to a subclass of
23620 rtl_opt_pass along with...
23621 (pass_data_web): ...new pass_data instance and...
23622 (make_pass_web): ...new function.
23623 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23624 declaration with that of...
23625 (make_pass_mode_switch_use): ...new function.
23626 (pass_resolve_sw_modes): Replace declaration with that of...
23627 (make_pass_resolve_sw_modes): ...new function.
23628 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23629 from a global struct to a subclass of rtl_opt_pass along with...
23630 (pass_data_mode_switch_use): ...new pass_data instance and...
23631 (make_pass_mode_switch_use): ...new function.
23632 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23633 from a global struct to a subclass of rtl_opt_pass along with...
23634 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23635 (make_pass_resolve_sw_modes): ...new function.
23636 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23637 struct to a subclass of rtl_opt_pass along with...
23638 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23639 (make_pass_insert_vzeroupper): ...new function.
23640 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23641 global struct to a subclass of rtl_opt_pass along with...
23642 (pass_data_work_around_errata): ...new pass_data instance and...
23643 (make_pass_work_around_errata): ...new function.
23644 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23645 struct to a subclass of rtl_opt_pass along with...
23646 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23647 (make_pass_mips_machine_reorg2): ...new function.
23648
23649 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23650
23651 * passes.c (pass_manager::operator new): New.
23652
23653 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23654
23655 Handwritten part of conversion of passes to C++ classes.
23656
23657 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23658 (toplev.o): Add dep on PASS_MANAGER_H.
23659 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23660 of early local pases to reflect this moving from a global to a
23661 member of gcc::pass_manager.
23662 (cgraph_add_new_function): Likewise.
23663 * lto-cgraph.c (lto_output_node): Update for conversion of
23664 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23665 * passes.c (opt_pass::clone): New.
23666 (opt_pass::gate): New.
23667 (opt_pass::execute): New.
23668 (opt_pass::opt_pass): New.
23669 (pass_manager::execute_early_local_passes): New.
23670 (pass_manager::execute_pass_mode_switching): new.
23671 (finish_optimization_passes): Convert to...
23672 (pass_manager::finish_optimization_passes): ...this.
23673 (finish_optimization_passes): Update for conversion of passes to
23674 C++ classes.
23675 (register_dump_files_1): Use has_gate since we cannot portably
23676 check a vtable entry against NULL.
23677 (dump_one_pass): Likewise.
23678 (ipa_write_summaries_2): Likewise.
23679 (ipa_write_optimization_summaries_1): Likewise.
23680 (ipa_read_summaries_1): Likewise.
23681 (ipa_read_optimization_summaries_1): Likewise.
23682 (execute_ipa_stmt_fixups): Likewise.
23683 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23684 pass-creation functions rather than wiring up globals, and
23685 storing the results in fields of pass_manager generated using
23686 pass-instances.def.
23687 (pass_manager::dump_profile_report): Update for conversion of
23688 passes to C++ classes.
23689 (pass_manager::execute_ipa_summary_passes): Likewise.
23690 (execute_one_ipa_transform_pass): Likewise.
23691 (execute_one_pass): Use has_gate and has_execute since we cannot
23692 portably check a vtable entry against NULL.
23693 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23694 (pass_manager): Use pass-instances.def to add fields for the
23695 various pass instances.
23696 * toplev.c (finalize): Update for move of
23697 finish_optimization_passes to a method of gcc::pass_manager.
23698 * toplev.h (finish_optimization_passes): Move to method of class
23699 pass_manager.
23700 * tree-pass.h (struct pass_data): New.
23701 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23702 (opt_pass::gate): Convert to virtual function.
23703 (opt_pass::~opt_pass): New.
23704 (opt_pass::clone): New.
23705 (opt_pass::execute): Convert to virtual function.
23706 (opt_pass::opt_pass): New.
23707 (opt_pass::ctxt_): new.
23708 (gimple_opt_pass): Convert to subclass of opt_pass.
23709 (gimple_opt_pass::gimple_opt_pass): New.
23710 (rtl_opt_pass): Convert to subclass of opt_pass.
23711 (rtl_opt_pass::rtl_opt_pass): New.
23712 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23713 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23714 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23715 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23716 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23717 invocation of pass_mode_switching to reflect this moving from a
23718 global to a member of gcc::pass_manager.
23719 (ix86_option_override): Rework how pass_insert_vzeroupper is
23720 added to the pass_manager to reflect autogenerated changes.
23721 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23722
23723 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23724
23725 PR rtl-optimization/57708
23726 * recog.c (peep2_find_free_register): Validate all regs in a
23727 multi-reg mode.
23728
23729 2013-08-05 Jan Hubicka <jh@suse.cz>
23730
23731 PR lto/57602
23732 * cgraph.c (verify_cgraph_node): Accept local flags from other
23733 partitions.
23734 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23735 (function_and_variable_visibility): Likewise.
23736 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23737
23738 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23739
23740 * graph.c (init_graph_slim_pretty_print): Remove.
23741 (print_graph_cfg): Do not call it. Use local pretty printer.
23742 (start_graph_dump): Likewise.
23743
23744 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23745
23746 * gimple-pretty-print.c (buffer): Remove.
23747 (initialized): Likewise.
23748 (maybe_init_pretty_print): Likewise.
23749 (print_gimple_stmt): Do not call it. Use non-static local
23750 pretty_printer variable.
23751 (print_gimple_expr): Likewise.
23752 (print_gimple_seq): Likewise.
23753 (gimple_dump_bb): Likewise.
23754
23755 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23756
23757 * asan.c (asan_pp): Remove.
23758 (asan_pp_initialized): Likewise.
23759 (asan_pp_initialize): Likewise.
23760 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23761 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23762 (asan_add_global): Likewise.
23763
23764 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23765
23766 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23767 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23768 * pretty-print.c (pp_formatted_text_data): Likewise.
23769 (pp_indent): Rename from pp_base_indent.
23770 (pp_format): Rename from pp_base_format.
23771 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23772 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23773 (pp_flush): Rename from pp_base_flush.
23774 (pp_set_line_maximum_length): Rename from
23775 pp_base_set_line_maximum_length.
23776 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23777 (pp_set_prefix): Rename from pp_base_set_prefix.
23778 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23779 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23780 (pp_append_text): Rename from pp_base_append_text.
23781 (pp_formatted_text): Rename from pp_base_formatted_text.
23782 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23783 (pp_remaining_character_count_for_line): Rename from
23784 pp_base_remaining_character_count_for_line.
23785 (pp_newline): Rename from pp_base_newline.
23786 (pp_character): Rename from pp_base_character.
23787 (pp_string): Rename from pp_base_string.
23788 (pp_maybe_space): Rename from pp_base_maybe_space.
23789 * asan.c (asan_pp_string): Adjust.
23790 (asan_emit_stack_protection): Likewise.
23791 (asan_add_global): Likewise.
23792 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23793 * tree-mudflap.c (mf_varname_tree): Likewise.
23794 * tree-pretty-print.c (pp_tree_identifier): Rename from
23795 pp_base_tree_identifier.
23796 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23797 Declare as function.
23798
23799 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23800
23801 * pretty-print.h (pp_bar_bar): New.
23802 (pp_ampersand_ampersand): Likewise.
23803 (pp_less_equal): Likewise.
23804 (pp_greater_equal): Likewise.
23805 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23806 printer functions instead of pp_string or operators and punctuators.
23807 (dump_gimple_call): Likewise.
23808 (dump_gimple_omp_for): Likewise.
23809 (dump_gimple_transaction): Likewise.
23810 (dump_gimple_phi): Likewise.
23811 (pp_gimple_stmt_1): Likewise.
23812 * sched-vis.c (print_insn): Likewise.
23813 * tree-mudflap.c (mf_varname_tree): Likewise.
23814 * tree-pretty-print.c (dump_block_node): Likewise.
23815 (dump_generic_node): Likewise.
23816
23817 2013-08-02 Jan Hubicka <jh@suse.cz>
23818
23819 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23820 boundaries.
23821 * lto-streamer-out.c (tree_is_indexable): Results decls and
23822 parm decls are not indexable.
23823 (DFS_write_tree_body): Do not follow args and results.
23824 (hash_tree): Likewise.
23825 (output_functions): Rearrange so struct function is needed
23826 only when real body is output; be able to also ouptut abstract
23827 functions; output DECL_ARGUMENTS and DECL_RESULT.
23828 (lto_output): When not in WPA, ale store abstract functions.
23829 (write_symbol): Do not care about RESULT_DECL.
23830 (output_symbol_p): Handle correctly sbtract decls.
23831 * lto-streamer-in.c (input_function): Rearrange so struct
23832 function can be NULL at entry; allow streaming of
23833 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23834 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23835 sanity check during LTO.
23836 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23837 RESULT_DECl and DECL_ARGUMENTS.
23838 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23839 Likewise.
23840
23841 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23842
23843 * pretty-print.h (pp_underscore): New.
23844 (pp_comma): Tidy.
23845 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23846 printer functions instead of pp_character.
23847 (dump_binary_rhs): Likewise.
23848 (dump_ternary_rhs): Likewise.
23849 (dump_gimple_call_args): Likewise.
23850 (pp_points_to_solution): Likewise.
23851 (dump_gimple_call): Likewise.
23852 (dump_gimple_switch): Likewise.
23853 (dump_gimple_cond): Likewise.
23854 (dump_gimple_bind): Likewise.
23855 (dump_gimple_try): Likewise.
23856 (dump_gimple_omp_for): Likewise.
23857 (dump_gimple_omp_continue): Likewise.
23858 (dump_gimple_omp_single): Likewise.
23859 (dump_gimple_omp_sections): Likewise.
23860 (dump_gimple_omp_block): Likewise.
23861 (dump_gimple_omp_critical): Likewise.
23862 (dump_gimple_transaction): Likewise.
23863 (dump_gimple_asm): Likewise.
23864 (dump_gimple_phi): Likewise.
23865 (dump_gimple_omp_parallel): Likewise.
23866 (dump_gimple_omp_task): Likewise.
23867 (dump_gimple_omp_atomic_load): Likewise.
23868 (dump_gimple_omp_atomic_store): Likewise.
23869 (dump_gimple_mem_ops): Likewise.
23870 (pp_gimple_stmt_1): Likewise.
23871 (pp_cfg_jump): Likewise.
23872 (dump_implicit_edges): Likewise.
23873 (gimple_dump_bb_for_graph): Likewise.
23874 * graph.c (draw_cfg_node): Likewise.
23875 * langhooks.c (lhd_print_error_function): Likewise.
23876 * sched-vis.c (print_exp): Likewise.
23877 (print_value): Likewise.
23878 (print_pattern): Likewise.
23879 (print_insn): Likewise.
23880 (rtl_dump_bb_for_graph): Likewise.
23881 * tree-pretty-print.c (dump_function_declaration): Likewise.
23882 (dump_array_domain): Likewise.
23883 (dump_omp_clause): Likewise.
23884 (dump_location): Likewise.
23885 (dump_generic_node): Likewise.
23886 (print_struct_decl): Likewise.
23887 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23888
23889 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23890
23891 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23892 candidate table when replacing a candidate statement.
23893 (replace_rhs_if_not_dup): Likewise.
23894 (replace_one_candidate): Likewise.
23895
23896 2013-08-02 Jan Hubicka <jh@suse.cz>
23897 Martin Liska <marxin.liska@gmail.com>
23898
23899 * cgraphunit.c (add_new_function): Fix logic when adding from
23900 late IPA pass.
23901 (assemble_thunk): Rename to ...
23902 (expand_thunk); .. this one; export; get it working with
23903 general functions; make produced gimple valid.
23904 * cgraph.h (expand_thunk): Declare.
23905
23906 2013-08-02 Jan Hubicka <jh@suse.cz>
23907
23908 * ipa-cp.c (gather_context_independent_values): Use
23909 ipa_get_param_move_cost.
23910 (get_replacement_map): Remove PARAM; move parameter folding
23911 into tree-inline.c
23912 (create_specialized_node): Update.
23913 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23914 assert that we have gimple body; update move_cost.
23915 (count_formal_params): Assert that we have gimple body.
23916 (ipa_dump_param): New function.
23917 (ipa_alloc_node_params): Break out from ...
23918 (ipa_initialize_node_params): ... here.
23919 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23920 (ipa_write_node_info): Stream move costs.
23921 (ipa_read_node_info): Read move costs.
23922 (ipa_update_after_lto_read): Do not recompute node params.
23923 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23924 (ipa_get_param): Check we are not in WPA.
23925 (ipa_get_param_move_cost): New.
23926 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23927 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23928 parm numbers to be present.
23929
23930 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23931
23932 PR rtl-optimization/58048
23933 * lra-constraints.c (process_alt_operands): Don't check asm
23934 operand on register.
23935
23936 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23937
23938 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23939 the implied StoreLoad barrier for atomic operations if before.
23940
23941 2013-08-02 Jan Hubicka <jh@suse.cz>
23942 Martin Liska <marxin.liska@gmail.com>
23943
23944 * cgraph.c (cgraph_function_body_availability): Do not check
23945 cgraph flags.
23946 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23947 symtab_node_availability): Declare.
23948 * ipa.c (can_replace_by_local_alias): New.
23949 (function_and_variable_visibility): Use it.
23950 * symtab.c (symtab_for_node_and_aliases,
23951 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23952
23953 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23954
23955 PR rtl-optimization/57963
23956 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23957 (lra_constraints): Use them.
23958
23959 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23960
23961 * config/arm/types.md (define_attr "type"): Add "load_acq"
23962 and "store_rel".
23963 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23964 changes.
23965 (cortex_a53_store1): Likewise.
23966
23967 2013-08-01 Jan Hubicka <jh@suse.cz>
23968
23969 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23970 partitions are not needed.
23971
23972 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23973
23974 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23975 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23976 MAYBE_NON_Q_CLASS_P where appropriate.
23977
23978 2013-08-01 Jan Hubicka <jh@suse.cz>
23979
23980 * cgraph.h (release_function_body): Declare.
23981 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23982 of unused delcarations.
23983
23984 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23985
23986 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23987 RTL form when subtracting a constant.
23988
23989 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23990
23991 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23992 Generate canonical plus rtx with negated immediate instead of minus
23993 where appropriate.
23994 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23995
23996 2013-08-01 Jan Hubicka <jh@suse.cz>
23997
23998 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23999 (cgraph_release_function_body): Likewise.
24000 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
24001 * cgraph.h (cgrpah_node): Rename abstract_and_needed
24002 to used_as_abstract_origin.
24003 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
24004 symbols used as abstract origins.
24005 * cgraphunit.c (analyze_functions): Update.
24006 * ipa.c (symtab_remove_unreachable_nodes): Recompute
24007 used_as_abstract_origin.
24008 * tree-inline.c (tree_function_versioning): Update
24009 used_as_abstract_origin; be ready for DECL_RESULT and
24010 DECL_ARGUMENTS to be NULL.
24011
24012 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
24013 for abstract functions.
24014 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
24015 real symbols.
24016
24017 2013-08-01 Jan Hubicka <jh@suse.cz>
24018
24019 * profile.c (compute_value_histograms): Fix thinko.
24020
24021 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
24022
24023 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
24024 aarch-common-protos.h to extra_headers.
24025 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
24026 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
24027 * config/aarch64/t-aarch64 (aarch-common.o): Define.
24028
24029 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
24030
24031 * config/aarch64/aarch64.md (define_attr "type"): Delete.
24032 Include "../arm/types.md". Define "type" attribute for all patterns.
24033 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
24034 attribute changes.
24035
24036 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
24037
24038 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
24039 to support power8 load fusion.
24040 (fusion_gpr_mem_load): Likewise.
24041
24042 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
24043
24044 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
24045 declarations for power8 load fusion.
24046 (emit_fusion_gpr_load): Likewise.
24047
24048 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24049 tuning for power8, turn on fusion mode by default. Turn on sign
24050 extending fusion mode if normal fusion mode is on, and we are at
24051 -O2 or -O3.
24052 (fusion_gpr_load_p): New function, return true if we can fuse an
24053 addis instruction with a dependent load to a GPR.
24054 (emit_fusion_gpr_load): Emit the instructions for power8 load
24055 fusion to GPRs.
24056
24057 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
24058 (VSX load fusion peepholes): New peepholes to fuse together an
24059 addi instruction with a VSX load instruction.
24060
24061 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
24062 peepholes to fuse an addis instruction with a load to a GPR base
24063 register. If we are supporting sign extending fusions, convert
24064 sign extending loads to zero extending loads and add an explicit
24065 sign extension.
24066
24067 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
24068
24069 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
24070 aarch-common-protos.h to extra_headers.
24071 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
24072 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
24073 (arm_early_store_addr_dep): Likewise.
24074 (arm_no_early_alu_shift_dep): Likewise.
24075 (arm_no_early_alu_shift_value_dep): Likewise.
24076 (arm_no_early_mul_dep): Likewise.
24077 (arm_no_early_store_addr_dep): Likewise.
24078 (arm_mac_accumulator_is_mul_result): Likewise.
24079 (arm_mac_accumulator_is_result): Likewise.
24080 * config/arm/aarch-common.c: ... here. New file.
24081 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
24082 here to ...
24083 (arm_early_store_addr_dep): Likewise.
24084 (arm_no_early_alu_shift_dep): Likewise.
24085 (arm_no_early_alu_shift_value_dep): Likewise.
24086 (arm_no_early_mul_dep): Likewise.
24087 (arm_no_early_store_addr_dep): Likewise.
24088 (arm_mac_accumulator_is_mul_result): Likewise.
24089 (arm_mac_accumulator_is_result): Likewise.
24090 * config/arm/aarch-common-protos.h: ... here. New file.
24091 * config/arm/t-arm (aarch-common.o): Define.
24092
24093 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
24094
24095 * config/arm/arm.md: Include new file "types.md".
24096 (define_attr "type"): Move from here to ...
24097 (define_attr "mul32"): Likewise.
24098 (define_attr "mul64"): Likewise.
24099 * config/arm/types.md: ... here. New file.
24100
24101 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
24102
24103 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
24104 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
24105
24106 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24107
24108 * gen-pass-instances.awk: Fix offset of substr().
24109
24110 2013-07-31 David Malcolm <dmalcolm@redhat.com>
24111
24112 * Makefile.in (pass-instances.def): New.
24113 (passes.o): Replace dependency on passes.def with one on
24114 pass-instances.def
24115
24116 * gen-pass-instances.awk: New.
24117
24118 * passes.c (pass_manager::pass_manager): Use pass-instances.def
24119 rather than passes.def, updating local definition of NEXT_PASS
24120 macro to add an extra NUM parameter (currently unused).
24121
24122 2013-07-30 David Malcolm <dmalcolm@redhat.com>
24123
24124 * Makefile.in (PASS_MANAGER_H): New.
24125 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
24126 (passes.o): Likewise.
24127 (statistics.o): Likewise.
24128 (cgraphunit.o): Likewise.
24129 (context.o): Depend on PASS_MANAGER_H.
24130
24131 * pass_manager.h: New.
24132
24133 * cgraphunit.c (cgraph_add_new_function): Update for moves
24134 of globals to fields of pass_manager.
24135 (analyze_function): Likewise.
24136 (expand_function): Likewise.
24137 (ipa_passes): Likewise.
24138 (compile): Likewise.
24139
24140 * context.c (context::context): New.
24141 * context.h (context::context): New.
24142 (context::get_passes): New.
24143 (context::passes_): New.
24144
24145 * lto-cgraph.c (input_node): Update for moves of globals to
24146 fields of pass_manager.
24147
24148 * passes.c (all_passes): Remove, in favor of a field of the
24149 same name within the new class pass_manager.
24150 (all_small_ipa_passes): Likewise.
24151 (all_lowering_passes): Likewise.
24152 (all_regular_ipa_passes): Likewise.
24153 (all_late_ipa_passes): Likewise.
24154 (all_lto_gen_passes): Likewise.
24155 (passes_by_id): Likewise.
24156 (passes_by_id_size): Likewise.
24157 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24158 the new class pass_manager.
24159 (set_pass_for_id): Convert to...
24160 (pass_manager::set_pass_for_id): ...method.
24161 (get_pass_for_id): Convert to...
24162 (pass_manager::get_pass_for_id): ...method.
24163 (register_one_dump_file): Move body of implementation into...
24164 (pass_manager::register_one_dump_file): ...here.
24165 (register_dump_files_1): Convert to...
24166 (pass_manager::register_dump_files_1): ...method.
24167 (register_dump_files): Convert to...
24168 (pass_manager::register_dump_files): ...method.
24169 (create_pass_tab): Update for moves of globals to fields of
24170 pass_manager.
24171 (dump_passes): Move body of implementation into...
24172 (pass_manager::dump_passes): ...here.
24173 (register_pass): Move body of implementation into...
24174 (pass_manager::register_pass): ...here.
24175 (init_optimization_passes): Convert into...
24176 (pass_manager::pass_manager): ...constructor for new
24177 pass_manager class, and initialize the pass_lists array.
24178 (check_profile_consistency): Update for moves of globals to
24179 fields of pass_manager.
24180 (dump_profile_report): Move body of implementation into...
24181 (pass_manager::dump_profile_report): ...here.
24182 (ipa_write_summaries_1): Update for moves of pass lists from
24183 being globals to fields of pass_manager.
24184 (ipa_write_optimization_summaries): Likewise.
24185 (ipa_read_summaries): Likewise.
24186 (ipa_read_optimization_summaries): Likewise.
24187 (execute_all_ipa_stmt_fixups): Likewise.
24188
24189 * statistics.c (statistics_fini): Update for moves of globals to
24190 fields of pass_manager.
24191
24192 * toplev.c (general_init): Replace call to
24193 init_optimization_passes with construction of the pass_manager
24194 instance.
24195
24196 * tree-pass.h (all_passes): Remove, in favor of a field of the
24197 same name within the new class pass_manager.
24198 (all_small_ipa_passes): Likewise.
24199 (all_lowering_passes): Likewise.
24200 (all_regular_ipa_passes): Likewise.
24201 (all_lto_gen_passes): Likewise.
24202 (all_late_ipa_passes): Likewise.
24203 (passes_by_id): Likewise.
24204 (passes_by_id_size): Likewise.
24205 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24206 the new class pass_manager.
24207 (get_pass_for_id): Remove.
24208
24209 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24210
24211 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24212 configs.
24213
24214 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24215
24216 * arm.md (mulhi3): New expand pattern.
24217
24218 2013-07-30 Jan Hubicka <jh@suse.cz>
24219 Martin Liska <marxin.liska@gmail.com>
24220
24221 * profile.c (compute_value_histograms): Do not ICE when
24222 there is mismatch only on some counters.
24223
24224 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24225
24226 PR rtl-optimization/57637
24227 * function.c (move_insn_for_shrink_wrap): Also check the
24228 GEN set of the LIVE problem for the liveness analysis
24229 if it exists, otherwise give up.
24230
24231 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24232
24233 PR tree-optimization/57993
24234 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24235 replaced statement in the candidate table.
24236 (phi_add_costs): Return infinite cost when the hidden basis does
24237 not dominate all phis on which the candidate is dependent.
24238 (replace_one_candidate): Record replaced statement in the
24239 candidate table.
24240
24241 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
24242
24243 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24244 (ashlv2si3): New expander.
24245 (*ashlv2si3_i): New define_insn_and_split.
24246 * predicates.md (float_operation): Allow patterns with three
24247 basic sub-patterns.
24248
24249 PR rtl-optimization/58021
24250 * mode-switching.c (create_pre_exit): Always split off preceding
24251 insns if we are not at the basic block head.
24252
24253 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
24254
24255 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24256 (UCLIBC_DYNAMIC_LINKER): New macro.
24257 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24258 `-mnan=2008'.
24259 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24260 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
24261 `-mnan=2008'.
24262 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24263 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24264 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24265 for SF and DF modes. Use ieee_quad_format for TF mode.
24266 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24267 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24268 (mips_option_override): Handle `-mnan=legacy'.
24269 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24270 `-mabs=2008' and `-mnan=2008'.
24271 (OPTION_DEFAULT_SPECS): Add "nan" default.
24272 (ASM_SPEC): Handle `-mnan='.
24273 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24274 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24275 comment accordingly.
24276 (neg<mode>2): Likewise.
24277 * config/mips/mips.opt (mabs, mnan): New options.
24278 * doc/install.texi (Configuration): Document `--with-nan=' option.
24279 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24280 `-mnan=' options.
24281 (MIPS Options): Document them.
24282 * config.gcc <mips*-*-*>: Handle `--with-nan='.
24283 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24284 * configure: Regenerate.
24285 * config.in: Regenerate.
24286
24287 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24288
24289 * config/i386/i386.md (float post-reload splitters): Do not check
24290 for subregs of SSE registers.
24291
24292 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24293 H.J. Lu <hongjiu.lu@intel.com>
24294
24295 PR target/57954
24296 PR target/57988
24297 * config/i386/i386.md (post-reload splitter
24298 to avoid partial SSE reg dependency stalls): New pattern.
24299
24300 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24301
24302 * config/s390/s390.md ("movcc"): Swap load and store instructions.
24303
24304 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
24305
24306 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24307 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24308
24309 2013-07-26 Cary Coutant <ccoutant@google.com>
24310
24311 * dwarf2out.c (die_checksum_ordered): Don't include template
24312 instantiations in signature.
24313 (is_template_parameter): New function.
24314 (is_template_instantiation): New function.
24315 (generate_skeleton_bottom_up): Don't include template instantiations
24316 in type unit DIE.
24317 (generate_skeleton): Likewise.
24318 (break_out_comdat_types): Move recursive call to break out nested
24319 types earlier.
24320 (prune_unused_types_mark_generic_parms_dies): Call
24321 is_template_parameter.
24322
24323 2013-07-26 Ian Bolton <ian.bolton@arm.com>
24324
24325 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24326 uses vector registers.
24327 * config/aarch64/iterators.md: Add attributes rtn and vas.
24328
24329 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24330 Richard Earnshaw <richard.earnshaw@arm.com>
24331
24332 * combine.c (simplify_comparison): Re-canonicalize operands
24333 where appropriate.
24334 * config/arm/arm.md (movcond_addsi): New splitter.
24335
24336 2013-07-25 Sterling Augustine <saugustine@google.com>
24337
24338 * dwarf2out.c (size_of_pubnames): Move code to...
24339 (include_pubname_in_output): ...here. New.
24340 (want_pubnames): Rearrange.
24341 (output_pubnames): Call include_pubname_in_output. Move assertion.
24342
24343 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24344
24345 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24346
24347 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24348
24349 PR target/38836
24350 * doc/extend.texi: Remove obsolete builtins. Fix
24351 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24352
24353 2013-07-25 Jan Hubicka <jh@suse.cz>
24354
24355 * cgraph.c (release_function_body): Break out from ...
24356 (cgraph_release_function_body): ... this one; also release DECL_RESULT
24357 and DECL_ARGUMENTS.
24358 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24359 old_tree in the map.
24360 (create_specialized_node): Update.
24361 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24362 into index.
24363 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24364 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24365 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24366 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24367 DECL_RESULT.
24368
24369 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24370
24371 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24372 addsi3_carryin_alt2_<optab>): Correct output template.
24373
24374 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24375
24376 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24377 Adjust for arm_restrict_it.
24378 Remove trailing whitespace.
24379
24380 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
24381
24382 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24383 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24384
24385 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24386
24387 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
24388
24389 PR rtl-optimization/57960
24390 * lra-constraints.c (process_alt_operands): Use the right mode
24391 when checking strict_low.
24392
24393 2013-07-25 Jan Hubicka <jh@suse.cz>
24394
24395 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24396 * cgraph.c (cgraph_remove_node): Do not release function body
24397 when in cgraph streaming.
24398 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24399 in other partitions are not considered reachable; fix handling of
24400 clones.
24401
24402 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24403
24404 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24405
24406 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24407
24408 PR target/19599
24409 PR target/57731
24410 PR target/57837
24411 * config/arm/arm.md ("*sibcall_insn): Replace use of
24412 Ss with US. Adjust output for v5 and v4t.
24413 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24414
24415 * config/arm/constraints.md ("Ss"): Rename to US.
24416
24417 2013-07-25 Terry Guo <terry.guo@arm.com>
24418
24419 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24420 shift_add/shift_sub0/shift_sub1 RTXs.
24421
24422 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
24423 Anton Blanchard <anton@au1.ibm.com>
24424
24425 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24426 (altivec_vpks<VI_char>ss): Likewise.
24427 (altivec_vpks<VI_char>us): Likewise.
24428 (altivec_vpku<VI_char>us): Likewise.
24429 (altivec_vpku<VI_char>um): Likewise.
24430
24431 2013-07-24 David Malcolm <dmalcolm@redhat.com>
24432
24433 Introduce context class.
24434
24435 * Makefile.in (CONTEXT_H): New.
24436 (OBJS): Add context.o.
24437 (toplev.o): Add CONTEXT_H to dependencies.
24438 (context.o): New.
24439
24440 * toplev.c (general_init): Create the singleton gcc::context instance.
24441
24442 * context.c: New.
24443
24444 * context.h: New.
24445
24446 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
24447
24448 PR rtl-optimization/57968
24449 * mode-switching.c (create_pre_exit): Allow instructions that
24450 don't set a return register to need a non-exit mode.
24451
24452 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24453 Anton Blanchard <anton@au1.ibm.com>
24454
24455 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24456 operands to vperm for little endian.
24457 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24458 of lvsl to create the control mask for a vperm for little endian.
24459
24460 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24461 Anton Blanchard <anton@au1.ibm.com>
24462
24463 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24464 two operands for little-endian.
24465
24466 2013-07-23 Steve Ellcey <sellcey@mips.com>
24467
24468 * config/mips/mips.c (mips_case_values_threshold): New.
24469 (TARGET_CASE_VALUES_THRESHOLD): Define.
24470
24471 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24472 Anton Blanchard <anton@au1.ibm.com>
24473
24474 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24475 selection of field for vector splat in little endian mode.
24476
24477 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24478
24479 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24480 expanders to rs6000.md.
24481 (ior<mode>3): Likewise.
24482 (and<mode>3): Likewise.
24483 (one_cmpl<mode>2): Likewise.
24484 (nor<mode>3): Likewise.
24485 (andc<mode>3): Likewise.
24486 (eqv<mode>3): Likewise.
24487 (nand<mode>3): Likewise.
24488 (orc<mode>3): Likewise.
24489
24490 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24491 declaration.
24492
24493 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24494 to split multi-word logical operations.
24495 (rs6000_split_logical_di): Likewise.
24496 (rs6000_split_logical): Likewise.
24497
24498 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24499 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24500 and allow TImode operations in 32-bit.
24501 (vsx_and<mode>3_64bit): Likewise.
24502 (vsx_ior<mode>3_32bit): Likewise.
24503 (vsx_ior<mode>3_64bit): Likewise.
24504 (vsx_xor<mode>3_32bit): Likewise.
24505 (vsx_xor<mode>3_64bit): Likewise.
24506 (vsx_one_cmpl<mode>2_32bit): Likewise.
24507 (vsx_one_cmpl<mode>2_64bit): Likewise.
24508 (vsx_nor<mode>3_32bit): Likewise.
24509 (vsx_nor<mode>3_64bit): Likewise.
24510 (vsx_andc<mode>3_32bit): Likewise.
24511 (vsx_andc<mode>3_64bit): Likewise.
24512 (vsx_eqv<mode>3_32bit): Likewise.
24513 (vsx_eqv<mode>3_64bit): Likewise.
24514 (vsx_nand<mode>3_32bit): Likewise.
24515 (vsx_nand<mode>3_64bit): Likewise.
24516 (vsx_orc<mode>3_32bit): Likewise.
24517 (vsx_orc<mode>3_64bit): Likewise.
24518
24519 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24520 logical types in GPRs.
24521
24522 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24523 logical insns to rs6000.md, and allow TImode operations in
24524 32-bit.
24525 (altivec_ior<mode>3): Likewise.
24526 (altivec_xor<mode>3): Likewise.
24527 (altivec_one_cmpl<mode>2): Likewise.
24528 (altivec_nor<mode>3): Likewise.
24529 (altivec_andc<mode>3): Likewise.
24530
24531 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24532 attributes for moving the 128-bit logical operations into
24533 rs6000.md.
24534 (BOOL_REGS_OUTPUT): Likewise.
24535 (BOOL_REGS_OP1): Likewise.
24536 (BOOL_REGS_OP2): Likewise.
24537 (BOOL_REGS_UNARY): Likewise.
24538 (BOOL_REGS_AND_CR0): Likewise.
24539 (one_cmpl<mode>2): Add support for DI logical operations on
24540 32-bit, splitting the operations to 32-bit.
24541 (anddi3): Likewise.
24542 (iordi3): Likewise.
24543 (xordi3): Likewise.
24544 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24545 changes to combine the 32/64-bit code, allow logical operations on
24546 TI mode in 32-bit, and to use similar match_operator patterns like
24547 scalar mode uses. Combine the Altivec and VSX code for logical
24548 operations, and move it here.
24549 (ior<mode>3, 128-bit types): Likewise.
24550 (xor<mode>3, 128-bit types): Likewise.
24551 (one_cmpl<mode>3, 128-bit types): Likewise.
24552 (nor<mode>3, 128-bit types): Likewise.
24553 (andc<mode>3, 128-bit types): Likewise.
24554 (eqv<mode>3, 128-bit types): Likewise.
24555 (nand<mode>3, 128-bit types): Likewise.
24556 (orc<mode>3, 128-bit types): Likewise.
24557 (and<mode>3_internal): Likewise.
24558 (bool<mode>3_internal): Likewise.
24559 (boolc<mode>3_internal1): Likewise.
24560 (boolc<mode>3_internal2): Likewise.
24561 (boolcc<mode>3_internal1): Likewise.
24562 (boolcc<mode>3_internal2): Likewise.
24563 (eqv<mode>3_internal1): Likewise.
24564 (eqv<mode>3_internal2): Likewise.
24565 (one_cmpl1<mode>3_internal): Likewise.
24566
24567 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24568
24569 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24570 Rename flag_stack_usage to flag_stack_usage_info.
24571
24572 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24573
24574 * config/microblaze/sync.md: New file.
24575 * config/microblaze/microblaze.md: Include sync.md
24576 * config/microblaze/microblaze.c: Add print_operand 'y'.
24577 * config/microblaze/constraints.md: Add memory_contraint
24578 'Q' which is a single register.
24579
24580 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
24581
24582 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24583
24584 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24585
24586 * reload.c (find_reloads): Exit loop once we find this operand
24587 cannot be reloaded somehow for this alternative.
24588
24589 * reload.c (find_reloads): Exit loop once we find a hard register.
24590
24591 * rtlanal.c (computed_jump_p): Exit loop once we find label
24592 reference is used.
24593
24594 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24595
24596 * cfgloopmanip.c (remove_path): Exit loop after setting
24597 irred_invalidated.
24598
24599 * gensupport.c (subst_dup): Avoid loop if code is not
24600 MATCH_DUP nor MATCH_OP_DUP.
24601
24602 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24603
24604 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24605
24606 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24607
24608 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24609 true for SP_REGNUM if mode == ptr_mode.
24610 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24611 with value R0_REGNUM + 31.
24612
24613 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24614
24615 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24616 pad pointer-typed argument downward.
24617
24618 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24619
24620 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24621 and __ILP32__ when the ILP32 model is in use.
24622
24623 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24624
24625 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24626 (aarch64_load_symref_appropriately): In the case of
24627 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24628 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24629 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24630 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24631 if 'mode' doesn't equal to 'ptr_mode'.
24632 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24633 'vcall_offset'; change to call aarch64_emit_move differently depending
24634 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24635 to calculate the upper bound of 'vcall_offset'.
24636 (aarch64_cannot_force_const_mem): Change to also return true if
24637 mode != ptr_mode.
24638 (aarch64_legitimize_reload_address): In the case of large
24639 displacements, add new local variable 'xmode' and an assertion
24640 based on it; change to use 'xmode' to generate the new rtx and
24641 reload.
24642 (aarch64_asm_trampoline_template): Change to generate the template
24643 differently depending on TARGET_ILP32 or not; change to use
24644 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24645 (aarch64_trampoline_size): Removed.
24646 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24647 and replace immediate literals with it. Change to use 'ptr_mode'
24648 instead of 'DImode' and call convert_memory_address if the mode
24649 of 'fnaddr' doesn't equal to 'ptr_mode'.
24650 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24651 to output symbol.
24652 (aarch64_elf_asm_destructor): Likewise.
24653 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24654 on TARGET_ILP32 instead of aarch64_trampoline_size.
24655 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24656 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24657 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24658 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24659 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24660 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24661 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24662 depending on the value of 'mode'.
24663 (add_losym_<mode>): New.
24664 (ldr_got_small_<mode>): New, based on ldr_got_small.
24665 (ldr_got_small): Remove.
24666 (ldr_got_small_sidi): New.
24667 * config/aarch64/iterators.md (P): New.
24668 (PTR): Change to 'ptr_mode' in the condition.
24669
24670 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24671
24672 * config.gcc (aarch64*-*-*): Support --with-abi.
24673 (aarch64*-*-elf): Support --with-multilib-list.
24674 (aarch64*-*-linux*): Likewise.
24675 (supported_defaults): Add abi to aarch64*-*-*.
24676 * configure.ac: Mention AArch64 for --with-multilib-list.
24677 * configure: Re-generated.
24678 * config/aarch64/biarchilp32.h: New file.
24679 * config/aarch64/biarchlp64.h: New file.
24680 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24681 (ABI_SPEC): Ditto.
24682 (MULTILIB_DEFAULTS): Ditto.
24683 (DRIVER_SELF_SPECS): Ditto.
24684 (ASM_SPEC): Update to also substitute -mabi.
24685 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24686 file whose name depends on -mabi= and -mbig-endian.
24687 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24688 TARGET_ILP32.
24689 (POINTER_SIZE): New define.
24690 (POINTERS_EXTEND_UNSIGNED): Ditto.
24691 (enum aarch64_abi_type): New enumeration tag.
24692 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24693 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24694 (TARGET_ILP32): New define.
24695 * config/aarch64/aarch64.opt (mabi): New.
24696 (aarch64_abi): New.
24697 (ilp32, lp64): New values for -mabi.
24698 * config/aarch64/t-aarch64 (comma): New define.
24699 (MULTILIB_OPTIONS): Ditto.
24700 (MULTILIB_DIRNAMES): Ditto.
24701 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24702 * doc/invoke.texi: Document -mabi for AArch64.
24703
24704 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24705
24706 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24707
24708 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24709 Anton Blanchard <anton@au1.ibm.com>
24710
24711 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24712 endianness when selecting field to splat.
24713
24714 2013-07-22 Eric Christopher <echristo@gmail.com>
24715
24716 * dwarf2out.c (die_odr_checksum): New function to use
24717 CHECKSUM_ macros and ULEB128 for DIE tag.
24718 (generate_type_signature): Use.
24719
24720 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24721
24722 * config.gcc (sparc*-*-*): Accept leon3 processor.
24723 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24724 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24725 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24726 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24727 (mfix-ut699): Adjust comment.
24728 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24729 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24730 (CPP_CPU_SPEC): Likewise.
24731 (ASM_CPU_SPEC): Likewise.
24732 * config/sparc/sparc.c (leon3_cost): New constant.
24733 (sparc_option_override): Add leon3 support.
24734 (mem_ref): New function.
24735 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24736 (sparc_do_work_around_errata): Look into the instruction in the delay
24737 slot and adjust accordingly. Add fix for the data cache nullify issues
24738 of the UT699. Change insertion position for the NOP.
24739 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24740 (leon3_load): New reservation.
24741 (leon_store): Bump latency to 2.
24742 (grfpu): New automaton.
24743 (grfpu_alu): New unit.
24744 (grfpu_ds): Likewise.
24745 (leon_fp_alu): Adjust.
24746 (leon_fp_mult): Delete.
24747 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24748 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24749 * config/sparc/sparc.md (cpu): Add leon3.
24750 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24751 (swapsi): Likewise.
24752 (atomic_test_and_set): Likewise.
24753 (ldstub): Likewise.
24754
24755 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24756
24757 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24758 default for R5900 targets.
24759 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24760 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24761 * config/mips/mips.c (mips_option_override): Report an error for
24762 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24763 for -march=r5900 -mhard-float.
24764
24765 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24766
24767 * df-problems.c (can_move_insns_across): Exit loop once we
24768 find a non-fixed, non-global register.
24769
24770 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24771 setting can_throw.
24772
24773 * omega.c (omega_eliminate_red): Break after setting red_found.
24774 (omega_problem_has_red_equations): Similarly after setting found.
24775 (omega_query_variable): Similarly after setting coupled.
24776
24777 2013-07-22 Marek Polacek <polacek@redhat.com>
24778
24779 * gimplify.c: Don't include gimple.h twice.
24780
24781 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24782
24783 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24784 instead of TARGET_THUMB1.
24785 (Pz): New constraint.
24786 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24787 encodings.
24788 (compare_negsi_si): Likewise.
24789 (compare_addsi2_op0): Likewise.
24790 (compare_addsi2_op1): Likewise.
24791 (addsi3_carryin_<optab>): Likewise.
24792 (addsi3_carryin_alt2_<optab>): Likewise.
24793 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24794 for arm_restrict_it.
24795 (subsi3_carryin): Likewise.
24796 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24797 (minmax_arithsi): Disable for arm_restrict_it.
24798 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24799 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24800 (satsi_<SAT:code>_shift): Likewise.
24801 (arm_shiftsi3): Add alternative for 16-bit encoding.
24802 (arm32_movhf): Disable for arm_restrict_it.
24803 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24804 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24805
24806 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24807
24808 * config/arm/arm.md (attribute "insn"): Delete.
24809 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24810 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24811 (not_shiftsi): Update for attribute change.
24812 (not_shiftsi_compare0): Likewise.
24813 (not_shiftsi_compare0_scratch): Likewise.
24814 (arm_one_cmplsi2): Likewise.
24815 (thumb1_one_cmplsi2): Likewise.
24816 (notsi_compare0): Likewise.
24817 (notsi_compare0_scratch): Likewise.
24818 (thumb1_movdi_insn): Likewise.
24819 (arm_movsi_insn): Likewise.
24820 (movhi_insn_arch4): Likewise.
24821 (movhi_bytes): Likewise.
24822 (arm_movqi_insn): Likewise.
24823 (thumb1_movqi_insn): Likewise.
24824 (arm32_movhf): Likewise.
24825 (thumb1_movhf): Likewise.
24826 (arm_movsf_soft_insn): Likewise.
24827 (thumb1_movsf_insn): Likewise.
24828 (thumb_movdf_insn): Likewise.
24829 (movsicc_insn): Likewise.
24830 (movsfcc_soft_insn): Likewise.
24831 (and_scc): Likewise.
24832 (cond_move): Likewise.
24833 (if_move_not): Likewise.
24834 (if_not_move): Likewise.
24835 (if_shift_move): Likewise.
24836 (if_move_shift): Likewise.
24837 (if_shift_shift): Likewise.
24838 (if_not_arith): Likewise.
24839 (if_arith_not): Likewise.
24840 (cond_move_not): Likewise.
24841 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24842 (neon_mov<mode>): Likewise.
24843 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24844 (thumb2_movsi_vfp): Likewise.
24845 (movsf_vfp): Likewise.
24846 (thumb2_movsf_vfp): Likewise.
24847 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24848 change.
24849 (cortexa7_older_only): Likewise.
24850 (cortexa7_younger): Likewise.
24851 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24852 (1020alu_shift_op): Likewise.
24853 (1020alu_shift_reg_op): Likewise.
24854 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24855 (alu_shift_op): Likewise.
24856 (alu_shift_reg_op): Likewise.
24857 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24858 (11_alu_shift_op): Likewise.
24859 (11_alu_shift_reg_op): Likewise.
24860 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24861 (9_alu_shift_reg_op): Likewise.
24862 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24863 change.
24864 (cortex_a15_alu_shift): Likewise.
24865 (cortex_a15_alu_shift_reg): Likewise.
24866 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24867 (cortex_a5_alu_shift): Likewise.
24868 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24869 change.
24870 (cortex_a53_alu_shift): Likewise.
24871 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24872 change.
24873 (cortex_a7_alu_reg): Likewise.
24874 (cortex_a7_alu_shift): Likewise.
24875 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24876 (cortex_a8_alu_shift): Likewise.
24877 (cortex_a8_alu_shift_reg): Likewise.
24878 (cortex_a8_mov): Likewise.
24879 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24880 (cortex_a9_dp_shift): Likewise.
24881 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24882 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24883 (cortex_r4_mov): Likewise.
24884 (cortex_r4_alu_shift): Likewise.
24885 (cortex_r4_alu_shift_reg): Likewise.
24886 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24887 (526_alu_shift_op): Likewise.
24888 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24889 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24890 (626te_alu_shift_op): Likewise.
24891 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24892 (726te_alu_op): Likewise.
24893 (726te_alu_shift_op): Likewise.
24894 (726te_alu_shift_reg_op): Likewise.
24895 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24896 (mp626_alu_shift_op): Likewise.
24897 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24898 (pj4_alu_e1_conds): Likewise.
24899 (pj4_alu): Likewise.
24900 (pj4_alu_conds): Likewise.
24901 (pj4_shift): Likewise.
24902 (pj4_shift_conds): Likewise.
24903 (pj4_alu_shift): Likewise.
24904 (pj4_alu_shift_conds): Likewise.
24905
24906 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24907
24908 * config/arm/predicates.md (shiftable_operator_strict_it):
24909 New predicate.
24910 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24911 Disable cond_exec version for arm_restrict_it.
24912 (thumb2_smaxsi3): Convert to generate cond_exec.
24913 (thumb2_sminsi3): Likewise.
24914 (thumb32_umaxsi3): Likewise.
24915 (thumb2_uminsi3): Likewise.
24916 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24917 (thumb2_neg_abssi2): Likewise.
24918 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24919 (thumb2_movsicc_insn): Adjust alternatives.
24920 (thumb2_mov_negscc): Disable for arm_restrict_it.
24921 (thumb2_mov_negscc_strict_it): New pattern.
24922 (thumb2_mov_notscc_strict_it): New pattern.
24923 (thumb2_mov_notscc): Disable for arm_restrict_it.
24924 (thumb2_ior_scc): Likewise.
24925 (thumb2_ior_scc_strict_it): New pattern.
24926 (thumb2_cond_move): Adjust for arm_restrict_it.
24927 (thumb2_cond_arith): Disable for arm_restrict_it.
24928 (thumb2_cond_arith_strict_it): New pattern.
24929 (thumb2_cond_sub): Adjust for arm_restrict_it.
24930 (thumb2_movcond): Likewise.
24931 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24932 (thumb2_zero_extendhisi2_v6): Likewise.
24933 (thumb2_zero_extendqisi2_v6): Likewise.
24934 (orsi_notsi_si): Likewise.
24935 (orsi_not_shiftsi_si): Likewise.
24936
24937 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24938
24939 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24940 instruction sequence is 1 byte shorter.
24941
24942 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24943
24944 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24945 it is not needed after split.
24946
24947 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24948
24949 PR target/51784
24950 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24951 second label for nonlocal goto receivers. Don't output pic base labels
24952 unless we're producing PIC; mark that action unreachable().
24953 (ix86_save_reg): If the function contains a nonlocal label, save the
24954 PIC base reg.
24955 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24956 * config/darwin.c (emitted_pic_label_num): New GTY.
24957 (update_pic_label_number_if_needed): New.
24958 (machopic_output_function_base_name): Adjust for nonlocal receiver
24959 case.
24960 (machopic_should_output_picbase_label): New.
24961 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24962 (nonlocal_goto_receiver): New insn and split.
24963
24964 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24965
24966 * config/aarch64/aarch64-builtins.c
24967 (aarch64_fold_builtin): Fold abs in all modes.
24968 * config/aarch64/aarch64-simd-builtins.def
24969 (abs): Enable for all modes.
24970 * config/aarch64/arm_neon.h
24971 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24972 (vabs_f64): Add missing intrinsic.
24973
24974 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24975
24976 * config/aarch64/arm_neon.h (vabs_s64): New function
24977
24978 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24979
24980 PR target/57516
24981 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24982 * config/avr/avr.md (adjust_len): Add `round'.
24983 * config/avr/avr-protos.h (avr_out_round): New prototype.
24984 (avr_out_plus): Add `out_label' argument.
24985 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24986 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24987 Handle the case where `insn' is just a pattern.
24988 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24989 (avr_out_round): New function.
24990 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24991
24992 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24993
24994 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24995 Add check for flag_stack_usage to handle -fstack-usage support
24996
24997 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24998
24999 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
25000 interaction for new Power8 flags and VSX.
25001
25002 2013-07-18 Sriraman Tallam <tmsriram@google.com>
25003
25004 PR middle-end/57698
25005 * tree-inline.c (expand_call_inline): Emit errors during
25006 early_inlining only if optimization is not turned on.
25007
25008 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25009
25010 * passes.def: New.
25011
25012 * passes.c (init_optimization_passes): Move the construction of
25013 the pass hierarchy into a new passes.def file.
25014
25015 * Makefile.in (passes.o): Add dependency on passes.def.
25016
25017 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25018
25019 * passes.c (init_optimization_passes): Introduce macros for
25020 constructing the tree of passes (INSERT_PASSES_AFTER,
25021 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
25022 TERMINATE_PASS_LIST).
25023
25024 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
25025 Wei Mi <wmi@google.com>
25026
25027 PR rtl-optimization/57878
25028 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
25029 top.
25030 (reload_pseudo_compare_func): Check nregs first for reload
25031 pseudos.
25032
25033 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25034
25035 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
25036
25037 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
25038
25039 * read-rtl.c (validate_const_int): Once an invalid character is
25040 seen, quit the loop.
25041
25042 * gengtype.c (write_roots): Similarly once we find the "deletable"
25043 or "if_marked" option.
25044
25045 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
25046
25047 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
25048 "xtab" and "sat". Move value "clz" from here to ...
25049 (attriubte "type"): ... here.
25050 (satsi_<SAT:code>): Delete "insn" attribute.
25051 (satsi_<SAT:code>_shift): Likewise.
25052 (arm_zero_extendqisi2addsi): Likewise.
25053 (arm_extendqisi2addsi): Likewise.
25054 (clzsi2): Update for attribute changes.
25055 (rbitsi2): Likewise.
25056 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
25057 attribute.
25058 (arm_usatsihi): Likewise.
25059 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
25060
25061 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
25062
25063 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
25064 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
25065 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
25066 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
25067 in alphabetical order.
25068 (attribute "core_cycles"): Update for attribute changes.
25069 (arm_addsi3): Likewise.
25070 (addsi3_compare0): Likewise.
25071 (addsi3_compare0_scratch): Likewise.
25072 (addsi3_compare_op1): Likewise.
25073 (addsi3_compare_op2): Likewise.
25074 (compare_addsi2_op0): Likewise.
25075 (compare_addsi2_op1): Likewise.
25076 (addsi3_carryin_shift_<optab>): Likewise.
25077 (subsi3_carryin_shift): Likewise.
25078 (rsbsi3_carryin_shift): Likewise.
25079 (arm_subsi3_insn): Likewise.
25080 (subsi3_compare0): Likewise.
25081 (subsi3_compare): Likewise.
25082 (arm_andsi3_insn): Likewise.
25083 (thumb1_andsi3_insn): Likewise.
25084 (andsi3_compare0): Likewise.
25085 (andsi3_compare0_scratch): Likewise.
25086 (zeroextractsi_compare0_scratch
25087 (andsi_not_shiftsi_si): Likewise.
25088 (iorsi3_insn): Likewise.
25089 (iorsi3_compare0): Likewise.
25090 (iorsi3_compare0_scratch): Likewise.
25091 (arm_xorsi3): Likewise.
25092 (thumb1_xorsi3_insn): Likewise.
25093 (xorsi3_compare0): Likewise.
25094 (xorsi3_compare0_scratch): Likewise.
25095 (satsi_<SAT:code>_shift): Likewise.
25096 (rrx): Likewise.
25097 (arm_shiftsi3): Likewise.
25098 (shiftsi3_compare0): Likewise.
25099 (not_shiftsi): Likewise.
25100 (not_shiftsi_compare0): Likewise.
25101 (not_shiftsi_compare0_scratch): Likewise.
25102 (arm_one_cmplsi2): Likewise.
25103 (thumb_one_complsi2): Likewise.
25104 (notsi_compare0): Likewise.
25105 (notsi_compare0_scratch): Likewise.
25106 (thumb1_zero_extendhisi2): Likewise.
25107 (arm_zero_extendhisi2): Likewise.
25108 (arm_zero_extendhisi2_v6): Likewise.
25109 (arm_zero_extendhisi2addsi): Likewise.
25110 (thumb1_zero_extendqisi2): Likewise.
25111 (thumb1_zero_extendqisi2_v6): Likewise.
25112 (arm_zero_extendqisi2): Likewise.
25113 (arm_zero_extendqisi2_v6): Likewise.
25114 (arm_zero_extendqisi2addsi): Likewise.
25115 (thumb1_extendhisi2): Likewise.
25116 (arm_extendhisi2): Likewise.
25117 (arm_extendhisi2_v6): Likewise.
25118 (arm_extendqisi): Likewise.
25119 (arm_extendqisi_v6): Likewise.
25120 (arm_extendqisi2addsi): Likewise.
25121 (thumb1_extendqisi2): Likewise.
25122 (thumb1_movdi_insn): Likewise.
25123 (arm_movsi_insn): Likewise.
25124 (movsi_compare0): Likewise.
25125 (movhi_insn_arch4): Likewise.
25126 (movhi_bytes): Likewise.
25127 (arm_movqi_insn): Likewise.
25128 (thumb1_movqi_insn): Likewise.
25129 (arm32_movhf): Likewise.
25130 (thumb1_movhf): Likewise.
25131 (arm_movsf_soft_insn): Likewise.
25132 (thumb1_movsf_insn): Likewise.
25133 (movdf_soft_insn): Likewise.
25134 (thumb_movdf_insn): Likewise.
25135 (arm_cmpsi_insn): Likewise.
25136 (cmpsi_shiftsi): Likewise.
25137 (cmpsi_shiftsi_swp): Likewise.
25138 (arm_cmpsi_negshiftsi_si): Likewise.
25139 (movsicc_insn): Likewise.
25140 (movsfcc_soft_insn): Likewise.
25141 (arith_shiftsi): Likewise.
25142 (arith_shiftsi_compare0
25143 (arith_shiftsi_compare0_scratch
25144 (sub_shiftsi): Likewise.
25145 (sub_shiftsi_compare0
25146 (sub_shiftsi_compare0_scratch
25147 (and_scc): Likewise.
25148 (cond_move): Likewise.
25149 (if_plus_move): Likewise.
25150 (if_move_plus): Likewise.
25151 (if_move_not): Likewise.
25152 (if_not_move): Likewise.
25153 (if_shift_move): Likewise.
25154 (if_move_shift): Likewise.
25155 (if_shift_shift): Likewise.
25156 (if_not_arith): Likewise.
25157 (if_arith_not): Likewise.
25158 (cond_move_not): Likewise.
25159 (thumb1_ashlsi3): Set type attribute.
25160 (thumb1_ashrsi3): Likewise.
25161 (thumb1_lshrsi3): Likewise.
25162 (thumb1_rotrsi3): Likewise.
25163 (shiftsi3_compare0_scratch): Likewise.
25164 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25165 (neon_mov<mode>): Likewise.
25166 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25167 attribute changes.
25168 (thumb2_movsi_insn): Likewise.
25169 (thumb2_cmpsi_neg_shiftsi): Likewise.
25170 (thumb2_extendqisi_v6): Likewise.
25171 (thumb2_zero_extendhisi2_v6): Likewise.
25172 (thumb2_zero_extendqisi2_v6): Likewise.
25173 (thumb2_shiftsi3_short): Likewise.
25174 (thumb2_addsi3_compare0_scratch): Likewise.
25175 (orsi_not_shiftsi_si): Likewise.
25176 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25177 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25178 changes.
25179 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25180 (1020alu_shift_op): Likewise.
25181 (1020alu_shift_reg_op): Likewise.
25182 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25183 (alu_shift_op): Likewise.
25184 (alu_shift_reg_op): Likewise.
25185 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25186 (11_alu_shift_op): Likewise.
25187 (11_alu_shift_reg_op): Likewise.
25188 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25189 (9_alu_shift_reg_op): Likewise.
25190 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25191 changes.
25192 (cortex_a15_alu_shift): Likewise.
25193 (cortex_a15_alu_shift_reg): Likewise.
25194 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25195 changes.
25196 (cortex_a5_alu_shift): Likewise.
25197 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25198 changes.
25199 (cortex_a53_alu_shift): Likewise.
25200 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25201 changes.
25202 (cortex_a7_alu_reg): Likewise.
25203 (cortex_a7_alu_shift): Likewise.
25204 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25205 changes.
25206 (cortex_a8_alu_shift): Likewise.
25207 (cortex_a8_alu_shift_reg): Likewise.
25208 (cortex_a8_mov): Likewise.
25209 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25210 (cortex_a9_dp_shift): Likewise.
25211 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25212 changes.
25213 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25214 changes.
25215 (cortex_r4_mov): Likewise.
25216 (cortex_r4_alu_shift): Likewise.
25217 (cortex_r4_alu_shift_reg): Likewise.
25218 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25219 (526_alu_shift_op): Likewise.
25220 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25221 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25222 (626te_alu_shift_op): Likewise.
25223 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25224 (726te_alu_op): Likewise.
25225 (726te_alu_shift_op): Likewise.
25226 (726te_alu_shift_reg_op): Likewise.
25227 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25228 (mp626_alu_shift_op): Likewise.
25229 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25230 (pj4_alu_e1_conds): Likewise.
25231 (pj4_alu): Likewise.
25232 (pj4_alu_conds): Likewise.
25233 (pj4_shift): Likewise.
25234 (pj4_shift_conds): Likewise.
25235 (pj4_alu_shift): Likewise.
25236 (pj4_alu_shift_conds): Likewise.
25237 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25238 changes.
25239 (cortexa7_older_only): Likewise.
25240 (cortexa7_younger): Likewise.
25241
25242 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25243
25244 * ipa-pure-const.c (generate_summary): Rename to...
25245 (pure_const_generate_summary): ... this.
25246
25247 2013-07-17 Iain Sandoe <iain@codesourcery.com>
25248
25249 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25250
25251 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
25252
25253 PR target/57909
25254 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25255 usage in HI mode.
25256
25257 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25258
25259 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25260 enabled without -march=zEC12.
25261 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25262 flags to be set.
25263
25264 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25265
25266 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25267 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25268 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25269 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25270 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25271 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25272 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25273 ISA_HAS_FP4.
25274 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25275 and ISA_HAS_NMADD3_NMSUB3.
25276 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25277 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25278 (nmsub4<mode>, nmsub3<mode>): Likewise.
25279 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25280
25281 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25282
25283 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25284 TARGET_MIPS5400 checking.
25285
25286 2013-07-16 Jakub Jelinek <jakub@redhat.com>
25287 Peter Bergner <bergner@vnet.ibm.com>
25288
25289 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25290 registers in the comment.
25291 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25292 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25293 rather than FIRST_PSEUDO_REGISTERS.
25294
25295 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
25296
25297 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25298 enable extra ISA flags with TARGET_HTM.
25299
25300 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25301
25302 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25303 Fix comment typos.
25304
25305 2013-07-15 Cong Hou <congh@google.com>
25306
25307 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25308 in compare function for sorting.
25309
25310 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
25311
25312 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25313 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25314 * config/rs6000/rs6000.opt: Add -mhtm option.
25315 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25316 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25317 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25318 __HTM__ if the HTM instructions are available.
25319 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25320 htm_spr_reg_operand): New define_predicates.
25321 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25322 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25323 Include htm.md.
25324 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25325 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25326 HTM builtin functions.
25327 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25328 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25329 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25330 (rs6000_builtin_mask_calculate): Likewise.
25331 (rs6000_option_override_internal): Likewise.
25332 (bdesc_htm): Add new HTM builtin support.
25333 (htm_spr_num): New function.
25334 (htm_spr_regno): Likewise.
25335 (rs6000_htm_spr_icode): Likewise.
25336 (htm_expand_builtin): Likewise.
25337 (htm_init_builtins): Likewise.
25338 (rs6000_expand_builtin): Add support for HTM builtin functions.
25339 (rs6000_init_builtins): Likewise.
25340 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25341 option.
25342 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25343 (TARGET_HTM, MASK_HTM): Define macros.
25344 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25345 (FIXED_REGISTERS): Likewise.
25346 (CALL_USED_REGISTERS): Likewise.
25347 (CALL_REALLY_USED_REGISTERS): Likewise.
25348 (REG_ALLOC_ORDER): Likewise.
25349 (enum reg_class): Likewise.
25350 (REG_CLASS_NAMES): Likewise.
25351 (REG_CLASS_CONTENTS): Likewise.
25352 (REGISTER_NAMES): Likewise.
25353 (ADDITIONAL_REGISTER_NAMES): Likewise.
25354 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25355 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25356 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25357 * config/rs6000/htm.md: New file.
25358 * config/rs6000/htmintrin.h: New file.
25359 * config/rs6000/htmxlintrin.h: New file.
25360
25361 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
25362
25363 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25364 Define SYMBOL_TINY_GOT, update comment.
25365 * config/aarch64/aarch64.c
25366 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25367 (aarch64_expand_mov_immediate): Likewise.
25368 (aarch64_print_operand): Likewise.
25369 (aarch64_classify_symbol): Likewise.
25370 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25371 (ldr_got_tiny): Define.
25372
25373 2013-07-13 Tobias Grosser <tobias@grosser.es>
25374
25375 PR tree-optimization/54094
25376 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25377 scheduling dimension for the parallelism check from the polyhedral
25378 information in the AST.
25379 * graphite-dependences.c (carries_deps): Do not assume the schedule is
25380 in 2D + 1 form.
25381
25382 2013-07-13 Jason Merrill <jason@redhat.com>
25383
25384 * print-tree.c (debug_vec_tree): Use debug_raw.
25385 (debug_raw (vec<tree, va_gc> &)): New.
25386 (debug_raw (vec<tree, va_gc> *)): New.
25387 * tree.h: Declare them.
25388
25389 2013-07-13 Bin Cheng <bin.cheng@arm.com>
25390
25391 * ifcvt.c (ifcvt_after_combine): New static variable.
25392 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25393 for size.
25394 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
25395 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25396 rest_of_handle_if_after_reload): Pass new argument for if_convert.
25397
25398 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
25399
25400 * config/mips/mips.c (mips_expand_call): Remove empty statement.
25401
25402 2013-07-12 Michael Matz <matz@suse.de>
25403
25404 PR middle-end/55771
25405 * convert.c (convert_to_real): Reject non-float inner types.
25406
25407 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
25408
25409 * config/aarch64/aarch64-protos.h
25410 (aarch64_simd_immediate_valid_for_move): Remove.
25411 * config/aarch64/aarch64.c (simd_immediate_info): New member.
25412 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25413 cases.
25414 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25415
25416 2013-07-11 Steve Ellcey <sellcey@mips.com>
25417
25418 * config/mips/mips.c (mips_conditional_register_usage): Do not
25419 use t[0-7] registers in MIPS16 mode when optimizing for size.
25420
25421 2013-07-11 Sriraman Tallam <tmsriram@google.com>
25422
25423 * config/i386/i386.c (dispatch_function_versions): Fix array
25424 indexing of function_version_info to match actual_versions.
25425
25426 2013-07-11 Teresa Johnson <tejohnson@google.com>
25427
25428 * vec.h (struct va_gc): Move release out-of-line.
25429 (va_gc::release): Call ggc_free on released vec.
25430
25431 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25432
25433 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25434 Require GOT register as additional operand in UNSPEC.
25435 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25436 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25437 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25438 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25439 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25440 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25441 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25442
25443 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
25444
25445 PR target/57631
25446 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25447 name seen by assembler/linker rather if available.
25448
25449 2013-07-11 Andreas Schwab <schwab@suse.de>
25450
25451 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25452
25453 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
25454
25455 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25456
25457 2013-07-10 Joseph Myers <joseph@codesourcery.com>
25458
25459 * doc/tm.texi.in: Move hook documentation to ....
25460 * target.def: ... here.
25461
25462 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25463 text on @hook line.
25464 * doc/tm.texi: Regenerate.
25465
25466 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
25467
25468 PR c++/57869
25469 * doc/invoke.texi: Document -Wconditionally-supported.
25470
25471 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25472
25473 PR target/57844
25474 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25475 of my_fp.
25476
25477 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25478
25479 PR target/57506
25480 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25481 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25482 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25483 Remove duplicate devices.
25484 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25485 * config/avr/t-multilib: Regenerate.
25486 * config/avr/avr-tables.opt: Regenerate.
25487 * doc/avr-mmcu.texi: Regenerate.
25488
25489 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25490
25491 PR target/56987
25492 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25493
25494 2013-07-10 Graham Stott <graham.stott@btinternet.com>
25495
25496 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25497 the cost of MULT when optimizing for size.
25498
25499 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25500
25501 * config/cr16/cr16-protos.h: Don't include target.h.
25502
25503 2013-07-09 Joseph Myers <joseph@codesourcery.com>
25504
25505 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25506 adjust register size for TDmode and TFmode for VSX registers.
25507
25508 2013-07-08 Kai Tietz <ktietz@redhat.com>
25509
25510 PR target/56892
25511 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25512 hook_bool_const_tree_true.
25513
25514 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25515
25516 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25517 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25518 * config/s390/s390.md: Define FPR*_REGNUM constants.
25519 Fix FPR2_REGNUM constant (18 -> 17).
25520 ("*trunc<BFP:mode><DFP_ALL:mode>2")
25521 ("*trunc<DFP_ALL:mode><BFP:mode>2")
25522 ("trunc<BFP:mode><DFP_ALL:mode>2")
25523 ("trunc<DFP_ALL:mode><BFP:mode>2")
25524 ("*extend<BFP:mode><DFP_ALL:mode>2")
25525 ("*extend<DFP_ALL:mode><BFP:mode>2")
25526 ("extend<BFP:mode><DFP_ALL:mode>2")
25527 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25528 FPR4_REGNUM.
25529
25530 2013-07-08 Graham Stott <graham.stott@btinternet.com>
25531
25532 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25533
25534 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25535
25536 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25537 and cfun_fpr_bit_p to cfun_fpr_save_p.
25538 (s390_frame_area, s390_register_info, s390_frame_info)
25539 (s390_emit_prologue, s390_emit_epilogue)
25540 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25541 register numbers.
25542 * config/s390/s390.h: Define *_REGNUM macros for floating point
25543 register numbers.
25544
25545 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
25546
25547 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25548
25549 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
25550
25551 PR rtl-optimization/57786
25552 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25553 and break out of the loop when it is set to false.
25554
25555 2013-07-08 Jakub Jelinek <jakub@redhat.com>
25556
25557 PR target/57819
25558 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25559 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25560 (const_int 63)) 0)).
25561 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25562 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25563 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25564
25565 PR rtl-optimization/57829
25566 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25567 mask bits outside of mode are just sign-extension from mode to HWI.
25568
25569 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
25570
25571 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25572 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25573 adjust_address instead of change_address to keep info about alignment.
25574 (emit_strmov): Remove.
25575 (emit_memmov): New function.
25576 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25577 (expand_movmem_epilogue): Likewise and return updated rtx for
25578 destination.
25579 (expand_constant_movmem_prologue): Likewise and return updated rtx for
25580 destination and source.
25581 (decide_alignment): Refactor, handle vector_loop.
25582 (ix86_expand_movmem): Likewise.
25583 (ix86_expand_setmem): Likewise.
25584 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25585
25586 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
25587
25588 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25589 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25590
25591 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25592
25593 * config/i386/sse.md (sse_movlhps): Change alternative 3
25594 of operand 2 to "m".
25595
25596 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25597
25598 PR target/57807
25599 * config/i386/sse.md (iptr): New mode attribute.
25600 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25601 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25602 (<sse>_vmmul<mode>3): Ditto.
25603 (<sse>_vmdiv<mode>3): Ditto.
25604 (sse_vmrcpv4sf2): Ditto.
25605 (<sse>_vmsqrt<mode>2): Ditto.
25606 (sse_vmrsqrtv4sf2): Ditto.
25607 (<sse>_vm<code><mode>3): Ditto.
25608 (avx_vmcmp<mode>3): Ditto.
25609 (<sse>_vmmaskcmp<mode>3): Ditto.
25610 (<sse>_comi): Ditto.
25611 (<sse>_ucomi): Ditto.
25612 (*xop_vmfrcz_<mode>): Ditto.
25613 (*fmai_fmadd_<mode>): Ditto.
25614 (*fmai_fmsub_<mode>): Ditto.
25615 (*fmai_fnmadd_<mode>): Ditto.
25616 (*fmai_fnmsub_<mode>): Ditto.
25617 (*fma4i_vmfmadd_<mode>): Ditto.
25618 (*fma4i_vmfmsub_<mode>): Ditto.
25619 (*fma4i_vmfnmadd_<mode>): Ditto.
25620 (*fma4i_vmfnmsub_<mode>): Ditto.
25621 (*xop_vmfrcz_<mode>): Ditto.
25622 (sse_cvtps2pi): Ditto.
25623 (sse_cvttps2pi): Ditto.
25624 (sse_cvtss2si): Ditto.
25625 (sse_cvtss2si_2): Ditto.
25626 (sse_cvtss2siq_2): Ditto.
25627 (sse_cvttss2si): Ditto.
25628 (sse_cvttss2siq): Ditto.
25629 (sse_cvtsd2si): Ditto.
25630 (sse_cvtsd2si_2): Ditto.
25631 (sse_cvtsd2siq_2): Ditto.
25632 (sse_cvttsd2si): Ditto.
25633 (sse_cvttsd2siq): Ditto.
25634 (sse_cvtsd2ss): Ditto.
25635 (sse_cvtss2sd): Ditto.
25636 (avx2_pbroadcast<mode>): Ditto.
25637 (avx2_pbroadcast<mode>_1): Ditto.
25638 (*avx_vperm_broadcast_v4sf): Ditto.
25639
25640 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25641 (sse_movlhps): Ditto.
25642 (sse_storehps): Ditto.
25643 (sse_loadhps): Ditto.
25644 (sse_storelps): Ditto.
25645 (sse_loadlps): Ditto.
25646 (*vec_concatv4sf): Ditto.
25647 (*vec_interleave_highv2df): Ditto.
25648 (*vec_interleave_lowv2df): Ditto.
25649 (*vec_extractv2df_1_sse): Ditto.
25650 (*vec_extractv2df_0_sse): Ditto.
25651 (sse2_storelpd): Ditto.
25652 (sse2_loadlpd): Ditto.
25653 (sse2_movsd): Ditto.
25654 (*vec_concatv4si): Ditto.
25655 (vec_concatv2di): Ditto.
25656
25657 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25658 for Intel asm dialect.
25659 (mmx_punpcklwd): Ditto.
25660 (mmx_punpckldq): Ditto.
25661
25662 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25663 for intel assembler dialect.
25664
25665 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25666
25667 PR target/29776
25668 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25669 for BUILT_IN_C{LZ,LRSB}*.
25670 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25671 * tree-vrp.c (extract_range_basic): Handle
25672 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25673 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25674 fall thru to code calling set_value*.
25675 * builtins.c (expand_builtin): Remove *IMAX cases.
25676 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25677 if width is bigger than 2*HWI.
25678
25679 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25680
25681 PR rtl-optimization/55342
25682 * lra-int.h (lra_subreg_reload_pseudos): New.
25683 * lra.c: Add undoing optional reloads to the block diagram.
25684 (lra_subreg_reload_pseudos): New.
25685 (lra_optional_reload_pseudos): Change comments.
25686 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25687 lra_optional_reload_pseudos after undo transformations.
25688 * lra-assigns.c (pseudo_prefix_title): New.
25689 (lra_setup_reg_renumber): Use it.
25690 (spill_for): Ditto. Check subreg reload pseudos too.
25691 (assign_by_spills): Consider subreg reload pseudos too.
25692 * lra-constraints.c (simplify_operand_subreg): Use
25693 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25694 (curr_insn_transform): Recognize and do optional reloads.
25695 (undo_optional_reloads): New.
25696 (lra_undo_inheritance): Call undo_optional_reloads.
25697
25698 2013-07-05 Thomas Quinot <quinot@adacore.com>
25699
25700 * tree-complex.c (expand_complex_operations_1): Fix typo.
25701
25702 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25703
25704 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25705 (tune_params): New member 'const vec_costs'.
25706 * config/aarch64/aarch64.c (generic_vector_cost): New.
25707 (generic_tunings): New member 'generic_vector_cost'.
25708 (aarch64_builtin_vectorization_cost): New.
25709 (aarch64_add_stmt_cost): New.
25710 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25711 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25712
25713 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25714
25715 PR target/57777
25716 * config/i386/predicates.md (vsib_address_operand): Disallow
25717 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25718
25719 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25720
25721 PR middle-end/55030
25722 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25723 expand_builtin_setjmp_receiver.
25724 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25725 with NULL for the label parameter.
25726 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25727 the frame-pointer. Adjust comments.
25728 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25729 only if LABEL is non-NULL.
25730
25731 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25732
25733 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25734 (ARM_ABI_AAPCS64): Ditto.
25735 (arm_abi): Ditto.
25736 (ARM_DEFAULT_ABI): Ditto.
25737
25738 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25739
25740 * config/aarch64/aarch64-builtins.c
25741 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25742 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25743 (st1): Likewise.
25744 * config/aarch64/aarch64-simd.md
25745 (aarch64_ld1<VALL:mode>): New.
25746 (aarch64_st1<VALL:mode>): Likewise.
25747 * config/aarch64/arm_neon.h
25748 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25749
25750 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25751
25752 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25753 target ISA is AVX.
25754 (ix86_option_override_internal):Turn on all -mavx target flags by
25755 default as they are dependent on AVX anyway.
25756
25757 2013-07-02 Cary Coutant <ccoutant@google.com>
25758
25759 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25760 deterministic hash.
25761 (loc_checksum_ordered): Likewise.
25762 (hash_loc_operands): Remove inline keyword.
25763
25764 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25765
25766 PR tree-optimization/57741
25767 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25768 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25769 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25770 Allow REAL_CST step_exprs if flag_associative_math.
25771 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25772
25773 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25774
25775 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25776
25777 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25778
25779 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25780
25781 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25782
25783 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25784 encoding.
25785 (iorsi3_insn): Likewise.
25786 (arm_xorsi3): Likewise.
25787
25788 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25789
25790 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25791 to ...
25792 (attribute "type"): ... here, and prefix with "wmmx_".
25793 (attribute "core_cycles"): Update for attribute changes.
25794 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25795 (tbcstv4hi): Likewise.
25796 (tbcstv2si): Likewise.
25797 (iwmmxt_iordi3): Likewise.
25798 (iwmmxt_xordi3): Likewise.
25799 (iwmmxt_anddi3): Likewise.
25800 (iwmmxt_nanddi3): Likewise.
25801 (iwmmxt_arm_movdi): Likewise.
25802 (iwmmxt_movsi_insn): Likewise.
25803 (mov<mode>_internal): Likewise.
25804 (and<mode>3_iwmmxt): Likewise.
25805 (ior<mode>3_iwmmxt): Likewise.
25806 (xor<mode>3_iwmmxt): Likewise.
25807 (add<mode>3_iwmmxt): Likewise.
25808 (ssaddv8qi3): Likewise.
25809 (ssaddv4hi3): Likewise.
25810 (ssaddv2si3): Likewise.
25811 (usaddv8qi3): Likewise.
25812 (usaddv4hi3): Likewise.
25813 (usaddv2si3): Likewise.
25814 (sub<mode>3_iwmmxt): Likewise.
25815 (sssubv8qi3): Likewise.
25816 (sssubv4hi3): Likewise.
25817 (sssubv2si3): Likewise.
25818 (ussubv8qi3): Likewise.
25819 (ussubv4hi3): Likewise.
25820 (ussubv2si3): Likewise.
25821 (mulv4hi3_iwmmxt): Likewise.
25822 (smulv4hi3_highpart): Likewise.
25823 (umulv4hi3_highpart): Likewise.
25824 (iwmmxt_wmacs): Likewise.
25825 (iwmmxt_wmacsz): Likewise.
25826 (iwmmxt_wmacu): Likewise.
25827 (iwmmxt_wmacuz): Likewise.
25828 (iwmmxt_clrdi): Likewise.
25829 (iwmmxt_clrv8qi): Likewise.
25830 (iwmmxt_clr4hi): Likewise.
25831 (iwmmxt_clr2si): Likewise.
25832 (iwmmxt_uavgrndv8qi3): Likewise.
25833 (iwmmxt_uavgrndv4hi3): Likewise.
25834 (iwmmxt_uavgv8qi3): Likewise.
25835 (iwmmxt_uavgv4hi3): Likewise.
25836 (iwmmxt_tinsrb): Likewise.
25837 (iwmmxt_tinsrh): Likewise.
25838 (iwmmxt_tinsrw): Likewise.
25839 (iwmmxt_textrmub): Likewise.
25840 (iwmmxt_textrmsb): Likewise.
25841 (iwmmxt_textrmuh): Likewise.
25842 (iwmmxt_textrmsh): Likewise.
25843 (iwmmxt_textrmw): Likewise.
25844 (iwmxxt_wshufh): Likewise.
25845 (eqv8qi3): Likewise.
25846 (eqv4hi3): Likewise.
25847 (eqv2si3): Likewise.
25848 (gtuv8qi3): Likewise.
25849 (gtuv4hi3): Likewise.
25850 (gtuv2si3): Likewise.
25851 (gtv8qi3): Likewise.
25852 (gtv4hi3): Likewise.
25853 (gtv2si3): Likewise.
25854 (smax<mode>3_iwmmxt): Likewise.
25855 (umax<mode>3_iwmmxt): Likewise.
25856 (smin<mode>3_iwmmxt): Likewise.
25857 (umin<mode>3_iwmmxt): Likewise.
25858 (iwmmxt_wpackhss): Likewise.
25859 (iwmmxt_wpackwss): Likewise.
25860 (iwmmxt_wpackdss): Likewise.
25861 (iwmmxt_wpackhus): Likewise.
25862 (iwmmxt_wpackwus): Likewise.
25863 (iwmmxt_wpackdus): Likewise.
25864 (iwmmxt_wunpckihb): Likewise.
25865 (iwmmxt_wunpckihh): Likewise.
25866 (iwmmxt_wunpckihw): Likewise.
25867 (iwmmxt_wunpckilb): Likewise.
25868 (iwmmxt_wunpckilh): Likewise.
25869 (iwmmxt_wunpckilw): Likewise.
25870 (iwmmxt_wunpckehub): Likewise.
25871 (iwmmxt_wunpckehuh): Likewise.
25872 (iwmmxt_wunpckehuw): Likewise.
25873 (iwmmxt_wunpckehsb): Likewise.
25874 (iwmmxt_wunpckehsh): Likewise.
25875 (iwmmxt_wunpckehsw): Likewise.
25876 (iwmmxt_wunpckelub): Likewise.
25877 (iwmmxt_wunpckeluh): Likewise.
25878 (iwmmxt_wunpckeluw): Likewise.
25879 (iwmmxt_wunpckelsb): Likewise.
25880 (iwmmxt_wunpckelsh): Likewise.
25881 (iwmmxt_wunpckelsw): Likewise.
25882 (ror<mode>3): Likewise.
25883 (ashr<mode>3_iwmmxt): Likewise.
25884 (lshr<mode>3_iwmmxt): Likewise.
25885 (ashl<mode>3_iwmmxt): Likewise.
25886 (ror<mode>3_di): Likewise.
25887 (ashr<mode>3_di): Likewise.
25888 (lshr<mode>3_di): Likewise.
25889 (ashl<mode>3_di): Likewise.
25890 (iwmmxt_wmadds): Likewise.
25891 (iwmmxt_wmaddu): Likewise.
25892 (iwmmxt_tmia): Likewise.
25893 (iwmmxt_tmiaph): Likewise.
25894 (iwmmxt_tmiabb): Likewise.
25895 (iwmmxt_tmiatb): Likewise.
25896 (iwmmxt_tmiabt): Likewise.
25897 (iwmmxt_tmiatt): Likewise.
25898 (iwmmxt_tmovmskb): Likewise.
25899 (iwmmxt_tmovmskh): Likewise.
25900 (iwmmxt_tmovmskw): Likewise.
25901 (iwmmxt_waccb): Likewise.
25902 (iwmmxt_wacch): Likewise.
25903 (iwmmxt_waccw): Likewise.
25904 (iwmmxt_waligni): Likewise.
25905 (iwmmxt_walignr): Likewise.
25906 (iwmmxt_walignr0): Likewise.
25907 (iwmmxt_walignr1): Likewise.
25908 (iwmmxt_walignr2): Likewise.
25909 (iwmmxt_walignr3): Likewise.
25910 (iwmmxt_wsadb): Likewise.
25911 (iwmmxt_wsadh): Likewise.
25912 (iwmmxt_wsadbz): Likewise.
25913 (iwmmxt_wsadhz): Likewise.
25914 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25915 (iwmmxt_wabsdiffb): Likewise.
25916 (iwmmxt_wabsdiffh): Likewise.
25917 (iwmmxt_wabsdiffw): Likewise.
25918 (iwmmxt_waddsubhx): Likewise
25919 (iwmmxt_wsubaddhx): Likewise.
25920 (addc<mode>3): Likewise.
25921 (iwmmxt_avg4): Likewise.
25922 (iwmmxt_avg4r): Likewise.
25923 (iwmmxt_wmaddsx): Likewise.
25924 (iwmmxt_wmaddux): Likewise.
25925 (iwmmxt_wmaddsn): Likewise.
25926 (iwmmxt_wmaddun): Likewise.
25927 (iwmmxt_wmulwsm): Likewise.
25928 (iwmmxt_wmulwum): Likewise.
25929 (iwmmxt_wmulsmr): Likewise.
25930 (iwmmxt_wmulumr): Likewise.
25931 (iwmmxt_wmulwsmr): Likewise.
25932 (iwmmxt_wmulwumr): Likewise.
25933 (iwmmxt_wmulwl): Likewise.
25934 (iwmmxt_wqmulm): Likewise.
25935 (iwmmxt_wqmulwm): Likewise.
25936 (iwmmxt_wqmulmr): Likewise.
25937 (iwmmxt_wqmulwmr): Likewise.
25938 (iwmmxt_waddbhusm): Likewise.
25939 (iwmmxt_waddbhusl): Likewise.
25940 (iwmmxt_wqmiabb): Likewise.
25941 (iwmmxt_wqmiabt): Likewise.
25942 (iwmmxt_wqmiatb): Likewise.
25943 (iwmmxt_wqmiatt): Likewise.
25944 (iwmmxt_wqmiabbn): Likewise.
25945 (iwmmxt_wqmiabtn): Likewise.
25946 (iwmmxt_wqmiatbn): Likewise.
25947 (iwmmxt_wqmiattn): Likewise.
25948 (iwmmxt_wmiabb): Likewise.
25949 (iwmmxt_wmiabt): Likewise.
25950 (iwmmxt_wmiatb): Likewise.
25951 (iwmmxt_wmiatt): Likewise.
25952 (iwmmxt_wmiabbn): Likewise.
25953 (iwmmxt_wmiabtn): Likewise.
25954 (iwmmxt_wmiatbn): Likewise.
25955 (iwmmxt_wmiattn): Likewise.
25956 (iwmmxt_wmiawbb): Likewise.
25957 (iwmmxt_wmiawbt): Likewise.
25958 (iwmmxt_wmiawtb): Likewise.
25959 (iwmmxt_wmiawtt): Likewise.
25960 (iwmmxt_wmiawbbn): Likewise.
25961 (iwmmxt_wmiawbtn): Likewise.
25962 (iwmmxt_wmiawtbn): Likewise.
25963 (iwmmxt_wmiawttn): Likewise.
25964 (iwmmxt_wmerge): Likewise.
25965 (iwmmxt_tandc<mode>3): Likewise.
25966 (iwmmxt_torc<mode>3): Likewise.
25967 (iwmmxt_torvsc<mode>3): Likewise.
25968 (iwmmxt_textrc<mode>3): Likewise.
25969 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25970 (wmmxt_pack): Likewise.
25971 (wmmxt_mult_c1): Likewise.
25972 (wmmxt_mult_c2): Likewise.
25973 (wmmxt_alu_c1): Likewise.
25974 (wmmxt_alu_c2): Likewise.
25975 (wmmxt_alu_c3): Likewise.
25976 (wmmxt_transfer_c1): Likewise.
25977 (wmmxt_transfer_c2): Likewise.
25978 (wmmxt_transfer_c3): Likewise.
25979 (marvell_f_iwmmxt_wstr): Likewise.
25980 (marvell_f_iwmmxt_wldr): Likewise.
25981
25982 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25983
25984 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25985
25986 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25987
25988 Revert:
25989 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25990 * lra-constraints.c (need_for_split_p): Check call used hard regs
25991 living through calls.
25992
25993 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25994 call used regs for call insn.
25995
25996 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25997
25998 PR target/57736
25999 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
26000 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
26001
26002 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26003
26004 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
26005
26006 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
26007
26008 * lra-constraints.c (need_for_split_p): Check call used hard regs
26009 living through calls.
26010
26011 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
26012
26013 PR target/57744
26014 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
26015 to tie with any other modes. Eliminate Altivec vector mode tests,
26016 since these are a subset of ALTIVEC or VSX vector modes. Simplify
26017 code, to return 0 if testing MODE2 for a condition, if we've
26018 already tested MODE1 for the same condition.
26019
26020 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26021
26022 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
26023 layout.
26024
26025 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26026
26027 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
26028 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
26029
26030 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26031
26032 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
26033 Define.
26034 (aarch64_symbolic_constant_p): Remove.
26035 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
26036 static. Fix line length and white space.
26037 (aarch64_symbolic_constant_p): Remove.
26038 * config/aarch64/predicates.md (aarch64_valid_symref):
26039 Use aarch64_classify_symbol_expression.
26040
26041 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26042
26043 * config/arm/constraints.md (Ts): New constraint.
26044 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
26045 16-bit encodings.
26046 (compare_scc): Use "Ts" constraint for operand 0.
26047 (ior_scc_scc): Likewise.
26048 (and_scc_scc): Likewise.
26049 (and_scc_scc_nodom): Likewise.
26050 (ior_scc_scc_cmp): Likewise for operand 7.
26051 (and_scc_scc_cmp): Likewise.
26052 * config/arm/thumb2.md (thumb2_movsi_insn):
26053 Add alternatives for 16-bit encodings.
26054 (thumb2_movhi_insn): Likewise.
26055 (thumb2_movsicc_insn): Likewise.
26056 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
26057 (thumb2_negscc): Use "Ts" constraint.
26058 Move mvn instruction outside cond_exec block.
26059 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
26060 for 16-bit encodings.
26061
26062 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26063
26064 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
26065 encoding.
26066 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
26067 (mulsi3subsi): Likewise.
26068 (mulsidi3adddi): Likewise.
26069 (mulsidi3_v6): Likewise.
26070 (umulsidi3_v6): Likewise.
26071 (umulsidi3adddi_v6): Likewise.
26072 (smulsi3_highpart_v6): Likewise.
26073 (umulsi3_highpart_v6): Likewise.
26074 (mulhisi3tb): Likewise.
26075 (mulhisi3bt): Likewise.
26076 (mulhisi3tt): Likewise.
26077 (maddhisi4): Likewise.
26078 (maddhisi4tb): Likewise.
26079 (maddhisi4tt): Likewise.
26080 (maddhidi4): Likewise.
26081 (maddhidi4tb): Likewise.
26082 (maddhidi4tt): Likewise.
26083 (zeroextractsi_compare0_scratch): Likewise.
26084 (insv_zero): Likewise.
26085 (insv_t2): Likewise.
26086 (anddi_notzesidi_di): Likewise.
26087 (anddi_notsesidi_di): Likewise.
26088 (andsi_notsi_si): Likewise.
26089 (iordi_zesidi_di): Likewise.
26090 (xordi_zesidi_di): Likewise.
26091 (andsi_iorsi3_notsi): Likewise.
26092 (smax_0): Likewise.
26093 (smax_m1): Likewise.
26094 (smin_0): Likewise.
26095 (not_shiftsi): Likewise.
26096 (unaligned_loadsi): Likewise.
26097 (unaligned_loadhis): Likewise.
26098 (unaligned_loadhiu): Likewise.
26099 (unaligned_storesi): Likewise.
26100 (unaligned_storehi): Likewise.
26101 (extv_reg): Likewise.
26102 (extzv_t2): Likewise.
26103 (divsi3): Likewise.
26104 (udivsi3): Likewise.
26105 (arm_zero_extendhisi2addsi): Likewise.
26106 (arm_zero_extendqisi2addsi): Likewise.
26107 (compareqi_eq0): Likewise.
26108 (arm_extendhisi2_v6): Likewise.
26109 (arm_extendqisi2addsi): Likewise.
26110 (arm_movt): Likewise.
26111 (thumb2_ldrd): Likewise.
26112 (thumb2_ldrd_base): Likewise.
26113 (thumb2_ldrd_base_neg): Likewise.
26114 (thumb2_strd): Likewise.
26115 (thumb2_strd_base): Likewise.
26116 (thumb2_strd_base_neg): Likewise.
26117 (arm_negsi2): Add alternative for 16-bit encoding.
26118 (arm_one_cmplsi2): Likewise.
26119
26120 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26121
26122 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
26123 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
26124 (movdfcc): Likewise.
26125 * config/arm/vfp.md (*thumb2_movsf_vfp):
26126 Disable predication for arm_restrict_it.
26127 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
26128 (*thumb2_movdfcc_vfp): Likewise.
26129 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
26130 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
26131 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
26132 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
26133 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
26134 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
26135 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
26136 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
26137 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
26138 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
26139 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
26140 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
26141 Disable predication for arm_restrict_it.
26142
26143 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
26144
26145 * config/i386/bmiintrin.h (_bextr_u32): New.
26146 (_bextr_u64): Ditto.
26147
26148 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
26149
26150 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26151 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26152 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26153 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26154 * config/mips/n32-elf.h: ...this new file.
26155
26156 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
26157
26158 PR target/57224
26159 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26160 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26161
26162 2013-06-27 Catherine Moore <clm@codesourcery.com>
26163
26164 * config/mips/mips-tables.opt: Regenerate.
26165 * config/mips/mips-cpus.def: Add m14ke and m14kec.
26166 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26167 * doc/invoke.texi: Add -m14kc.
26168
26169 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26170
26171 PR target/57623
26172 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26173 constraints of operand 1 and 2.
26174
26175 PR target/57623
26176 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26177 to match RTL canonicalization. Swap predicates and
26178 constraints of operand 1 and 2.
26179
26180 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
26181
26182 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26183 Process OP_INOUT regs for splitting too.
26184
26185 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26186
26187 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26188 decl before the loop, initialize to NULL.
26189 (vectorizable_load): Initialize ptr_incr to NULL.
26190
26191 2013-06-27 Martin Jambor <mjambor@suse.cz>
26192
26193 PR lto/57208
26194 * ipa-ref.h (ipa_maybe_record_reference): Declare.
26195 * ipa-ref.c (ipa_maybe_record_reference): New function.
26196 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26197 * ipa-cp.c (create_specialized_node): Record potential references from
26198 aggvals.
26199 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26200
26201 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26202
26203 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26204 parameter 'mode' of type 'enum machine_mode mode'; change to pass
26205 'mode' to force_reg.
26206 (aarch64_add_offset): Update calls to aarch64_force_temporary.
26207 (aarch64_expand_mov_immediate): Likewise.
26208
26209 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26210
26211 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26212 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26213
26214 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26215
26216 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26217 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26218 (struct machine_function): Add tbegin_p.
26219 (s390_canonicalize_comparison): Fold CC mode compares to
26220 conditional jump if possible.
26221 (s390_emit_jump): Return the emitted jump.
26222 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26223 Handle CCRAWmode compares.
26224 (s390_option_override): Default to -mhtm if available.
26225 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26226 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26227 FPRs instead of df_regs_ever_live_p.
26228 (s390_optimize_nonescaping_tx): New function.
26229 (s390_init_frame_layout): Extend clobbered_regs array to cover
26230 FPRs as well.
26231 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26232 (s390_expand_tbegin): New function.
26233 (enum s390_builtin): New enum definition.
26234 (code_for_builtin): New array definition.
26235 (s390_init_builtins): New function.
26236 (s390_expand_builtin): New function.
26237 (TARGET_INIT_BUILTINS): Define.
26238 (TARGET_EXPAND_BUILTIN): Define.
26239 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26240 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26241 (s390_alc_comparison): Likewise.
26242 * config/s390/s390-modes.def: Add CCRAWmode.
26243 * config/s390/s390.h (processor_flags): Add PF_TX.
26244 (TARGET_CPU_HTM): Define macro.
26245 (TARGET_HTM): Define macro.
26246 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26247 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26248 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26249 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26250 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26251 (TBEGIN_MASK, TBEGINC_MASK): New constants.
26252 ("*cc_to_int"): Move up.
26253 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26254 constants other than 0.
26255 ("*ccraw_to_int"): New insn and splitter definition.
26256 ("tbegin", "tbegin_nofloat", "tbegin_retry")
26257 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26258 ("tx_assist"): New expander.
26259 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26260 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26261 * config/s390/s390.opt: Add -mhtm option.
26262 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26263 * config/s390/htmxlintrin.h: New file.
26264 * config/s390/htmintrin.h: New file.
26265 * config/s390/s390intrin.h: New file.
26266 * doc/extend.texi: Document htm builtins.
26267 * config.gcc: Add the new header files to extra_headers.
26268
26269 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
26270
26271 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26272 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26273
26274 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26275 Pat Haugen <pthaugen@us.ibm.com>
26276 Peter Bergner <bergner@vnet.ibm.com>
26277
26278 * config/rs6000/power8.md: New.
26279 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26280 setting for power8 entry.
26281 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26282 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26283 test for Power4/Power5 only.
26284 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26285 support.
26286 (force_new_group): Adjust comment.
26287 * config/rs6000/rs6000.md: Include power8.md.
26288
26289 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
26290
26291 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26292 * config/arm/arm-protos.h (arm_max_conditional_execute): New
26293 declaration.
26294 (tune_params): Update comment.
26295 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26296 (arm_max_conditional_execute): New function.
26297 (thumb2_final_prescan_insn): Use max_insn_skipped and
26298 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26299
26300 2013-06-25 Jakub Jelinek <jakub@redhat.com>
26301
26302 PR tree-optimization/57705
26303 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26304 SSA_NAME step, provided that it is not defined inside the loop.
26305 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26306 (get_initial_def_for_induction): Handle SSA_NAME IV step.
26307
26308 2013-06-25 Martin Jambor <mjambor@suse.cz>
26309
26310 PR middle-end/57670
26311 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26312 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26313 calls in the dump.
26314 (ipa_note_param_call): Initialize member_ptr flag.
26315 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26316 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26317 (ipa_write_indirect_edge_info): Stream member_ptr flag.
26318 (ipa_read_indirect_edge_info): Likewise.
26319
26320 2013-06-25 Richard Biener <rguenther@suse.de>
26321
26322 PR middle-end/56977
26323 * passes.c (init_optimization_passes): Move pass_fold_builtins
26324 and pass_dce earlier with -Og.
26325
26326 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
26327
26328 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26329 <BIT_FIELD_REF>: Remove trailing TAB.
26330 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26331 remove blank line.
26332
26333 2013-06-24 Martin Jambor <mjambor@suse.cz>
26334
26335 PR tree-optimization/57358
26336 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26337 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26338 (ipa_analyze_params_uses): Generate pessimistic info when true.
26339
26340 2013-06-24 Martin Jambor <mjambor@suse.cz>
26341
26342 PR tree-optimization/57539
26343 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26344 global.inlined_to of the new node to it. All callers changed.
26345 * ipa-inline-transform.c (clone_inlined_nodes): New variable
26346 inlining_into, pass it to cgraph_clone_node.
26347 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26348 ipa_free_edge_args_substructures.
26349 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26350 rdesc linked list. Do not assert rdesc edges have inlined caller.
26351 Assert we have found an rdesc in the rdesc list.
26352
26353 2013-06-24 Richard Biener <rguenther@suse.de>
26354
26355 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26356 (pointer_set_lookup): Declare.
26357 (class pointer_map): New template class implementing a
26358 generic pointer to T map.
26359 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26360 pointer_map<T>::contains, pointer_map<T>::insert,
26361 pointer_map<T>::traverse): New functions.
26362 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26363 (pointer_set_lookup): New function.
26364 (pointer_set_contains): Use pointer_set_lookup.
26365 (pointer_set_insert): Likewise.
26366 (insert_aux): Remove.
26367 (struct pointer_map_t): Embed a pointer_set_t.
26368 (pointer_map_create): Adjust.
26369 (pointer_map_destroy): Likewise.
26370 (pointer_map_contains): Likewise.
26371 (pointer_map_insert): Likewise.
26372 (pointer_map_traverse): Likewise.
26373 * tree-streamer.h (struct streamer_tree_cache_d): Use a
26374 pointer_map<unsigned> instead of a pointer_map_t.
26375 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26376 (streamer_tree_cache_lookup): Likewise.
26377 (streamer_tree_cache_create): Likewise.
26378 (streamer_tree_cache_delete): Likewise.
26379 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26380 pointer_map<unsigned> instead of a pointer_map_t.
26381 (lto_init_tree_ref_encoder): Adjust.
26382 (lto_destroy_tree_ref_encoder): Likewise.
26383 * lto-section-out.c (lto_output_decl_index): Likewise.
26384 (lto_record_function_out_decl_state): Likewise.
26385 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26386
26387 2013-06-24 Richard Biener <rguenther@suse.de>
26388
26389 PR tree-optimization/57488
26390 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26391
26392 2013-06-24 Alan Modra <amodra@gmail.com>
26393
26394 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26395 (gen_easy_altivec_constant): Likewise.
26396 * config/rs6000/predicates.md (easy_vector_constant_add_self,
26397 easy_vector_constant_msb): Likewise.
26398
26399 2013-06-23 Jakub Jelinek <jakub@redhat.com>
26400
26401 PR target/57688
26402 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26403 add missing return true.
26404
26405 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
26406
26407 PR target/52483
26408 * config/sh/predicates.md (general_extend_operand): Invoke
26409 general_movsrc_operand for memory operands.
26410 (general_movsrc_operand): Allow reg+reg addressing, do not use
26411 general_operand for memory operands.
26412
26413 2013-06-23 Sriraman Tallam <tmsriram@google.com>
26414
26415 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
26416 when current target options does not apply.
26417 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26418 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26419 * config/i386/bmiintrin.h: Pass appropriate target
26420 attributes to header.
26421 * config/i386/mmintrin.h: Ditto.
26422 * config/i386/nmmintrin.h: Ditto.
26423 * config/i386/avx2intrin.h: Ditto.
26424 * config/i386/fxsrintrin.h: Ditto.
26425 * config/i386/tbmintrin.h: Ditto.
26426 * config/i386/xsaveintrin.h: Ditto.
26427 * config/i386/f16cintrin.h: Ditto.
26428 * config/i386/xtestintrin.h: Ditto.
26429 * config/i386/xsaveoptintrin.h: Ditto.
26430 * config/i386/bmi2intrin.h: Ditto.
26431 * config/i386/lzcntintrin.h: Ditto.
26432 * config/i386/smmintrin.h: Ditto.
26433 * config/i386/wmmintrin.h: Ditto.
26434 * config/i386/x86intrin.h: Remove all header include guards.
26435 * config/i386/prfchwintrin.h: Ditto.
26436 * config/i386/pmmintrin.h: Ditto.
26437 * config/i386/tmmintrin.h: Ditto.
26438 * config/i386/xmmintrin.h: Ditto.
26439 * config/i386/popcntintrin.h: Ditto.
26440 * config/i386/rdseedintrin.h: Ditto.
26441 * config/i386/ammintrin.h: Ditto.
26442 * config/i386/emmintrin.h: Ditto.
26443 * config/i386/immintrin.h: Remove all header include guards.
26444 * config/i386/fma4intrin.h: Ditto.
26445 * config/i386/lwpintrin.h: Ditto.
26446 * config/i386/xopintrin.h: Ditto.
26447 * config/i386/ia32intrin.h: Ditto.
26448 * config/i386/avxintrin.h: Ditto.
26449 * config/i386/rtmintrin.h: Ditto.
26450 * config/i386/fmaintrin.h: Ditto.
26451 * config/i386/mm3dnow.h: Ditto.
26452
26453 2013-06-22 Sriraman Tallam <tmsriram@google.com>
26454
26455 * common/config/i386/i386-common.c: Handle LZCNT.
26456
26457 2013-06-22 Andi Kleen <ak@linux.intel.com>
26458
26459 * doc/extend.texi: Use __atomic_store_n instead of
26460 __atomic_store in HLE example.
26461
26462 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
26463
26464 * config/sh/sh.c: Remove <cstdlib> workaround.
26465
26466 2013-06-21 Andi Kleen <ak@linux.intel.com>
26467
26468 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
26469
26470 2013-06-21 Andi Kleen <ak@linux.intel.com>
26471
26472 * doc/extend.texi: Document that __atomic_clear and
26473 __atomic_test_and_set should only be used with bool.
26474
26475 2013-06-20 Jan Hubicka <jh@suse.cz>
26476
26477 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26478 types_same_for_odr.
26479 * tree.c (decls_same_for_odr): New function.
26480 (same_for_edr): New function.
26481 (types_same_for_odr): New function.
26482 (get_binfo_at_offset): Use it.
26483 * tree.h (types_same_for_odr): Declare.
26484
26485 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
26486 Jason Merrill <jason@redhat.com>
26487
26488 * system.h: Include <cstdlib> as well as <stdlib.h>.
26489
26490 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
26491
26492 PR target/57655
26493 * config/i386/i386.c (construct_container): Report error if
26494 long double is used with disabled x87 float returns.
26495
26496 2013-06-20 Jan Hubicka <jh@suse.cz>
26497
26498 * lto-cgraph.c (input_symtab): Do not set cgraph state.
26499
26500 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
26501
26502 PR rtl-optimization/57425
26503 PR rtl-optimization/57569
26504 * alias.c (write_dependence_p): Remove parameters mem_mode and
26505 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
26506 Changed all callers.
26507 (canon_anti_dependence): Get comments and semantics in sync.
26508 Add parameter mem_canonicalized. Changed all callers.
26509 * rtl.h (canon_anti_dependence): Update prototype.
26510
26511 2013-06-20 Richard Biener <rguenther@suse.de>
26512
26513 * data-streamer-in.c (streamer_read_uhwi): Optimize single
26514 byte case, inline streamer_read_uchar and defer section
26515 overrun check.
26516
26517 2013-06-20 Richard Biener <rguenther@suse.de>
26518
26519 PR tree-optimization/57584
26520 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26521 SSA names into the expanded expression that take part in
26522 abnormal coalescing.
26523
26524 2013-06-19 Sharad Singhai <singhai@google.com>
26525
26526 * gcov.c (print_usage): Handle new option.
26527 (process_args): Ditto.
26528 (get_gcov_intermediate_filename): New function.
26529 (output_intermediate_file): New function.
26530 (output_gcov_file): New function
26531 (generate_results): Handle new option.
26532 (release_function): Relase demangled name.
26533 (read_graph_file): Handle demangled name.
26534 (output_lines): Ditto.
26535 * doc/gcov.texi: Document gcov intermediate format.
26536
26537 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
26538
26539 PR bootstrap/57604
26540 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26541 (lra_emit_add): Use the functions. Add comment about Y as an
26542 address segment.
26543
26544 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
26545
26546 PR driver/57652
26547 * collect2.c (collect_atexit): New.
26548 (collect_exit): Delete.
26549 (main): Register collect_atexit with atexit.
26550 (collect_wait): Change collect_exit to exit.
26551 (do_wait): Same.
26552 * collect2.h (collect_exit): Delete.
26553 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26554
26555 2013-06-19 Wei Mi <wmi@google.com>
26556
26557 PR rtl-optimization/57518
26558 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26559 if regno is used in paradoxical subreg.
26560 (update_equiv_regs): Check pdx_subregs[regno] before
26561 set a reg to be equivalent with a mem.
26562
26563 2013-06-19 Matthias Klose <doko@ubuntu.com>
26564
26565 PR driver/57651
26566 * file-find.h (find_a_file): Add a mode parameter.
26567 * file-find.c (find_a_file): Likewise.
26568 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26569 with X_OK for the executables.
26570 * collect2.c (main): Call find_a_file with X_OK.
26571
26572 2013-06-19 Steve Ellcey <sellcey@mips.com>
26573
26574 PR target/56942
26575 * config/mips/mips.md (casesi_internal_mips16_<mode>):
26576 Use NEXT_INSN instead of next_real_insn.
26577
26578 2013-06-19 Jan Hubicka <jh@suse.cz>
26579
26580 * cgraph.h (const_value_known_p): Replace by ...
26581 (ctor_for_folding): .. this one.
26582 * cgraphunit.c (process_function_and_variable_attributes): Use it.
26583 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26584 * expr.c (expand_expr_real_1): Likewise.
26585 (string_constant): Likewise.
26586 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26587 * ipa.c (process_references): Likewise.
26588 (symtab_remove_unreachable_nodes): Likewise.
26589 * ipa-inline-analysis.c (param_change_prob): Likewise.
26590 * gimple-fold.c (canonicalize_constructor_val): Likewise.
26591 (get_base_constructor): Likwise.
26592 * varpool.c (varpool_remove_node): Likewise.
26593 (varpool_remove_initializer): LIkewise.
26594 (dump_varpool_node): LIkwise.
26595 (const_value_known_p): Rewrite to ...
26596 (ctor_for_folding): ... this one.
26597
26598 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26599
26600 PR driver/57651
26601 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26602 PERSONALITY in $PATH derived prefixes.
26603
26604 2013-06-19 Jeff Law <law@redhat.com>
26605
26606 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26607 in comment.
26608
26609 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26610 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26611 booleans.
26612
26613 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26614
26615 * config/arm/vfp.md: Move VFP instruction classification documentation
26616 to ...
26617 * config/arm/arm.md: ... here. Update instruction classification
26618 documentation.
26619
26620 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26621
26622 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26623 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26624 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26625
26626 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26627
26628 PR target/57609
26629 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26630 with NEXT_INSN. Use tablejump_p to check for jump table data
26631 insns.
26632
26633 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26634
26635 PR c++/56544
26636 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26637 that now in C++ the value is correct per the C++ standards.
26638
26639 2013-06-19 Richard Biener <rguenther@suse.de>
26640
26641 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26642 for global context.
26643
26644 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26645
26646 Revert:
26647 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26648
26649 PR target/57609
26650 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26651 with next_active_insn.
26652
26653 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26654
26655 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26656 functions are inlined during failures to flag an error.
26657 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26658 in early inline pass.
26659
26660 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26661
26662 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26663 in comments.
26664
26665 2013-06-18 Julian Brown <julian@codesourcery.com>
26666
26667 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26668 Permit virtual register pre-reload if !strict.
26669 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26670 change.
26671 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26672 prototype.
26673 * config/arm/neon.md (movmisalign<mode>): Use
26674 neon_perm_struct_or_reg_operand instead of
26675 neon_struct_or_register_operand.
26676 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26677 neon_permissive_struct_operand instead of neon_struct_operand.
26678 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26679 neon_vector_mem_operand.
26680 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26681 neon_vector_mem_operand.
26682 (neon_permissive_struct_operand): New.
26683 (neon_struct_or_register_operand): Rename to...
26684 (neon_perm_struct_or_reg_operand): This. Adjust call to
26685 neon_vector_mem_operand.
26686
26687 2013-06-18 Richard Biener <rguenther@suse.de>
26688
26689 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26690 * lto-streamer.h: Include pointer-set.h.
26691 (struct lto_decl_slot): Remove.
26692 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26693 Remove next_index entry.
26694 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26695 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26696 (lto_init_tree_ref_encoder): Adjust.
26697 (lto_destroy_tree_ref_encoder): Likewise.
26698 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26699 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26700 (lto_output_decl_index): Adjust.
26701 (lto_new_out_decl_state): Likewise.
26702 (lto_record_function_out_decl_state): Likewise.
26703 * lto-streamer-out.c (copy_function): Likewise.
26704
26705 2013-06-18 Richard Biener <rguenther@suse.de>
26706
26707 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26708 * cgraphunit.c: Include cfgloop.h.
26709 (init_lowered_empty_function): Initialize the loop tree.
26710 (assemble_thunk): Insert new BBs into loops.
26711
26712 2013-06-18 Richard Biener <rguenther@suse.de>
26713
26714 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26715 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26716 the map from cache entry to cache index optional.
26717 (streamer_tree_cache_replace_tree): Adjust accordingly.
26718 (streamer_tree_cache_append): Likewise.
26719 (streamer_tree_cache_delete): Likewise.
26720 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26721 streamer cache map from cache entry to cache index.
26722 * lto-streamer-out.c (create_output_block): Adjust.
26723
26724 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26725
26726 * config/arm/arm.md (attribute "insn"): Move multiplication and
26727 division attributes to...
26728 (attribute "type"): ... here. Remove mult.
26729 (attribute "mul32"): New attribute.
26730 (attribute "mul64"): Add umaal.
26731 (*arm_mulsi3): Update attributes.
26732 (*arm_mulsi3_v6): Likewise.
26733 (*thumb_mulsi3): Likewise.
26734 (*thumb_mulsi3_v6): Likewise.
26735 (*mulsi3_compare0): Likewise.
26736 (*mulsi3_compare0_v6): Likewise.
26737 (*mulsi_compare0_scratch): Likewise.
26738 (*mulsi_compare0_scratch_v6): Likewise.
26739 (*mulsi3addsi): Likewise.
26740 (*mulsi3addsi_v6): Likewise.
26741 (*mulsi3addsi_compare0): Likewise.
26742 (*mulsi3addsi_compare0_v6): Likewise.
26743 (*mulsi3addsi_compare0_scratch): Likewise.
26744 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26745 (*mulsi3subsi): Likewise.
26746 (*mulsidi3adddi): Likewise.
26747 (*mulsi3addsi_v6): Likewise.
26748 (*mulsidi3adddi_v6): Likewise.
26749 (*mulsidi3_nov6): Likewise.
26750 (*mulsidi3_v6): Likewise.
26751 (*umulsidi3_nov6): Likewise.
26752 (*umulsidi3_v6): Likewise.
26753 (*umulsidi3adddi): Likewise.
26754 (*umulsidi3adddi_v6): Likewise.
26755 (*smulsi3_highpart_nov6): Likewise.
26756 (*smulsi3_highpart_v6): Likewise.
26757 (*umulsi3_highpart_nov6): Likewise.
26758 (*umulsi3_highpart_v6): Likewise.
26759 (mulhisi3): Likewise.
26760 (*mulhisi3tb): Likewise.
26761 (*mulhisi3bt): Likewise.
26762 (*mulhisi3tt): Likewise.
26763 (maddhisi4): Likewise.
26764 (*maddhisi4tb): Likewise.
26765 (*maddhisi4tt): Likewise.
26766 (maddhidi4): Likewise.
26767 (*maddhidi4tb): Likewise.
26768 (*maddhidi4tt): Likewise.
26769 (divsi3): Likewise.
26770 (udivsi3): Likewise.
26771 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26772 (thumb2_mulsi_short_compare0): Likewise.
26773 (thumb2_mulsi_short_compare0_scratch): Likewise.
26774 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26775 (1020mult2): Likewise.
26776 (1020mult3): Likewise.
26777 (1020mult4): Likewise.
26778 (1020mult5): Likewise.
26779 (1020mult6): Likewise.
26780 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26781 change.
26782 (cortex_a15_mult64): Likewise.
26783 (cortex_a15_sdiv): Likewise.
26784 (cortex_a15_udiv): Likewise.
26785 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26786 (mult2): Likewise.
26787 (mult3): Likewise.
26788 (mult4): Likewise.
26789 (mult5): Likewise.
26790 (mult6): Likewise.
26791 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26792 (pj4_ir_div): Likewise.
26793 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26794 (11_mult2): Likewise.
26795 (11_mult3): Likewise.
26796 (11_mult4): Likewise.
26797 (11_mult5): Likewise.
26798 (11_mult6): Likewise.
26799 (11_mult7): Likewise.
26800 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26801 (cortex_a8_mla): Likewise.
26802 (cortex_a8_mull): Likewise.
26803 (cortex_a8_smulwy): Likewise.
26804 (cortex_a8_smlald): Likewise.
26805 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26806 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26807 (cortex_r4_mul_3): Likewise.
26808 (cortex_r4_mla_4): Likewise.
26809 (cortex_r4_mla_3): Likewise.
26810 (cortex_r4_smlald): Likewise.
26811 (cortex_r4_mull): Likewise.
26812 (cortex_r4_sdiv): Likewise.
26813 (cortex_r4_udiv): Likewise.
26814 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26815 (cortex_a7_idiv): Likewise.
26816 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26817 (9_mult2): Likewise.
26818 (9_mult3): Likewise.
26819 (9_mult4): Likewise.
26820 (9_mult5): Likewise.
26821 (9_mult6): Likewise.
26822 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26823 (cortex_a53_sdiv): Likewise.
26824 (cortex_a53_udiv): Likewise.
26825 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26826 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26827 (mp626_mult2): Likewise.
26828 (mp626_mult3): Likewise.
26829 (mp626_mult4): Likewise.
26830 * config/arm/fa526.md (526_mult1): Update attribute change.
26831 (526_mult2): Likewise.
26832 * config/arm/arm-generic.md (mult): Update attribute change.
26833 (mult_ldsched_strongarm): Likewise.
26834 (mult_ldsched): Likewise.
26835 (multi_cycle): Likewise.
26836 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26837 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26838 (606te_mult2): Likewise.
26839 (606te_mult3): Likewise.
26840 (606te_mult4): Likewise.
26841 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26842 (cortex_a9_mac16): Likewise.
26843 (cortex_a9_multiply): Likewise.
26844 (cortex_a9_mac): Likewise.
26845 (cortex_a9_multiply_long): Likewise.
26846 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26847 (626te_mult2): Likewise.
26848 (626te_mult3): Likewise.
26849 (626te_mult4): Likewise.
26850
26851 2013-06-18 Richard Biener <rguenther@suse.de>
26852
26853 PR lto/57334
26854 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26855
26856 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26857
26858 PR target/57609
26859 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26860 with next_active_insn.
26861
26862 2013-06-18 Alan Modra <amodra@gmail.com>
26863
26864 * config/rs6000/rs6000.h (enum data_align): New.
26865 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26866 (DATA_ABI_ALIGNMENT): Define.
26867 (CONSTANT_ALIGNMENT): Correct comment.
26868 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26869 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26870
26871 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26872
26873 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26874 ATTRIBUTE_UNUSED marking.
26875
26876 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26877
26878 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26879 alternative and update.
26880 (aarch64_dup_lanedi): Delete.
26881 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26882 * config/aarch64/aarch64-simd-builtins.def: Update.
26883
26884 2013-06-17 Richard Biener <rguenther@suse.de>
26885
26886 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26887 (lto_input_scc): Declare.
26888 (lto_input_tree_1): Likewise.
26889 (struct lto_stats_d): Add num_tree_bodies_output and
26890 num_pickle_refs_output.
26891 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26892 (lto_read_tree_1): Split out from ...
26893 (lto_read_tree): ... this.
26894 (lto_input_scc): New function.
26895 (lto_input_tree_1): Split out from ...
26896 (lto_input_tree): ... this. Handle LTO_tree_scc.
26897 (lto_data_in_create): Create the streamer cache without hashes.
26898 * lto-streamer-out.c (create_output_block): Create the streamer
26899 cache with hashes when not doing WPA.
26900 (lto_write_tree_1): Split out from ...
26901 (lto_write_tree): ... this.
26902 (get_symbol_initial_value): New function.
26903 (lto_output_tree_1): Split out from ...
26904 (lto_output_tree): ... this. Write trees as series of SCCs
26905 using a DFS walk via DFS_write_tree.
26906 (struct sccs, struct scc_entry): New types.
26907 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26908 (DFS_write_tree_body): New function.
26909 (DFS_write_tree): Likewise.
26910 (hash_tree): Likewise.
26911 (scc_entry_compare): Likewise.
26912 (hash_scc): Likewise.
26913 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26914 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26915 TREE_CHAIN as regular reference.
26916 (streamer_read_integer_cst): Remove.
26917 (streamer_get_pickled_tree): Adjust.
26918 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26919 of DECL_EXTERNALs in BLOCK_VARS for now.
26920 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26921 reference.
26922 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26923 Add hash value argument and record that if hashes are recorded
26924 in the cache.
26925 (streamer_tree_cache_insert_1): Adjust.
26926 (streamer_tree_cache_insert): Likewise.
26927 (streamer_tree_cache_insert_at): Rename to ...
26928 (streamer_tree_cache_replace_tree): ... this and adjust.
26929 (streamer_tree_cache_append): Adjust.
26930 (record_common_node): Likewise.
26931 (streamer_tree_cache_create): Add argument whether to
26932 record hash values together with trees.
26933 (streamer_tree_cache_delete): Adjust.
26934 * tree-streamer.h (struct streamer_tree_cache_d): Add
26935 vector of hashes.
26936 (streamer_read_integer_cst): Remove.
26937 (streamer_tree_cache_insert): Adjust.
26938 (streamer_tree_cache_append): Likewise.
26939 (streamer_tree_cache_insert_at): Rename to ...
26940 (streamer_tree_cache_replace_tree): ... this and adjust.
26941 (streamer_tree_cache_create): Add argument whether to record hashes.
26942 (streamer_tree_cache_get): Rename to ...
26943 (streamer_tree_cache_get_tree): ... this.
26944 (streamer_tree_cache_get_hash): New function.
26945 * tree.c (cache_integer_cst): New function.
26946 * tree.h (cache_integer_cst): Declare.
26947 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26948 * lto-symtab.c (lto_varpool_replace_node): Only release
26949 DECL_INITIAL of non-prevailing decls.
26950 * varpool.c (varpool_remove_initializer): Do not release
26951 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26952
26953 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26954
26955 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26956 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26957 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26958 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26959 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26960 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26961 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26962 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26963 instead of TARGET_64BIT.
26964 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26965 Require ISA_HAS_<D>DIV.
26966
26967 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26968
26969 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26970 (mips*-*-linux*): Move default with_llsc setting to where other
26971 defaults are set.
26972 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26973 with_arch block.
26974 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26975 Likewise. Remove default with_tune setting. Move default float
26976 setting to its own block. Handle with_llsc in the same block as above.
26977
26978 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26979
26980 PR rtl-optimization/57425
26981 PR rtl-optimization/57569
26982 * alias.c (write_dependence_p): Add new parameters mem_mode,
26983 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26984 Changed all callers.
26985 (canon_anti_dependence): New function.
26986 * cse.c (check_dependence): Use canon_anti_dependence.
26987 * cselib.c (cselib_invalidate_mem): Likewise.
26988 * rtl.h (canon_anti_dependence): Declare.
26989
26990 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26991
26992 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26993 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26994 ".set mips3" for 64-bit targets.
26995
26996 2013-06-15 Dehao Chen <dehao@google.com>
26997
26998 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26999 * gimple-low.c (gimple_check_call_matching_types): Likewise.
27000 (gimple_check_call_args): Likewise.
27001 * value-prof.c (check_ic_target): Likewise.
27002 * ipa-inline.c (early_inliner): Likewise.
27003 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
27004 * cgraph.c (cgraph_create_edge_1): Likewise.
27005 (cgraph_make_edge_direct): Likewise.
27006
27007 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27008
27009 PR target/57615
27010 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
27011 rs6000_output_move_128bit to handle emitting quad memory
27012 operations. Set attribute length to 8 bytes.
27013
27014 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
27015
27016 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
27017 New pattern.
27018 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
27019 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
27020 (aarch64_<su>mlsl<mode>): Likewise.
27021
27022 2013-06-14 Mike Stump <mikestump@comcast.net>
27023
27024 * Makefile.in (TARGET_H): Add insn-codes.h.
27025
27026 2013-06-14 Alan Modra <amodra@gmail.com>
27027
27028 PR middle-end/57134
27029 PR middle-end/57586
27030 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
27031 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
27032 bitfield expansion when EXPAND_MEMORY.
27033 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
27034
27035 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27036
27037 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
27038 test for clearing quad memory on 32-bit later.
27039
27040 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
27041
27042 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
27043 (fold_negate_expr): Likewise.
27044 (fold_real_zero_addition_p): Handle vectors.
27045 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
27046
27047 2013-06-14 Alan Modra <amodra@gmail.com>
27048
27049 * varasm.c (force_const_mem): Revert 2013-06-07 change.
27050
27051 2013-06-13 Jan Hubicka <jh@suse.cz>
27052
27053 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27054 Local comdats are not externally visible.
27055 * symtab.c (dump_symtab_base): Dump externally visible.
27056 (verify_symtab_base): Verify back links in the symtab hash.
27057
27058 2013-06-13 Bin Cheng <bin.cheng@arm.com>
27059
27060 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
27061 CONVERT_EXPR as equal nodes.
27062
27063 2013-06-13 Bin Cheng <bin.cheng@arm.com>
27064
27065 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
27066
27067 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
27068
27069 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
27070 Generalize to complex and vector.
27071 * tree.c (build_all_ones_cst): New function.
27072 * tree.h (build_all_ones_cst): Declare it.
27073
27074 2013-06-13 Alan Modra <amodra@gmail.com>
27075
27076 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
27077 * config/rs6000/rs6000.md (signbittf2): New insn.
27078 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
27079 (abstf2_internal, cmptf_internal2): Likewise.
27080 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
27081
27082 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27083 Pat Haugen <pthaugen@us.ibm.com>
27084 Peter Bergner <bergner@vnet.ibm.com>
27085
27086 * config/rs6000/rs6000.c (emit_load_locked): Add support for
27087 power8 byte, half-word, and quad-word atomic instructions.
27088 (emit_store_conditional): Likewise.
27089 (rs6000_expand_atomic_compare_and_swap): Likewise.
27090 (rs6000_expand_atomic_op): Likewise.
27091
27092 * config/rs6000/sync.md (larx): Add new modes for power8.
27093 (stcx): Likewise.
27094 (AINT): New mode iterator to include TImode as well as normal
27095 integer modes on power8.
27096 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
27097 that VSX registers are not considered. Use AINT mode iterator
27098 instead of INT1 to allow inclusion of quad word atomic operations
27099 on power8.
27100 (load_locked<mode>): Likewise.
27101 (store_conditional<mode>): Likewise.
27102 (atomic_compare_and_swap<mode>): Likewise.
27103 (atomic_exchange<mode>): Likewise.
27104 (atomic_nand<mode>): Likewise.
27105 (atomic_fetch_<fetchop_name><mode>): Likewise.
27106 (atomic_nand_fetch<mode>): Likewise.
27107 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
27108 each type.
27109 (ATOMIC): On power8, add QImode, HImode modes.
27110 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
27111 modes that promote to SImode.
27112 (load_lockedti): Convert TImode arguments to PTImode, so that we
27113 get a guaranteed even/odd register pair.
27114 (load_lockedpti): Likewise.
27115 (store_conditionalti): Likewise.
27116 (store_conditionalpti): Likewise.
27117
27118 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
27119 atomic load/store instructions.
27120 (HSI): Likewise.
27121
27122 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
27123
27124 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
27125 loads.
27126 (insn_count): New attribute, with most cases extracted from...
27127 (length): ...here. Redefine most cases in terms of insn_count.
27128 (single_insn): Delete.
27129 (can_delay): Use insn_count to check for single instructions.
27130 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
27131 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
27132 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
27133 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
27134 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
27135 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
27136 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
27137 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
27138 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
27139 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
27140 rather than "length".
27141 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
27142 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
27143 Use "insn_count" rather than "length".
27144 * config/mips/mips-dsp.md
27145 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27146 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27147 length attributes.
27148
27149 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
27150
27151 PR tree-optimization/57361
27152 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27153
27154 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
27155
27156 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27157 to split.
27158 (aarch64_simd_combine<mode>): New instruction expansion.
27159 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27160 function prototype.
27161 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27162 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27163
27164 2013-06-12 Jan Hubicka <jh@suse.cz>
27165
27166 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27167 decl has when in streaming stage.
27168 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27169 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27170
27171 2013-06-12 Roland Stigge <stigge@antcom.de>
27172
27173 PR target/57578
27174 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27175
27176 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27177
27178 PR tree-optimization/57537
27179 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27180 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27181
27182 2013-06-12 Richard Biener <rguenther@suse.de>
27183
27184 * data-streamer.h (streamer_write_char_stream): CSE
27185 obs->current_pointer.
27186 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27187 streamer_write_char_stream manually and optimize the resulting loop.
27188 (streamer_write_hwi_stream): Likewise.
27189
27190 2013-06-12 Jan Hubicka <jh@suse.cz>
27191
27192 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27193 * cgraph.h (varpool_create_empty_node): Declare.
27194 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27195 duplicated nodes.
27196 * symtab.c (symtab_unregister_node): Be lax about missin entries
27197 in node hash.
27198 (symtab_get_node): Update comment.
27199 * varpool.c (varpool_create_empty_node): Break out from ...
27200 (varpool_node_for_decl): ... here.
27201 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27202
27203 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
27204
27205 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27206 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27207 part. Use straight-line flow at the end.
27208 <COMPONENT_REF>: Remove superfluous else.
27209 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27210
27211 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27212
27213 PR target/56564
27214 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27215 target hook even for !TREE_PUBLIC decls. If no resolution info
27216 is available, return false for common and external decls.
27217
27218 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27219
27220 * config/rl78/constraints.md (U): New constraint.
27221 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27222 valloc attribute.
27223
27224 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27225
27226 PR target/57589
27227 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27228 to allow returning address to AT_PLATFORM name.
27229
27230 2013-06-11 Jan Hubicka <jh@suse.cz>
27231
27232 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27233 * cgraph.h (symtab_node_base): Add weakref flag.
27234 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27235 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27236 (output_weakrefs): Use weakref flag.
27237 * fold-const.c (simple_operand_p): Handle WEAK.
27238 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27239 * ipa.c (varpool_externally_visible_p): Drop weakref.
27240 (function_and_variable_visibility): Update comment; fix weakref
27241 sanity checks; do not clear DECL_WEAK on them.
27242 * lto-cgraph.c (lto_output_node): update.
27243 (lto_output_varpool_node): Update.
27244 (input_overwrite_node): Update.
27245 (input_node): Update.
27246 (input_varpool_node): Update.
27247 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27248 (lto_symtab_merge_symbols): Add sanity check.
27249 (lto_symtab_prevailing_decl): Do not special case weakrefs.
27250 * passes.c (rest_of_decl_compilation): Set static flag, too.
27251 * symtab.c (dump_symtab_base): Dump weakref.
27252 (verify_symtab_base): Sanity check weakrefs.
27253 (symtab_make_decl_local): Remove duplicated code.
27254 (symtab_alias_ultimate_target): Simplify.
27255 * varpool.c (varpool_create_variable_alias): Set weakref flag.
27256
27257 2013-06-11 Tom de Vries <tom@codesourcery.com>
27258
27259 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
27260 sequence_vect == NULL.
27261
27262 2013-06-11 DJ Delorie <dj@redhat.com>
27263
27264 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27265 (rl78_unwind_word_mode): New.
27266
27267 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27268
27269 * final.c (debug_prefix_maps): Make static.
27270
27271 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27272
27273 * function.c (initial_trampoline): Remove stray copy.
27274
27275 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
27276
27277 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27278
27279 2013-06-11 Martin Jambor <mjambor@suse.cz>
27280
27281 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27282 within bounds at the beginning of the function.
27283
27284 2013-06-11 Alan Modra <amodra@gmail.com>
27285
27286 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
27287 reporting.
27288 (get_named_section): Don't NULL !DECL_P decl.
27289
27290 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
27291
27292 * doc/invoke.texi (core-avx2): Document.
27293 (slm): Likewise.
27294 (atom): Updated with MOVBE.
27295
27296 2013-06-11 Richard Biener <rguenther@suse.de>
27297
27298 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27299
27300 2013-06-11 Anton Blanchard <anton@samba.org>
27301
27302 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27303 correct shift value in little-endian mode.
27304
27305 2013-06-11 Jakub Jelinek <jakub@redhat.com>
27306
27307 PR target/56564
27308 * varasm.c (get_variable_align): Move #endif to the right place.
27309
27310 2013-06-10 Cary Coutant <ccoutant@google.com>
27311
27312 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27313 for hash so that hash table traversal order is deterministic.
27314
27315 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27316 Pat Haugen <pthaugen@us.ibm.com>
27317 Peter Bergner <bergner@vnet.ibm.com>
27318
27319 * config/rs6000/vector.md (GPR move splitter): Do not split moves
27320 of vectors in GPRS if they are direct moves or quad word load or
27321 store moves.
27322
27323 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27324 declaration.
27325 (direct_move_p): Likewise.
27326 (quad_load_store_p): Likewise.
27327
27328 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27329 classes into bins based on the physical register type.
27330 (reg_class_to_reg_type): Likewise.
27331 (IS_STD_REG_TYPE): Likewise.
27332 (IS_FP_VECT_REG_TYPE): Likewise.
27333 (reload_fpr_gpr): Arrays to determine what insn to use if we can
27334 use direct move instructions.
27335 (reload_gpr_vsx): Likewise.
27336 (reload_vsx_gpr): Likewise.
27337 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27338 information that is a simplification of register classes. Also
27339 precalculate direct move reload helpers.
27340 (direct_move_p): New function to return true if the operation can
27341 be done as a direct move instruciton.
27342 (quad_load_store_p): New function to return true if the operation
27343 is a quad memory operation.
27344 (rs6000_legitimize_address): If quad memory, only allow register
27345 indirect for TImode addresses.
27346 (rs6000_legitimate_address_p): Likewise.
27347 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27348 (rs6000_reload_register_type): Likewise.
27349 (register_to_reg_type): Return register type.
27350 (rs6000_secondary_reload_simple_move): New helper function for
27351 secondary reload and secondary memory needed to identify anything
27352 that is a simple move, and does not need reloading.
27353 (rs6000_secondary_reload_direct_move): New helper function for
27354 secondary reload to identify cases that can be done with several
27355 instructions via the direct move instructions.
27356 (rs6000_secondary_reload_move): New helper function for secondary
27357 reload to identify moves between register types that can be done.
27358 (rs6000_secondary_reload): Add support for quad memory operations
27359 and for direct move.
27360 (rs6000_secondary_memory_needed): Likewise.
27361 (rs6000_debug_secondary_memory_needed): Change argument names.
27362 (rs6000_output_move_128bit): New function to return the move to
27363 use for 128-bit moves, including knowing about the various
27364 limitations of quad memory operations.
27365
27366 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27367 memory operations. call rs6000_output_move_128bit for the actual
27368 instruciton(s) to generate.
27369 (vsx_movti_64bit): Likewise.
27370
27371 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27372 (UNSPEC_P8V_MTVSRWZ): Likewise.
27373 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27374 (UNSPEC_P8V_MTVSRD): Likewise.
27375 (UNSPEC_P8V_XXPERMDI): Likewise.
27376 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27377 (UNSPEC_FUSION_GPR): Likewise.
27378 (FMOVE128_GPR): New iterator for direct move.
27379 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27380 (f32_sv): Likewise.
27381 (f32_dm): Likewise.
27382 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27383 loads and direct move instructions.
27384 (zero_extendsidi2_lfiwzx): Likewise.
27385 (extendsidi2_lfiwax): Likewise.
27386 (extendsidi2_nocell): Likewise.
27387 (floatsi<mode>2_lfiwax): Likewise.
27388 (lfiwax): Likewise.
27389 (floatunssi<mode>2_lfiwzx): Likewise.
27390 (lfiwzx): Likewise.
27391 (fix_trunc<mode>_stfiwx): Likewise.
27392 (fixuns_trunc<mode>_stfiwx): Likewise.
27393 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27394 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27395 (parity<mode>2_cmpb): Set length/type attr.
27396 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27397 for 'mr.' to fast_compare.
27398 (bpermd_<mode>): Change type attr to popcnt.
27399 (p8_fmrgow_<mode>): New insns for power8 direct move support.
27400 (p8_mtvsrwz_1): Likewise.
27401 (p8_mtvsrwz_2): Likewise.
27402 (reload_fpr_from_gpr<mode>): Likewise.
27403 (p8_mtvsrd_1): Likewise.
27404 (p8_mtvsrd_2): Likewise.
27405 (p8_xxpermdi_<mode>): Likewise.
27406 (reload_vsx_from_gpr<mode>): Likewise.
27407 (reload_vsx_from_gprsf): Likewise.
27408 (p8_mfvsrd_3_<mode>): LIkewise.
27409 (reload_gpr_from_vsx<mode>): Likewise.
27410 (reload_gpr_from_vsxsf): Likewise.
27411 (p8_mfvsrd_4_disf): Likewise.
27412 (multi-word GPR splits): Do not split direct moves or quad memory
27413 operations.
27414
27415 2013-06-10 David Malcolm <dmalcolm@redhat.com>
27416
27417 * tree-into-ssa.c (interesting_blocks): Make static.
27418
27419 2013-06-10 Jakub Jelinek <jakub@redhat.com>
27420
27421 PR target/56564
27422 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27423 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27424 Use DATA_ABI_ALIGNMENT for that case instead if defined.
27425 (get_variable_align): New function.
27426 (get_variable_section, emit_bss, emit_common,
27427 assemble_variable_contents, place_block_symbol): Use
27428 get_variable_align instead of DECL_ALIGN.
27429 (assemble_noswitch_variable): Add align argument, use it
27430 instead of DECL_ALIGN.
27431 (assemble_variable): Adjust caller. Use get_variable_align
27432 instead of DECL_ALIGN.
27433 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27434 caller.
27435 (DATA_ABI_ALIGNMENT): Define.
27436 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27437 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
27438 opt is false, only return the psABI mandated alignment increase.
27439 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27440 (DATA_ABI_ALIGNMENT): ... this.
27441 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27442 (DATA_ABI_ALIGNMENT): ... this.
27443 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27444 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27445 (DATA_ABI_ALIGNMENT): ... this.
27446 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27447 * doc/tm.texi: Regenerated.
27448
27449 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
27450
27451 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27452 cmp_code to construct REG_EQUAL note.
27453
27454 2013-06-09 Jakub Jelinek <jakub@redhat.com>
27455
27456 PR target/57568
27457 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27458 that operands[2] doesn't overlap with operands[0].
27459
27460 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
27461 Jan Hubicka <jh@suse.cz>
27462
27463 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27464 hack to mark symbols as used.
27465
27466 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
27467
27468 PR rtl-optimization/57559
27469 * lra-constraints.c (process_alt_operands): Don't discourage
27470 memory with known offset for offsetable memory constraint.
27471 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27472
27473 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
27474
27475 * varasm.c (struct oc_local_state): Reorder fields.
27476 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27477 and adjust accordingly.
27478 (output_constructor): Reorder initialization code and adjust call to
27479 output_constructor_bitfield.
27480
27481 2013-06-07 Jan Hubicka <jh@suse.cz>
27482
27483 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27484
27485 2013-06-07 David Malcolm <dmalcolm@redhat.com>
27486
27487 * tree-object-size.c (unknown): Make const.
27488
27489 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27490
27491 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27492 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27493 for last alternative in the cpu_facility attribute.
27494
27495 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27496
27497 PR target/56315
27498 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27499 (xordi3): Change operand 2 constraint to arm_xordi_operand.
27500 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27501 * config/arm/constraints.md (Dg): New constraint.
27502 * config/arm/neon.md (xordi3_neon): Remove.
27503 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27504 * config/arm/predicates.md (arm_xordi_operand): New predicate.
27505
27506 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27507
27508 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27509 Clean up alternatives.
27510
27511 2013-06-07 Alan Modra <amodra@gmail.com>
27512
27513 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27514 va_list_gpr_size.
27515
27516 2013-06-07 Alan Modra <amodra@gmail.com>
27517
27518 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27519
27520 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27521
27522 * config/arm/constraints.md (Df): New constraint.
27523 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27524 Correct length attribute for last two alternatives.
27525
27526 2013-06-07 Alan Modra <amodra@gmail.com>
27527
27528 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27529 override user -mfp-in-toc.
27530 (offsettable_ok_by_alignment): Consider just the current access
27531 rather than the whole object, unless BLKmode. Handle
27532 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27533 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27534 for -mcmodel=medium.
27535 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27536 override user -mfp-in-toc or -msum-in-toc. Default to
27537 -mno-fp-in-toc for -mcmodel=medium.
27538
27539 2013-06-06 DJ Delorie <dj@redhat.com>
27540
27541 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27542 TARGET_VALID_POINTER_MODE.
27543
27544 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27545 Pat Haugen <pthaugen@us.ibm.com>
27546 Peter Bergner <bergner@vnet.ibm.com>
27547
27548 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27549 Document new power8 builtins.
27550
27551 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27552 condition code register, to allow 128-bit logical operations to be
27553 done in the VSX or GPR registers.
27554 (nor<mode>3): Use the canonical form for nor.
27555 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27556 vclz*, and vpopcnt* vector instructions.
27557 (nand<mode>3): Likewise.
27558 (orc<mode>3): Likewise.
27559 (clz<mode>2): LIkewise.
27560 (popcount<mode>2): Likewise.
27561
27562 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27563 that only the GPRs are recognized.
27564
27565 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27566 support for new power8 builtins.
27567
27568 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27569 builtin functions.
27570 (xscvdpspn): Likewise.
27571 (vclz): Likewise.
27572 (vclzb): Likewise.
27573 (vclzh): Likewise.
27574 (vclzw): Likewise.
27575 (vclzd): Likewise.
27576 (vpopcnt): Likewise.
27577 (vpopcntb): Likewise.
27578 (vpopcnth): Likewise.
27579 (vpopcntw): Likewise.
27580 (vpopcntd): Likewise.
27581 (vgbbd): Likewise.
27582 (vmrgew): Likewise.
27583 (vmrgow): Likewise.
27584 (eqv): Likewise.
27585 (eqv_v16qi3): Likewise.
27586 (eqv_v8hi3): Likewise.
27587 (eqv_v4si3): Likewise.
27588 (eqv_v2di3): Likewise.
27589 (eqv_v4sf3): Likewise.
27590 (eqv_v2df3): Likewise.
27591 (nand): Likewise.
27592 (nand_v16qi3): Likewise.
27593 (nand_v8hi3): Likewise.
27594 (nand_v4si3): Likewise.
27595 (nand_v2di3): Likewise.
27596 (nand_v4sf3): Likewise.
27597 (nand_v2df3): Likewise.
27598 (orc): Likewise.
27599 (orc_v16qi3): Likewise.
27600 (orc_v8hi3): Likewise.
27601 (orc_v4si3): Likewise.
27602 (orc_v2di3): Likewise.
27603 (orc_v4sf3): Likewise.
27604 (orc_v2df3): Likewise.
27605
27606 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27607 allow power8 quad mode in 64-bit.
27608 (rs6000_builtin_vectorized_function): Add support to vectorize
27609 ISA 2.07 count leading zeros, population count builtins.
27610 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27611 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27612 (builtin_function_type): Add vgbbd builtin function which takes an
27613 unsigned argument.
27614 (altivec_expand_vec_perm_const): Add support for new power8 merge
27615 instructions.
27616
27617 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27618 that does not include TImdoe for use with 32-bit.
27619 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27620 instructions.
27621 (UNSPEC_VSX_CVDPSPN): Likewise.
27622 (vsx_xscvdpspn): Likewise.
27623 (vsx_xscvspdpn): Likewise.
27624 (vsx_xscvdpspn_scalar): Likewise.
27625 (vsx_xscvspdpn_directmove): Likewise.
27626 (vsx_and<mode>3): Split logical operations into 32-bit and
27627 64-bit. Add support to do logical operations on TImode as well as
27628 VSX vector types. Allow logical operations to be done in either
27629 VSX registers or in general purpose registers in 64-bit mode. Add
27630 splitters if GPRs were used. For AND, add clobber of CCmode to
27631 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27632 encoding.
27633 (vsx_and<mode>3_32bit): Likewise.
27634 (vsx_and<mode>3_64bit): Likewise.
27635 (vsx_ior<mode>3): Likewise.
27636 (vsx_ior<mode>3_32bit): Likewise.
27637 (vsx_ior<mode>3_64bit): Likewise.
27638 (vsx_xor<mode>3): Likewise.
27639 (vsx_xor<mode>3_32bit): Likewise.
27640 (vsx_xor<mode>3_64bit): Likewise.
27641 (vsx_one_cmpl<mode>2): Likewise.
27642 (vsx_one_cmpl<mode>2_32bit): Likewise.
27643 (vsx_one_cmpl<mode>2_64bit): Likewise.
27644 (vsx_nor<mode>3): Likewise.
27645 (vsx_nor<mode>3_32bit): Likewise.
27646 (vsx_nor<mode>3_64bit): Likewise.
27647 (vsx_andc<mode>3): Likewise.
27648 (vsx_andc<mode>3_32bit): Likewise.
27649 (vsx_andc<mode>3_64bit): Likewise.
27650 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27651 and xxlorc instructions.
27652 (vsx_eqv<mode>3_64bit): Likewise.
27653 (vsx_nand<mode>3_32bit): Likewise.
27654 (vsx_nand<mode>3_64bit): Likewise.
27655 (vsx_orc<mode>3_32bit): Likewise.
27656 (vsx_orc<mode>3_64bit): Likewise.
27657
27658 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27659
27660 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27661 instruction.
27662 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27663 (p8_vmrgow): Likewise.
27664 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27665 GPRs to be split under VSX.
27666 (p8v_clz<mode>2): Add power8 count leading zero support.
27667 (p8v_popcount<mode>2): Add power8 population count support.
27668 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27669 support.
27670
27671 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27672 instruction.
27673
27674 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27675 builtin functions.
27676 (vec_nand): Likewise.
27677 (vec_vclz): Likewise.
27678 (vec_vclzb): Likewise.
27679 (vec_vclzd): Likewise.
27680 (vec_vclzh): Likewise.
27681 (vec_vclzw): Likewise.
27682 (vec_vgbbd): Likewise.
27683 (vec_vmrgew): Likewise.
27684 (vec_vmrgow): Likewise.
27685 (vec_vpopcnt): Likewise.
27686 (vec_vpopcntb): Likewise.
27687 (vec_vpopcntd): Likewise.
27688 (vec_vpopcnth): Likewise.
27689 (vec_vpopcntw): Likewise.
27690
27691 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27692
27693 PR rtl-optimization/57468
27694 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27695 spilled pseudos.
27696
27697 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27698
27699 PR rtl-optimization/57459
27700 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27701 type when setting live regs.
27702
27703 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27704
27705 * config/s390/s390.opt (mlra): New option.
27706 * config/s390/s390.c (s390_decompose_address): Check displacement
27707 for all registers for LRA.
27708 (s390_secondary_reload): Don't used secondary reloads for LRA.
27709 (s390_lra_p): New function.
27710 (TARGET_LRA_P): Define.
27711 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27712 of attribute cpu_facility to zarch for the last alternative.
27713 (*cmpmem_short): Ditto.
27714
27715 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27716
27717 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27718 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27719 (arm_expand_prologue): Likewise.
27720
27721 2013-06-06 Teresa Johnson <tejohnson@google.com>
27722
27723 PR c++/53743
27724 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27725 as this is now done by redirect_edge_and_branch_force.
27726 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27727 barriers, and fix interaction with splitting.
27728 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27729 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27730 reflect changes made in the routine.
27731 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27732 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27733 since this is called in cfglayout mode, and replace partition fixup
27734 with assert as that is now done by force_nonfallthru_and_redirect.
27735 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27736 already be marked with region crossing note.
27737 (insert_section_boundary_note): Make non-static, gate on flag
27738 has_bb_partition, rewrite to also check for multiple partitions.
27739 (rest_of_handle_reorder_blocks): Remove call to
27740 insert_section_boundary_note, now done later during free_cfg.
27741 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27742 * bb-reorder.h (insert_section_boundary_note): Declare.
27743 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27744 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27745 invoke insert_section_boundary_note.
27746 (try_redirect_by_replacing_jump): Remove unnecessary
27747 check for region crossing note.
27748 (fixup_partition_crossing): New function.
27749 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27750 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27751 in non-cfglayout mode.
27752 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27753 remove old code that tried to do this. Emit barrier correctly
27754 when we are in cfglayout mode.
27755 (last_bb_in_partition): New function.
27756 (rtl_split_edge): Correctly fixup partition boundaries.
27757 (commit_one_edge_insertion): Remove old code that tried to
27758 fixup region crossing edge since this is now handled in
27759 split_block, and set up insertion point correctly since
27760 block may now end in a jump.
27761 (verify_hot_cold_block_grouping): Guard against checking when not in
27762 linearized RTL mode.
27763 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27764 notes.
27765 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27766 rtl_verify_flow_info, so not called in cfglayout mode.
27767 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27768 (fixup_reorder_chain): Remove old code that attempted to fixup region
27769 crossing note as this is now handled in force_nonfallthru_and_redirect.
27770 (duplicate_insn_chain): Don't duplicate switch section notes.
27771 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27772 note.
27773 * basic-block.h (emit_barrier_after_bb): Declare.
27774
27775 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27776
27777 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27778 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27779 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27780
27781 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27782
27783 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27784 where appropriate.
27785 * config/arm/ldmstm.md: Regenerate.
27786
27787 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27788
27789 * config/arm/sync.md (atomic_loaddi_1):
27790 Disable predication for arm_restrict_it.
27791 (arm_load_exclusive<mode>): Likewise.
27792 (arm_load_exclusivesi): Likewise.
27793 (arm_load_exclusivedi): Likewise.
27794 (arm_load_acquire_exclusive<mode>): Likewise.
27795 (arm_load_acquire_exclusivesi): Likewise.
27796 (arm_load_acquire_exclusivedi): Likewise.
27797 (arm_store_exclusive<mode>): Likewise.
27798 (arm_store_exclusive<mode>): Likewise.
27799 (arm_store_release_exclusivedi): Likewise.
27800 (arm_store_release_exclusive<mode>): Likewise.
27801
27802 2013-06-06 Richard Biener <rguenther@suse.de>
27803
27804 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27805 after LTO_null.
27806 (lto_tag_is_tree_code_p): Adjust.
27807 (lto_tag_is_gimple_code_p): Likewise.
27808 (lto_gimple_code_to_tag): Likewise.
27809 (lto_tag_to_gimple_code): Likewise.
27810 (lto_tree_code_to_tag): Likewise.
27811 (lto_tag_to_tree_code): Likewise.
27812 * data-streamer.h (streamer_write_hwi_in_range): Use
27813 uhwi streaming to stream the normalized range.
27814 (streamer_read_hwi_in_range): Likewise.
27815
27816 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27817
27818 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27819 (predicable_short_it): Likewise.
27820 (predicated): Likewise.
27821 (enabled): Handle above.
27822 (define_cond_exec): Set predicated attribute to yes.
27823
27824 2013-06-05 Mike Stump <mikestump@comcast.net>
27825
27826 * gdbinit.in (__FUNCTION__): Add.
27827
27828 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27829
27830 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27831 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27832
27833 2013-06-05 Jan Hubicka <jh@suse.cz>
27834
27835 * varasm.c (mark_decl_referenced): Revert the removal until targets
27836 are fixed.
27837
27838 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27839
27840 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27841 instead of mark_decl_referenced.
27842
27843 2013-06-05 Jan Hubicka <jh@suse.cz>
27844
27845 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27846 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27847 and symtab_used_from_object_file_p.
27848 (cgraph_make_node_local_1): Clear forced_by_abi.
27849 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27850 * cgraph.h (symtab_node_base): Add forced_by_abi.
27851 (decide_is_variable_needed): Remove.
27852 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27853 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27854 (decide_is_symbol_needed): ... this one; handle symbols in general;
27855 always analyze virtuals; honnor forced_by_abi.
27856 (cgraph_finalize_function): Update.
27857 (varpool_finalize_decl): Update.
27858 (symbol_defined_and_needed): Remove.
27859 (analyze_functions): Update.
27860 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27861 output_refs, input_overwrite_node): Handle forced_by_abi.
27862 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27863 (address_taken_from_non_vtable_p): ... this one.
27864 (comdat_can_be_unshared_p_1): New function.
27865 (cgraph_comdat_can_be_unshared_p): Rename to ...
27866 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27867 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27868 (function_and_variable_visibility): Clear forced_by_abi as needed.
27869 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27870 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27871 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27872 * varpool.c (decide_is_variable_needed): Remove.
27873
27874 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27875
27876 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27877 (arm_option_override): Override arm_restrict_it where appropriate.
27878 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27879 * config/arm/arm.opt (mrestrict-it): New command-line option.
27880 * doc/invoke.texi: Document -mrestrict-it.
27881
27882 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27883
27884 * tsan.c (tsan_atomic_table): Make const.
27885
27886 2013-06-05 Richard Biener <rguenther@suse.de>
27887
27888 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27889 index associated with the tree we are supposed to replace.
27890 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27891 TREE_ASM_WRITTEN as zero for everything but SSA names.
27892
27893 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27894
27895 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27896
27897 2013-06-04 Jan Hubicka <jh@suse.cz>
27898
27899 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27900 (input_node, input_varpool_node): Handle correctly external same
27901 body aliases.
27902 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27903 nodes at ltrans stage.
27904
27905 2013-06-04 Jan Hubicka <jh@suse.cz>
27906
27907 * ipa-inline.c (update_caller_keys): Fix availability test.
27908 (update_callee_keys): Likewise.
27909 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27910 to follow ELF standard.
27911
27912 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27913
27914 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27915 (mips64r5900el-*-elf*): New configurations.
27916 * config/mips/mips-cpus.def (r5900): New processor.
27917 * config/mips/mips-tables.opt: Regenerate.
27918 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27919 (mips_issue_rate): Handle PROCESSOR_R5900.
27920 (mips_reorg_process_insns): Force reorder mode for the R5900.
27921 * config/mips/mips.h (TARGET_MIPS5900): Define.
27922 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27923 TARGET_MIPS5900.
27924 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27925 TARGET_MIPS5900.
27926 * config/mips/mips.md (processor): Add r5900.
27927 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27928
27929 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27930
27931 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27932 into function to generate MOVI instruction.
27933 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27934 (aarch64_preferred_simd_mode): Turn into wrapper.
27935 (aarch64_output_scalar_simd_mov_immediate): New function.
27936 * config/aarch64/aarch64-protos.h: Add prototype for above.
27937
27938 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27939
27940 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27941 element_char member.
27942 (sizetochar): Return signed char.
27943 (aarch64_simd_valid_immediate): Remove elchar and other
27944 unnecessary variables.
27945 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27946 Calculate element_char as required.
27947 * config/aarch64/aarch64-protos.h: Update and move prototype
27948 for aarch64_output_simd_mov_immediate.
27949 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27950 Update arguments.
27951
27952 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27953
27954 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27955 information completed by aarch64_simd_valid_immediate.
27956 (aarch64_legitimate_constant_p): Update arguments.
27957 (aarch64_simd_valid_immediate): Work with struct rather than many
27958 pointers.
27959 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27960 (aarch64_simd_make_constant): Update arguments.
27961 (aarch64_output_simd_mov_immediate): Work with struct rather than
27962 many pointers. Output immediate directly rather than as operand.
27963 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27964 Update prototype.
27965 * config/aarch64/constraints.md (Dn): Update arguments.
27966
27967 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27968
27969 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27970 longer static.
27971 (aarch64_simd_immediate_valid_for_move): Remove.
27972 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27973 (aarch64_simd_make_constant): Update call.
27974 (aarch64_output_simd_mov_immediate): Update call.
27975 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27976 Add prototype.
27977 * config/aarch64/constraints.md (Dn): Update call.
27978
27979 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27980
27981 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27982 return type to bool for prototype.
27983 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27984 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27985 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27986
27987 2013-06-04 Catherine Moore <clm@codesourcery.com>
27988
27989 * config/mips/mips.opt (meva): New.
27990 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27991 (ASM_SPEC): Handle -meva.
27992 * doc/invoke.texi (meva): Document.
27993
27994 2013-06-04 Alan Modra <amodra@gmail.com>
27995
27996 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27997 constant output.
27998
27999 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28000
28001 * rtl.def: Add extra fourth optional field to define_cond_exec.
28002 * gensupport.c (process_one_cond_exec): Process attributes from
28003 define_cond_exec.
28004 * doc/md.texi: Document fourth field in define_cond_exec.
28005
28006 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
28007
28008 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
28009 out the processing order as in store_bit_field_1.
28010
28011 2013-06-04 Jan Hubicka <jh@suse.cz>
28012
28013 PR middle-end/57500
28014 * cgraphunit.c (cgraph_process_same_body_aliases): Create
28015 non-VAR_DECL node if it does not exist yet.
28016
28017 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
28018
28019 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
28020 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
28021 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
28022 target_cpu_default setting.
28023
28024 2013-06-03 Teresa Johnson <tejohnson@google.com>
28025
28026 * dumpfile.c (opt_info_switch_p): Change -fopt-info
28027 default to -fopt-info=optimized instead of all.
28028 * doc/invoke.texi: Ditto.
28029 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
28030 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
28031 (execute_vect_slp): Emit BB vectorization success under
28032 MSG_OPTIMIZED_LOCATIONS.
28033 * tree-vect-slp.c (vect_slp_transform_bb): Change
28034 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
28035 * tree-vect-loop.c (vect_transform_loop): Ditto.
28036
28037 2013-06-03 Jason Merrill <jason@redhat.com>
28038
28039 PR c++/57415
28040 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28041 Use TARGET_EXPR for C++.
28042
28043 2013-06-03 Jakub Jelinek <jakub@redhat.com>
28044
28045 PR rtl-optimization/57268
28046 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
28047 if DEBUG_INSN_P (insn).
28048
28049 Reapply
28050 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28051
28052 PR rtl-optimization/57268
28053 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28054 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28055
28056 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28057
28058 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
28059 (ix86_avoid_lea_for_addr): Likewise.
28060 (exact_dependency_1): Likewise.
28061 (ix86_adjust_cost): Likewise.
28062 (swap_top_of_ready_list): Fix formatting and !reload_completed check
28063 removed.
28064 (do_reorder_for_imul): Fix typo, formatting and
28065 !reload_completed check removed.
28066 (ix86_sched_reorder): Fix typo and formatting.
28067 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
28068 list.
28069
28070 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
28071
28072 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
28073
28074 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
28075
28076 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
28077 <STRING_CST>: Likewise.
28078 <VECTOR_CST>: Likewise.
28079
28080 2013-06-01 Janus Weil <janus@gcc.gnu.org>
28081 Mikael Morin <mikael@gcc.gnu.org>
28082
28083 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
28084 * config.in: Regenerated.
28085 * configure: Regenerated.
28086
28087 2013-06-01 Jan Hubicka <jh@suse.cz>
28088
28089 PR middle-end/57366
28090 * cgraphunit.c (compile): When weakref is not supported,
28091 set up transparent aliases before final output pass.
28092 * varasm.c (assemble_alias): Do not try to do it here.
28093
28094 2013-06-01 Jan Hubicka <jh@suse.cz>
28095
28096 PR middle-end/57467
28097 * passes.c (for_per_function): Skip unanalyzed functions.
28098
28099 2013-06-01 Jan Hubicka <jh@suse.cz>
28100
28101 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
28102 (lto_symtab_merge_symbols_1): ... this one.
28103 (lto_symtab_merge_cgraph_nodes): Rename to ...
28104 (lto_symtab_merge_symbols): ... this one; simplify.
28105 * cgraph.c (same_body_aliases_done): Rename to ...
28106 (cpp_implicit_aliases_done): ... this one.
28107 (cgraph_create_function_alias): Update.
28108 (cgraph_same_body_alias): Update.
28109 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
28110 (verify_edge_corresponds_to_fndecl): Simplify.
28111 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
28112 (cgraph_node): Remove same_body_alias.
28113 (varpool_node): Remove alias_of and extra_name_alias.
28114 (same_body_aliases_done): Rename to ..
28115 (cpp_implicit_aliases_done): ... this one.
28116 (symtab_alias_ultimate_target): Add default parameter.
28117 (symtab_resolve_alias): New function.
28118 (fixup_same_cpp_alias_visibility): Declare.
28119 (cgraph_function_node): Add default parameter.
28120 (cgraph_node_asm_name): Likewise.
28121 (cgraph_function_or_thunk_node): Add default parameter; do
28122 not ICE when it is NULL.
28123 (varpool_variable_node): Likewise.
28124 * tree-emutls.c (create_emultls_var): Update.
28125 (ipa_lower_emutls): Update.
28126 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
28127 (cgraph_reset_node): Reset alias info.
28128 (cgraph_finalize_function): Update.
28129 (fixup_same_cpp_alias_visibility): Move to symtab.c.
28130 (analyze_function): Simplify.
28131 (cgraph_process_same_body_aliases): Simplify.
28132 (analyze_functions): Fixup same body aliases.
28133 (handle_alias_pairs): Simplify.
28134 (assemble_thunk): Update.
28135 (assemble_thunks_and_aliases): Update.
28136 (output_weakrefs): Rewrite.
28137 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
28138 (lto_output_varpool_node): Likewise.
28139 (compute_ltrans_boundary): Remve assert.
28140 (get_alias_symbol): New functoin.
28141 (input_node): Rewrite alias handling.
28142 (input_varpool_node): Likewise.
28143 * ipa-pure-const.c (propagate_pure_const): Fix formating.
28144 * ipa.c (process_references): Handle weakrefs correctly.
28145 (symtab_remove_unreachable_nodes): Likewise.
28146 * trans-mem.c (get_cg_data): Update.
28147 (ipa_tm_create_version_alias): Update.
28148 (ipa_tm_execute): Update.
28149 * symtab.c (dump_symtab_base): Dump aliases.
28150 (verify_symtab_base): Verify aliases.
28151 (symtab_node_availability): New function.
28152 (symtab_alias_ultimate_target): Simplify.
28153 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28154 handle all the fixup cases.
28155 (symtab_resolve_alias): New function.
28156 * passes.c (ipa_write_summaries): Handle weakrefs.
28157 * varpool.c (varpool_analyze_node): Simplify.
28158 (assemble_aliases): Update.
28159 (varpool_create_variable_alias): Simplify.
28160 (varpool_extra_name_alias): Simplify.
28161 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28162 (lto_symtab_merge_symbols): ... this one.
28163
28164 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
28165
28166 Revert
28167 PR rtl-optimization/57268
28168 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28169 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28170
28171 2013-06-01 Tobias Burnus <burnus@net-b.de>
28172
28173 Partially reverted:
28174 2013-05-31 Tobias Burnus <burnus@net-b.de>
28175
28176 PR middle-end/57073
28177 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28178 further up.
28179
28180 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28181
28182 PR rtl-optimization/57268
28183 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28184 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28185
28186 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28187
28188 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28189 unordered comparison operators when -fno-trapping-math is in effect
28190 on the e500.
28191 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28192 and implement unordered comparison operators properly on the e500.
28193
28194 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28195
28196 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28197 for constant scalar integers.
28198 (simplify_relational_operation_1): Likewise.
28199
28200 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
28201
28202 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28203 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
28204 Fix comment.
28205
28206 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28207 Igor Zamyatin <igor.zamyatin@intel.com>
28208
28209 Silvermont (SLM) architecture performance tuning.
28210 * config/i386/i386.h (enum ix86_tune_indices): Add
28211 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28212 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28213
28214 * config/i386/i386.c (initial_ix86_tune_features)
28215 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28216 (ix86_lea_outperforms): Handle Silvermont tuning.
28217 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28218 call.
28219 (ix86_use_lea_for_mov): Likewise.
28220 (ix86_avoid_lea_for_addr): Likewise.
28221 (ix86_lea_for_add_ok): Likewise.
28222 (exact_dependency_1): New function.
28223 (exact_store_load_dependency): Likewise.
28224 (ix86_adjust_cost): Handle Silvermont tuning.
28225 (do_reoder_for_imul): Likewise.
28226 (swap_top_of_ready_list): New function.
28227 (ix86_sched_reorder): Changed to handle Silvermont tuning.
28228
28229 * config/i386/i386.md (peepholes that split memory operand in fp
28230 converts): New.
28231
28232 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28233
28234 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28235 Remove un-necessary braces.
28236
28237 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28238
28239 * config/aarch64/aarch64.c (aarch64_classify_symbol):
28240 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28241
28242 2013-05-31 Tobias Burnus <burnus@net-b.de>
28243
28244 PR middle-end/57073
28245 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28246
28247 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28248
28249 PR target/56315
28250 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28251 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28252 * config/arm/neon.md (iordi3_neon): Remove.
28253 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28254 * config/arm/predicates.md (imm_for_neon_logic_operand):
28255 Move to earlier in the file.
28256 (neon_logic_op2): Likewise.
28257 (arm_iordi_operand_neon): New predicate.
28258
28259 2013-05-31 Richard Biener <rguenther@suse.de>
28260
28261 PR tree-optimization/57478
28262 PR tree-optimization/57453
28263 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28264 are life as well.
28265
28266 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28267
28268 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28269 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28270
28271 2013-05-30 Tobias Burnus <burnus@net-b.de>
28272 Thomas Koenig <tkoenig@gcc.gnu.org>
28273
28274 PR middle-end/57073
28275 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28276 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28277
28278 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
28279
28280 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28281
28282 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
28283
28284 * target.def (register_usage_leveling_p): New hook.
28285 * targhooks.c (default_register_usage_leveling_p): New.
28286 * targhooks.h (default_register_usage_leveling_p): New prototype.
28287 * lra-assigns.c (register_usage_leveling_p): Use the hook.
28288 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28289 * doc/tm.texi: Update.
28290 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28291
28292 2013-05-30 Ian Bolton <ian.bolton@arm.com>
28293
28294 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28295 (*insv_reg<mode>): New define_insn.
28296
28297 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
28298
28299 PR rtl-optimization/57439
28300 * postreload.c (move2add_valid_value_p): Check that we have
28301 a zero subreg_regno_offset when accessing the register in
28302 the requested mode.
28303
28304 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28305 Igor Zamyatin <igor.zamyatin@intel.com>
28306
28307 Silvermont (SLM) architecture pipeline model, tuning and
28308 insn selection.
28309 * config.gcc: Add slm config options and target.
28310
28311 * config/i386/slm.md: New.
28312
28313 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28314
28315 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28316 PROCESSOR_SLM.
28317 (ix86_target_macros_internal): Likewise.
28318
28319 * config/i386/i386.c (slm_cost): New cost.
28320 (m_SLM): New macro flag.
28321 (initial_ix86_tune_features): Set m_SLM.
28322 (x86_accumulate_outgoing_args): Likewise.
28323 (x86_arch_always_fancy_math_387): Likewise.
28324 (processor_target_table): Add slm cost.
28325 (cpu_names): Add slm cpu name.
28326 (x86_option_override_internal): Set SLM ISA.
28327 (ix86_issue_rate): New case PROCESSOR_SLM.
28328 (ia32_multipass_dfa_lookahead): Likewise.
28329 (fold_builtin_cpu): Add slm.
28330
28331 * config/i386/i386.h (TARGET_SLM): New target macro.
28332 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28333 (processor_type): Add PROCESSOR_SLM.
28334
28335 * config/i386/i386.md (cpu): Add new value "slm".
28336 (slm.md): Include slm.md.
28337
28338 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
28339 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28340
28341 * config/arm/arm-protos.h: Add and update function protos.
28342 * config/arm/arm.c (use_simple_return_p): New added.
28343 (thumb2_expand_return): Check simple_return flag.
28344 * config/arm/arm.md: Add simple_return and conditional simple_return.
28345 * config/arm/iterators.md: Add iterator for return and simple_return.
28346
28347 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28348
28349 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28350 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28351 (arm_emit_vfp_multi_reg_pop): Likewise.
28352 (thumb2_emit_ldrd_pop): Likewise.
28353 (arm_expand_epilogue): Add misc REG_CFA notes.
28354 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28355
28356 2013-05-29 Lawrence Crowl <crowl@google.com>
28357
28358 * config/arm/t-arm: Update for below.
28359
28360 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28361 Change type to hash_table. Update dependent calls and types.
28362
28363 * config/i386/t-cygming: Update for below.
28364
28365 * config/i386/t-interix: Update for below.
28366
28367 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28368 Change type to hash_table. Update dependent calls and types.
28369 (i386_find_on_wrapper_list::wrappers): Likewise.
28370
28371 * config/ia64/t-ia64: Update for below.
28372
28373 * config/ia64/ia64.c (bundle_state_table):
28374 Change type to hash_table. Update dependent calls and types.
28375
28376 * config/mips/mips.c (mips_reorg_process_insns::htab):
28377 Change type to hash_table. Update dependent calls and types.
28378
28379 * config/sol2.c (solaris_comdat_htab):
28380 Change type to hash_table. Update dependent calls and types.
28381
28382 * config/t-sol2: Update for above.
28383
28384 2013-05-29 Teresa Johnson <tejohnson@google.com>
28385
28386 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28387 functions are not yet marked as defined.
28388
28389 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
28390 Pat Haugen <pthaugen@us.ibm.com>
28391 Peter Bergner <bergner@vnet.ibm.com>
28392
28393 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28394 instructions.
28395 (VEC_A): Likewise.
28396 (VEC_C): Likewise.
28397 (vrotl<mode>3): Likewise.
28398 (vashl<mode>3): Likewise.
28399 (vlshr<mode>3): Likewise.
28400 (vashr<mode>3): Likewise.
28401
28402 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28403 support for power8 V2DI builtins.
28404
28405 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28406 power8 V2DI builtins.
28407 (vupkhsw): Likewise.
28408 (vupklsw): Likewise.
28409 (vaddudm): Likewise.
28410 (vminsd): Likewise.
28411 (vmaxsd): Likewise.
28412 (vminud): Likewise.
28413 (vmaxud): Likewise.
28414 (vpkudum): Likewise.
28415 (vpksdss): Likewise.
28416 (vpkudus): Likewise.
28417 (vpksdus): Likewise.
28418 (vrld): Likewise.
28419 (vsld): Likewise.
28420 (vsrd): Likewise.
28421 (vsrad): Likewise.
28422 (vsubudm): Likewise.
28423 (vcmpequd): Likewise.
28424 (vcmpgtsd): Likewise.
28425 (vcmpgtud): Likewise.
28426 (vcmpequd_p): Likewise.
28427 (vcmpgtsd_p): Likewise.
28428 (vcmpgtud_p): Likewise.
28429 (vupkhsw): Likewise.
28430 (vupklsw): Likewise.
28431 (vaddudm): Likewise.
28432 (vmaxsd): Likewise.
28433 (vmaxud): Likewise.
28434 (vminsd): Likewise.
28435 (vminud): Likewise.
28436 (vpksdss): Likewise.
28437 (vpksdus): Likewise.
28438 (vpkudum): Likewise.
28439 (vpkudus): Likewise.
28440 (vrld): Likewise.
28441 (vsld): Likewise.
28442 (vsrad): Likewise.
28443 (vsrd): Likewise.
28444 (vsubudm): Likewise.
28445
28446 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28447 support for power8 V2DI instructions.
28448
28449 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28450 power8 V2DI instructions. Combine pack and unpack insns to use an
28451 iterator for each mode. Check whether a particular mode supports
28452 Altivec instructions instead of just checking TARGET_ALTIVEC.
28453 (UNSPEC_VPKUWUM): Likewise.
28454 (UNSPEC_VPKSHSS): Likewise.
28455 (UNSPEC_VPKSWSS): Likewise.
28456 (UNSPEC_VPKUHUS): Likewise.
28457 (UNSPEC_VPKSHUS): Likewise.
28458 (UNSPEC_VPKUWUS): Likewise.
28459 (UNSPEC_VPKSWUS): Likewise.
28460 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28461 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28462 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28463 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28464 (UNSPEC_VUPKHSB): Likewise.
28465 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28466 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28467 (UNSPEC_VUPKHSH): Likewise.
28468 (UNSPEC_VUPKLSB): Likewise.
28469 (UNSPEC_VUPKLSH): Likewise.
28470 (VI2): Likewise.
28471 (VI_char): Likewise.
28472 (VI_scalar): Likewise.
28473 (VI_unit): Likewise.
28474 (VP): Likewise.
28475 (VP_small): Likewise.
28476 (VP_small_lc): Likewise.
28477 (VU_char): Likewise.
28478 (add<mode>3): Likewise.
28479 (altivec_vaddcuw): Likewise.
28480 (altivec_vaddu<VI_char>s): Likewise.
28481 (altivec_vadds<VI_char>s): Likewise.
28482 (sub<mode>3): Likewise.
28483 (altivec_vsubcuw): Likewise.
28484 (altivec_vsubu<VI_char>s): Likewise.
28485 (altivec_vsubs<VI_char>s): Likewise.
28486 (altivec_vavgs<VI_char>): Likewise.
28487 (altivec_vcmpbfp): Likewise.
28488 (altivec_eq<mode>): Likewise.
28489 (altivec_gt<mode>): Likewise.
28490 (altivec_gtu<mode>): Likewise.
28491 (umax<mode>3): Likewise.
28492 (smax<mode>3): Likewise.
28493 (umin<mode>3): Likewise.
28494 (smin<mode>3): Likewise.
28495 (altivec_vpkuhum): Likewise.
28496 (altivec_vpkuwum): Likewise.
28497 (altivec_vpkshss): Likewise.
28498 (altivec_vpkswss): Likewise.
28499 (altivec_vpkuhus): Likewise.
28500 (altivec_vpkshus): Likewise.
28501 (altivec_vpkuwus): Likewise.
28502 (altivec_vpkswus): Likewise.
28503 (altivec_vpks<VI_char>ss): Likewise.
28504 (altivec_vpks<VI_char>us): Likewise.
28505 (altivec_vpku<VI_char>us): Likewise.
28506 (altivec_vpku<VI_char>um): Likewise.
28507 (altivec_vrl<VI_char>): Likewise.
28508 (altivec_vsl<VI_char>): Likewise.
28509 (altivec_vsr<VI_char>): Likewise.
28510 (altivec_vsra<VI_char>): Likewise.
28511 (altivec_vsldoi_<mode>): Likewise.
28512 (altivec_vupkhsb): Likewise.
28513 (altivec_vupkhs<VU_char>): Likewise.
28514 (altivec_vupkls<VU_char>): Likewise.
28515 (altivec_vupkhsh): Likewise.
28516 (altivec_vupklsb): Likewise.
28517 (altivec_vupklsh): Likewise.
28518 (altivec_vcmpequ<VI_char>_p): Likewise.
28519 (altivec_vcmpgts<VI_char>_p): Likewise.
28520 (altivec_vcmpgtu<VI_char>_p): Likewise.
28521 (abs<mode>2): Likewise.
28522 (vec_unpacks_hi_v16qi): Likewise.
28523 (vec_unpacks_hi_v8hi): Likewise.
28524 (vec_unpacks_lo_v16qi): Likewise.
28525 (vec_unpacks_hi_<VP_small_lc>): Likewise.
28526 (vec_unpacks_lo_v8hi): Likewise.
28527 (vec_unpacks_lo_<VP_small_lc>): Likewise.
28528 (vec_pack_trunc_v8h): Likewise.
28529 (vec_pack_trunc_v4si): Likewise.
28530 (vec_pack_trunc_<mode>): Likewise.
28531
28532 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28533 V2DI builtins.
28534 (vec_vmaxsd): Likewise.
28535 (vec_vmaxud): Likewise.
28536 (vec_vminsd): Likewise.
28537 (vec_vminud): Likewise.
28538 (vec_vpksdss): Likewise.
28539 (vec_vpksdus): Likewise.
28540 (vec_vpkudum): Likewise.
28541 (vec_vpkudus): Likewise.
28542 (vec_vrld): Likewise.
28543 (vec_vsld): Likewise.
28544 (vec_vsrad): Likewise.
28545 (vec_vsrd): Likewise.
28546 (vec_vsubudm): Likewise.
28547 (vec_vupkhsw): Likewise.
28548 (vec_vupklsw): Likewise.
28549
28550 2013-05-29 Jan Hubicka <jh@suse.cz>
28551
28552 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28553 flags; reorder rest of fields in more consistent way.
28554 (varpool_node): Remove analyzed, finalized and alias.
28555 (cgraph_ndoe): Likewise.
28556 (symtab_alias_ultimate_target): New function.
28557 (cgraph_function_node): Move offline.
28558 (cgraph_reset_node): Declare.
28559 (cgraph_comdat_can_be_unshared_p): Remove.
28560 (varpool_remove_initializer): Declare.
28561 (varpool_first_defined_variable, varpool_next_defined_variable
28562 cgraph_first_defined_function, cgraph_next_defined_function): Update.
28563 (cgraph_function_with_gimple_body_p): Update.
28564 (varpool_all_refs_explicit_p): Update.
28565 (symtab_alias_target): New function.
28566 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28567 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28568 (cgraph_function_or_thunk_node): Simplify using
28569 symtab_alias_ultimate_target.
28570 (varpool_variable_node): Likewise.
28571 * cgraph.c (cgraph_create_function_alias): Update.
28572 (cgraph_add_thunk): Update.
28573 (cgraph_remove_node): Update.
28574 (dump_cgraph_node): Do not dump removed flags.
28575 (cgraph_function_body_availability): Update.
28576 (cgraph_propagate_frequency): Update.
28577 (verify_cgraph_node): Check sanity of local flag.
28578 (cgraph_function_node): Move here from cgraph.h; revamp for
28579 cgraph_function_or_thunk_node.
28580 * lto-symtab.c (lto_varpool_replace_node): Update.
28581 (lto_symtab_resolve_can_prevail_p): Update.
28582 (lto_symtab_merge_cgraph_nodes): Update.
28583 * ipa-cp.c (determine_versionability, initialize_node_lattices,
28584 propagate_constants_accross_call, devirtualization_time_bonus,
28585 ipcp_propagate_stage): Update.
28586 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28587 * ipa-inline-transform.c (clone_inlined_nodes,
28588 preserve_function_body_p): Update.
28589 * ipa-reference.c (propagate): Update.
28590 (write_node_summary_p): Update.
28591 * toplev.c (wrapup_global_declaration_2): Update.
28592 * cgraphunit.c (cgraph_analyze_function): Rename to ...
28593 (analyze_function) ... this one.
28594 (cgraph_process_new_functions): Update.
28595 (cgraph_reset_node): Export.
28596 (cgraph_finalize_function): Update.
28597 (cgraph_add_new_function): Update.
28598 (process_function_and_variable_attributes): Update.
28599 (varpool_finalize_decl): Update.
28600 (symbol_finalized): Remove.
28601 (symbol_finalized_and_needed): Rename to ...
28602 (symbol_defined_and_needed): ... update.
28603 (cgraph_analyze_functions): Update.
28604 (handle_alias_pairs): Update.
28605 (mark_functions_to_output): Update.
28606 (assemble_thunk): Update.
28607 (output_in_order): Update.
28608 (output_weakrefs): Update.
28609 (finalize_compilation_unit): Update.
28610 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28611 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28612 input_node, input_varpool_node): Update.
28613 * dbxout.c (dbxout_expand_expr): Update.
28614 * cgraphclones.c (cgraph_clone_node): Update.
28615 (cgraph_copy_node_for_versioning): Update.
28616 (cgraph_materialize_clone): Update.
28617 (cgraph_materialize_all_clones): Update.
28618 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28619 propagate_pure_const, propagate_nothrow): Update.
28620 * lto-streamer-out.c (lto_output, write_symbol): Update.
28621 * ipa-utils.c (ipa_reverse_postorder): Update.
28622 * ipa-inline.c (can_inline_edge_p): Update.
28623 (update_caller_keys, ipa_inline): Update.
28624 * dwarf2out.c (reference_to_unused,
28625 premark_types_used_by_global_vars_helper): Update.
28626 * tree-eh.c (tree_could_trap_p): Update.
28627 * ipa-split.c (consider_split, execute_split_functions): Update.
28628 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28629 has_addr_references_p): Update; move ahead in file for better
28630 readability.
28631 (process_references): Simplify.
28632 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28633 bodies are removed.
28634 (cgraph_comdat_can_be_unshared_p): Make static.
28635 (cgraph_externally_visible_p): Update.
28636 (varpool_externally_visible_p): Update.
28637 (function_and_variable_visibility): Update.
28638 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28639 ipa_tm_mark_force_output_node): Update.
28640 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28641 estimate_edge_devirt_benefit, inline_generate_summary,
28642 inline_write_summary): Update.
28643 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28644 * ipa-prop.c (ipa_compute_jump_functions): Update.
28645 (ipa_print_node_params, ipa_prop_read_section,
28646 ipa_update_after_lto_read, read_replacements_section): Update.
28647 * varasm.c (mark_decl_referenced): Update.
28648 (assemble_alias, dump_tm_clone_pairs): Update.
28649 * tree-inline.c (copy_bb): Update.
28650 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28651 Update.
28652 * symtab.c (dump_symtab_base): Print new flags.
28653 (verify_symtab_base): Verify new flags.
28654 (symtab_alias_ultimate_target): New function.
28655 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28656 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28657 Update.
28658 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28659 Update.
28660 * i386.c (ix86_get_function_versions_dispatcher,
28661 ix86_generate_version_dispatcher_body): Update.
28662 (fold_builtin_cpu): Use varpool_add_new_variable.
28663 * varpool.c (varpool_remove_initializer): Break out from ...
28664 (varpool_remove_node): ... this one.
28665 (dump_varpool_node, varpool_node_for_asm,
28666 cgraph_variable_initializer_availability, varpool_analyze_node,
28667 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28668 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28669 Update.
28670
28671 2013-05-29 Jan Hubicka <jh@suse.cz>
28672
28673 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28674
28675 2013-05-29 Easwaran Raman <eraman@google.com>
28676
28677 PR tree-optimization/57442
28678 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28679 when control exits the main loop.
28680
28681 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28682
28683 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28684 and RX600.
28685 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28686 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28687 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28688 option.
28689
28690 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28691
28692 PR tree-optimization/57441
28693 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28694 Don't limit size of incr_vec to number of candidates.
28695
28696 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28697
28698 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28699 and mips16 directories.
28700 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28701 (MULTILIB_DIRNAMES): Ditto.
28702 (MULTILIB_EXCEPTIONS): Add new exceptions.
28703 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28704 (MULTILIB_DIRNAMES): Ditto.
28705 (MULTILIB_EXCEPTIONS): Add new exceptions.
28706
28707 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28708 Marcus Shawcroft <marcus.shawcroft@arm.com>
28709
28710 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28711 SYMBOL_TINY_ABSOLUTE.
28712 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28713 SYMBOL_TINY_ABSOLUTE.
28714 (aarch64_expand_mov_immediate): Likewise.
28715 (aarch64_classify_symbol): Likewise.
28716 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28717 Permit SYMBOL_TINY_ABSOLUTE.
28718 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28719
28720 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28721 Marcus Shawcroft <marcus.shawcroft@arm.com>
28722
28723 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28724 Refactor if/switch. Replace gcc_assert with if.
28725
28726 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28727
28728 * config/i386/i386.c (initial_ix86_tune_features): Enable
28729 FP Reassociation for AMD bdver1 and bdver2.
28730
28731 2013-05-29 Martin Jambor <mjambor@suse.cz>
28732
28733 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28734 and IMAGPART_EXPR do not occur within other handled_components.
28735
28736 2013-05-29 Richard Biener <rguenther@suse.de>
28737
28738 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28739 access on whether the use is in the BB we currently try to
28740 vectorize.
28741 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28742 vectorize to vect_bb_slp_scalar_cost.
28743
28744 2013-05-29 Richard Biener <rguenther@suse.de>
28745
28746 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28747 computing scalar cost offsetted by stmts that are kept live
28748 by scalar uses.
28749 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28750 for computation of scalar cost.
28751
28752 2013-05-28 Steve Ellcey <sellcey@mips.com>
28753
28754 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28755
28756 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28757
28758 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28759 array notation built-in reduction functions.
28760 * doc/passes.texi (Passes): Added documentation about changes done
28761 for Cilk Plus.
28762 * doc/invoke.texi (C Dialect Options): Added documentation about
28763 the -fcilkplus flag.
28764 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28765 (BUILTINS_DEF): Depend on cilkplus.def.
28766 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28767 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28768 * cilkplus.def: New file.
28769
28770 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28771
28772 PR rtl-optimization/57439
28773 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28774
28775 2013-05-28 Easwaran Raman <eraman@google.com>
28776
28777 PR tree-optimization/57337
28778 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28779 (find_insert_point): Correctly identify the insertion point
28780 when two statements with the same UID is compared.
28781
28782 2013-05-28 Richard Biener <rguenther@suse.de>
28783
28784 PR tree-optimization/56787
28785 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28786 from the list of data references.
28787 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28788 clobbers.
28789 (vect_analyze_loop_operations): Likewise.
28790 (vect_transform_loop): Remove clobbers.
28791
28792 2013-05-28 Martin Jambor <mjambor@suse.cz>
28793
28794 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28795 and REALPART_EXPRs have scalar type.
28796
28797 2013-05-28 Richard Biener <rguenther@suse.de>
28798
28799 PR tree-optimization/57411
28800 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28801 virtual operands.
28802 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28803 virtual operand propagation.
28804
28805 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28806
28807 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28808 destination register for bmasksi_vis.
28809 (vector_init_bshuffle): Likewise.
28810 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28811
28812 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28813
28814 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28815 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28816 mode if the instruction isn't available in the original mode.
28817 * config/sparc/sparc.opt (mfix-ut699): New option.
28818 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28819 (divdf3): Turn into expander.
28820 (divdf3_nofix): New insn.
28821 (divdf3_fix): Likewise.
28822 (divsf3): Disable if -mfix-ut699.
28823 (sqrtdf2): Turn into expander.
28824 (sqrtdf2_nofix): New insn.
28825 (sqrtdf2_fix): Likewise.
28826 (sqrtsf2): Disable if -mfix-ut699.
28827
28828 2013-05-27 Richard Biener <rguenther@suse.de>
28829
28830 PR middle-end/57412
28831 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28832 block for the new loop.
28833
28834 2013-05-27 Richard Biener <rguenther@suse.de>
28835
28836 PR tree-optimization/57343
28837 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28838 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28839 (number_of_iterations_cond): Do not build the folded tree.
28840
28841 2013-05-27 Richard Biener <rguenther@suse.de>
28842
28843 Revert
28844 PR middle-end/57381
28845 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28846 OEP_CONSTANT_ADDRESS_OF retained.
28847
28848 PR tree-optimization/57417
28849 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28850 for unchanged base.
28851 (set_ssa_val_to): Compare addresses using
28852 get_addr_base_and_unit_offset.
28853
28854 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28855
28856 PR rtl-optimization/56833
28857 * postreload.c (move2add_record_mode): New function.
28858 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28859 (move2add_use_add2_insn): Use move2add_record_sym_value.
28860 (move2add_use_add3_insn): Likewise.
28861 (reload_cse_move2add): Use move2add_valid_value_p and
28862 move2add_record_mode. Invalidate call-clobbered and REG_INC
28863 affected regs by setting reg_mode to VOIDmode.
28864 (move2add_note_store): Don't pretend the inside of a SUBREG is
28865 the actual destination. Invalidate single/leading registers by
28866 setting reg_mode to VOIDmode.
28867 Use move2add_record_sym_value, move2add_valid_value_p and
28868 move2add_record_mode.
28869
28870 2013-05-27 Richard Biener <rguenther@suse.de>
28871
28872 PR tree-optimization/57396
28873 * tree-affine.c (double_int_constant_multiple_p): Properly
28874 return false for val == 0 and div != 0.
28875
28876 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28877
28878 * config/mips/mips.h: Use #elif in preprocessor conditions.
28879
28880 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28881
28882 PR target/53916
28883 * config/mips/constraints.md (kl): New constraint.
28884 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28885 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28886 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28887 from LO for MIPS16.
28888 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28889
28890 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28891
28892 PR target/55777
28893 * config/mips/mips.c (mips_can_inline_p): New function.
28894 (TARGET_CAN_INLINE_P): Define.
28895
28896 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28897
28898 * sched-int.h (ds_t, dw_t): Make unsigned int.
28899 Fix documentation that describes how all the ds_t bits are used.
28900 Reserve the last bit for delayed-branch scheduling.
28901 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28902 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28903 (gen_dep_weak_1): Remove prototype.
28904 * sched-deps.c (get_dep_weak_1): Make static.
28905 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28906 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28907 * doc/tm.texi: Regenerate.
28908 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28909
28910 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28911
28912 PR debug/56950
28913 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28914
28915 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28916 Sandra Loosemore <sandra@codesourcery.com>
28917
28918 * config.gcc (powerpc-*): Allow native for with-cpu.
28919
28920 2013-05-24 Jeff Law <law@redhat.com>
28921
28922 PR tree-optimization/57124
28923 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28924 conversion feeding a condition if the range has an overflow
28925 if -fstrict-overflow. Add warnings for when we do make the
28926 transformation.
28927
28928 2013-05-24 Dehao Chen <dehao@google.com>
28929
28930 * tree-cfg.c (locus_discrim_map): Fix the typo.
28931 (locus_discrim_hasher): Likewise.
28932 (locus_discrim_hasher::hash): Likewise.
28933 (locus_discrim_hasher::equal): Likewise.
28934
28935 2013-05-24 Martin Jambor <mjambor@suse.cz>
28936
28937 PR tree-optimization/57294
28938 * cgraph.h (ipa_record_stmt_references): Declare.
28939 * cgraphbuild.c (ipa_record_stmt_references): New function.
28940 (build_cgraph_edges): Use ipa_record_stmt_references.
28941 (rebuild_cgraph_edges): Likewise.
28942 (cgraph_rebuild_references): Likewise.
28943 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28944 associated with the old statement and build references from the
28945 newly built statements.
28946 * ipa-ref.c (ipa_remove_stmt_references): New function.
28947 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28948
28949 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28950
28951 * lra-constraints.c (emit_spill_move): Use smaller mode for
28952 mem-mem moves.
28953 (check_and_process_move): Consider mem-reg moves for secondary
28954 too.
28955 (curr_insn_transform): Don't lose insns emitted before for
28956 secondary memory moves.
28957 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28958 reg set up in the current insn.
28959
28960 2013-05-24 Dehao Chen <dehao@google.com>
28961
28962 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28963 hash function.
28964 (locus_descrim_hasher::equal): Likewise.
28965 (build_gimple_cfg): New discriminator assignment algorithm.
28966 (make_edges): Likewise.
28967 (next_discriminator_for_locus): Likewise.
28968 (same_line_p): Likewise.
28969 (assign_discriminators): Likewise.
28970 (make_cond_expr_edges): Likewise.
28971 (make_gimple_switch_edges): Likewise.
28972 (make_goto_expr_edges): Likewise.
28973 (make_gimple_asm_edges): Likewise.
28974
28975 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28976
28977 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28978 X format specifier to only display bottom 16 bits.
28979 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28980 immediate to match for operand 2, since it will be masked.
28981
28982 2013-05-24 Richard Biener <rguenther@suse.de>
28983
28984 PR tree-optimization/57287
28985 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28986 all SSA names that occur in abnormal PHIs.
28987
28988 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28989
28990 PR tree-ssa/57385
28991 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28992 that index is not negative.
28993
28994 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28995
28996 PR rtl-optimization/55177
28997 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28998 (simplify_byte_swapping_operation): New.
28999 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
29000 (simplify_relational_operation_1): Deal with BSWAP.
29001
29002 2013-05-23 Richard Henderson <rth@redhat.com>
29003
29004 PR target/56742
29005 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
29006 (ix86_reorg): Call it.
29007
29008 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
29009
29010 PR target/57379
29011 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
29012 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
29013 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
29014
29015 2013-05-23 Christian Bruel <christian.bruel@st.com>
29016
29017 PR debug/57351
29018 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
29019
29020 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29021 Marcus Shawcroft <marcus.shawcroft@arm.com>
29022
29023 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
29024 * config/aarch64/constraints.md (Usa): Remove.
29025 * doc/md.texi (AArch64 Usa): Remove.
29026
29027 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29028 Marcus Shawcroft <marcus.shawcroft@arm.com>
29029
29030 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
29031 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
29032 * config/aarch64/predicates.md (aarch64_const_address): Remove.
29033 (aarch64_mov_operand): Use aarch64_mov_operand_p.
29034
29035 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
29036
29037 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
29038 instruction (AdvSIMD).
29039 * config/aarch64/aarch64-builtins.c
29040 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
29041 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
29042
29043 2013-05-23 Martin Jambor <mjambor@suse.cz>
29044
29045 PR middle-end/57347
29046 * tree.h (contains_bitfld_component_ref_p): Declare.
29047 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
29048 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
29049 caller.
29050 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
29051 not access a bit-field. Assert all final offsets are byte-aligned.
29052
29053 2013-05-23 Richard Biener <rguenther@suse.de>
29054
29055 PR tree-optimization/57380
29056 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
29057 least one invariant or re-used load.
29058 * passes.c (init_optimization_passes): Move pass_phiprop before
29059 pass_forwprop.
29060
29061 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
29062
29063 * config/aarch64/aarch64-simd.md
29064 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
29065
29066 2013-05-23 Richard Biener <rguenther@suse.de>
29067
29068 PR middle-end/57381
29069 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
29070 OEP_CONSTANT_ADDRESS_OF retained.
29071
29072 2013-05-23 Jakub Jelinek <jakub@redhat.com>
29073
29074 PR middle-end/57344
29075 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
29076 don't lower unit. Handle unit not being always BITS_PER_WORD.
29077
29078 2013-05-23 Richard Biener <rguenther@suse.de>
29079
29080 PR rtl-optimization/57341
29081 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
29082 instead of true_dependence.
29083
29084 2013-05-22 David Malcolm <dmalcolm@redhat.com>
29085
29086 * bb-reorder.c (branch_threshold): Make const.
29087 (exec_threshold): Ditto.
29088
29089 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29090 Pat Haugen <pthaugen@us.ibm.com>
29091 Peter Bergner <bergner@vnet.ibm.com>
29092
29093 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
29094 documentation for the power8 crypto builtins.
29095
29096 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
29097
29098 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
29099 macros for defining power8 builtin functions.
29100 (BU_P8V_AV_2): Likewise.
29101 (BU_P8V_AV_P): Likewise.
29102 (BU_P8V_VSX_1): Likewise.
29103 (BU_P8V_OVERLOAD_1): Likewise.
29104 (BU_P8V_OVERLOAD_2): Likewise.
29105 (BU_CRYPTO_1): Likewise.
29106 (BU_CRYPTO_2): Likewise.
29107 (BU_CRYPTO_3): Likewise.
29108 (BU_CRYPTO_OVERLOAD_1): Likewise.
29109 (BU_CRYPTO_OVERLOAD_2): Likewise.
29110 (XSCVSPDP): Fix typo, point to the correct instruction.
29111 (VCIPHER): Add power8 crypto builtins.
29112 (VCIPHERLAST): Likewise.
29113 (VNCIPHER): Likewise.
29114 (VNCIPHERLAST): Likewise.
29115 (VPMSUMB): Likewise.
29116 (VPMSUMH): Likewise.
29117 (VPMSUMW): Likewise.
29118 (VPERMXOR_V2DI): Likewise.
29119 (VPERMXOR_V4SI: Likewise.
29120 (VPERMXOR_V8HI: Likewise.
29121 (VPERMXOR_V16QI: Likewise.
29122 (VSHASIGMAW): Likewise.
29123 (VSHASIGMAD): Likewise.
29124 (VPMSUM): Likewise.
29125 (VPERMXOR): Likewise.
29126 (VSHASIGMA): Likewise.
29127
29128 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
29129 __CRYPTO__ if the crypto instructions are available.
29130 (altivec_overloaded_builtins): Add support for overloaded power8
29131 builtins.
29132
29133 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
29134 support for power8 crypto builtins.
29135 (builtin_function_type): Likewise.
29136 (altivec_init_builtins): Add support for builtins that take vector
29137 long long (V2DI) arguments.
29138
29139 * config/rs6000/crypto.md: New file, define power8 crypto
29140 instructions.
29141
29142 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29143 Pat Haugen <pthaugen@us.ibm.com>
29144 Peter Bergner <bergner@vnet.ibm.com>
29145
29146 * doc/invoke.texi (Option Summary): Add power8 options.
29147 (RS/6000 and PowerPC Options): Likewise.
29148
29149 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29150 constraints.md instead of rs6000.h. Reorder w* constraints. Add
29151 wm, wn, wr documentation.
29152
29153 * config/rs6000/constraints.md (wm): New constraint for VSX
29154 registers if direct move instructions are enabled.
29155 (wn): New constraint for no registers.
29156 (wq): New constraint for quad word even GPR registers.
29157 (wr): New constraint if 64-bit instructions are enabled.
29158 (wv): New constraint if power8 vector instructions are enabled.
29159 (wQ): New constraint for quad word memory locations.
29160
29161 * config/rs6000/predicates.md (const_0_to_15_operand): New
29162 constraint for 0..15 for crypto instructions.
29163 (gpc_reg_operand): If VSX allow registers in VSX registers as well
29164 as GPR and floating point registers.
29165 (int_reg_operand): New predicate to match only GPR registers.
29166 (base_reg_operand): New predicate to match base registers.
29167 (quad_int_reg_operand): New predicate to match even GPR registers
29168 for quad memory operations.
29169 (vsx_reg_or_cint_operand): New predicate to allow vector logical
29170 operations in both GPR and VSX registers.
29171 (quad_memory_operand): New predicate for quad memory operations.
29172 (reg_or_indexed_operand): New predicate for direct move support.
29173
29174 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29175 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29176 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29177 (POWERPC_MASKS): Add power8 options.
29178 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29179 various options.
29180
29181 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29182 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29183
29184 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29185 (-mpower8-fusion): New power8 options.
29186 (-mpower8-fusion-sign): Likewise.
29187 (-mpower8-vector): Likewise.
29188 (-mcrypto): Likewise.
29189 (-mdirect-move): Likewise.
29190 (-mquad-memory): Likewise.
29191
29192 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29193 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29194 registers.
29195 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29196 (rs6000_debug_vector_unit): Add p8_vector.
29197 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29198 definitions. Also print fusion state.
29199 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29200 (rs6000_builtin_mask_calculate): Add power8 builtin support.
29201 (rs6000_option_override_internal): Add support for power8.
29202 (rs6000_common_init_builtins): Add debugging for skipped builtins
29203 if -mdebug=builtin.
29204 (rs6000_adjust_cost): Add power8 support.
29205 (rs6000_issue_rate): Likewise.
29206 (insn_must_be_first_in_group): Likewise.
29207 (insn_must_be_last_in_group): Likewise.
29208 (force_new_group): Likewise.
29209 (rs6000_register_move_cost): Likewise.
29210 (rs6000_opt_masks): Likewise.
29211
29212 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29213 power8 capable assembler, default to power7 options.
29214 (TARGET_DIRECT_MOVE): Likewise.
29215 (TARGET_CRYPTO): Likewise.
29216 (TARGET_P8_VECTOR): Likewise.
29217 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29218 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29219 (VECTOR_MEM_P8_VECTOR_P): Likewise.
29220 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29221 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29222 (TARGET_XSCVDPSPN): Likewise.
29223 (TARGET_XSCVSPDPN): Likewsie.
29224 (TARGET_SYNC_HI_QI): Likewise.
29225 (TARGET_SYNC_TI): Likewise.
29226 (MASK_CRYPTO): Likewise.
29227 (MASK_DIRECT_MOVE): Likewise.
29228 (MASK_P8_FUSION): Likewise.
29229 (MASK_P8_VECTOR): Likewise.
29230 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29231 temporary used by some of the direct move instructions to get two FP
29232 temporary registers does not force creation of a stack frame.
29233 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29234 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29235 that any VSX registers are tieable, even if they are also an
29236 Altivec vector mode.
29237 (r6000_reg_class_enum): Add wm, wr, wv constraints.
29238 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29239 (RS6000_BTM_CRYPTO): Likewise.
29240 (RS6000_BTM_COMMON): Likewise.
29241
29242 * config/rs6000/rs6000.md (cpu attribute): Add power8.
29243 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29244 (enum rs6000_vector): Add power8 vector support.
29245
29246 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29247
29248 PR target/19599
29249 PR target/57340
29250 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29251 (any_sibcall_could_use_r3): this and handle indirect calls.
29252 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29253
29254 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29255
29256 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29257
29258 2013-05-22 Richard Biener <rguenther@suse.de>
29259
29260 PR middle-end/57349
29261 * profile.c (branch_prob): Do not split blocks that are
29262 abnormally receiving from ECF_RETURNS_TWICE functions.
29263
29264 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29265
29266 * recog.c (offsettable_address_addr_space_p): Fix calculation of
29267 address mode. Move pointer mode initialization to the same place.
29268
29269 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29270
29271 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29272 while it has any effect.
29273
29274 2013-05-21 Easwaran Raman <eraman@google.com>
29275
29276 PR tree-optimization/57322
29277 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29278 UID of the statement added to the BB to be 1.
29279
29280 2013-05-21 Jakub Jelinek <jakub@redhat.com>
29281
29282 PR tree-optimization/57331
29283 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29284 of conversion from pointer type to integral type with integer.
29285
29286 2013-05-21 Martin Jambor <mjambor@suse.cz>
29287
29288 PR lto/57289
29289 * ipa-prop.c (ipa_read_node_info): Process param_used and
29290 controlled_uses in the same order as when writing.
29291
29292 2013-05-21 Magnus Granberg <baldrick@free.fr>
29293
29294 PR plugins/56754
29295 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29296
29297 2013-05-21 Richard Biener <rguenther@suse.de>
29298
29299 PR tree-optimization/57318
29300 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29301 estimate stmts with side-effects as likely eliminated.
29302
29303 2013-05-21 Richard Biener <rguenther@suse.de>
29304
29305 PR tree-optimization/57330
29306 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29307 preserve the call stmts fntype.
29308
29309 2013-05-21 Richard Biener <rguenther@suse.de>
29310
29311 PR tree-optimization/57303
29312 * tree-ssa-sink.c (statement_sink_location): Improve killing
29313 stmt detection and properly handle self-assignments.
29314
29315 2013-05-21 Christian Bruel <christian.bruel@st.com>
29316
29317 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29318 spanning registers. LEAF_REG_REMAP is supported only for contiguous
29319 registers. Set register size out of the PARALLEL loop.
29320
29321 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
29322
29323 PR target/56547
29324 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29325 (*fmasf4, *fmasf4_media): New insns.
29326
29327 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29328
29329 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29330 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29331 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29332 (mips_idiv_insns): Update the comments to say that the returned
29333 instruction counts are in units of BASE_INSN_LENGTH.
29334 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29335 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
29336 using 2 rather than 4 as the length of indirect MIPS16 and
29337 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
29338 length of a NOP. Don't divide MIPS16 lengths by 2.
29339 (mips16_split_long_branches): Assume a branch is long if the
29340 length is greater than 4 rather than 8.
29341 * config/mips/mips.md (length): Give MIPS16 lengths directly,
29342 rather than multiplying them by 2. Multiply instruction counts
29343 by BASE_INSN_LENGTH rather than 4.
29344 (*jump_mips16, tls_get_tp_mips16_<mode>)
29345 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29346
29347 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29348
29349 * config/mips/mips.md (extended_mips16): Remove branch case.
29350 (length): Remove duplicated extended_mips16 test.
29351
29352 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29353
29354 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29355
29356 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
29357
29358 * recog.h (Recog_data): Rename to...
29359 (recog_data_d): ...this.
29360 (recog_data): Update accordingly.
29361 * recog.c (recog_data): Likewise.
29362 * reload.c (save_recog_data): Likewise.
29363 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29364 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29365
29366 2013-05-17 Julian Brown <julian@codesourcery.com>
29367
29368 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29369 found in a REG_EQUAL note, invalidate it.
29370
29371 2013-05-17 Easwaran Raman <eraman@google.com>
29372
29373 * tree-ssa-reassoc.c (find_insert_point): New function.
29374 (insert_stmt_after): Likewise.
29375 (get_def_stmt): Likewise.
29376 (ensure_ops_are_available): Likewise.
29377 (not_dominated_by): Likewise.
29378 (rewrite_expr_tree): Do not move statements beyond what is
29379 necessary. Remove call to swap_ops_for_binary_stmt...
29380 (reassociate_bb): ... and move it here.
29381 (build_and_add_sum): Assign UIDs for new statements.
29382 (linearize_expr): Likewise.
29383 (do_reassoc): Renumber gimple statement UIDs.
29384
29385 2013-05-17 Jan Hubicka <jh@suse.cz>
29386
29387 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29388 weakrefs.
29389 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29390 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29391 weakrefs.
29392 (output_weakrefs): Update.
29393
29394 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
29395 Martin Jambor <mjambor@suse.cz>
29396
29397 PR middle-end/57276
29398 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29399 value that corresponds to the given aggval is found in values vector.
29400
29401 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
29402
29403 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29404 sse, sse2, sse3, ssse3 and sse4a flags to options.
29405
29406 2013-05-17 David Malcolm <dmalcolm@redhat.com>
29407
29408 * gengtype-state.c: (s_expr_writer): New class, to handle
29409 prettifying of output layout of s-expressions.
29410 (state_writer): New class, to write out gtype.state.
29411 (state_written_type_count): Move this variable into member data of
29412 state_writer.
29413 (s_expr_writer::s_expr_writer): New code: constructor for new class
29414 (state_writer::state_writer(): ditto
29415 (s_expr_writer::write_new_line): New function
29416 (s_expr_writer::write_any_indent): ditto
29417 (s_expr_writer::begin_s_expr): ditto
29418 (s_expr_writer::end_s_expr): ditto
29419 (write_state_fileloc): convert to method of state_writer...
29420 (state_writer:: write_state_fileloc): ...and use methods of
29421 s_expr_writer to write indentation into the gtype.state output file
29422 to visually represent the hierarchical structure of the list
29423 structures
29424 (write_state_fields): ditto, renaming to...
29425 (state_writer::write_state_fields)
29426 (write_state_a_string): ditto, renaming to...
29427 (state_writer::write_state_a_string)
29428 (write_state_string_option): ditto, renaming to...
29429 (state_writer::write_state_string_option)
29430 (write_state_type_option): ditto, renaming to...
29431 (state_writer::write_state_type_option)
29432 (write_state_nested_option): ditto, renaming to...
29433 (state_writer::write_state_nested_option)
29434 (write_state_option): ditto, renaming to...
29435 (state_writer::write_state_option)
29436 (write_state_options): ditto, renaming to...
29437 (state_writer::write_state_options)
29438 (write_state_lang_bitmap): ditto, renaming to...
29439 (state_writer::write_state_lang_bitmap)
29440 (write_state_version): ditto, renaming to...
29441 (state_writer::write_state_version)
29442 (write_state_scalar_type): ditto, renaming to...
29443 (state_writer::write_state_scalar_type)
29444 (write_state_string_type): ditto, renaming to...
29445 (state_writer::write_state_string_type)
29446 (write_state_undefined_type): ditto, renaming to...
29447 (state_writer::write_state_undefined_type)
29448 (write_state_struct_union_type): ditto, renaming to...
29449 (state_writer::write_state_struct_union_type)
29450 (write_state_struct_type): ditto, renaming to...
29451 (state_writer::write_state_struct_type)
29452 (write_state_user_struct_type): ditto, renaming to...
29453 (state_writer::write_state_user_struct_type)
29454 (write_state_lang_struct_type): ditto, renaming to...
29455 (state_writer::write_state_lang_struct_type)
29456 (write_state_param_struct_type): ditto, renaming to...
29457 (state_writer::write_state_param_struct_type)
29458 (write_state_pointer_type): ditto, renaming to...
29459 (state_writer::write_state_pointer_type)
29460 (write_state_array_type): ditto, renaming to...
29461 (state_writer::write_state_array_type)
29462 (write_state_gc_used): ditto, renaming to...
29463 (state_writer::write_state_gc_used)
29464 (write_state_common_type_content): ditto, renaming to...
29465 (state_writer::write_state_common_type_content)
29466 (write_state_type): ditto, renaming to...
29467 (state_writer::write_state_type)
29468 (write_state_pair_list): ditto, renaming to...
29469 (state_writer::write_state_pair_list)
29470 (write_state_pair): ditto, renaming to...
29471 (state_writer::write_state_pair)
29472 (write_state_typedefs): ditto, renaming to...
29473 (state_writer::write_state_typedefs)
29474 (write_state_structures): ditto, renaming to...
29475 (state_writer::write_state_structures)
29476 (write_state_param_structs): ditto, renaming to...
29477 (state_writer::write_state_param_structs)
29478 (write_state_variables): ditto, renaming to...
29479 (state_writer::write_state_variables)
29480 (write_state_srcdir): ditto, renaming to...
29481 (state_writer::write_state_srcdir)
29482 (write_state_files_list): ditto, renaming to...
29483 (state_writer::write_state_files_list)
29484 (write_state_languages): ditto, renaming to...
29485 (state_writer::write_state_languages)
29486 (write_state): create a state_writer instance and use it when
29487 writing out the state file
29488
29489 2013-05-17 Mike Stump <mikestump@comcast.net>
29490
29491 PR rtl-optimization/57304
29492 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29493 accessing DF_REF_REAL_LOC.
29494
29495 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29496
29497 PR rtl-optimization/57281
29498 PR rtl-optimization/57300
29499 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29500 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29501 what the other splitter did if the registers are dead.
29502
29503 2013-05-17 Richard Biener <rguenther@suse.de>
29504
29505 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29506 MEM_REF offsets.
29507
29508 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29509
29510 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29511 linking.
29512
29513 2013-05-17 Marek Polacek <polacek@redhat.com>
29514
29515 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29516 length when doing non-zero store of storing '\0' to '\0'.
29517
29518 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29519
29520 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29521 vect_external_def oprnd1 with loop_vinfo, try to emit
29522 optional cast, negation and and stmts on the loop preheader
29523 edge instead of into the pattern def seq.
29524
29525 PR tree-optimization/57051
29526 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29527 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29528
29529 2013-05-16 Nick Clifton <nickc@redhat.com>
29530
29531 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29532 (rl78_is_naked_func): New function.
29533 (rl78_expand_prologue): Skip prologue generation for naked functions.
29534 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29535 * doc/extend.texi (naked): Add RL78 to the list of processors
29536 that supports this attribute.
29537
29538 2013-05-16 Jeff Law <law@redhat.com>
29539
29540 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29541
29542 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29543
29544 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29545 cache parameters using detect_caches_amd also for CYRIX,
29546 NSC and TM2 signatures.
29547
29548 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29549 Dzianis Kahanovich <mahatma@eu.by>
29550
29551 PR target/45359
29552 PR target/46396
29553 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29554 VIA/Centaur processors and determine their cache parameters
29555 using detect_caches_amd.
29556
29557 2013-05-16 Teresa Johnson <tejohnson@google.com>
29558
29559 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29560 (rtl_verify_edges): New function.
29561 (rtl_verify_bb_insns): Ditto.
29562 (rtl_verify_bb_pointers): Ditto.
29563 (rtl_verify_bb_insn_chain): Ditto.
29564 (rtl_verify_fallthru): Ditto.
29565 (rtl_verify_bb_layout): Ditto.
29566 (rtl_verify_flow_info_1): Outline checks into new functions.
29567 (rtl_verify_flow_info): Ditto.
29568
29569 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
29570
29571 * cfghooks.c (copy_bbs): Add update_dominance argument.
29572 * cfghooks.h (copy_bbs): Update prototype.
29573 * tree-cfg.c (gimple_duplicate_sese_region):
29574 Add update_dominance argument.
29575 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29576 * tree-ssa-loop-ch.c (copy_loop_headers): Update
29577 gimple_duplicate_sese_region call.
29578 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29579 Update copy_bbs call.
29580 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29581 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29582
29583 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29584
29585 * tree-vectorizer.h (NUM_PATTERNS): Increment.
29586 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29587 vect_recog_rotate_pattern.
29588 (vect_recog_rotate_pattern): New function.
29589
29590 2013-05-16 Jason Merrill <jason@redhat.com>
29591
29592 * Makefile.in (LLINKER): New variable.
29593 (mostlyclean): Remove link mutex.
29594 * configure.ac: Handle --enable-link-mutex.
29595 * lock-and-run.sh: New script.
29596
29597 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29598
29599 PR target/19599
29600 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29601 for NULL decl.
29602
29603 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29604
29605 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29606
29607 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29608
29609 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29610 * config/arm/arm.c (next_consecutive_mem): New function.
29611 (gen_movmem_ldrd_strd): Likewise.
29612 * config/arm/arm.md (movmemqi): Update condition and code.
29613 (unaligned_loaddi, unaligned_storedi): New patterns.
29614
29615 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29616
29617 * config.gcc: Obsolete *-*-solaris2.9*.
29618 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29619
29620 2013-05-16 Richard Biener <rguenther@suse.de>
29621
29622 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29623 earlier, after GRAPHITE transforms and IV canonicalization.
29624
29625 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29626
29627 * omp-low.c (extract_omp_for_data): For collapsed loops,
29628 if at least one of the loops is known at compile time to
29629 iterate zero times, set count to 0.
29630 (expand_omp_regimplify_p): New function.
29631 (expand_omp_for_generic): For collapsed loops, if at least
29632 one of the loops isn't known to iterate at least once,
29633 add runtime check with setting count to 0.
29634 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29635 For unsigned types if it isn't known at compile time that
29636 the loop will iterate at least once, add runtime check to bypass
29637 the whole loop if initial condition isn't true.
29638
29639 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29640
29641 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29642
29643 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29644
29645 PR middle-end/57286
29646 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29647 transformations to avoid an infinite loop.
29648
29649 2013-05-16 Marek Polacek <polacek@redhat.com>
29650
29651 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29652
29653 2013-05-15 Leif Ekblad <leif@rdos.net>
29654
29655 * config/i386/i386.c (ix86_decompose_address): Use
29656 DEFAULT_TLS_SEG_REG to access TLS segment register.
29657 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29658 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29659 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29660
29661 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29662
29663 PR target/57260
29664 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29665 sibling calls to functions that would normally be lazily bound,
29666 unless $gp is call-clobbered.
29667
29668 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29669
29670 * config/i386/i386.c (ix86_option_override_internal): Update
29671 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29672 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29673 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29674 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29675 of TARGET_3DNOW.
29676 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29677
29678 2013-05-15 Andreas Schwab <schwab@suse.de>
29679
29680 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29681 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29682 third operand.
29683
29684 2013-05-15 Teresa Johnson <tejohnson@google.com>
29685
29686 * loop-unroll.c (report_unroll_peel): Check decision before
29687 emitting unroll/peel message.
29688
29689 2013-05-15 Teresa Johnson <tejohnson@google.com>
29690
29691 * function.h (has_bb_partition): New rtl_data flag.
29692 (bb_reorder_complete): Ditto.
29693 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29694 instead of flag_reorder_blocks_and_partition.
29695 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29696 with some enhancements.
29697 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29698 * bb-reorder.c (connect_traces): Check for has_bb_partition
29699 instead of flag_reorder_blocks_and_partition.
29700 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29701 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29702 verify_hot_cold_block_grouping.
29703 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29704
29705 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29706
29707 PR target/19599
29708 * config/arm/predicates.md (call_insn_operand): New predicate.
29709 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29710 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29711 if insn is not a tail call.
29712 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29713 registers.
29714 * config/arm/arm.h (enum reg_class): New caller save register class.
29715 (REG_CLASS_NAMES): Likewise.
29716 (REG_CLASS_CONTENTS): Likewise.
29717 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29718 without decls.
29719
29720 2013-05-15 Richard Biener <rguenther@suse.de>
29721
29722 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29723 of MSG_OPTIMIZED_LOCATIONS.
29724 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29725 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29726 message.
29727 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29728 of MSG_OPTIMIZED_LOCATIONS.
29729 (execute_vect_slp): Likewise.
29730 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29731 (vect_create_cond_for_alias_checks): Likewise.
29732 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29733 (vect_recog_widen_mult_pattern): Likewise.
29734 (vect_recog_widen_sum_pattern): Likewise.
29735 (vect_recog_over_widening_pattern): Likewise.
29736 (vect_recog_widen_shift_pattern): Likewise.
29737 (vect_recog_vector_vector_shift_pattern): Likewise.
29738 (vect_recog_divmod_pattern): Likewise.
29739 (vect_recog_mixed_size_cond_pattern): Likewise.
29740 (vect_recog_bool_pattern): Likewise.
29741 (vect_pattern_recog_1): Likewise.
29742
29743 2013-05-15 Martin Jambor <mjambor@suse.cz>
29744
29745 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29746 non-functions to builtin_unreachable.
29747 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29748 correct when new direct edges were discovered.
29749
29750 2013-05-15 Martin Jambor <mjambor@suse.cz>
29751
29752 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29753 header, print symbol order instead of node uid, print more information
29754 about indirect edge targets.
29755 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29756 uids.
29757 (ipa_make_edge_direct_to_target): Likewise.
29758 (remove_described_reference): Likewise.
29759 (propagate_controlled_uses): Likewise.
29760 (ipa_print_node_params): Also print symbol order.
29761 (ipcp_transform_function): Print symbol order instead of node uids.
29762 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29763 (cgraph_get_create_real_symbol_node): Likewise.
29764 * ipa-cp.c (print_lattice): Likewise.
29765 (print_all_lattices): Likewise.
29766 (determine_versionability): Likewise.
29767 (initialize_node_lattices): Likewise.
29768 (estimate_local_effects): Likewise.
29769 (update_profiling_info): Likewise.
29770 (create_specialized_node): Likewise.
29771 (perhaps_add_new_callers): Likewise.
29772 (decide_about_value): Likewise.
29773 (decide_whether_version_node): Likewise.
29774 (identify_dead_nodes): Likewise.
29775 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29776 (dump_inline_summary): Likewise.
29777 (estimate_node_size_and_time): Likewise.
29778 (inline_analyze_function): Likewise.
29779 * ipa-inline.c (report_inline_failed_reason): Likewise.
29780 (want_early_inline_function_p): Likewise.
29781 (edge_badness): Likewise.
29782 (update_edge_key): Likewise.
29783 (inline_small_functions): Likewise. Add dumping of order to two other
29784 dumps.
29785 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29786 instead of node uids.
29787 (propagate_pure_const): Likewise.
29788 (propagate_pure_const): Likewise.
29789 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29790 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29791 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29792 of node uids.
29793 * tree-pretty-print.c (dump_function_header): Likewise.
29794 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29795 Print symbol order instead of node uids.
29796
29797 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29798
29799 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29800 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29801
29802 2013-05-15 Richard Biener <rguenther@suse.de>
29803
29804 PR tree-optimization/57275
29805 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29806 return value for fail to do runtime alias checks for gather loads.
29807
29808 2013-05-15 Jan Hubicka <jh@suse.cz>
29809
29810 PR lto/57038
29811 PR lto/47375
29812 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29813 weakrefs are not external.
29814 (lto_symtab_merge_decls): Fix thinko when dealing with
29815 non-lto_symtab decls.
29816 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29817 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29818 * varpool.c (dump_varpool_node): Dump more flags.
29819
29820 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29821
29822 * config/i386/i386.c (processor_alias_table): Add instruction
29823 FSGSBASE for AMD bdver3 architecture.
29824
29825 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29826
29827 * tree.c (warn_deprecated_use): Print file:line using locus color.
29828 * diagnostic.c (diagnostic_report_current_module): Print file:line
29829 and file:line:column using locus color.
29830
29831 2013-05-14 Mike Stump <mikestump@comcast.net>
29832
29833 * gdbinit.in: Add __null.
29834
29835 2013-05-14 Mike Stump <mikestump@comcast.net>
29836
29837 * recog.h: Rename struct recog_data to Recog_data.
29838 * recog.c: Likewise.
29839 * reload.c (can_reload_into): Likewise.
29840 * config/picochip/picochip.c: Likewise.
29841
29842 2013-05-14 Mike Stump <mikestump@comcast.net>
29843
29844 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29845
29846 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29847
29848 * resource.h (struct resources): Remove unch_memory member.
29849 (CLEAR_RESOURCE): Don't clear unch_memory.
29850 * resource.c (mark_referenced_resources): Don't set it.
29851 (mark_set_resources): Likewise.
29852 (mark_target_live_regs): Don't clear it.
29853 (init_resource_info): Likewise.
29854 * reorg.c (resource_conflicts_p): Don't compare it.
29855 (redundant_insn): Don't set it.
29856
29857 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29858 Remove prototypes.
29859 * emit-rtl.c (next_label): Remove unused function.
29860 (skip_consecutive_labels, link_cc0_insns): Move to ...
29861 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29862 only place where these functions are used, and make them static.
29863
29864 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29865
29866 * fold-const.c (fold_negate_expr): Handle vectors.
29867 (fold_truth_not_expr): Make it static.
29868 (fold_invert_truthvalue): New static function.
29869 (invert_truthvalue_loc): Handle vectors. Do not call
29870 fold_truth_not_expr directly.
29871 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29872 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29873 (fold_comparison): Handle vector constants.
29874 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29875 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29876 * tree.h (fold_truth_not_expr): Remove declaration.
29877
29878 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29879
29880 * config/aarch64/aarch64-simd.md
29881 (aarch64_vcond_internal<mode>): Rename to...
29882 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29883 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29884 float modes. Clarify all iterator modes.
29885 (vcond<mode><mode>): Use new name for vcond expanders.
29886 (vcond<v_cmp_result><mode>): Likewise.
29887 (vcondu<mode><mode>: Likewise.
29888 * config/aarch64/iterators.md (VDQF_COND): New.
29889
29890 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29891
29892 PR bootstrap/57266
29893 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29894 variable for the shift amount. Check that we shift by non-negative
29895 amounts.
29896
29897 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29898
29899 PR target/42017
29900 * config/arm/arm.h (EPILOGUE_USES): Only return true
29901 for LR_REGNUM after epilogue_completed.
29902
29903 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29904
29905 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29906 is error_mark_node.
29907
29908 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29909
29910 PR target/57261
29911 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29912 and Solaris 11+/x86 with gld.
29913 * configure: Regenerate.
29914
29915 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29916
29917 * expmed.c (expand_shift_1): Canonicalize rotates by
29918 constant bitsize / 2 to bitsize - 1.
29919 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29920 case ROTATERT>: Likewise.
29921
29922 Revert:
29923 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29924
29925 * config/i386/i386.md (rotateinv): New code attr.
29926 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29927 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29928 roll $31, %eax, etc.
29929
29930 2013-05-14 Richard Biener <rguenther@suse.de>
29931
29932 PR middle-end/57235
29933 * tree-eh.c (sink_clobbers): Give up for successors with
29934 multiple predecessors and no virtual uses.
29935
29936 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29937
29938 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29939 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29940
29941 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29942
29943 PR middle-end/57251
29944 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29945 the case when both op0 and op1 have VOIDmode.
29946
29947 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29948
29949 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29950 in multiply-accumulate mode.
29951
29952 2013-05-13 Guozhi Wei <carrot@google.com>
29953
29954 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29955
29956 2013-05-13 Kai Tietz <ktietz@redhat.com>
29957
29958 PR target/56975
29959 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29960 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29961 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29962 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29963 (ix86_expand_prologue): Likewise.
29964 (ix86_expand_split_stack_prologue): Likewise.
29965 (legitimate_pic_address_disp_p): Likewise.
29966 (legitimize_pic_address): Likewise.
29967 (legitimize_tls_address): Likewise.
29968 (legitimize_pe_coff_symbol): Likewise.
29969 (output_pic_addr_const): Likewise.
29970 (construct_plt_address): Likewise.
29971 (ix86_expand_call): Likewise.
29972 (x86_output_mi_thunk): Likewise.
29973 (x86_function_profiler): Likewise.
29974
29975 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29976
29977 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29978 similar switch cases.
29979 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29980 (aarch64_simd_mov_to_<mode>low): Delete.
29981 (aarch64_simd_mov_to_<mode>high): Delete.
29982 (move_lo_quad_<mode>): Add w<-r alternative.
29983 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29984 (aarch64_simd_mov_from_*): Update type attribute.
29985 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29986 statement.
29987
29988 2013-05-13 Jan Hubicka <jh@suse.cz>
29989
29990 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29991 * config/i386/i386.c (ix86_compute_frame_layout,
29992 ix86_expand_epilogue, emit_i387_cw_initialization,
29993 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29994 ix86_local_alignment): Fix use of size/speed predicates.
29995
29996 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29997
29998 PR tree-optimization/45216
29999 PR tree-optimization/57157
30000 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
30001 the (-Y) & (B - 1) variant if OP is |.
30002 * expmed.c (expand_shift_1): For rotations by const0_rtx just
30003 return shifted. Use (-op1) & (prec - 1) as other_amount
30004 instead of prec - op1.
30005
30006 2013-05-13 Martin Jambor <mjambor@suse.cz>
30007
30008 PR middle-end/42371
30009 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
30010 (ipa_constant_data): New type.
30011 (ipa_jump_func): Use ipa_constant_data to hold information about
30012 constant jump functions.
30013 (ipa_get_jf_constant): Adjust to jump function type changes.
30014 (ipa_get_jf_constant_rdesc): New function.
30015 (ipa_param_descriptor): New field controlled_uses.
30016 (ipa_get_controlled_uses): New function.
30017 (ipa_set_controlled_uses): Likewise.
30018 * ipa-ref.h (ipa_find_reference): Declare.
30019 * ipa-prop.c (ipa_cst_ref_desc): New type.
30020 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
30021 changes.
30022 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
30023 New parameter cs. Adjust all callers.
30024 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
30025 (remove_described_reference): New function.
30026 (jfunc_rdesc_usable): Likewise.
30027 (try_make_edge_direct_simple_call): Decrement controlled use count,
30028 attempt to remove reference if it hits zero.
30029 (combine_controlled_uses_counters): New function.
30030 (propagate_controlled_uses): Likewise.
30031 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
30032 (ipa_edge_duplication_hook): Duplicate reference descriptions.
30033 (ipa_print_node_params): Print described use counter.
30034 (ipa_write_jump_function): Adjust to jump function type changes.
30035 (ipa_read_jump_function): New parameter CS, pass it to
30036 ipa_set_jf_constant. Adjust caller.
30037 (ipa_write_node_info): Stream controlled use count
30038 (ipa_read_node_info): Likewise.
30039 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
30040 asserting.
30041 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
30042 count. Remove cloning-added reference if it reaches zero.
30043 * ipa-ref.c (ipa_find_reference): New function.
30044
30045 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
30046
30047 * config/i386/i386.c (processor_target_table): Modified default
30048 alignment values for AMD BD and BT architectures.
30049
30050 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
30051
30052 * tree-vect-generic.c (uniform_vector_p): Move ...
30053 * tree.c (uniform_vector_p): ... here.
30054 * tree.h (uniform_vector_p): Declare it.
30055 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
30056 into a scalar.
30057
30058 2013-05-13 Jakub Jelinek <jakub@redhat.com>
30059
30060 PR tree-optimization/57230
30061 * tree-ssa-strlen.c (handle_char_store): Record length for
30062 array store from STRING_CST.
30063
30064 PR tree-optimization/57230
30065 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
30066 check.
30067
30068 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
30069
30070 * config/epiphany/epiphany.c (epiphany_init): Check size of
30071 NUM_MODES_FOR_MODE_SWITCHING.
30072 (epiphany_expand_prologue):
30073 Remove CONFIG_REGNUM initial value handling code.
30074 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
30075 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
30076 (emit_set_fp_mode, epiphany_mode_after): Likewise.
30077 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
30078 Don't return 1 for FP_MODE_NONE.
30079 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
30080 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
30081 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
30082 * config/epiphany/epiphany.md (save_config): New pattern.
30083
30084 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
30085
30086 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
30087
30088 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
30089
30090 * config/i386/i386.md (memory): Handle sseishft1.
30091 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
30092 (*vec_extractv2di_1): Ditto.
30093
30094 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
30095
30096 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
30097 saved registers.
30098
30099 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
30100
30101 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
30102 Add mthumb/march=armv7-a multilib.
30103 Add mthumb/march=armv7-r multilib.
30104 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
30105
30106 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
30107
30108 * config/v850/t-rtems: Add more multilibs.
30109
30110 2013-05-10 Richard Biener <rguenther@suse.de>
30111
30112 PR tree-optimization/57214
30113 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
30114 not propagate from SSA names that occur in abnormal PHI nodes.
30115
30116 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
30117
30118 * stor-layout.c (element_precision): New function.
30119 * machmode.h (element_precision): Declare it.
30120 * tree.c (build_minus_one_cst): New function.
30121 (element_precision): Likewise.
30122 * tree.h (build_minus_one_cst): Declare new function.
30123 (element_precision): Likewise.
30124 * fold-const.c (operand_equal_p): Use element_precision.
30125 (fold_binary_loc): Handle vector types.
30126 * convert.c (convert_to_integer): Use element_precision.
30127 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
30128 separately.
30129
30130 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
30131
30132 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
30133 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
30134 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
30135 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30136 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
30137 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
30138 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
30139 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30140 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
30141 (Uuw8): New constraints.
30142 (Usb4): Move into alphabetical order.
30143 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
30144 (sd8_operand, ub8_operand, uw8_operand): New predicates.
30145 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30146 previously unnamed patterns.
30147 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30148 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30149 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30150 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30151 of set_attr_alternative/if_then_else. Use extended_mips16 instead
30152 of specific lengths.
30153
30154 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30155
30156 * config/i386/i386.md (rotateinv): New code attr.
30157 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30158 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30159 roll $31, %eax, etc.
30160
30161 PR tree-optimization/45216
30162 PR tree-optimization/57157
30163 * tree-ssa-forwprop.c (simplify_rotate): New function.
30164 (ssa_forward_propagate_and_combine): Call it.
30165
30166 2013-05-10 Richard Biener <rguenther@suse.de>
30167
30168 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30169 disable peeling when we version for aliasing.
30170 (vector_alignment_reachable_p): Honor explicit user alignment.
30171 (vect_supportable_dr_alignment): Likewise.
30172 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30173 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30174 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30175 then peeling to arrange for the cost-model check to come first.
30176
30177 2013-05-10 Alan Modra <amodra@gmail.com>
30178
30179 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30180 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30181 * configure: Regenerate.
30182
30183 2013-05-10 Alan Modra <amodra@gmail.com>
30184
30185 PR target/55033
30186 * varasm.c (default_elf_select_section): Move !DECL_P check..
30187 (get_named_section): ..to here before calling get_section_name.
30188 Adjust assertion.
30189 (default_section_type_flags): Add DECL_P check.
30190 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30191 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30192
30193 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
30194
30195 * config/epiphany/epiphany.c (epiphany_expand_prologue):
30196 When using gen_stack_adjust_str with a register offset, add a
30197 REG_FRAME_RELATED_EXPR note.
30198
30199 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
30200
30201 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30202 (*vec_extractv4si_zext_mem): Ditto.
30203 (*vec_extractv2di): Add 0->x and x->x alternatives.
30204 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30205 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30206
30207 2013-05-09 Jason Merrill <jason@redhat.com>
30208
30209 N3639 C++1y VLA support
30210 * gimplify.c (gimplify_vla_decl): Don't touch an existing
30211 DECL_VALUE_EXPR.
30212
30213 * tree.c (build_constructor_va): New.
30214 * tree.h: Declare it.
30215
30216 2013-05-09 Martin Jambor <mjambor@suse.cz>
30217
30218 PR lto/57084
30219 * gimple-fold.c (canonicalize_constructor_val): Call
30220 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30221
30222 2013-05-09 Jan Hubicka <jh@suse.cz>
30223 Richard Biener <rguenther@suse.de>
30224
30225 PR lto/54095
30226 * symtab.c (symtab_make_decl_local): Do not add private names.
30227
30228 2013-05-09 Jan Hubicka <jh@suse.cz>
30229
30230 PR lto/54095
30231 * symtab.c (insert_to_assembler_name_hash): Handle clones.
30232 (unlink_from_assembler_name_hash): Likewise.
30233 (symtab_prevail_in_asm_name_hash, symtab_register_node,
30234 symtab_unregister_node, symtab_initialize_asm_name_hash,
30235 change_decl_assembler_name): Update.
30236
30237 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
30238
30239 * config/aarch64/aarch64.md: New movtf split.
30240 (*movtf_aarch64): Update.
30241 (aarch64_movdi_tilow): Handle TF modes and rename to
30242 aarch64_movdi_<mode>low.
30243 (aarch64_movdi_tihigh): Handle TF modes and rename to
30244 aarch64_movdi_<mode>high
30245 (aarch64_movtihigh_di): Handle TF modes and rename to
30246 aarch64_mov<mode>high_di
30247 (aarch64_movtilow_di): Handle TF modes and rename to
30248 aarch64_mov<mode>low_di
30249 (aarch64_movtilow_tilow): Remove spurious whitespace.
30250 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30251 splits.
30252 (aarch64_print_operand): Update.
30253
30254 2013-05-09 Alan Modra <amodra@gmail.com>
30255
30256 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30257 powerpc64le.
30258 * configure: Regenerate.
30259
30260 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30261
30262 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30263 splitter preparation statements.
30264 * config/i386/sse.md (*vec_extract* splitters): Ditto.
30265 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30266 adjust_address_nv.
30267
30268 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30269
30270 * gimple-ssa-strength-reduction.c (count_candidates): Change
30271 return value to int.
30272 (analyze_candidates_and_replace): Change type of length to int.
30273
30274 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30275
30276 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30277 (*vec_extract<mode>): Use VI12_128 mode iterator.
30278 (*vec_extract<mode>_mem): Ditto.
30279 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30280 attribute.
30281
30282 2013-05-08 Diego Novillo <dnovillo@google.com>
30283
30284 PR bootstrap/54659
30285
30286 Revert:
30287 2012-08-17 Diego Novillo <dnovillo@google.com>
30288
30289 PR bootstrap/54281
30290 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30291 * config.in: Regenerate.
30292 * configure: Regenerate.
30293 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30294
30295 2013-05-08 Jan Hubicka <jh@suse.cz>
30296
30297 PR lto/54095
30298 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30299 * cgraph.h (symtab_node_base): Add unique_name.
30300 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30301 input_overwrite_node, input_varpool_node): Stream unique_name.
30302 * cgraphclones.c (cgraph_create_virtual_clone,
30303 cgraph_function_versioning): Set unique_name.
30304 * ipa.c (function_and_variable_visibility): Set unique_name.
30305
30306 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30307
30308 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30309 (alloc_cand_and_find_basis): Restrict conditional candidate
30310 processing to CAND_MULTs.
30311
30312 2013-05-08 Jan Hubicka <jh@suse.cz>
30313
30314 PR lto/54095
30315 lto-symtab.c (lto_symtab_symbol_p): New function.
30316 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30317 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30318 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30319 Skip static symbols.
30320
30321 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
30322
30323 PR tree-optimization/57200
30324 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30325 Only call inform if the preceding warning_at returns true.
30326
30327 2013-05-07 Han Shen <shenhan@google.com>
30328
30329 * cfgexpand.c (record_or_union_type_has_array_p): New function.
30330 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30331 * common.opt (fstack-protector-strong): New option.
30332 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30333 * doc/invoke.texi (Optimization Options): Document
30334 "-fstack-protector-strong".
30335 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30336
30337 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30338
30339 * config/mips/mips.c (mips_machine_reorg2): Return 0.
30340
30341 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
30342
30343 * ira.c (update_equiv_regs): Add insn having equiv memory even if
30344 it is not lhs of the insn.
30345 (setup_reg_equiv): Remove insn having equiv memory which it is not
30346 lhs of the insn.
30347 * lra-constraints.c (process_address): Try to improve generation
30348 code for address base + disp.
30349 (lra_constraints): Make correct the code for checking insn setting
30350 up backward equivalence. Remove insn only if it is in the init
30351 insn list.
30352 * lra-eliminations.c (update_reg_eliminate): Change return value.
30353 (lra_eliminate): Use the result.
30354
30355 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
30356
30357 * config/i386/sse.md (ssescalarnummask): New mode attribute.
30358 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30359 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30360 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30361 register target operands.
30362 (*vec_extractv8hi_sse2): New pattern.
30363 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30364 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30365 (*vec_extract<mode>_mem): New insn and split pattern.
30366
30367 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
30368
30369 * config/arm/arm.c (arm_asan_shadow_offset): New function.
30370 (TARGET_ASAN_SHADOW_OFFSET): Define.
30371 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30372 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30373
30374 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30375
30376 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30377 (incr_vec_index): Return -1 if increment not found.
30378 (create_add_on_incoming_edge): Assert if increment not found.
30379 (record_increment): Limit number of increments recorded.
30380 (all_phi_incrs_profitable): Return false if an increment not found.
30381 (replace_profitable_candidates): Don't process increments that were
30382 not recorded.
30383 (analyze_candidates_and_replace): Limit size of incr_vec.
30384
30385 2013-05-07 Richard Biener <rguenther@suse.de>
30386
30387 * calls.c (special_function_p): setjmp-like functions are leaf.
30388 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30389 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30390
30391 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
30392
30393 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30394 (aarch64_simd_mov<mode>): New expander.
30395 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30396 (aarch64_simd_mov_to_<mode>high): Likewise.
30397 (aarch64_simd_mov_from_<mode>low): Likewise.
30398 (aarch64_simd_mov_from_<mode>high): Likewise.
30399 (aarch64_dup_lane<mode>): Update.
30400 (aarch64_dup_lanedi): New instruction pattern.
30401 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30402 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30403
30404 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30405
30406 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30407 (replace_mult_candidate): Remove unnecessary argument; remove
30408 unnecessary parameter from call to introduce_cast_before_cand.
30409 (replace_unconditional_candidate): Remove unnecessary parameter
30410 from call to replace_mult_candidate.
30411 (replace_conditional_candidate): Likewise.
30412 (insert_initializers): Use make_temp_ssa_name.
30413 (introduce_cast_before_cand): Remove unnecessary argument; use
30414 make_temp_ssa_name.
30415 (replace_one_candidate): Remove unnecessary argument; remove
30416 unnecessary parameter from calls to introduce_cast_before_cand.
30417 (replace_profitable_candidates): Remove unnecessary parameters
30418 from calls to replace_one_candidate.
30419
30420 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30421
30422 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30423 phi def as possibly hiding a basis for a CAND_ADD whose operands
30424 have been commuted in the analysis.
30425 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30426
30427 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30428
30429 * config/aarch64/aarch64.md
30430 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30431 shift value between 0-4.
30432
30433 2013-05-07 Richard Biener <rguenther@suse.de>
30434
30435 * double-int.h (rshift): New overload.
30436 * double-int.c (rshift): New function.
30437 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30438 (create_reference_ops_from_ref): Remove.
30439 (vn_reference_insert): Use shared ops for constructing the
30440 reference and copy it.
30441
30442 2013-05-07 Richard Biener <rguenther@suse.de>
30443
30444 PR middle-end/57190
30445 * tree-eh.c (sink_clobbers): Properly propagate
30446 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30447
30448 2013-05-07 Jakub Jelinek <jakub@redhat.com>
30449
30450 PR tree-optimization/57149
30451 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30452 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30453 collect_phi_def_edges, execute_late_warn_uninitialized): Use
30454 uninit_undefined_value_p instead of ssa_undefined_value_p.
30455
30456 PR debug/57184
30457 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30458 for modifier == EXPAND_INITIALIZER.
30459
30460 2013-05-07 Anton Blanchard <anton@samba.org>
30461
30462 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30463 for powerpc64 little endian.
30464 * configure: Regenerate.
30465
30466 2013-05-06 Graham Stott <grahams@btinternet.com>
30467
30468 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30469 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30470 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30471 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30472
30473 2013-05-06 Graham Stott <grahams@btinternet.com>
30474
30475 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30476 codes which allow non-lvalues.
30477
30478 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
30479
30480 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30481 components are all 1s.
30482 (integer_minus_onep): New function.
30483 * tree.h (integer_minus_onep): Declare it.
30484 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30485 integer_minus_onep instead of integer_all_onesp.
30486
30487 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30488
30489 PR target/52933
30490 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30491 variations of these patterns.
30492
30493 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30494
30495 * config/i386/i386.md (isa): Add x64_sse4 member.
30496 (enabled): Handle x64_sse4.
30497 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30498 instruction for 64bit SSE4_1 targets. Update insn attributes.
30499 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30500 instruction for SSE4_1 targets. Update insn attributes.
30501 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30502 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30503 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30504 const_1 selector.
30505 (*vec_extractv4si): Rename from *sse4_1_pextrd.
30506 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30507 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30508
30509 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30510
30511 PR target/57108
30512 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30513
30514 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
30515
30516 * final.c (do_assembler_dialects): Don't handle curly braces and
30517 vertical bar escaped by % as dialect delimiters.
30518 (output_asm_insn): Print curly braces and vertical bar if escaped
30519 by % and ASSEMBLER_DIALECT defined.
30520 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30521 * doc/tm.texi: Regenerated.
30522
30523 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30524
30525 * config/mips/mips.c: Include tree-pass.h.
30526 (mips_reorg): Split in pre- and post-dbr_schedule parts.
30527 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30528 (pass_mips_machine_reorg2): New machine specific pass.
30529 (insert_pass_mips_machine_reorg2): New pass plugin definition.
30530 (mips_option_override): Register the new pass.
30531 * rtl.h (cleanup_barriers): Remove prototype.
30532 (dbr_schedule): Likewise.
30533 * jump.c (cleanup_barriers): Make static.
30534 * reorg.c (dbr_schedule): Likewise.
30535
30536 2013-05-06 Richard Biener <rguenther@suse.de>
30537
30538 PR tree-optimization/57185
30539 * tree-parloops.c (add_field_for_reduction): Handle anonymous
30540 SSA names properly.
30541
30542 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30543
30544 PR target/57106
30545 * config/i386/i386.c (add_parameter_dependencies): Add dependence
30546 between "first_arg" and "insn", not "last" and "insn".
30547
30548 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30549
30550 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30551 (find_candidates_in_block): Re-enable slsr_process_phi.
30552 (create_phi_basis): Fix double counting of candidate adjustment.
30553
30554 2013-05-06 Richard Biener <rguenther@suse.de>
30555
30556 PR middle-end/57147
30557 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30558 the edge is also fallthru, preserve it and just clear the
30559 abnormal flag.
30560 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30561 also complex, preserve that and just clear the fallthru flag.
30562 * tree-inline.c (update_ssa_across_abnormal_edges): Also
30563 update virtual operands.
30564
30565 2013-05-06 Alan Modra <amodra@gmail.com>
30566
30567 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30568 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30569 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30570 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30571 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30572 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30573
30574 2013-05-06 Alan Modra <amodra@gmail.com>
30575
30576 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30577 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
30578 (DEFAULT_ASM_ENDIAN): Define.
30579 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30580 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30581 Update -K PIC clause from sysv4.h.
30582 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30583 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30584
30585 2013-05-06 Alan Modra <amodra@gmail.com>
30586
30587 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30588 twice for little-endian.
30589 (ashrdi3_no_power, ashrdi3): Support little-endian.
30590
30591 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30592
30593 PR target/55303
30594 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30595 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30596 related expanders.
30597 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30598 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30599 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30600 New predicates.
30601
30602 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30603 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30604
30605 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30606 * config/pa/pa.opt: Make mbig-switch a no-op.
30607 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30608 (CASE_VECTOR_MODE): Always return SImode.
30609 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30610 for the !TARGET_BIG_SWITCH case.
30611 * config/pa/pa-linux.h: Likewise.
30612 * config/pa/pa-openbsd.h: Likewise.
30613 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30614 * config/pa/pa.md (short_jump): Remove define_insn.
30615 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30616 (casesi0): Remove define_insn.
30617 (type): Remove btable_branch.
30618 (pa_combine_type): Likewise.
30619 (in_nullified_branch_delay): Likewise.
30620 (in_call_delay): Likewise.
30621 (define_delay): Likewise.
30622 (define_insn_reservation "Z3"): Likewise.
30623 (define_insn_reservation "Z4"): Likewise.
30624 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30625 (pa_adjust_insn_length): Remove adjustment for btable branches.
30626 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30627 and mno-big-switch
30628
30629 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30630
30631 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30632 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30633 Add m->r,x alternatives.
30634 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30635 splitters using SWI48x mode iterator.
30636 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30637 TARGET_64BIT. Add m->x alternative.
30638 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30639 Add o->x alternative. Enable for TARGET_SSE.
30640 (sse_storeq): Remove expander.
30641 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30642 with memory input operand.
30643 (*vec_extractv2di_1 splitter): New.
30644 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30645 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30646
30647 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30648
30649 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30650 (INT_LOWPART): Delete.
30651 (extract_MB): Adjust.
30652 (extract_ME): Adjust.
30653 (print_operand): Adjust.
30654
30655 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30656
30657 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30658 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30659 (reg_or_logical_cint_operand, easy_fp_constant,
30660 logical_const_operand): Delete "CONST_DOUBLE" case.
30661 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30662 "HOST_BITS_PER_WIDE_INT == 64" test.
30663 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30664 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30665 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30666 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30667 test.
30668 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30669 CONST_DOUBLE DImode/VOIDmode case.
30670 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30671 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30672 CONST_DOUBLE VOIDmode case.
30673 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30674 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30675 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30676 Delete CONST_DOUBLE case.
30677 (splitters for mov FMOVE64 const_double): Delete
30678 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30679 "HOST_BITS_PER_WIDE_INT >= 64" test.
30680 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30681 case.
30682 (mov DI const_double): Delete.
30683
30684 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30685
30686 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30687 on op shows all bits zero in mode of a lowpart subreg, return zero.
30688
30689 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30690
30691 PR target/57150
30692 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30693 to save TFmode registers and DImode to save TImode registers for
30694 caller save operations.
30695 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30696 mark being partially clobbered since they only use the first
30697 double word.
30698
30699 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30700 and TDmode only use the upper 64-bits of each VSX register.
30701
30702 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30703
30704 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30705 (find_candidates_in_block): Disable slsr_process_phi.
30706
30707 2013-05-03 Guozhi Wei <carrot@google.com>
30708
30709 * coverage.c (coverage_obj_init): Move the construction of gcov
30710 constructor to ...
30711 (build_init_ctor): ... here.
30712
30713 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30714
30715 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30716 (slsr_cand_d): Redefine def_phi.
30717 (stride_status, phi_adjust_status, count_phis_status): New enums.
30718 (find_phi_def): New.
30719 (find_basis_for_base_expr): New.
30720 (find_basis_for_candidate): Handle hidden bases.
30721 (alloc_cand_and_find_basis): Handle phi candidates.
30722 (slsr_process_phi): New.
30723 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30724 (create_mul_imm_cand): Likewise.
30725 (create_add_ssa_cand): Exclude phi base candidates.
30726 (create_add_imm_cand): Likewise.
30727 (slsr_process_cast): Likewise.
30728 (slsr_process_copy): Likewise.
30729 (find_candidates_in_block): Handle phi candidates.
30730 (dump_candidate): Likewise.
30731 (unconditional_cands): Delete.
30732 (unconditional_cands_with_known_stride_p): Delete.
30733 (phi_dependent_cand_p): New.
30734 (cand_increment): Handle phi-dependent candidates.
30735 (replace_dependent): Delete.
30736 (replace_mult_candidate): New.
30737 (replace_unconditional_candidate): New.
30738 (incr_vec_index): Move to avoid forward reference.
30739 (create_add_on_incoming_edge): New.
30740 (create_phi_basis): New.
30741 (replace_dependents): Delete.
30742 (replace_conditional_candidate): New.
30743 (phi_add_costs): New.
30744 (replace_uncond_cands_and_profitable_phis): New.
30745 (record_increment): Handle phi adjustments.
30746 (record_phi_increments): New.
30747 (record_increments): Handle phi adjustments.
30748 (phi_incr_cost): New.
30749 (lowest_cost_path): Handle phis.
30750 (total_savings): Likewise.
30751 (analyze_increments): Likewise.
30752 (ncd_with_phi): New.
30753 (ncd_of_cand_and_phis): New.
30754 (nearest_common_dominator_for_cands): Handle phi increments.
30755 (all_phi_incrs_profitable): New.
30756 (replace_profitable_candidates): Handle phi-dependent candidates.
30757 (analyze_candidates_and_replace): Likewise.
30758
30759 2013-05-03 Teresa Johnson <tejohnson@google.com>
30760
30761 PR bootstrap/57154
30762 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30763 do not exceed REG_BR_PROB_BASE.
30764
30765 2013-05-03 Jeff Law <law@redhat.com>
30766
30767 PR tree-optimization/57144
30768 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30769 operand of the condition will bit into the new type when eliminating
30770 a cast feeding a condition.
30771
30772 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30773
30774 PR rtl-optimization/57130
30775 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30776 of COMPARE as in_code to the recursive call if needed.
30777
30778 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30779
30780 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30781 (enabled): Handle new members.
30782 * config/i386/sse.md (*vec_concatv2si): Merge from
30783 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30784 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30785
30786 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30787
30788 PR tree-optimization/57027
30789 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30790 for fnms opportunity, check we got the prerequisite kind
30791 of tree / gimple before using accessor functions.
30792
30793 2013-05-03 Richard Biener <rguenther@suse.de>
30794
30795 * double-int.h (lshift): New overload without precision
30796 and arith argument.
30797 (operator *=, operator +=, operator -=): Move ...
30798 * double-int.c (operator *=, operator +=, operator -=): ... here
30799 and implement more efficiently.
30800 (mul_double_with_sign): Remove.
30801 (lshift_double): Adjust to take unsinged shift argument, push
30802 dispatching code to callers.
30803 (mul_double_wide_with_sign): Add early out for callers that
30804 are not interested in high parts or overflow.
30805 (lshift): New function.
30806 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30807 dispatch code here.
30808 (lrotate, rrotate): Use logical shifts.
30809 * expr.c (get_inner_reference): Use lshift.
30810 * fixed-value.c (do_fixed_divide): Likewise.
30811 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30812 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30813 (indirect_refs_may_alias_p): Likewise.
30814 (stmt_kills_ref_p_1): Likewise.
30815
30816 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30817
30818 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30819
30820 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30821
30822 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30823 scalar form of FABD instruction.
30824
30825 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30826
30827 * lra-constraints.c (process_alt_operands): Add checking alt
30828 number to choose the best alternative.
30829
30830 2013-05-02 Richard Biener <rguenther@suse.de>
30831
30832 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30833 bitmap and its handling.
30834 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30835
30836 2013-05-02 Richard Biener <rguenther@suse.de>
30837
30838 PR middle-end/57140
30839 * tree-inline.c (copy_loops): Properly handle removed loops.
30840 (copy_cfg_body): Mark destination loops for fixup if source
30841 loops needed fixup.
30842
30843 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30844
30845 PR target/56732
30846 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30847 generating simple_return for naked functions.
30848
30849 2013-05-02 Martin Jambor <mjambor@suse.cz>
30850
30851 PR middle-end/56988
30852 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30853 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30854 flags match.
30855 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30856 ipa_agg_replacement_value structures.
30857 (known_aggs_to_agg_replacement_list): Likewise.
30858 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30859 (read_agg_replacement_chain): Likewise.
30860 (ipcp_transform_function): Also check that by_ref flags match.
30861
30862 2013-05-02 Richard Biener <rguenther@suse.de>
30863
30864 * graphds.h (struct graph): Add obstack member.
30865 * graphds.c (new_graph): Initialize obstack and allocate
30866 vertices from it.
30867 (add_edge): Allocate edge from the obstack.
30868 (free_graph): Free the obstack instead of all edges and vertices.
30869
30870 2013-05-02 Teresa Johnson <tejohnson@google.com>
30871
30872 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30873 divides.
30874 * cfg.c (update_bb_profile_for_threading): Ditto.
30875 * tree-inline.c (copy_bb): Ditto.
30876 (copy_edges_for_bb): Ditto.
30877 (initialize_cfun): Ditto.
30878 (copy_cfg_body): Ditto.
30879 (expand_call_inline): Ditto.
30880 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30881 (estimate_node_size_and_time): Ditto.
30882 (inline_merge_summary): Ditto.
30883 * cgraphclones.c (cgraph_clone_edge): Ditto.
30884 (cgraph_clone_node): Ditto.
30885 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30886 (compute_trg_info): Ditto.
30887
30888 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30889
30890 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30891 S reg when fp attribute set.
30892 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30893
30894 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30895
30896 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30897 New pattern.
30898 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30899 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30900 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30901
30902 2013-05-02 Richard Biener <rguenther@suse.de>
30903
30904 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30905 (struct instantiate_cache_entry): New type.
30906 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30907 (struct instantiate_cache_type): New type.
30908 (set_instantiated_value, get_instantiated_value): Remove.
30909 (get_instantiated_value_entry): New function.
30910 (instantiate_scev_name): Use the new cache and adjust.
30911 (instantiate_scev_poly): Adjust.
30912 (instantiate_scev_binary): Likewise.
30913 (instantiate_array_ref): Likewise.
30914 (instantiate_scev_convert): Likewise.
30915 (instantiate_scev_not): Likewise.
30916 (instantiate_scev_3): Likewise.
30917 (instantiate_scev_2): Likewise.
30918 (instantiate_scev_r): Likewise.
30919 (instantiate_scev): Likewise.
30920 (resolve_mixers): Likewise.
30921
30922 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30923
30924 PR target/57091
30925 * lra-constraints.c (best_small_class_operands_num): Remove.
30926 (process_alt_operands): Remove small_class_operands_num. Take
30927 small classes operands into losers and only if the operand is not
30928 matched. Modify debugging output.
30929 (curr_insn_transform): Remove best_small_class_operands_num.
30930 Print insn name.
30931
30932 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30933
30934 * config/aarch64/aarch64-builtins.c
30935 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30936 * config/aarch64/aarch64-simd-builtins.def
30937 (reduc_splus_): Add new modes.
30938 (reduc_uplus_): New.
30939 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30940 (reduc_uplus_v4sf): Likewise.
30941 (reduc_splus_v4sf): Likewise.
30942 (aarch64_addv<mode>): Likewise.
30943 (reduc_uplus_<mode>): Likewise.
30944 (reduc_splus_<mode>): Likewise.
30945 (aarch64_addvv2di): Likewise.
30946 (reduc_uplus_v2di): Likewise.
30947 (reduc_splus_v2di): Likewise.
30948 (aarch64_addvv2si): Likewise.
30949 (reduc_uplus_v2si): Likewise.
30950 (reduc_splus_v2si): Likewise.
30951 (reduc_<sur>plus_<mode>): New.
30952 (reduc_<sur>plus_v2di): Likewise.
30953 (reduc_<sur>plus_v2si): Likewise.
30954 (reduc_<sur>plus_v4sf): Likewise.
30955 (aarch64_addpv4sf): Likewise.
30956 * config/aarch64/arm_neon.h
30957 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30958 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30959 add UNSPEC_SADDV, UNSPEC_UADDV.
30960 (SUADDV): New.
30961 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30962
30963 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30964
30965 * config/aarch64/arm_neon.h
30966 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30967
30968 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30969
30970 * config/aarch64/aarch64-builtins
30971 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30972
30973 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30974
30975 * config/aarch64/aarch64-simd-builtins.def
30976 (reduc_smax_): New.
30977 (reduc_smin_): Likewise.
30978 (reduc_umax_): Likewise.
30979 (reduc_umin_): Likewise.
30980 (reduc_smax_nan_): Likewise.
30981 (reduc_smin_nan_): Likewise.
30982 (fmax): Remove.
30983 (fmin): Likewise.
30984 (smax): Update for V2SF, V4SF and V2DF modes.
30985 (smin): Likewise.
30986 (smax_nan): New.
30987 (smin_nan): Likewise.
30988 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30989 (<su><maxmin><mode>3): ...This, refactor.
30990 (s<maxmin><mode>3): New.
30991 (<maxmin_uns><mode>3): Likewise.
30992 (reduc_<maxmin_uns>_<mode>): Refactor.
30993 (reduc_<maxmin_uns>_v4sf): Likewise.
30994 (reduc_<maxmin_uns>_v2si): Likewise.
30995 (aarch64_<fmaxmin><mode>: Remove.
30996 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30997 new builtin names.
30998 (vmin<q>_f<32,64>): Likewise.
30999 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
31000 (FMAXMIN): New.
31001 (su): Add mappings for smax, smin, umax, umin.
31002 (maxmin): New.
31003 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
31004 (FMAXMIN): Rename as...
31005 (FMAXMIN_UNS): ...This.
31006 (maxminv): Remove.
31007 (fmaxminv): Likewise.
31008 (fmaxmin): Likewise.
31009 (maxmin_uns): New.
31010 (maxmin_uns_op): Likewise.
31011
31012 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31013
31014 * config/aarch64/arm_neon.h
31015 (vac<ge, gt><sd>_f<32, 64>): Rename to...
31016 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
31017 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
31018
31019 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31020
31021 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
31022 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
31023
31024 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31025
31026 * config/aarch64/aarch64-simd.md
31027 (vcond<mode>_internal): Handle special cases for constant masks.
31028 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
31029 (vcondu<mode><mode>): Likewise.
31030 (vcond<v_cmp_result><mode>): New.
31031
31032 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31033
31034 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
31035 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
31036 * config/aarch64/aarch64-simd-builtins.def
31037 (cmeq): Update to BUILTIN_VALLDI.
31038 (cmgt): Likewise.
31039 (cmge): Likewise.
31040 (cmle): Likewise.
31041 (cmlt): Likewise.
31042 * config/aarch64/arm_neon.h
31043 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
31044 to builtins or C as appropriate.
31045
31046 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31047
31048 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
31049 (cmgeu): ...This.
31050 (cmhi): Rename to...
31051 (cmgtu): ...This.
31052 * config/aarch64/aarch64-simd.md
31053 (simd_mode): Add SF.
31054 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
31055 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
31056 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
31057 (cstore<mode>_neg): ...This.
31058 * config/aarch64/iterators.md
31059 (VALLF): new.
31060 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
31061 (COMPARISONS): New.
31062 (UCOMPARISONS): Likewise.
31063 (optab): Add missing comparisons.
31064 (n_optab): New.
31065 (cmp_1): Likewise.
31066 (cmp_2): Likewise.
31067 (CMP): Likewise.
31068 (cmp): Remove.
31069 (VCMP_S): Likewise.
31070 (VCMP_U): Likewise.
31071 (V_cmp_result): Add DF, SF modes.
31072 (v_cmp_result): Likewise.
31073 (v): Likewise.
31074 (vmtype): Likewise.
31075 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
31076
31077 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
31078
31079 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
31080 define_insn to define_insn_and_split.
31081 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
31082 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
31083 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
31084 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
31085 (thumb2_negscc): Likewise.
31086
31087 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
31088
31089 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
31090
31091 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
31092
31093 * config/arm/thumb2.md: Remove trailing whitespaces.
31094
31095 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31096
31097 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
31098 Use gen_int_mode rather than GEN_INT.
31099
31100 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
31101
31102 * value-prof.c (stream_in_histogram_value): Remove the strayed
31103 debug_gimple_stmt.
31104
31105 2013-04-30 Richard Biener <rguenther@suse.de>
31106
31107 PR middle-end/57122
31108 * cfghooks.c (split_edge): Properly check for the loop latch edge.
31109
31110 2013-04-30 Richard Biener <rguenther@suse.de>
31111
31112 PR middle-end/57107
31113 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
31114
31115 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
31116
31117 PR rtl-optimization/56957
31118 PR rtl-optimization/57105
31119 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
31120 variable. Use just INSN_UID for determining whether an insn
31121 should be only disconnected from the insn stream.
31122 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
31123
31124 2013-04-30 Jakub Jelinek <jakub@redhat.com>
31125
31126 PR tree-optimization/57104
31127 * tsan.c (instrument_expr): Don't instrument accesses to
31128 DECL_HARD_REGISTER VAR_DECLs.
31129
31130 2013-04-30 Richard Biener <rguenther@suse.de>
31131
31132 * function.h (loops_for_fn): New inline function.
31133 (set_loops_for_fn): Likewise.
31134 * cfgloop.h (place_new_loop): Add struct function parameter.
31135 (get_loop): Likewise.
31136 (get_loops): Likewise.
31137 (number_of_loops): Likewise.
31138 (fel_next): Adjust.
31139 (fel_init): Likewise.
31140 * cfg.c (get_loop_copy): Adjust.
31141 * cfgloop.c (flow_loops_dump): Likewise.
31142 (record_loop_exits): Likewise.
31143 (verify_loop_structure): Likewise.
31144 * cfgloopanal.c (mark_irreducible_loops): Likewise.
31145 (estimate_reg_pressure_cost): Likewise.
31146 (mark_loop_exit_edges): Likewise.
31147 * cfgloopmanip.c (place_new_loop): Likewise.
31148 (add_loop): Likewise.
31149 (duplicate_loop): Likewise.
31150 * graph.c (draw_cfg_nodes): Likewise.
31151 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31152 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31153 (extract_affine_chrec): Likewise.
31154 (build_scop_iteration_domain): Likewise.
31155 * graphite.c (graphite_initialize): Likewise.
31156 * ira-build.c (create_loop_tree_nodes): Likewise.
31157 (more_one_region_p): Likewise.
31158 (rebuild_regno_allocno_maps): Likewise.
31159 (mark_loops_for_removal): Likewise.
31160 (mark_all_loops_for_removal): Likewise.
31161 (remove_unnecessary_regions): Likewise.
31162 (ira_build): Likewise.
31163 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31164 * loop-init.c (fix_loop_structure): Likewise.
31165 (gate_rtl_move_loop_invariants): Likewise.
31166 (gate_rtl_unswitch): Likewise.
31167 (gate_rtl_unroll_and_peel_loops): Likewise.
31168 (rtl_doloop): Likewise.
31169 * lto-streamer-in.c (input_cfg): Likewise.
31170 * lto-streamer-out.c (output_cfg): Likewise.
31171 * modulo-sched.c (sms_schedule): Likewise.
31172 * predict.c (tree_estimate_probability): Likewise.
31173 (tree_estimate_probability_driver): Likewise.
31174 (estimate_loops): Likewise.
31175 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31176 (move_sese_region_to_fn): Likewise.
31177 (debug_loop_num): Likewise.
31178 * tree-chrec.c (chrec_evaluate): Likewise.
31179 (hide_evolution_in_other_loops_than_loop): Likewise.
31180 (chrec_component_in_loop_num): Likewise.
31181 (reset_evolution_in_loop): Likewise.
31182 (evolution_function_is_invariant_rec_p): Likewise.
31183 * tree-if-conv.c (main_tree_if_conversion): Likewise.
31184 * tree-inline.c (copy_loops): Likewise.
31185 (copy_cfg_body): Likewise.
31186 (tree_function_versioning): Likewise.
31187 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31188 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31189 Likewise.
31190 (add_to_evolution_1): Likewise.
31191 (scev_const_prop): Likewise.
31192 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31193 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31194 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31195 (tree_ssa_lim_initialize): Likewise.
31196 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31197 (verify_loop_closed_ssa): Likewise.
31198 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
31199 (tree_ssa_loop_im): Likewise.
31200 (tree_ssa_loop_unswitch): Likewise.
31201 (tree_vectorize): Likewise.
31202 (check_data_deps): Likewise.
31203 (tree_ssa_loop_ivcanon): Likewise.
31204 (tree_ssa_loop_bounds): Likewise.
31205 (tree_complete_unroll): Likewise.
31206 (tree_complete_unroll_inner): Likewise.
31207 (tree_parallelize_loops): Likewise.
31208 (tree_ssa_loop_prefetch): Likewise.
31209 (tree_ssa_loop_ivopts): Likewise.
31210 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31211 * tree-vectorizer.c (vectorize_loops): Likewise.
31212
31213 2013-04-29 Mike Frysinger <vapier@gentoo.org>
31214
31215 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31216 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31217 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31218 with EABI_LINK_SPEC.
31219
31220 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31221
31222 PR target/44578
31223 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31224 alternative.
31225
31226 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
31227
31228 PR target/57097
31229 * lra-constraints.c (process_alt_operands): Discourage a bit more
31230 using memory for pseudos. Print cost dump for alternatives.
31231 Modify cost values for conflicts with early clobbers.
31232 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31233
31234 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31235
31236 PR target/57098
31237 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31238
31239 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31240
31241 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31242 from/to S register.
31243 (movdi_aarch64): Support LDR/STR from/to D register.
31244
31245 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31246
31247 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31248 or higher by default.
31249
31250 2013-04-29 Richard Biener <rguenther@suse.de>
31251
31252 PR middle-end/57075
31253 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31254 even if not adding abnormal edges for calls that can make
31255 abnormal gotos.
31256
31257 2013-04-29 Richard Biener <rguenther@suse.de>
31258
31259 PR middle-end/57103
31260 * tree-cfg.c (move_stmt_op): Fix condition under which to update
31261 TREE_BLOCK.
31262 (move_stmt_r): Remove redundant checking.
31263
31264 2013-04-29 Teresa Johnson <tejohnson@google.com>
31265
31266 PR bootstrap/57077
31267 * basic-block.h (apply_scale): New function.
31268 (apply_probability): Use apply_scale.
31269 * gimple-streamer-in.c (input_bb): Ditto.
31270 * lto-streamer-in.c (input_cfg): Ditto.
31271 * lto-cgraph.c (merge_profile_summaries): Ditto.
31272 * tree-optimize.c (execute_fixup_cfg): Ditto.
31273 * tree-inline.c (copy_bb): Update comment to use apply_scale.
31274 (copy_edges_for_bb): Ditto.
31275 (copy_cfg_body): Ditto.
31276
31277 2013-04-29 Tom de Vries <tom@codesourcery.com>
31278
31279 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31280 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31281 (tail_merge_optimize): Handle current_loops == NULL.
31282
31283 2013-04-26 Jeff Law <law@redhat.com>
31284
31285 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31286 (simplify_cond_using_ranges): Generalize code to simplify
31287 COND_EXPRs where one argument is a constant and the other
31288 is an SSA_NAME created by an integral type conversion.
31289
31290 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31291
31292 * config/arm/arm.md (store_minmaxsi): Use only when
31293 optimize_insn_for_size_p.
31294
31295 2013-04-29 Christian Bruel <christian.bruel@st.com>
31296
31297 PR target/57108
31298 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31299
31300 2013-04-29 Richard Biener <rguenther@suse.de>
31301
31302 PR middle-end/57089
31303 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31304 loop tree make sure to schedule a fixup for the child as well.
31305 (expand_omp_for_generic): Properly add loops.
31306 (expand_omp_for_static_nochunk): Likewise.
31307 (expand_omp_for_static_chunk): Likewise.
31308 (expand_omp_for): For the degenerate case fixup loops.
31309 (expand_omp_sections): Fix default bb placement in loops.
31310 (expand_omp_atomic_pipeline): Properly add loops.
31311
31312 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31313
31314 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31315
31316 2013-04-29 Tom de Vries <tom@codesourcery.com>
31317
31318 * tree-ssa-tail-merge.c: Update header comment.
31319
31320 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31321
31322 * config/aarch64/arm_neon.h
31323 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31324 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31325 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31326 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31327 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31328 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31329 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31330 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31331
31332 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31333
31334 * config/aarch64/aarch64-simd.md
31335 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31336 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31337 fix_trunc, fixuns_trunc.
31338 (ftrunc<VDQF:mode>2): New.
31339 * config/aarch64/iterators.md (optab): Add fix, fixuns.
31340 (fix_trunc_optab): New.
31341
31342 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31343
31344 * config/aarch64/aarch64-builtins.c
31345 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31346 iceilf, lround, iroundf.
31347
31348 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31349
31350 PR target/54349
31351 * config/i386/i386.h (enum ix86_tune_indices)
31352 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31353 New, split from X86_TUNE_INTER_UNIT_MOVES.
31354 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31355 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31356 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31357 (TARGET_INTER_UNIT_MOVES): Remove.
31358 * config/i386/i386.c (initial_ix86_tune_features): Update.
31359 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31360 (ix86_expand_convert_uns_didf_sse): Use
31361 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31362 (ix86_expand_vector_init_one_nonzero): Ditto.
31363 (ix86_expand_vector_init_interleave): Ditto.
31364 (inline_secondary_memory_needed): Return true for moves from SSE class
31365 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31366 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31367 * config/i386/constraints.md (Yi, Ym): Depend on
31368 TARGET_INTER_UNIT_MOVES_TO_VEC.
31369 (Yj, Yn): New constraints.
31370 * config/i386/i386.md (*movdi_internal): Change constraints of
31371 operand 1 from Yi to Yj and from Ym to Yn.
31372 (*movsi_internal): Ditto.
31373 (*movdf_internal): Ditto.
31374 (*movsf_internal): Ditto.
31375 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31376 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31377 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31378 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31379 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31380 * config/i386/sse.md (movdi_to_sse): Ditto.
31381 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31382 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31383 TARGET_INTER_UNIT_MOVES.
31384 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31385 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31386 instead of TARGET_INTER_UNIT_MOVES.
31387 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31388 operand 1 from Yi to Yj and from Ym to Yn.
31389
31390 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31391
31392 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31393 (float_truncate_hi_): Likewise.
31394 (float_extend_lo_): Likewise.
31395 (float_truncate_lo_): Likewise.
31396 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31397 (aarch64_float_extend_lo_v2df): Likewise.
31398 (vec_unpacks_hi_v4sf): Likewise.
31399 (aarch64_float_truncate_lo_v2sf): Likewise.
31400 (aarch64_float_truncate_hi_v4sf): Likewise.
31401 (vec_pack_trunc_v2df): Likewise.
31402 (vec_pack_trunc_df): Likewise.
31403
31404 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31405
31406 * config/aarch64/aarch64-builtins.c
31407 (aarch64_fold_builtin): Fold float conversions.
31408 * config/aarch64/aarch64-simd-builtins.def
31409 (floatv2si, floatv4si, floatv2di): New.
31410 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31411 * config/aarch64/aarch64-simd.md
31412 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31413 * config/aarch64/iterators.md (FLOATUORS): New.
31414 (optab): Add float, floatuns.
31415 (su_optab): Likewise.
31416
31417 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31418
31419 * config/aarch64/aarch64-builtins.c
31420 (aarch64_builtin_vectorized_function): Use new names for
31421 fcvt builtins.
31422 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31423 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31424 (fcvtzu): Split as...
31425 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31426 (fcvtas): Split as...
31427 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31428 (fcvtau): Split as...
31429 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31430 (fcvtps): Split as...
31431 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31432 (fcvtpu): Split as...
31433 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31434 (fcvtms): Split as...
31435 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31436 (fcvtmu): Split as...
31437 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31438 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31439 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31440 (lfrintnusf, lfrintnudf): Likewise.
31441 * config/aarch64/aarch64-simd.md
31442 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31443 define_insn.
31444 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31445 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31446 (fcvt_pattern): Likewise.
31447
31448 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31449
31450 * config/aarch64/aarch64-simd.md
31451 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31452 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31453
31454 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31455
31456 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31457 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31458 (vrnd<a,m,n,p>_f32): Implement using builtins.
31459 (vrnd<i,x><q>_f<32, 64>): New.
31460
31461 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31462
31463 * config/aarch64/aarch64-builtins.c
31464 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31465 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31466 (frintz): Rename to...
31467 (btrunc): ...this.
31468 (frintp): Rename to...
31469 (ceil): ...this.
31470 (frintm): Rename to...
31471 (floor): ...this.
31472 (frinti): Rename to...
31473 (nearbyint): ...this.
31474 (frintx): Rename to...
31475 (rint): ...this.
31476 (frinta): Rename to...
31477 (round): ...this.
31478 * config/aarch64/aarch64-simd.md
31479 (aarch64_frint<frint_suffix><mode>): Delete.
31480 (<frint_pattern><mode>2): Convert to insn.
31481 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31482 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31483 (frint_pattern): Likewise.
31484 (frint_suffix): Likewise.
31485
31486 2013-04-29 Richard Biener <rguenther@suse.de>
31487
31488 PR tree-optimization/57081
31489 * loop-init.c: Include tree-flow.h.
31490 (loop_optimizer_finalize): Free number of iteration estimates.
31491 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31492
31493 2013-04-29 Jakub Jelinek <jakub@redhat.com>
31494
31495 PR tree-optimization/57083
31496 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31497 non-singleton shift count range, zero extend low_bound for uns case.
31498
31499 * config/i386/predicates.md (general_vector_operand): New predicate.
31500 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31501 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31502 if they aren't nonimmediate operands. If their original values
31503 satisfy const_vector_equal_evenodd_p, don't shift them.
31504 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31505 predicates. For the SSE4.1 case force operands[{1,2}] into registers
31506 if not nonimmediate_operand.
31507 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31508 instead of register_operand.
31509 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31510
31511 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
31512
31513 * stor-layout.c (finalize_size_functions): Allocate a structure and
31514 reset cfun before dumping the functions.
31515
31516 2013-04-27 Jakub Jelinek <jakub@redhat.com>
31517
31518 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31519
31520 PR target/56866
31521 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31522 use xop_pmacsdqh if uns_p.
31523 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31524 the immediate rotate count.
31525
31526 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
31527
31528 * rtl.h (struct rtx_def): Add comment for field jump.
31529 (LRA_SUBREG_P): New macro.
31530 * recog.c (register_operand): Check LRA_SUBREG_P.
31531 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31532 stack frame.
31533 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31534 (lra_final_code_change): Skip subreg change for operators.
31535 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31536 if there are no operand changes.
31537 * lra-constraints.c (curr_insn_set): New.
31538 (match_reload): Set LRA_SUBREG_P.
31539 (emit_spill_move): Ditto.
31540 (check_and_process_move): Use curr_insn_set. Process only single
31541 set insns. Don't initialize sec_mem_p and change_p.
31542 (simplify_operand_subreg): Use LRA_SUBREG_P.
31543 (reg_in_class_p): New function.
31544 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31545 of #ifdef. Add code to remove cycling.
31546 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31547 non-null disp. Reload inner instead of disp when base and index
31548 are null. Try to put lo_sum into register.
31549 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31550 (check_and_process_move): Move code for move cost check to
31551 simple_move_p. Remove equiv_substitution.
31552 (simple_move_p): New function.
31553 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31554 curr_insn_set. Call check_and_process_move only for single set
31555 insns. Use the new function. Move call of check_and_process_move
31556 after operand equiv substitution and address process.
31557
31558 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31559
31560 PR go/57045
31561 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31562 with nonlocal goto receivers or returns twice calls, ignore
31563 unininitialized values from abnormal edges to nl goto receiver
31564 or returns twice call.
31565
31566 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31567
31568 PR tree-optimization/57051
31569 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31570 and VEC_RSHIFT_EXPR if shift count is a multiple of element
31571 bitsize.
31572
31573 2013-04-26 Richard Biener <rguenther@suse.de>
31574
31575 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31576 (expand_omp_taskreg): Likewise. Mark loops for fixup.
31577 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31578 (fixup_loop_arrays_after_move): New function.
31579 (move_sese_region_to_fn): Properly outline the loop tree parts
31580 of the SESE region.
31581
31582 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
31583
31584 * config/i386/i386.md (type, unit): Fix long lines.
31585
31586 2013-04-26 Richard Biener <rguenther@suse.de>
31587
31588 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31589 (lto-streamer-out.o): Likewise.
31590 * cfgloop.c (init_loops_structure): Export, add struct function
31591 argument and adjust.
31592 (flow_loops_find): Adjust.
31593 * cfgloop.h (enum loop_estimation): Add EST_LAST.
31594 (init_loops_structure): Declare.
31595 * lto-streamer-in.c: Include cfgloop.h.
31596 (input_cfg): Input the loop tree.
31597 * lto-streamer-out.c: Include cfgloop.h.
31598 (output_cfg): Output the loop tree.
31599 (output_struct_function_base): Do not drop PROP_loops.
31600
31601 2013-03-26 Richard Biener <rguenther@suse.de>
31602
31603 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31604 (pass_build_cfg): Provide PROP_loops.
31605 (move_sese_region_to_fn): Remove loops that are outlined into fn
31606 for now.
31607 * tree-inline.c: Include cfgloop.h.
31608 (initialize_cfun): Do not drop PROP_loops.
31609 (copy_loops): New function.
31610 (copy_cfg_body): Copy loop structure.
31611 (tree_function_versioning): Initialize destination loop tree.
31612 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31613 (pass_parallelize_loops): Do IL verification.
31614 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31615 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31616 the CFG make sure we fixup loops as well.
31617 * tree-ssa-tail-merge.c: Include cfgloop.h.
31618 (replace_block_by): When merging loop latches mark loops for fixup.
31619 * lto-streamer-out.c (output_struct_function_base): Drop
31620 PROP_loops for now.
31621 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31622 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31623 * ipa-split.c: Include cfgloop.h.
31624 (split_function): Add the new return block to the loop tree root.
31625 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31626 whether we have removed the forwarder block.
31627 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31628 * cfgloop.h (place_new_loop): Declare.
31629 * cfgloopmanip.c (place_new_loop): Export.
31630 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31631 (tree-switch-conversion.o): Likewise.
31632 (tree-complex.o): Likewise.
31633 (tree-inline.o): Likewise.
31634 (tree-ssa-tailmerge.o): Likewise.
31635 (ipa-split.o): Likewise.
31636 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31637 (tree-ssa-copy.o): Likewise.
31638 * tree-switch-conversion.c: Include cfgloop.h
31639 (process_switch): If we emit a bit-test cascade, schedule loops
31640 for fixup.
31641 * tree-complex.c: Include cfgloop.h.
31642 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31643 * asan.c: Include cfgloop.h.
31644 (create_cond_insert_point): Properly add new basic-blocks to
31645 loops, schedule loop fixup.
31646 * cfgloop.c (verify_loop_structure): Check that looks are not
31647 marked for fixup.
31648 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31649 to loops.
31650 (expand_omp_for_generic): Likewise.
31651 (expand_omp_sections): Likewise.
31652 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31653 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31654 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31655 is initialized, not when loops are present.
31656 * tree-parloops.c (parallelize_loops): Remove checking here.
31657 * passes.c (init_optimization_passes): Schedule a copy-propagation
31658 pass before complete unrolling of inner loops.
31659
31660 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31661
31662 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31663 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31664 (colorize_init): Add argument to _WIN32 version.
31665 * toplev.c: Include diagnostic-color.h.
31666 (process_options): Default to -fdiagnostics-color=auto if
31667 GCC_COLORS env var is in the environment.
31668 * common.opt (fdiagnostics-color=): Add Var and Init.
31669 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31670 env var is in the environment, the default is auto rather than never.
31671
31672 * diagnostic.h (file_name_as_prefix): Add context argument.
31673 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31674 the string as locus.
31675 * langhooks.c (lhd_print_error_function): Adjust caller.
31676
31677 2013-04-25 Lawrence Crowl <crowl@google.com>
31678
31679 * var-tracking.c (shared_hash_def::htab):
31680 Change type to hash_table. Update dependent calls and types.
31681
31682 2013-04-25 Lawrence Crowl <crowl@google.com>
31683
31684 * Makefile.in: Update as needed below.
31685
31686 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31687 Move declaration to after the type's method definitons.
31688
31689 * attribs.c (htab_t scoped_attributes::attribute_hash):
31690 Change type to hash_table. Update dependent calls and types.
31691
31692 * bitmap.c (htab_t bitmap_desc_hash):
31693 Change type to hash_table. Update dependent calls and types.
31694
31695 * cselib.c (htab_t cselib_hash_table):
31696 Change type to hash_table. Update dependent calls and types.
31697
31698 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31699 (hash_string_slot_node): Move implementation into lto-streamer.h
31700 struct string_slot_hasher.
31701 (eq_string_slot_node): Likewise.
31702
31703 * data-streamer-out.c: Update output_block::string_hash_table
31704 dependent calls and types.
31705
31706 * dwarf2cfi.c (htab_t trace_index):
31707 Change type to hash_table. Update dependent calls and types.
31708
31709 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31710 Change type to hash_table. Update dependent calls and types.
31711 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31712 (htab_t optimize_external_refs::map): Likewise.
31713 (htab_t output_comp_unit::extern_map): Likewise.
31714 (htab_t output_comdat_type_unit::extern_map): Likewise.
31715 (htab_t output_macinfo::macinfo_htab): Likewise.
31716 (htab_t optimize_location_lists::htab): Likewise.
31717 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31718
31719 * except.c (htab_t ehspec_hash_type):
31720 Change type to hash_table. Update dependent calls and types.
31721 (assign_filter_values::ttypes): Likewise.
31722 (assign_filter_values::ehspec): Likewise.
31723 (sjlj_assign_call_site_values::ar_hash): Likewise.
31724 (convert_to_eh_region_ranges::ar_hash): Likewise.
31725
31726 * gcse.c (htab_t pre_ldst_table):
31727 Change type to hash_table. Update dependent calls and types.
31728
31729 * ggc-common.c (htab_t saving_htab):
31730 Change type to hash_table. Update dependent calls and types.
31731 (htab_t loc_hash): Likewise.
31732 (htab_t ptr_hash): Likewise.
31733 (call_count): Rename ggc_call_count.
31734 (call_alloc): Rename ggc_call_alloc.
31735 (loc_descriptor): Rename make_loc_descriptor.
31736 (add_statistics): Rename ggc_add_statistics.
31737
31738 * ggc-common.c (saving_htab):
31739 Change type to hash_table. Update dependent calls and types.
31740
31741 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31742 (push_gimplify_context): Likewise.
31743 (pop_gimplify_context): Likewise.
31744 (struct gimple_temp_hash_elt): Added.
31745 (struct gimplify_hasher): Likewise.
31746 (struct gimplify_ctx.temp_htab):
31747 Change type to hash_table. Update dependent calls and types.
31748
31749 * gimple-fold.c: Include gimplify-ctx.h.
31750
31751 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31752 Change type to hash_table. Update dependent calls and types.
31753 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31754 avoid potential global name collision.
31755
31756 * gimplify.c: Include gimplify-ctx.h.
31757 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31758 (htab_t gimplify_ctx::temp_htab):
31759 Update dependent calls and types for new type hash_table.
31760 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31761 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31762
31763 * gimplify-ctx.h: New.
31764 (struct gimple_temp_hash_elt): Move from gimplify.c.
31765 (class gimplify_hasher): New.
31766 (struct gimplify_ctx): Move from gimple.h.
31767 (htab_t gimplify_ctx::temp_htab):
31768 Change type to hash_table. Update dependent calls and types.
31769
31770 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31771 (htab_t ivs_params::newivs_index):
31772 Change type to hash_table. Update dependent calls and types.
31773 (htab_t ivs_params::params_index): Likewise.
31774 (htab_t print_generated_program::params_index): Likewise.
31775 (htab_t gloog::newivs_index): Likewise.
31776 (htab_t gloog::params_index): Likewise.
31777
31778 * graphite.c: Include graphite-htab.h.
31779 4htab_t graphite_transform_loops::bb_pbb_mapping):
31780 Change type to hash_table. Update dependent calls and types.
31781
31782 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31783 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31784 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31785
31786 * graphite-dependences.c: Include graphite-htab.h.
31787 (loop_is_parallel_p): Change hash table type of parameter.
31788
31789 * graphite-htab.h: New.
31790 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31791 (extern find_pbb_via_hash): Move from graphite-poly.h.
31792 (extern loop_is_parallel_p): Move from graphite-poly.h.
31793 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31794
31795 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31796 (extern loop_is_parallel_p): Move to graphite-htab.h.
31797 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31798
31799 * haifa-sched.c (htab_t delay_htab):
31800 Change type to hash_table. Update dependent calls and types.
31801 (htab_t delay_htab_i2): Likewise.
31802
31803 * ira-color.c (htab_t allocno_hard_regs_htab):
31804 Change type to hash_table. Update dependent calls and types.
31805
31806 * ira-costs.c (htab_t cost_classes_htab):
31807 Change type to hash_table. Update dependent calls and types.
31808
31809 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31810 Change type to hash_table. Update dependent calls and types.
31811
31812 * loop-iv.c (htab_t bivs):
31813 Change type to hash_table. Update dependent calls and types.
31814
31815 * loop-unroll.c (htab_t opt_info::insns_to_split):
31816 Change type to hash_table. Update dependent calls and types.
31817 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31818
31819 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31820 (struct string_slot_hasher): New.
31821 (htab_t output_block::string_hash_table):
31822 Change type to hash_table. Update dependent calls and types.
31823
31824 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31825 (htab_t file_name_hash_table):
31826 Change type to hash_table. Update dependent calls and types.
31827
31828 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31829 calls and types.
31830
31831 * lto-streamer.c (htab_t tree_htab):
31832 Change type to hash_table. Update dependent calls and types.
31833
31834 * omp-low.c: Include gimplify-ctx.h.
31835
31836 * passes.c (htab_t name_to_pass_map):
31837 Change type to hash_table. Update dependent calls and types.
31838 (pass_traverse): Rename to passes_pass_traverse.
31839
31840 * plugin.c (htab_t event_tab):
31841 Change type to hash_table. Update dependent calls and types.
31842
31843 * postreload-gcse.c (htab_t expr_table):
31844 Change type to hash_table. Update dependent calls and types.
31845 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31846
31847 * sese.c (debug_rename_map_1): Make extern.
31848 (htab_t copy_bb_and_scalar_dependences::rename_map):
31849 Change type to hash_table. Update dependent calls and types.
31850
31851 * sese.h (extern debug_rename_map): Move to .c file.
31852
31853 * store-motion.c (htab_t store_motion_mems_table):
31854 Change type to hash_table. Update dependent calls and types.
31855
31856 * trans-mem.c (htab_t tm_new_mem_hash):
31857 Change type to hash_table. Update dependent calls and types.
31858
31859 * tree-browser.c (htab_t TB_up_ht):
31860 Change type to hash_table. Update dependent calls and types.
31861
31862 * tree-cfg.c (htab_t discriminator_per_locus):
31863 Change type to hash_table. Update dependent calls and types.
31864
31865 * tree-complex.c: Include tree-hasher.h
31866 (htab_t complex_variable_components):
31867 Change type to hash_table. Update dependent calls and types.
31868
31869 * tree-eh.c (htab_t finally_tree):
31870 Change type to hash_table. Update dependent calls and types.
31871
31872 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31873 struct int_tree_hasher.
31874 (extern int_tree_map_eq): Likewise.
31875 (uid_decl_map_hash): Removed.
31876 (extern decl_tree_map_eq): Likewise.
31877
31878 * tree-hasher.h: New.
31879 (struct int_tree_hasher): New.
31880 (typedef int_tree_htab_type): New.
31881
31882 * tree-inline.c: Include gimplify-ctx.h.
31883
31884 * tree-mudflap.c: Include gimplify-ctx.h.
31885
31886 * tree-parloops.c: Include tree-hasher.h.
31887 (htab_t eliminate_local_variables_stmt::decl_address):
31888 Change type to hash_table. Update dependent calls and types.
31889 (htab_t separate_decls_in_region::decl_copies): Likewise.
31890
31891 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31892 Change type to hash_table. Update dependent calls and types.
31893
31894 * tree-sra.c (candidates):
31895 Change type to hash_table. Update dependent calls and types.
31896
31897 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31898 in tree-flow.h.
31899 (int_tree_map_hash): Likewise.
31900
31901 * tree-ssa-dom.c (htab_t avail_exprs):
31902 Change type to hash_table. Update dependent calls and types.
31903
31904 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31905 Change type to hash_table. Update dependent calls and types.
31906
31907 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31908 Change type to hash_table. Update dependent calls and types.
31909
31910 * tree-ssa-phiopt.c (seen_ssa_names):
31911 Change type to hash_table. Update dependent calls and types.
31912
31913 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31914 Change type to hash_table. Update dependent calls and types.
31915
31916 * tree-ssa-uncprop.c (equiv):
31917 Change type to hash_table. Update dependent calls and types.
31918
31919 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31920
31921 PR rtl-optimization/57003
31922 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31923 call note_stores with kill_clobbered_value callback again after
31924 killing regs_invalidated_by_call.
31925
31926 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31927
31928 * config/aarch64/aarch64-simd.md
31929 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31930 (aarch64_simd_bsl<mode>): Likewise.
31931 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31932
31933 2013-04-25 Marek Polacek <polacek@redhat.com>
31934
31935 PR tree-optimization/57066
31936 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31937
31938 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31939
31940 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31941
31942 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31943
31944 * config/aarch64/aarch64-builtins.c
31945 (aarch64_fold_builtin): New.
31946 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31947 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31948 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31949 * config/aarch64/arm_neon.h
31950 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31951
31952 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31953 Tejas Belagod <tejas.belagod@arm.com>
31954
31955 * config/aarch64/aarch64-builtins.c
31956 (aarch64_gimple_fold_builtin): New.
31957 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31958 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31959 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31960 (addvv4sf): Update.
31961 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31962
31963 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31964
31965 * config/aarch64/aarch64.md
31966 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31967
31968 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31969
31970 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31971 (*ngcsi_uxtw): New pattern.
31972
31973 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31974 Julian Brown <julian@codesourcery.com>
31975
31976 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31977 (TB_DREG): Add T_V4HF.
31978 (v4hf_UP): New macro.
31979 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31980 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31981 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31982 built-ins.
31983 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31984 (arm_vector_mode_supported_p): Handle V4HF.
31985 (arm_mangle_map): Handle V4HFmode.
31986 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31987 * config/arm/arm_neon_builtins.def: Add entries for
31988 vcvtv4hfv4sf, vcvtv4sfv4hf.
31989 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31990 (neon_vcvtv4hfv4sf): Likewise.
31991 * config/arm/neon-gen.ml: Handle half-precision floating point
31992 features.
31993 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31994 * config/arm/arm_neon.h: Regenerate.
31995 * config/arm/neon.ml (type elts): Add F16.
31996 (type vectype): Add T_float16x4, T_floatHF.
31997 (type vecmode): Add V4HF.
31998 (type features): Add Requires_FP_bit feature.
31999 (elt_width): Handle F16.
32000 (elt_class): Likewise.
32001 (elt_of_class_width): Likewise.
32002 (mode_of_elt): Refactor.
32003 (type_for_elt): Handle F16, fix error messages.
32004 (vectype_size): Handle T_float16x4.
32005 (vcvt_sh): New function.
32006 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
32007 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
32008 (string_of_mode): Handle V4HF.
32009 * doc/arm-neon-intrinsics.texi: Regenerate.
32010
32011 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32012
32013 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
32014 format specifier in 'X' case.
32015
32016 2013-04-25 Alan Modra <amodra@gmail.com>
32017
32018 PR target/57052
32019 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
32020 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
32021 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
32022 Repeat for many other rotate/shift and mask patterns using subregs.
32023 Name lshiftrt insns.
32024 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
32025 on WORDS_BIG_ENDIAN.
32026
32027 2013-04-25 Alan Modra <amodra@gmail.com>
32028
32029 * config.gcc: Support little-endian powerpc-linux targets.
32030 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
32031 (LINK_OS_LINUX_SPEC): Define.
32032 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
32033 Preserve MASK_LITTLE_ENDIAN.
32034 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
32035 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
32036 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
32037 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
32038 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
32039 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
32040 Correct fp word order for little-endian. Don't shift toc entries
32041 smaller than a word for little-endian.
32042 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
32043 (bswapdi2 splits): Correct low-part subreg for little-endian.
32044 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
32045 low/high where such is correct only for be.
32046 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
32047 little-endian for -mcall-aixdesc.
32048
32049 2013-04-25 Alan Modra <amodra@gmail.com>
32050
32051 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32052 replace_equiv_address_nv.
32053
32054 2013-04-25 Alan Modra <amodra@gmail.com>
32055
32056 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
32057
32058 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32059
32060 Revert:
32061 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32062 * rtl.h (struct rtx_def): ...
32063
32064 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32065
32066 PR rtl-optimizations/57046
32067 * lra-constraints (split_reg): Set up lra_risky_transformations_p
32068 for multi-reg splits.
32069
32070 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
32071
32072 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
32073
32074 2013-04-24 Sterling Augustine <saugustine@google.com>
32075
32076 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
32077 (comp_dir_string, debug_str_dwo_section): New.
32078 (DEBUG_STR_DWO_SECTION): Rename to ...
32079 (DEBUG_DWO_STR_SECTION): ... this.
32080 (DEBUG_NORM_STR_SECTION): Delete.
32081 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
32082 (DEBUG_STR_DWO_SECTION_FLAGS): New.
32083 (find_AT_string): Move most logic to ...
32084 (find_AT_string_in_table): ... here. New.
32085 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
32086 add_skeleton_AT_string. Delete logic.
32087 (output_skeleton_debug_sections): Remove call to
32088 add_top_level_skeleton_die_attrs.
32089 (add_comp_dir_attribute): Move logic to comp_dir_string.
32090 (dwarf2out_init): Initialize debug_str_dwo_section.
32091 (output_indirect_string): Call find_string_form.
32092 (output_indirect_strings): Rewrite.
32093 (prune_unused_types): Empty skeleton_debug_str_hash.
32094 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
32095 (dwarf2out_finish): Call output_indirect_strings.
32096
32097 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32098
32099 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
32100
32101 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32102
32103 * rtl.h (struct rtx_def): Add comment for field jump.
32104 (LRA_SUBREG_P): New macro.
32105 * recog.c (register_operand): Check LRA_SUBREG_P.
32106 * lra.c (lra): Add note at the end of RTL code. Align non-empty
32107 stack frame.
32108 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
32109 (lra_final_code_change): Skip subreg change for operators.
32110 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
32111 if there are no operand changes.
32112 * lra-constraints.c (curr_insn_set): New.
32113 (match_reload): Set LRA_SUBREG_P.
32114 (emit_spill_move): Ditto.
32115 (check_and_process_move): Use curr_insn_set. Process only single
32116 set insns. Don't initialize sec_mem_p and change_p.
32117 (simplify_operand_subreg): Use LRA_SUBREG_P.
32118 (reg_in_class_p): New function.
32119 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
32120 of #ifdef. Add code to remove cycling.
32121 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
32122 non-null disp. Reload inner instead of disp when base and index
32123 are null. Try to put lo_sum into register.
32124 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
32125 (check_and_process_move): Move code for move cost check to
32126 simple_move_p. Remove equiv_substitution.
32127 (simple_move_p): New function.
32128 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
32129 curr_insn_set. Call check_and_process_move only for single set
32130 insns. Use the new function. Move call of check_and_process_move
32131 after operand equiv substitution and address process.
32132
32133 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
32134
32135 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
32136 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
32137 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
32138
32139 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32140
32141 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
32142
32143 2013-04-24 Marek Polacek <polacek@redhat.com>
32144
32145 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32146 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32147 (select_loops_exit_conditions): Likewise.
32148 (number_of_iterations_for_all_loops): Likewise.
32149 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32150 (scev_analysis): Likewise.
32151
32152 2013-04-02 Catherine Moore <clm@codesourcery.com>
32153 Chao-ying Fu <fu@mips.com>
32154
32155 * config/mips/micromips.md (jraddiusp): New pattern.
32156 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32157 instruction if possible.
32158
32159 2013-04-24 Alan Modra <amodra@gmail.com>
32160
32161 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32162
32163 2013-04-24 Julian Brown <julian@codesourcery.com>
32164 Chung-Lin Tang <cltang@codesourcery.com>
32165
32166 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32167 dependency behavior in enumeration type DIE generation. Add TODO note
32168 to comments about future DW_FORM_sdata/udata re-work of related code.
32169
32170 2013-04-23 Lawrence Crowl <crowl@google.com>
32171
32172 * Makefile.in: Update as needed below.
32173
32174 * hash-table.h (class hash_table):
32175 Correct many methods with parameter types compare_type to the correct
32176 value_type. (Correct code was unlikely to notice the change.)
32177 (hash_table::elements_with_deleted) New.
32178 (class hashtable::iterator): New.
32179 (hashtable::begin()): New.
32180 (hashtable::end()): New.
32181 (FOR_EACH_HASH_TABLE_ELEMENT): New.
32182
32183 * statistics.c (statistics_hashes):
32184 Change type to hash_table. Update dependent calls and types.
32185
32186 * tree-into-ssa.c (var_infos):
32187 Change type to hash_table. Update dependent calls and types.
32188
32189 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32190 Change type to hash_table. Update dependent calls and types.
32191
32192 * tree-ssa-loop-im.c (struct mem_ref.refs):
32193 Change type to hash_table. Update dependent calls and types.
32194
32195 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32196 Change type to hash_table. Update dependent calls and types.
32197
32198 * tree-ssa-sccvn.c (vn_tables_s::nary):
32199 Change type to hash_table. Update dependent calls and types.
32200 (vn_tables_s::phis): Likewise.
32201 (vn_tables_s::references): Likewise.
32202
32203 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32204 (vn_reference_eq): Update parameter and return types.
32205
32206 * tree-ssa-structalias.c (pointer_equiv_class_table):
32207 Change type to hash_table. Update dependent calls and types.
32208 (location_equiv_class_table): Likewise.
32209
32210 * tree-vect-data-refs.c: Consequential changes for making
32211 peeling a hash_table.
32212
32213 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32214 (destroy_loop_vec_info): Dependent hash_table update.
32215
32216 * tree-vectorizer.h (peeling_htab):
32217 Change type to hash_table. Update dependent calls and types.
32218
32219 2013-04-23 Shiva Chen <shiva0217@gmail.com>
32220
32221 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32222 to check the register content is equal or not.
32223 * lra-constraints.c (match_reload): Use lra_assign_reg_val
32224 to assign register content record.
32225 * lra-eliminations.c (update_reg_eliminate): Use
32226 lra_update_reg_val_offset to update register content offset.
32227 * lra-int.h (struct lra_reg): Add offset member.
32228 (lra_reg_val_equal_p): New static inline function.
32229 (lra_update_reg_val_offset): New static inline function.
32230 (lra_assign_reg_val): New static inline function.
32231 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32232 to assign register content record.
32233 (initialize_lra_reg_info_element): Initial offset to zero.
32234
32235 2013-04-23 Catherine Moore <clm@codesourcery.com>
32236
32237 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32238 operands. Record compression.
32239
32240 2013-04-23 Xinliang David Li <davidxl@google.com>
32241
32242 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32243
32244 2013-04-23 Richard Biener <rguenther@suse.de>
32245
32246 PR middle-end/57036
32247 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32248 parameter, only add abnormal goto edges from the copied body
32249 if the call could perform abnormal gotos.
32250 (copy_cfg_body): Adjust.
32251
32252 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
32253
32254 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32255
32256 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
32257
32258 * coretypes.h (gimple_stmt_iterator): Add struct to make
32259 compatible with C.
32260
32261 2013-04-23 Richard Biener <rguenther@suse.de>
32262
32263 PR tree-optimization/57026
32264 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32265 from SSA names occuring in abnormal PHI nodes.
32266
32267 2013-04-22 Andi Kleen <ak@linux.intel.com>
32268
32269 * lto/lto.c (print_lto_report_1): Fix LTO report names.
32270
32271 2013-04-22 Andi Kleen <ak@linux.intel.com>
32272
32273 * lto/lto.c (print_lto_report_1): Declare early.
32274 (read_cgraph_and_symbols): Call print_lto_report_1 early.
32275
32276 2013-04-22 Andi Kleen <ak@linux.intel.com>
32277
32278 * common.opt (-flto-report-wpa): Add.
32279 * doc/invoke.texi (-flto-report-wpa): Add.
32280 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32281 (lto_main): dito.
32282
32283 2013-04-22 Xinliang David Li <davidxl@google.com>
32284
32285 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32286 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32287 * Makefile.in: New dependency
32288
32289 David Daney <ddaney.cavm@gmail.com>
32290
32291 * configure.ac (gcc_cv_as_micromips_support): Use the
32292 --fatal-warnings option.
32293 * configure: Regenerate.
32294
32295 2013-04-22 Marek Polacek <polacek@redhat.com>
32296
32297 PR sanitizer/56990
32298 * tsan.c (instrument_expr): Don't instrument expression
32299 in case its size is zero.
32300
32301 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
32302
32303 PR target/57032
32304 Revert:
32305 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32306
32307 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32308
32309 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32310
32311 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32312 (gimple_stmt_iterator): New typedef.
32313 * gimple.h (gimple_stmt_iterator): Rename to...
32314 (gimple_stmt_iterator_d): ... This.
32315 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32316 trees be valid for GIMPLE and GENERIC.
32317 (TARGET_GIMPLE_FOLD_BUILTIN): New.
32318 * gimple-fold.c (gimple_fold_call): Call target hook
32319 gimple_fold_builtin.
32320 * hooks.c (hook_bool_gsiptr_false): New.
32321 * hooks.h (hook_bool_gsiptr_false): New.
32322 * target.def (fold_stmt): New.
32323 * doc/tm.texi: Regenerate.
32324
32325 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
32326
32327 PR target/57018
32328 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32329 a set sp if no stack realignment.
32330
32331 2013-04-22 Nick Clifton <nickc@redhat.com>
32332
32333 * config.gcc (tilegx-linux): Extend extra_objs rather than
32334 overwriting it.
32335 (tilepro-linux): Likewise.
32336
32337 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32338
32339 * config/aarch64/aarch64-builtins.c
32340 (CF): Remove.
32341 (CF0, CF1, CF2, CF3, CF4, CF10): New.
32342 (VAR<1-12>): Add MAP parameter.
32343 (BUILTIN_*): Likewise.
32344 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32345 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32346 (aarch64_ushl_n<mode>): Likewise.
32347 (aarch64_sshr_n<mode>): Likewise.
32348 (aarch64_ushr_n<mode>): Likewise.
32349 (aarch64_<maxmin><mode>): Likewise.
32350 (aarch64_sqrt<mode>): Likewise.
32351 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32352 (vshr<q>_n_*): Likewise.
32353
32354 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32355
32356 * config/aarch64/aarch64-builtins.c
32357 (aarch64_simd_builtin_type_mode): Handle SF types.
32358 (sf_UP): Define.
32359 (BUILTIN_GPF): Define.
32360 (aarch64_init_simd_builtins): Handle SF types.
32361 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32362 (frecps): Likewise.
32363 (frecpx): Likewise.
32364 * config/aarch64/aarch64-simd.md
32365 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32366 (aarch64_frecpe<mode>): New.
32367 (aarch64_frecps<mode>): Likewise.
32368 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32369 (v8type): Add frecp<esx>.
32370 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32371 (aarch64_frecps<mode>): Likewise.
32372 * config/aarch64/iterators.md (FRECP): New.
32373 (frecp_suffix): Likewise.
32374 * config/aarch64/arm_neon.h
32375 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32376
32377 2013-04-22 Christian Bruel <christian.bruel@st.com>
32378
32379 PR target/56995
32380 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32381 (REG_CLASS_NAMES): Idem.
32382 (REG_CLASS_CONTENTS): Idem.
32383 (REGCLASS_HAS_FP_REG): Idem.
32384 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32385 (sh_conditional_register_usage): Idem.
32386
32387 2013-04-21 Jeff Law <law@redhat.com>
32388
32389 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32390 (ssa_forward_propagate_and_combine): Use it.
32391
32392 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32393
32394 * lra.c: Update the flow chart diagram.
32395
32396 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32397
32398 PR rtl-optimization/56847
32399 * lra-constraints.c (process_alt_operands): Discourage alternative
32400 with non-matche doffsettable memory constraint fro memory with
32401 known offset.
32402
32403 2013-04-19 Richard Biener <rguenther@suse.de>
32404
32405 PR tree-optimization/56982
32406 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32407 function.
32408 * gimplify.c (gimplify_call_expr): Notice special calls.
32409 (gimplify_modify_expr): Likewise.
32410 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32411 abnormal control flow receivers.
32412 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32413 in the same way as cfun->has_nonlocal_labels.
32414 (gimple_purge_dead_abnormal_call_edges): Likewise.
32415 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32416 receivers start a basic-block.
32417
32418 2013-04-19 Richard Biener <rguenther@suse.de>
32419
32420 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32421 member ...
32422 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
32423 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32424 (SLP_TREE_LOAD_PERMUTATION): Add.
32425 (vect_transform_slp_perm_load): Adjust prototype.
32426 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32427 (vect_free_slp_instance): Likewise.
32428 (vect_create_new_slp_node): Likewise.
32429 (vect_supported_slp_permutation_p): Remove.
32430 (vect_slp_rearrange_stmts): Adjust.
32431 (vect_supported_load_permutation_p): Likewise. Inline
32432 vect_supported_slp_permutation_p here.
32433 (vect_analyze_slp_instance): Compute load permutations per
32434 slp node instead of per instance.
32435 (vect_get_slp_defs): Adjust.
32436 (vect_transform_slp_perm_load): Likewise.
32437 (vect_schedule_slp_instance): Remove redundant code.
32438 (vect_schedule_slp): Remove hack for PR56270, add it ...
32439 * tree-vect-stmts.c (vectorizable_load): ... here, do not
32440 CSE loads for SLP. Adjust.
32441
32442 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32443
32444 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32445 spelling in two comments.
32446
32447 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32448
32449 PR target/56797
32450 * config/arm/arm.c (load_multiple_sequence): Require SP
32451 as base register for loads if SP is in the register list.
32452
32453 2013-04-19 Martin Jambor <mjambor@suse.cz>
32454
32455 PR tree-optimization/56718
32456 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32457 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32458 and made public. Adjusted all callers.
32459 (ipa_intraprocedural_devirtualization): New function.
32460 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32461 (ipa_intraprocedural_devirtualization): Likewise.
32462 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32463
32464 2013-04-19 Richard Biener <rguenther@suse.de>
32465
32466 PR tree-optimization/57000
32467 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32468
32469 2013-04-19 Terry Guo <terry.guo@arm.com>
32470
32471 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32472 Replace with ...
32473 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
32474 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32475 (cortex_m4_fmacs): Use new reservations.
32476 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32477
32478 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
32479
32480 PR rtl-optimization/56999
32481 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32482 related code.
32483 (lra_coalesce): Remove split_origin_bitmap and related code.
32484 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
32485 ranges if necessary.
32486
32487 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
32488
32489 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32490 New array.
32491 (ix86_expand_call): Remove clobbered_registers array and use
32492 x86_64_ms_sysv_extra_clobbered_registers instead.
32493 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32494 Declare here.
32495 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32496 predicate.
32497 * config/i386/i386.md (*call_rex64_ms_sysv): Use
32498 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
32499 (*call_value_rex64_ms_sysv): Ditto.
32500
32501 2013-04-18 Cary Coutant <ccoutant@google.com>
32502
32503 * dwarf2out.c (output_pubnames): Check die_perennial_p of
32504 parent instead of die_mark.
32505
32506 2013-04-18 Diego Novillo <dnovillo@google.com>
32507
32508 * gimple.c (create_gimple_tmp): New.
32509 (get_expr_type): New.
32510 (build_assign): New.
32511 (build_type_cast): New.
32512 * gimple.h (enum ssa_mode): Define.
32513 (gimple_seq_set_location): New.
32514 * asan.c (build_check_stmt): Change some gimple_build_* calls
32515 to use build_assign and build_type_cast.
32516
32517 2013-04-18 Richard Biener <rguenther@suse.de>
32518
32519 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32520 handle negative step. Remove redundant checks.
32521 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32522 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32523 for negative step and grouped loads fail to vectorize.
32524
32525 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32526
32527 * emit-rtl.c (reset_insn_used_flags): New function.
32528 (reset_all_used_flags): Use it.
32529 (verify_insn_sharing): New function.
32530 (verify_rtl_sharing): Fix verification for SEQUENCEs.
32531
32532 2013-04-18 Jakub Jelinek <jakub@redhat.com>
32533
32534 PR tree-optimization/56984
32535 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32536 and (x >> M) >= N don't register any assertion if N << M is the
32537 minimum value.
32538
32539 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32540
32541 * lower-subreg.c (resolve_simple_move): If called self-recursive,
32542 do not delete_insn insns that have not yet been emitted, only
32543 unlink them with remove_insn.
32544 * df-scan.c (df_insn_delete): Revert r197492.
32545
32546 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
32547
32548 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32549 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32550
32551 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32552
32553 * config/arm/arm.md (movsicc_insn): Convert define_insn into
32554 define_insn_and_split.
32555 (and_scc,ior_scc,negscc): Likewise.
32556 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32557
32558 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32559
32560 * config/arm/arm.c (use_return_insn): Return 0 for targets that
32561 can benefit from using a sequence of LDRD instructions in epilogue
32562 instead of a single LDM instruction.
32563
32564 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
32565
32566 PR 45688
32567 * doc/extend.texi: Fix typo.
32568
32569 2013-04-17 Richard Biener <rguenther@suse.de>
32570
32571 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32572 (vect_build_slp_tree): ... here.
32573 (vect_build_slp_tree_1): Compute which stmts of the SLP group
32574 match. Remove special-casing of mismatched complex loads.
32575 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32576 re-try the match with swapped commutative operands.
32577 (vect_supported_load_permutation_p): Remove special-casing of
32578 mismatched complex loads.
32579 (vect_analyze_slp_instance): Adjust.
32580
32581 2013-04-17 Richard Biener <rguenther@suse.de>
32582
32583 PR rtl-optimization/56921
32584 * cfgloop.h (struct loop): Add simple_loop_desc member.
32585 (struct niter_desc): Mark with GTY(()).
32586 (simple_loop_desc): Do not use aux field but simple_loop_desc.
32587 * loop-iv.c (get_simple_loop_desc): Likewise.
32588 (free_simple_loop_desc): Likewise.
32589
32590 Revert
32591 2013-04-16 Richard Biener <rguenther@suse.de>
32592
32593 PR rtl-optimization/56921
32594 * loop-init.c (pass_rtl_move_loop_invariants): Add
32595 TODO_do_not_ggc_collect to todo_flags_finish.
32596 (pass_rtl_unswitch): Same.
32597 (pass_rtl_unroll_and_peel_loops): Same.
32598 (pass_rtl_doloop): Same.
32599
32600 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32601
32602 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32603 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32604 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32605 references.
32606 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32607 * tree-streamer.c (record_common_node): Adjust reference in comment.
32608
32609 2013-04-17 Terry Guo <terry.guo@arm.com>
32610
32611 * config/arm/cortex-m4.md: Add a new bypass.
32612
32613 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32614
32615 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32616 New pattern.
32617 (*subs_<optab><mode>_multp2): New pattern.
32618 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32619 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32620
32621 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32622
32623 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32624 (*subs_mul_imm_<mode>): New pattern.
32625
32626 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32627
32628 PR target/56948
32629 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32630 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32631 (vsx_movti_32bit): Change j->wa to O->wa.
32632
32633 2013-04-16 Richard Biener <rguenther@suse.de>
32634
32635 PR rtl-optimization/56921
32636 * loop-init.c (pass_rtl_move_loop_invariants): Add
32637 TODO_do_not_ggc_collect to todo_flags_finish.
32638 (pass_rtl_unswitch): Same.
32639 (pass_rtl_unroll_and_peel_loops): Same.
32640 (pass_rtl_doloop): Same.
32641
32642 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
32643
32644 * config/arm/arm.c (emit_multi_reg_push): New declaration
32645 for an existing function.
32646 (arm_emit_strd_push): New function.
32647 (arm_expand_prologue): Used here.
32648 (arm_emit_ldrd_pop): New function.
32649 (arm_expand_epilogue): Used here.
32650 (arm_get_frame_offsets): Update condition.
32651 (arm_emit_multi_reg_pop): Add a special case for load of a single
32652 register with writeback.
32653
32654 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32655
32656 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32657 description.
32658
32659 2013-04-16 Richard Biener <rguenther@suse.de>
32660
32661 PR tree-optimization/56756
32662 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32663 (first_mem_ref_loc): New.
32664 (execute_sm): Place the load temporarily before a previous
32665 access instead of in the latch edge to ensure its SSA dependencies
32666 are defined at points dominating the load.
32667
32668 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32669
32670 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32671 correct fix by moving header and footer insn to the footer of
32672 the merged basic block. Clear BB_END of the merged-away block.
32673
32674 PR middle-end/43631
32675 * emit-rtl.c (make_note_raw): New function.
32676 (link_insn_into_chain): New static inline function.
32677 (add_insn): Use it.
32678 (add_insn_before, add_insn_after): Factor insn chain linking code...
32679 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32680 using link_insn_into_chain.
32681 (note_outside_basic_block_p): New helper function for emit_note_after
32682 and emit_note_before.
32683 (emit_note_after): Use nobb variant of add_insn_after if the note
32684 should not be contained in a basic block.
32685 (emit_note_before): Use nobb variant of add_insn_before if the note
32686 should not be contained in a basic block.
32687 (emit_note_copy): Use make_note_raw.
32688 (emit_note): Likewise.
32689 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32690 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32691 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32692 the moved barrier the tail of the basic block it follows.
32693 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32694
32695 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32696
32697 PR tree-optimization/56962
32698 * gimple-ssa-strength-reduction.c (record_increment): Only set
32699 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32700 either rhs1 or rhs2 is equal to c->base_expr.
32701
32702 2013-04-15 Richard Biener <rguenther@suse.de>
32703
32704 PR tree-optimization/56933
32705 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32706 member.
32707 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32708 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32709 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32710 dependence check ...
32711 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32712 ... here.
32713 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32714 GROUP_READ_WRITE_DEPENDENCE.
32715
32716 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32717
32718 * emit-rtl.c (reset_all_used_flags): New function.
32719 (verify_rtl_sharing): Call reset_all_used_flags before and after
32720 performing the checks.
32721
32722 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32723
32724 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32725 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32726 * config/arm/constraints.md (De): New constraint.
32727 * config/arm/neon.md (anddi3_neon): Delete.
32728 (neon_vand<mode>): Expand to standard anddi3 pattern.
32729 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32730 Move earlier in the file.
32731 (neon_inv_logic_op2): Likewise.
32732 (arm_anddi_operand_neon): New predicate.
32733
32734 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32735
32736 * configure.ac (gcc_cv_ld_as_needed): Set
32737 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32738 Use -z ignore, -z record on *-*-solaris2*.
32739 (HAVE_LD_AS_NEEDED): Update comment.
32740 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32741 * configure: Regenerate.
32742 * config.in: Regenerate.
32743 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32744 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32745 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32746 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32747 equivalents. Fix markup.
32748 * doc/tm.texi: Regenerate.
32749
32750 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32751
32752 * config/i386/i386.opt: New option mstack-protector-guard=.
32753 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32754 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32755 TARGET_SSP_TLS_GUARD.
32756 * config/i386/i386.c (ix86_option_override_internal): Set
32757 ix86_stack_protector_guard.
32758 * config/i386/i386.md (stack_protect_set): Enable for
32759 TARGET_SSP_TLS_GUARD only.
32760 (stack_protect_set_<mode>): Ditto.
32761 (stack_protect_test): Ditto.
32762 (stack_protect_test_<mode>): Ditto.
32763 * doc/invoke.texi (i386 Option): Document.
32764
32765 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32766
32767 PR target/56890
32768 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32769 (S_MODES): Set H_MODE bit.
32770 (SF_MODES): Set only S_MODE and SF_MODE bits.
32771 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32772 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32773 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32774 <MODE_FLOAT>: Likewise.
32775
32776 2013-04-15 Joey Ye <joey.ye@arm.com>
32777
32778 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32779
32780 2013-04-15 Joey Ye <joey.ye@arm.com>
32781
32782 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32783 for real far jump.
32784 (thumb_far_jump_used_p): Count instruction size and set
32785 far_jump_used.
32786
32787 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32788
32789 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32790 * resource.c (mark_target_live_regs): Reformat conditional block.
32791
32792 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32793
32794 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32795 notes, they are emitted only just before final.
32796 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32797
32798 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32799
32800 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32801 * cfgrtl.c (delete_insn): Call it here instead.
32802 * lra-spills.c (lra_final_code_change): Use delete_insn.
32803 * haifa-sched.c (sched_remove_insn): Likewise.
32804 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32805 returning to the nop pool.
32806 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32807 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32808
32809 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32810
32811 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32812 * doc/tm.texi: Regenerated.
32813
32814 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32815
32816 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32817 QImode checks.
32818
32819 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32820
32821 * df-core.c (df_find_def): Compare register numbers.
32822 (df_find_use): Likewise.
32823
32824 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32825
32826 PR target/56903
32827 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32828 lra_in_progress for return.
32829
32830 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32831
32832 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32833 define_insn into define_insn_and_split and emit movsicc patterns.
32834
32835 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32836
32837 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32838
32839 2013-04-12 Richard Biener <rguenther@suse.de>
32840
32841 * tree-pass.h (TODO_do_not_ggc_collect): New.
32842 * passes.c (execute_one_ipa_transform_pass): Honor
32843 TODO_do_not_ggc_collect.
32844 (execute_one_pass): Likewise.
32845
32846 Revert
32847 2013-04-10 Richard Biener <rguenther@suse.de>
32848
32849 * passes.c (init_optimization_passes): Remove reload pass.
32850 * ira.c (do_reload): Merge into ...
32851 (ira): ... this.
32852 (rest_of_handle_reload): Remove.
32853 (pass_reload): Likewise.
32854 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32855 of reload for vzeroupper pass placement.
32856
32857 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32858
32859 PR tree-optimization/56918
32860 PR tree-optimization/56920
32861 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32862 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32863 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32864 use wide_mul_with_sign method.
32865
32866 2013-04-12 Richard Biener <rguenther@suse.de>
32867
32868 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32869 not be considered a gimple constant.
32870
32871 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32872
32873 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32874 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32875 operations.
32876
32877 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32878 Jakub Jelinek <jakub@redhat.com>
32879
32880 * opts.c: Include diagnostic-color.h.
32881 (common_handle_option): Handle OPT_fdiagnostics_color_.
32882 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32883 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32884 (diagnostic-color.o): New.
32885 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32886 (diagnostic_color_rule): New enum.
32887 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32888 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32889 the location string.
32890 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32891 either NULL, or color kind.
32892 * diagnostic-color.c: New file.
32893 * diagnostic-color.h: New file.
32894 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32895 arguments.
32896 * doc/invoke.texi (-fdiagnostics-color): Document.
32897 * pretty-print.h (pp_show_color): Define.
32898 (struct pretty_print_info): Add show_color field.
32899 * diagnostic.c: Include diagnostic-color.h.
32900 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32901 macros. Colorize error:, warning: etc. strings and also the location
32902 string.
32903 (diagnostic_show_locus): Colorize the caret line.
32904 * pretty-print.c: Include diagnostic-color.h.
32905 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32906 inside of %< %> quotes or quoted through q format modifier.
32907
32908 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32909
32910 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32911
32912 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32913
32914 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32915 code in CC_NZ mode.
32916 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32917 pattern.
32918
32919 2013-04-11 Marek Polacek <polacek@redhat.com>
32920
32921 PR tree-optimization/48184
32922 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32923
32924 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32925
32926 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32927 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32928 (skip_simple_arithmetic): Tidy up.
32929 * tree.h (skip_simple_constant_arithmetic): Declare.
32930
32931 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32932
32933 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32934
32935 2013-04-11 Richard Biener <rguenther@suse.de>
32936
32937 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32938 generate vector constants.
32939
32940 2013-04-11 Richard Biener <rguenther@suse.de>
32941
32942 PR tree-optimization/56878
32943 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32944 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32945 New function.
32946 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32947 Prefer to align the DR with the most invariant base address.
32948
32949 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32950
32951 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32952 comment.
32953
32954 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32955
32956 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32957 floating-point vector comparisons against 0.
32958
32959 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32960
32961 PR tree-optimization/56899
32962 * fold-const.c (extract_muldiv_1): Apply distributive law
32963 only if TYPE_OVERFLOW_WRAPS (ctype).
32964
32965 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32966
32967 PR target/56124
32968 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32969 loading has side effect.
32970
32971 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32972
32973 * config/sparc/sparc.c: Include tree-pass.h.
32974 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32975 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32976 head of file. Change return type. Split off gate function.
32977 (sparc_gate_work_around_errata): New function.
32978 (pass_work_around_errata): New pass definition.
32979 (insert_pass_work_around_errata) New pass insert definition to
32980 insert pass_work_around_errata just after delayed-branch scheduling.
32981 (sparc_option_override): Insert the pass.
32982 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32983
32984 2013-04-10 David S. Miller <davem@davemloft.net>
32985
32986 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32987 or -mcpu=hypersparc.
32988
32989 * target.def (cstore_mode): New hook.
32990 * target.h: Include insn-codes.h
32991 * targhooks.c: Likewise.
32992 (default_cstore_mode): New function.
32993 * targhooks.h: Declare it.
32994 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32995 * doc/tm.texi: Rebuild.
32996 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32997 target hook, rather than inspecting the insn_data.
32998 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32999 (TARGET_CSTORE_MODE): Redefine.
33000 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
33001 result patterns.
33002 * config/sparc/predicates.md (cstore_result_operand): New special
33003 predicate.
33004 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
33005 Use it for operand 0.
33006 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
33007 (*snesi_special): Likewise.
33008 (*snesi_zero): Likewise.
33009 (*seqsi_zero): Likewise.
33010 (*sltu_insn): Likewise.
33011 (*sgeu_insn): Likewise.
33012 (*seqdi_special): Make operand 0 and comparison operation be of
33013 DImode.
33014 (*snedi_special): Likewise.
33015 (*snedi_special_vis3): Likewise.
33016 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
33017 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
33018 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
33019 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
33020 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
33021 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
33022 (*sltu_extend_sp64): Likewise.
33023 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
33024 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
33025 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
33026 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
33027 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
33028
33029 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
33030
33031 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
33032 (aarch64_start_file): Use the new function.
33033
33034 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33035 Jason Merrill <jason@redhat.com>
33036
33037 * common.opt: Add -gdwarf.
33038 * opts.c (common_handle_option): Handle it.
33039 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
33040
33041 2013-04-10 Richard Biener <rguenther@suse.de>
33042
33043 * passes.c (execute_todo): Do not call ggc_collect conditional here.
33044 (execute_one_ipa_transform_pass): But unconditionally here.
33045 (execute_one_pass): And here.
33046 (init_optimization_passes): Remove reload pass.
33047 * tree-pass.h (TODO_ggc_collect): Remove.
33048 (pass_reload): Likewise.
33049 * ira.c (do_reload): Merge into ...
33050 (ira): ... this.
33051 (rest_of_handle_reload): Remove.
33052 (pass_reload): Likewise.
33053 * config/i386/i386.c (ix86_option_override): Refer to ira instead
33054 of reload for vzeroupper pass placement.
33055 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
33056 and todo_flags_finish of all passes.
33057
33058 2013-04-10 Richard Biener <rguenther@suse.de>
33059
33060 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
33061 first_const_oprnd field, rename first_def_type to first_op_type.
33062 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
33063 (vect_get_and_check_slp_defs): Always use the type of the
33064 operand. Allow mixed vect_external_def, vect_constant_def types.
33065 (vect_get_constant_vectors): Handle mixed vect_external_def,
33066 vect_constant_def types.
33067
33068 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
33069
33070 PR tree-optimization/55524
33071 * tree-ssa-math-opts.c
33072 (convert_mult_to_fma): Don't use an fms construct
33073 when we don't have an fms operation, but fnma, and it looks
33074 likely that we'll be able to use the latter.
33075
33076 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33077
33078 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
33079 function.
33080 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
33081 inline fail caused by overwritable functions.
33082
33083 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
33084
33085 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
33086 unnecessary bits in the constant power of two case.
33087
33088 2013-04-10 Richard Biener <rguenther@suse.de>
33089
33090 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
33091 broken code swapping operands.
33092 (vect_build_slp_tree): Do not compute load permutations here.
33093 (vect_analyze_slp_instance): Compute load permutations here,
33094 after building the SLP tree.
33095
33096 2013-04-09 Christian Bruel <christian.bruel@st.com>
33097
33098 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
33099 of next/prev_real_insn.
33100
33101 2013-04-09 Jan Hubicka <jh@suse.cz>
33102
33103 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
33104 Drop aliased parameter.
33105 (function_and_variable_visibility): Do not handle alias pairs.
33106 * cgraph.c (varpool_externally_visible_p): Update prototype.
33107 * varpool.c (varpool_add_new_variable): Update.
33108
33109 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33110
33111 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
33112
33113 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
33114
33115 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
33116
33117 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
33118
33119 2013-04-09 Marek Polacek <polacek@redhat.com>
33120
33121 PR tree-optimization/48762
33122 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
33123
33124 2013-04-09 Richard Biener <rguenther@suse.de>
33125
33126 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
33127 dealing with cost.
33128 (vect_build_slp_tree): Likewise.
33129 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
33130 calculating the cost of a SLP instance.
33131 (vect_analyze_slp_instance): Use it from here, after building
33132 the SLP tree.
33133
33134 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33135
33136 PR middle-end/56883
33137 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
33138 expand_omp_for_static_chunk): Use simple_p = true in
33139 force_gimple_operand_gsi calls when assigning to addressable decls.
33140
33141 2013-04-09 Jeff Law <law@redhat.com>
33142
33143 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
33144 when the boolean was created by converting a wider object which
33145 had a boolean range.
33146
33147 2013-04-09 Richard Biener <rguenther@suse.de>
33148
33149 * tree-vectorizer.h (slp_void_p): Remove.
33150 (slp_tree): Typedef before _slp_tree declaration.
33151 (struct _slp_tree): Use a vector of slp_tree as children.
33152 (vect_get_place_in_interleaving_chain): Remove.
33153 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33154 Move ...
33155 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33156 and make static.
33157 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33158 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33159 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33160 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33161 Use slp_node instead of slp_void_p and adjust.
33162
33163 2013-04-09 Richard Biener <rguenther@suse.de>
33164
33165 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33166 work that is not necessary.
33167
33168 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33169
33170 PR tree-optimization/56854
33171 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33172 forward into clobber stmts if it would change MEM_REF lhs into
33173 non-MEM_REF.
33174
33175 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
33176
33177 * tree.c (type_hash_lookup, type_hash_add): Make static.
33178 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33179
33180 2013-04-09 Richard Biener <rguenther@suse.de>
33181
33182 * tree.h (unsave_expr_now): Remove.
33183 * tree-inline.c (mark_local_for_remap_r): Remove.
33184 (unsave_expr_1): Likewise.
33185 (unsave_r): Likewise.
33186 (unsave_expr_now): Likewise.
33187 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33188 (propagate_tree_value): Likewise.
33189
33190 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
33191
33192 * doc/rtl.texi (sequence): Rewrite documentation to match the
33193 current use of SEQUENCE rtl objects.
33194 * rtl.def (SEQUENCE): Likewise.
33195
33196 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33197 Update documentation.
33198 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33199 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33200
33201 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33202
33203 2013-04-08 Teresa Johnson <tejohnson@google.com>
33204
33205 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33206 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33207 methods.
33208 (estimate_edge_size_and_time): Add comment to suggest using rounding
33209 methods.
33210 (estimate_node_size_and_time): Ditto.
33211 (remap_edge_change_prob): Use helper rounding divide methods.
33212 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33213 (gimple_mod_pow2_value_transform): Ditto.
33214 (gimple_mod_subtract_transform): Ditto.
33215 (gimple_ic_transform): Ditto.
33216 (gimple_stringops_transform): Ditto.
33217 * stmt.c (conditional_probability): Ditto.
33218 (emit_case_dispatch_table): Ditto.
33219 * lto-cgraph.c (merge_profile_summaries): Ditto.
33220 * tree-optimize.c (execute_fixup_cfg): Ditto.
33221 * cfgcleanup.c (try_forward_edges): Ditto.
33222 * cfgloopmanip.c (scale_loop_profile): Ditto.
33223 (loopify): Ditto.
33224 (duplicate_loop_to_header_edge): Ditto.
33225 (lv_adjust_loop_entry_edge): Ditto.
33226 * tree-vect-loop.c (vect_transform_loop): Ditto.
33227 * profile.c (compute_branch_probabilities): Ditto.
33228 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33229 * lto-streamer-in.c (input_cfg): Ditto.
33230 * gimple-streamer-in.c (input_bb): Ditto.
33231 * ipa-cp.c (update_profiling_info): Ditto.
33232 (update_specialized_profile): Ditto.
33233 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33234 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33235 rounding methods.
33236 * sched-rgn.c (compute_dom_prob_ps): Ditto.
33237 (compute_trg_info): Ditto.
33238 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33239 (purge_dead_edges): Ditto.
33240 * loop-unswitch.c (unswitch_loop): Ditto.
33241 * cgraphclones.c (cgraph_clone_edge): Ditto.
33242 (cgraph_clone_node): Ditto.
33243 * tree-inline.c (copy_bb): Ditto.
33244 (copy_edges_for_bb): Ditto.
33245 (initialize_cfun): Ditto.
33246 (copy_cfg_body): Ditto.
33247 (expand_call_inline): Ditto.
33248
33249 2013-04-08 Kai Tietz <ktietz@redhat.com>
33250
33251 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33252 TARGET_CYGWIN64 by TARGET_64BIT.
33253
33254 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33255
33256 * config/epiphany/epiphany.md (GPR_1): New constant.
33257 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33258 * config/epiphany/epiphany.c (gen_compare_reg):
33259 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33260 is already in place.
33261 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33262 Don't require being called during rtl expansion; If y operlaps r0,
33263 return 0.
33264 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33265 (epiphany_expand_epilogue): Likewise.
33266
33267 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33268 Don't use CC_FPmode for ORDERED / UNORDERED.
33269 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33270
33271 * config/epiphany/constraints.md (CnL): New constraint.
33272 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33273 * config/epiphany/predicates.md (add_operand): Allow 1024.
33274
33275 * config/epiphany/epiphany.md (logical_op): New code iterator.
33276 (op_mnc): New code attribute.
33277 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33278 (mov_f+1, mov_f+2): New peephole2 patterns.
33279
33280 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33281 (cstoresi4): Also allow re-use of zero result when doing a NE
33282 comparison to a non-zero operand.
33283 Use (clobber (scratch)) for first insn if the gpr output is not needed.
33284
33285 * config/epiphany/epiphany.md (<insn_opname>v2si3):
33286 Use gen_addsi3_i / gen_subsi3_i.
33287
33288 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33289
33290 PR c++/34949
33291 PR c++/50243
33292 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33293 contain anything but clobbers, at most one __builtin_stack_restore,
33294 optionally debug stmts and final resx, and if it has at least one
33295 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
33296 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33297 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33298 which isn't defaut definition, remove them.
33299 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33300 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33301 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33302 with MEM_REF LHS with SSA_NAME address.
33303
33304 2013-04-08 Jeff Law <law@redhat.com>
33305
33306 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33307
33308 2013-04-08 Richard Biener <rguenther@suse.de>
33309
33310 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33311 extra newline.
33312 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33313 determined vector type.
33314 (vect_analyze_data_refs): Likewise.
33315 (vect_get_new_vect_var): Adjust.
33316 (vect_create_destination_var): Preserve SSA name versions.
33317 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33318 not dump anything here.
33319
33320 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33321
33322 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33323 Add member lr_slot_known.
33324 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33325 if necessary.
33326 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33327 Remove code that sets lr_slot_offset according to what a previous
33328 version of epiphany_emit_save_restore used to do.
33329 (epiphany_emit_save_restore): When doing an lr save or restore,
33330 set/verify lr_slot_known and lr_slot_offset.
33331
33332 2013-04-08 Xinyu Qi <xyqi@marvell.com>
33333
33334 PR target/54338
33335 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33336 in ALL_REGS.
33337
33338 2013-04-08 Richard Biener <rguenther@suse.de>
33339
33340 * alias.c (find_base_term): Fix thinko in previous change.
33341
33342 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33343
33344 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33345 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33346 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
33347 if possible to compute val.
33348 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33349 For QImode integers don't require anything about precision. Use
33350 const_with_all_bytes_same to find out if the constant doesn't have
33351 repeated bytes in it.
33352
33353 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33354
33355 * config/s390/s390.c (s390_expand_insv): Only accept insertions
33356 within mode size.
33357
33358 2013-04-08 Marek Polacek <polacek@redhat.com>
33359
33360 PR rtl-optimization/48182
33361 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33362 value to 1.
33363
33364 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33365
33366 PR target/55487
33367 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33368 nuses, make sure we have a label.
33369
33370 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33371
33372 PR target/56843
33373 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33374 (rs6000_emit_swdiv_low_precision): Remove.
33375 (rs6000_emit_swdiv): Rewrite to handle between one and four
33376 iterations of Newton-Raphson generally; modify required number of
33377 iterations for some cases.
33378 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33379
33380 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
33381
33382 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33383 set-but-unused variable.
33384
33385 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33386 basic blocks of released function bodies garbage-collectable.
33387
33388 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33389 (struct rtl_opt_pass): Add TODO_df_finish.
33390
33391 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33392
33393 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33394
33395 * config/arm/constraints.md (q): New constraint.
33396 * config/arm/ldrdstrd.md: New file.
33397 * config/arm/arm.md (ldrdstrd.md) New include.
33398 (arm_movdi): Use "q" instead of "r" constraint
33399 for double-word memory access.
33400 (movdf_soft_insn): Likewise.
33401 * config/arm/vfp.md (movdi_vfp): Likewise.
33402 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33403 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33404 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33405 (mem_ok_for_ldrd_strd): Likewise.
33406 (output_move_double): Update assertion.
33407
33408 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33409
33410 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33411
33412 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33413
33414 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33415 define_insn_and_split.
33416 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33417
33418 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33419
33420 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33421 define_insn_and_split.
33422 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33423 (shiftsi3_compare): New pattern.
33424 (rrx): New pattern.
33425 * config/arm/unspecs.md (UNSPEC_RRX): New.
33426
33427 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33428
33429 * config/arm/arm.md (negdi_extendsidi): New pattern.
33430 (negdi_zero_extendsidi): Likewise.
33431
33432 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33433
33434 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33435 define_insn_and_split.
33436 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33437 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33438
33439 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33440
33441 * config/arm/arm.md (arm_subdi3): Convert define_insn into
33442 define_insn_and_split.
33443 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33444 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33445
33446 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33447
33448 * config/arm/arm.md (subsi3_carryin): New pattern.
33449 (subsi3_carryin_const): Likewise.
33450 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33451 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33452
33453 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33454
33455 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33456
33457 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33458
33459 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33460 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33461
33462 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33463
33464 * config/arm/arm.c (arm_expand_builtin): Change fcode
33465 type to unsigned int.
33466
33467 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33468
33469 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33470
33471 2013-04-04 Ian Lance Taylor <iant@google.com>
33472
33473 * doc/standards.texi (Standards): The Go frontend supports the Go 1
33474 language standard.
33475
33476 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
33477
33478 PR middle-end/56729
33479 * df-scan.c (df_insn_delete): Disable failing assert.
33480
33481 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33482
33483 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33484 New function prototype.
33485 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33486 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33487 (arm_builtin_vectorized_function): New function.
33488
33489 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33490
33491 * config/arm/arm_neon_builtins.def: New file.
33492 * config/arm/arm.c (neon_builtin_data): Move contents to
33493 arm_neon_builtins.def.
33494 (enum arm_builtins): Include neon builtin definitions.
33495 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33496 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33497
33498 2013-04-04 Marek Polacek <polacek@redhat.com>
33499
33500 PR tree-optimization/48186
33501 * predict.c (maybe_hot_frequency_p): Return false if
33502 HOT_BB_FREQUENCY_FRACTION is 0.
33503 (cgraph_maybe_hot_edge_p): Likewise.
33504
33505 2013-04-04 Richard Biener <rguenther@suse.de>
33506
33507 PR tree-optimization/56826
33508 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33509 more accurately.
33510
33511 2013-04-04 Richard Biener <rguenther@suse.de>
33512
33513 PR tree-optimization/56213
33514 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33515 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33516
33517 2013-04-04 Richard Biener <rguenther@suse.de>
33518
33519 PR tree-optimization/56837
33520 * tree-loop-distribution.c (classify_partition): For non-zero
33521 values require that the value has the same precision as its
33522 mode to be useful as memset value.
33523
33524 2013-04-03 Nick Clifton <nickc@redhat.com>
33525
33526 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33527 (fmssf4): Use fmsf.s on E3V5 architectures.
33528 (fnmasf4): Use fnmaf.s on E3V5 architectures.
33529 (fnmssf4): Use fnmsf.s on E3V5 architectures.
33530
33531 2013-04-03 Jeff Law <law@redhat.com>
33532
33533 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33534 (lra-eliminations.o): Likewise.
33535
33536 2013-04-03 Teresa Johnson <tejohnson@google.com>
33537
33538 * gcov-io.c (compute_working_sets): Moved most of body of old
33539 compute_working_sets here from profile.c.
33540 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33541 (gcov_working_set_t): Moved typedef here from basic-block.h
33542 (compute_working_set): Declare.
33543 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33544 (get_working_sets): Renamed from compute_working_set,
33545 replace most of body with call to new compute_working_sets.
33546 (get_exec_counts): Replace call to compute_working_sets
33547 to get_working_sets.
33548 * profile.h (get_working_sets): Renamed from compute_working_set.
33549 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33550 to get_working_sets.
33551 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33552 * gcov-dump.c (dump_working_sets): New function.
33553
33554 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
33555
33556 * hwint.c (sext_hwi, zext_hwi): New functions.
33557 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33558 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33559 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33560 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33561 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33562 (sext_hwi, zext_hwi): New functions.
33563
33564 2013-04-03 Jeff Law <law@redhat.com>
33565
33566 PR tree-optimization/56799
33567 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33568 back test for widening conversion erroneously dropped in prior change.
33569
33570 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33571
33572 PR target/56809
33573 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33574 instead of next_real_insn.
33575
33576 2013-04-03 Marek Polacek <polacek@redhat.com>
33577
33578 PR sanitizer/55702
33579 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33580
33581 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33582
33583 PR target/56809
33584 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33585 next_real_insn.
33586 (thumb1_output_casesi): Likewise.
33587 (thumb2_output_casesi): Likewise.
33588
33589 2013-04-03 Richard Biener <rguenther@suse.de>
33590
33591 PR tree-optimization/56817
33592 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33593 Split out ...
33594 (tree_unroll_loops_completely_1): ... new function to manually
33595 walk the loop tree, properly defering outer loops of unrolled
33596 loops to later iterations.
33597
33598 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33599
33600 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33601 (vectorizable_load): Likewise.
33602 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33603 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33604
33605 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33606
33607 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33608 BIT_FIELD_REF.
33609
33610 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33611
33612 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33613
33614 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33615
33616 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33617
33618 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33619
33620 PR tree-optimization/56790
33621 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33622 folding.
33623
33624 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33625
33626 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33627 Handle VEC_MERGE.
33628 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33629 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33630 equal arguments.
33631
33632 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33633
33634 PR c/19449
33635 * tree.h (force_folding_builtin_constant_p): New decl.
33636 * builtins.c (force_folding_builtin_constant_p): New variable.
33637 (fold_builtin_constant_p): Fold immediately also if
33638 force_folding_builtin_constant_p.
33639
33640 2013-04-03 Richard Biener <rguenther@suse.de>
33641
33642 PR tree-optimization/56812
33643 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33644 DRs of the same interleaving chain are independent.
33645
33646 2013-04-02 Jason Merrill <jason@redhat.com>
33647
33648 * gdbinit.in (pbb): Use debug fn.
33649
33650 2013-04-02 Lawrence Crowl <crowl@google.com>
33651
33652 * sese.h (struct ivtype_map_elt_s): Remove unused.
33653 (extern debug_ivtype_map): Remove unused.
33654 (extern eq_ivtype_map_elts): Remove unused.
33655 * sese.c (debug_ivtype_map): Removed unused.
33656 (debug_ivtype_map_1): Removed unused.
33657 (debug_ivtype_elt): Remove unused.
33658 (eq_ivtype_map_elts): Remove unused.
33659
33660 2013-04-02 Kai Tietz <ktietz@redhat.com>
33661
33662 PR target/52790
33663 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33664 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33665 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33666 function.
33667 (legitimize_pe_coff_symbol): Likewise.
33668 (is_imported_p): New helper-function.
33669 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33670 for Windows x64 targets.
33671 (ix86_expand_prologue): Optimize for pe-coff targets.
33672 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33673 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33674 medium/large code-model.
33675 (legitimize_pic_address): Likewise.
33676 (legitimize_tls_address): Likewise.
33677 (ix86_expand_call): Likewise.
33678 (x86_output_mi_thunk): Likewise.
33679 (get_dllimport_decl): Add new beimport argument.
33680 (construct_plt_address): Don't assert for x64 pe-coff targets.
33681 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33682 targets.
33683 (SYMBOL_FLAG_STUBVAR): New macro.
33684 (SYMBOL_REF_STUBVAR_P): Likewise.
33685 * config/i386/winnt.c (stub_list): New structure.
33686 (stub_head): New local variable.
33687 (i386_pe_record_stub): New function.
33688 (i386_pe_file_end): Emit refptr-stubs.
33689
33690 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33691
33692 PR rtl-optimization/56745
33693 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33694 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33695
33696 PR c++/34949
33697 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33698 and both of them are MEM_REFs, just compare first argument for
33699 equality and attempt to deal even with differing offsets.
33700
33701 PR c++/34949
33702 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33703 of gimple_clobber_p to be MEM_REF.
33704 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33705 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33706 after gimplification.
33707 * asan.c (get_mem_ref_of_assignment): Don't instrument
33708 gimple_clobber_p stmts.
33709 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33710 gimple_clobber_p stmt if they have MEM_REF lhs and
33711 are dead because of another gimple_clobber_p stmt.
33712 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33713 gimple_clobber_p stmts like debug stmts.
33714 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33715 that refer to unused VAR_DECLs or uninitialized values.
33716 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33717 gimple_clobber_p stmts if they refer to removed parameters.
33718 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33719 formatting.
33720
33721 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33722
33723 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33724 using SWI48 mode attribute.
33725
33726 2013-04-02 Wei Mi <wmi@google.com>
33727
33728 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33729 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33730 *<rotate_insn><mode>3_mask in i386.md.
33731
33732 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33733
33734 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33735
33736 2013-04-02 Richard Biener <rguenther@suse.de>
33737
33738 PR tree-optimization/56778
33739 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33740 Runtime alias tests are not supported for gather loads.
33741 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33742 stmts referenced from SSA operands before updating SSA form.
33743
33744 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33745 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33746
33747 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33748 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33749 * config/arm/cortex-a53.md: New file.
33750 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33751 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33752 * config/arm/arm.c (arm_issue_rate): Likewise.
33753 * config/arm/arm-tune.md: Regenerate
33754 * config/arm/arm-tables.opt: Regenerate.
33755 * config/arm/arm-cores.def: Add cortex-a53.
33756
33757 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33758
33759 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33760 non-static link.
33761
33762 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33763
33764 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33765 scalar load/store operations using B/H registers.
33766 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33767
33768 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33769
33770 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33771 scalar move.
33772 * config/aarch64/aarch64.c
33773 (aarch64_simd_scalar_immediate_valid_for_move): New.
33774 * config/aarch64/aarch64-protos.h
33775 (aarch64_simd_scalar_immediate_valid_for_move): New.
33776 * config/aarch64/constraints.md (Dh, Dq): New.
33777 * config/aarch64/iterators.md (hq): New.
33778
33779 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33780
33781 * reorg.c (get_branch_condition): Deal with conditional returns.
33782 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33783
33784 2013-04-01 Wei Mi <wmi@google.com>
33785
33786 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33787 Truncate operand 2 using %b asm operand modifier.
33788 (*<shift_insn><mode>3_mask): Ditto.
33789 (*<rotate_insn><mode>3_mask): Ditto.
33790
33791 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33792
33793 PR middle-end/56798
33794 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33795
33796 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33797
33798 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33799 of next_real_insn.
33800 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33801
33802 2013-03-30 Lawrence Crowl <crowl@google.com>
33803
33804 * dse.c (clear_alias_sets): Remove never set.
33805 (disqualified_clear_alias_sets): Remove never set.
33806 (clear_alias_mode_pool): Remove never set.
33807 (dse_step0): Remove condition that is never true.
33808 (canon_address): Remove condition that is never true.
33809 (dse_step7): Remove condition that is never true.
33810 (rest_of_handle_dse): Remove condition that is never true.
33811 (rest_of_handle_dse::did_global): Remove never read from above.
33812 (dse_step2_spill): Remove never called from above.
33813 (dse_step5_spill): Remove never called from above.
33814
33815 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33816
33817 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33818 JUMP_TABLE_DATA changes.
33819 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33820 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33821 (Insns) <jump_table_data>: New entry.
33822 * doc/tm.texi: Regenerate.
33823
33824 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33825
33826 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33827 for table jump at the end of a basic block using tablejump_p.
33828 * targhooks.c (default_invalid_within_doloop): Likewise.
33829 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33830 target hook implementation that is identical to the default hook.
33831 (rs6000_invalid_within_doloop): Remove.
33832
33833 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33834 unused variable from tablejump_p call.
33835
33836 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33837 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33838 (INSN_DELETED_P): Likewise.
33839 (emit_jump_table_data): New prototype.
33840 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33841 after 4th as unused.
33842 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33843 * sched-vis.c (print_insn): Likewise.
33844 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33845 insn for compatibility with back ends that use next_active_insn to
33846 identify jump table data.
33847 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33848 (remove_insn): Likewise.
33849 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33850 to be emitted.
33851 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33852 (emit_jump_table_data): New function.
33853
33854 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33855 basic block, a JUMP_TABLE_DATA never is.
33856 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33857 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33858 off from code handling real insns.
33859 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33860 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33861 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33862 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33863 is not a NONDEBUG_INSN_P.
33864 * ira-costs.c (scan_one_insn): Likewise.
33865 * jump.c (mark_all_labels): Likewise.
33866 (mark_jump_label_1): Likewise.
33867 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33868 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33869 a basic block.
33870 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33871 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33872 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33873 JUMP_TABLE_DATA_P insns.
33874 (calculate_elim_costs_all_insns): Likewise.
33875 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33876 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33877 (delete_output_reload): Code style fixups.
33878 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33879 insn flags on this non-insn.
33880 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33881 as scheduling barriers, for pre-change compatibility.
33882 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33883 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33884
33885 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33886 redundant JUMP_TABLE_DATA_P test.
33887 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33888 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33889 (frv_for_each_packet): Likewise.
33890 * config/i386/i386.c (min_insn_size): Likewise.
33891 (ix86_avoid_jump_mispredicts): Likewise.
33892 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33893 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33894 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33895 (mips16_insn_length): Robustify.
33896 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33897 (mips16_split_long_branches): Likewise.
33898 * config/pa/pa.c (pa_combine_instructions): Likewise.
33899 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33900 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33901 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33902 as contributing to pool range lengths.
33903 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33904 Remove redundant JUMP_TABLE_DATA_P test.
33905 (sh_loop_align): Likewise.
33906 (split_branches): Likewise.
33907 (sh_insn_length_adjustment): Likewise.
33908 * config/spu/spu.c (get_branch_target): Likewise.
33909
33910 2013-03-29 Jan Hubicka <jh@suse.cz>
33911
33912 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33913 gcov streaming; stream hot bb threshold to ltrans.
33914 * predict.c (get_hot_bb_threshold): Break out from ....
33915 (maybe_hot_count_p): ... here.
33916 (set_hot_bb_threshold): New function.
33917 * lto-section-in.c (lto_section_name): Add profile.
33918 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33919 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33920 and data-streamer.h
33921 (histogram_entry): New structure.
33922 (histogram, histogram_pool): New global vars.
33923 (histogram_hash): New structure.
33924 (histogram_hash::hash): New method.
33925 (histogram_hash::equal): Likewise.
33926 (account_time_size): New function.
33927 (cmp_counts): New function.
33928 (dump_histogram): New function.
33929 (ipa_profile_generate_summary): New function.
33930 (ipa_profile_write_summary): New function.
33931 (ipa_profile_read_summary): New function.
33932 (ipa_profile): Decide on threshold.
33933 (pass_ipa_profile): Add ipa_profile_write_summary and
33934 ipa_profile_read_summary.
33935 * Makefile.in (ipa.o): Update dependencies.
33936 * lto-streamer.h (LTO_section_ipa_profile): New section.
33937
33938 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33939
33940 * tree.h (VAR_P): New.
33941
33942 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33943
33944 PR lto/56777
33945 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33946
33947 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33948
33949 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33950 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33951 (control_flow_insn_p): Likewise.
33952 * cfgrtl.c (duplicate_insn_chain): Likewise.
33953 * final.c (get_attr_length_1): Likewise.
33954 (shorten_branches): Likewise.
33955 (final_scan_insn): Likewise.
33956 * function.c (instantiate_virtual_regs): Likewise.
33957 * gcse.c (insert_insn_end_basic_block): Likewise.
33958 * ira-costs.c (scan_one_insn): Likewise.
33959 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33960 * lra.c (check_rtl): Likewise.
33961 * reload1.c (elimination_costs_in_insn): Likewise.
33962 * reorg.c (follow_jumps): Likewise.
33963
33964 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33965 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33966 (thumb_far_jump_used_p): Likewise.
33967 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33968 (workaround_speculation): Likewise.
33969 (add_sched_insns_for_speculation): Likewise.
33970 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33971 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33972 (frv_for_each_packet): Likewise.
33973 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33974 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33975 (final_emit_insn_group_barriers): Likewise.
33976 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33977 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33978 (mips16_insn_length): Likewise.
33979 * config/pa/pa.c (pa_reorg): Likewise.
33980 (pa_combine_instructions): Likewise.
33981 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33982 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33983 (sh_reorg): Likewise.
33984 (split_branches): Likewise.
33985 * config/spu/spu.c (get_branch_target): Likewise.
33986
33987 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33988 JUMP_TABLE_DATA_P.
33989
33990 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33991
33992 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33993 Fix declaration name.
33994
33995 2013-03-28 Lawrence Crowl <crowl@google.com>
33996
33997 * graphds.h (struct graph.indicies): Remove unused.
33998 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33999 (SCOP_ORIGINAL_PDDRS): Remove unused.
34000 * sese.h (extern insert_loop_close_phis): Removed unused.
34001 (extern insert_guard_phis): Removed unused.
34002 (extern ivtype_map_elt_info): Removed unused.
34003 (new_ivtype_map_elt): Removed unused.
34004 * sese.c (ivtype_map_elt_info): Removed unused.
34005
34006 2013-03-28 Lawrence Crowl <crowl@google.com>
34007
34008 * Makefile.in: Add several missing include dependences.
34009 (DUMPFILE_H): New.
34010 (test-dump.o): New. This object is not added to any executable,
34011 but is present for ad-hoc testing.
34012 * bitmap.c
34013 (debug (const bitmap_head_def &)): New.
34014 (debug (const bitmap_head_def *)): New.
34015 * bitmap.h
34016 (extern debug (const bitmap_head_def &)): New.
34017 (extern debug (const bitmap_head_def *)): New.
34018 * cfg.c
34019 (debug (edge_def &)): New.
34020 (debug (edge_def *)): New.
34021 * cfghooks.c
34022 (debug (basic_block_def &)): New.
34023 (debug (basic_block_def *)): New.
34024 * dumpfile.h
34025 (dump_node (const_tree, int, FILE *)): Correct source file.
34026 * dwarf2out.c
34027 (debug (die_struct &)): New.
34028 (debug (die_struct *)): New.
34029 * dwarf2out.h
34030 (extern debug (die_struct &)): New.
34031 (extern debug (die_struct *)): New.
34032 * gimple-pretty-print.c
34033 (debug (gimple_statement_d &)): New.
34034 (debug (gimple_statement_d *)): New.
34035 * gimple-pretty-print.h
34036 (extern debug (gimple_statement_d &)): New.
34037 (extern debug (gimple_statement_d *)): New.
34038 * ira-build.c
34039 (debug (ira_allocno_copy &)): New.
34040 (debug (ira_allocno_copy *)): New.
34041 (debug (ira_allocno &)): New.
34042 (debug (ira_allocno *)): New.
34043 * ira-int.h
34044 (extern debug (ira_allocno_copy &)): New.
34045 (extern debug (ira_allocno_copy *)): New.
34046 (extern debug (ira_allocno &)): New.
34047 (extern debug (ira_allocno *)): New.
34048 * ira-lives.c
34049 (debug (live_range &)): New.
34050 (debug (live_range *)): New.
34051 * lra-int.h
34052 (debug (lra_live_range &)): New.
34053 (debug (lra_live_range *)): New.
34054 * lra-lives.c
34055 (debug (lra_live_range &)): New.
34056 (debug (lra_live_range *)): New.
34057 * omega.c
34058 (debug (omega_pb_d &)): New.
34059 (debug (omega_pb_d *)): New.
34060 * omega.h
34061 (extern debug (omega_pb_d &)): New.
34062 (extern debug (omega_pb_d *)): New.
34063 * print-rtl.c
34064 (debug (const rtx_def &)): New.
34065 (debug (const rtx_def *)): New.
34066 * print-tree.c
34067 (debug_tree (tree): Move within file.
34068 (debug_raw (const tree_node &)): New.
34069 (debug_raw (const tree_node *)): New.
34070 (dump_tree_via_hooks (const tree_node *, int)): New.
34071 (debug (const tree_node &)): New.
34072 (debug (const tree_node *)): New.
34073 (debug_verbose (const tree_node &)): New.
34074 (debug_verbose (const tree_node *)): New.
34075 (debug_head (const tree_node &)): New.
34076 (debug_head (const tree_node *)): New.
34077 (debug_body (const tree_node &)): New.
34078 (debug_body (const tree_node *)): New.
34079 (debug_vec_tree (tree): Move and reimplement in terms of dump.
34080 (debug (vec<tree, va_gc> &)): New.
34081 (debug (vec<tree, va_gc> *)): New.
34082 * rtl.h
34083 (extern debug (const rtx_def &)): New.
34084 (extern debug (const rtx_def *)): New.
34085 * sbitmap.c
34086 (debug_raw (simple_bitmap_def &)): New.
34087 (debug_raw (simple_bitmap_def *)): New.
34088 (debug (simple_bitmap_def &)): New.
34089 (debug (simple_bitmap_def *)): New.
34090 * sbitmap.h
34091 (extern debug (simple_bitmap_def &)): New.
34092 (extern debug (simple_bitmap_def *)): New.
34093 (extern debug_raw (simple_bitmap_def &)): New.
34094 (extern debug_raw (simple_bitmap_def *)): New.
34095 * sel-sched-dump.c
34096 (debug (vinsn_def &)): New.
34097 (debug (vinsn_def *)): New.
34098 (debug_verbose (vinsn_def &)): New.
34099 (debug_verbose (vinsn_def *)): New.
34100 (debug (expr_def &)): New.
34101 (debug (expr_def *)): New.
34102 (debug_verbose (expr_def &)): New.
34103 (debug_verbose (expr_def *)): New.
34104 (debug (vec<rtx> &)): New.
34105 (debug (vec<rtx> *)): New.
34106 * sel-sched-dump.h
34107 (extern debug (vinsn_def &)): New.
34108 (extern debug (vinsn_def *)): New.
34109 (extern debug_verbose (vinsn_def &)): New.
34110 (extern debug_verbose (vinsn_def *)): New.
34111 (extern debug (expr_def &)): New.
34112 (extern debug (expr_def *)): New.
34113 (extern debug_verbose (expr_def &)): New.
34114 (extern debug_verbose (expr_def *)): New.
34115 (extern debug (vec<rtx> &)): New.
34116 (extern debug (vec<rtx> *)): New.
34117 * sel-sched-ir.h
34118 (_list_iter_cond_expr): Make inline instead of static.
34119 * sreal.c
34120 (debug (sreal &)): New.
34121 (debug (sreal *)): New.
34122 * sreal.h
34123 (extern debug (sreal &)): New.
34124 (extern debug (sreal *)): New.
34125 * tree.h
34126 (extern debug_raw (const tree_node &)): New.
34127 (extern debug_raw (const tree_node *)): New.
34128 (extern debug (const tree_node &)): New.
34129 (extern debug (const tree_node *)): New.
34130 (extern debug_verbose (const tree_node &)): New.
34131 (extern debug_verbose (const tree_node *)): New.
34132 (extern debug_head (const tree_node &)): New.
34133 (extern debug_head (const tree_node *)): New.
34134 (extern debug_body (const tree_node &)): New.
34135 (extern debug_body (const tree_node *)): New.
34136 (extern debug (vec<tree, va_gc> &)): New.
34137 (extern debug (vec<tree, va_gc> *)): New.
34138 * tree-cfg.c
34139 (debug (struct loop &)): New.
34140 (debug (struct loop *)): New.
34141 (debug_verbose (struct loop &)): New.
34142 (debug_verbose (struct loop *)): New.
34143 * tree-dump.c: Add header dependence.
34144 * tree-flow.h
34145 (extern debug (struct loop &)): New.
34146 (extern debug (struct loop *)): New.
34147 (extern debug_verbose (struct loop &)): New.
34148 (extern debug_verbose (struct loop *)): New.
34149 * tree-data-ref.c
34150 (debug (data_reference &)): New.
34151 (debug (data_reference *)): New.
34152 (debug (vec<data_reference_p> &)): New.
34153 (debug (vec<data_reference_p> *)): New.
34154 (debug (vec<ddr_p> &)): New.
34155 (debug (vec<ddr_p> *)): New.
34156 * tree-data-ref.h
34157 (extern debug (data_reference &)): New.
34158 (extern debug (data_reference *)): New.
34159 (extern debug (vec<data_reference_p> &)): New.
34160 (extern debug (vec<data_reference_p> *)): New.
34161 (extern debug (vec<ddr_p> &)): New.
34162 (extern debug (vec<ddr_p> *)): New.
34163 * tree-ssa-alias.c
34164 (debug (pt_solution &)): New.
34165 (debug (pt_solution *)): New.
34166 * tree-ssa-alias.h
34167 (extern debug (pt_solution &)): New.
34168 (extern debug (pt_solution *)): New.
34169 * tree-ssa-alias.c
34170 (debug (_var_map &)): New.
34171 (debug (_var_map *)): New.
34172 (debug (tree_live_info_d &)): New.
34173 (debug (tree_live_info_d *)): New.
34174 * tree-ssa-alias.h
34175 (extern debug (_var_map &)): New.
34176 (extern debug (_var_map *)): New.
34177 (extern debug (tree_live_info_d &)): New.
34178 (extern debug (tree_live_info_d *)): New.
34179
34180 2013-03-28 Jan Hubicka <jh@suse.cz>
34181
34182 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34183
34184 2013-03-28 Ian Bolton <ian.bolton@arm.com>
34185
34186 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34187 record only when desired or required.
34188
34189 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
34190
34191 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34192 *vec_extractv2di_1_rex64. Use x64 isa attribute.
34193
34194 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34195
34196 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34197 (*andsi3_compare0_uxtw): New pattern.
34198 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34199 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34200
34201 2013-03-28 Jan Hubicka <jh@suse.cz>
34202
34203 * data-streamer-in.c (streamer_read_gcov_count): New function.
34204 * gimple-streamer-out.c: Include value-prof.h.
34205 (output_gimple_stmt): Output histogram.
34206 (output_bb): Use streamer_write_gcov_count.
34207 * value-prof.c: Include data-streamer.h
34208 (dump_histogram_value): Add HIST_TYPE_MAX.
34209 (stream_out_histogram_value): New function.
34210 (stream_in_histogram_value): New function.
34211 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34212 (stream_out_histogram_value, stream_in_histogram_value): Declare.
34213 * data-streamer-out.c (streamer_write_gcov_count): New function.
34214 (streamer_write_gcov_count_stream): New function.
34215 * lto-cgraph.c (lto_output_edge): Update counter streaming.
34216 (lto_output_node): Likewise.
34217 (input_node, input_edge): Likewise.
34218 * lto-streamer-out.c (output_cfg): Update streaming.
34219 * lto-streamer-in.c (input_cfg): Likewise.
34220 * data-streamer.h (streamer_write_gcov_count,
34221 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34222 * gimple-streamer-in.c: Include value-prof.h
34223 (input_gimple_stmt): Input histograms.
34224 (input_bb): Update profile streaming.
34225
34226 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34227
34228 * genmodes.c (emit_max_int): New function.
34229 (emit_insn_modes_h): Added call to emit_max_function.
34230 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34231 Added doc.
34232 * machmode.def: Fixed comment.
34233
34234 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34235
34236 * combine.c (try_combine): Removed useless assert.
34237 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34238
34239 2013-03-28 Marek Polacek <polacek@redhat.com>
34240 Richard Biener <rguenther@suse.de>
34241
34242 PR tree-optimization/56695
34243 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34244 build signed result of a vector comparison.
34245 * tree-cfg.c (verify_gimple_comparison): Check that a result
34246 of a vector comparison has signed type.
34247
34248 2013-03-28 Richard Biener <rguenther@suse.de>
34249
34250 PR tree-optimization/37021
34251 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34252 do not restrict gaps between groups.
34253 * tree-vect-stmts.c (vectorizable_load): Properly account for
34254 a gap between groups.
34255
34256 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
34257
34258 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34259 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34260 is not enabled.
34261
34262 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
34263
34264 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34265 * doc/extend.texi (Named Address Spaces): Ditto.
34266 (Variable Attributes): Ditto.
34267
34268 2013-03-27 Kai Tietz <ktietz@redhat.com>
34269
34270 * config.build: Add support for cygwin x64 target.
34271 * config.gcc: Likewise.
34272 * config.host: Likewise.
34273 * configure.ac: Likewise
34274 * configure: Regenerated.
34275
34276 2013-03-27 Kai Tietz <ktietz@redhat.com>
34277
34278 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34279 * config/i386/t-cygwin-w64: New file.
34280 * config/i386/cygwin-w64.h: New file.
34281 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34282 and add support for x64-cygwin target.
34283 (CPP_SPEC): Likewise.
34284 (CXX_WRAP_SPEC_LIST): Undefine before define.
34285 (LIBGCJ_SONAME): Use 15 as version.
34286
34287 2013-03-27 Richard Biener <rguenther@suse.de>
34288
34289 PR tree-optimization/56716
34290 * tree-ssa-structalias.c (perform_var_substitution): Adjust
34291 dumping for ref nodes.
34292
34293 2013-03-27 Martin Jambor <mjambor@suse.cz>
34294
34295 PR tree-optimization/55334
34296 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34297 restricted pointers to arrays.
34298
34299 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
34300
34301 * Makefile.in (.SUFFIXES): Add .cc.
34302 (.c.o): Apply same recipe for implicit rule .cc.o.
34303
34304 2013-03-27 Richard Biener <rguenther@suse.de>
34305
34306 PR tree-optimization/37021
34307 * tree-vect-data-refs.c (vect_check_strided_load): Allow
34308 REALPART/IMAGPART_EXPRs around the supported refs.
34309 * tree-ssa-structalias.c (find_func_aliases): Assume that
34310 floating-point values are not used to transfer pointers.
34311
34312 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
34313
34314 * target.def (TARGET_HAS_IFUNC_P): New target hook.
34315 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34316 * doc/tm.texi: Regenerate.
34317 * targhooks.h (default_has_ifunc_p): New.
34318 * targhooks.c (default_has_ifunc_p): Ditto.
34319 * config/linux-protos.h: New file.
34320 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34321 hook for linux which disables support of indirect functions in android.
34322 * config/linux-android.c: New file.
34323 * config/t-linux-android.c: Ditto.
34324 * config.gcc: Added new object file linux-android.o.
34325 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34326 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34327 * varasm.c (do_assemble_alias): Likewise.
34328 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34329 doesn't support indirect functions.
34330 * configure: Regenerate.
34331
34332 2013-03-27 Bin Cheng <bin.cheng@arm.com>
34333
34334 PR target/56102
34335 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34336 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34337 mult-word mode.
34338
34339 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34340
34341 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34342
34343 2013-03-27 Terry Guo <terry.guo@arm.com>
34344
34345 * config/arm/arm-cores.def: Added core cortex-r7.
34346 * config/arm/arm-tune.md: Regenerated.
34347 * config/arm/arm-tables.opt: Regenerated.
34348 * doc/invoke.texi: Added entry for core cortex-r7.
34349
34350 2013-03-27 Walter Lee <walt@tilera.com>
34351
34352 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34353 double-decrement of next_scratch_regno.
34354
34355 2013-03-27 Walter Lee <walt@tilera.com>
34356
34357 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34358 input operands.
34359 (insn_v1mulus): Ditto.
34360 (insn_v2muls): Ditto.
34361
34362 2013-03-27 Walter Lee <walt@tilera.com>
34363
34364 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34365 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34366
34367 2013-03-27 Walter Lee <walt@tilera.com>
34368
34369 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34370 (*sibcall_value): Ditto.
34371
34372 2013-03-27 Walter Lee <walt@tilera.com>
34373
34374 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34375 (insn_mnz_v8qi): ... this ...
34376 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
34377 vector equivalent.
34378 (insn_v<n>mnz): Replaced by ...
34379 (insn_v1mnz): ... this ...
34380 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
34381 equivalent.
34382 (insn_mz_<mode>): Replaced by ...
34383 (insn_mz_v8qi): ... this ...
34384 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
34385 vector equivalent.
34386 (insn_v<n>mz): Replaced by ...
34387 (insn_v1mz): ... this ...
34388 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
34389 equivalent.
34390
34391 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
34392
34393 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34394
34395 2013-03-26 Roland McGrath <mcgrathr@google.com>
34396
34397 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34398 than fprintf with a non-constant, non-format string.
34399
34400 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34401
34402 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34403 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
34404 operand 0 predicate.
34405 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34406 attribute. Use general_x64nomem_operand as operand 1 predicate.
34407 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34408 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34409 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34410 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34411 (mov<mode>_insv_1): Remove expander. Merge insn with
34412 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34413 Use general_x64nomem_operand as operand 1 predicate.
34414 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34415 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34416 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34417 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34418 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
34419 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34420 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34421 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34422 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
34423 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34424 (general_x64nomem_operand): Ditto.
34425
34426 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
34427
34428 * config/rtems.opt: Add -pthread option.
34429
34430 2013-03-26 Richard Biener <rguenther@suse.de>
34431
34432 * alias.c (find_base_term): Avoid redundant and not used recursion.
34433 (base_alias_check): Get the initial base term from the caller.
34434 (true_dependence_1): Compute and pass base terms to base_alias_check.
34435 (write_dependence_p): Likewise.
34436 (may_alias_p): Likewise.
34437
34438 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
34439
34440 * config/aarch64/aarch64.c (aarch64_classify_address): Support
34441 PC-relative load in SI modes and above only.
34442
34443 2013-03-26 Xinyu Qi <xyqi@marvell.com>
34444
34445 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34446 * config/arm/iwmmxt.md (WCGR0): Update.
34447 (WCGR1, WCGR2, WCGR3): Likewise.
34448
34449 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34450
34451 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34452 Use x64 and nox64 isa attributes.
34453
34454 2013-03-26 Richard Biener <rguenther@suse.de>
34455
34456 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34457 alignment computations and rely on get_object_alignment_1
34458 for the !TYPE_P case.
34459 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34460
34461 2013-03-26 Walter Lee <walt@tilera.com>
34462
34463 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34464 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34465
34466 2013-03-25 Jeff Law <law@redhat.com>
34467
34468 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34469 check for INTEGRAL_TYPE_P that was missing due to checking in
34470 wrong version of prior patch.
34471
34472 2013-03-25 Walter Lee <walt@tilera.com>
34473
34474 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34475 TILEGX_INSN_SHUFFLEBYTES1.
34476 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34477 shufflebytes1.
34478 (tilegx_builtins): Ditto.
34479 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34480
34481 2013-03-25 Walter Lee <walt@tilera.com>
34482
34483 * config/tilegx/tilegx.md (floatsisf2): New pattern.
34484 (floatunssisf2): New pattern.
34485 (floatsidf2): New pattern.
34486 (floatunssidf2): New pattern.
34487
34488 2013-03-25 Walter Lee <walt@tilera.com>
34489
34490 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34491 tests for constraint J, K, N, P.
34492
34493 2013-03-25 Walter Lee <walt@tilera.com>
34494
34495 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34496 Use indirect/pcrel encoding.
34497 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34498 Ditto.
34499
34500 2013-03-25 Steve Ellcey <sellcey@mips.com>
34501
34502 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34503 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34504 * config/mips/mips.c (mips_option_override): Set IMADD default.
34505 * config/mips/mips.h (PTF_AVOID_IMADD): New.
34506 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34507 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34508 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34509 * doc/invoke.texi (-mimadd/-mno-imadd): New.
34510
34511 2013-03-25 Jeff Law <law@redhat.com>
34512
34513 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34514 slightly to avoid creating and folding useless trees. Simplify
34515 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34516
34517 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
34518
34519 * config/i386/i386.md (*zero_extendsidi2): Merge with
34520 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
34521 * config/i386/predicates.md (x86_64_zext_operand): Rename from
34522 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
34523 targets. Clarify comment.
34524
34525 2013-03-25 Martin Jambor <mjambor@suse.cz>
34526
34527 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34528 pass-through jump functions differently.
34529 (ipa_read_jump_function): Likewise. Also use setter functions to set
34530 up jump functions.
34531
34532 2013-03-25 Martin Jambor <mjambor@suse.cz>
34533
34534 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34535 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34536 process it.
34537 (ipa_get_indirect_edge_target): New function.
34538 (devirtualization_time_bonus): New parameter known_aggs, pass it to
34539 ipa_get_indirect_edge_target. Update all callers.
34540 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
34541 ipa_get_indirect_edge_target_1 instead of calling
34542 ipa_get_indirect_edge_target.
34543 (create_specialized_node): Pass aggvlas to
34544 ipcp_discover_new_direct_edges.
34545
34546 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34547
34548 * config/arm/arm.md (f_sels, f_seld): New types.
34549 (*cmov<mode>): New pattern.
34550 * config/arm/predicates.md (arm_vsel_comparison_operator): New
34551 predicate.
34552
34553 2013-03-25 Kai Tietz <ktietz@redhat.com>
34554
34555 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34556 POSIX-printf for mingw-hosted builds.
34557
34558 2013-03-25 Richard Biener <rguenther@suse.de>
34559
34560 PR middle-end/56694
34561 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34562 must-not-throw stmt location.
34563
34564 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34565
34566 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34567 Emit load-acquire versions when acq is true.
34568 (arm_emit_store_exclusive): Add rel parameter.
34569 Emit store-release versions when rel is true.
34570 (arm_split_compare_and_swap): Use acquire-release instructions
34571 instead.
34572 of barriers when appropriate.
34573 (arm_split_atomic_op): Likewise.
34574 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34575 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34576 (VUNSPEC_SLX): Likewise.
34577 (VUNSPEC_LDA): Likewise.
34578 (VUNSPEC_STL): Likewise.
34579 * config/arm/sync.md (atomic_load<mode>): New pattern.
34580 (atomic_store<mode>): Likewise.
34581 (arm_load_acquire_exclusive<mode>): Likewise.
34582 (arm_load_acquire_exclusivesi): Likewise.
34583 (arm_load_acquire_exclusivedi): Likewise.
34584 (arm_store_release_exclusive<mode>): Likewise.
34585
34586 2013-03-25 Catherine Moore <clm@codesourcery.com>
34587
34588 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34589 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34590 * config/mip/predicates.md (lwsp_swsp_operand,
34591 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34592 sb16_operand, db4_operand, db7_operand, ib3_operand,
34593 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34594 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34595 andi16_operand): New predicates.
34596 * config/mips/mips.md (compression): New attribute.
34597 (enabled): New attribute.
34598 (length): Consider compression in computing length.
34599 (shift_compression): New code attribute.
34600 (*add<mode>3): New operands. Record compression.
34601 (sub<mode>3): Likewise.
34602 (one_cmpl<mode>2): Likewise.
34603 (*and<mode>3): Likewise.
34604 (*ior<mode>3): Likewise.
34605 (unnamed pattern for xor): Likewise.
34606 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34607 (*<optab><mode>3): Likewise.
34608 (*mov<mode>_internal: Likewise.
34609 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34610 (mips_unsigned_immediate_p): New.
34611 (umips_lwsp_swsp_address_p): New.
34612 (m16_based_address_p): New.
34613 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34614 (mips_unsigned_immediate_p): New prototype.
34615 (lwsp_swsp_address_p): New prototype.
34616 (m16_based_address_p): New prototype.
34617 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34618 (mips_signed_immediate_p): New function.
34619 (m16_based_address_p): New function.
34620 (lwsp_swsp_address_p): New function.
34621 (mips_print_operand_punctuation): Recognize short delay slot insns
34622 for microMIPS.add<mode>3"
34623
34624 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34625
34626 PR target/56720
34627 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34628 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34629
34630 2013-03-25 Richard Biener <rguenther@suse.de>
34631
34632 PR tree-optimization/56689
34633 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34634 any edge.
34635
34636 2013-03-25 Richard Biener <rguenther@suse.de>
34637
34638 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34639 of bitmap.
34640 (memory_references): Likewise.
34641 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34642 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34643 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34644 (gather_mem_refs_in_loops): Fold into ...
34645 (analyze_memory_references): ... this. Move initialization
34646 to tree_ssa_lim_initialize.
34647 (fill_always_executed_in): Rename to ...
34648 (fill_always_executed_in_1): ... this.
34649 (fill_always_executed_in): Move contains_call computation to
34650 this new function from ...
34651 (tree_ssa_lim_initialize): ... here.
34652 (tree_ssa_lim): Call fill_always_executed_in.
34653
34654 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34655
34656 * postreload.c (reload_combine): Fix code detecting returns.
34657
34658 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34659
34660 * function.c (emit_use_return_register_into_block): On cc0 targets,
34661 do not emit the sequence between cc0 setter and user.
34662
34663 2013-03-25 Kai Tietz <ktietz@redhat.com>
34664
34665 * config/i386/predicates.md (local_symbolic_operand): Interpret
34666 dll-imported symbols as none-local.
34667
34668 2013-03-25 Richard Biener <rguenther@suse.de>
34669
34670 * tree-ssa-loop-im.c (struct depend): Remove.
34671 (struct lim_aux_data): Make depends a vec of gimples.
34672 (free_lim_aux_data): Adjust.
34673 (add_dependency): Likewise.
34674 (set_level): Likewise.
34675
34676 2013-03-25 Richard Biener <rguenther@suse.de>
34677
34678 PR middle-end/56434
34679 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34680 the pointer returned by calls with ECF_MALLOC set.
34681
34682 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34683
34684 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34685
34686 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34687
34688 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34689 using MMXMODE mode iterator.
34690 (*move<mode>_internal): Merge with *movv2sf_internal and
34691 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34692
34693 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34694
34695 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34696 (record_last_mem_set_info): Likewise.
34697
34698 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34699 of XNEWVEC followed by memset.
34700 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34701
34702 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34703
34704 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34705 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34706 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34707 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34708 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34709 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34710 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34711 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34712 BARRIER_P instead of GET_CODE.
34713
34714 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34715
34716 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34717 inaccuracy in the probing code.
34718
34719 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34720 (ctrapdi4): Likewise.
34721
34722 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34723
34724 * calls.c (expand_call): Add missing guard to code handling return
34725 of non-BLKmode structures in MSB.
34726 * function.c (expand_function_end): Likewise.
34727
34728 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34729
34730 * combine.c (try_combine): Adjust comment. Do not add the set of
34731 insn #0 if the destination indirectly is set or dies in insn #2.
34732 Tidy up code to distribute a new note.
34733
34734 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34735
34736 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34737 also for alternatives 16 and 17.
34738
34739 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34740
34741 * config/i386/sse.md (*mov<mode>_internal): Merge with
34742 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34743 Emit insn template depending on type attribute. Use
34744 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34745 movd instead of movq mnemonic for interunit moves. Rewrite mode
34746 attribute calculation. Remove unit attribute calculation.
34747 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34748 Set prefix_data16 attribute for DImode ssemov types.
34749 Use Ym instead of y for SSE-MMX conversion alternatives.
34750 Reorder operand constraints.
34751
34752 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34753
34754 * df.h (df_insn_delete): Adjust prototype.
34755 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34756 and let it decide whether mark the basic block dirty.
34757 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34758 * df-scan.c (df_insn_info_delete): New helper function, split
34759 off from df_insn_delete.
34760 (df_scan_free_bb_info): Use it.
34761 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34762 Likewise.
34763 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34764 that the insn is actually an insn and it has a non-NULL basic block.
34765 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34766
34767 2013-03-22 Richard Biener <rguenther@suse.de>
34768
34769 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34770 dep_ref members.
34771 (mem_ref_alloc): Do not allocate them.
34772 (refs_independent_p): Do not query or maintain a cache.
34773
34774 2013-03-22 Richard Biener <rguenther@suse.de>
34775
34776 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34777 (gather_mem_refs_in_loops): Do not compute it.
34778 (analyze_memory_references): Do not allocate it.
34779 (tree_ssa_lim_finalize): Do not free it.
34780 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34781
34782 2013-03-22 Richard Biener <rguenther@suse.de>
34783
34784 * is-a.h (as_a): Use gcc_checking_assert.
34785
34786 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34787
34788 * config/aarch64/aarch64.c (aarch64_print_operand): New
34789 format specifier for printing a constant in hex.
34790 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34791 format specifier for printing second operand.
34792
34793 2013-03-22 Richard Biener <rguenther@suse.de>
34794
34795 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34796 bitmaps.
34797 (gather_mem_refs_in_loops): Perform store accumulation here.
34798 (create_vop_ref_mapping_loop): Remove.
34799 (create_vop_ref_mapping): Likewise.
34800 (analyze_memory_references): Initialize refs_stored_in_loop.
34801 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34802 (record_indep_loop): Remove.
34803 (record_dep_loop): New function.
34804 (ref_indep_loop_p_1): Adjust to only walk over references
34805 in the loop, not its subloops.
34806 (ref_indep_loop_p): Rename to ...
34807 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34808 maintaining a more fine-grained cache.
34809 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34810 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34811
34812 2013-03-22 Richard Biener <rguenther@suse.de>
34813
34814 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34815 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34816 aggregate mem_ref_loc.
34817 (free_mem_ref_locs): Inline into ...
34818 (memref_free): ... this and adjust.
34819 (mem_ref_alloc): Adjust.
34820 (mem_ref_locs_alloc): Remove.
34821 (record_mem_ref_loc): Adjust.
34822 (get_all_locs_in_loop): Rewrite into ...
34823 (for_all_locs_in_loop): ... this iterator.
34824 (rewrite_mem_ref_loc): New functor.
34825 (rewrite_mem_refs): Use for_all_locs_in_loop.
34826 (sm_set_flag_if_changed): New functor.
34827 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34828 (ref_always_accessed): New functor.
34829 (ref_always_accessed_p): Use for_all_locs_in_loop.
34830
34831 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34832
34833 * tree-pass.h (PROP_gimple_lvec): New.
34834 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34835 (init_optimization_passes): Move pass_lower_vector.
34836 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34837 PROP_gimple_lvec.
34838 (pass_lower_vector): Provide PROP_gimple_lvec.
34839 (pass_lower_vector_ssa): Likewise.
34840 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34841
34842 2013-03-21 Mark Wielaard <mjw@redhat.com>
34843
34844 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34845
34846 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34847
34848 * config/i386/i386.md (*movdi_internal): Disparage slightly
34849 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34850 conversion alternatives.
34851
34852 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34853
34854 PR middle-end/48087
34855 * diagnostic.def (DK_WERROR): New kind.
34856 * diagnostic.h (werrorcount): Define.
34857 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34858 promoted to DK_ERROR, increment DK_WERROR counter instead of
34859 DK_ERROR counter.
34860 * toplev.c (toplev_main): Call print_ignored_options even if
34861 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34862 even if just werrorcount is non-zero.
34863
34864 PR debug/55608
34865 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34866 on failure.
34867 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34868 (string_cst_pool_decl): New function.
34869 (optimize_one_addr_into_implicit_ptr): New function.
34870 (resolve_addr_in_expr): Optimize DWARF location expression
34871 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34872 which doesn't live in memory, but has DW_AT_location or
34873 DW_AT_const_value, or refers to a string literal, into
34874 DW_OP_GNU_implicit_pointer.
34875 (optimize_location_into_implicit_ptr): New function.
34876 (resolve_addr): If removing DW_AT_location of a variable because
34877 it was DW_OP_addr of address of the variable, but the variable doesn't
34878 live in memory, try to emit const value attribute for the initializer.
34879
34880 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34881
34882 * tree.h (VECTOR_TYPE_P): New macro.
34883 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34884 TYPE_MODE): Use it.
34885 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34886 VEC_COND_EXPR cannot be lvalues.
34887 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34888
34889 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34890
34891 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34892 Restrict the transformation to equal modes.
34893
34894 2013-03-21 Richard Biener <rguenther@suse.de>
34895
34896 PR tree-optimization/39326
34897 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34898 (MEM_ANALYZABLE): Adjust.
34899 (record_mem_ref_loc): Move bitmap ops ...
34900 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34901 unanalyzable refs, do not record locations for it.
34902 (analyze_memory_references): Allocate ref zero as shared
34903 unanalyzable ref.
34904 (refs_independent_p): Do not test for unanalyzed mems here.
34905 (ref_indep_loop_p_1): Special-case disambiguation against
34906 the unanalyzed ref.
34907 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34908
34909 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34910
34911 * config/arm/arm-protos.h (tune_params): Add
34912 prefer_neon_for_64bits field.
34913 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34914 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34915 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34916 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34917 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34918 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34919 (arm_option_override): Handle -mneon-for-64bits new option.
34920 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34921 (prefer_neon_for_64bits): Declare new variable.
34922 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34923 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34924 (arch_enabled): Handle new arch types. Remove support for onlya8
34925 and nota8.
34926 (one_cmpldi2): Use new arch names.
34927 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34928 * config/arm/arm.opt (mneon-for-64bits): Add option.
34929 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34930 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34931 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34932 of onlya8.
34933 * doc/invoke.texi (-mneon-for-64bits): Document.
34934
34935 2013-03-21 Richard Biener <rguenther@suse.de>
34936
34937 PR tree-optimization/39326
34938 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34939 (sort_bbs_in_loop_postorder_cmp): New function.
34940 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34941
34942 2013-03-21 Richard Biener <rguenther@suse.de>
34943
34944 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34945 (vect_insert_into_interleaving_chain): Likewise.
34946 (vect_drs_dependent_in_basic_block): Inline ...
34947 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34948 split out from ...
34949 (vect_analyze_data_ref_dependence): ... here. Simplify.
34950 (vect_check_interleaving): Simplify.
34951 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34952 (vect_slp_analyze_data_ref_dependences): ... this new function.
34953 (dr_group_sort_cmp): New function.
34954 (vect_analyze_data_ref_accesses): Compute data-reference groups
34955 here instead of in vect_analyze_data_ref_dependence. Use
34956 a more efficient algorithm.
34957 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34958 vect_slp_analyze_data_ref_dependences. Call
34959 vect_analyze_data_ref_accesses earlier.
34960 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34961 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34962 (vect_slp_analyze_data_ref_dependences): New prototype.
34963
34964 2013-03-21 Richard Biener <rguenther@suse.de>
34965
34966 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34967 ref is stored in the loop.
34968 (find_refs_for_sm): Walk only over all stores.
34969 (store_motion_loop): Allocate from lim_bitmap_obstack.
34970 (store_motion): Likewise.
34971
34972 2013-03-21 Richard Biener <rguenther@suse.de>
34973
34974 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34975 Update virtual SSA form.
34976
34977 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34978
34979 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34980 * configure: Regenerate.
34981 * config.in: Regenerate.
34982 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34983 if !HAVE_LD_EH_FRAME_CIEV3.
34984
34985 2013-03-21 Richard Biener <rguenther@suse.de>
34986
34987 * tree-cfg.c (verify_expr_no_block): New function.
34988 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34989 nor DECL_VALUE_EXPR have locations with associated blocks.
34990 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34991 (clear_unused_block_pointer): Remove code dealing with
34992 blocks in DECL_DEBUG_EXPR locations.
34993
34994 2013-03-21 Richard Biener <rguenther@suse.de>
34995
34996 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34997 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34998 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34999 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
35000 instead of DECL_DEBUG_EXPR_IS_FROM.
35001 * gimplify.c (gimplify_modify_expr): Likewise.
35002 * tree-cfg.c (verify_expr_location_1): Likewise.
35003 * tree-complex.c (create_one_component_var): Likewise.
35004 * tree-sra.c (create_access_replacement): Likewise.
35005 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
35006 (clear_unused_block_pointer): Likewise.
35007 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
35008 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
35009 * var-tracking.c (var_debug_decl): Likewise.
35010 (track_expr_p): Likewise.
35011 * tree-inline.c (add_local_variables): Likewise. Set
35012 DECL_HAS_DEBUG_EXPR_P after copying it.
35013 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
35014 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
35015
35016 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
35017
35018 PR bootstrap/56656
35019 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
35020 * configure: Regenerate.
35021 * config.in: Regenerate.
35022 * config/i386/i386.md (*movdf_internal): Use
35023 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
35024 movd instead of movq mnemonic for interunit moves.
35025 (*movdi_internal): Ditto.
35026
35027 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35028
35029 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
35030 (abd<mode>_3): New pattern.
35031 (aba<mode>_3): New pattern.
35032 (fabd<mode>_3): New pattern.
35033
35034 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35035
35036 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
35037 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
35038 occurrence of REGISTER_PREFIX as its empty string.
35039
35040 2013-03-20 Jeff Law <law@redhat.com>
35041
35042 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
35043 addititional equivalences for equality comparisons between an SSA_NAME
35044 and a constant where the SSA_NAME was set from a widening conversion.
35045
35046 2013-03-20 Walter Lee <walt@tilera.com>
35047
35048 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
35049
35050 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35051
35052 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
35053 depending on type attribute.
35054 (*movti_internal): Ditto.
35055 (*movtf_internal): Ditto.
35056 (*movxf_internal): Ditto.
35057 (*movdf_internal): Ditto.
35058 (*movsf_internal): Ditto.
35059
35060 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35061
35062 * config/i386/i386.md (*movti_internal): Set prefix attribute to
35063 maybe_vex for sselog1 and ssemov types.
35064 (*movdi_internal): Reorder operand constraints.
35065 (*movsi_internal): Ditto. Set prefix attribute to
35066 maybe_vex for sselog1 and ssemov types.
35067 (*movtf_internal): Set prefix attribute to maybe_vex
35068 for sselog1 and ssemov types.
35069 (*movdf_internal): Ditto. Set prefix_data16 attribute for
35070 DImode ssemov types. Reorder operand constraints.
35071 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
35072 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
35073 attribute for SImode ssemov types. Reorder operand constraints.
35074
35075 2013-03-20 Martin Jambor <mjambor@suse.cz>
35076
35077 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
35078 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
35079
35080 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
35081
35082 * config/rs6000/predicates.md (indexed_address, update_address_mem
35083 update_indexed_address_mem): New predicates.
35084 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
35085 attribute for load/store instructions.
35086 * config/rs6000/dfp.md (movsd_store): Likewise.
35087 (movsd_load): Likewise.
35088 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
35089 (unnamed HI->DI extend define_insn): Likewise.
35090 (unnamed SI->DI extend define_insn): Likewise.
35091 (unnamed QI->SI extend define_insn): Likewise.
35092 (unnamed QI->HI extend define_insn): Likewise.
35093 (unnamed HI->SI extend define_insn): Likewise.
35094 (unnamed HI->SI extend define_insn): Likewise.
35095 (extendsfdf2_fpr): Likewise.
35096 (movsi_internal1): Likewise.
35097 (movsi_internal1_single): Likewise.
35098 (movhi_internal): Likewise.
35099 (movqi_internal): Likewise.
35100 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
35101 attribute for load/store instructions.
35102 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
35103 instructions.
35104 (mov<mode>_softfloat): Likewise.
35105 (mov<mode>_hardfloat32): Likewise.
35106 (mov<mode>_hardfloat64): Likewise.
35107 (mov<mode>_softfloat64): Likewise.
35108 (movdi_internal32): Likewise.
35109 (movdi_internal64): Likewise.
35110 (probe_stack_<mode>): Likewise.
35111
35112 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
35113
35114 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
35115 floating point, and decimal floating point to reload iterator.
35116
35117 * config/rs6000/constraints.md (wl constraint): New constraints to
35118 return FLOAT_REGS if certain options are used to reduce the number
35119 of separate patterns that exist in the file.
35120 (wx constraint): Likewise.
35121 (wz constraint): Likewise.
35122
35123 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35124 -mdebug=reg, print wg, wl, wx, and wz constraints.
35125 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35126 Initialize the reload functions for 64-bit binary/decimal floating
35127 point types.
35128 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35129 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35130 create the buffer on the stack to overcome not having a 32-bit
35131 load and store.
35132 (rs6000_emit_move): Likewise.
35133 (rs6000_secondary_memory_needed_rtx): Likewise.
35134 (rs6000_alloc_sdmode_stack_slot): Likewise.
35135 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35136 via xxlxor, just like DFmode 0.0.
35137
35138 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
35139 define as 1 if we are running on a power7 or newer.
35140 (enum r6000_reg_class_enum): Add new constraints.
35141
35142 * config/rs6000/dfp.md (movsd): Delete, combine with binary
35143 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35144 with other moves by using conditional constraits (wg). Use LFIWZX
35145 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
35146 (movsd splitter): Likewise.
35147 (movsd_hardfloat): Likewise.
35148 (movsd_softfloat): Likewise.
35149
35150 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35151 binary and decimal floating point moves.
35152 (fmove_ok): New attributes to combine binary and decimal floating
35153 point moves, and to combine power6x (mfpgpr) moves along normal
35154 floating moves.
35155 (real_value_to_target): Likewise.
35156 (f32_lr): Likewise.
35157 (f32_lm): Likewise.
35158 (f32_li): Likewise.
35159 (f32_sr): Likewise.
35160 (f32_sm): Likewise.
35161 (f32_si): Likewise.
35162 (movsf): Combine binary and decimal floating point moves. Combine
35163 power6x (mfpgpr) moves with other moves by using conditional
35164 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
35165 (mov<mode> for SFmode/SDmode); Likewise.
35166 (SFmode/SDmode splitters): Likewise.
35167 (movsf_hardfloat): Likewise.
35168 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35169 (movsf_softfloat): Likewise.
35170 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35171
35172 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35173 wx and wz constraints.
35174
35175 * config/rs6000/constraints.md (wg constraint): New constraint to
35176 return FLOAT_REGS if -mmfpgpr (power6x) was used.
35177
35178 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35179 constraint.
35180
35181 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35182 -mdebug=reg, print wg, wl, wx, and wz constraints.
35183 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35184 Initialize the reload functions for 64-bit binary/decimal floating
35185 point types.
35186 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35187 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35188 create the buffer on the stack to overcome not having a 32-bit
35189 load and store.
35190 (rs6000_emit_move): Likewise.
35191 (rs6000_secondary_memory_needed_rtx): Likewise.
35192 (rs6000_alloc_sdmode_stack_slot): Likewise.
35193 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35194 via xxlxor, just like DFmode 0.0.
35195
35196 * config/rs6000/dfp.md (movdd): Delete, combine with binary
35197 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35198 with other moves by using conditional constraits (wg). Use LFIWZX
35199 and STFIWX for loading SDmode on power7.
35200 (movdd splitters): Likewise.
35201 (movdd_hardfloat32): Likewise.
35202 (movdd_softfloat32): Likewise.
35203 (movdd_hardfloat64_mfpgpr): Likewise.
35204 (movdd_hardfloat64): Likewise.
35205 (movdd_softfloat64): Likewise.
35206
35207 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35208 64-bit binary and decimal floating point moves.
35209 (FMOVE64X): Likewise.
35210 (movdf): Combine 64-bit binary and decimal floating point moves.
35211 Combine power6x (mfpgpr) moves with other moves by using
35212 conditional constraits (wg).
35213 (mov<mode> for DFmode/DDmode): Likewise.
35214 (DFmode/DDmode splitters): Likewise.
35215 (movdf_hardfloat32): Likewise.
35216 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35217 (movdf_softfloat32): Likewise.
35218 (movdf_hardfloat64_mfpgpr): Likewise.
35219 (movdf_hardfloat64): Likewise.
35220 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35221 (movdf_softfloat64): Likewise.
35222 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35223 (reload_<mode>_load): Move to later in the file so they aren't in
35224 the middle of the floating point move insns.
35225 (reload_<mode>_store): Likewise.
35226
35227 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35228 constraint.
35229
35230 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35231 constraint if -mdebug=reg.
35232 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35233 Enable using dd reload support if needed.
35234
35235 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35236 binary and decimal floating point moves in rs6000.md.
35237 (movtd_internal): Likewise.
35238
35239 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35240 decimal floating point moves.
35241 (movtf): Likewise.
35242 (movtf_internal): Likewise.
35243 (mov<mode>_internal, TDmode/TFmode): Likewise.
35244 (movtf_softfloat): Likewise.
35245 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35246
35247 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35248 movdi_internal64, using wg constraint for move direct operations.
35249 (movdi_internal64): Likewise.
35250
35251 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35252 MODES_TIEABLE_P for selected modes. Print the numerical value of
35253 the various virtual registers. Use GPR/FPR first/last values,
35254 instead of hard coding the register numbers. Print which modes
35255 have reload functions registered.
35256 (rs6000_option_override_internal): If -mdebug=reg, trace the options
35257 settings before/after setting cpu, target and subtarget settings.
35258 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35259 and for secondary reload failures in rs6000_secondary_reload_inner.
35260 (rs6000_secondary_reload_fail): Likewise.
35261 (rs6000_secondary_reload_inner): Likewise.
35262
35263 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35264 macros for first/last GPR and FPR registers.
35265 (LAST_GPR_REGNO): Likewise.
35266 (FIRST_FPR_REGNO): Likewise.
35267 (LAST_FPR_REGNO): Likewise.
35268
35269 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35270 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35271 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35272 (vcond<mode><mode>): Likewise.
35273 (vcondu<mode><mode>): Likewise.
35274 (vector_gtu<mode>): Likewise.
35275 (vector_gte<mode>): Likewise.
35276 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35277 to prevent the compiler from converting DImode operations to TImode.
35278 (ior<mode>3): Likewise.
35279 (and<mode>3): Likewise.
35280 (one_cmpl<mode>2): Likewise.
35281 (nor<mode>3): Likewise.
35282 (andc<mode>3): Likewise.
35283
35284 * config/rs6000/constraints.md (wt constraint): New constraint
35285 that returns VSX_REGS if TImode is allowed in VSX registers.
35286
35287 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35288 constant under VSX.
35289
35290 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35291 similar to TImode, but it is restricted to being in the GPRs.
35292
35293 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35294 TImode to occupy a single VSX register.
35295
35296 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35297 -mvsx-timode for power7/power8.
35298 (power7 cpu): Likewise.
35299 (power8 cpu): Likewise.
35300
35301 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35302 sure that TFmode/TDmode take up two registers if they are ever
35303 allowed in the upper VSX registers.
35304 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35305 registers.
35306 (rs6000_init_hard_regno_mode_ok): Likewise.
35307 (rs6000_debug_reg_global): Add debugging for PTImode and wt
35308 constraint. Print if LRA is turned on.
35309 (rs6000_option_override_internal): Give an error if -mvsx-timode
35310 and VSX is not enabled.
35311 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
35312 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35313 to reg+offset addressing. Use PTImode when checking offset
35314 addresses for validity.
35315 (reg_offset_addressing_ok_p): Likewise.
35316 (rs6000_legitimate_offset_address_p): Likewise.
35317 (rs6000_legitimize_address): Likewise.
35318 (rs6000_legitimize_reload_address): Likewise.
35319 (rs6000_legitimate_address_p): Likewise.
35320 (rs6000_eliminate_indexed_memrefs): Likewise.
35321 (rs6000_emit_move): Likewise.
35322 (rs6000_secondary_reload): Likewise.
35323 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
35324 reloads to fpr registers to continue to use reg+offset addressing,
35325 but 64-bit reloads to altivec registers need reg+reg addressing.
35326 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35327 it. Treat LO_SUM like a PLUS operation.
35328 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35329 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35330 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35331 registers to share a register with a smaller sized type, since VSX
35332 puts scalars in the upper 64-bits.
35333 (print_operand): Add support for PTImode.
35334 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35335 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35336 registers, but don't have arithmetic support.
35337 (rs6000_memory_move_cost): Add test for VSX.
35338 (rs6000_opt_masks): Add -mvsx-timode.
35339
35340 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35341 for TImode.
35342 (VSs): Likewise.
35343 (VSr): Use wt constraint for TImode.
35344 (VSv): Drop TImode support.
35345 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35346 (vsx_movti_64bit): Likewise.
35347 (vsx_movti_32bit): Likewise.
35348 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35349 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35350 one '?' on the appropriate output constraint. Do not allow TImode
35351 logical operations on 32-bit systems.
35352 (vsx_ior<mode>3): Likewise.
35353 (vsx_xor<mode>3): Likewise.
35354 (vsx_one_cmpl<mode>2): Likewise.
35355 (vsx_nor<mode>3): Likewise.
35356 (vsx_andc<mode>3): Likewise.
35357 (vsx_concat_<mode>): Likewise.
35358 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35359
35360 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35361 OPTION_MASK_VSX_TIMODE.
35362 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35363 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35364
35365 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35366 (TI2 iterator): New iterator for TImode, PTImode.
35367 (wd mode attribute): Add values for vector types.
35368 (movti_string): Replace TI move operations with operations for TImode
35369 and PTImode. Add support for TImode being allowed in VSX registers.
35370 (mov<mode>_string, TImode/PTImode): Likewise.
35371 (movti_ppc64): Likewise.
35372 (mov<mode>_ppc64, TImode/PTImode): Likewise.
35373 (TI mode splitters): Likewise.
35374
35375 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35376 constraint.
35377
35378 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
35379
35380 PR tree-optimization/56355
35381 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35382 Also handle integers with undefined overflow.
35383
35384 2013-03-20 Catherine Moore <clm@codesourcery.com>
35385 Maciej W. Rozycki <macro@codesourcery.com>
35386 Tom de Vries <tom@codesourcery.com>
35387 Nathan Sidwell <nathan@codesourcery.com>
35388 Iain Sandoe <iain@codesourcery.com>
35389 Nathan Froyd <froydnj@codesourcery.com>
35390 Chao-ying Fu <fu@mips.com>
35391
35392 * doc/extend.texi: (micromips, nomicromips, nocompression):
35393 Document new function attributes.
35394 * doc/invoke.texi (minterlink-compressed, mmicromips,
35395 m14k, m14ke, m14kec): Document new options.
35396 (minterlink-mips16): Update documentation.
35397 * doc/md.texi (ZC, ZD): Document new constraints.
35398 * configure.ac (gcc_cv_as_micromips): Check if linker
35399 supports the .set micromips directive.
35400 * configure: Regenerate.
35401 * config.in: Regenerate.
35402 * config/mips/mips-tables.opt: Regenerate.
35403 * config/mips/micromips.md: New file.
35404 * constraints.md (ZC, ZD): New constraints.
35405 * config/mips/predicates.md (movep_src_register): New predicate.
35406 (movep_src_operand): New predicate.
35407 (non_volatile_mem_operand): New predicate.
35408 * config/mips/mips.md (multimem): New type.
35409 (length): Differentiate between 17-bit and 18-bit branch offsets.
35410 (MOVEP1, MOVEP2): New mode iterator.
35411 (mov_<load>l): Use ZC constraint.
35412 (mov_<load>r): Likewise.
35413 (mov_<store>l): Likewise.
35414 (mov_<store>r): Likewise.
35415 (*branch_equality<mode>_inverted): Add microMIPS support.
35416 (*branch_equality<mode>): Likewise.
35417 (*jump_absolute): Likewise.
35418 (indirect_jump_<mode>): Likewise.
35419 (tablejump_<mode>): Likewise.
35420 (<optab>_internal): Likewise.
35421 (sibcall_internal): Likewise.
35422 (sibcall_value_internal): Likewise.
35423 (prefetch): Use constraint ZD.
35424 * config/mips/mips.opt (minterlink-compressed): New option.
35425 (minterlink-mips16): Now an alias for minterlink-compressed.
35426 (mmicromips): New option.
35427 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35428 (compare_and_swap_12): Likewise.
35429 (sync_add<mode>): Likewise.
35430 (sync_<optab>_12): Likewise.
35431 (sync_old_<optab>_12): Likewise.
35432 (sync_new_<optab>_12): Likewise.
35433 (sync_nand_12): Likewise.
35434 (sync_old_nand_12): Likewise.
35435 (sync_new_nand_12): Likewise.
35436 (sync_sub<mode>): Likewise.
35437 (sync_old_add<mode>): Likewise.
35438 (sync_old_sub<mode>): Likewise.
35439 (sync_new_add<mode>): Likewise.
35440 (sync_new_sub<mode>): Likewise.
35441 (sync_<optab><mode>): Likewise.
35442 (sync_old_<optab><mode>): Likewise.
35443 (sync_new_<optab><mode>): Likewise.
35444 (sync_nand<mode>): Likewise.
35445 (sync_old_nand<mode>): Likewise.
35446 (sync_new_nand<mode>): Likewise.
35447 (sync_lock_test_and_set<mode>): Likewise.
35448 (test_and_set_12): Likewise.
35449 (atomic_compare_and_swap<mode>): Likewise.
35450 (atomic_exchange<mode>_llsc): Likewise.
35451 (atomic_fetch_add<mode>_llsc): Likewise.
35452 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35453 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35454 (umips_save_restore_pattern_p): Likewise.
35455 (umips_load_store_pair_p): Likewise.
35456 (umips_output_load_store_pair): Likewise.
35457 (umips_movep_target_p): Likewise.
35458 (umips_12bit_offset_address_p): Likewise.
35459 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35460 (mips_base_mips16): Rename this...
35461 (mips_base_compression_flags): ...to this. Update all uses.
35462 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35463 (mips_mips16_decl_p): Delete.
35464 (mips_nomips16_decl_p): Delete.
35465 (mips_get_compress_on_flags): New function.
35466 (mips_get_compress_off_flags): New function.
35467 (mips_get_compress_mode): New function.
35468 (mips_get_compress_on_name): New function.
35469 (mips_get_compress_off_name): New function.
35470 (mips_insert_attributes): Support multiple compression types.
35471 (mips_merge_decl_attributes): Likewise.
35472 (umips_12bit_offset_address_p): New function.
35473 (mips_start_function_definition): Emit .set micromips directive.
35474 (mips_call_may_need_jalx_p): New function.
35475 (mips_function_ok_for_sibcall): Add microMIPS support.
35476 (mips_print_operand_punctuation): Support short delay slots and
35477 compact jumps.
35478 (umips_swm_mask, umips_swm_encoding): New.
35479 (umips_build_save_restore): New function.
35480 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35481 (was_mips16_p): Remove.
35482 (old_compression_mode): New.
35483 (mips_set_compression_mode): New function.
35484 (mips_set_current_function): Add microMIPS support.
35485 (mips_option_override): Likewise.
35486 (umips_save_restore_pattern_p): New function.
35487 (umips_output_save_restore): New function.
35488 (umips_load_store_pair_p_1): New function.
35489 (umips_load_store_pair_p): New function.
35490 (umips_output_load_store_pair_1): New function.
35491 (umips_output_load_store_pair): New function.
35492 (umips_movep_target_p) New function.
35493 (mips_prepare_pch_save): Add microMIPS support.
35494 * config/mips/mips.h (TARGET_COMPRESSION): New.
35495 (TARGET_CPU_CPP_BUILTINS): Update macro
35496 to use new compression flags and to support microMIPS.
35497 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35498 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35499 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35500 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35501 (ASM_SPEC): Support mmicromips and mno-micromips.
35502 (M16STORE_REG_P): New macro.
35503 (MIPS_CALL): Support TARGET_MICROMIPS.
35504 (MICROMIPS_J): New macro.
35505 (mips_base_mips16): Rename this...
35506 (mips_base_compression_flags): ...to this.
35507 (UMIPS_12BIT_OFFSET_P): New macro.
35508 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35509 (MULTILIB_DIRNAMES): Likewise.
35510 2013-03-20 Richard Biener <rguenther@suse.de>
35511
35512 PR tree-optimization/56661
35513 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35514 the result does not have to be distinct.
35515
35516 2013-03-20 Richard Biener <rguenther@suse.de>
35517
35518 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35519 remap_gimple_op_r.
35520
35521 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35522 Steven Bosscher <steven@gcc.gnu.org>
35523
35524 PR rtl-optimization/56605
35525 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35526
35527 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35528
35529 PR bootstrap/56656
35530 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35531 that require movd instead of movq.
35532
35533 2013-03-20 Richard Biener <rguenther@suse.de>
35534
35535 * tree-ssa-structalias.c (struct variable_info): Add pointer
35536 to the first field of an aggregate with sub-vars. Make
35537 this and the pointer to the next subfield its ID.
35538 (vi_next): New function.
35539 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35540 storedanything_id, integer_id): Increment by one.
35541 (new_var_info, get_call_vi, lookup_call_clobber_vi,
35542 get_call_clobber_vi): Adjust.
35543 (solution_set_expand): Simplify and speedup.
35544 (solution_set_add): Inline into ...
35545 (set_union_with_increment): ... this. Adjust accordingly.
35546 (do_sd_constraint): Likewise.
35547 (do_ds_constraint): Likewise.
35548 (do_complex_constraint): Simplify.
35549 (build_pred_graph): Adjust.
35550 (solve_graph): Likewise. Simplify and speedup.
35551 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35552 get_constraint_for_component_ref, get_constraint_for_1,
35553 first_vi_for_offset, first_or_preceding_vi_for_offset,
35554 create_function_info_for, create_variable_info_for_1,
35555 create_variable_info_for, intra_create_variable_infos): Adjust.
35556 (init_base_vars): Push NULL for ID zero.
35557 (compute_points_to_sets): Adjust.
35558
35559 2013-03-20 Richard Biener <rguenther@suse.de>
35560
35561 * cfgloop.c (verify_loop_structure): Streamline and avoid
35562 ICEing on corrupt loop tree.
35563 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35564 loop tree.
35565
35566 2013-03-20 Richard Biener <rguenther@suse.de>
35567
35568 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35569 check whether an SSA update is needed.
35570
35571 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
35572
35573 * config/mips/constraints.md (T): Rename to...
35574 (Yf): ...this.
35575 (U): Rename to...
35576 (Yd): ...this.
35577 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35578 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35579
35580 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35581
35582 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35583 (*subsi3_carryin_uxtw): Likewise.
35584
35585 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35586
35587 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35588 (*rorsi3_insn_uxtw): Likewise.
35589
35590 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35591
35592 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35593 (*extrsi5_insn_uxtw): Likewise.
35594
35595 2013-03-19 Richard Biener <rguenther@suse.de>
35596
35597 PR tree-optimization/56273
35598 * passes.c (init_optimization_passes): Move second VRP after DOM.
35599
35600 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35601
35602 * config/i386/i386.md (*movti_internal): Merge from
35603 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35604 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35605 nox64 isa attributes.
35606
35607 2013-03-18 Richard Biener <rguenther@suse.de>
35608
35609 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35610 (unite): Likewise.
35611 (merge_node_constraints): Likewise.
35612 (build_succ_graph): Likewise.
35613 (valid_graph_edge): Inline into single caller.
35614 (unify_nodes): Likewise. Use bitmap_set_bit return value
35615 and cache varinfo.
35616 (scc_visit): Fix formatting and variable use.
35617 (do_sd_constraint): Use gcc_checking_assert.
35618 (do_ds_constraint): Likewise.
35619 (do_complex_constraint): Likewise.
35620 (condense_visit): Likewise. Cleanup.
35621 (dump_pred_graph): New function.
35622 (perform_var_substitution): Dump the pred-graph before
35623 variable substitution.
35624 (find_equivalent_node): Use gcc_checking_assert.
35625 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35626
35627 2013-03-18 Richard Biener <rguenther@suse.de>
35628
35629 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35630 Remove cond_expr_stmt_list argument and do not gimplify the
35631 built expression.
35632 (vect_loop_versioning): Adjust.
35633 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35634 Cleanup to use less temporaries.
35635 (vect_create_data_ref_ptr): Cleanup.
35636
35637 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35638
35639 PR tree-optimization/56635
35640 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35641 require types_compatible_p types.
35642
35643 2013-03-18 Nick Clifton <nickc@redhat.com>
35644
35645 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35646 spurious backslash.
35647
35648 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35649 Add missing line to comment describing function.
35650
35651 2013-03-18 Richard Biener <rguenther@suse.de>
35652
35653 PR tree-optimization/56210
35654 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35655 Handle string / character search functions.
35656 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35657
35658 2013-03-18 Richard Biener <rguenther@suse.de>
35659
35660 PR middle-end/56483
35661 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35662 and implement properly.
35663 * gimple.h (gimple_cond_single_var_p): Remove.
35664
35665 2013-03-18 Richard Biener <rguenther@suse.de>
35666
35667 * tree-data-ref.h (find_data_references_in_loop): Declare.
35668 * tree-data-ref.c (get_references_in_stmt): Use a stack
35669 vector pre-allocated in the callers.
35670 (find_data_references_in_stmt): Adjust.
35671 (graphite_find_data_references_in_stmt): Likewise.
35672 (create_rdg_vertices): Likewise.
35673 (find_data_references_in_loop): Export.
35674 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35675 Compute dependences here...
35676 (vect_analyze_data_refs): ...not here. When we encounter
35677 a non-vectorizable data reference in basic-block vectorization
35678 truncate the data reference vector. Do not bother to
35679 fixup data-dependence information for gather loads.
35680 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35681 of data references, as reported.
35682
35683 2013-03-18 Richard Biener <rguenther@suse.de>
35684
35685 PR tree-optimization/3713
35686 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35687 has_constants and expr.
35688 (stmt_has_constants): Properly valueize SSA names when deciding
35689 whether the stmt has constants.
35690
35691 2013-03-18 Richard Biener <rguenther@suse.de>
35692
35693 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35694 whole function when there is nothing to do.
35695 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35696 * tree-vectorizer.c (vectorize_loops): Update virtual and
35697 loop-closed SSA once.
35698 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35699
35700 2013-03-18 Richard Biener <rguenther@suse.de>
35701
35702 PR middle-end/56113
35703 * domwalk.c (bb_postorder): New global static.
35704 (cmp_bb_postorder): New function.
35705 (walk_dominator_tree): Replace scheme imposing an order for
35706 visiting dominator sons by one sorting them at the time they
35707 are pushed on the stack.
35708
35709 2013-03-18 Richard Biener <rguenther@suse.de>
35710
35711 PR tree-optimization/39326
35712 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35713 (struct mem_ref): Replace mem member with ao_ref typed member.
35714 (MEM_ANALYZABLE): Adjust.
35715 (memref_eq): Likewise.
35716 (mem_ref_alloc): Likewise.
35717 (gather_mem_refs_stmt): Likewise.
35718 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35719 (execute_sm_if_changed_flag_set): Adjust.
35720 (execute_sm): Likewise.
35721 (ref_always_accessed_p): Likewise.
35722 (refs_independent_p): Likewise.
35723 (can_sm_ref_p): Likewise.
35724
35725 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35726
35727 PR c/56566
35728 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35729 return 1 even for !unsignedp.
35730
35731 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35732
35733 * config/i386/i386.md (isa): Add x64 and nox64.
35734 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35735 (*pushtf): Enable *roF alternative for x64 isa only.
35736 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35737 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35738 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35739 (*movtf_internal): Merge from *movtf_internal_rex64 and
35740 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35741 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35742 nox64 isa attributes.
35743 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35744 nox64 isa attributes.
35745 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35746
35747 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35748
35749 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35750
35751 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35752
35753 PR target/56640
35754 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35755 class names. Remove trailing comma after "ALL_REGS".
35756
35757 2013-03-16 Jan Hubicka <jh@suse.cz>
35758
35759 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35760 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35761 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35762 of cgraph_get_create_node.
35763 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35764
35765 2013-03-16 Jason Merrill <jason@redhat.com>
35766
35767 PR debug/49090
35768 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35769 with DW_AT_default_value.
35770
35771 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35772
35773 * BASE-VER: Set to 4.9.0.
35774
35775 2013-03-14 Andi Kleen <ak@linux.intel.com>
35776
35777 PR target/56619
35778 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35779 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35780 Document _x* TSX intrinsics.
35781
35782 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35783 David Holsgrove <david.holsgrove@xilinx.com>
35784
35785 * configure.ac: Add MicroBlaze TLS support detection.
35786 * configure: Regenerate.
35787 * config/microblaze/microblaze-protos.h
35788 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35789 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35790 * config/microblaze/microblaze.c (microblaze_address_type): Add
35791 ADDRESS_TLS and tls_reloc address types.
35792 (microblaze_address_info): Add tls_reloc.
35793 (TARGET_HAVE_TLS): Define.
35794 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35795 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35796 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35797 load_tls_operand, microblaze_call_tls_get_addr,
35798 microblaze_legitimize_tls_address): New functions.
35799 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35800 (get_base_reg): Use microblaze_tls_symbol_p.
35801 (microblaze_classify_address): Handle TLS.
35802 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35803 label_mentioned_p and microblaze_tls_referenced_p.
35804 (microblaze_legitimize_address): Handle TLS.
35805 (microblaze_address_insns): Handle ADDRESS_TLS.
35806 (pic_address_needs_scratch): Handle TLS.
35807 (print_operand_address): Handle TLS.
35808 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35809 (microblaze_expand_move): Handle TLS.
35810 (microblaze_legitimate_constant_p): Check
35811 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35812 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35813 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35814 (PIC_OFFSET_TABLE_REGNUM): Set.
35815 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35816 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35817 (addsi3, movsi_internal2, movdf_internal): Update constraints
35818 * config/microblaze/predicates.md (arith_plus_operand): Define
35819 (move_operand): Redefine as move_src_operand,
35820 check microblaze_tls_referenced_p.
35821
35822 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35823
35824 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35825 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35826
35827 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35828
35829 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35830 CC mode for AND.
35831
35832 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35833
35834 PR tree-optimization/53265
35835 * common.opt (Waggressive-loop-optimizations): New option.
35836 * tree-ssa-loop-niter.c: Include tree-pass.h.
35837 (do_warn_aggressive_loop_optimizations): New function.
35838 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35839 if number_of_latch_executions returned constant.
35840 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35841 early. If number_of_latch_executions returned constant, set
35842 nb_iterations_upper_bound back to it.
35843 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35844 field.
35845 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35846 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35847
35848 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35849 (MULTILIB_OSDIRNAMES): Set.
35850 * genmultilib: If defaultosdirname doesn't start with :: , set
35851 defaultosdirname2 instead, clear it and emit two . multilib_raw
35852 entries instead of just one.
35853
35854 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35855
35856 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35857 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35858 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35859 (SUBTARGET_OVERRIDE_OPTIONS): New.
35860
35861 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35862
35863 PR target/49880
35864 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35865 (musermode): Convert to Var(TARGET_USERMODE).
35866 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35867 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35868 * config/sh/sh.c (sh_option_override): Use
35869 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35870 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35871 condition.
35872 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35873 TARGET_SH4.
35874 (udivsi3_i4_single, divsi3_i4_single): Use
35875 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35876
35877 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35878
35879 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35880 default setting.
35881
35882 2013-03-13 Richard Biener <rguenther@suse.de>
35883
35884 PR tree-optimization/56608
35885 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35886 calls when vectorizing basic-blocks.
35887
35888 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35889
35890 PR plugins/45078
35891 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35892 tm_file.
35893
35894 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35895
35896 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35897
35898 2013-03-11 Jan Hubicka <jh@suse.cz>
35899
35900 PR lto/56557
35901 * lto-streamer-out.c (output_symbol_p): Skip references from
35902 constructors of external variables.
35903
35904 2013-03-11 Jan Hubicka <jh@suse.cz>
35905
35906 PR middle-end/56571
35907 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35908 from pseudos.
35909 * emit-rtl.c (verify_rtx_sharing): Likewise.
35910 (copy_insn_1): Likewise.
35911 * rtl.c (copy_rtx): Likewise.
35912
35913 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35914
35915 PR target/56591
35916 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35917 output_operand_lossage message.
35918
35919 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35920
35921 PR target/56470
35922 * arm.c (shift_op): Validate RTL pattern on the fly.
35923 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35924 the RTL.
35925
35926 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35927
35928 PR target/56347
35929 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35930 new call patterns that clobber %fr12.
35931 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35932 split and postreload patterns.
35933 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35934 registers %fr12 and %fr12R as call used.
35935
35936 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35937
35938 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35939 (canon_address, record_store, replace_read, check_mem_read_rtx,
35940 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35941 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35942 rest_of_handle_dse): Likewise.
35943
35944 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35945
35946 PR middle-end/56524
35947 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35948 Add base_optabs.
35949 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35950 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35951 (save_optabs_if_changed): Replace with...
35952 (init_tree_optimization_optabs): ...this.
35953 * optabs.c (save_optabs_if_changed): Rename to...
35954 (init_tree_optimization_optabs): ...this. Take the optimization node
35955 as argument. Do nothing if the base optabs are already correct.
35956 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35957 to recompute optabs.
35958 * function.h (function): Remove optabs field.
35959 * function.c (invoke_set_current_function_hook): Call
35960 init_tree_optimization_optabs. Use the result to initialize
35961 this_fn_optabs.
35962
35963 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35964
35965 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35966 if GTMA_HAS_NO_INSTRUMENTATION.
35967 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35968 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35969 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35970 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35971 GTMA_HAS_NO_INSTRUMENTATION.
35972
35973 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35974
35975 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35976 libasan_preinit.o.
35977
35978 2013-03-08 Marek Polacek <polacek@redhat.com>
35979 Jakub Jelinek <jakub@redhat.com>
35980
35981 PR tree-optimization/56478
35982 * predict.c (is_comparison_with_loop_invariant_p): Change the
35983 type of loop_step to tree.
35984 (predict_loops): Adjust.
35985 (predict_iv_comparison): Perform the computations on double_ints.
35986
35987 2013-03-08 Richard Biener <rguenther@suse.de>
35988
35989 PR tree-optimization/56570
35990 * tree-cfg.c (verify_expr_location_1): Verify locations for
35991 DECL_DEBUG_EXPR.
35992 * tree-sra.c (create_access_replacement): Strip locations
35993 from DECL_DEBUG_EXPRs.
35994
35995 2013-03-08 Richard Biener <rguenther@suse.de>
35996
35997 * tree-inline.c (expand_call_inline): Do not associate
35998 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35999 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
36000
36001 2013-03-08 Richard Biener <rguenther@suse.de>
36002
36003 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
36004 or block changes with -Og. Fix for location / block encoding
36005 changes and PHI arguments with locations.
36006
36007 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
36008
36009 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
36010 for all counters.
36011 (struct output_info): Likewise.
36012 (register_overhead): Remove bad gcc_assert.
36013 (bitmap_find_bit): If there is only a single bitmap element, do not
36014 count a miss as a search.
36015 (print_statistics): Update for counter type changes.
36016 (dump_bitmap_statistics): Likewise. Print headers such that they
36017 are properly lined up with the printed counters.
36018
36019 2013-03-07 Jakub Jelinek <jakub@redhat.com>
36020
36021 PR tree-optimization/56559
36022 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
36023 check that it has only a single use.
36024
36025 2013-03-07 Richard Biener <rguenther@suse.de>
36026
36027 * doc/invoke.texi (fwhole-program): Discourage use in combination
36028 with -flto.
36029
36030 2013-03-06 Jakub Jelinek <jakub@redhat.com>
36031
36032 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
36033
36034 PR tree-optimization/56539
36035 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
36036 instead of GSI_CONTINUE_LINKING as last argument to
36037 force_gimple_operand_gsi. Adjust function comment.
36038
36039 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
36040 aarch64-cores.def.
36041
36042 PR middle-end/56548
36043 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
36044 promoted mode, convert the result back to the original mode.
36045
36046 2013-03-06 Richard Biener <rguenther@suse.de>
36047
36048 PR middle-end/56294
36049 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
36050 (insert_updated_phi_nodes_compare_uids): New function.
36051 (update_ssa): Sort symbols_to_rename after UID before
36052 traversing it to insert PHI nodes.
36053
36054 2013-03-06 Richard Biener <rguenther@suse.de>
36055
36056 PR middle-end/50494
36057 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
36058 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
36059
36060 Revert
36061 2013-02-13 Richard Biener <rguenther@suse.de>
36062
36063 PR lto/50494
36064 * varasm.c (output_constant_def_1): Get the decl representing
36065 the constant as argument.
36066 (output_constant_def): Wrap output_constant_def_1.
36067 (make_decl_rtl): Use output_constant_def_1 with the decl
36068 representing the constant.
36069 (build_constant_desc): Optionally re-use a decl already
36070 representing the constant.
36071 (tree_output_constant_def): Adjust.
36072
36073 2013-03-06 Joey Ye <joey.ye@arm.com>
36074
36075 PR lto/50293
36076 * gcc.c (convert_white_space): New function.
36077 (main): Handles white space in function name.
36078
36079 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
36080
36081 PR target/56529
36082 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
36083 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
36084 to SH_DIV_CALL_TABLE for TARGET_SH2.
36085 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
36086 list.
36087 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
36088 call-table options.
36089
36090 2013-03-05 Sterling Augustine <saugustine@google.com>
36091 Cary Coutant <ccoutant@google.com>
36092
36093 PR debug/55364
36094 * dwarf2out.c (resolve_addr): Don't call
36095 remove_loc_list_addr_table_entries a second time for the same
36096 expression.
36097
36098 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36099
36100 PR debug/56510
36101 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
36102 (avoid_complex_debug_insns): New function.
36103 (expand_debug_locations): Call it.
36104
36105 PR rtl-optimization/56484
36106 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
36107 lifetimes of hard registers on small register class machines.
36108
36109 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36110
36111 * config/microblaze/microblaze-protos.h: Rename
36112 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
36113 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
36114 fast_interrupt.
36115 (microblaze_fast_interrupt_function_p): New function.
36116 (microblaze_is_interrupt_handler): Rename to
36117 microblaze_is_interrupt_variant and add fast_interrupt check.
36118 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
36119 (save_restore_insns): Likewise.
36120 (compute_frame_size): Likewise.
36121 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
36122 (microblaze_globalize_label): Likewise.
36123 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
36124 * config/microblaze/microblaze.md: Use wrapper
36125 microblaze_is_interrupt_variant.
36126
36127 2013-03-05 Kai Tietz <ktietz@redhat.com>
36128
36129 * sdbout.c (sdbout_one_type): Switch to current function's section
36130 supporting cold/hot.
36131
36132 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36133
36134 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
36135 -mxl-reorder.
36136
36137 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36138
36139 PR middle-end/56461
36140 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
36141 if VALGRIND_GET_VBITS is defined, temporarily make object
36142 memory all defined, and restore previous valgrind addressability
36143 and definability afterwards. Free this_object at the end.
36144
36145 PR middle-end/56461
36146 * lra.c (lra): Call lra_clear_live_ranges if live_p,
36147 right before calling lra_create_live_ranges, also call it
36148 when clearing live_p. Only call lra_clear_live_ranges
36149 at the end if live_p.
36150
36151 PR middle-end/56461
36152 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36153
36154 2013-03-05 Richard Biener <rguenther@suse.de>
36155
36156 PR tree-optimization/56521
36157 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36158 value-id.
36159
36160 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
36161
36162 PR c++/55135
36163 * except.h (remove_unreachable_eh_regions): New prototype.
36164 * except.c (remove_eh_handler_splicer): New function, split out
36165 of remove_eh_handler.
36166 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
36167 warning about running it on many EH regions one at a time.
36168 (remove_unreachable_eh_regions_worker): New function, walk the
36169 EH tree in depth-first order and remove non-marked regions.
36170 (remove_unreachable_eh_regions): New function.
36171 * tree-eh.c (mark_reachable_handlers): New function, split out
36172 from remove_unreachable_handlers.
36173 (remove_unreachable_handlers): Use mark_reachable_handlers and
36174 remove_unreachable_eh_regions.
36175 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36176 and remove_unreachable_eh_regions.
36177
36178 2013-03-05 Richard Biener <rguenther@suse.de>
36179
36180 PR middle-end/56525
36181 * loop-init.c (fix_loop_structure): Remove loops in two stages,
36182 not freeing them until the end.
36183
36184 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36185
36186 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36187
36188 2013-03-05 Richard Biener <rguenther@suse.de>
36189
36190 PR tree-optimization/56270
36191 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36192 of loads after scheduling an SLP instance.
36193
36194 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36195
36196 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36197 tic6x.exp.
36198 (check_gcc_parallelize): Run guality.exp as a separate job from
36199 vect.exp with unsorted.exp and $(dg_target_exps) separately from
36200 struct-layout-1.exp with stackalign.exp.
36201
36202 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36203
36204 PR middle-end/56461
36205 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36206 load_index sbitmap even if some bit in it isn't set.
36207
36208 PR middle-end/56461
36209 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36210 (discover_iteration_bound_by_body_walk): Change queues to
36211 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
36212 spelling in comment. Call safe_push on queues[bound_index] directly.
36213 Release queues[queue_index] in every iteration unconditionally.
36214 Release bounds vector.
36215
36216 PR middle-end/56461
36217 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36218 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36219 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36220 inner_phis vector.
36221
36222 2013-03-05 Richard Biener <rguenther@suse.de>
36223
36224 PR lto/56515
36225 * tree-inline.c (remap_blocks_to_null): New function.
36226 (expand_call_inline): When expanding a call stmt without
36227 an associated block inline remap all callee blocks to NULL.
36228
36229 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36230
36231 PR rtl-optimization/56494
36232 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36233 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36234 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36235
36236 PR middle-end/56461
36237 * sel-sched-ir.c (free_sched_pools): Release
36238 succs_info_pool.stack[succs_info_pool.max_top] vectors too
36239 if succs_info_pool.max_top isn't -1.
36240
36241 PR bootstrap/56509
36242 * opts.c (opts_obstack, opts_concat): Moved to...
36243 * opts-common.c (opts_obstack, opts_concat): ... here.
36244
36245 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36246
36247 PR middle-end/56461
36248 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36249
36250 2013-03-04 Martin Jambor <mjambor@suse.cz>
36251
36252 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36253 all appropriate places.
36254
36255 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
36256
36257 PR tree-optimization/56424
36258 * ipa-split.c (split_function): Do not set the RSO flag if result is
36259 not by reference and its type is a register type.
36260
36261 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
36262
36263 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36264 (microblaze_legitimate_pic_operand): Likewise
36265 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36266 new function microblaze_legitimate_pic_operand
36267 * config/microblaze/microblaze-protos.h
36268 (microblaze_legitimate_pic_operand): Declare.
36269
36270 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36271
36272 * config/microblaze/predicates.md (call_insn_simple_operand):
36273 New predicate for supported rtx code types.
36274 * config/microblaze/microblaze.md (call_internal1): Use
36275 call_insn_simple_operand predicate.
36276
36277 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36278
36279 PR middle-end/56461
36280 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36281 partitions.ordered_remove.
36282
36283 PR middle-end/56461
36284 * tree-vect-stmts.c (vectorizable_conversion): Don't call
36285 vec_oprnds0.create (1) for modifier == NONE.
36286
36287 PR middle-end/56461
36288 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36289 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36290 vec_oprnds1 right before pushing anything to it for
36291 scalar_shift_arg.
36292
36293 PR middle-end/56461
36294 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36295 set nbbs to 0 instead of having separate code path.
36296 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36297 instead of false as last argument if returning NULL.
36298
36299 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
36300
36301 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36302 the attribute is now called "target" instead of "option".
36303 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36304 * doc/tm.texi.in (Target Attributes): Likewise document the correct
36305 attribute/pragma name for TARGET_OPTION_VALID_P and
36306 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
36307 * doc/tm.texi: Regenerated.
36308
36309 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
36310
36311 * config/microblaze/microblaze.c:
36312 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36313 * config/microblaze/microblaze.h: Add -mxl-reorder to
36314 DRIVER_SELF_SPECS.
36315 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36316 instructions emitted if TARGET_REORDER.
36317 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36318 or 0 for -m/-mno case, but initialises as 2 to detect default use case
36319 separately.
36320
36321 2013-03-01 Xinliang David Li <davidxl@google.com>
36322
36323 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36324 walk length.
36325
36326 2013-03-01 Jakub Jelinek <jakub@redhat.com>
36327
36328 PR middle-end/56461
36329 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36330 vector even when returning true. Fix up function comment formatting.
36331
36332 PR middle-end/56461
36333 * ira-build.c (ira_loop_nodes_count): New variable.
36334 (create_loop_tree_nodes): Initialize it.
36335 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36336
36337 PR middle-end/56461
36338 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36339 method on dr_chain and result_chain.
36340 * tree-vect-stmts.c (vectorizable_store): Only call
36341 result_chain.create if j == 0.
36342
36343 PR middle-end/56461
36344 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36345 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36346 before overwriting it.
36347
36348 2013-03-01 Tobias Burnus <burnus@net-b.de>
36349
36350 * doc/extended.texi (C Extensions): Change order in @menu
36351 to match @node.
36352 (Other MIPS Built-in Functions): Move last MIPS entry before
36353 "picoChip Built-in Functions".
36354 (SH Built-in Functions): Move after RX Built-in Functions.
36355 * doc/gcc.texi (Introduction): Change order in @menu
36356 to match @node.
36357 * doc/md.texi (Constraints): Ditto.
36358 * gty.texi (Type Information): Ditto.
36359 (User-provided marking routines for template types): Make
36360 subsection.
36361 * doc/invoke.texi (AArch64 Options): Move before
36362 "Adapteva Epiphany Options".
36363
36364 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
36365 Jakub Jelinek <jakub@redhat.com>
36366
36367 PR sanitizer/56454
36368 * asan.c (gate_asan): Lookup no_sanitize_address instead of
36369 no_address_safety_analysis attribute.
36370 * doc/extend.texi (no_address_safety_attribute): Rename to
36371 no_sanitize_address attribute, mention no_address_safety_analysis
36372 attribute as deprecated alias.
36373
36374 2013-02-28 Jakub Jelinek <jakub@redhat.com>
36375
36376 PR middle-end/56461
36377 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36378 type to vec<vec<tree> > *.
36379 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
36380 to be vec<tree> instead of vec<tree> *, set vec_defs
36381 to vNULL and call vec_defs.create (number_of_vects), adjust other
36382 uses of vec_defs.
36383 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36384 vectorizable_condition): Adjust vect_get_slp_defs callers.
36385
36386 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36387
36388 * config/aarch64/aarch64.c
36389 (aarch64_float_const_representable): Remove unused variable.
36390
36391 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36392
36393 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36394
36395 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36396
36397 * config/aarch64/aarch64-builtins.c
36398 (aarch64_init_simd_builtins): Make static.
36399
36400 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36401
36402 * config/aarch64/aarch64.c
36403 (aarch64_simd_make_constant): Make static.
36404
36405 2013-02-28 Martin Jambor <mjambor@suse.cz>
36406
36407 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36408 with no initialization to the RHS of debug statements.
36409
36410 2013-02-28 Martin Jambor <mjambor@suse.cz>
36411
36412 PR tree-optimization/56294
36413 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36414 Adjust dumping.
36415 (get_access_replacement): Do not call create_access_replacement.
36416 Assert a replacement exists.
36417 (get_repl_default_def_ssa_name): Create the replacement declaration
36418 itself.
36419
36420 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36421
36422 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36423 final_end_function.
36424
36425 2013-02-28 Marek Polacek <polacek@redhat.com>
36426
36427 PR rtl-optimization/56466
36428 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36429 if we're changing a loop.
36430 (peel_loops_completely): Likewise.
36431
36432 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
36433
36434 PR c++/55813
36435 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36436
36437 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36438
36439 PR target/56445
36440 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36441 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36442 INTX_FTYPE_FX, FX_FTYPE_INTX.
36443 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36444
36445 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36446
36447 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36448 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36449 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36450 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36451 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36452 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36453 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36454 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36455 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36456 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36457 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36458 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36459 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36460 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36461 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36462 (avrxmega6): Increase max flash segments from 5 to 6.
36463 * config/avr/t-multilib: Regenerate.
36464 * config/avr/avr-tables.opt: Regenerate.
36465 * doc/avr-mmcu.texi: Regenerate.
36466
36467 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36468
36469 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36470 (avr_device_to_arch): Rename to avr_device_to_ld.
36471 (avr_device_to_as): New prototype.
36472 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36473 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36474 * config/avr/driver-avr.c (avr_device_to_as): New.
36475 (avr_device_to_arch): Rename to avr_device_to_ld.
36476
36477 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36478
36479 PR middle-end/56461
36480 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36481 method on dr_chain and result_chain.
36482
36483 PR middle-end/56461
36484 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36485 pointer_set_destroy on not_executed_last_iteration.
36486
36487 PR middle-end/56461
36488 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36489
36490 PR middle-end/56461
36491 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36492 FOR_EACH_DEFINED_FUNCTION when freeing state.
36493
36494 PR middle-end/56461
36495 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36496 pool_free.
36497 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36498 overwriting it.
36499
36500 PR middle-end/56461
36501 * ipa-cp.c (decide_whether_version_node): Call vec_free on
36502 known_aggs[i].items and release known_aggs vector.
36503
36504 PR middle-end/56461
36505 * ipa-reference.c (propagate): Free node_info even for alias nodes.
36506
36507 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36508
36509 * config/microblaze/microblaze.c (microblaze_emit_compare):
36510 Use xor for EQ/NE comparisions.
36511 * config/microblaze/microblaze.md (cstoresf4): Add constraints
36512 (cbranchsf4): Adjust operator to comparison_operator.
36513
36514 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36515
36516 PR middle-end/56461
36517 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36518 vector.
36519 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36520 vec_safe_push, always update *slot.
36521 (redirect_edge_var_map_clear): Use vec_free.
36522 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36523 (free_var_map_entry): Use vec_free.
36524 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36525 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36526
36527 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
36528
36529 PR middle-end/45472
36530 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36531 when the may_trap_p bit of the exprs being merged differs.
36532 Reorder tests for speculativeness in the logical and operator.
36533
36534 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36535
36536 * incpath.c (add_standard_paths): Use reconcat instead of concat
36537 where appropriate and avoid leaking memory.
36538
36539 * opts.h: Include obstack.h.
36540 (opts_concat): New prototype.
36541 (opts_obstack): New declaration.
36542 * opts.c (opts_concat): New function.
36543 (opts_obstack): New variable.
36544 (init_options_struct): Call gcc_init_obstack on opts_obstack.
36545 (finish_options): Use opts_concat instead of concat
36546 and XOBNEWVEC instead of XNEWVEC.
36547 * opts-common.c (generate_canonical_option, decode_cmdline_option,
36548 generate_option): Likewise.
36549 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36550 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36551
36552 PR target/56455
36553 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36554 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36555
36556 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36557
36558 PR middle-end/56461
36559 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36560
36561 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36562
36563 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36564 (arm_block_move_unaligned_straight): Likewise.
36565 (arm_adjust_block_mem): Likewise.
36566
36567 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36568
36569 PR target/48901
36570 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36571 temp, cond and label.
36572 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36573
36574 PR target/52500
36575 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36576 * config/c6x/c6x.h (dbx_register_map): Update declaration.
36577
36578 PR target/52501
36579 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36580 of prologue/epilogue functions.
36581
36582 PR target/52550
36583 * config/tilegx/tilegx.c (tilegx_expand_prologue):
36584 Remove unused variable cfa_offset.
36585 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36586
36587 PR target/54639
36588 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36589 type promotion to unsigned.
36590
36591 PR target/54640
36592 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36593 for HOST_WIDE_INT of 32 bit / same size as int.
36594 (arm_block_move_unaligned_straight): Likewise.
36595 (arm_adjust_block_mem): Likewise.
36596
36597 PR target/54662
36598 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36599 ALL_CFLAGS.
36600
36601 2013-02-26 Marek Polacek <polacek@redhat.com>
36602
36603 PR tree-optimization/56426
36604 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36605
36606 2013-02-26 Richard Biener <rguenther@suse.de>
36607
36608 PR target/56444
36609 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36610 unused variable loops.
36611
36612 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36613
36614 PR tree-optimization/56448
36615 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36616 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36617 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36618 later operands of the references, or even first operand for
36619 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36620
36621 PR tree-optimization/56443
36622 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36623 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36624 to type_for_mode langhook.
36625
36626 2013-02-25 Matt Turner <mattst88@gmail.com>
36627
36628 * doc/invoke.texi: Document r4700.
36629
36630 2013-02-25 Richard Biener <rguenther@suse.de>
36631
36632 PR tree-optimization/56175
36633 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36634 split out from ...
36635 (simplify_bitwise_binary): ... here. Also guard the conversion
36636 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36637
36638 2013-02-25 Catherine Moore <clm@codesourcery.com>
36639
36640 Revert:
36641 2013-02-24 Catherine Moore <clm@codesourcery.com>
36642 Maciej W. Rozycki <macro@codesourcery.com>
36643 Tom de Vries <tom@codesourcery.com>
36644 Nathan Sidwell <nathan@codesourcery.com>
36645 Iain Sandoe <iain@codesourcery.com>
36646 Nathan Froyd <froydnj@codesourcery.com>
36647 Chao-ying Fu <fu@mips.com>
36648
36649 * doc/extend.texi: (micromips, nomicromips, nocompression):
36650 Document new function attributes.
36651 * doc/invoke.texi (minterlink-compressed, mmicromips,
36652 m14k, m14ke, m14kec): Document new options.
36653 (minterlink-mips16): Update documentation.
36654 * doc/md.texi (ZC, ZD): Document new constraints.
36655 * configure.ac (gcc_cv_as_micromips): Check if linker
36656 supports the .set micromips directive.
36657 * configure: Regenerate.
36658 * config.in: Regenerate.
36659 * config/mips/mips-tables.opt: Regenerate.
36660 * config/mips/micromips.md: New file.
36661 * constraints.md (ZC, AD): New constraints.
36662 * config/mips/predicates.md (movep_src_register): New predicate.
36663 (movep_src_operand): New predicate.
36664 (non_volatile_mem_operand): New predicate.
36665 * config/mips/mips.md (multimem): New type.
36666 (length): Differentiate between 17-bit and 18-bit branch offsets.
36667 (MOVEP1, MOVEP2): New mode iterator.
36668 (mov_<load>l): Use ZC constraint.
36669 (mov_<load>r): Likewise.
36670 (mov_<store>l): Likewise.
36671 (mov_<store>r): Likewise.
36672 (*branch_equality<mode>_inverted): Add microMIPS support.
36673 (*branch_equality<mode>): Likewise.
36674 (*jump_absolute): Likewise.
36675 (indirect_jump_<mode>): Likewise.
36676 (tablejump_<mode>): Likewise.
36677 (<optab>_internal): Likewise.
36678 (sibcall_internal): Likewise.
36679 (sibcall_value_internal): Likewise.
36680 (prefetch): Use constraint ZD.
36681 * config/mips/mips.opt (minterlink-compressed): New option.
36682 (minterlink-mips16): Now an alias for minterlink-compressed.
36683 (mmicromips): New option.
36684 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36685 (compare_and_swap_12): Likewise.
36686 (sync_add<mode>): Likewise.
36687 (sync_<optab>_12): Likewise.
36688 (sync_old_<optab>_12): Likewise.
36689 (sync_new_<optab>_12): Likewise.
36690 (sync_nand_12): Likewise.
36691 (sync_old_nand_12): Likewise.
36692 (sync_new_nand_12): Likewise.
36693 (sync_sub<mode>): Likewise.
36694 (sync_old_add<mode>): Likewise.
36695 (sync_old_sub<mode>): Likewise.
36696 (sync_new_add<mode>): Likewise.
36697 (sync_new_sub<mode>): Likewise.
36698 (sync_<optab><mode>): Likewise.
36699 (sync_old_<optab><mode>): Likewise.
36700 (sync_new_<optab><mode>): Likewise.
36701 (sync_nand<mode>): Likewise.
36702 (sync_old_nand<mode>): Likewise.
36703 (sync_new_nand<mode>): Likewise.
36704 (sync_lock_test_and_set<mode>): Likewise.
36705 (test_and_set_12): Likewise.
36706 (atomic_compare_and_swap<mode>): Likewise.
36707 (atomic_exchange<mode>_llsc): Likewise.
36708 (atomic_fetch_add<mode>_llsc): Likewise.
36709 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36710 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36711 (umips_save_restore_pattern_p): Likewise.
36712 (umips_load_store_pair_p): Likewise.
36713 (umips_output_load_store_pair): Likewise.
36714 (umips_movep_target_p): Likewise.
36715 (umips_12bit_offset_address_p): Likewise.
36716 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36717 (mips_base_mips16): Rename this...
36718 (mips_base_compression_flags): ...to this. Update all uses.
36719 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36720 (mips_mips16_decl_p): Delete.
36721 (mips_nomips16_decl_p): Delete.
36722 (mips_get_compress_on_flags): New function.
36723 (mips_get_compress_off_flags): New function.
36724 (mips_get_compress_mode): New function.
36725 (mips_get_compress_on_name): New function.
36726 (mips_get_compress_off_name): New function.
36727 (mips_insert_attributes): Support multiple compression types.
36728 (mips_merge_decl_attributes): Likewise.
36729 (umips_12bit_offset_address_p): New function.
36730 (mips_start_function_definition): Emit .set micromips directive.
36731 (mips_call_may_need_jalx_p): New function.
36732 (mips_function_ok_for_sibcall): Add microMIPS support.
36733 (mips_print_operand_punctuation): Support short delay slots and
36734 compact jumps.
36735 (umips_swm_mask, umips_swm_encoding): New.
36736 (umips_build_save_restore): New function.
36737 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36738 (was_mips16_p): Remove.
36739 (old_compression_mode): New.
36740 (mips_set_compression_mode): New function.
36741 (mips_set_current_function): Add microMIPS support.
36742 (mips_option_override): Likewise.
36743 (umips_save_restore_pattern_p): New function.
36744 (umips_output_save_restore): New function.
36745 (umips_load_store_pair_p_1): New function.
36746 (umips_load_store_pair_p): New function.
36747 (umips_output_load_store_pair_1): New function.
36748 (umips_output_load_store_pair): New function.
36749 (umips_movep_target_p) New function.
36750 (mips_prepare_pch_save): Add microMIPS support.
36751 * config/mips/mips.h (TARGET_COMPRESSION): New.
36752 (TARGET_CPU_CPP_BUILTINS): Update macro
36753 to use new compression flags and to support microMIPS.
36754 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36755 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36756 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36757 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36758 (ASM_SPEC): Support mmicromips and mno-micromips.
36759 (M16STORE_REG_P): New macro.
36760 (MIPS_CALL): Support TARGET_MICROMIPS.
36761 (MICROMIPS_J): New macro.
36762 (mips_base_mips16): Rename this...
36763 (mips_base_compression_flags): ...to this.
36764 (UMIPS_12BIT_OFFSET_P): New macro.
36765 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36766 (MULTILIB_DIRNAMES): Likewise.
36767
36768 2013-02-25 Tom de Vries <tom@codesourcery.com>
36769
36770 PR rtl-optimization/56131
36771 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36772 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36773 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36774
36775 2013-02-25 Tobias Burnus <burnus@net-b.de>
36776
36777 * doc/invoke.texi (-fsanitize=): Move from optimization
36778 to debugging options.
36779
36780 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36781
36782 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36783
36784 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36785 Alexander Monakov <amonakov@ispras.ru>
36786
36787 PR middle-end/56077
36788 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36789 flush pending lists also on non-jumps. Adjust comment.
36790
36791 2013-02-24 Catherine Moore <clm@codesourcery.com>
36792 Maciej W. Rozycki <macro@codesourcery.com>
36793 Tom de Vries <tom@codesourcery.com>
36794 Nathan Sidwell <nathan@codesourcery.com>
36795 Iain Sandoe <iain@codesourcery.com>
36796 Nathan Froyd <froydnj@codesourcery.com>
36797 Chao-ying Fu <fu@mips.com>
36798
36799 * doc/extend.texi: (micromips, nomicromips, nocompression):
36800 Document new function attributes.
36801 * doc/invoke.texi (minterlink-compressed, mmicromips,
36802 m14k, m14ke, m14kec): Document new options.
36803 (minterlink-mips16): Update documentation.
36804 * doc/md.texi (ZC, ZD): Document new constraints.
36805 * configure.ac (gcc_cv_as_micromips): Check if linker
36806 supports the .set micromips directive.
36807 * configure: Regenerate.
36808 * config.in: Regenerate.
36809 * config/mips/mips-tables.opt: Regenerate.
36810 * config/mips/micromips.md: New file.
36811 * constraints.md (ZC, AD): New constraints.
36812 * config/mips/predicates.md (movep_src_register): New predicate.
36813 (movep_src_operand): New predicate.
36814 (non_volatile_mem_operand): New predicate.
36815 * config/mips/mips.md (multimem): New type.
36816 (length): Differentiate between 17-bit and 18-bit branch offsets.
36817 (MOVEP1, MOVEP2): New mode iterator.
36818 (mov_<load>l): Use ZC constraint.
36819 (mov_<load>r): Likewise.
36820 (mov_<store>l): Likewise.
36821 (mov_<store>r): Likewise.
36822 (*branch_equality<mode>_inverted): Add microMIPS support.
36823 (*branch_equality<mode>): Likewise.
36824 (*jump_absolute): Likewise.
36825 (indirect_jump_<mode>): Likewise.
36826 (tablejump_<mode>): Likewise.
36827 (<optab>_internal): Likewise.
36828 (sibcall_internal): Likewise.
36829 (sibcall_value_internal): Likewise.
36830 (prefetch): Use constraint ZD.
36831 * config/mips/mips.opt (minterlink-compressed): New option.
36832 (minterlink-mips16): Now an alias for minterlink-compressed.
36833 (mmicromips): New option.
36834 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36835 (compare_and_swap_12): Likewise.
36836 (sync_add<mode>): Likewise.
36837 (sync_<optab>_12): Likewise.
36838 (sync_old_<optab>_12): Likewise.
36839 (sync_new_<optab>_12): Likewise.
36840 (sync_nand_12): Likewise.
36841 (sync_old_nand_12): Likewise.
36842 (sync_new_nand_12): Likewise.
36843 (sync_sub<mode>): Likewise.
36844 (sync_old_add<mode>): Likewise.
36845 (sync_old_sub<mode>): Likewise.
36846 (sync_new_add<mode>): Likewise.
36847 (sync_new_sub<mode>): Likewise.
36848 (sync_<optab><mode>): Likewise.
36849 (sync_old_<optab><mode>): Likewise.
36850 (sync_new_<optab><mode>): Likewise.
36851 (sync_nand<mode>): Likewise.
36852 (sync_old_nand<mode>): Likewise.
36853 (sync_new_nand<mode>): Likewise.
36854 (sync_lock_test_and_set<mode>): Likewise.
36855 (test_and_set_12): Likewise.
36856 (atomic_compare_and_swap<mode>): Likewise.
36857 (atomic_exchange<mode>_llsc): Likewise.
36858 (atomic_fetch_add<mode>_llsc): Likewise.
36859 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36860 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36861 (umips_save_restore_pattern_p): Likewise.
36862 (umips_load_store_pair_p): Likewise.
36863 (umips_output_load_store_pair): Likewise.
36864 (umips_movep_target_p): Likewise.
36865 (umips_12bit_offset_address_p): Likewise.
36866 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36867 (mips_base_mips16): Rename this...
36868 (mips_base_compression_flags): ...to this. Update all uses.
36869 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36870 (mips_mips16_decl_p): Delete.
36871 (mips_nomips16_decl_p): Delete.
36872 (mips_get_compress_on_flags): New function.
36873 (mips_get_compress_off_flags): New function.
36874 (mips_get_compress_mode): New function.
36875 (mips_get_compress_on_name): New function.
36876 (mips_get_compress_off_name): New function.
36877 (mips_insert_attributes): Support multiple compression types.
36878 (mips_merge_decl_attributes): Likewise.
36879 (umips_12bit_offset_address_p): New function.
36880 (mips_start_function_definition): Emit .set micromips directive.
36881 (mips_call_may_need_jalx_p): New function.
36882 (mips_function_ok_for_sibcall): Add microMIPS support.
36883 (mips_print_operand_punctuation): Support short delay slots and
36884 compact jumps.
36885 (umips_swm_mask, umips_swm_encoding): New.
36886 (umips_build_save_restore): New function.
36887 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36888 (was_mips16_p): Remove.
36889 (old_compression_mode): New.
36890 (mips_set_compression_mode): New function.
36891 (mips_set_current_function): Add microMIPS support.
36892 (mips_option_override): Likewise.
36893 (umips_save_restore_pattern_p): New function.
36894 (umips_output_save_restore): New function.
36895 (umips_load_store_pair_p_1): New function.
36896 (umips_load_store_pair_p): New function.
36897 (umips_output_load_store_pair_1): New function.
36898 (umips_output_load_store_pair): New function.
36899 (umips_movep_target_p) New function.
36900 (mips_prepare_pch_save): Add microMIPS support.
36901 * config/mips/mips.h (TARGET_COMPRESSION): New.
36902 (TARGET_CPU_CPP_BUILTINS): Update macro
36903 to use new compression flags and to support microMIPS.
36904 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36905 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36906 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36907 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36908 (ASM_SPEC): Support mmicromips and mno-micromips.
36909 (M16STORE_REG_P): New macro.
36910 (MIPS_CALL): Support TARGET_MICROMIPS.
36911 (MICROMIPS_J): New macro.
36912 (mips_base_mips16): Rename this...
36913 (mips_base_compression_flags): ...to this.
36914 (UMIPS_12BIT_OFFSET_P): New macro.
36915 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36916 (MULTILIB_DIRNAMES): Likewise.
36917
36918 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36919
36920 PR target/52555
36921 * target-globals.c (save_target_globals): For init_reg_sets and
36922 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36923
36924 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36925
36926 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36927 * config/aarch64/t-aarch64
36928 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36929
36930 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36931
36932 PR inline-asm/56148
36933 * lra-constraints.c (process_alt_operands): Reload operand
36934 conflicting with earlier clobber only if no more other conflicting
36935 operands.
36936
36937 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36938
36939 PR sanitizer/56393
36940 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36941 if not linking a shared library.
36942
36943 2013-02-22 Seth LaForge <sethml@google.com>
36944
36945 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36946
36947 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36948
36949 * config/arm/arm.md (split for extendsidi): Update condition.
36950 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36951 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36952 (qhs_zextenddi_cstr): Likewise.
36953
36954 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36955
36956 PR middle-end/56420
36957 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36958 avoid signed wrapping.
36959 (expand_mult): Handle properly multiplication by
36960 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36961 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36962 in the compiler if coeff is HOST_WIDE_INT_MIN.
36963 (expand_divmod): Don't make ext_op1 static, change it's type to
36964 uhwi. Avoid undefined behavior in -INTVAL (op1).
36965
36966 PR rtl-optimization/50339
36967 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36968 field.
36969 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36970 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36971 into splitting_ashiftrt field.
36972 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36973 ASHIFTRT.
36974 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36975 choices.
36976
36977 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36978
36979 PR middle-end/56108
36980 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36981 are sure to go irrevocable.
36982
36983 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36984
36985 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36986 scalars are valid operands.
36987
36988 2013-02-21 Martin Jambor <mjambor@suse.cz>
36989
36990 PR tree-optimization/56310
36991 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36992 only matching indices and non-negative final offsets.
36993 (intersect_aggregates_with_edge): Pass src_idx to
36994 agg_replacements_to_vector. Pass src_idx insstead of index to
36995 intersect_with_agg_replacements.
36996
36997 2013-02-21 Martin Jambor <mjambor@suse.cz>
36998
36999 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
37000 instead of hard-wired defaults.
37001
37002 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
37003
37004 * doc/invoke.texi (MIPS Options): Update documentation of the
37005 floating-point multiply-accumulate instruction restrictions.
37006
37007 2013-02-21 Kostya Serebryany <kcc@google.com>
37008
37009 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
37010 asan_shadow_offset on x86_64 linux.
37011
37012 2013-02-21 Richard Biener <rguenther@suse.de>
37013
37014 PR tree-optimization/56415
37015 Revert
37016 2013-02-11 Richard Biener <rguenther@suse.de>
37017
37018 PR tree-optimization/56273
37019 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37020 first VRP run.
37021
37022 2013-02-21 Jakub Jelinek <jakub@redhat.com>
37023
37024 PR bootstrap/56258
37025 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
37026 instead of @itemx.
37027
37028 PR inline-asm/56405
37029 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
37030 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
37031
37032 2013-02-20 Jan Hubicka <jh@suse.cz>
37033
37034 PR tree-optimization/56265
37035 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
37036 when target is referenced for first time.
37037
37038 2013-02-20 Richard Biener <rguenther@suse.de>
37039
37040 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
37041 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
37042 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
37043 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
37044 not return anything.
37045 (rename_ssa_copies): Do not remove unused locals.
37046 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
37047 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
37048 * passes.c (execute_function_todo): Do not schedule unused locals
37049 removal if cleanup_tree_cfg did something.
37050 * tree-ssa-live.c (remove_unused_locals): Dump statistics
37051 about the number of removed locals.
37052
37053 2013-02-20 Richard Biener <rguenther@suse.de>
37054
37055 PR tree-optimization/56398
37056 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
37057
37058 2013-02-20 Martin Jambor <mjambor@suse.cz>
37059
37060 PR tree-optimization/55334
37061 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
37062 restricted pointers to arrays.
37063
37064 2013-02-20 Richard Biener <rguenther@suse.de>
37065 Jakub Jelinek <jakub@redhat.com>
37066
37067 PR tree-optimization/56396
37068 * tree-ssa-ccp.c (n_const_val): New static variable.
37069 (get_value): Return NULL for SSA names we don't have a lattice
37070 entry for.
37071 (ccp_initialize): Initialize n_const_val.
37072 * tree-ssa-copy.c (n_copy_of): New static variable.
37073 (init_copy_prop): Initialize n_copy_of.
37074 (get_value): Return NULL_TREE for SSA names we don't have a
37075 lattice entry for.
37076
37077 2013-02-20 Martin Jambor <mjambor@suse.cz>
37078
37079 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
37080
37081 2013-02-20 Richard Biener <rguenther@suse.de>
37082
37083 * genpreds.c (write_lookup_constraint): Do not compare first
37084 letter of the constraint again.
37085
37086 2013-02-20 Richard Biener <rguenther@suse.de>
37087
37088 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
37089 and ceil_log2.
37090 (get_use_iv_cost): Terminate hashtable walk when coming across
37091 an empty entry.
37092
37093 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
37094
37095 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
37096 reassociation for avx2 targets.
37097
37098 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37099
37100 * config/microblaze/microblaze.c: microblaze_has_clz = 0
37101 Add version check for v8.10.a to enable microblaze_has_clz
37102 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
37103 version and TARGET_PATTERN_COMPARE check
37104 * config/microblaze/microblaze.md: New clzsi2 instruction
37105
37106 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37107
37108 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
37109 function before branching.
37110
37111 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
37112
37113 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
37114 DUMP_INSN_RTX_UID.
37115 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
37116
37117 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
37118
37119 PR middle-end/55889
37120 * sel-sched.c: Include ira.h.
37121 (implicit_clobber_conflict_p): New function.
37122 (moveup_expr): Use it.
37123 * Makefile.in (sel-sched.o): Depend on ira.h.
37124
37125 2013-02-19 Richard Biener <rguenther@suse.de>
37126
37127 PR tree-optimization/56384
37128 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
37129 (vn_hash_type): Split out from ...
37130 (vn_hash_constant_with_type): ... here.
37131 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
37132 (vn_phi_eq): Compare types from vn_phi_s structure.
37133 (vn_phi_lookup): Populate vn_phi_s type.
37134 (vn_phi_insert): Likewise.
37135
37136 2013-02-19 Jakub Jelinek <jakub@redhat.com>
37137
37138 PR tree-optimization/56350
37139 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
37140 if haven't found reduction or nested cycle operand, rather than
37141 asserting we must find it.
37142
37143 PR tree-optimization/56381
37144 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37145 to fold_build3.
37146
37147 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
37148 Jakub Jelinek <jakub@redhat.com>
37149
37150 PR target/52555
37151 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37152 (swap_optab_enable): Same.
37153 (init_all_optabs): Use argument instead of global.
37154 * tree.h (struct tree_optimization_option): New field target_optabs.
37155 * expr.h (init_all_optabs): Add argument to prototype.
37156 (TREE_OPTIMIZATION_OPTABS): New.
37157 (save_optabs_if_changed): Protoize.
37158 * optabs.h: Declare this_fn_optabs.
37159 * optabs.c (save_optabs_if_changed): New.
37160 Declare this_fn_optabs.
37161 (init_optabs): Add argument to init_all_optabs() call.
37162 * function.c (invoke_set_current_function_hook): Handle per
37163 function optabs.
37164 * function.h (struct function): New field optabs.
37165 * config/mips/mips.c (mips_set_mips16_mode): Handle when
37166 optimization_current_node has changed.
37167 * target-globals.h (save_target_globals_default_opts): Protoize.
37168 * target-globals.c (save_target_globals_default_opts): New.
37169
37170 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37171
37172 PR target/56347
37173 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37174 registers %fr12 and %fr12R as call used.
37175
37176 PR target/56214
37177 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37178 and HImode, require all displacements to be an integer multiple of
37179 their mode size.
37180 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37181 only allow QImode and HImode when reload is in progress and strict is
37182 true. Likewise for symbolic addresses. Use base14_operand to check
37183 displacements in REG+BASE addresses.
37184
37185 2013-02-18 Richard Biener <rguenther@suse.de>
37186
37187 PR tree-optimization/56366
37188 * tree-vect-loop.c (get_initial_def_for_induction): Properly
37189 handle sign-conversion of outer-loop initial induction value.
37190
37191 2013-02-18 Richard Biener <rguenther@suse.de>
37192
37193 PR middle-end/56349
37194 * cfghooks.c (merge_blocks): If we merge a latch into another
37195 block adjust references to it.
37196 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37197 (verify_loop_structure): Verify that a recorded latch is in fact
37198 a latch.
37199
37200 2013-02-18 Richard Biener <rguenther@suse.de>
37201
37202 PR tree-optimization/56321
37203 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37204 order SSA name release and virtual operand unlinking.
37205
37206 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37207
37208 * config/microblaze/microblaze.md (save_stack_block): Define.
37209 (restore_stack_block): Likewise.
37210
37211 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37212
37213 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37214 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37215 * config/microblaze/microblaze.c (microblaze_option_override):
37216 Bail out early for PIC modes when target does not support PIC.
37217
37218 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37219
37220 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37221 Replace with a microblaze version.
37222 (microblaze_trampoline_init): Adapt for microblaze.
37223 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37224 microblaze.
37225
37226 2013-02-16 Jakub Jelinek <jakub@redhat.com>
37227 Dodji Seketeli <dodji@redhat.com>
37228
37229 PR asan/56330
37230 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37231 (instrument_mem_region_access): Do not forget to always put
37232 instrumentation of the of 'base' and 'base + len' in a "if (len !=
37233 0) statement, even for cases where either 'base' or 'base + len'
37234 are not instrumented -- because they have been previously
37235 instrumented. Simplify the logic by putting all the statements
37236 instrument 'base + len' inside a sequence, and then insert that
37237 sequence right before the current insertion point. Then, to
37238 instrument 'base + len', just get an iterator on that statement.
37239 And do not forget to update the pointer to iterator the function
37240 received as argument.
37241
37242 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
37243
37244 PR rtl-optimization/56348
37245 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37246
37247 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
37248
37249 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37250 (clean_graph_dump_file): Pass base to start_graph_dump.
37251
37252 2013-02-14 Richard Henderson <rth@redhat.com>
37253
37254 PR target/55941
37255 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37256
37257 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
37258
37259 * collect2-aix.h: Define F_LOADONLY.
37260
37261 2013-02-14 Richard Biener <rguenther@suse.de>
37262
37263 PR lto/50494
37264 * varasm.c (output_constant_def_1): Get the decl representing
37265 the constant as argument.
37266 (output_constant_def): Wrap output_constant_def_1.
37267 (make_decl_rtl): Use output_constant_def_1 with the decl
37268 representing the constant.
37269 (build_constant_desc): Optionally re-use a decl already
37270 representing the constant.
37271 (tree_output_constant_def): Adjust.
37272
37273 2013-02-14 Dodji Seketeli <dodji@redhat.com>
37274
37275 Fix an asan crash
37276 * asan.c (instrument_builtin_call): Really put the length of the
37277 second source argument into src1_len.
37278
37279 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37280
37281 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37282 argument. If it is false, don't create edge from then_bb to
37283 fallthru_bb.
37284 (insert_if_then_before_iter): Pass true to it.
37285 (build_check_stmt): Pass false to it.
37286 (transform_statements): Flush hash table only on extended basic
37287 block boundaries, rather than at the beginning of every bb.
37288 Don't flush hash table on nonfreeing_call_p calls.
37289 * tree-flow.h (nonfreeing_call_p): New prototype.
37290 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37291
37292 2013-02-13 David S. Miller <davem@davemloft.net>
37293
37294 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37295
37296 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
37297
37298 PR target/56184
37299 * ira.c (max_regno_before_ira): Move from ...
37300 (ira): ... here.
37301 (fix_reg_equiv_init): Use max_regno_before_ira instead of
37302 vec_safe_length.
37303
37304 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37305
37306 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37307
37308 2013-02-13 Richard Biener <rguenther@suse.de>
37309
37310 PR lto/56295
37311 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37312 globals in MEM_REFs.
37313
37314 2013-02-13 Richard Biener <rguenther@suse.de>
37315
37316 * loop-init.c (loop_optimizer_init): Clear loop state when
37317 re-initializing preserved loops.
37318 * loop-unswitch.c (unswitch_single_loop): Return whether
37319 we unswitched the loop. Do not verify loop state here.
37320 (unswitch_loops): When we unswitched a loop discover new loops.
37321
37322 2013-02-13 Kostya Serebryany <kcc@google.com>
37323
37324 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37325 on x86_64 linux.
37326 * sanitizer.def: Rename __asan_init to __asan_init_v1.
37327
37328 2013-02-12 Dodji Seketeli <dodji@redhat.com>
37329
37330 Avoid instrumenting duplicated memory access in the same basic block
37331 * Makefile.in (asan.o): Add new dependency on hash-table.h
37332 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37333 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37334 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37335 (free_mem_ref_resources, has_mem_ref_been_instrumented)
37336 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37337 (get_mem_ref_of_assignment): New functions.
37338 (get_mem_refs_of_builtin_call): Extract from
37339 instrument_builtin_call and tweak a little bit to make it fit with
37340 the new signature.
37341 (instrument_builtin_call): Use the new
37342 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
37343 of is_gimple_builtin_call.
37344 (instrument_derefs, instrument_mem_region_access): Insert the
37345 instrumented memory reference into the hash table.
37346 (maybe_instrument_assignment): Renamed instrument_assignment into
37347 this, and change it to advance the iterator when instrumentation
37348 actually happened and return true in that case. This makes it
37349 homogeneous with maybe_instrument_assignment, and thus give a
37350 chance to callers to be more 'regular'.
37351 (transform_statements): Clear the memory reference hash table
37352 whenever we enter a new BB, when we cross a function call, or when
37353 we are done transforming statements. Use
37354 maybe_instrument_assignment instead of instrumentation. No more
37355 need to special case maybe_instrument_assignment and advance the
37356 iterator after calling it; it's now handled just like
37357 maybe_instrument_call. Update comment.
37358
37359 2013-02-13 Richard Biener <rguenther@suse.de>
37360
37361 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37362 Fix loop discovery code.
37363
37364 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
37365
37366 PR inline-asm/56148
37367 * lra-constraints.c (process_alt_operands): Match early clobber
37368 operand with itself. Check conflicts with earlyclobber only if
37369 the operand is not reloaded. Prefer to reload conflicting operand
37370 if earlyclobber and matching operands are the same.
37371
37372 2013-02-12 Richard Biener <rguenther@suse.de>
37373
37374 PR lto/56297
37375 * lto-streamer-out.c (write_symbol): Do not output symbols
37376 for hard register variables.
37377
37378 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
37379
37380 PR target/54222
37381 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37382 (umulsidi3_insn, mulsidi3_insn): New insns.
37383
37384 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
37385
37386 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37387 (struct tune_params): Add vec_costs field.
37388 * config/arm/arm.c (arm_builtin_vectorization_cost)
37389 (arm_add_stmt_cost): New functions.
37390 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37391 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37392 (arm_default_vec_cost): New struct of type cpu_vec_costs.
37393 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37394 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37395 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37396 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37397
37398 2013-02-12 Richard Biener <rguenther@suse.de>
37399
37400 PR lto/56295
37401 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37402 decls again if possible.
37403
37404 2013-02-12 Richard Biener <rguenther@suse.de>
37405
37406 PR middle-end/56288
37407 * tree-ssa.c (verify_ssa_name): Fix check, move
37408 SSA_NAME_IN_FREE_LIST check up.
37409
37410 2013-02-12 Jakub Jelinek <jakub@redhat.com>
37411 Steven Bosscher <steven@gcc.gnu.org>
37412
37413 PR rtl-optimization/56151
37414 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37415 equal to op0 or op1, and last_insn pattern is CODE operation
37416 with MEM dest and one of the operands matches that MEM.
37417
37418 2013-02-11 Sriraman Tallam <tmsriram@google.com>
37419
37420 * doc/extend.texi: Document Function Multiversioning and "default"
37421 parameter string to target attribute.
37422 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37423 target attribute parameter is "default".
37424 (ix86_compare_version_priority): Remove checks for target attribute.
37425 (ix86_mangle_function_version_assembler_name): Change error to sorry.
37426 Remove check for target attribute equal to NULL. Add assert.
37427 (ix86_generate_version_dispatcher_body): Change error to sorry.
37428
37429 2013-02-11 Iain Sandoe <iain@codesourcery.com>
37430 Jack Howarth <howarth@bromo.med.uc.edu>
37431 Patrick Marlier <patrick.marlier@gmail.com>
37432
37433 PR libitm/55693
37434 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37435 define ENDFILE_SPEC as TM_DESTRUCTOR.
37436 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37437
37438 2013-02-11 Alexander Potapenko <glider@google.com>
37439 Jack Howarth <howarth@bromo.med.uc.edu>
37440 Jakub Jelinek <jakub@redhat.com>
37441
37442 PR sanitizer/55617
37443 * config/darwin.c (cdtor_record): Rename ctor_record.
37444 (sort_cdtor_records): Rename sort_ctor_records.
37445 (finalize_dtors): New routine to sort destructors by
37446 priority before use in assemble_integer.
37447 (machopic_asm_out_destructor): Use finalize_dtors if needed.
37448
37449 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
37450
37451 PR rtl-optimization/56275
37452 * simplify-rtx.c (avoid_constant_pool_reference): Check that
37453 offset is non-negative and less than cmode size before
37454 calling simplify_subreg.
37455
37456 2013-02-11 Richard Biener <rguenther@suse.de>
37457
37458 PR tree-optimization/56264
37459 * cfgloop.h (fix_loop_structure): Adjust prototype.
37460 * loop-init.c (fix_loop_structure): Return the number of
37461 newly discovered loops.
37462 * tree-cfgcleanup.c (repair_loop_structures): When new loops
37463 are discovered, do a full loop-closed SSA rewrite.
37464
37465 2013-02-11 Richard Biener <rguenther@suse.de>
37466
37467 PR tree-optimization/56273
37468 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37469 first VRP run.
37470 (check_array_ref): Fix missing newline in dumps.
37471 (search_for_addr_array): Likewise.
37472
37473 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
37474
37475 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37476
37477 2013-02-09 Jakub Jelinek <jakub@redhat.com>
37478
37479 PR target/56256
37480 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37481
37482 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
37483
37484 PR rtl-optimization/56246
37485 * lra-constraints.c (simplify_operand_subreg): Try to reuse
37486 reload pseudo.
37487 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37488 constraints are satisfied.
37489
37490 2013-02-08 Jeff Law <law@redhat.com>
37491
37492 PR debug/53948
37493 * emit-rtl.c (reg_is_parm_p): New function.
37494 * regs.h (reg_is_parm_p): New prototype.
37495 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37496 callee-clobbered registers.
37497
37498 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
37499
37500 PR target/56043
37501 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37502 If there is no implicit builtin declaration, just return NULL.
37503
37504 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37505
37506 * config/i386/sse.md (FMAMODEM): New mode iterator.
37507 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37508 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37509
37510 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37511
37512 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37513 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37514 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37515
37516 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37517
37518 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37519 (microblaze*-*-elf): Likewise.
37520 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37521 LINK_SPEC.
37522 * config/microblaze/microblaze-c.c: Add builtin defines for
37523 _LITTLE_ENDIAN and _BIG_ENDIAN.
37524 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37525 add to TARGET_DEFAULT flags.
37526 Expand ASM_SPEC and LINK_SPEC.
37527 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37528 * config/microblaze/microblaze.md: Update extendsidi2 and
37529 movdi_internal instructions to use low-order / high-order reg
37530 print_operands.
37531 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37532 options and inversemask / mask of LITTLE_ENDIAN.
37533 * config/microblaze/t-microblaze: Expand multilib options to
37534 include mlittle-endian (le) and update exceptions patterns.
37535
37536 2013-02-08 Jakub Jelinek <jakub@redhat.com>
37537
37538 PR rtl-optimization/56195
37539 * lra-constraints.c (get_reload_reg): Don't reuse regs
37540 if they have smaller mode than requested, if they have
37541 wider mode than requested, try to return a SUBREG.
37542
37543 PR tree-optimization/56250
37544 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37545 if type is unsigned and code isn't MULT_EXPR.
37546
37547 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37548
37549 PR tree-optimization/56064
37550 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37551 bits according to mode.
37552 * fixed-value.h (fixed_from_double_int)
37553 (const_fixed_from_double_int): Adjust comments.
37554
37555 2013-02-08 Richard Biener <rguenther@suse.de>
37556
37557 PR lto/56231
37558 * lto-streamer.h (struct data_in): Remove current_file, current_line
37559 and current_col members.
37560 * lto-streamer-out.c (lto_output_location): Stream changed bits
37561 en-block for efficiency.
37562 * lto-streamer-in.c (clear_line_info): Remove.
37563 (lto_input_location): Cache current file, line and column
37564 globally via local statics. Read changed bits en-block.
37565 (input_function): Do not call clear_line_info.
37566 (lto_read_body): Likewise.
37567 (lto_input_toplevel_asms): Likewise.
37568
37569 2013-02-08 Michael Matz <matz@suse.de>
37570
37571 PR tree-optimization/52448
37572 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37573 (nt_call_phase): New static.
37574 (add_or_mark_expr): Only mark accesses with newer phase than any
37575 call seen.
37576 (nonfreeing_call_p): New.
37577 (nt_init_block): Update nt_call_phase, mark blocks as visited.
37578 (nt_fini_block): Keep blocks marked as visited.
37579 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37580
37581 2013-02-08 Richard Biener <rguenther@suse.de>
37582
37583 * ira.c (ira): Free broken dominator information.
37584
37585 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37586
37587 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37588
37589 2013-02-08 Marek Polacek <polacek@redhat.com>
37590
37591 * cfgloop.c (verify_loop_structure): Add more checking of headers.
37592
37593 2013-02-08 Richard Biener <rguenther@suse.de>
37594
37595 PR middle-end/56181
37596 * cfgloop.h (flow_loops_find): Adjust.
37597 (bb_loop_header_p): Declare.
37598 * cfgloop.c (bb_loop_header_p): New function split out from ...
37599 (flow_loops_find): ... here. Adjust function signature,
37600 support incremental loop structure update.
37601 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37602 * cfgloopmanip.c (fix_loop_structure): Move ...
37603 * loop-init.c (fix_loop_structure): ... here.
37604 (apply_loop_flags): Split out from ...
37605 (loop_optimizer_init): ... here.
37606 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37607 in incremental mode, only remove dead loops here.
37608
37609 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37610
37611 PR target/54222
37612 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37613 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37614 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37615 (*round<mode>3.libgcc): New insns for fixed-modes.
37616 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37617 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37618 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37619 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37620 implementations. Define to __builtin_avr_absFX,
37621 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37622 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37623 __builtin_avr_countlsFX, respectively.
37624 * config/avr/avr-c.c (target.h): Include it.
37625 (enum avr_builtin_id): New enum.
37626 (avr_resolve_overloaded_builtin): New static function.
37627 (avr_register_target_pragmas): Use it to set
37628 targetm.resolve_overloaded_builtin.
37629 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37630 tree nodes used by DEF_BUILTIN.
37631 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37632 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37633 <AVR_BUILTIN_xxBITS>: Same.
37634
37635 2013-02-08 Richard Biener <rguenther@suse.de>
37636
37637 * cfgloop.c (verify_loop_structure): Properly handle
37638 a loop exiting to another loop header.
37639 * ira-int.h (ira_loops): Remove.
37640 * ira.c (ira_loops): Remove.
37641 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37642 (do_reload): Use loop_optimizer_finalize.
37643 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37644 number_of_loops to access the loop tree.
37645 (more_one_region_p): Likewise.
37646 (finish_loop_tree_nodes): Likewise.
37647 (rebuild_regno_allocno_maps): Likewise.
37648 (mark_loops_for_removal): Likewise.
37649 (mark_all_loops_for_removal): Likewise.
37650 (remove_unnecessary_regions): Likewise.
37651 (ira_build): Likewise.
37652 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37653
37654 2013-02-08 Richard Biener <rguenther@suse.de>
37655
37656 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37657 * ipa-pure-const.c (analyze_function): Avoid calling
37658 mark_irreducible_loops twice.
37659 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37660
37661 2013-02-07 David S. Miller <davem@davemloft.net>
37662
37663 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37664 on 'reg'.
37665 * var-tracking.c (vt_add_function_parameter): Test the presence of
37666 HAVE_window_save properly and do not remap argument registers when
37667 we have a leaf function.
37668
37669 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37670
37671 PR bootstrap/56227
37672 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37673 instead of "ll".
37674 * config/i386/i386.c (ix86_print_operand): Ditto.
37675
37676 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37677
37678 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37679
37680 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37681
37682 PR rtl-optimization/56225
37683 * lra-constraints.c (process_alt_operands): Check that reload hard
37684 reg can hold value for strict_low_part.
37685
37686 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37687
37688 PR debug/56154
37689 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37690 dwarf2out_end_function.
37691 (in_first_function_p, maybe_at_text_label_p,
37692 first_loclabel_num_not_at_text_label): New variables.
37693 (dwarf2out_var_location): In the first function find out
37694 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37695 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37696 functions.
37697
37698 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37699
37700 PR rtl-optimization/56178
37701 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37702 SUBREG of a register. Tidy up related block of code.
37703 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37704 note if the source is a register or a SUBREG of a register.
37705
37706 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37707
37708 PR target/56228
37709 * config/rs6000/rs6000.md (ptrm): New mode attr.
37710 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37711 call_value_indirect_aix<pttrsize>,
37712 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37713 m in constraints.
37714
37715 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37716
37717 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37718 if -bnortl. Convert to strcmp and strncmp.
37719
37720 2013-02-07 Alan Modra <amodra@gmail.com>
37721
37722 PR target/54009
37723 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37724 addresses won't wrap when offsetting.
37725 (rs6000_secondary_reload): Provide secondary reloads needed for
37726 wrapping LO_SUM addresses.
37727
37728 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37729
37730 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37731 MACH, just __MACH__.
37732
37733 2013-02-06 Richard Biener <rguenther@suse.de>
37734
37735 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37736 instead of calling fix_loop_structure.
37737
37738 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37739
37740 PR middle-end/56217
37741 * omp-low.c (use_pointer_for_field): Return false if
37742 lower_send_shared_vars doesn't generate any copy-out code.
37743
37744 2013-02-06 Tom de Vries <tom@codesourcery.com>
37745
37746 PR rtl-optimization/56131
37747 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37748 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37749 of the label is NULL. Add comment.
37750
37751 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37752
37753 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37754
37755 PR sanitizer/55374
37756 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37757 (STATIC_LIBTSAN_LIBS): Likewise.
37758 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37759 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37760 is defined, don't add anything else beyond that.
37761 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37762 (LINK_COMMAND_SPEC): Use them.
37763
37764 PR tree-optimization/56205
37765 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37766 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37767 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37768
37769 2013-02-05 Richard Biener <rguenther@suse.de>
37770
37771 PR tree-optimization/53342
37772 PR tree-optimization/53185
37773 * tree-vectorizer.h (vect_check_strided_load): Remove.
37774 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37775 not disallow peeling for vectorized strided loads.
37776 (vect_check_strided_load): Make static and simplify.
37777 (vect_analyze_data_refs): Adjust.
37778 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37779 correctly when vectorizing strided loads.
37780
37781 2013-02-05 Richard Biener <rguenther@suse.de>
37782
37783 * doc/install.texi: Refer to ISL, not PPL.
37784
37785 2013-02-05 Jan Hubicka <jh@suse.cz>
37786
37787 PR tree-optimization/55789
37788 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37789
37790 2013-02-05 Jan Hubicka <jh@suse.cz>
37791
37792 PR tree-optimization/55789
37793 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37794 the dead call anyway.
37795
37796 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37797
37798 PR sanitizer/55374
37799 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37800
37801 2013-02-04 Alexander Potapenko <glider@google.com>
37802 Jack Howarth <howarth@bromo.med.uc.edu>
37803 Jakub Jelinek <jakub@redhat.com>
37804
37805 PR sanitizer/55617
37806 * config/darwin.c (sort_ctor_records): Stabilized qsort
37807 on constructor priority by using original position.
37808 (finalize_ctors): New routine to sort constructors by
37809 priority before use in assemble_integer.
37810 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37811
37812 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37813
37814 PR libstdc++/54314
37815 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37816 about visibility on artificial decls.
37817 * config/sol2.c (solaris_assemble_visibility): Likewise.
37818
37819 2013-02-04 Kai Tietz <ktietz@redhat.com>
37820
37821 PR target/56186
37822 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37823 argument and improve checking of return-argument types for 16-byte
37824 modes.
37825 (ix86_function_value_1): Add additional valtype argument on call
37826 of function_value_64.
37827 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37828 handling infunction_value_64 function.
37829
37830 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37831
37832 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37833
37834 2013-02-04 Richard Biener <rguenther@suse.de>
37835
37836 PR tree-optimization/56188
37837 * tree-ssa-structalias.c (label_visit): Consider case with
37838 initially non-empty points-to set.
37839 (perform_var_substitution): Dump node mapping and clean up.
37840
37841 2013-02-04 Richard Guenther <rguenther@suse.de>
37842
37843 PR lto/56168
37844 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37845 node prevail as last resort.
37846 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37847 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37848
37849 2013-02-04 Richard Biener <rguenther@suse.de>
37850
37851 PR tree-optimization/56113
37852 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37853 Merge into ...
37854 (equiv_class_lookup_or_add): ... this.
37855 (label_visit): Adjust and fix error in previous patch.
37856 (perform_var_substitution): Adjust.
37857
37858 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37859
37860 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37861 * config/sh/sh4-300.md: Likewise.
37862 * config/sh/sh4a.md: Likewise.
37863 * config/sh/constraints.md: Likewise.
37864 * config/sh/sh.md: Likewise.
37865 * config/sh/netbsd-elf.h: Likewise.
37866 * config/sh/predicates.md: Likewise.
37867 * config/sh/sh-protos.h: Likewise.
37868 * config/sh/ushmedia.h: Likewise.
37869 * config/sh/linux.h: Likewise.
37870 * config/sh/sh.c: Likewise.
37871 * config/sh/superh.h: Likewise.
37872 * config/sh/elf.h: Likewise.
37873 * config/sh/sh4.md: Likewise.
37874 * config/sh/sh.h: Likewise.
37875
37876 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37877
37878 * config/pa/constraints.md: Adjust unused letters. Change "T"
37879 constraint to match_test floating_point_store_memory_operand().
37880 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37881 (base14_operand): New.
37882 (floating_point_store_memory_operand): New.
37883 (integer_store_memory_operand): Revise to use base14_operand and
37884 reg_plus_base_memory_operand.
37885 (move_dest_operand): Allow symbolic_memory_operands.
37886 (symbolic_memory_operand): Check for LO_SOM.
37887 (symbolic_operand): Change default case to break.
37888 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37889 CONST_DOUBLE values to be reloaded by putting them into memory when
37890 the destination is a floating point register.
37891 (movdf): Remove code to handle CONST_DOUBLE.
37892 (movsf): Likewise.
37893 (reload_indf_r1): New.
37894 (reload_insf_r1): New.
37895 Consistently use "Q" and "T" constraints with integer and floating
37896 point move instructions, respectively.
37897 (movdi): Remove FAIL.
37898 Change predicate for source operand unamed DImode move from
37899 general_operand to move_src_operand.
37900 (umulsidi3): Change predicate for destination operand to
37901 register_operand.
37902 Likewise for similar unamed patterns.
37903 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37904 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37905 (hppa_legitimize_address): Simplify mask calculation.
37906 (pa_emit_move_sequence): Revised handling of secondary reloads from
37907 REG+D addresses for floating point loads and stores. Directly handle
37908 loading CONST0_RTX (mode) to a floating point register.
37909 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37910 to floating point registers. Don't restrict secondary reloads to
37911 floating point registers to integer modes. Revise some comments and
37912 cleanup some code.
37913 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37914 (pa_legitimate_address_p): New.
37915 (pa_legitimize_reload_address): New.
37916 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37917 (STRICT_REG_OK_FOR_BASE_P): New.
37918 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37919 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37920
37921 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37922 Andrew Dixie <andrewd@gentrack.com>
37923
37924 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37925 flag set.
37926
37927 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37928
37929 * expmed.c (extract_bit_field_1): Pass the full width of the
37930 structure to get_best_reg_extraction_insn.
37931
37932 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37933
37934 PR target/54601
37935 * configure.ac (use_cxa_atexit): Add AIX.
37936 * configure: Regenerate.
37937
37938 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37939
37940 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37941
37942 PR debug/54793
37943 * final.c (need_profile_function): New variable.
37944 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37945 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37946 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37947 notes, targetm.asm_out.function_prologue doesn't emit anything,
37948 HAVE_prologue and profiler should be emitted before prologue,
37949 set need_profile_function instead of emitting it.
37950 (final_scan_insn): If need_profile_function, emit
37951 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37952 NOTE_INSN_FUNCTION_BEG note.
37953
37954 2013-02-01 Richard Henderson <rth@redhat.com>
37955
37956 * config/rs6000/rs6000.md (smulditi3): New.
37957 (umulditi3): New.
37958
37959 * config/alpha/alpha.md (umulditi3): New.
37960
37961 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37962
37963 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37964 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37965
37966 2013-02-01 Richard Biener <rguenther@suse.de>
37967
37968 PR tree-optimization/56113
37969 * tree-ssa-structalias.c (label_visit): Reduce work for
37970 single-predecessor nodes.
37971
37972 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37973
37974 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37975 range isn't testing for zero.
37976
37977 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37978
37979 PR middle-end/56113
37980 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37981
37982 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37983 Nick Clifton <nickc@redhat.com>
37984
37985 * config/v850/constraints.md (Q): Define as a memory constraint.
37986 * config/v850/predicates.md (label_ref_operand): New predicate.
37987 (e3v5_shift_operand): New predicate.
37988 (ior_operator): New predicate.
37989 * config/v850/t-v850: Add e3v5 multilib.
37990 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37991 (v850_gen_movdi): Prototype.
37992 * config/v850/v850.c: Add support for e3v5 architecture.
37993 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37994 TARGET_V850E_UP.
37995 (construct_save_jarl): Add e3v5 long JARL support.
37996 (v850_adjust_insn_length): New function. Adjust length of call
37997 insns when using e3v5 instructions.
37998 (v850_gen_movdi): New function: Generate instructions to move a
37999 DImode value.
38000 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
38001 (CPP_SPEC): Define __v850e3v5__ as appropriate.
38002 (TARGET_USE_FPU): Enable for e3v5.
38003 (CONST_OK_FOR_W): New macro.
38004 (ADJUST_INSN_LENGTH): Define.
38005 * config/v850/v850.md (UNSPEC_LOOP): Define.
38006 (attr cpu): Add v850e3v5.
38007 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
38008 (movdi): New pattern.
38009 (movdi_internal): New pattern.
38010 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
38011 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
38012 (cstoresf4): Likewise.
38013 (cstoredf4): Likewise.
38014 (insv): New pattern.
38015 (rotlso3_a): New pattern.
38016 (rotlsi3_b): New pattern
38017 (rotlsi3_v850e3v5): New pattern.
38018 (doloop_begin): New pattern.
38019 (fix_loop_counter): New pattern.
38020 (doloop_end): New pattern.
38021 (branch_normal): Add e3v5 long branch support.
38022 (branch_invert): Likewise.
38023 (branch_z_normal): Likewise.
38024 (branch_z_invert): Likewise.
38025 (branch_nz_normal): Likewise.
38026 (branch_nz_invert): Likewise.
38027 (call_internal_short): Add e3v5 register-indirect JARL support.
38028 (call_internal_long): Likewise.
38029 (call_value_internal_short): Likewise.
38030 (call_value_internal_long): Likewise.
38031 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
38032 (mloop): New option.
38033 * config.gcc: Add support for configuring v840e3v5 target.
38034 * doc/invoke.texi: Document new v850 specific command line options.
38035
38036 2013-01-31 Paul Koning <ni1d@arrl.net>
38037
38038 PR debug/55059
38039 PR debug/54508
38040 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
38041 children if parent is a class.
38042 (prune_unused_types_prune): Don't add DW_AT_declaration.
38043
38044 2013-01-31 Richard Biener <rguenther@suse.de>
38045
38046 PR tree-optimization/56157
38047 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
38048 match up operand with SLP child.
38049
38050 2013-01-31 Jason Merrill <jason@redhat.com>
38051
38052 PR debug/54410
38053 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
38054 parameters the first time.
38055 (gen_scheduled_generic_parms_dies): Check completeness here.
38056
38057 2013-01-31 Richard Biener <rguenther@suse.de>
38058
38059 PR middle-end/53073
38060 * common.opt (faggressive-loop-optimizations): New flag,
38061 enabled by default.
38062 * doc/invoke.texi (faggressive-loop-optimizations): Document.
38063 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
38064 infer_loop_bounds_from_undefined by it.
38065
38066 2013-01-31 Richard Biener <rguenther@suse.de>
38067
38068 PR tree-optimization/56150
38069 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
38070 visit virtual operands.
38071 (find_uses_to_rename_bb): Likewise.
38072
38073 2013-01-31 Richard Biener <rguenther@suse.de>
38074
38075 PR tree-optimization/56150
38076 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
38077 mixed store non-store stmts.
38078
38079 2013-01-30 Jakub Jelinek <jakub@redhat.com>
38080
38081 PR sanitizer/55374
38082 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
38083 LIBASAN_EARLY_SPEC is defined.
38084 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
38085 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
38086 before %o.
38087 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
38088
38089 PR c++/55742
38090 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
38091 invalid args instead of ICEing on it.
38092 (ix86_valid_target_attribute_tree): Return error_mark_node if
38093 ix86_valid_target_attribute_inner_p failed.
38094 (ix86_valid_target_attribute_p): Return false only if
38095 ix86_valid_target_attribute_tree returned error_mark_node. Allow
38096 target("default") attribute.
38097 (sorted_attr_string): Change argument from const char * to tree,
38098 merge in all target attribute arguments rather than just one.
38099 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
38100 instead of free. Avoid using strcat.
38101 (ix86_mangle_function_version_assembler_name): Mangle
38102 target("default") as if no target attribute is present. Adjust
38103 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
38104 instead of xmalloc and XDELETEVEC instead of free.
38105 (ix86_function_versions): Don't return true if one of the decls
38106 doesn't have target attribute. If they don't and one of the decls
38107 is DECL_FUNCTION_VERSIONED, report an error. Adjust
38108 sorted_attr_string caller. Use XDELETEVEC instead of free.
38109 (ix86_supports_function_versions): Remove.
38110 (make_name): Fix up formatting.
38111 (make_dispatcher_decl): Remove resolver_name and its initialization.
38112 Avoid leaking memory.
38113 (is_function_default_version): Return true if there is
38114 target("default") attribute rather than no target attribute at all.
38115 (make_resolver_func): Avoid leaking memory.
38116 (ix86_generate_version_dispatcher_body): Likewise.
38117 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
38118 * target.def (supports_function_versions): Remove.
38119 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
38120 * doc/tm.texi: Regenerated.
38121
38122 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
38123
38124 PR rtl-optimization/56144
38125 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
38126 for values with side effects.
38127
38128 2013-01-30 Richard Biener <rguenther@suse.de>
38129
38130 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
38131 (sparseset_pop): Likewise.
38132 * cfganal.c (compute_idf): Likewise. Increase work-stack size
38133 to be able to use quick_push in the worker loop.
38134
38135 2013-01-30 Marek Polacek <polacek@redhat.com>
38136
38137 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
38138
38139 2013-01-30 Richard Biener <rguenther@suse.de>
38140
38141 PR lto/56147
38142 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
38143
38144 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
38145
38146 PR tree-optimization/56064
38147 * fixed-value.c (fixed_from_double_int): New function.
38148 * fixed-value.h (fixed_from_double_int): New prototype.
38149 (const_fixed_from_double_int): New static inline function.
38150 * fold-const.c (native_interpret_fixed): New static function.
38151 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38152 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38153 (native_encode_fixed): New static function.
38154 (native_encode_expr) <FIXED_CST>: Use it.
38155 (native_interpret_int): Move double_int worker code to...
38156 * double-int.c (double_int::from_buffer): ...this new static method.
38157 * double-int.h (double_int::from_buffer): Prototype it.
38158
38159 2013-01-30 Richard Biener <rguenther@suse.de>
38160
38161 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38162 New pointer-map and obstack.
38163 (init_alias_vars): Allocate pointer-map and obstack.
38164 (delete_points_to_sets): Free them.
38165 (find_what_var_points_to): Cache result.
38166 (find_what_p_points_to): Adjust for changed interface of
38167 find_what_var_points_to.
38168 (compute_points_to_sets): Likewise.
38169 (ipa_pta_execute): Likewise.
38170
38171 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38172
38173 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38174 * configure: Regenerate.
38175 * config.in: Regenerate.
38176 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38177 #nobits/#progbits if supported.
38178
38179 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
38180
38181 PR target/56121
38182 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38183 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38184 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38185
38186 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38187
38188 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38189 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38190
38191 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38192
38193 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38194 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38195
38196 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38197
38198 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38199 declaration.
38200 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38201 * config/arm/cortex-a7.md: New bypasses using
38202 arm_mac_accumulator_is_result.
38203
38204 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38205
38206 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
38207 (cortex_a7_neon_mla): Likewise.
38208 (cortex_a7_fpfmad): New reservation.
38209 (cortex_a7_fpmacs): Use ffmas and update required units.
38210 (cortex_a7_fpmuld): Update required units and latency.
38211 (cortex_a7_fpmacd): Likewise.
38212 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38213 (cortex_a7_neon). Likewise.
38214 (bypass) Update participating units.
38215
38216 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38217
38218 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38219 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38220 from fmac to ffma.
38221 * config/arm/vfp11.md (vfp_farith): Use ffmas.
38222 (vfp_fmul): Use ffmad.
38223 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38224 (cortex_r4_fmacd): Use ffmad.
38225 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38226 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
38227 (cortex_a9_fmacd): Use ffmad.
38228 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38229 (cortex_a8_vfp_macd): Use ffmad.
38230 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38231 (cortex_a5_fpmacd): Use ffmad.
38232 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38233 (cortex_a15_vfp_macd): Use ffmad.
38234 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38235
38236 2013-01-29 Jason Merrill <jason@redhat.com>
38237
38238 PR libstdc++/54314
38239 * varasm.c (default_assemble_visibility): Don't warn about
38240 visibility on artificial decls.
38241
38242 2013-01-29 Richard Biener <rguenther@suse.de>
38243
38244 PR tree-optimization/56113
38245 * tree-ssa-structalias.c (equiv_class_lookup): Also return
38246 the bitmap leader.
38247 (label_visit): Free duplicate bitmaps and record the leader instead.
38248 (perform_var_substitution): Adjust.
38249
38250 2013-01-29 Richard Biener <rguenther@suse.de>
38251
38252 PR tree-optimization/55270
38253 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38254 the CFG, schedule loops for fixup.
38255
38256 2013-01-29 Nick Clifton <nickc@redhat.com>
38257
38258 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38259 SP_REG.
38260
38261 2013-01-28 Leif Ekblad <leif@rdos.net>
38262
38263 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38264 * config/i386/i386.h (TARGET_RDOS): New macro.
38265 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38266 * config/i386/i386.c (ix86_option_override_internal): For 64bit
38267 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38268 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38269 DEFAULT_LARGE_SECTION_THRESHOLD.
38270 * config/i386/i386.md (R14_REG, R15_REG): New constants.
38271 * config/i386/rdos.h: New file.
38272 * config/i386/rdos64.h: New file.
38273
38274 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
38275
38276 PR other/54814
38277 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38278 TEST_HARD_REG_BIT.
38279
38280 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38281
38282 PR rtl-optimization/56117
38283 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38284 call cselib_lookup_from_insn on the MEM before calling
38285 add_insn_mem_dependence.
38286
38287 2013-01-28 Richard Biener <rguenther@suse.de>
38288
38289 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38290 to a stmt that didn't have one.
38291 (copy_phis_for_bb): Likewise for PHI arguments.
38292 (copy_debug_stmt): Likewise for debug stmts.
38293
38294 2013-01-28 Richard Biener <rguenther@suse.de>
38295
38296 PR tree-optimization/56034
38297 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38298 (partition_builtin_p): Adjust.
38299 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
38300 it is the last partition.
38301 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38302 up the vertex for the definition.
38303 (classify_partition): Classify whether a partition is a
38304 PKIND_REDUCTION, thus has uses outside of the loop.
38305 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38306 Merge all PKIND_REDUCTION partitions into the last partition.
38307 (tree_loop_distribution): Seed partitions from reductions as well.
38308
38309 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38310
38311 PR tree-optimization/56125
38312 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38313 pow(x,c) into sqrt(x) * powi(x, n/2) or
38314 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38315 optimizing for size.
38316 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38317 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38318 integer.
38319
38320 PR tree-optimization/56094
38321 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38322 to UNKNOWN_LOCATION while gimplifying expr.
38323
38324 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
38325
38326 PR target/56114
38327 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38328 operand 0 in movabs insn template for -masm=intel asm alternative.
38329 (*movabs<mode>_2): Ditto for operand 1.
38330
38331 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
38332
38333 PR target/54663
38334 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38335 of microblaze-c.o
38336
38337 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38338
38339 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38340 tm_file.
38341
38342 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38343
38344 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38345 Undef to avoid warning.
38346
38347 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38348
38349 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38350 * configure: Regenerate.
38351
38352 2013-01-25 Jakub Jelinek <jakub@redhat.com>
38353
38354 PR tree-optimization/56098
38355 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38356 for stmts with volatile ops.
38357 (cond_store_replacement): Don't optimize if assign has volatile ops.
38358 (cond_if_else_store_replacement_1): Don't optimize if either
38359 then_assign or else_assign have volatile ops.
38360 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38361 volatile ops.
38362
38363 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38364
38365 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38366
38367 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38368
38369 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38370 missing ':' in asm example.
38371
38372 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
38373
38374 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38375 entries into lane and laneq entries.
38376 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38377 Remove AdvSIMD scalar modes.
38378 (aarch64_sq<r>dmulh_laneq<mode>): New.
38379 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38380 modes.
38381 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38382 builtin implementations to relfect changes in RTL in aarch64-simd.md.
38383 * config/aarch64/iterators.md (VCOND): New.
38384 (VCONQ): New.
38385
38386 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38387
38388 PR target/54222
38389 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38390 Add NULL LIBNAME argument to existing definitions.
38391 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38392 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38393 * config/avr/avr.c (DEF_BUILTIN): Same.
38394 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38395 (avr_expand_builtin): Expand to a vanilla call if a libgcc
38396 implementation is available (DECL_ASSEMBLER_NAME is set).
38397 (avr_fold_absfx): New static function.
38398 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38399 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38400 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38401 AVR_BUILTIN_ABSLLK.
38402 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38403 (abshk, absk, abslk, absllk): Provide as static inline functions.
38404
38405 2013-01-25 Marek Polacek <polacek@redhat.com>
38406
38407 PR tree-optimization/56035
38408 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38409
38410 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
38411
38412 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38413 (*movtf_internal_rex64): Add (!o,C) alternative
38414 (*movxf_internal_rex64): Ditto.
38415 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38416
38417 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
38418
38419 * doc/invoke.texi: fix typo.
38420 * doc/objc.texi: fix typo.
38421
38422 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
38423
38424 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38425 for the first two alternatives.
38426
38427 2013-01-24 Diego Novillo <dnovillo@google.com>
38428
38429 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
38430 (ggc-zone.o): Remove.
38431 * configure.ac: Remove option --with-gc.
38432 * configure: Re-generate.
38433 * doc/install.texi: Remove documentation for --with-gc.
38434 * gengtype.c (write_enum_defn): Remove. Update all users.
38435 (write_Types_process_field): Remove generation of gt_e_* argument.
38436 (output_type_enum): Remove. Update all users.
38437 (write_enum_defn): Remove. Update all users.
38438 (enum alloc_zone): Remove. Update all users.
38439 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38440 * ggc-common.c (ggc_splay_alloc): Remove first argument.
38441 Update all callers.
38442 (struct ptr_data): Remove field TYPE. Update all users.
38443 (gt_pch_note_object): Remove argument TYPE. Update all users.
38444 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38445 Update all users.
38446 * ggc-none.c (ggc_alloc_typed_stat): Remove.
38447 (struct alloc_zone): Remove.
38448 (ggc_internal_alloc_zone_stat): Remove.
38449 (ggc_internal_cleared_alloc_zone_stat): Remove.
38450 * ggc-page.c (ggc_alloc_typed_stat): Remove.
38451 (ggc_pch_count_object): Remove last argument. Update all users.
38452 (ggc_pch_alloc_object): Remove last argument. Update all users.
38453 (struct alloc_zone): Remove.
38454 * ggc-zone.c: Remove.
38455 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
38456 (struct alloc_zone): Remove.
38457 (ggc_alloc_typed_stat): Remove.
38458 (ggc_alloc_typed): Remove.
38459 (ggc_splay_alloc): Remove first argument.
38460 (rtl_zone): Remove. Update all users.
38461 (tree_zone): Remove. Update all users.
38462 (tree_id_zone): Remove. Update all users.
38463 (ggc_internal_zone_alloc_stat): Remove. Update all users.
38464 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
38465 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
38466 * tree-ssanames.c: Remove references to zone allocator in comments.
38467
38468 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
38469
38470 * config/avr/avr.c (avr_out_fract): Make register numbers that
38471 might be outside of source operand signed.
38472
38473 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
38474
38475 * config/i386/constraints.md (Yf): New constraint.
38476 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38477 of f constraint to conditionaly disable x87 register preferences.
38478 (*movdf_internal): Ditto.
38479 (*movsf_internal): Ditto.
38480
38481 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
38482
38483 PR inline-asm/55934
38484 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38485 that have operands with impossible constraints.
38486 Add a FIXME for a speed-up opportunity.
38487 * lra-constraints.c (process_alt_operands): Verify that a class
38488 selected from constraints on asms is valid for the operand mode.
38489 (curr_insn_transform): Remove incorrect comment.
38490
38491 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
38492
38493 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38494 TOC operand is a valid symbol ref in the constant pool.
38495
38496 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38497
38498 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38499
38500 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
38501
38502 PR target/54222
38503 * config/avr/stdfix.h: New file.
38504 * t-avr (stdfix-gcc.h): New rule to build it.
38505 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38506
38507 2013-01-23 Kostya Serebryany <kcc@google.com>
38508
38509 * config/darwin.h: remove dependency on
38510 CoreFoundation (asan on Mac OS).
38511
38512 2013-01-23 Jakub Jelinek <jakub@redhat.com>
38513
38514 PR target/49069
38515 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38516 instead of cmpdi_operand for first comparison operand.
38517 Don't assert that comparison operands aren't both constants.
38518
38519 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38520
38521 * doc/install.texi (Downloading the Source): Update references to
38522 downloading separate components.
38523
38524 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38525
38526 * doc/extend.texi (__int128): Improve grammar.
38527
38528 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
38529
38530 PR target/56028
38531 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38532 alternative to (o,r).
38533 (*movdi_internal_rex64): Remove (!o,n) alternative.
38534 (DImode immediate->memory splitter): Remove.
38535 (DImode immediate->memory peephole2): Remove.
38536 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38537 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38538 alternative to (!o,*r).
38539 (*movtf_internal_sse): New pattern.
38540 (*movxf_internal_rex64): New pattern.
38541 (*movxf_internal): Disable for TARGET_64BIT.
38542 (*movdf_internal_rex64): Remove (!o,F) alternative.
38543
38544 2013-01-22 Jakub Jelinek <jakub@redhat.com>
38545
38546 PR middle-end/56074
38547 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38548 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38549 * tree-vect-loop-manip.c (find_loop_location): Also ignore
38550 stmt locations where LOCATION_LOCUS of the stmt location is
38551 UNKNOWN_LOCATION or BUILTINS_LOCATION.
38552
38553 PR target/55686
38554 * config/i386/i386.md (UNSPEC_STOS): New.
38555 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38556 *strsetqi_1): Add UNSPEC_STOS.
38557
38558 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
38559
38560 PR c++/56067
38561 * doc/invoke.texi: Remove left over -Wsynth example.
38562
38563 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38564
38565 PR tree-optimization/56051
38566 * fold-const.c (fold_binary_loc): Don't fold
38567 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38568 a narrowing conversion, or widening conversion from signed
38569 to unsigned.
38570
38571 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38572
38573 PR rtl-optimization/56023
38574 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38575 dependent on debug instruction.
38576
38577 2013-01-21 Martin Jambor <mjambor@suse.cz>
38578
38579 PR middle-end/56022
38580 * function.c (allocate_struct_function): Call
38581 invoke_set_current_function_hook earlier.
38582
38583 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38584
38585 * reload1.c (init_reload): Only initialize reload_obstack
38586 during the first call.
38587
38588 2013-01-21 Marek Polacek <polacek@redhat.com>
38589
38590 * cfgloop.c (verify_loop_structure): Fix up grammar.
38591
38592 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
38593
38594 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38595 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38596
38597 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38598
38599 PR target/56058
38600 * config/arm/marvell-pj4.md: Update copyright year.
38601 Fix up use of alu to alu_reg and simple_alu_imm.
38602
38603 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38604
38605 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38606
38607 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38608
38609 PR target/55433
38610 * lra-constraints.c (curr_insn_transform): Don't reuse original
38611 insn for secondary memory move when memory mode should be different.
38612
38613 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38614
38615 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38616 atomic_storedi_1): New patterns.
38617
38618 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38619
38620 btver2 pipeline descriptions.
38621 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38622 descriptions.
38623 * config/i386/i386.md (btver2_decode): New type attributes.
38624 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38625 type attributes.
38626 * config/i386/btver2.md: New file describing btver2 pipelines.
38627
38628 2013-01-19 Andrew Pinski <apinski@cavium.com>
38629
38630 PR tree-optimization/52631
38631 * tree-ssa-sccvn (visit_use): Before looking up the original
38632 statement, try looking up the simplified expression.
38633
38634 2013-01-19 Anthony Green <green@moxielogic.com>
38635
38636 * config/moxie/moxie.c (moxie_expand_prologue): Set
38637 current_function_static_stack_size.
38638
38639 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38640
38641 PR tree-optimization/56029
38642 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38643 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38644
38645 2013-01-18 Sharad Singhai <singhai@google.com>
38646
38647 PR tree-optimization/55995
38648 * dumpfile.c (dump_loc): Print location only if available.
38649 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38650
38651 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38652
38653 PR target/55433
38654 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38655 secondary memory move.
38656 (inherit_reload_reg): Use rclass instead of cl for
38657 check_secondary_memory_needed_p.
38658
38659 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38660
38661 PR middle-end/56015
38662 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38663 the case where writing real complex part of target modifies op1.
38664
38665 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38666
38667 * config/aarch64/aarch64-simd.md
38668 (aarch64_vcond_internal<mode>): Handle unordered cases.
38669 * config/aarch64/iterators.md (v_cmp_result): New.
38670
38671 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38672 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38673
38674 * config/arm/marvell-pj4.md: New file.
38675 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38676 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38677 (generic_vfp): Likewise.
38678 * config/arm/arm-cores.def: Add marvell-pj4.
38679 * config/arm/arm-tune.md: Regenerate.
38680 * config/arm/arm-tables.opt: Regenerate.
38681 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38682 * doc/invoke.texi: Document marvell-pj4.
38683
38684 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38685
38686 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38687
38688 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38689
38690 PR debug/54114
38691 PR debug/54402
38692 PR debug/49888
38693 * var-tracking.c (negative_power_of_two_p): New.
38694 (global_get_addr_cache, local_get_addr_cache): New.
38695 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38696 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38697 heading comment.
38698 (vt_stack_offset_p): Remove.
38699 (vt_canon_true_dep): Always canonicalize loc's address.
38700 (clobber_overlapping_mems): Make sure we have a MEM.
38701 (local_get_addr_clear_given_value): New.
38702 (val_reset): Clear local cached entries.
38703 (compute_bb_dataflow): Create and release the local cache.
38704 Disable duplicate MEMs clobbering.
38705 (emit_notes_in_bb): Clobber MEMs likewise.
38706 (vt_emit_notes): Create and release the local cache.
38707 (vt_initialize, vt_finalize): Create and release the global
38708 cache, respectively.
38709 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38710
38711 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38712
38713 PR libmudflap/53359
38714 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38715 not found in the symtab.
38716
38717 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38718
38719 PR debug/56006
38720 PR rtl-optimization/55547
38721 PR rtl-optimization/53827
38722 PR debug/53671
38723 PR debug/49888
38724 * alias.c (offset_overlap_p): New, factored out of...
38725 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38726 the conservative special case for symbolic constants. Don't
38727 adjust zero sizes on alignment.
38728
38729 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38730
38731 PR rtl-optimization/52573
38732 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38733 REG_UNUSED for the same register.
38734
38735 2013-01-17 Richard Biener <rguenther@suse.de>
38736 Marek Polacek <polacek@redhat.com>
38737
38738 PR rtl-optimization/55833
38739 * loop-unswitch.c (unswitch_loops): Move loop verification...
38740 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38741 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38742 Set it to true when we're removing a loop from hierarchy tree in
38743 an irreducible region.
38744 (fix_bb_placements): Adjust caller.
38745 (fix_loop_placements): Likewise.
38746
38747 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38748
38749 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38750 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38751 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38752 Remove ID. Adjust comments.
38753 * config/avr/avr-c.c (avr_builtin_name): Remove.
38754 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38755 * config/avr/avr.c (avr_tolower): New static function.
38756 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38757 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38758 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38759 default expansion.
38760
38761 2013-01-17 Jan Hubicka <jh@suse.cz>
38762
38763 PR tree-optimization/55273
38764 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38765
38766 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38767
38768 PR target/55981
38769 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38770 store through atomic_store<mode>_1.
38771 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38772
38773 2013-01-17 Martin Jambor <mjambor@suse.cz>
38774
38775 PR tree-optimizations/55264
38776 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38777 for virtual methods.
38778 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38779 virtual methods before inlining is over.
38780 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38781 virtual functions.
38782 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38783 non-virtual.
38784
38785 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38786
38787 PR rtl-optimization/56005
38788 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38789 pending reads for prefetch.
38790
38791 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38792
38793 * config/aarch64/aarch64.md
38794 (*cstoresi_neg_uxtw): New pattern.
38795 (*cmovsi_insn_uxtw): New pattern.
38796 (*<optab>si3_uxtw): New pattern.
38797 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38798 (*<optab>si3_insn_uxtw): New pattern.
38799 (*bswapsi2_uxtw): New pattern.
38800
38801 2013-01-16 Richard Biener <rguenther@suse.de>
38802
38803 * tree-inline.c (tree_function_versioning): Remove set but
38804 never used variable.
38805
38806 2013-01-16 Richard Biener <rguenther@suse.de>
38807
38808 PR tree-optimization/55964
38809 * tree-flow.h (rename_variables_in_loop): Remove.
38810 (rename_variables_in_bb): Likewise.
38811 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38812 (copy_loop_before): Adjust and delete update-ssa status.
38813 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38814 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38815 (rename_variables_in_loop): Remove.
38816 (slpeel_update_phis_for_duplicate_loop): Likewise.
38817 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38818 use available cfg machinery instead of duplicating it.
38819 Update PHI nodes and perform poor-mans SSA update here.
38820 (slpeel_tree_peel_loop_to_edge): Adjust.
38821
38822 2013-01-16 Richard Biener <rguenther@suse.de>
38823
38824 PR tree-optimization/54767
38825 PR tree-optimization/53465
38826 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38827 (vrp_visit_phi_node): For PHI arguments coming via backedges
38828 drop all symbolical range information.
38829 (execute_vrp): Compute backedges.
38830
38831 2013-01-16 Richard Biener <rguenther@suse.de>
38832
38833 * doc/install.texi: Update CLooG and ISL requirements to
38834 0.18.0 and 0.11.1.
38835
38836 2013-01-16 Christian Bruel <christian.bruel@st.com>
38837
38838 PR target/55301
38839 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38840 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38841 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38842
38843 2013-01-16 DJ Delorie <dj@redhat.com>
38844
38845 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38846 (UNSPECV_SP_SWITCH_E): New.
38847 (sp_switch_1): Change to an unspec.
38848 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38849 replace $r15.
38850
38851 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38852
38853 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38854 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38855 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38856 (expand_mem_thread_fence): Ditto.
38857 (expand_mem_signal_fence): Ditto.
38858 (expand_atomic_load): Ditto.
38859 (expand_atomic_store): Ditto.
38860
38861 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38862
38863 PR rtl-optimization/55547
38864 PR rtl-optimization/53827
38865 PR debug/53671
38866 PR debug/49888
38867 * alias.c (memrefs_conflict_p): Set sizes to negative after
38868 AND adjustments.
38869
38870 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38871
38872 PR target/55940
38873 * function.c (thread_prologue_and_epilogue_insns): Always
38874 add crtl->drap_reg to set_up_by_prologue.set, even if
38875 stack_realign_drap is false.
38876
38877 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38878
38879 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38880 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38881 *call): Fix indention.
38882
38883 2013-01-15 Tom de Vries <tom@codesourcery.com>
38884
38885 PR target/55876
38886 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38887 Update comment.
38888
38889 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38890
38891 PR rtl-optimization/55153
38892 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38893
38894 2013-01-15 Martin Jambor <mjambor@suse.cz>
38895
38896 PR tree-optimization/55920
38897 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38898 accesses as grp_to_be_debug_replaced.
38899
38900 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38901
38902 PR tree-optimization/55920
38903 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38904 there is non-useless type conversion needed from debug rhs to lhs,
38905 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38906
38907 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38908 Mikael Pettersson <mikpe@it.uu.se>
38909
38910 PR target/43961
38911 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38912 Thumb.
38913 (ASM_OUTPUT_CASE_LABEL): Remove.
38914 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38915 * final.c (shorten_branches): Update alignment of labels before
38916 jump tables if CASE_VECTOR_SHORTEN_MODE.
38917
38918 2013-01-15 Richard Biener <rguenther@suse.de>
38919
38920 PR bootstrap/55961
38921 * system.h: Do not include gmp.h for building host tools.
38922
38923 2013-01-15 Richard Biener <rguenther@suse.de>
38924
38925 PR middle-end/55882
38926 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38927 account for bitpos when computing alignment.
38928
38929 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38930
38931 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38932 (ix86_target_macros_internal): Likewise.
38933
38934 * config/i386/i386.c (m_CORE2I7): Removed.
38935 (m_CORE_HASWELL): New macro.
38936 (m_CORE_ALL): Likewise.
38937 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38938 (initial_ix86_arch_features): Likewise.
38939 (processor_target_table): Initializations for Core avx2.
38940 (cpu_names): New names "core-avx2".
38941 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38942 PROCESSOR_CORE_HASWELL.
38943 (ix86_issue_rate): New case.
38944 (ia32_multipass_dfa_lookahead): Likewise.
38945 (ix86_sched_init_global): Likewise.
38946
38947 * config/i386/i386.h (TARGET_HASWELL): New macro.
38948 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38949 (processor_type): New PROCESSOR_HASWELL.
38950
38951 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38952
38953 PR tree-optimization/55955
38954 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38955 *SHIFT_EXPR and *ROTATE_EXPR codes.
38956
38957 PR tree-optimization/48766
38958 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38959 -ftrapv disable -fwrapv.
38960
38961 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38962
38963 PR target/55974
38964 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38965 etc. to 1 and not to __flash.
38966 Use LL suffix for __INT24_MAX__ with -mint8.
38967 Use ULL suffix for __UINT24_MAX__ with -mint8.
38968
38969 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38970
38971 * config/avr/avr-arch.h
38972 (struct base_arch_s): Use typedef avr_arch_t instead.
38973 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38974 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38975 * config/avr/avr.c: Same.
38976 * config/avr/avr-devices.c: Same.
38977 * config/avr/driver-avr.c: Same.
38978 * config/avr/gen-avr-mmcu-texi.c: Same.
38979 * config/avr/avr-mcus.def: Adjust comment.
38980
38981 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38982
38983 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38984 * config/aarch64/iterators.md (VALLDI): New.
38985
38986 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38987 Andi Kleen <ak@linux.intel.com>
38988
38989 PR target/55948
38990 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38991 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38992 memmodel flag.
38993
38994 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38995
38996 * config/avr/avr-stdint.h: Remove trailing blanks.
38997 * config/avr/avr-log.h: Same.
38998 * config/avr/avr-arch.h: Same.
38999 * config/avr/avr-devices.c: Same.
39000 * config/avr/avr-dimode.md: Same.
39001 * config/avr/predicates.md: Same.
39002 * config/avr/avr-c.c: Same. And fix typo.
39003
39004 * config/avr/avr-protos.h: Same. And:
39005 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
39006 (init_cumulative_args): Rename to avr_init_cumulative_args.
39007 (expand_prologue): Rename to avr_expand_prologue.
39008 (expand_epilogue): Rename to avr_expand_epilogue.
39009 (adjust_insn_length): Rename to avr_adjust_insn_length.
39010 (notice_update_cc): Rename to avr_notice_update_cc.
39011 (final_prescan_insn): Rename to avr_final_prescan_insn.
39012 * config/avr/avr.c: Same.
39013 * config/avr/avr.h: Same.
39014 * config/avr/avr.md: Remove trailing blanks.
39015 (prologue): Use avr_expand_prologue.
39016 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
39017
39018 2013-01-14 Richard Biener <rguenther@suse.de>
39019
39020 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
39021 verify_location, collect_subblocks): New functions.
39022 (verify_gimple_in_cfg): Verify that locations only reference
39023 BLOCKs in the functions BLOCK tree.
39024
39025 2013-01-14 Richard Biener <rguenther@suse.de>
39026
39027 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
39028 PHI argument.
39029 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
39030 unshare reference.
39031 (insert_out_of_ssa_copy_on_edge): Likewise.
39032 (rewrite_close_phi_out_of_ssa): Likewise.
39033 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
39034 debug expressions.
39035 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
39036 propagated constants.
39037 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
39038 can not be shared.
39039
39040 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39041
39042 * config/avr/avr-modes.def: Add GPL copyright notice.
39043
39044 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
39045
39046 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
39047 MEMMODEL_MASK to determine memory model.
39048 (atomic_store<mode>): Ditto from operands[2].
39049 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
39050
39051 2013-01-13 Jakub Jelinek <jakub@redhat.com>
39052
39053 PR fortran/55935
39054 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
39055 (fold_gimple_assign): Don't call unshare_expr here.
39056 (fold_ctor_reference): Call unshare_expr.
39057
39058 2013-01-13 Terry Guo <terry.guo@arm.com>
39059
39060 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
39061 * doc/fragments.texi: Document MULTILIB_REUSE.
39062 * gcc.c (multilib_reuse): New internal spec.
39063 (set_multilib_dir): Also search multilib from multilib_reuse.
39064 * genmultilib (tmpmultilib3): Refactor code.
39065 (tmpmultilib4): Ditto.
39066 (multilib_reuse): New multilib argument.
39067
39068 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
39069
39070 * Makefile.in: Update copyright.
39071
39072 2013-01-12 Tom de Vries <tom@codesourcery.com>
39073
39074 PR middle-end/55890
39075 * calls.c (expand_call): Check if arg_nr is valid.
39076
39077 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
39078
39079 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
39080 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
39081 documentation. Add missing '__' in front of
39082 __builtin_ia32_packssdw256.
39083
39084 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39085
39086 PR target/55719
39087 * config/s390/s390.c (s390_preferred_reload_class): Do not return
39088 NO_REGS for larl operands.
39089 (s390_reload_larl_operand): Use s390_load_address instead of
39090 emit_move_insn.
39091
39092 2013-01-11 Richard Biener <rguenther@suse.de>
39093
39094 * tree-cfg.c (verify_node_sharing_1): Split out from ...
39095 (verify_node_sharing): ... here.
39096 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
39097
39098 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
39099
39100 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
39101 Substitute TREECHECKING.
39102 * configure: Regenerate.
39103 * Makefile.in (TREECHECKING): New.
39104
39105 2013-01-11 Richard Guenther <rguenther@suse.de>
39106
39107 PR tree-optimization/44061
39108 * tree-vrp.c (extract_range_basic): Compute zero as
39109 value-range for __builtin_constant_p of function parameters.
39110
39111 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
39112
39113 Update copyright years.
39114
39115 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
39116
39117 PR rtl-optimization/55672
39118 * lra-eliminations.c (mark_not_eliminable): Permit addition with
39119 const to be eliminable.
39120
39121 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
39122
39123 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
39124 * configure: Regenerate.
39125
39126 2013-01-10 Richard Biener <rguenther@suse.de>
39127
39128 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
39129
39130 2013-01-10 Richard Biener <rguenther@suse.de>
39131
39132 PR bootstrap/55792
39133 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
39134 locations for virtual PHI arguments.
39135 (rewrite_update_phi_arguments): Likewise.
39136
39137 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
39138
39139 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
39140 on to assembler.
39141
39142 2013-01-10 Jakub Jelinek <jakub@redhat.com>
39143
39144 PR tree-optimization/55921
39145 * tree-complex.c (expand_complex_asm): New function.
39146 (expand_complex_operations_1): Call it for GIMPLE_ASM.
39147
39148 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39149
39150 PR target/55718
39151 * config/s390/s390.c (s390_symref_operand_p)
39152 (s390_loadrelative_operand_p): Merge the two functions.
39153 (s390_check_qrst_address, print_operand_address): Add parameters
39154 to s390_loadrelative_operand_p invokation.
39155 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39156 (s390_reload_larl_operand, s390_secondary_reload): Use
39157 s390_loadrelative_operand_p instead of s390_symref_operand_p.
39158 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39159
39160 2013-01-09 Mike Stump <mikestump@comcast.net>
39161
39162 * dse.c (record_store): Remove unnecessary assert.
39163
39164 2013-01-09 Jan Hubicka <jh@suse.cz>
39165
39166 PR tree-optimization/55569
39167 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39168 * cfgloop.h (scale_loop_profile): Likewise.
39169
39170 2013-01-09 Jan Hubicka <jh@suse.cz>
39171
39172 PR lto/45375
39173 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39174 functions.
39175 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39176
39177 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
39178
39179 PR middle-end/55114
39180 * expr.h (maybe_emit_group_store): Declare.
39181 * expr.c (maybe_emit_group_store): New function.
39182 * builtins.c (expand_builtin_int_roundingfn): Call it.
39183 (expand_builtin_int_roundingfn_2): Likewise.
39184
39185 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
39186
39187 PR rtl-optimization/55829
39188 * lra-constraints.c (match_reload): Add code for absent output.
39189 (curr_insn_transform): Add code for reloads of matched inputs
39190 without output.
39191
39192 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
39193
39194 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39195 attribute of movddup insn to DF.
39196 (*vec_interleave_lowv2df): Ditto.
39197 (vec_dupv2df): Ditto.
39198
39199 2013-01-09 Jan Hubicka <jh@suse.cz>
39200
39201 PR tree-optimiation/55875
39202 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39203 EVERY_ITERATION parameter.
39204 (number_of_iterations_exit): Check if exit is executed every iteration.
39205 (idx_infer_loop_bounds): Similarly here.
39206 (n_of_executions_at_most): Simplify
39207 to only test for cases where statement is dominated by the
39208 particular bound; handle correctly the "postdominance" test.
39209 (scev_probably_wraps_p): Use max loop iterations info
39210 as a global bound first.
39211
39212 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
39213 Nick Clifton <nickc@redhat.com>
39214
39215 * config/v850/v850.md (cbranchsf4): New pattern.
39216 (cstoresf4): New pattern.
39217 (cbranchdf4): New pattern.
39218 (cstoredf4): New pattern.
39219 (movsicc): Disallow floating point comparisons.
39220 (cmpsf_le_insn): Fix order of operators.
39221 (cmpsf_lt_insn): Likewise.
39222 (cmpsf_eq_insn): Likewise.
39223 (cmpdf_le_insn): Likewise.
39224 (cmpdf_lt_insn): Likewise.
39225 (cmpdf_eq_insn): Likewise.
39226 (cmpsf_ge_insn): Use LE comparison.
39227 (cmpdf_ge_insn): Likewise.
39228 (cmpsf_gt_insn): Use LT comparison.
39229 (cmpdf_gt_insn): Likewise.
39230 (cmpsf_ne_insn): Delete pattern.
39231 (cmpdf_ne_insn): Delete pattern.
39232 * config/v850/v850.c (v850_gen_float_compare): Use
39233 gen_cmpdf_eq_insn for NE comparison.
39234 (v850_float_z_comparison_operator)
39235 (v850_float_nz_comparison_operator): Move from here ...
39236 * config/v850/predicates.md: ... to here. Move GT and GE
39237 comparisons into v850_float_z_comparison_operator.
39238 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39239 Delete prototype.
39240 (v850_float_nz_comparison_operator): Likewise.
39241
39242 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39243
39244 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39245 with calls to gen_insvsi/gen_insvdi.
39246
39247 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39248
39249 * config/i386/i386.c (initial_ix86_tune_features): Set up
39250 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39251
39252 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
39253 Jakub Jelinek <jakub@redhat.com>
39254
39255 PR tree-optimization/48189
39256 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39257 If nitercst is 0, don't predict the exit edge.
39258
39259 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39260
39261 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39262 in asm_fprintf with reg_names.
39263 (aarch64_print_operand_address): Likewise.
39264 (aarch64_return_addr): Likewise.
39265 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39266
39267 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39268
39269 * config/pa/pa.h (VAL_U6_BITS_P): Define.
39270 (INT_U6_BITS): Likewise.
39271 * config/pa/predicates.md (uint6_operand): New predicate.
39272 (shift5_operand, shift6_operand): Likewise.
39273 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39274 arith32_operand.
39275 (lshrdi3): Use shift6_operand.
39276 (shrpsi4, shrpdi4): New insn patterns.
39277 (extzv): Delete expander.
39278 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
39279 predicates in unamed zero extract patterns. Tighten common constraint.
39280 (extv): Delete expander.
39281 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
39282 predicates in unamed sign extract patterns. Tighten common constraint.
39283 (insv): Delete expander.
39284 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
39285 predicates in unamed insert patterns. Tighten common constraint.
39286 Change uint32_operand predicate to uint6_operand predicate in unamed
39287 DImode pattern to insert constant values of type 1...1xxxx.
39288
39289 2013-01-04 Jan Hubicka <jh@suse.cz>
39290
39291 PR tree-optimization/55823
39292 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39293 issue.
39294
39295 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39296 Uros Bizjak <ubizjak@gmail.com>
39297
39298 PR rtl-optimization/55845
39299 * df-problems.c (can_move_insns_across): Stop scanning at
39300 volatile_insn_p source instruction or give up if
39301 across_from .. across_to range contains any volatile_insn_p
39302 instructions.
39303
39304 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39305
39306 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39307 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39308 Declare.
39309 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39310 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39311
39312 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39313
39314 PR fortran/55341
39315 * asan.c (asan_clear_shadow): New function.
39316 (asan_emit_stack_protection): Use it.
39317
39318 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39319
39320 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39321 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39322 with tab instead of space.
39323
39324 2013-01-08 Nick Clifton <nickc@redhat.com>
39325
39326 * config/rl78/rl78.c (rl78_expand_prologue): Always select
39327 register bank 0 at the start of an interrupt handler.
39328 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39329 MDBH registers.
39330
39331 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39332
39333 * config/aarch64/aarch64-simd.md
39334 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39335 (aarch64_simd_bsl): Likewise.
39336 (aarch64_vcond_internal<mode>): Likewise.
39337 (vcond<mode><mode>): Likewise.
39338 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39339 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39340
39341 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39342
39343 * config/aarch64/aarch64-builtins.c
39344 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39345
39346 2013-01-08 Martin Jambor <mjambor@suse.cz>
39347
39348 PR debug/55579
39349 * tree-sra.c (analyze_access_subtree): Return true also after
39350 potentially creating a debug-only replacement.
39351
39352 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39353
39354 PR middle-end/55890
39355 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39356
39357 PR tree-optimization/54120
39358 * tree-vrp.c (range_fits_type_p): Don't allow
39359 src_precision < precision from signed vr to unsigned_p
39360 if vr->min or vr->max is negative.
39361 (simplify_float_conversion_using_ranges): Test can_float_p
39362 against CODE_FOR_nothing.
39363
39364 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39365 Richard Biener <rguenther@suse.de>
39366
39367 PR middle-end/55851
39368 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39369 types instead of just INTEGER_TYPE types.
39370
39371 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
39372
39373 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39374 TF_SIZE): Define.
39375
39376 2013-01-07 Steve Ellcey <sellcey@mips.com>
39377
39378 PR target/42661
39379 * config/mips/mips.opt: Change mad to mmad to match documentation.
39380
39381 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39382
39383 PR target/55897
39384 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39385 .progmemx.data now.
39386
39387 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39388
39389 PR target/55897
39390 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39391 (avr_addrspace_t): Add .section_name field.
39392 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39393 array size.
39394 (avr_addrspace): Same. Initialize .section_name. Remove last
39395 NULL entry. Put __memx into .progmemx.data.
39396 (progmem_section_prefix): Remove.
39397 (avr_asm_init_sections): No need to initialize progmem_section.
39398 (avr_asm_named_section): Use avr_addrspace[].section_name to get
39399 section name prefix.
39400 (avr_asm_select_section): Ditto. And use get_unnamed_section to
39401 retrieve the progmem section.
39402 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39403 boundary to run over avr_addrspace[].
39404 (avr_register_target_pragmas): Ditto.
39405
39406 2013-01-06 Jakub Jelinek <jakub@redhat.com>
39407
39408 * varasm.c (output_constant_def_contents): For asan_protect_global
39409 protected strings, adjust DECL_ALIGN if needed, before testing for
39410 anchored symbols.
39411 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39412 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
39413 normal decls.
39414 (output_object_block): For asan protected decls, emit asan padding
39415 after their contents.
39416 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39417 (asan_finish_file): Test it here instead.
39418
39419 2013-01-07 Nick Clifton <nickc@redhat.com>
39420 Matthias Klose <doko@debian.org>
39421 Doug Kwan <dougkwan@google.com>
39422 H.J. Lu <hongjiu.lu@intel.com>
39423
39424 PR driver/55470
39425 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39426
39427 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39428
39429 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39430
39431 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39432
39433 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39434
39435 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39436
39437 PR target/54461
39438 * doc/install.texi (Cross-Compiler-Specific Options): Document
39439 --with-avrlibc.
39440
39441 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
39442
39443 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39444 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39445 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39446 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39447 vqmovun_high_s64): Fix source operand number and update copyright.
39448
39449 2013-01-07 Richard Biener <rguenther@suse.de>
39450
39451 PR middle-end/55890
39452 * gimple.h (gimple_call_builtin_p): New overload.
39453 * gimple.c (validate_call): New function.
39454 (gimple_call_builtin_p): Likewise.
39455 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39456 Use gimple_call_builtin_p.
39457 (find_func_clobbers): Likewise.
39458 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39459 (strlen_optimize_stmt): Likewise.
39460
39461 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39462
39463 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39464 (vld1q_dup_*): Likewise.
39465 (vld1_*): Likewise.
39466 (vld1q_*): Likewise.
39467 (vld1_lane_*): Likewise.
39468 (vld1q_lane_*): Likewise.
39469
39470 2013-01-07 Richard Biener <rguenther@suse.de>
39471
39472 * lto-streamer.h (LTO_minor_version): Bump to 2.
39473
39474 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39475
39476 * config/aarch64/aarch64-protos.h
39477 (aarch64_const_double_zero_rtx_p): Rename to...
39478 (aarch64_float_const_zero_rtx_p): ...this.
39479 (aarch64_float_const_representable_p): New.
39480 (aarch64_output_simd_mov_immediate): Likewise.
39481 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39482 move immediate case.
39483 * config/aarch64/aarch64.c
39484 (aarch64_const_double_zero_rtx_p): Rename to...
39485 (aarch64_float_const_zero_rtx_p): ...this.
39486 (aarch64_print_operand): Allow printing of new constants.
39487 (aarch64_valid_floating_const): New.
39488 (aarch64_legitimate_constant_p): Check for valid floating-point
39489 constants.
39490 (aarch64_simd_valid_immediate): Likewise.
39491 (aarch64_vect_float_const_representable_p): New.
39492 (aarch64_float_const_representable_p): Likewise.
39493 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39494 (aarch64_output_simd_mov_immediate): New.
39495 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39496 (*movdf_aarch64): Likewise.
39497 * config/aarch64/constraints.md (Ufc): New.
39498 (Y): call aarch64_float_const_zero_rtx.
39499 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39500
39501 2013-01-07 Richard Biener <rguenther@suse.de>
39502
39503 PR tree-optimization/55888
39504 PR tree-optimization/55862
39505 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39506 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39507 not if it is contained therein.
39508
39509 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39510
39511 * config/avr/t-avr: Typo.
39512
39513 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39514
39515 PR55243
39516 * config/avr/t-avr: Don't automatically rebuild
39517 $(srcdir)/config/avr/t-multilib
39518 $(srcdir)/config/avr/avr-tables.opt
39519 $(srcdir)/doc/avr-mmcu.texi
39520 (avr-mcus): New phony target to build them on request.
39521 (s-avr-mlib, s-avr-mmcu-texi): Remove.
39522 * avr/avr-mcus.def: Adjust comments.
39523
39524 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
39525
39526 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39527
39528 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39529
39530 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39531
39532 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39533
39534 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39535
39536 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
39537
39538 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39539 to generate profiling.
39540 * config/rs6000/aix64.h (LIB_SPEC): Same.
39541
39542 2013-01-04 Andrew Pinski <apinski@cavium.com>
39543
39544 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39545 New function.
39546 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39547
39548 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
39549
39550 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39551 unconditionally.
39552 (ix86_expand_move): Ditto.
39553 (ix86_zero_extend_to_Pmode): Ditto.
39554 (ix86_expand_call): Ditto.
39555 (ix86_expand_special_args_builtin): Ditto.
39556 (ix86_expand_builtin): Ditto.
39557
39558 2013-01-04 Richard Biener <rguenther@suse.de>
39559
39560 PR tree-optimization/55862
39561 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39562 translating them through PHI nodes.
39563
39564 2013-01-04 Martin Jambor <mjambor@suse.cz>
39565
39566 PR tree-optimization/55755
39567 * tree-sra.c (sra_modify_assign): Do not check that an access has no
39568 children when trying to avoid producing a VIEW_CONVERT_EXPR.
39569
39570 2013-01-04 Marek Polacek <polacek@redhat.com>
39571
39572 PR middle-end/55859
39573 * opts.c (default_options_optimization): Clarify error message.
39574
39575 2013-01-04 Richard Biener <rguenther@suse.de>
39576
39577 PR middle-end/55863
39578 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39579 reassociation.
39580
39581 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39582
39583 PR target/53789
39584 * config/pa/pa.md (movsi): Revert previous change.
39585 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39586 references.
39587
39588 2013-01-03 Richard Henderson <rth@redhat.com>
39589
39590 * config/i386/i386.c (ix86_expand_move): Always assign to op1
39591 after eliminating TLS symbols.
39592
39593 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39594
39595 PR bootstrap/50167
39596 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39597 * graphite-poly.c (debug_gmp_value): Likewise.
39598
39599 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39600
39601 PR target/55712
39602 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39603 selected code model, define __code_mode_small__, __code_model_medium__,
39604 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39605 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39606 xchg temporary register with %k. Declare temporary register as
39607 early clobbered.
39608 [__x86_64__]: For medium and large code models, preserve %rbx register.
39609
39610 2013-01-03 Richard Biener <rguenther@suse.de>
39611
39612 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39613 (dump_subscript): Adjust.
39614 (finalize_ddr_dependent): Do not dump redundant info.
39615 (analyze_siv_subscript): Adjust.
39616 (subscript_dependence_tester): Likewise.
39617 (compute_affine_dependence): Likewise.
39618
39619 2013-01-03 Richard Biener <rguenther@suse.de>
39620
39621 Revert
39622 2013-01-03 Richard Biener <rguenther@suse.de>
39623
39624 PR tree-optimization/55857
39625 * tree-vect-stmts.c (vectorizable_load): Do not setup
39626 re-alignment for invariant loads.
39627
39628 2013-01-02 Richard Biener <rguenther@suse.de>
39629
39630 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39631 invariant load do not generate a vector load from the scalar location.
39632
39633 2013-01-03 Richard Biener <rguenther@suse.de>
39634
39635 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39636 for not vectorizing.
39637 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39638 not build INDIRECT_REFs, call get_name once only.
39639 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39640 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39641
39642 2013-01-03 Richard Biener <rguenther@suse.de>
39643
39644 PR tree-optimization/55857
39645 * tree-vect-stmts.c (vectorizable_load): Do not setup
39646 re-alignment for invariant loads.
39647
39648 2013-01-03 Richard Biener <rguenther@suse.de>
39649
39650 PR lto/55848
39651 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39652 prefer a built-in decl.
39653
39654 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39655
39656 * gcc.c (process_command): Update copyright notice dates.
39657 * gcov.c (print_version): Likewise.
39658 * gcov-dump.c (print_version): Likewise.
39659
39660 PR rtl-optimization/55838
39661 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39662 iv0.step, iv1.step and step.
39663
39664 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39665 Marc Glisse <marc.glisse@inria.fr>
39666
39667 PR tree-optimization/55832
39668 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39669 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39670 integer_{one,zero}_node.
39671
39672 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39673
39674 PR debug/54402
39675 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39676 * var-tracking.c (reverse_op): Don't add reverse ops to
39677 VALUEs that have already
39678 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39679
39680 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39681
39682 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39683
39684 2013-01-02 Teresa Johnson <tejohnson@google.com>
39685
39686 * dumpfile.c (dump_loc): Print filename with location.
39687 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39688 new location_t parameter to emit complete unroll message with
39689 new dump framework.
39690 (canonicalize_loop_induction_variables): Compute loops location
39691 and pass to try_unroll_loop_completely.
39692 * loop-unroll.c (report_unroll_peel): New function.
39693 (peel_loops_completely): Use new dump format with location
39694 for main dumpfile message, and invoke report_unroll_peel on success.
39695 (decide_unrolling_and_peeling): Ditto.
39696 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39697 by report_unroll_peel.
39698 (decide_peel_completely): Ditto.
39699 (decide_unroll_constant_iterations): Ditto.
39700 (decide_unroll_runtime_iterations): Ditto.
39701 (decide_peel_simple): Ditto.
39702 (decide_unroll_stupid): Ditto.
39703 * cfgloop.c (get_loop_location): New function.
39704 * cfgloop.h (get_loop_location): Declare.
39705
39706 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39707
39708 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39709 NULL.
39710
39711 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39712
39713 PR middle-end/55198
39714 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39715 BLKmode objects when EXPAND_MEMORY is specified.
39716
39717 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39718
39719 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39720 in loop predicate.
39721 (fold_builtin_cpu): Do not share cpu model decls across statements.
39722
39723 2013-01-02 Jason Merrill <jason@redhat.com>
39724
39725 PR c++/55804
39726 * tree.c (build_array_type_1): Revert earlier change.
39727
39728 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39729
39730 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39731 "cortex-a57".
39732 * config/aarch64/aarch64-tune.md: Re-generate.
39733
39734 2013-01-02 Richard Biener <rguenther@suse.de>
39735
39736 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39737 invariant load do not generate a vector load from the scalar location.
39738
39739 2013-01-02 Richard Biener <rguenther@suse.de>
39740
39741 PR bootstrap/55784
39742 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39743 * configure: Regenerate.
39744
39745 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39746
39747 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39748 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39749 (expand_builtin_int_roundingfn_2): Keep the original target around
39750 for the fallback case.
39751
39752 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39753
39754 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39755 to be clear for sign changes.
39756
39757 2013-01-01 Jan Hubicka <jh@suse.cz>
39758
39759 * ipa-inline-analysis.c: Fix formatting.
39760
39761 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39762
39763 PR tree-optimization/55831
39764 * tree-vect-loop.c (get_initial_def_for_induction): Use
39765 gsi_after_labels instead of gsi_start_bb.
39766 \f
39767 Copyright (C) 2013 Free Software Foundation, Inc.
39768
39769 Copying and distribution of this file, with or without modification,
39770 are permitted in any medium without royalty provided the copyright
39771 notice and this notice are preserved.