ira-costs.c (cost_classes_hasher::equal): Check equality of memcmp and 0 if no differ...
[gcc.git] / gcc / ChangeLog
1 2013-12-30 Felix Yang <felix.yang@huawei.com>
2
3 * ira-costs.c (cost_classes_hasher::equal): Check equality of
4 memcmp and 0 if no difference exists for HV1 and HV2.
5
6 2013-12-30 Jakub Jelinek <jakub@redhat.com>
7
8 PR target/59501
9 * config/i386/i386.c (ix86_save_reg): Don't return true for drap_reg
10 if !crtl->stack_realign_needed.
11 (ix86_finalize_stack_realign_flags): If drap_reg isn't live on entry
12 and stack_realign_needed will be false, clear drap_reg and need_drap.
13 Optimize leaf functions that don't need stack frame even if
14 crtl->need_drap.
15
16 2013-12-30 H.J. Lu <hongjiu.lu@intel.com>
17
18 PR target/59605
19 * config/i386/i386.c (ix86_expand_set_or_movmem): Create
20 jump_around_label only if it doesn't exist.
21
22 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
23
24 * doc/invoke.texi (output file options): Document -fada-spec-parent.
25
26 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
27 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28 Sergey Lega <sergey.s.lega@intel.com>
29 Anna Tikhonova <anna.tikhonova@intel.com>
30 Ilya Tocar <ilya.tocar@intel.com>
31 Andrey Turetskiy <andrey.turetskiy@intel.com>
32 Ilya Verbin <ilya.verbin@intel.com>
33 Kirill Yukhin <kirill.yukhin@intel.com>
34 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
35
36 * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
37 EVEX's RC.
38 (avx512f_sfixupimm<mode>_maskz): Ditto.
39 * config/i386/subst.md (round_saeonly_expand_name): New.
40 (round_saeonly_expand_nimm_predicate): Ditto.
41 (round_saeonly_expand_operand6): Ditto.
42 (round_saeonly_expand): Ditto.
43
44 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
45 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
46 Sergey Lega <sergey.s.lega@intel.com>
47 Anna Tikhonova <anna.tikhonova@intel.com>
48 Ilya Tocar <ilya.tocar@intel.com>
49 Andrey Turetskiy <andrey.turetskiy@intel.com>
50 Ilya Verbin <ilya.verbin@intel.com>
51 Kirill Yukhin <kirill.yukhin@intel.com>
52 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
53
54 * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
55 EVEX's RC.
56 (avx512f_fmaddsub_<mode>_maskz): Ditto.
57 * config/i386/subst.md (round_expand_name): New.
58 (round_expand_nimm_predicate): Ditto.
59 (round_expand_operand): Ditto.
60 (round_expand): Ditto.
61
62 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
63 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
64 Sergey Lega <sergey.s.lega@intel.com>
65 Anna Tikhonova <anna.tikhonova@intel.com>
66 Ilya Tocar <ilya.tocar@intel.com>
67 Andrey Turetskiy <andrey.turetskiy@intel.com>
68 Ilya Verbin <ilya.verbin@intel.com>
69 Kirill Yukhin <kirill.yukhin@intel.com>
70 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
71
72 * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
73 EVEX's SAE mode.
74 (*<code><mode>3_finite<mask_name>): Ditto.
75 (*<code><mode>3<mask_name>): Ditto.
76 (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
77 (avx512f_vmcmp<mode>3): Ditto.
78 (avx512f_vmcmp<mode>3_mask): Ditto.
79 (<sse>_comi): Ditto.
80 (<sse>_ucomi): Ditto.
81 (sse_cvttss2si): Ditto.
82 (sse_cvttss2siq): Ditto.
83 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
84 (avx512f_vcvttss2usi): Ditto.
85 (avx512f_vcvttss2usiq): Ditto.
86 (avx512f_vcvttsd2usi): Ditto.
87 (avx512f_vcvttsd2usiq): Ditto.
88 (sse2_cvttsd2si): Ditto.
89 (sse2_cvttsd2siq): Ditto.
90 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
91 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
92 (avx512f_getexp<mode><mask_name>): Ditto.
93 (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
94 (avx512f_fixupimm<mode>_mask): Ditto.
95 (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
96 (avx512f_sfixupimm<mode>_mask): Ditto.
97 (avx512f_rndscale<mode><mask_name>): Ditto.
98 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
99 (avx512f_getmant<mode><mask_name>): Ditto.
100 * config/i386/subst.md (round_saeonly_name): New.
101 (round_saeonly_mask_operand2): Ditto.
102 (round_saeonly_mask_operand3): Ditto.
103 (round_saeonly_mask_scalar_operand3): Ditto.
104 (round_saeonly_mask_scalar_operand4): Ditto.
105 (round_saeonly_mask_scalar_merge_operand4): Ditto.
106 (round_saeonly_sd_mask_operand5): Ditto.
107 (round_saeonly_op2): Ditto.
108 (round_saeonly_op4): Ditto.
109 (round_saeonly_op5): Ditto.
110 (round_saeonly_op6): Ditto.
111 (round_saeonly_mask_op2): Ditto.
112 (round_saeonly_mask_op3): Ditto.
113 (round_saeonly_mask_scalar_op3): Ditto.
114 (round_saeonly_mask_scalar_op4): Ditto.
115 (round_saeonly_mask_scalar_merge_op4): Ditto.
116 (round_saeonly_sd_mask_op5): Ditto.
117 (round_saeonly_constraint): Ditto.
118 (round_saeonly_constraint2): Ditto.
119 (round_saeonly_nimm_predicate): Ditto.
120 (round_saeonly_mode512bit_condition): Ditto.
121 (round_saeonly): Ditto.
122
123 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
124 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
125 Sergey Lega <sergey.s.lega@intel.com>
126 Anna Tikhonova <anna.tikhonova@intel.com>
127 Ilya Tocar <ilya.tocar@intel.com>
128 Andrey Turetskiy <andrey.turetskiy@intel.com>
129 Ilya Verbin <ilya.verbin@intel.com>
130 Kirill Yukhin <kirill.yukhin@intel.com>
131 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
132
133 * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
134 * config/i386/i386.md (define_constants): Define EVEx's RC constants.
135 * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
136 to support EVEX's rounding control.
137 (*<plusminus_insn><mode>3<mask_name>): Ditto.
138 (mul<mode>3<mask_name>): Ditto.
139 (*mul<mode>3<mask_name>): Ditto.
140 (<sse>_div<mode>3<mask_name>): Ditto.
141 (<sse>_sqrt<mode>2<mask_name>): Ditto.
142 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
143 (avx512f_fmadd_<mode>_mask): Ditto.
144 (avx512f_fmadd_<mode>_mask3): Ditto.
145 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
146 (avx512f_fmsub_<mode>_mask): Ditto.
147 (avx512f_fmsub_<mode>_mask3): Ditto.
148 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
149 (avx512f_fnmadd_<mode>_mask): Ditto.
150 (avx512f_fnmadd_<mode>_mask3): Ditto.
151 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
152 (avx512f_fnmsub_<mode>_mask): Ditto.
153 (avx512f_fnmsub_<mode>_mask3): Ditto.
154 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
155 (avx512f_fmaddsub_<mode>_mask): Ditto.
156 (avx512f_fmaddsub_<mode>_mask3): Ditto.
157 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
158 (avx512f_fmsubadd_<mode>_mask): Ditto.
159 (avx512f_fmsubadd_<mode>_mask3): Ditto.
160 (fmai_vmfmadd_<mode>): Ditto.
161 (*fmai_fmadd_<mode>): Ditto.
162 (*fmai_fmsub_<mode>): Ditto.
163 (*fmai_fnmadd_<mode>): Ditto.
164 (*fmai_fnmsub_<mode>): Ditto.
165 (sse_cvtsi2ss): Ditto.
166 (sse_cvtsi2ssq): Ditto.
167 (sse_cvtss2si): Ditto.
168 (sse_cvtss2siq): Ditto.
169 (cvtusi2<ssescalarmodesuffix>32): Ditto.
170 (cvtusi2<ssescalarmodesuffix>64): Ditto.
171 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
172 (ufloatv16siv16sf2<mask_name>): Ditto.
173 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
174 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
175 (sse2_cvtsi2sdq): Ditto.
176 (avx512f_vcvtss2usi): Ditto.
177 (avx512f_vcvtss2usiq): Ditto.
178 (avx512f_vcvtsd2usi): Ditto.
179 (avx512f_vcvtsd2usiq): Ditto.
180 (sse2_cvtsd2si): Ditto.
181 (sse2_cvtsd2siq): Ditto.
182 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
183 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
184 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
185 (avx512f_scalef<mode><mask_name>): Ditto.
186 (<code><mode>3<mask_name>): Ditto.
187 (*avx2_<code><mode>3<mask_name>): Ditto.
188 (avx512er_exp2<mode><mask_name): Ditto.
189 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
190 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
191 (avx512f_fmadd_<mode>_maskz): New.
192 * config/i386/subst.md (SUBST_A): New.
193 (round_name): Ditto.
194 (round_mask_operand2): Ditto.
195 (round_mask_operand3): Ditto.
196 (round_mask_scalar_operand3): Ditto.
197 (round_sd_mask_operand4): Ditto.
198 (round_op2): Ditto.
199 (round_op3): Ditto.
200 (round_op4): Ditto.
201 (round_op5): Ditto.
202 (round_op6): Ditto.
203 (round_mask_op2): Ditto.
204 (round_mask_op3): Ditto.
205 (round_mask_scalar_op3): Ditto.
206 (round_sd_mask_op4): Ditto.
207 (round_constraint): Ditto.
208 (round_constraint2): Ditto.
209 (round_constraint3): Ditto.
210 (round_nimm_predicate): Ditto.
211 (round_mode512bit_condition): Ditto.
212 (round_modev4sf_condition): Ditto.
213 (round_codefor): Ditto.
214 (round_opnum): Ditto.
215 (round): Ditto.
216
217 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
218
219 PR target/59588
220 * config/i386/i386.c (ix86_option_override_internal): Don't
221 check generic tuning. Don't change i686 tuning.
222
223 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
224
225 PR target/59601
226 * config/i386/i386.c (get_builtin_code_for_version): Map
227 PROCESSOR_NEHALEM to "corei7".
228
229 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
230
231 * config/i386/i386.c (get_builtin_code_for_version): Rename AMD
232 CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR
233 to M_AMD_BTVER2.
234 (processor_model): Likewise.
235 (arch_names_table): Likewise.
236
237 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
238
239 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
240
241 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
242
243 PR target/59587
244 * config/i386/i386.c (struct ptt): Add a field for processor name.
245 (processor_target_table): Sync with processor_type.
246 Add processor names.
247 (cpu_names): Removed.
248 (ix86_option_override_internal): Default x_ix86_tune_string
249 to processor_target_table[TARGET_CPU_DEFAULT].name.
250 (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
251 Use processor_target_table to print arch and tune names.
252 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
253 PROCESSOR_GENERIC.
254 (target_cpu_default): Removed.
255 (processor_type): Reordered.
256
257 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org>
258 H.J. Lu <hongjiu.lu@intel.com>
259
260 PR target/59422
261 * config/i386/i386.c (get_builtin_code_for_version): Handle
262 PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
263 PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
264 Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
265 (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
266 "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a",
267 "fma4", "xop" and "fma" ISA names.
268
269 2013-12-24 H.J. Lu <hongjiu.lu@intel.com>
270
271 * config/i386/i386.c (ix86_option_override_internal): Check
272 opts->x_ix86_arch_string instead of ix86_arch_string.
273
274 2013-12-24 Renlin Li <Renlin.Li@arm.com>
275
276 * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
277 * config/arm/constraints.md (Dp): Define new constraint.
278 * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
279 new predicate.
280 * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
281 (vfp3_const_double_for_bits): New function.
282 * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
283
284 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
285
286 PR target/59203
287 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
288 checking t1 twice instead of t1 and t2 respectively.
289
290 PR middle-end/59584
291 * config/cris/predicates.md (cris_nonsp_register_operand):
292 New define_predicate.
293 * config/cris/cris.md: Replace register_operand with
294 cris_nonsp_register_operand for destinations in all
295 define_splits where a register is set more than once.
296
297 2013-12-23 Jason Merrill <jason@redhat.com>
298
299 * gdbinit.in (input_line, input_filename): Define.
300
301 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
302 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
303 * cif-code.def: Add USES_COMDAT_LOCAL.
304 * symtab.c (verify_symtab_base): Make sure we don't refer to a
305 comdat-local symbol from outside its comdat.
306 * cgraph.c (verify_cgraph_node): Likewise.
307 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
308 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
309 (function_and_variable_visibility): Handle comdat-local fns.
310 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
311 * ipa-inline-analysis.c (compute_inline_parameters): Update
312 calls_comdat_local.
313 * ipa-inline-transform.c (inline_call): Likewise.
314 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
315 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
316 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
317 (lto_output_node): Write it.
318 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
319 DECL_COMDAT_GROUP for comdat-locals.
320
321 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
322
323 * config/i386/i386.c (processor_target_table): Move Bonnell and
324 Silvermont entries before generic.
325
326 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
327
328 PR middle-end/59569
329 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
330 consant/external operand, and add a few missing \n.
331
332 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
333 Tocar Ilya <ilya.tocar@intel.com>
334
335 * config/i386/core2.md: Replace corei7 with nehalem.
336
337 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
338 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
339 for cpu names.
340
341 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
342 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
343 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
344 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
345 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
346 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
347 __tune_haswell__, __bonnell/__bonnell__,
348 __silvermont/__silvermont__, __tune_bonnell__,
349 __tune_silvermont__.
350
351 * config/i386/i386.c (m_COREI7): Renamed to ...
352 (m_NEHALEM): This.
353 (m_COREI7_AVX): Renamed to ...
354 (m_SANDYBRIDGE): This.
355 (m_ATOM): Renamed to ...
356 (m_BONNELL): This.
357 (m_SLM): Renamed to ...
358 (m_SILVERMONT): This.
359 (m_CORE_ALL): Updated.
360 (cpu_names): Add "nehalem", "westmere", "sandybridge",
361 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
362 (PTA_CORE2): New.
363 (PTA_NEHALEM): Likewise.
364 (PTA_WESTMERE): Likewise.
365 (PTA_SANDYBRIDGE): Likewise.
366 (PTA_IVYBRIDGE): Likewise.
367 (PTA_HASWELL): Likewise.
368 (PTA_BROADWELL): Likewise.
369 (PTA_BONNELL): Likewise.
370 (PTA_SILVERMONT): Likewise.
371 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
372 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
373 (ix86_lea_outperforms): Updated.
374 (ix86_issue_rate): Likewise.
375 (ix86_adjust_cost): Likewise.
376 (ia32_multipass_dfa_lookahead): Likewise.
377 (do_reorder_for_imul): Likewise.
378 (swap_top_of_ready_list): Likewise.
379 (ix86_sched_reorder): Likewise.
380 (ix86_sched_init_global): Likewise.
381 (get_builtin_code_for_version): Likewise.
382 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
383 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
384 (arch_names_table): Updated.
385
386 * config/i386/i386.h (TARGET_COREI7): Removed.
387 (TARGET_COREI7_AVX): Likewise.
388 (TARGET_ATOM): Likewise.
389 (TARGET_SLM): Likewise.
390 (TARGET_NEHALEM): New.
391 (TARGET_SANDYBRIDGE): Likewise.
392 (TARGET_BONNELL): Likewise.
393 (TARGET_SILVERMONT): Likewise.
394 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
395 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
396 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
397 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
398 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
399 before TARGET_CPU_DEFAULT_broadwell.
400 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
401 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
402 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
403
404 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
405
406 * config/i386/x86-tune.def: Updated.
407
408 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
409 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
410 haswell, bonnel, silvermont. Add westmere.
411
412 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
413
414 PR rtl-optimization/57422
415 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
416 can always be scheduled in its current form.
417
418 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
419
420 PR rtl-optimization/57422
421 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
422 add_to_hard_reg_set.
423
424 2013-12-20 Sharad Singhai <singhai@google.com>
425
426 * Makefile.in: Add optinfo.texi.
427 * doc/invoke.texi: Fix typo.
428 * doc/optinfo.texi: New documentation for optimization info.
429 * doc/passes.texi: Add new node.
430
431 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
432
433 * vec.h (stack_vec): Convert to a templaate specialization of
434 auto_vec.
435 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
436 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
437 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
438 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
439 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
440 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
441 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
442 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
443 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
444
445 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
446
447 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
448 arguments to push onto the stack and no varargs, save ip into the last
449 stack slot if r3 isn't available on entry.
450
451 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
452
453 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
454 * config/arm/arm_neon.h: Regenerate.
455 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
456 * doc/arm-neon-intrinsics.texi: Regenerate.
457
458 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
459
460 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
461 NO_REGS for LRA.
462
463 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
464
465 * config/arm/arm_acle.h: Add underscores before variables.
466
467 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
468
469 PR tree-optimization/59544
470 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
471 vectorizable_store.
472 (vectorizable_store): Handle negative step.
473
474 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
475
476 * config.gcc: Support march=broadwell.
477 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
478 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
479 * doc/invoke.texi: Document march=broadwell.
480
481 2013-12-20 Jakub Jelinek <jakub@redhat.com>
482
483 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
484 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
485 like INTEGER_TYPE.
486 (instrument_bool_enum_load): New function.
487 (ubsan_pass): Call it.
488 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
489 * asan.c (create_cond_insert_point): No longer static.
490 * asan.h (create_cond_insert_point): Declare.
491 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
492 built-in.
493 * opts.c (common_handle_option): Handle -fsanitize=bool and
494 -fsanitize=enum.
495 * builtins.c (fold_builtin_memory_op): When sanitizing bool
496 and enum loads, don't use enum or bool types for memcpy folding.
497 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
498 (SANITIZE_UNDEFINED): Or these in.
499
500 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
501
502 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
503 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
504 to determine available register number.
505 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
506 macro NDS32_MODE_TYPE_ALIGN.
507 (nds32_function_arg): Refine code layout.
508
509 2013-12-19 Jeff Law <law@redhat.com>
510
511 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
512 handles both zero and sign extension.
513
514 2013-12-19 Teresa Johnson <tejohnson@google.com>
515
516 PR gcov-profile/59542
517 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
518 if we have made any changes.
519
520 2013-12-19 Jakub Jelinek <jakub@redhat.com>
521
522 PR other/59545
523 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
524 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
525 to unsigned.
526 (attr_rtx_1): Change hashcode variable to unsigned.
527 (attr_string): Likewise. Perform first multiplication in
528 unsigned type.
529 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
530 overflows.
531 * double-int.c (neg_double): Likewise.
532 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
533 * combine.c (force_to_mode): Likewise.
534 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
535 reload_cse_move2add, move2add_note_store): Likewise.
536 * simplify-rtx.c (simplify_const_unary_operation,
537 simplify_const_binary_operation): Likewise.
538 * ipa-split.c (find_split_points): Initialize first.can_split
539 and first.non_ssa_vars.
540 * gengtype-state.c (read_state_files_list): Fix up check.
541 * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
542
543 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
544
545 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
546 * doc/arm-neon-intrinsics.texi: Regenerate.
547
548 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
549
550 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
551
552 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
553
554 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
555 (arm_init_neon_builtins): Handle crypto builtins.
556 (bdesc_2arg): Likewise.
557 (bdesc_1arg): Likewise.
558 (bdesc_3arg): New table.
559 (arm_expand_ternop_builtin): New function.
560 (arm_expand_unop_builtin): Handle sha1h explicitly.
561 (arm_expand_builtin): Handle ternary builtins.
562 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
563 Define __ARM_FEATURE_CRYPTO.
564 * config/arm/arm.md: Include crypto.md.
565 (is_neon_type): Add crypto types.
566 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
567 * config/arm/crypto.def: New.
568 * config/arm/crypto.md: Likewise.
569 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
570 (CRYPTO_BINARY): Likewise.
571 (CRYPTO_TERNARY): Likewise.
572 (CRYPTO_SELECTING): Likewise.
573 (crypto_pattern): New int attribute.
574 (crypto_size_sfx): Likewise.
575 (crypto_mode): Likewise.
576 (crypto_type): Likewise.
577 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
578 Handle crypto intrinsics.
579 * config/arm/neon.ml: Add support for poly64 and polt128 types
580 and intrinsics. Define crypto intrinsics.
581 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
582 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
583 (neon_vreinterpretv8hi<mode>): Likewise.
584 (neon_vreinterpretv4si<mode>): Likewise.
585 (neon_vreinterpretv4sf<mode>): Likewise.
586 (neon_vreinterpretv2di<mode>): Likewise.
587 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
588 (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
589 (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
590 (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
591 * config/arm/arm_neon.h: Regenerate.
592
593 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
594
595 PR driver/59321
596 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
597 DEFAULT_LINKER is defined.
598 * common.opt (fuse-ld=bfd): Add Driver.
599 (fuse-ld=gold): Likewise.
600 * gcc.c (use_ld): New variable.
601 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
602 OPT_fuse_ld_gold.
603 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
604
605 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
606
607 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
608 * config.gcc (extra_headers): Add arm_acle.h.
609 * config/arm/arm.c (FL_CRC32): Define.
610 (arm_have_crc): Likewise.
611 (arm_option_override): Set arm_have_crc.
612 (arm_builtins): Add CRC32 builtins.
613 (bdesc_2arg): Likewise.
614 (arm_init_crc32_builtins): New function.
615 (arm_init_builtins): Initialise CRC32 builtins.
616 (arm_file_start): Handle architecture extensions.
617 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
618 __ARM_FEATURE_CRC32. Define __ARM_32BIT_STATE.
619 (TARGET_CRC32): Define.
620 * config/arm/arm-arches.def: Add armv8-a+crc.
621 * config/arm/arm-tables.opt: Regenerate.
622 * config/arm/arm.md (type): Add crc.
623 (<crc_variant>): New insn.
624 * config/arm/arm_acle.h: New file.
625 * config/arm/iterators.md (CRC): New int iterator.
626 (crc_variant, crc_mode): New int attributes.
627 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
628 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
629 * doc/invoke.texi: Document -march=armv8-a+crc option.
630 * doc/extend.texi: Document ACLE intrinsics.
631
632 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
633
634 PR target/59142
635 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
636 patterns.
637 * config/arm/ldmstm.md: Regenerate.
638
639 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
640
641 PR target/59142
642 * config/arm/predicates.md (arm_hard_general_register_operand):
643 New predicate.
644 (arm_hard_register_operand): Remove.
645 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
646 for all patterns.
647 * config/arm/ldmstm.md: Regenerate.
648
649 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
650
651 PR target/59142
652 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
653 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
654 vfp_hard_register_operand.
655
656 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
657
658 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
659 Define builtin types for poly64_t poly128_t.
660 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
661 * aarch64/aarch64-simd-builtins.def: Update builtins table.
662 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
663 aarch64_crypto_pmullv2di): New.
664 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
665 poly64x2_t mangler.
666 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
667 (vmull_p64, vmull_high_p64): New.
668 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
669
670 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
671
672 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
673 * config/aarch64/aarch64-simd.md
674 (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
675 aarch64_crypto_sha256su1v4si): New.
676 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
677 vsha256su0q_u32, vsha256su1q_u32): New.
678 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
679 New.
680 (CRYPTO_SHA256): New int iterator.
681 (sha256_op): New int attribute.
682
683 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
684
685 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
686 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
687 TYPES_TERNOPU): New.
688 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
689 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
690 aarch64_crypto_sha1su0v4si): New.
691 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
692 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
693 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
694 New.
695 (CRYPTO_SHA1): New int iterator.
696 (sha1_op): New int attribute.
697
698 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
699
700 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
701 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
702 TYPES_BINOPU): New.
703 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
704 aarch64_crypto_aes<aesmc_op>v16qi): New.
705 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
706 vaesimcq_u8): New.
707 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
708 UNSPEC_AESIMC): New.
709 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
710 (aes_op, aesmc_op): New int attributes.
711
712 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
713
714 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
715 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
716 crypto_sha256_slow): New.
717
718 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
719
720 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
721 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
722
723 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
724 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
725
726 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
727 constant.
728 (s390_hotpatch_trampoline_halfwords_max): New constant.
729 (s390_hotpatch_trampoline_halfwords): New static variable.
730 (get_hotpatch_attribute): New function.
731 (s390_handle_hotpatch_attribute): New function.
732 (s390_attribute_table): New target specific attribute table to
733 implement the hotpatch attribute.
734 (s390_option_override): Parse hotpatch options.
735 (s390_function_num_hotpatch_trampoline_halfwords): New function.
736 (s390_can_inline_p): Implement target hook to
737 suppress hotpatching for explicitly inlined functions.
738 (s390_asm_output_function_label): Generate hotpatch prologue.
739 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
740 (TARGET_CAN_INLINE_P): Define to implement target hook.
741 * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
742 -mhotpatch=.
743 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
744 prototype.
745 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
746 function label generation for hotpatching.
747 (FUNCTION_BOUNDARY): Align functions to eight bytes.
748 * doc/extend.texi: Document hotpatch attribute.
749 * doc/invoke.texi: Document -mhotpatch option.
750
751 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
752
753 * config/i386/i386.c: Include cfgloop.h.
754 (ix86_loop_memcount): New function.
755 (ix86_loop_unroll_adjust): New function.
756 (TARGET_LOOP_UNROLL_ADJUST): Define.
757 * config/i386/i386.h
758 (TARGET_ADJUST_UNROLL): Define.
759 * config/i386/x86-tune.def
760 (X86_TUNE_ADJUST_UNROLL): Define.
761
762 2013-12-19 Marek Polacek <polacek@redhat.com>
763
764 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
765 variable alg. Use index variable i directly.
766
767 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
768
769 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
770 for all types.
771
772 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
773
774 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
775 Consider TARGET_CPU_DEFAULT settings.
776
777 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
778
779 * config/aarch64/aarch64-cores.def: Add support for
780 -mcpu=cortex-a57.cortex-a53.
781 * config/aarch64/aarch64-tune.md: Regenerate.
782 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
783
784 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
785
786 * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
787 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
788 * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
789 (aarch64_parse_cpu): mcpu implies a default value for mtune.
790 * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
791
792 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
793
794 * common/config/aarch64/aarch64-common.c
795 (aarch64_rewrite_selected_cpu): New.
796 (aarch64_rewrite_mcpu): New.
797 * config/aarch64/aarch64-protos.h
798 (aarch64_rewrite_selected_cpu): New.
799 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
800 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
801 (ASM_CPU_SPEC): Likewise.
802 (EXTRA_SPEC_FUNCTIONS): Likewise.
803 (EXTRA_SPECS): Likewise.
804 (ASM_SPEC): Likewise.
805 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
806 CPU name.
807
808 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
809
810 * omp-low.c (simd_clone_clauses_extract): Replaced the string
811 "cilk simd elemental" with "cilk simd function."
812 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
813 Removed a carriage-return from a warning string.
814
815 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
816
817 * passes.c (execute_function_dump): Set graph_dump_initialized
818 appropriately.
819 (pass_init_dump_file): Similarly.
820 (execute_one_pass): Pass new argument to do_per_function.
821 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
822
823 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
824
825 * doc/tree-ssa.texi (SSA Operands): Remove reference to
826 SSA_OP_VMAYUSE.
827 Synchronize SSA_OP* definitions with source.
828 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
829 Add not to SSA_OP* macro definitions.
830
831 2013-12-18 Jakub Jelinek <jakub@redhat.com>
832
833 PR target/59539
834 * config/i386/sse.md
835 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
836 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
837 prefix existing define_insn names with *.
838
839 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
840
841 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
842
843 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
844 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
845
846 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
847 cortex-a57, cortex-a57.cortex-a53.
848
849 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
850
851 PR debug/59418
852 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
853 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
854 (dwarf2out_frame_debug_expr): Tidy.
855
856 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
857 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
858 Sergey Lega <sergey.s.lega@intel.com>
859 Anna Tikhonova <anna.tikhonova@intel.com>
860 Ilya Tocar <ilya.tocar@intel.com>
861 Andrey Turetskiy <andrey.turetskiy@intel.com>
862 Ilya Verbin <ilya.verbin@intel.com>
863 Kirill Yukhin <kirill.yukhin@intel.com>
864 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
865
866 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
867 (*fma_fmsub_<mode>): Ditto.
868 (*fma_fnmadd_<mode>): Ditto.
869 (*fma_fnmsub_<mode>): Ditto.
870 (*fma_fmaddsub_<mode>): Ditto.
871 (*fma_fmsubadd_<mode>): Ditto.
872 (avx512f_vternlog<mode>): Ditto.
873 (avx512f_fixupimm<mode>): Ditto.
874 (avx512f_sfixupimm<mode>): Ditto.
875 (avx512f_vpermi2var<mode>3): Ditto.
876 (avx512f_vpermt2var<mode>3): Ditto.
877 (avx512f_fmaddsub_<mode>_maskz): New.
878 (avx512f_vternlog<mode>_maskz): Ditto.
879 (avx512f_fixupimm<mode>_maskz): Ditto.
880 (avx512f_sfixupimm<mode>_maskz): Ditto.
881 (avx512f_vpermi2var<mode>3_maskz): Ditto.
882 (avx512f_vpermt2var<mode>3_maskz): Ditto.
883 (avx512f_expand<mode>_maskz): Ditto.
884 * config/i386/subst.md (sd_maskz_name): Ditto.
885 (sd_mask_op4): Ditto.
886 (sd_mask_op5): Ditto.
887 (sd_mask_codefor): Ditto.
888 (sd_mask_mode512bit_condition): Ditto.
889 (sd): Ditto.
890
891 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
892 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
893 Sergey Lega <sergey.s.lega@intel.com>
894 Anna Tikhonova <anna.tikhonova@intel.com>
895 Ilya Tocar <ilya.tocar@intel.com>
896 Andrey Turetskiy <andrey.turetskiy@intel.com>
897 Ilya Verbin <ilya.verbin@intel.com>
898 Kirill Yukhin <kirill.yukhin@intel.com>
899 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
900
901 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
902 (avx512f_ucmp<mode>3): Ditto.
903 (avx512f_eq<mode>3): Ditto.
904 (avx512f_gt<mode>3): Ditto.
905 (avx512f_testm<mode>3): Ditto.
906 (avx512f_testnm<mode>3): Ditto.
907 * config/i386/subst.md (SUBST_S): New.
908 (mask_scalar_merge_name): Ditto.
909 (mask_scalar_merge_operand3): Ditto.
910 (mask_scalar_merge_operand4): Ditto.
911 (mask_scalar_merge): Ditto.
912
913 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
914
915 PR middle-end/35545
916 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
917 OBJ_TYPE_REF.
918 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
919
920 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
921
922 PR middle-end/35545
923 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
924
925 2013-12-17 Teresa Johnson <tejohnson@google.com>
926
927 PR gcov-profile/59527
928 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
929 branch, which can't be eliminated.
930
931 2013-12-18 Martin Liska <marxin.liska@gmail.com>
932 Jan Hubicka <jh@suse.cz>
933
934 * cgraphunit.c (node_cmp): New function.
935 (expand_all_functions): Function ordering added.
936 * common.opt: New profile based function reordering flag introduced.
937 * lto-partition.c: Support for time profile added.
938 * lto.c: Likewise.
939 * predict.c (handle_missing_profiles): Time profile handled in
940 missing profiles.
941
942 2013-12-17 Jakub Jelinek <jakub@redhat.com>
943
944 PR tree-optimization/59523
945 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
946 on updated stmts.
947
948 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
949
950 * ipa-inline.c (gate_ipa_inline): Remove.
951 (const pass_data pass_data_ipa_inline): Unset has_gate.
952 (class pass_ipa_inline): Remove gate() method.
953
954 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
955
956 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
957 in contains_type_p query.
958
959 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
960
961 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
962
963 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
964 declaration.
965
966 * omp-low.c: Remove leftover comment.
967
968 * omp-low.c (check_combined_parallel): Reflect reality in comment.
969
970 * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
971 * doc/passes.texi (Pass manager): Refer to passes.def.
972
973 * doc/gccint.texi (Top): Fix inclusion order.
974
975 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
976
977 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
978 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
979 * config/arm/arm.md (generic_vfp): Remove cortexa12.
980
981 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
982
983 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
984 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
985 * config/arm/arm-tables.opt: Regenerate.
986 * config/arm/arm-tune.md: Regenerate.
987 * config/arm/bpabi.h
988 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
989
990 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
991
992 * config/arm/arm-cores.def (cortex-a57): New.
993 * doc/invoke.texi: Document -mcpu=cortex-a57.
994 * config/arm/arm-tables.opt: Regenerate.
995 * config/arm/arm-tune.md: Regenerate.
996 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
997
998 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
999
1000 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
1001 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
1002 * config/arm/arm-tables.opt: Regenerate.
1003 * config/arm/arm-tune.md: Regenerate.
1004 * config/arm/bpabi.h
1005 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
1006
1007 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1008
1009 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
1010 * config/arm/genopt.sh: Improve layout.
1011 * config/arm/arm-tune.md: Regenerate.
1012 * config/arm/arm-tables.opt: Regenerate.
1013 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
1014 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
1015 (arm_option_override): When a CPU is chosen, that should also
1016 form the tune target.
1017 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
1018
1019 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1020
1021 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1022 (arm_rewrite_mcpu): Likewise.
1023 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1024 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1025 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1026 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1027 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1028 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1029
1030 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
1031
1032 * expmed.c (lowpart_bit_field_p): Fix comment.
1033 (store_bit_field_using_insv): Fix formatting.
1034 (store_bit_field): Likewise.
1035 (store_fixed_bit_field): More declaration and remove return.
1036 (store_fixed_bit_field_1): Fix formatting.
1037 (extract_fixed_bit_field): Move declaration.
1038 (extract_fixed_bit_field_1): Simplify.
1039
1040 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1041
1042 * ipa-utils.h (possible_polymorphic_call_targets): Determine
1043 context of the call.
1044 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1045
1046 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1047
1048 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1049 instead of x as last gen_lowpart argument.
1050
1051 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1052
1053 * predict.h (PROB_LIKELY): Fix the value.
1054 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1055 for overflow checking for modes without 2xwider supported mode,
1056 if the mode has 2xnarrower mode.
1057
1058 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1059 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1060 try to improve generated code if one of the arguments is constant
1061 or get_range_info says that one of the argument is always
1062 negative or always non-negative.
1063 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1064 (simplify_stmt_using_ranges): Call it.
1065
1066 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
1067
1068 PR rtl-optimization/59466
1069 * emit-rtl.c (change_address_1): Don't validate address for LRA.
1070 * recog.c (general_operand): Accept any memory for LRA.
1071 * lra.c (lra_set_insn_recog_data): Add an assert.
1072
1073 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1074
1075 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1076
1077 2013-12-14 Jan Hubicka <jh@suse.cz>
1078 Markus Trippelsdorf <octoploid@yandex.com>
1079
1080 PR ipa/59265
1081 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1082 call is already devirtualized.
1083
1084 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1085
1086 * Makefile.in (version.o): Restore dependencies on
1087 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1088
1089 2013-12-14 Jan Hubicka <jh@suse.cz>
1090
1091 PR ipa/59473
1092 * ipa-devirt.c (get_class_context): Do not ICE when type is found
1093 at wrong offset.
1094
1095 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1096
1097 PR libgomp/58756
1098 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1099 reductions without placeholder if is_simd, but when not using
1100 GOMP_SIMD* internal calls, also perform the reduction operation
1101 on the outer var rather than simple assignment.
1102
1103 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR middle-end/58956
1106 PR middle-end/59470
1107 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1108 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1109 for callback params.
1110 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1111 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
1112 calls to supply the gimple operand containing the base tree
1113 as an extra argument.
1114 * tree-ssa-ter.c: Include gimple-walk.h.
1115 (find_ssaname, find_ssaname_in_store): New helper functions.
1116 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1117 same_root_var if USE is used somewhere in the stores of the stmt.
1118 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1119 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1120 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1121 check_ipa_store): Likewise.
1122 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1123 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1124 (verify_non_ssa_vars, visit_bb): Adjust their callers.
1125 * cfgexpand.c (add_scope_conflicts_1): Use
1126 walk_stmt_load_store_addr_fn type for visit variable.
1127 (visit_op, visit_conflict): Remove name of the stmt
1128 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1129 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
1130 argument and ATTRIBUTE_UNUSED.
1131 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1132 unnamed tree argument.
1133 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
1134 ATTRIBUTE_UNUSED from stmt parameter.
1135
1136 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
1137
1138 * opts-common.c (integral_argument): Add support for
1139 hexadecimal command option integer arguments. Update comments.
1140
1141 2013-12-14 Jan Hubicka <jh@suse.cz>
1142
1143 PR ipa/59265
1144 * ipa-prop.c (ipa_analyze_call_uses): Skip already
1145 devirtualized calls.
1146
1147 2013-12-14 Jan Hubicka <jh@suse.cz>
1148
1149 PR middle-end/58477
1150 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1151
1152 2013-12-14 Jan Hubicka <jh@suse.cz>
1153
1154 PR middle-end/58477
1155 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1156
1157 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
1158
1159 PR target/59492
1160 * config/i386/i386.c (ix86_function_specific_restore): Don't
1161 change -fPIC.
1162
1163 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
1164
1165 * var-tracking.c (add_stores): Fix oversight in latest commit.
1166
1167 2013-12-14 Marek Polacek <polacek@redhat.com>
1168
1169 PR sanitizer/59503
1170 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1171 expand_binop with correct optab depending on code.
1172
1173 2013-12-14 Tom de Vries <tom@codesourcery.com>
1174
1175 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1176
1177 2013-12-13 DJ Delorie <dj@redhat.com>
1178
1179 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1180
1181 * config/msp430/msp430.md (movqi): replace general_operand with
1182 msp_general_operand and nonimmediate_operand with
1183 msp_nonimmediate_operand to allow volatile operands.
1184 (movhi): Likewise.
1185 (movpsi): Likewise.
1186 (addpsi3): Likewise.
1187 (addhi3): Likewise.
1188 (addhi3_cy): Likewise.
1189 (addchi4_cy): Likewise.
1190 (xor<mode>3): Likewise.
1191 (ome_cmpl<mode>2): Likewise.
1192 (extendqihi2): Likewise.
1193 (zero_extendqihi2): Likewise.
1194 (zero_extendhipsi2): Likewise.
1195 (truncpsihi2): Likewise.
1196 (srai_1): Likewise.
1197
1198 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
1199
1200 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1201 * ira.c: Ditto.
1202 * lra-int.h (lra_init_equiv): New prototype.
1203 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1204 (loc_equivalence_callback): Use the 3rd arg.
1205 (lra_constraints): Update equivalences. Pass curr_insn to
1206 simplify_replace_fn_rtx.
1207 * lra.c (lra): Call lra_init_equiv.
1208
1209 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1210
1211 * genmodes.c (emit_max_int): Fixed missing parens.
1212
1213 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
1214
1215 PR tree-optimization/59149
1216 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1217 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1218 if no type or decl.
1219
1220 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1221
1222 * config/arc/arc.h (BITS_PER_UNIT): Removed.
1223 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1224 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1225 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1226 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1227 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1228 * config/spu/spu.h (BITS_PER_UNIT): Removed.
1229 * defaults.h (BITS_PER_UNIT): Removed.
1230 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1231 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1232 (MAX_BITSIZE_MODE_ANY_INT): Updated.
1233 * doc/tm.texi (BITS_PER_UNIT): Removed.
1234 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1235 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1236 (create_modes): Added code to set bits_per_unit and
1237 max_bitsize_mode_any_int.
1238 (emit_max_int): Changed code generation.
1239 * mkconfig.sh: Added insn-modes.h.
1240
1241 2013-12-13 Jeff Law <law@redhat.com>
1242
1243 PR tree-optimization/45685
1244 * tree-ssa-phiopt.c (neg_replacement): New function.
1245 (tree_ssa_phiopt_worker): Call it.
1246
1247 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1248
1249 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1250
1251 2013-12-13 Bin Cheng <bin.cheng@arm.com>
1252
1253 PR tree-optimization/58296
1254 PR tree-optimization/41488
1255 * tree-scalar-evolution.c: Include necessary header files.
1256 (simplify_peeled_chrec): New function.
1257 (analyze_evolution_in_loop): New static variable.
1258 Call simplify_peeled_chrec.
1259 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1260 (add_old_iv_candidates): Don't add candidate for peeled IV.
1261 * tree-affine.h (aff_combination_zero_p): New function.
1262
1263 2013-12-13 Nick Clifton <nickc@redhat.com>
1264
1265 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
1266 true if the current function has the wakeup attribute.
1267 (msp430_start_function): Note if the function has the wakeup
1268 attribute.
1269 (msp430_attribute_table): Add wakeup attribute.
1270 (msp430_expand_epilogue): Add support for wakeup functions.
1271 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1272 the DINT instruction.
1273 * doc/extend.texi: Document the wakeup attribute.
1274
1275 2013-12-13 Kai Tietz <kitetz@redhat.com>
1276
1277 PR c++/57897
1278 * config/i386/i386.c (ix86_option_override_internal): Set for
1279 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1280 was explicit set.
1281
1282 2013-12-12 Jeff Law <law@redhat.com>
1283
1284 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1285 for zero-extended MULT simple LEA pattern.
1286
1287 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
1288
1289 PR middle-end/59470
1290 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1291 values if necessary.
1292
1293 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1294
1295 PR libgomp/59467
1296 * gimplify.c (omp_check_private): Add copyprivate argument, if it
1297 is true, don't check omp_privatize_by_reference.
1298 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1299 decl is private in outer context. Adjust omp_check_private caller.
1300
1301 2013-12-11 Jeff Law <law@redhat.com>
1302
1303 PR rtl-optimization/59446
1304 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1305 test for crossing a loop header.
1306
1307 2013-12-11 Sriraman Tallam <tmsriram@google.com>
1308
1309 PR target/59390
1310 * config/i386/i386.c (get_builtin): New function.
1311 (ix86_builtin_vectorized_function): Replace all instances of
1312 ix86_builtins[...] with get_builtin(...).
1313 (ix86_builtin_reciprocal): Ditto.
1314
1315 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1316
1317 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1318 (lang_hooks_for_cilkplus): Remove.
1319 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1320 (lhd_install_body_with_frame_cleanup): Likewise.
1321 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1322 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1323 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1324 (LANG_HOOKS_CILKPLUS): Likewise.
1325 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1326 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1327 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1328 (gimplify_call_expr): Likewise.
1329
1330 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1331
1332 * expr.c (expand_assignment): Remove dependency on
1333 flag_strict_volatile_bitfields. Always set the memory access mode.
1334 (expand_expr_real_1): Likewise.
1335
1336 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1337
1338 PR middle-end/59134
1339 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1340 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1341 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
1342 to do the real work.
1343 (store_fixed_bit_field_1): New function.
1344 (store_split_bit_field): Limit the unit size to the memory mode size,
1345 to prevent recursion.
1346
1347 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1348 Sandra Loosemore <sandra@codesourcery.com>
1349
1350 PR middle-end/23623
1351 PR middle-end/48784
1352 PR middle-end/56341
1353 PR middle-end/56997
1354 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1355 and bitregion_end parameters. Test for compliance with C++
1356 memory model.
1357 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1358 Add fallback logic for cases where -fstrict-volatile-bitfields
1359 is supposed to apply, but cannot.
1360 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1361 extract_fixed_bit_field_1 to do the extraction.
1362 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1363 Call extract_fixed_bit_field_1 to do the real work.
1364 (extract_fixed_bit_field_1): New function.
1365
1366 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
1367
1368 PR middle-end/23623
1369 PR middle-end/48784
1370 PR middle-end/56341
1371 PR middle-end/56997
1372 * expmed.c (strict_volatile_bitfield_p): New function.
1373 (store_bit_field_1): Don't special-case strict volatile
1374 bitfields here.
1375 (store_bit_field): Handle strict volatile bitfields here instead.
1376 (store_fixed_bit_field): Don't special-case strict volatile
1377 bitfields here.
1378 (extract_bit_field_1): Don't special-case strict volatile
1379 bitfields here.
1380 (extract_bit_field): Handle strict volatile bitfields here instead.
1381 (extract_fixed_bit_field): Don't special-case strict volatile
1382 bitfields here. Simplify surrounding code to resemble that in
1383 store_fixed_bit_field.
1384 * doc/invoke.texi (Code Gen Options): Update
1385 -fstrict-volatile-bitfields description.
1386
1387 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1388
1389 * configure.ac: Add check for aarch64 assembler -mabi support.
1390 * configure: Regenerate.
1391 * config.in: Regenerate.
1392 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1393 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1394 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1395 if assembler does not support -mabi and option ilp32 is selected.
1396 * doc/install.texi: Added note that building gcc 4.9 and after
1397 with pre 2.24 binutils will not support -mabi=ilp32.
1398
1399 2013-12-11 Marek Polacek <polacek@redhat.com>
1400
1401 PR sanitizer/59399
1402 * expr.c (expand_expr_real_1): Remove assert dealing with
1403 internal calls and turn that into a condition instead.
1404
1405 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
1406
1407 * config/arm/arm.opt (mlra): Enable LRA by default.
1408
1409 2013-12-11 Jakub Jelinek <jakub@redhat.com>
1410
1411 PR tree-optimization/59417
1412 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1413 in a different bb rhan var, only duplicate points-to info and
1414 not alignment info and don't duplicate range info.
1415 * tree-ssa-loop-niter.c (determine_value_range): Instead of
1416 assertion failure handle inconsistencies in range info by only
1417 using var's range info and not PHI result range infos.
1418
1419 PR tree-optimization/59386
1420 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1421 unshare_expr (id->retval) before passing it to gimple_build_assign.
1422
1423 2013-12-11 Bin Cheng <bin.cheng@arm.com>
1424
1425 Reverted:
1426 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1427 PR tree-optimization/41488
1428 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1429 for PEELED_CHREC kind IV.
1430 * tree-scalar-evolution.c: Include necessary header files.
1431 (peeled_chrec_map, simplify_peeled_chrec): New.
1432 (analyze_evolution_in_loop): New static variable.
1433 Call simplify_peeled_chrec.
1434 (scev_initialize): Initialize peeled_chrec_map.
1435 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1436
1437 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1438
1439 PR target/59458
1440 * config/i386/i386.md (*movsf_internal): Set mode to SI for
1441 alternative 13.
1442
1443 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1444
1445 PR rtl-optimization/58295
1446 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1447 WORD_REGISTER_OPERATIONS targets.
1448
1449 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1450
1451 * genrecog.c (validate_pattern): Treat all messages except missing
1452 modes as errors.
1453 * config/epiphany/epiphany.md: Remove constraints from
1454 define_peephole2s.
1455 * config/h8300/h8300.md: Remove constraints from define_splits.
1456 * config/msp430/msp430.md: Likewise.
1457 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1458 nonimmediate_operand rather than general_operand for operand 0.
1459 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1460 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1461 Use match_operator rather than match_test to invoke general_operand.
1462 * config/v850/v850.md (*movqi_internal, *movhi_internal)
1463 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1464
1465 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1466
1467 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1468 register_operand rather than pointer_operand. Add modes to the
1469 operands.
1470 (insn_ldna_add<bitsuffix>): Likewise.
1471 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1472 (insn_ldnt_add<bitsuffix>): Likewise.
1473 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1474 (insn_ld_add_L2<bitsuffix>): Likewise.
1475 (insn_ldna_add_L2<bitsuffix>): Likewise.
1476 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1477 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1478 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1479 (insn_ld_add_miss<bitsuffix>): Likewise.
1480 (insn_ldna_add_miss<bitsuffix>): Likewise.
1481 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1482 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1483 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1484 (insn_st_add<bitsuffix>): Likewise.
1485 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1486 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1487 (insn_stnt_add<bitsuffix>): Likewise.
1488 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1489 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1490 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1491 reg_or_0_operand for operand 0.
1492 (insn_v2<pack_insn>): Likewise.
1493 (vec_pack_hipart_v4hi): Likewise.
1494 (insn_v2packh): Likewise.
1495 (vec_pack_ssat_v2si): Likewise.
1496 (insn_v4packsc): Likewise.
1497
1498 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1499
1500 * basic-block.h (gcov_working_set_t): Put back typedef.
1501 * gcov-io.h (gcov_bucket_type): Likewise.
1502 (gcov_working_set_info, gcov_working_set_t): Likewise.
1503
1504 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1505
1506 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1507 Remove typedef.
1508 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1509 rename to cgraph_inline_failed_t.
1510 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1511 to ao_ref.
1512 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1513 to reg_equivs_t.
1514 * conditions.h (CC_STATUS): Remove typedef.
1515 * bitmap.h (bitmap_obstack): Remove typedef.
1516 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1517 bitmap_element.
1518 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1519 bitmap_head.
1520 (bitmap_iterator): Remove typedef.
1521 * target.h (cumulative_args_t, print_switch_type,
1522 secondary_reload_info): Remove typedef.
1523 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1524 dw_cfi_oprnd_struct alias.
1525 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1526 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1527 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1528 dw_cfa_location.
1529 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1530 dw_vec_const.
1531 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1532 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1533 dw_loc_descr_node.
1534 * params.h (param_info, compiler_param): Remove typedef.
1535 * opts.h (cl_deferred_param): Remove typedef.
1536 * sreal.h (sreal): Remove typedef.
1537 * ddg.h (dep_type, dep_data_type): Remove typedef.
1538 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1539 typedef.
1540 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1541 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1542 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1543 and rename to aff_tree.
1544 * sched-int.h (region): Remove typedef.
1545 * diagnostic.h (diagnostic_info,
1546 diagnostic_classification_change_t): Remove typedef.
1547 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1548 affine_iv.
1549 * sbitmap.h (sbitmap_iterator): Remove typedef.
1550 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1551 Remove typedef and rename to imm_use_iterator.
1552 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1553 ssa_op_iter.
1554 * ggc-internal.h (ggc_statistics): Remove typedef.
1555 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1556 rename to cselib_val.
1557 * tree-core.h (alias_pair): Remove typedef.
1558 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1559 constructor_elt.
1560 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1561 ssa_use_operand_t.
1562 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1563 * tree-data-ref.h (conflict_function): Remove typedef.
1564 * tree-inline.h (copy_body_data): Remove typedef.
1565 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1566 edge_growth_cache_entry): Remove typedef.
1567 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1568 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1569 Remove typedef and rename to gimple_stmt_iterator.
1570 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1571 rename to ce_if_block.
1572 (edge_iterator): Remove typedef.
1573 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1574 and rename to ipa_agg_jf_item.
1575 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1576 ipa_parm_adjustment_t): Remove typedef.
1577 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1578 ipa_jump_func.
1579 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1580 ipa_edge_args.
1581 * gcov-io.h (gcov_bucket_type): Remove typedef.
1582 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1583 to gcov_working_set_t.
1584 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1585 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1586 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1587 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1588 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1589 replace_label_data): Remove typedef.
1590 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1591 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1592 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1593 sel_region_bb_info_def, succ_iterator): Remove typedef.
1594 (deps_where_def, deps_where_t): Remove typedef and rename to
1595 deps_where_t.
1596 * coretypes.h: Adapt forward declarations.
1597 * tree-scalar-evolution.h: Likewise.
1598 * tree-ssa-address.h: Likewise.
1599 * tree-ssa-operands.h: Likewise.
1600 * function.h: Likewise.
1601 * config/frv/frv-protos.h: Likewise.
1602 * targhooks.h: Likewise.
1603 * basic_block.h: Likewise.
1604 * rtl.def: Adapt documentation.
1605 * doc/tm.texi: Likewise.
1606 * ipa-cp.c: Adapt uses.
1607 * bitmap.c: Likewise.
1608 * dwarf2out.c: Likewise.
1609 * target.def: Likewise.
1610 * ipa-inline-analysis.c: Likewise.
1611 * dwarf2cfi.c: Likewise.
1612 * tree-ssa-loop-ivopts.c: Likewise.
1613 * lto-cgraph.c: Likewise.
1614 * config/frv/frv.c: Likewise.
1615 * ifcvt.c: Likewise.
1616 * ipa-prop.c: Likewise.
1617
1618 2013-12-10 Kai Tietz <ktietz@redhat.com>
1619
1620 PR target/56807
1621 * config/i386/i386.c (ix86_expand_prologue): Address saved
1622 registers stack-relative, not via frame-pointer.
1623
1624 2013-12-10 Richard Biener <rguenther@suse.de>
1625
1626 PR middle-end/38474
1627 * tree-ssa-structalias.c (solution_set_expand): Expand into
1628 a different possibly cached bitmap and return the result.
1629 (set_union_with_increment): Pass in a shared expanded bitmap
1630 and adjust.
1631 (do_sd_constraint): Likewise.
1632 (do_ds_constraint): Likewise.
1633 (do_complex_constraint): Likewise.
1634 (solve_graph): Manage the shared expanded bitmap.
1635
1636 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1637
1638 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1639 (LOOP_VINFO_SCALAR_LOOP): Define.
1640 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1641 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1642 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1643 MASK_STORE.
1644 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1645 internal fns.
1646 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1647 tree-ssa-address.h.
1648 (release_bb_predicate): New function.
1649 (free_bb_predicate): Use it.
1650 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1651 just to immediately allocate it again.
1652 (add_to_predicate_list): Add loop argument. If basic blocks that
1653 dominate loop->latch don't insert any predicate.
1654 (add_to_dst_predicate_list): Adjust caller.
1655 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1656 handle it like flag_tree_loop_if_convert_stores.
1657 (insert_gimplified_predicates): Likewise.
1658 (ifcvt_can_use_mask_load_store): New function.
1659 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1660 argument, check if some conditional loads or stores can't be
1661 converted into MASK_LOAD or MASK_STORE.
1662 (if_convertible_stmt_p): Add any_mask_load_store argument,
1663 pass it down to if_convertible_gimple_assign_stmt_p.
1664 (predicate_bbs): Don't return bool, only check if the last stmt
1665 of a basic block is GIMPLE_COND and handle that. Adjust
1666 add_to_predicate_list caller.
1667 (if_convertible_loop_p_1): Only call predicate_bbs if
1668 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1669 afterwards, check gimple_code of stmts here. Replace is_predicated
1670 check with dominance check. Add any_mask_load_store argument,
1671 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1672 call if_convertible_phi_p only after all if_convertible_stmt_p calls.
1673 (if_convertible_loop_p): Add any_mask_load_store argument,
1674 pass it down to if_convertible_loop_p_1.
1675 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1676 (combine_blocks): Add any_mask_load_store argument, pass
1677 it down to insert_gimplified_predicates and call predicate_mem_writes
1678 if it is set. Call predicate_bbs.
1679 (version_loop_for_if_conversion): New function.
1680 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1681 calls. Return todo flags instead of bool, call
1682 version_loop_for_if_conversion if if-conversion should be just
1683 for the vectorized loops and nothing else.
1684 (main_tree_if_conversion): Adjust caller. Don't call
1685 tree_if_conversion for dont_vectorize loops if if-conversion
1686 isn't explicitly enabled.
1687 * tree-vect-data-refs.c (vect_check_gather): Handle
1688 MASK_LOAD/MASK_STORE.
1689 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1690 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1691 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1692 expand_MASK_STORE): New functions.
1693 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1694 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1695 (vectorize_loops): Don't try to vectorize loops with
1696 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1697 loops, fold LOOP_VECTORIZED internal call depending on if loop
1698 has been vectorized or not.
1699 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1700 New function.
1701 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1702 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1703 still to loop's entry or exit edge.
1704 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1705 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1706 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1707 Adjust callers.
1708 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1709 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1710 right place in the CFG afterwards.
1711 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1712 MASK_STORE.
1713 * cfgloop.h (struct loop): Add dont_vectorize field.
1714 * tree-loop-distribution.c (copy_loop_before): Adjust
1715 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1716 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1717 * passes.def: Add a note that pass_vectorize must immediately follow
1718 pass_if_conversion.
1719 * tree-predcom.c (split_data_refs_to_components): Give up if
1720 DR_STMT is a call.
1721 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
1722 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1723 and MASK_STORE.
1724 (vectorizable_mask_load_store): New function.
1725 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1726 (vect_transform_stmt): Handle MASK_STORE.
1727 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1728 DR_STMT where lhs is NULL.
1729 * optabs.h (can_vec_perm_p): Fix up comment typo.
1730 (can_vec_mask_load_store_p): New prototype.
1731 * optabs.c (can_vec_mask_load_store_p): New function.
1732
1733 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1734
1735 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1736 the extraction of a bit-field of null size.
1737
1738 2013-12-10 Marek Polacek <polacek@redhat.com>
1739
1740 PR sanitizer/59437
1741 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1742 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1743 instead of gimple_code.
1744
1745 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1746
1747 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1748 Add android definitions.
1749 (s390x-*-linux*): Use linux-protos.h.
1750
1751 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1752
1753 PR tree-optimization/41488
1754 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1755 for PEELED_CHREC kind IV.
1756 * tree-scalar-evolution.c: Include necessary header files.
1757 (peeled_chrec_map, simplify_peeled_chrec): New.
1758 (analyze_evolution_in_loop): New static variable.
1759 Call simplify_peeled_chrec.
1760 (scev_initialize): Initialize peeled_chrec_map.
1761 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1762
1763 2013-12-09 Andrew Pinski <apinski@cavium.com>
1764
1765 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1766 that options are conflicting ones.
1767
1768 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1769
1770 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1771
1772 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1773
1774 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1775
1776 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1777 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1778
1779 * cfganal.c (inverted_post_order_compute): Likewise.
1780 * cfgcleanup.c (try_optimize_cfg): Likewise.
1781 * cfgexpand.c (add_scope_conflicts): Likewise.
1782 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1783 * cfgrtl.c (relink_block_chain): Likewise.
1784 * dce.c (mark_artificial_uses): Likewise.
1785 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1786 * df-problems.c (df_lr_verify_solution_start,
1787 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1788 df_live_verify_solution_start, df_live_verify_solution_end,
1789 df_live_set_all_dirty, df_live_verify_transfer_functions,
1790 df_md_local_comput): Likewise.
1791 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1792 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1793 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1794 free_dominance_info): Likewise.
1795 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1796 * graph.c (draw_cfg_edges): Likewise.
1797 * graphite-scop-detection.c (print_graphite_scop_statistics,
1798 dot_all_scops_1): Likewise.
1799 * graphite.c (print_global_statistics,
1800 print_graphite_scop_statistics): Likewise.
1801 * ira.c (do_reload): Likewise.
1802 * loop-init.c (loop_optimizer_finalize): Likewise.
1803 * lto-streamer-in.c (input_function): Likewise.
1804 * lto-streamer-out.c (output_function): Likewise.
1805 * mcf.c (adjust_cfg_counts): Likewise.
1806 * predict.c (estimate_loops): Likewise.
1807 * sched-rgn.c (haifa_find_rgns): Likewise.
1808 * tree-cfg.c (split_critical_edges): Likewise.
1809 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1810 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1811 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1812 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1813 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1814 * vtable-verify.c (vtable_verify_main): Likewise.
1815 * web.c (web_main): Likewise.
1816
1817 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1818
1819 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1820
1821 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1822 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1823 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1824 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1825 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1826 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1827 * config/sh/sh.c (sh_md_init_global): Likewise.
1828 * config/sh/sh_optimize_sett_clrt.cc
1829 (sh_optimize_sett_clrt::execute): Likewise.
1830 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1831 Likewise.
1832 * dominance.c (calc_dfs_tree): Likewise.
1833 * final.c (final): Likewise.
1834 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1835 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1836 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1837 * lcm.c (compute_antinout_edge): Likewise.
1838 * mode-switching.c (optimize_mode_switching): Likewise.
1839 * postreload.c (reload_combine): Likewise.
1840 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1841 * tree-ssa-live.c (live_worklist): Likewise.
1842
1843 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1844
1845 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1846
1847 * asan.c (transform_statements, execute_sanopt): Eliminate
1848 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1849 explicit.
1850 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1851 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1852 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1853 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1854 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1855 duplicate_computed_gotos): Likewise.
1856 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1857 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1858 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1859 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1860 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1861 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1862 Likewise.
1863 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1864 verify_loop_structure): Likewise.
1865 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1866 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1867 verify_hot_cold_block_grouping, purge_all_dead_edges,
1868 fixup_abnormal_edges, record_effective_endpoints,
1869 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1870 break_superblocks): Likewise.
1871 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1872 cgraph_rebuild_references): Likewise.
1873 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1874 * combine.c (delete_noop_moves, create_log_links,
1875 combine_instructions): Likewise.
1876 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1877 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1878 Likewise.
1879 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1880 c6x_reorg): Likewise.
1881 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1882 * config/frv/frv.c (frv_optimize_membar): Likewise.
1883 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1884 * config/ia64/ia64.c (ia64_reorg): Likewise.
1885 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1886 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1887 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1888 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1889 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1890 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1891 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1892 reorder_var_tracking_notes): Likewise.
1893 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1894 reorder_var_tracking_notes): Likewise.
1895 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1896 * cprop.c (compute_hash_table_work, compute_cprop_data,
1897 local_cprop_pass, find_implicit_sets): Likewise.
1898 * cse.c (cse_condition_code_reg): Likewise.
1899 * dce.c (prescan_insns_for_dce): Likewise.
1900 * df-core.c (df_compact_blocks): Likewise.
1901 * df-problems.c (df_word_lr_alloc): Likewise.
1902 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1903 df_update_entry_exit_and_calls): Likewise.
1904 * dominance.c (calculate_dominance_info, verify_dominators,
1905 debug_dominance_info): Likewise.
1906 * dse.c (dse_step5_nospill): Likewise.
1907 * except.c (finish_eh_generation): Likewise.
1908 * final.c (compute_alignments): Likewise.
1909 * function.c (thread_prologue_and_epilogue_insns,
1910 rest_of_match_asm_constraints): Likewise.
1911 * gcse.c (compute_hash_table_work, prune_expressions,
1912 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1913 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1914 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1915 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1916 find_explicit_erroneous_behaviour): Likewise.
1917 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1918 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1919 * haifa-sched.c (haifa_sched_init): Likewise.
1920 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1921 Likewise.
1922 * ifcvt.c (if_convert): Likewise.
1923 * init-regs.c (initialize_uninitialized_regs): Likewise.
1924 * ipa-prop.c (ipcp_transform_function): Likewise.
1925 * ipa-pure-const.c (analyze_function): Likewise.
1926 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1927 * ira-build.c (form_loop_tree): Likewise.
1928 * ira-costs.c (find_costs_and_classes): Likewise.
1929 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1930 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1931 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1932 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1933 * jump.c (mark_all_labels): Likewise.
1934 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1935 compute_nearerout, compute_rev_insert_delete): Likewise.
1936 * loop-init.c (fix_loop_structure): Likewise.
1937 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1938 * lower-subreg.c (decompose_multiword_subregs,
1939 decompose_multiword_subregs): Likewise.
1940 * lra-assigns.c (assign_by_spills): Likewise.
1941 * lra-coalesce.c (lra_coalesce): Likewise.
1942 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1943 Likewise.
1944 * lra-eliminations.c (lra_init_elimination): Likewise.
1945 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1946 lra_final_code_change): Likewise.
1947 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1948 update_inc_notes): Likewise.
1949 * mcf.c (adjust_cfg_counts): Likewise.
1950 * mode-switching.c (optimize_mode_switching): Likewise.
1951 * modulo-sched.c (rest_of_handle_sms): Likewise.
1952 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1953 expand_omp_target): Likewise.
1954 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1955 * postreload.c (reload_cse_regs_1): Likewise.
1956 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1957 tree_estimate_probability, expensive_function_p,
1958 estimate_bb_frequencies, compute_function_frequency): Likewise.
1959 * profile.c (is_inconsistent, compute_branch_probabilities,
1960 branch_prob): Likewise.
1961 * ree.c (find_removable_extensions): Likewise.
1962 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1963 * regcprop.c (copyprop_hardreg_forward): Likewise.
1964 * reginfo.c (init_subregs_of_mode): Likewise.
1965 * regrename.c (regrename_analyze): Likewise.
1966 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1967 Likewise.
1968 * reload1.c (has_nonexceptional_receiver, reload,
1969 calculate_elim_costs_all_insns): Likewise.
1970 * resource.c (init_resource_info, free_resource_info): Likewise.
1971 * sched-ebb.c (schedule_ebbs): Likewise.
1972 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1973 haifa_find_rgns, sched_rgn_local_init): Likewise.
1974 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1975 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1976 make_regions_from_the_rest): Likewise.
1977 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1978 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1979 * store-motion.c (compute_store_table, build_store_vectors,
1980 one_store_motion_pass): Likewise.
1981 * tracer.c (tail_duplicate): Likewise.
1982 * trans-mem.c (compute_transaction_bits): Likewise.
1983 * tree-call-cdce.c (tree_call_cdce): Likewise.
1984 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1985 fold_cond_expr_cond, make_edges, assign_discriminators,
1986 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1987 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1988 execute_fixup_cfg): Likewise.
1989 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1990 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1991 Likewise.
1992 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1993 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1994 mark_reachable_handlers): Likewise.
1995 * tree-emutls.c (lower_emutls_function_body): Likewise.
1996 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1997 * tree-inline.c (optimize_inline_calls): Likewise.
1998 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1999 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
2000 * tree-object-size.c (compute_object_sizes): Likewise.
2001 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
2002 insert_backedge_copies, tree_profiling): Likewise.
2003 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2004 * tree-sra.c (scan_function, sra_modify_function_body,
2005 propagate_dereference_distances, ipa_sra_modify_function_body,
2006 convert_callers): Likewise.
2007 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
2008 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2009 create_outofssa_var_map, coalesce_partitions): Likewise.
2010 * tree-ssa-copy.c (init_copy_prop): Likewise.
2011 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2012 * tree-ssa-dce.c (find_obviously_necessary_stmts,
2013 eliminate_unnecessary_stmts): Likewise.
2014 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
2015 Likewise.
2016 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2017 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
2018 new_tree_live_info, calculate_live_on_exit, dump_live_info,
2019 analyze_memory_references, fill_always_executed_in,
2020 tree_ssa_lim_finalize): Likewise.
2021 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2022 Likewise.
2023 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2024 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2025 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2026 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2027 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2028 Likewise.
2029 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2030 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2031 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2032 tree_ssa_uncprop): Likewise.
2033 * tree-ssa-uninit.c (warn_uninitialized_vars,
2034 execute_late_warn_uninitialized): Likewise.
2035 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2036 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2037 Likewise.
2038 * tree-switch-conversion.c (do_switchconv): Likewise.
2039 * tree-vect-generic.c (expand_vector_operations): Likewise.
2040 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2041 execute_vect_slp): Likewise.
2042 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2043 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2044 Likewise.
2045 * ubsan.c (ubsan_pass): Likewise.
2046 * value-prof.c (verify_histograms,
2047 gimple_value_profile_transformations, gimple_find_values_to_profile):
2048 Likewise.
2049 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2050 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2051
2052 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2053
2054 * basic-block.h (last_basic_block): Eliminate macro.
2055
2056 * asan.c (transform_statements): Eliminate use of last_basic_block
2057 in favor of last_basic_block_for_fn, in order to make use of cfun
2058 explicit.
2059 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2060 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2061 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2062 * cfg.c (compact_blocks): Likewise.
2063 * cfganal.c (mark_dfs_back_edges,
2064 control_dependences::control_dependences, post_order_compute,
2065 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2066 single_pred_before_succ_order): Likewise.
2067 * cfgbuild.c (make_edges): Likewise.
2068 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2069 * cfghooks.c (verify_flow_info): Likewise.
2070 * cfgloop.c (verify_loop_structure): Likewise.
2071 * cfgloopanal.c (just_once_each_iteration_p,
2072 mark_irreducible_loops): Likewise.
2073 * cfgloopmanip.c (fix_bb_placements, remove_path,
2074 update_dominators_in_loop): Likewise.
2075 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2076 break_superblocks, rtl_flow_call_edges_add): Likewise.
2077 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2078 * config/frv/frv.c (frv_optimize_membar): Likewise.
2079 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2080 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2081 * cprop.c (compute_local_properties, find_implicit_sets,
2082 bypass_conditional_jumps, one_cprop_pass): Likewise.
2083 * cse.c (cse_main): Likewise.
2084 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2085 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2086 * df-problems.c (df_lr_verify_solution_start,
2087 df_live_verify_solution_start, df_md_local_compute): Likewise.
2088 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2089 calc_idoms): Likewise.
2090 * domwalk.c (dom_walker::walk): Likewise.
2091 * dse.c (dse_step0, dse_step3): Likewise.
2092 * function.c (epilogue_done): Likewise.
2093 * gcse.c (alloc_gcse_mem, compute_local_properties,
2094 prune_insertions_deletions, compute_pre_data,
2095 pre_expr_reaches_here_p, one_pre_gcse_pass,
2096 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2097 one_code_hoisting_pass): Likewise.
2098 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2099 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2100 * haifa-sched.c (unlink_bb_notes): Likewise.
2101 * ipa-split.c (execute_split_functions): Likewise.
2102 * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2103 Likewise.
2104 * ira-emit.c (ira_emit): Likewise.
2105 * ira.c (find_moveable_pseudos, ira): Likewise.
2106 * lcm.c (compute_antinout_edge, compute_laterin,
2107 compute_insert_delete, pre_edge_lcm, compute_available,
2108 compute_nearerout, compute_rev_insert_delete,
2109 pre_edge_rev_lcm): Likewise.
2110 * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2111 Likewise.
2112 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2113 * lra-lives.c (lra_create_live_ranges): Likewise.
2114 * lra.c (lra): Likewise.
2115 * mode-switching.c (optimize_mode_switching): Likewise.
2116 * recog.c (split_all_insns): Likewise.
2117 * regcprop.c (copyprop_hardreg_forward): Likewise.
2118 * regrename.c (regrename_analyze): Likewise.
2119 * reload1.c (reload): Likewise.
2120 * resource.c (init_resource_info): Likewise.
2121 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2122 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2123 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2124 recompute_rev_top_order, sel_init_pipelining,
2125 make_regions_from_the_rest): Likewise.
2126 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2127 Likewise.
2128 * tracer.c (tail_duplicate): Likewise.
2129 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2130 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2131 gimple_flow_call_edges_add): Likewise.
2132 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2133 cleanup_tree_cfg_1): Likewise.
2134 * tree-complex.c (tree_lower_complex): Likewise.
2135 * tree-inline.c (copy_cfg_body): Likewise.
2136 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2137 prepare_def_site_for, update_ssa): Likewise.
2138 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2139 * tree-ssa-dom.c (record_edge_info): Likewise.
2140 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2141 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2142 * tree-ssa-loop-manip.c (copy_phi_node_args
2143 gimple_duplicate_loop_to_header_edge): Likewise.
2144 * tree-ssa-pre.c (compute_antic): Likewise.
2145 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2146 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2147 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2148 * tree-ssa-tail-merge.c (init_worklist): Likewise.
2149 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2150 * tree-stdarg.c (reachable_at_most_once): Likewise.
2151 * tree-vrp.c (find_assert_locations): Likewise.
2152 * var-tracking.c (vt_find_locations): Likewise.
2153
2154 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2155
2156 * basic-block.h (profile_status): Eliminate macro.
2157
2158 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2159 profile_status macro in favor of profile_status_for_fn, making
2160 use of cfun explicit.
2161 * cfghooks.c (account_profile_record): Likewise.
2162 * cfgloopanal.c (single_likely_exit):
2163 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2164 * graphite.c (graphite_finalize):
2165 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2166 ubsan_expand_si_overflow_neg_check,
2167 ubsan_expand_si_overflow_mul_check): Likewise.
2168 * ipa-split.c (consider_split, execute_split_functions):
2169 * loop-unroll.c (decide_peel_simple):
2170 * optabs.c (emit_cmp_and_jump_insn_1):
2171 * predict.c (maybe_hot_edge_p, probably_never_executed,
2172 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2173 tree_estimate_probability_driver, estimate_bb_frequencies,
2174 compute_function_frequency, rebuild_frequencies): Likewise.
2175 * profile.c (compute_branch_probabilities): Likewise.
2176 * tree-cfg.c (gimple_account_profile_record): Likewise.
2177 * tree-inline.c (optimize_inline_calls): Likewise.
2178
2179 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2180
2181 * basic-block.h (label_to_block_map): Eliminate macro.
2182
2183 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2184 uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2185 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2186 (verify_gimple_label): Likewise.
2187
2188 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2189
2190 * basic-block.h (basic_block_info): Eliminate macro.
2191
2192 * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2193 with basic_block_info_for_fn, making uses of cfun be explicit.
2194 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2195
2196 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2197
2198 * basic-block.h (BASIC_BLOCK): Eliminate macro.
2199
2200 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2201 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2202 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2203 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2204 * caller-save.c (insert_one_insn): Likewise.
2205 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2206 * cfgexpand.c (add_scope_conflicts): Likewise.
2207 * cfghooks.c (verify_flow_info): Likewise.
2208 * cfgloop.c (flow_loops_find): Likewise.
2209 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2210 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2211 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2212 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2213 * cse.c (cse_main): Likewise.
2214 * dce.c (fast_dce): Likewise.
2215 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2216 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2217 df_bb_replace, df_dump_region): Likewise.
2218 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2219 df_live_bb_local_compute, df_chain_remove_problem)
2220 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2221 df_md_bb_local_compute, df_md_local_compute,
2222 df_md_transfer_function): Likewise.
2223 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2224 df_reorganize_refs_by_insn, df_bb_refs_collect,
2225 df_record_entry_block_defs, df_update_entry_block_defs,
2226 df_record_exit_block_uses): Likewise.
2227 * dominance.c (nearest_common_dominator_for_set): Likewise.
2228 * gcse.c (hoist_code): Likewise.
2229 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2230 * ipa-inline-analysis.c (param_change_prob,
2231 estimate_function_body_sizes): Likewise.
2232 * ipa-split.c (dominated_by_forbidden): Likewise.
2233 * loop-unroll.c (apply_opt_in_copies): Likewise.
2234 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2235 * lra-lives.c (lra_create_live_ranges): Likewise.
2236 * predict.c (propagate_freq): Likewise.
2237 * regrename.c (regrename_analyze): Likewise.
2238 * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2239 Likewise.
2240 * resource.c (mark_target_live_regs): Likewise.
2241 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2242 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2243 * sched-rgn.c (debug_region, dump_region_dot, too_large,
2244 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2245 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2246 * sched-vis.c (debug_bb_n_slim): Likewise.
2247 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2248 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2249 * sel-sched.c (remove_insns_that_need_bookkeeping)
2250 (current_region_empty_p, sel_region_init, simplify_changed_insns):
2251 Likewise.
2252 * trans-mem.c (execute_tm_mark, execute_tm_edges,
2253 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2254 * tree-cfg.c (make_edges, end_recording_case_labels,
2255 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2256 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2257 gimple_purge_all_dead_eh_edges,
2258 gimple_purge_all_dead_abnormal_call_edges): Likewise.
2259 * tree-cfgcleanup.c (fixup_noreturn_call,
2260 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2261 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2262 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2263 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2264 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2265 * tree-ssa-live.c (live_worklist): Likewise.
2266 * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2267 find_uses_to_rename, copy_phi_node_args): Likewise.
2268 * tree-ssa-pre.c (compute_antic): Likewise.
2269 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2270 Likewise.
2271 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2272 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2273 same_succ_flush_bbs, update_worklist, set_cluster,
2274 same_phi_alternatives, find_clusters_1, apply_clusters,
2275 update_debug_stmts): Likewise.
2276 * tree-ssa-threadupdate.c (mark_threaded_blocks,
2277 thread_through_all_blocks): Likewise.
2278 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2279 * tree-vrp.c (find_assert_locations): Likewise.
2280
2281 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2282
2283 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2284
2285 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2286 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2287 (expunge_block): Likewise.
2288 * cfgrtl.c (create_basic_block_structure): Likewise.
2289 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2290 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2291 * tree-cfg.c (create_bb): Likewise.
2292
2293 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2294
2295 * basic-block.h (profile_status_for_function): Rename to...
2296 (profile_status_for_fn): ...this.
2297
2298 * cfg.c (check_bb_profile): Update for renaming.
2299 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2300 * lto-streamer-in.c (input_cfg): Likewise.
2301 * lto-streamer-out.c (output_cfg): Likewise.
2302 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2303 maybe_hot_bb_p, probably_never_executed)
2304 (handle_missing_profiles): Likewise.
2305 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2306 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2307
2308 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2309
2310 * basic-block.h (label_to_block_map_for_function): Rename to...
2311 (label_to_block_map_for_fn): ...this.
2312
2313 * lto-streamer-in.c (input_cfg): Update for renaming.
2314 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2315
2316 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2317
2318 * basic-block.h (last_basic_block_for_function): Rename to...
2319 (last_basic_block_for_fn): ...this.
2320
2321 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2322 last_basic_block_for_function to last_basic_block_for_fn.
2323 * lto-streamer-in.c (input_cfg): Likewise.
2324 * lto-streamer-out.c (output_cfg): Likewise.
2325 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2326 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2327 Likewise.
2328
2329 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2330
2331 * basic-block.h (basic_block_info_for_function): Rename to...
2332 (basic_block_info_for_fn): ...this.
2333 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2334 (BASIC_BLOCK_FOR_FN): ...this.
2335 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2336 (SET_BASIC_BLOCK_FOR_FN): ...this.
2337
2338 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2339 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2340 * ipa-utils.c (ipa_merge_profiles): Likewise.
2341 * lto-streamer-in.c (make_new_block): Update for renaming of
2342 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2343 (input_cfg): Update for renamings.
2344 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2345 (dump_function_to_file): Update for renaming of
2346 basic_block_info_for_function to basic_block_info_for_fn.
2347
2348 2013-12-09 Richard Biener <rguenther@suse.de>
2349
2350 PR middle-end/38474
2351 * tree-ssa-structalias.c (set_union_with_increment): Remove
2352 unreachable code.
2353 (do_complex_constraint): Call set_union_with_increment with
2354 the solution delta, not the full solution.
2355 (make_transitive_closure_constraints): Merge the two constraints.
2356
2357 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
2358
2359 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
2360 more address validation checks.
2361
2362 2013-12-09 Marek Polacek <polacek@redhat.com>
2363
2364 PR sanitizer/59415
2365 * vtable-verify.c (verify_bb_vtables): Check the return value
2366 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
2367
2368 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2369
2370 * config/arm/arm.md (generic_sched): Add cortexa12.
2371 (generic_vfp): Likewise.
2372 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2373 (arm_cortex_a12_tune): New tuning struct.
2374 * config/arm/arm-cores.def: Add cortex-a12.
2375 * config/arm/arm-tables.opt: Regenerate.
2376 * config/arm/arm-tune.md: Likewise.
2377 * config/arm/bpabi.h: Add cortex-a12.
2378 * doc/invoke.texi: Document -mcpu=cortex-a12.
2379
2380 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2381
2382 * doc/install.texi (Prerequisites): Explicitly mention C library
2383 and its headers for multilib builds.
2384
2385 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
2386
2387 PR target/52898
2388 PR target/51697
2389 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2390 OPT_mcbranchdi entry.
2391 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2392 emit a warning.
2393 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2394 and TARGET_CMPEQDI_T variables.
2395 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2396
2397 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2398
2399 * config/linux.h: Fix typo in a comment.
2400
2401 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2402
2403 * config.gcc (*linux*): Split libc selection from Android support.
2404 Add libc selection to all *linux* targets. Add Android support to
2405 architectures that support it.
2406 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2407 (mips*-*-linux*): Add Android support.
2408
2409 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
2410 Maxim Kuvyrkov <maxim@kugelworks.com>
2411
2412 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2413 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2414 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2415 to linux.h.
2416 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2417 to linux.h.
2418 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2419 Define appropriately for Linux and uClinux targets.
2420
2421 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2422
2423 * config/linux.c (linux_has_ifunc_p): Use correct test.
2424
2425 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2426
2427 * config/linux.c (linux_android_has_ifunc_p): Rename to
2428 linux_has_ifunc_p.
2429 (linux_android_libc_has_function): Rename to linux_libc_has_function.
2430 * config/linux-protos.h (linux_android_has_ifunc_p,)
2431 (linux_android_libc_has_function): Update declarations.
2432 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2433 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2434
2435 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2436
2437 * linux-android.c: Rename to linux.c.
2438 * t-linux-android: Rename to t-linux. Update references
2439 to linux-android.c
2440 * config.gcc: Update references to t-linux-android and linux-android.o.
2441
2442 2013-12-07 Alan Modra <amodra@gmail.com>
2443
2444 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2445 alternative.
2446
2447 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2448
2449 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2450
2451 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
2452
2453 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2454 constraint.
2455
2456 2013-12-06 Caroline Tice <cmtice@google.com>
2457
2458 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2459 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2460 vtable pointer with the results of the verification call, rather than
2461 only the uses in the next statement.
2462
2463 2013-12-06 Andrew Pinski <apinski@cavium.com>
2464
2465 PR target/59092
2466 * config/aarch64/aarch64.md (trap): New pattern.
2467
2468 2013-12-06 Jakub Jelinek <jakub@redhat.com>
2469
2470 PR tree-optimization/59388
2471 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2472 gimplify tem after stmt rather than before it.
2473
2474 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2475 (get_references_in_stmt): Don't record operand addresses, but
2476 operands themselves.
2477 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2478 Adjust for the pos -> ref change.
2479
2480 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2481
2482 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2483
2484 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2485 (processor_alias_table): Likewise.
2486 (ix86_option_override_internal): Likewise.
2487 * config/i386/i386.h (target_cpu_default): Replace
2488 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2489
2490 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2491
2492 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2493
2494 PR target/59405
2495 * config/i386/i386.c (type_natural_mode): Properly handle
2496 size 8 for !TARGET_64BIT.
2497
2498 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2499
2500 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2501 vec::release.
2502
2503 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2504 Mark Mitchell <mark@codesourcery.com>
2505
2506 PR target/59091
2507 * config/arm/arm.md (trap): New pattern.
2508 * config/arm/types.md: Added a type for trap.
2509
2510 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2511
2512 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2513
2514 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2515
2516 PR target/59316
2517 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2518 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2519 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2520 (TARGET_BUILTIN_DECL): Define.
2521 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2522 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2523 (enum sparc_builtins): New enumeral type.
2524 (sparc_builtins): New static array.
2525 (sparc_builtins_icode): Likewise.
2526 (def_builtin): Accept a separate icode and save the result.
2527 (def_builtin_const): Likewise.
2528 (sparc_fpu_init_builtins): New function.
2529 (sparc_vis_init_builtins): Pass the builtin code.
2530 (sparc_init_builtins): Call it if TARGET_FPU.
2531 (sparc_builtin_decl): New function.
2532 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2533 (sparc_handle_vis_mul8x16): Use the builtin code.
2534 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2535 and SPARC_BUILTIN_PDISTN.
2536 (compound_expr): New helper function.
2537 (sparc_atomic_assign_expand_fenv): New function.
2538 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2539 and UNSPECV_STFSR.
2540 (flush, flushdi): Merge into single pattern.
2541 (ldfsr): New instruction.
2542 (stfsr): Likewise.
2543
2544 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2545
2546 * asan.c: Remove struct tags when referring to class varpool_node.
2547 * cgraph.h: Likewise.
2548 * cgraphbuild.c: Likewise.
2549 * cgraphunit.c: Likewise.
2550 * dbxout.c: Likewise.
2551 * dwarf2out.c: Likewise.
2552 * gimple-fold.c: Likewise.
2553 * ipa-devirt.c: Likewise.
2554 * ipa-ref-inline.h: Likewise.
2555 * ipa-ref.h: Likewise.
2556 * ipa-reference.c: Likewise.
2557 * ipa-utils.c: Likewise.
2558 * ipa.c: Likewise.
2559 * lto-cgraph.c: Likewise.
2560 * lto-streamer-out.c: Likewise.
2561 * lto-streamer.h: Likewise.
2562 * passes.c: Likewise.
2563 * toplev.c: Likewise.
2564 * tree-eh.c: Likewise.
2565 * tree-emutls.c: Likewise.
2566 * tree-pass.h: Likewise.
2567 * tree-ssa-structalias.c: Likewise.
2568 * tree-vectorizer.c: Likewise.
2569 * tree.c: Likewise.
2570 * varasm.c: Likewise.
2571 * varpool.c: Likewise.
2572
2573 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2574
2575 * cgraphunit.c: Remove struct tags when referring to class
2576 ipa_opt_pass_d or class opt_pass.
2577 * function.h: Likewise.
2578 * lto-cgraph.c: Likewise.
2579 * pass_manager.h: Likewise.
2580 * passes.c: Likewise.
2581 * tree-pass.h: Likewise.
2582
2583 2013-12-06 Richard Biener <rguenther@suse.de>
2584
2585 PR tree-optimization/59058
2586 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2587 (LOOP_VINFO_NITERSM1): New macro.
2588 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2589 the vector loop entry test in terms of scalar latch executions.
2590 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2591 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2592 number of latch executions.
2593 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2594 (vect_analyze_loop_form): Likewise.
2595 (vect_generate_tmps_on_preheader): Compute the number of
2596 vectorized iterations differently.
2597
2598 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2599
2600 * config/score/score.c (score_force_temporary): Delete function.
2601 (score_split_symbol): Ditto.
2602 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2603 parentheses to silence ambiguity warning and reindent.
2604
2605 2013-12-05 Marek Polacek <polacek@redhat.com>
2606
2607 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2608
2609 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2610
2611 * config.gcc: Support --with-cpu=ia.
2612
2613 * config/i386/i386.c (cpu_names): Add "ia".
2614 (processor_alias_table): Likewise.
2615 (ix86_option_override_internal): Disallow -march=ia.
2616 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2617
2618 * doc/invoke.texi: Document -mtune=ia.
2619
2620 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2621
2622 PR rtl-optimization/59317
2623 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2624 as a source.
2625
2626 2013-12-05 Martin Jambor <mjambor@suse.cz>
2627
2628 PR ipa/58253
2629 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2630 non-BLKmode in their naturally aligned type.
2631
2632 2013-12-05 Marek Polacek <polacek@redhat.com>
2633
2634 PR sanitizer/59333
2635 PR sanitizer/59397
2636 * ubsan.c: Include rtl.h and expr.h.
2637 (ubsan_encode_value): Add new parameter. If expanding, assign
2638 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2639 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2640 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2641 * ubsan.h (ubsan_encode_value): Adjust declaration.
2642 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2643 ubsan_build_overflow_builtin above expand_normal call. Surround
2644 this call with push_temp_slots and pop_temp_slots.
2645 (ubsan_expand_si_overflow_neg_check): Likewise.
2646 (ubsan_expand_si_overflow_mul_check): Likewise.
2647
2648 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2649
2650 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2651 the get_alternative_base call with flag_expensive_optimizations.
2652 (alloc_cand_and_find_basis): Likewise.
2653
2654 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2655
2656 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2657 vec_select for overlapping register lanes.
2658
2659 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2660
2661 * config/i386/i386.c (ix86_expand_builtin): Generate
2662 reg for readflags built-in when optimizing.
2663 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2664 (pushfl<mode>2): This. Fix iterator.
2665 (*popfl<mode>): Rename to ...
2666 (*popfl<mode>1): This. Fix iterator.
2667
2668 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2669
2670 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2671 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2672 (ix86_init_mmx_sse_builtins): Define
2673 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2674 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2675 (ix86_expand_builtin): Expand them.
2676 * config/i386/ia32intrin.h (__readeflags): New.
2677 (__writeeflags): Ditto.
2678 * config/i386/i386.md (*pushfl<mode>): Ditto.
2679 (*popfl<mode>1): Ditto.
2680
2681 2013-12-05 Richard Biener <rguenther@suse.de>
2682
2683 PR tree-optimization/59374
2684 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2685 Commonize known and unknown dependence case fixing the allowed
2686 read-write dependence case and dropping code that should not matter.
2687
2688 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2689
2690 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2691 generation of predicated version.
2692 (epilogue_deallocate_stack): Ditto.
2693 (prologue_allocate_stack_pr): Add explicit predicated version.
2694 (epilogue_deallocate_stack_pr): Ditto.
2695 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2696
2697 2013-12-05 Alan Modra <amodra@gmail.com>
2698
2699 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2700 build != host.
2701 <recursive call for build != host>: Clear GMPINC. Don't bother
2702 saving CFLAGS.
2703
2704 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2705 Marek Polacek <polacek@redhat.com>
2706
2707 * opts.c (common_handle_option): Handle
2708 -fsanitize=signed-integer-overflow.
2709 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2710 negv<mode>3, negv<mode>3_1): Define expands.
2711 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2712 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2713 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2714 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2715 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2716 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2717 PROB_ALWAYS): Define.
2718 (ubsan_build_overflow_builtin): Declare.
2719 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2720 internal functions.
2721 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2722 (ubsan_build_overflow_builtin): New function.
2723 (instrument_si_overflow): Likewise.
2724 (ubsan_pass): Add signed integer overflow checking.
2725 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2726 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2727 * internal-fn.c: Include ubsan.h and target.h.
2728 (ubsan_expand_si_overflow_addsub_check): New function.
2729 (ubsan_expand_si_overflow_neg_check): Likewise.
2730 (ubsan_expand_si_overflow_mul_check): Likewise.
2731 (expand_UBSAN_CHECK_ADD): Likewise.
2732 (expand_UBSAN_CHECK_SUB): Likewise.
2733 (expand_UBSAN_CHECK_MUL): Likewise.
2734 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2735 (-A) + B -> B - A when doing the signed integer overflow checking.
2736 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2737 Define.
2738 * tree-vrp.c (extract_range_basic): Handle internal calls.
2739 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2740 optabs.
2741 * asan.c: Include predict.h.
2742 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2743 * predict.c: Move the PROB_* macros...
2744 * predict.h (enum br_predictor): ...here.
2745 (PROB_LIKELY, PROB_UNLIKELY): Define.
2746 * trans-mem.c: Include predict.h.
2747 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2748 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2749
2750 2013-12-04 Jeff Law <law@redhat.com>
2751
2752 * common.opt: Split up -fisolate-erroneous-paths into
2753 -fisolate-erroneous-paths-dereference and
2754 -fisolate-erroneous-paths-attribute.
2755 * invoke.texi: Corresponding changes.
2756 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2757 what kind of statements can be used to infer a non-null range.
2758 * gimple.h (infer_nonnull_range): Update prototype.
2759 * tree-vrp.c (infer_value_range): Corresponding changes.
2760 * opts.c (default_options_table): Update due to option split.
2761 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2762 (find_implicit_erroneous_behaviour): Pass additional arguments
2763 to infer_nonnull_range.
2764 (find_explicit_erroneous_behaviour): Similarly.
2765 (gate_isolate_erroneous_paths): Check both of the new options.
2766
2767 2013-12-04 Jeff Law <law@redhat.com>
2768
2769 * expr.c (expand_assignment): Update comments.
2770
2771 2013-12-04 Tobias Burnus <burnus@net-b.de>
2772
2773 PR debug/37132
2774 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2775 * tree.def (NAMELIST_DECL): Add.
2776 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2777 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2778 * dwarf2out.c (gen_namelist_decl): New function.
2779 (gen_decl_die, dwarf2out_decl): Call it.
2780 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2781 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2782 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2783 call.
2784 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2785
2786 2013-12-03 Xinliang David Li <davidxl@google.com>
2787
2788 * tree-ssa-structalias.c (constraint_set_union): Change return type
2789 from void to bool.
2790 (merge_node_constraints): Ditto.
2791 (unify_nodes): Update changed set when constraints set changes.
2792
2793 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2794
2795 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2796 -fsanitize=address.
2797 * configure: Regenerated.
2798
2799 * gdbasan.in: New file.
2800
2801 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2802
2803 PR rtl-optimization/58726
2804 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2805 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2806
2807 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2808 Uros Bizjak <ubizjak@gmail.com>
2809
2810 PR target/59163
2811 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2812 !TARGET_AVX there is misaligned MEM operand with vector mode
2813 and get_attr_ssememalign is 0, return false.
2814 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2815 computed alignment and for non-temporal loads/stores also
2816 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2817 * config/i386/sse.md
2818 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2819 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2820 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2821 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2822 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2823 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2824 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2825 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2826 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2827 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2828 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2829 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2830 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2831 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2832 * config/i386/i386.md (ssememalign): New define_attr.
2833
2834 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2835
2836 PR tree-optimization/59355
2837 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2838 * opts.c (common_handle_option): Fix comment spelling.
2839
2840 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2841
2842 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2843 (name_expansions): New static variable.
2844 (alt_base_map): Ditto.
2845 (get_alternative_base): New function.
2846 (find_basis_for_candidate): For CAND_REF, optionally call
2847 find_basis_for_base_expr with the returned value from
2848 get_alternative_base.
2849 (record_potential_basis): Add new parameter 'base' of type 'tree';
2850 add an assertion of non-NULL base; use base to set node->base_expr.
2851 (alloc_cand_and_find_basis): Update; call record_potential_basis
2852 for CAND_REF with the returned value from get_alternative_base.
2853 (replace_refs): Dump details on the replacing.
2854 (execute_strength_reduction): Call pointer_map_create for
2855 alt_base_map; call free_affine_expand_cache with &name_expansions.
2856
2857 2013-12-03 Wei Mi <wmi@google.com>
2858
2859 PR rtl-optimization/59020
2860 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2861 (sched_analyze_insn): Call try_group_insn.
2862 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2863 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2864 (group_insns_for_macro_fusion): Removed.
2865 (sched_init): Remove calling group_insns_for_macro_fusion.
2866
2867 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2868
2869 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2870 typo in macro name.
2871 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2872
2873 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2874
2875 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2876 LR_REGNUM.
2877 (aarch64_can_eliminate): Don't check elimination source when
2878 frame_pointer_required is false.
2879
2880 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2881
2882 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2883 position independent code.
2884 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2885
2886 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2887
2888 PR target/59363
2889 * config/i386/i386.c (emit_memset): Adjust destination address
2890 after gen_strset.
2891 (expand_setmem_epilogue): Likewise.
2892
2893 2013-12-03 Marek Polacek <polacek@redhat.com>
2894
2895 PR middle-end/56344
2896 * calls.c (expand_call): Disallow passing huge arguments by value.
2897
2898 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2899
2900 PR tree-optimization/59362
2901 * tree-object-size.c (object_sizes): Change into array of
2902 vec<unsigned HOST_WIDE_INT>.
2903 (compute_builtin_object_size): Check computed bitmap for
2904 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2905 vector if new SSA_NAMEs appeared.
2906 (init_object_sizes): Check computed bitmap for non-NULL.
2907 Call safe_grow on object_sizes elements instead of initializing
2908 it with XNEWVEC.
2909 (fini_object_sizes): Call release on object_sizes elements, don't
2910 set it to NULL.
2911
2912 PR middle-end/59011
2913 * gimplify.c (nonlocal_vla_vars): New variable.
2914 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2915 nonlocal_vla_vars chain.
2916 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2917 if outer_bind has DECL_INITIAL (current_function_decl) block.
2918
2919 PR target/58864
2920 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2921 New functions.
2922 * expr.h (struct saved_pending_stack_adjust): New type.
2923 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2924 prototypes.
2925 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2926 and get_last_insn before do_pending_stack_adjust, call
2927 restore_pending_stack_adjust after delete_insns_since.
2928 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2929 before calling emit_conditional_move.
2930 * expmed.c (expand_sdiv_pow2): Likewise.
2931 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2932
2933 2013-12-02 Jeff Law <law@redhat.com>
2934
2935 PR tree-optimization/59322
2936 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2937 Remove code which copied jump threading paths.
2938
2939 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2940
2941 PR target/58944
2942 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2943 for saving in cl_target_option.
2944 (ix86_tune_string): Ditto.
2945 (ix86_cmodel): Ditto.
2946 (ix86_abi): Ditto.
2947 (ix86_asm_dialect): Ditto.
2948 (ix86_branch_cost): Ditto.
2949 (ix86_dump_tunes): Ditto.
2950 (ix86_force_align_arg_pointer): Ditto.
2951 (ix86_force_drap): Ditto.
2952 (ix86_incoming_stack_boundary_arg): Ditto.
2953 (ix86_pmode): Ditto.
2954 (ix86_preferred_stack_boundary_arg): Ditto.
2955 (ix86_recip_name): Ditto.
2956 (ix86_regparm): Ditto.
2957 (ix86_section_threshold): Ditto.
2958 (ix86_sse2avx): Ditto.
2959 (ix86_stack_protector_guard): Ditto.
2960 (ix86_stringop_alg): Ditto.
2961 (ix86_tls_dialect): Ditto.
2962 (ix86_tune_ctrl_string): Ditto.
2963 (ix86_tune_memcpy_strategy): Ditto.
2964 (ix86_tune_memset_strategy): Ditto.
2965 (ix86_tune_no_default): Ditto.
2966 (ix86_veclibabi_type): Ditto.
2967 * config/i386/i386.c (function_specific_save): Save the above
2968 variables in gcc_options to cl_target_option.
2969 (function_specific_restore): Do the reverse done in
2970 function_specific_save.
2971 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2972 and ix86_tune_string to use the opts structure.
2973 (ix86_option_override_internal):Change
2974 ix86_incoming_stack_boundary_arg to
2975 opts->x_ix86_incoming_stack_boundary_arg
2976
2977 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2978
2979 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2980 in #ifndef IN_LIBGCC2 / #endif.
2981
2982 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2983
2984 PR tree-optimization/59358
2985 * tree-vrp.c (union_ranges): To check for the partially overlapping
2986 ranges or adjacent ranges, also compare *vr0max with vr1max.
2987
2988 2013-12-02 Sterling Augustine  <saugustine@google.com>
2989
2990 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2991 when there isn't a skeleton die.
2992
2993 2013-12-02 Marek Polacek <polacek@redhat.com>
2994
2995 PR sanitizer/59353
2996 * doc/invoke.texi: Document -fsanitize=return.
2997
2998 2013-12-02 Tobias Burnus <burnus@net-b.de>
2999 Manuel López-Ibáñez <manu@gcc.gnu.org>
3000
3001 PR middle-end/59257
3002 * doc/invoke.texi: Add missing @opindex.
3003 (-fsanitize=): Use @gcctabopt instead of @itemize.
3004
3005 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3006
3007 Fix C++0x memory model for unaligned fields in packed, aligned(4)
3008 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
3009 targets like arm-none-eabi.
3010 * expr.c (expand_assignment): Handle normal fields like bit regions.
3011
3012 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3013
3014 PR target/58115
3015 * function.c (invoke_set_current_function_hook): Call
3016 targetm.set_current_function after setting this_fn_optabs.
3017
3018 2013-12-02 Richard Biener <rguenther@suse.de>
3019
3020 PR tree-optimization/59139
3021 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3022 code in get_val_for.
3023 (get_val_for): Use gcc_checking_asserts.
3024
3025 2013-12-02 Richard Biener <rguenther@suse.de>
3026
3027 PR middle-end/59199
3028 * tree-ssa-operands.c (opf_implicit): Remove.
3029 (opf_address_taken): New flag.
3030 (get_expr_operands): Remove early out, pass down opf_address_taken for
3031 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3032 (get_indirect_ref_operands): Rename to ...
3033 (get_mem_ref_operands): ... this.
3034 (get_asm_expr_operands): Rename to ...
3035 (get_asm_stmt_operands): ... this.
3036
3037 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3038
3039 * ipa-inline.c (check_callers): Add missed pointer de-reference.
3040
3041 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
3042
3043 PR tree-optimization/59356
3044 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3045 offset computation using the precision of the index type.
3046
3047 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
3048
3049 PR target/58785
3050 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3051 when rclass is GENERAL_REGS.
3052
3053 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3054
3055 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3056 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3057
3058 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
3059
3060 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3061 identifier node.
3062
3063 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3064
3065 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3066
3067 2013-11-30 Paulo Matos <pmatos@broadcom.com>
3068 Eric Botcazou <ebotcazou@adacore.com>
3069
3070 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3071 as applied to nonzero_sign_valid when last_set_mode has less precision
3072 than mode.
3073
3074 2013-11-30 Tobias Burnus <burnus@net-b.de>
3075
3076 PR sanitizer/59275
3077 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3078 environment variable and link to a list with flags.
3079 (-fsanitize=thread): Ditto and update link.
3080
3081 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
3082
3083 PR rtl-optimization/59340
3084 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3085
3086 Revert
3087 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3088
3089 * lra.c (lra): Set lra_in_progress before check_rtl call.
3090 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3091 adding clobber regs when LRA is running.
3092
3093 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3094
3095 PR target/59289
3096 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3097
3098 2013-11-29 Richard Biener <rguenther@suse.de>
3099
3100 PR middle-end/59208
3101 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3102 free_stmt_operands, update_stmt_operands): Add struct function
3103 argument.
3104 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3105 function argument from fini_ssa_operands, verify_ssa_operands,
3106 free_stmt_operands and update_stmt_operands everywhere.
3107 * tree-ssanames.h (release_ssa_name_fn): New.
3108 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3109 * tree-ssanames.c (release_ssa_name): Rename to ...
3110 (release_ssa_name_fn): ... this and add struct function argument.
3111 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3112 (update_stmt_fn): New function.
3113 * tree-cfg.c (move_block_to_fn): Adjust.
3114 * tree-if-conv.c (free_bb_predicate): Likewise.
3115 * tree-ssa.c (verify_ssa): Likewise.
3116 (delete_tree_ssa): Likewise.
3117 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3118 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3119 update_stmt_fn instead of update_stmt.
3120
3121 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3122
3123 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3124 for LRA.
3125
3126 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3127
3128 * config/arm/arm.md (store_minmaxsi): Use only when
3129 optimize_function_for_size_p.
3130
3131 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3132 Yury Gribov <y.gribov@samsung.com>
3133
3134 PR sanitizer/59063
3135 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3136 * gcc.c: Using libsanitizer spec instead of explicit libs.
3137
3138 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
3139
3140 Reverted:
3141 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3142 * cgraph.h (varpool_node): Add need_bounds_init field.
3143 * lto-cgraph.c (lto_output_varpool_node): Output
3144 need_bounds_init value.
3145 (input_varpool_node): Read need_bounds_init value.
3146 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3147
3148 Reverted:
3149 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3150 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3151 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3152 (gen_type_die_with_usage): Skip pointer bounds.
3153 (dwarf2out_global_decl): Likewise.
3154
3155 Reverted:
3156 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3157 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3158 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3159 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3160 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3161 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3162 (gimple_call_with_bounds_p): New.
3163 (gimple_call_set_with_bounds): New.
3164 (gimple_call_num_nobnd_args): Remove.
3165 (gimple_call_nobnd_arg): Remove.
3166 * tree.h (CALL_WITH_BOUNDS_P): New.
3167 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3168
3169 Reverted:
3170 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3171 * common.opt (fcheck-pointer-bounds): Move to ...
3172 * c-family/c.opt: ... here.
3173 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3174 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3175 * langhooks.h (lang_hooks): Remove chkp_supported field.
3176 * toplev.c (process_options): Remove chkp_supported check.
3177
3178 Reverted:
3179 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3180 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3181 * tree.h (POINTER_BOUNDS_P): New.
3182 (BOUNDED_TYPE_P): New.
3183 (BOUNDED_P): New.
3184 (pointer_bounds_type_node): New.
3185 * tree.c (build_common_tree_nodes): Initialize
3186 pointer_bounds_type_node.
3187 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3188 (gimple_call_num_nobnd_args): New.
3189 (gimple_call_nobnd_arg): New.
3190 (gimple_return_retbnd): New.
3191 (gimple_return_set_retbnd): New
3192 * gimple.c (gimple_build_return): Increase number of ops
3193 for return statement.
3194 (gimple_call_get_nobnd_arg_index): New.
3195 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3196
3197 Reverted:
3198 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3199 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3200 with "chkp ctor" and "bnd_legacy" attributes.
3201 * gimplify.c (gimplify_init_constructor): Avoid infinite
3202 loop during gimplification of bounds initializer.
3203
3204 Reverted:
3205 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3206 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3207 (handle_bnd_legacy): New.
3208 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3209 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3210 attributes.
3211
3212 Reverted:
3213 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3214 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3215 (BT_FN_PTR_CONST_PTR): New.
3216 (BT_FN_CONST_PTR_CONST_PTR): New.
3217 (BT_FN_PTR_CONST_PTR_SIZE): New.
3218 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3219 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3220 (BT_FN_VOID_CONST_PTR_SIZE): New.
3221 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3222 * chkp-builtins.def: New.
3223 * builtins.def: include chkp-builtins.def.
3224 (DEF_CHKP_BUILTIN): New.
3225 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3226 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3227 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3228 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3229 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3230 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3231 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3232 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3233 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3234 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3235 * common.opt (fcheck-pointer-bounds): New.
3236 * toplev.c (process_options): Check Pointer Bounds Checker is
3237 supported.
3238 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3239
3240 Reverted:
3241 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3242 * target.def (builtin_chkp_function): New.
3243 (chkp_bound_type): New.
3244 (chkp_bound_mode): New.
3245 (fn_abi_va_list_bounds_size): New.
3246 (load_bounds_for_arg): New.
3247 (store_bounds_for_arg): New.
3248 * targhooks.h (default_load_bounds_for_arg): New.
3249 (default_store_bounds_for_arg): New.
3250 (default_fn_abi_va_list_bounds_size): New.
3251 (default_chkp_bound_type): New.
3252 (default_chkp_bound_mode): New.
3253 (default_builtin_chkp_function): New.
3254 * targhooks.c (default_load_bounds_for_arg): New.
3255 (default_store_bounds_for_arg): New.
3256 (default_fn_abi_va_list_bounds_size): New.
3257 (default_chkp_bound_type): New.
3258 (default_chkp_bound_mode); New.
3259 (default_builtin_chkp_function): New.
3260 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3261 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3262 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3263 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3264 (TARGET_CHKP_BOUND_TYPE): New.
3265 (TARGET_CHKP_BOUND_MODE): New.
3266 * doc/tm.texi: Regenerated.
3267 * langhooks.h (lang_hooks): Add chkp_supported field.
3268 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3269 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3270
3271 Reverted:
3272 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3273 * config/i386/constraints.md (B): New.
3274 (Ti): New.
3275 (Tb): New.
3276 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3277 * config/i386/i386-modes.def (BND32): New.
3278 (BND64): New.
3279 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3280 * config/i386/i386.c (isa_opts): Add mmpx.
3281 (regclass_map): Add bound registers.
3282 (dbx_register_map): Likewise.
3283 (dbx64_register_map): Likewise.
3284 (svr4_dbx_register_map): Likewise.
3285 (PTA_MPX): New.
3286 (ix86_option_override_internal): Support MPX ISA.
3287 (ix86_conditional_register_usage): Support bound registers.
3288 (print_reg): Likewise.
3289 (ix86_code_end): Add MPX bnd prefix.
3290 (output_set_got): Likewise.
3291 (ix86_output_call_insn): Likewise.
3292 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3293 (ix86_print_operand_punct_valid_p): Likewise.
3294 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3295 UNSPEC_BNDMK_ADDR.
3296 (ix86_class_likely_spilled_p): Add bound regs support.
3297 (ix86_hard_regno_mode_ok): Likewise.
3298 (x86_order_regs_for_local_alloc): Likewise.
3299 (ix86_bnd_prefixed_insn_p): New.
3300 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3301 (FIXED_REGISTERS): Add bound registers.
3302 (CALL_USED_REGISTERS): Likewise.
3303 (REG_ALLOC_ORDER): Likewise.
3304 (HARD_REGNO_NREGS): Likewise.
3305 (TARGET_MPX): New.
3306 (VALID_BND_REG_MODE): New.
3307 (FIRST_BND_REG): New.
3308 (LAST_BND_REG): New.
3309 (reg_class): Add BND_REGS.
3310 (REG_CLASS_NAMES): Likewise.
3311 (REG_CLASS_CONTENTS): Likewise.
3312 (BND_REGNO_P): New.
3313 (ANY_BND_REG_P): New.
3314 (BNDmode): New.
3315 (HI_REGISTER_NAMES): Add bound registers.
3316 * config/i386/i386.md (UNSPEC_BNDMK): New.
3317 (UNSPEC_BNDMK_ADDR): New.
3318 (UNSPEC_BNDSTX): New.
3319 (UNSPEC_BNDLDX): New.
3320 (UNSPEC_BNDLDX_ADDR): New.
3321 (UNSPEC_BNDCL): New.
3322 (UNSPEC_BNDCU): New.
3323 (UNSPEC_BNDCN): New.
3324 (UNSPEC_MPX_FENCE): New.
3325 (BND0_REG): New.
3326 (BND1_REG): New.
3327 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3328 (length_immediate): Likewise.
3329 (prefix_0f): Likewise.
3330 (memory): Likewise.
3331 (prefix_rep): Check for bnd prefix.
3332 (length_nobnd): New.
3333 (length): Use length_nobnd if specified.
3334 (BND): New.
3335 (bnd_ptr): New.
3336 (BNDCHECK): New.
3337 (bndcheck): New.
3338 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3339 (*jcc_2): Likewise.
3340 (jump): Likewise.
3341 (simple_return_internal): Likewise.
3342 (simple_return_pop_internal): Likewise.
3343 (*indirect_jump): Add MPX bnd prefix.
3344 (*tablejump_1): Likewise.
3345 (simple_return_internal_long): Likewise.
3346 (simple_return_indirect_internal): Likewise.
3347 (<mode>_mk): New.
3348 (*<mode>_mk): New.
3349 (mov<mode>): New.
3350 (*mov<mode>_internal_mpx): New.
3351 (<mode>_<bndcheck>): New.
3352 (*<mode>_<bndcheck>): New.
3353 (<mode>_ldx): New.
3354 (*<mode>_ldx): New.
3355 (<mode>_stx): New.
3356 (*<mode>_stx): New.
3357 * config/i386/predicates.md (lea_address_operand): Rename to...
3358 (address_no_seg_operand): ... this.
3359 (address_mpx_no_base_operand): New.
3360 (address_mpx_no_index_operand): New.
3361 (bnd_mem_operator): New.
3362 * config/i386/i386.opt (mmpx): New.
3363 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3364 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3365
3366 Reverted:
3367 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3368 * mode-classes.def (MODE_POINTER_BOUNDS): New.
3369 * tree.def (POINTER_BOUNDS_TYPE): New.
3370 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3371 (POINTER_BOUNDS_MODE): New.
3372 (make_pointer_bounds_mode): New.
3373 * machmode.h (POINTER_BOUNDS_MODE_P): New.
3374 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3375 (layout_type): Support POINTER_BOUNDS_TYPE.
3376 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3377 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3378 (type_contains_placeholder_1): Likewise.
3379 * tree.h (POINTER_BOUNDS_TYPE_P): New.
3380 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3381 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3382
3383 2013-11-29 Richard Biener <rguenther@suse.de>
3384
3385 PR middle-end/59338
3386 * tree-cfg.c (verify_expr): Restrict bounds verification of
3387 BIT_FIELD_REF arguments to non-aggregate typed base objects.
3388
3389 2013-11-29 Richard Biener <rguenther@suse.de>
3390
3391 PR tree-optimization/59334
3392 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3393 in previous commit.
3394
3395 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3396 Richard Biener <rguenther@suse.de>
3397
3398 PR lto/59326
3399 * omp-low.c (simd_clone_create): Return NULL if for definition
3400 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
3401 before calling cgraph_function_versioning.
3402 (expand_simd_clones): Look for "omp declare simd" attribute first.
3403 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3404 Punt if node->global.inlined_to.
3405 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3406 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3407 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3408
3409 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3410
3411 PR lto/59326
3412 * tree-core.h (enum omp_clause_schedule_kind): Add
3413 OMP_CLAUSE_SCHEDULE_LAST.
3414 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3415 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3416 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3417 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3418 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3419 (DFS_write_tree_body): Handle OMP_CLAUSE.
3420 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3421 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3422 (write_ts_omp_clause_tree_pointers): New function.
3423 (streamer_write_tree_body): Call it for OMP_CLAUSE.
3424 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3425 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3426 (unpack_value_fields): Call it for OMP_CLAUSE.
3427 (streamer_alloc_tree): Handle OMP_CLAUSE.
3428 (lto_input_ts_omp_clause_tree_pointers): New function.
3429 (streamer_read_tree_body): Call it for OMP_CLAUSE.
3430
3431 2013-11-29 Joseph Myers <joseph@codesourcery.com>
3432
3433 * doc/implement-c.texi: Document C11 implementation-defined
3434 behavior. Refer to -ffp-contract=fast for contraction behavior.
3435 * doc/invoke.texi (-std=c99, std=c11): Update description of
3436 completeness.
3437 (-std=gnu99): Don't mention as future default.
3438 (-std=gnu11): Mention as intended future default.
3439 * doc/standards.texi: Update descriptions of C99 and C11 support.
3440 Limit statement about C99 facilities for freestanding
3441 implementations to some platforms only.
3442
3443 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3444
3445 PR middle-end/59327
3446 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3447
3448 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
3449
3450 PR target/57293
3451 * ira.h (ira_setup_eliminable_regset): Remove parameter.
3452 * ira.c (ira_setup_eliminable_regset): Ditto. Add
3453 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3454 Don't call lra_init_elimination.
3455 (ira): Call ira_setup_eliminable_regset without arguments.
3456 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3457 from ira_setup_eliminable_regset call.
3458 * gcse.c (calculate_bb_reg_pressure): Ditto.
3459 * haifa-sched.c (sched_init): Ditto.
3460 * lra.h (lra_init_elimination): Remove the prototype.
3461 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
3462 used_insn_alternative upper.
3463 (lra_eliminate_regs_1): Add one more parameter.
3464 (lra-eliminate): Ditto.
3465 * lra.c (lra_invalidate_insn_data): Set sp_offset.
3466 (setup_sp_offset): New.
3467 (lra_process_new_insns): Call setup_sp_offset.
3468 (lra): Add argument to lra_eliminate calls.
3469 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3470 (get_equiv_with_elimination): New.
3471 (process_addr_reg): Call get_equiv_with_elimination instead of
3472 get_equiv_substitution.
3473 (equiv_address_substitution): Ditto.
3474 (loc_equivalence_change_p): Ditto.
3475 (loc_equivalence_callback, lra_constraints): Ditto.
3476 (curr_insn_transform): Ditto. Print the sp offset
3477 (process_alt_operands): Prevent stack pointer reloads.
3478 (lra_constraints): Remove one argument from lra_eliminate call.
3479 Move it up. Mark used hard regs bfore it. Use
3480 get_equiv_with_elimination instead of get_equiv_substitution.
3481 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3482 assert for param values combination. Use sp offset. Add argument
3483 to lra_eliminate_regs_1 calls.
3484 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3485 (curr_sp_change): New static var.
3486 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3487 Don't prevent elimination to sp if we can calculate its change.
3488 Pass the argument to mark_not_eliminable calls.
3489 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3490 argument to lra_eliminate_regs_1 call.
3491 (update_reg_eliminate): Move calculation of hard regs for spill
3492 lower. Switch off lra_in_progress temporarily to generate regs
3493 involved into elimination.
3494 (lra_init_elimination): Rename to init_elimination. Make it
3495 static. Set up insn sp offset, check the offsets at the end of BBs.
3496 (process_insn_for_elimination): Add parameter. Pass its value to
3497 eliminate_regs_in_insn.
3498 (lra_eliminate): : Add parameter. Pass its value to
3499 process_insn_for_elimination. Add assert for param values
3500 combination. Call init_elimination. Don't update offsets in
3501 equivalence substitutions.
3502 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3503 for created stack slot.
3504 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3505 onto stack slot.
3506
3507 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3508
3509 * config/arm/iterators.md (vrint_conds): New int attribute.
3510 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3511 (smax<mode>3): Likewise.
3512 (smin<mode>3): Likewise.
3513
3514 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3515
3516 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3517 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3518 * tree-ssanames.h (set_range_info): Add range_type argument.
3519 (duplicate_ssa_name_range_info): Likewise.
3520 * tree-ssanames.c (set_range_info): Take the range type as argument
3521 and store it in SSA_NAME_ANTI_RANGE_P.
3522 (duplicate_ssa_name_range_info): Likewise.
3523 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3524 (set_nonzero_bits): Update call to set_range_info.
3525 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3526 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3527 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3528 (vrp_finalize): Likewise, passing anti-ranges directly.
3529
3530 2013-11-28 Richard Biener <rguenther@suse.de>
3531
3532 PR tree-optimization/59330
3533 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3534 and fix delayed marking of free calls not necessary.
3535
3536 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3537
3538 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3539 is_gimple_reg_type.
3540 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3541
3542 2013-11-28 Terry Guo <terry.guo@arm.com>
3543
3544 * config/arm/arm.c (v7m_extra_costs): New table.
3545 (arm_v7m_tune): Use it.
3546
3547 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3548
3549 * config/sol2.h (TIME_LIBRARY): Define.
3550
3551 2013-11-28 Richard Biener <rguenther@suse.de>
3552
3553 PR lto/59323
3554 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3555 CONST_DECLs in function context are not indexable.
3556
3557 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3558
3559 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3560 not optimized for size.
3561
3562 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3563
3564 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3565 fields.
3566 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3567 data->asan_base as base for vars and update asan_alignb.
3568 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3569 Pass them to asan_emit_stack_protection.
3570 * asan.c (asan_detect_stack_use_after_return): New variable.
3571 (asan_emit_stack_protection): Add pbase and alignb arguments.
3572 Implement use after return sanitization.
3573 * asan.h (asan_emit_stack_protection): Adjust prototype.
3574 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3575
3576 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3577
3578 * common.opt: Introduced a new option -fsimd-cost-model.
3579 * doc/invoke.texi: Introduced a new openmp-simd warning and
3580 a new -fsimd-cost-model option.
3581 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3582 to rely on the particular loop info.
3583 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3584 (vect_peeling_hash_choose_best_peeling): Ditto.
3585 (vect_enhance_data_refs_alignment): Ditto.
3586 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3587 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3588 plus added openmp-simd warining.
3589
3590 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3591
3592 PR rtl-optimization/59311
3593 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3594 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3595
3596 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3597
3598 * var-tracking.c (track_expr_p): Do not track declarations for parts
3599 of tracked parameters.
3600 (add_stores): Do not track values for tracked parameters passed in
3601 multiple locations.
3602 (vt_get_decl_and_offset): Handle PARALLEL.
3603 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3604
3605 2013-11-27 Jeff Law <law@redhat.com>
3606
3607 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3608 clobber the loop structure thread_block was unsuccessful. If
3609 thread_block was unsuccessful, cleanup appropriately.
3610
3611 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3612
3613 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3614 (score_char_to_class): Likewise.
3615
3616 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3617
3618 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3619 the overflow bit set.
3620
3621 2013-11-27 Richard Biener <rguenther@suse.de>
3622
3623 PR middle-end/58723
3624 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3625 for internal calls.
3626 (rebuild_cgraph_edges): Likewise.
3627 * ipa-inline-analysis.c (estimate_function_body_sizes):
3628 Skip internal calls.
3629 * tree-inline.c (estimate_num_insns): Estimate size of internal
3630 calls as 0.
3631 (gimple_expand_calls_inline): Do not try inline-expanding
3632 internal calls.
3633 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3634 force_vect and simduid.
3635 (input_struct_function_base): Stream has_force_vect_loops
3636 and has_simduid_loops.
3637 (input_function): Adjust.
3638 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3639 force_vect and simduid.
3640 (output_struct_function_base): Stream has_force_vect_loops
3641 and has_simduid_loops.
3642
3643 2013-11-27 Kai Tietz <ktietz@redhat.com>
3644
3645 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3646 pointer cast.
3647
3648 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3649
3650 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3651 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3652
3653 2013-11-27 Marek Polacek <polacek@redhat.com>
3654
3655 PR sanitizer/59306
3656 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3657 instead of walk_gimple_op.
3658 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3659
3660 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3661 Jakub Jelinek <jakub@redhat.com>
3662
3663 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3664 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3665 (struct cgraph_node): Add simdclone and simd_clones fields.
3666 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3667 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3668 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3669 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3670 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3671 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3672 * doc/tm.texi: Regenerated.
3673 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3674 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3675 attribute is present.
3676 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3677 (simd_clone_vector_of_formal_parm_types): New function.
3678 (simd_clone_struct_alloc, simd_clone_struct_copy,
3679 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3680 simd_clone_compute_base_data_type, simd_clone_mangle,
3681 simd_clone_create, simd_clone_adjust_return_type,
3682 create_tmp_simd_array, simd_clone_adjust_argument_types,
3683 simd_clone_init_simd_arrays): New functions.
3684 (struct modify_stmt_info): New type.
3685 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3686 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3687 functions.
3688 (pass_data_omp_simd_clone): New variable.
3689 (pass_omp_simd_clone): New class.
3690 (make_pass_omp_simd_clone): New function.
3691 * passes.def (pass_omp_simd_clone): New.
3692 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3693 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3694 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3695 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3696 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3697 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3698 * tree-vect-data-refs.c: Include cgraph.h.
3699 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3700 and find_data_references_in_bb, if find_data_references_in_stmt
3701 fails, still allow calls to #pragma omp declare simd functions
3702 in #pragma omp simd loops unless they contain data references among
3703 the call arguments or in lhs.
3704 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3705 calls with no lhs.
3706 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3707 without lhs.
3708 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3709 call_simd_clone_vec_info_type.
3710 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3711 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3712 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3713 tree-scalar-evolution.h and cgraph.h.
3714 (vectorizable_call): Handle calls without lhs. Assert
3715 !stmt_can_throw_internal instead of failing for it. Don't update
3716 EH stuff.
3717 (struct simd_call_arg_info): New.
3718 (vectorizable_simd_clone_call): New function.
3719 (vect_transform_stmt): Call it.
3720 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3721 calls without lhs.
3722 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3723 if cgraph_function_with_gimple_body_p is true.
3724
3725 2013-11-27 Tom de Vries <tom@codesourcery.com>
3726 Marc Glisse <marc.glisse@inria.fr>
3727
3728 PR middle-end/59037
3729 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3730 BIT_FIELD_REF.
3731 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3732 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3733 out-of-bounds.
3734
3735 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3736
3737 PR middle-end/59138
3738 * expr.c (emit_group_store): Don't write past the end of the structure.
3739 (store_bit_field): Fix formatting.
3740
3741 2013-11-27 Richard Biener <rguenther@suse.de>
3742
3743 PR tree-optimization/59288
3744 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3745 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3746
3747 2013-11-27 Marek Polacek <polacek@redhat.com>
3748
3749 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3750 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3751 rather than ADDR_EXPRs.
3752
3753 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3754
3755 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3756
3757 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3758
3759 * gengtype.c (struct seen_tag): New.
3760 (already_seen_tag): New.
3761 (mark_tag_as_seen): New.
3762 (walk_subclasses): Support having multiple subclasses using the
3763 same tag by tracking which tags have already been seen, and using
3764 this to avoid adding duplicate cases to the "switch" statement.
3765 The call to already_seen_tag introduces an O(N^2) when running
3766 gengtype on N, the number of tags, due to the repeated linear
3767 search, but currently max(N) is relatively small (the number of
3768 GSS codes, which is 26).
3769 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3770 recursion.
3771
3772 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3773 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3774 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3775 GIMPLE_OMP_RETURN happens to share the data layout of
3776 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3777 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3778 underlying GSS value from GSS_OMP_PARALLEL to
3779 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3780 not directly related; they merely share in-memory layout.
3781 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3782 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3783
3784 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3785 Rename to...
3786 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3787 ...these.
3788 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3789 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3790 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3791 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3792 ...these.
3793
3794 * gimple.h (gimple_statement_resx): New subclass of
3795 gimple_statement_eh_ctrl, with the invariant that
3796 stmt->code == GIMPLE_RESX.
3797 (gimple_statement_eh_dispatch): New subclass of
3798 gimple_statement_eh_ctrl, with the invariant that
3799 stmt->code == GIMPLE_EH_DISPATH.
3800
3801 (gimple_statement_omp_parallel): The existing class expressed
3802 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3803 are not all related, so it makes more sense for this class to
3804 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3805 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3806 rename the existing gimple_statement_omp_parallel class to...
3807 (gimple_statement_omp_parallel_layout): ...this, expressing
3808 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3809 (gimple_statement_omp_taskreg): New subclass of
3810 gimple_statement_omp_parallel_layout, expressing the invariant
3811 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3812 as used by the various gimple_omp_taskreg_ accessors.
3813 (gimple_statement_omp_parallel): Reintroduce this class, this time
3814 as a subclass of gimple_statement_omp_taskreg to express the
3815 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3816 (gimple_statement_omp_target) New class, subclassing
3817 gimple_statement_omp_parallel_layout, to express the invariant
3818 stmt->code == GIMPLE_OMP_TARGET.
3819 (gimple_statement_omp_task): Update to inherit from
3820 gimple_statement_omp_taskreg rather than
3821 gimple_statement_omp_parallel.
3822
3823 (gimple_statement_omp_single): Rename to...
3824 (gimple_statement_omp_single_layout): ...this, expressing the
3825 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3826 (gimple_statement_omp_single): ...and reintroduce this name as
3827 a subclass of gimple_statement_omp_single_layout, expressing
3828 the invariant that code == GIMPLE_OMP_SINGLE.
3829 (gimple_statement_omp_teams): New class, subclassing
3830 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3831
3832 (gimple_statement_omp_atomic_store): Rename to...
3833 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3834 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3835 (gimple_statement_omp_atomic_store): ...and reintroduce this
3836 name as a subclass of gimple_statement_omp_atomic_store_layout
3837 with code == GIMPLE_OMP_ATOMIC_STORE.
3838 (gimple_statement_omp_return): New class, subclassing
3839 gimple_statement_omp_atomic_store_layout for the code
3840 GIMPLE_OMP_RETURN.
3841
3842 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3843 (is_a_helper <gimple_statement_resx>::test): New.
3844 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3845 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3846 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3847 (is_a_helper <gimple_statement_omp_return>::test): New.
3848 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3849 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3850 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3851 GIMPLE_OMP_TARGET.
3852 (is_a_helper <gimple_statement_omp_target>::test): New.
3853 (is_a_helper <gimple_statement_omp_single>::test): Only check
3854 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3855 (is_a_helper <gimple_statement_omp_teams>::test): New.
3856
3857 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3858 (is_a_helper <const gimple_statement_resx>::test): New.
3859 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3860 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3861 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3862 (is_a_helper <const gimple_statement_omp_return>::test): New.
3863 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3864 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3865 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3866 GIMPLE_OMP_TARGET.
3867 (is_a_helper <const gimple_statement_omp_target>::test): New.
3868 (is_a_helper <const gimple_statement_omp_single>::test): Only
3869 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3870 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3871
3872 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3873 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3874 gimple_statement_omp_atomic_store with downcasts to
3875 gimple_statement_omp_return, thus requiring that the code be
3876 GIMPLE_OMP_RETURN.
3877 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3878 downcasts to gimple_statement_eh_ctrl with downcasts to
3879 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3880 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3881 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3882 downcasts to gimple_statement_eh_dispatch, thus requiring that
3883 the code be GIMPLE_EH_DISPATCH.
3884 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3885 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3886 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3887 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3888 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3889 gimple_statement_omp_parallel with downcasts to
3890 gimple_statement_omp_taskreg, thus requiring that the code be
3891 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3892 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3893 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3894 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3895 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3896 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3897 gimple_statement_omp_parallel with downcasts to
3898 gimple_statement_omp_target, thus requiring that the code be
3899 GIMPLE_OMP_TARGET.
3900 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3901 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3902 gimple_statement_omp_single with downcasts to
3903 gimple_statement_omp_teams, thus requiring that the code be
3904 GIMPLE_OMP_TEAMS.
3905
3906 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3907 gimple_statement_resx.
3908 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3909 gimple_statement_eh_dispatch.
3910
3911 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3912
3913 PR tree-optimization/59014
3914 * tree-vrp.c (register_edge_assert_for_1): Don't look
3915 through conversions from non-integral types or through
3916 narrowing conversions.
3917
3918 PR target/59229
3919 * config/i386/i386.c (device_alg): Fix up formatting.
3920 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3921 similarly to count && count < epilogue_size_needed. Fix up
3922 comment typo.
3923 * builtins.c (determine_block_size): Fix comment typo.
3924
3925 PR sanitizer/59258
3926 * ubsan.c (ubsan_source_location): Don't add any location
3927 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3928 (ubsan_create_data): Strip block info from LOC.
3929
3930 PR middle-end/59273
3931 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3932 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3933
3934 PR rtl-optimization/59166
3935 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3936 DF_REF_LOC in validate_change call.
3937 (split_live_ranges_for_shrink_wrap): Likewise.
3938
3939 PR middle-end/59150
3940 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3941 of references to constant size types in simd loops, defer emitting
3942 initializer for the new_var, emit it later on only if not using
3943 SIMD arrays for it.
3944
3945 PR middle-end/59152
3946 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3947 for the inner loop if collapse_bb is non-NULL.
3948 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3949
3950 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3951
3952 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3953 a constant immediate before force_reg.
3954
3955 2013-11-26 Richard Biener <rguenther@suse.de>
3956
3957 PR tree-optimization/59245
3958 * tree-vrp.c (set_value_range): Assert that we don't have
3959 overflowed constants (but our infinities).
3960 (set_value_range_to_value): Drop all overflow flags.
3961 (vrp_visit_phi_node): Likewise.
3962 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3963 to set a constant range.
3964
3965 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3966
3967 PR target/59290
3968 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3969 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3970 for zero_extend case.
3971
3972 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3973
3974 PR bootstrap/55552
3975 * configure.ac (install_gold_as_default): New. Set to yes for
3976 --disable-ld or --enable-gold=default.
3977 (gcc_cv_ld_gold_srcdir): New.
3978 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3979 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3980 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3981 * configure: Regenerated.
3982
3983 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3984 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3985 (original) [collect-ld && -fuse-ld=bfd]: Set to
3986 $ORIGINAL_LD_BFD_FOR_TARGET.
3987 (original) [collect-ld && -fuse-ld=gold]: Set to
3988 $ORIGINAL_LD_GOLD_FOR_TARGET.
3989 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3990 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3991
3992 2013-11-26 Terry Guo <terry.guo@arm.com>
3993
3994 * config/arm/arm.c (require_pic_register): Handle high pic base
3995 register for thumb-1.
3996 (arm_load_pic_register): Also initialize high pic base register.
3997 * doc/invoke.texi: Update documentation for option -mpic-register.
3998
3999 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
4000
4001 PR target/58314
4002 PR target/50751
4003 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
4004 Prefix function names with 'sh_'. Make them non-static.
4005 * config/sh/sh-protos.h (sh_disp_addr_displacement,
4006 sh_max_mov_insn_displacement): Add declarations.
4007 * config/sh/constraints.md (Q): Reject QImode.
4008 (Sdd): Use match_code "mem".
4009 (Snd): Fix erroneous matching of non-memory operands.
4010 * config/sh/predicates.md (short_displacement_mem_operand): New
4011 predicate.
4012 (general_movsrc_operand): Disallow PC relative QImode loads.
4013 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
4014 (*movqi, *movhi): Merge both insns into...
4015 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
4016 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
4017 on the operand types.
4018
4019 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
4020
4021 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4022 Remove unused variable save_config.
4023 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4024 assert.
4025
4026 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4027
4028 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4029 using other intrinsics.
4030 (vtbx3_<psu>8): Likewise.
4031
4032 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4033
4034 * config/aarch64/aarch64-builtins.c
4035 (aarch64_types_bsl_p_qualifiers): New.
4036 (aarch64_types_bsl_s_qualifiers): Likewise.
4037 (aarch64_types_bsl_u_qualifiers): Likewise.
4038 (TYPES_BSL_P): Likewise.
4039 (TYPES_BSL_S): Likewise.
4040 (TYPES_BSL_U): Likewise.
4041 (BUILTIN_VALLDIF): Likewise.
4042 (BUILTIN_VDQQH): Likewise.
4043 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4044 * config/aarch64/aarch64-simd.md
4045 (aarch64_simd_bsl<mode>_internal): Handle more modes.
4046 (aarch64_simd_bsl<mode>): Likewise.
4047 * config/aarch64/arm_neon.h
4048 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4049 * config/aarch64/iterators.md (VALLDIF): New.
4050 (Vbtype): Handle more modes.
4051
4052 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4053
4054 * config/aarch64/aarch64-builtins.c
4055 (aarch64_type_qualifiers): Add qualifier_poly.
4056 (aarch64_build_scalar_type): Also build Poly types.
4057 (aarch64_build_vector_type): Likewise.
4058 (aarch64_build_type): Likewise.
4059 (aarch64_build_signed_type): New.
4060 (aarch64_build_unsigned_type): Likewise.
4061 (aarch64_build_poly_type): Likewise.
4062 (aarch64_init_simd_builtins): Also handle Poly types.
4063
4064 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4065
4066 * config/aarch64/aarch64-builtins.c
4067 (VAR1): Use new naming scheme for aarch64_builtins.
4068 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4069
4070 2013-11-26 Richard Biener <rguenther@suse.de>
4071
4072 PR tree-optimization/59287
4073 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4074 Remove no longer necessary special-casing of union accesses.
4075
4076 2013-11-26 Richard Biener <rguenther@suse.de>
4077
4078 * pretty-print.c (output_buffer::~output_buffer): Really
4079 free the obstacks.
4080
4081 2013-11-25 Jeff Law <law@redhat.com>
4082
4083 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4084 invalidate loop information.
4085
4086 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4087
4088 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4089
4090 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4091
4092 PR target/53976
4093 PR target/59243
4094 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4095 comments.
4096 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4097 previously visited basic blocks before recursing instead of only one
4098 basic block.
4099
4100 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4101
4102 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4103 * config/aarch64/aarch64-cores.def (cortex-a53):
4104 Use cortexa53 tuning struct.
4105
4106 2013-11-25 Andrew Macleod <amacleod@redhat.com>
4107
4108 PR bootstrap/59260
4109 * fold-const.c: Include hash-table.h.
4110
4111 2013-11-25 Marek Polacek <polacek@redhat.com>
4112
4113 PR sanitizer/59258
4114 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4115
4116 2013-11-25 Richard Biener <rguenther@suse.de>
4117
4118 * tree-dfa.c: Remove unused convert.h include.
4119
4120 2013-11-25 Terry Guo <terry.guo@arm.com>
4121
4122 * doc/invoke.texi (-mslow-flash-data): Document new option.
4123 * config/arm/arm.opt (mslow-flash-data): New option.
4124 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4125 Declare it.
4126 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4127 are disabled.
4128 (arm_disable_literal_pool): Declare it.
4129 * config/arm/arm.c (arm_disable_literal_pool): New variable.
4130 (arm_option_override): Handle new option.
4131 (thumb2_legitimate_address_p): Don't allow symbol references when
4132 literal pools are disabled.
4133 (arm_max_const_double_inline_cost): New function.
4134 * config/arm/arm.md (types.md): Include it before ...
4135 (use_literal_pool): New attribute.
4136 (enabled): Use new attribute.
4137 (split pattern): Replace symbol+offset with MOVW/MOVT.
4138
4139 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4140
4141 PR bootstrap/59279
4142 Revert previous commit.
4143
4144 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4145
4146 * jump.c (reset_insn_reg_label_operand_notes): New function,
4147 split out from ...
4148 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
4149 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4150 split out from ...
4151 (delete_dead_jumptables): ... here. Handle cfglayout mode.
4152 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4153 expensive CFG cleanup is called for.
4154 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4155 (cfg_layout_finalize): Delete dead jump tables before re-building
4156 the insns chain.
4157 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4158 basic blocks, not before.
4159 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4160
4161 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4162 insns chain of a scheduling extended basic block, they cannot appear
4163 there in cfglayout mode.
4164
4165 2013-11-24 Tobias Burnus <burnus@net-b.de>
4166
4167 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4168
4169 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4170
4171 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4172 for little endian.
4173
4174 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
4175
4176 * graphite-sese-to-poly.c: Don't include extra "expr.h".
4177
4178 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4179
4180 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4181
4182 2013-11-23 David Edelson <dje.gcc@gmail.com>
4183 Andrew Dixie <andrewd@gentrack.com>
4184
4185 PR target/33704
4186 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4187 (COLLECT_SHARED_FINI_FUNC): Define.
4188
4189 * collect2.c (aix_shared_initname): Declare.
4190 (aix_shared_fininame): Declare.
4191 (symkind): Add SYM_AIXI and SYM_AIXD.
4192 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4193 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4194 (aixlazy_flag): Parse.
4195 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4196 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4197
4198 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
4199
4200 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4201 (rs6000_xcoff_select_section): Place decls with stricter alignment
4202 into named sections.
4203 (rs6000_xcoff_unique_section): Allow unique sections for
4204 uninitialized data with strict alignment.
4205
4206 2013-11-23 Jakub Jelinek <jakub@redhat.com>
4207
4208 PR tree-optimization/59154
4209 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4210 rhs1 of a cast and new_op is invariant, fold_convert it.
4211 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4212 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4213
4214 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
4215
4216 PR target/56788
4217 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4218 Declare as MULTI_ARG_1_SF instruction.
4219 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4220 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4221 from *xop_vmfrcz_<mode>.
4222 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4223 to merge scalar result with __A.
4224 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4225 result with __A.
4226
4227 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4228
4229 * gimplify.h (recalculate_side_effects): Delete.
4230 * gimplify.c (recalculate_side_effects): Make static and add comment.
4231
4232 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4233
4234 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4235 for the destination of a define_peephole2. Likewise register_operand
4236 rather than arith_reg_operand. Remove constraints from
4237 define_peephole2s.
4238
4239 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4240
4241 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4242 Delete.
4243 (mn10300_store_multiple_operation_p): Declare.
4244 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4245 Rename to...
4246 (mn10300_store_multiple_operation_p): ...this and remove mode
4247 argument.
4248 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4249 Define.
4250
4251 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4252
4253 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4254 (pop_multiple_operation): Delete.
4255 (analyze_push_multiple_operation): Declare.
4256 (analyze_pop_multiple_operation): Declare.
4257 * config/bfin/bfin.c (push_multiple_operation): Rename to...
4258 (analyze_push_multiple_operation): ...this and remove mode argument.
4259 (pop_multiple_operation): Rename to...
4260 (analyze_pop_multiple_operation): ...this and remove mode argument.
4261 * config/bfin/predicates.md (push_multiple_operation): Define.
4262 (pop_multiple_operation): Likewise.
4263
4264 2013-11-23 Alan Modra <amodra@gmail.com>
4265
4266 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4267
4268 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4269
4270 PR sanitizer/59061
4271 * common.opt (static-liblsan): Add.
4272 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4273 Define.
4274 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
4275 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4276 SANITIZE_RETURN.
4277 * opts.c (common_handle_option): Handle -fsanitize=leak.
4278 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4279 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4280 (LIBUBSAN_EARLY_SPEC): Remove.
4281 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4282 (SANITIZER_SPEC): Add -fsanitize=leak handling.
4283 (sanitize_spec_function): Handle %sanitize(leak).
4284 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4285
4286 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
4287 Jakub Jelinek <jakub@redhat.com>
4288
4289 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4290 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4291 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
4292 (ipa_modify_formal_parameters): Adjust caller. Remove
4293 synth_parm_prefix argument. Use operator enum instead of bit fields.
4294 Add assert for properly handling vector of references. Handle
4295 creating brand new parameters.
4296 (ipa_modify_call_arguments): Use operator enum instead of bit
4297 fields.
4298 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
4299 used.
4300 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4301 New functions.
4302 (ipa_dump_param_adjustments): Rename reduction to new_decl.
4303 Use operator enum instead of bit fields.
4304 * ipa-prop.h (enum ipa_parm_op): New.
4305 (struct ipa_parm_adjustment): New field op. Rename reduction
4306 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4307 and copy_param.
4308 (ipa_modify_formal_parameters): Remove last argument.
4309 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4310 ipa_get_adjustment_candidate): New prototypes.
4311 * tree-sra.c (turn_representatives_into_adjustments): Use operator
4312 enum. Set arg_prefix.
4313 (get_adjustment_for_base): Use operator enum.
4314 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4315 ipa-prop.c.
4316 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4317 (ipa_sra_modify_function_body): Same. No longer static.
4318 (sra_ipa_reset_debug_stmts): Use operator enum.
4319 (modify_function): Do not pass prefix argument.
4320
4321 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4322
4323 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4324 (ubsan_pass): Ignore clobber stmts.
4325
4326 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4327 * opts.c (common_handle_option): Add -fsanitize=return.
4328 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4329 or it into SANITIZE_UNDEFINED.
4330
4331 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4332 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4333 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4334 Don't instrument accesses to VAR_DECLs which are known to fit
4335 into their bounds and the vars are known to have shadow bytes
4336 indicating allowed access.
4337 (asan_dynamic_init_call): New function.
4338 (asan_add_global): If vnode->dynamically_initialized,
4339 set __has_dynamic_init to 1 instead of 0.
4340 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4341 * asan.h (asan_dynamic_init_call): New prototype.
4342 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4343
4344 2013-11-22 Martin Jambor <mjambor@suse.cz>
4345
4346 PR rtl-optimization/10474
4347 * ira.c (interesting_dest_for_shprep_1): New function.
4348 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4349 also check parallels.
4350
4351 2013-11-22 Jeff Law <law@redhat.com>
4352
4353 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4354 NULL for RHS, which we used to invalidate equivalences.
4355 (record_temporary_equivalences_from_phis): New bitmap arguments
4356 and a boolean indicating if we have passed a backedge. If we
4357 have passed a backedge, then set the appropriate bit in the
4358 bitmaps for the SRC & DEST of PHIs creating equivalences.
4359 (invalidate_equivalences, dummy_simplify): New functions.
4360 (cond_arg_set_in_b): Remove.
4361 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4362 arguments and a boolean indicating if we have passed a backedge.
4363 If we have passed a backedge, then perform invalidations as needed.
4364 (thread_around_empty_blocks): If we have seen a backedge, then
4365 use the dummy simplify routine.
4366 (thread_through_normal_block): Likewise. Pass bitmaps and
4367 backedge status to children. Do not pessimize so much when
4368 traversing backedges in the CFG.
4369 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4370 If we have seen a backedge, then use the dummy simplify routine.
4371 Do not pessimize so much when traversing backedges.
4372
4373 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
4374
4375 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4376 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4377
4378 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
4379
4380 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4381 PTA_PCLMUL and PTA_RDRND for Silvermont.
4382 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4383 for Silvermont.
4384
4385 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4386
4387 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4388
4389 * hooks.h (hook_uint_mode_0): Add Prototype.
4390 * hooks.c (hook_uint_mode_0): New default function.
4391 * target.def (atomic_align_for_mode): New target hook.
4392 * tree.c (build_atomic_base): Add alignment override parameter.
4393 (build_common_tree_nodes): Use atomic alignment override.
4394 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4395 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4396
4397 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4398
4399 * gimple.h: Remove all includes.
4400 (recalculate_side_effects): Move prototype to gimplify.h.
4401 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4402 * gengtype.c (open_base_files): Add gimple.h include list.
4403 * gimplify.h (recalculate_side_effects): Relocate prototype here.
4404 * gimple.c: Adjust include list.
4405 (recalculate_side_effects): Move to gimplify.c.
4406 * gimplify.c: Adjust include list.
4407 (recalculate_side_effects): Relocate from gimple.c.
4408 * alias.c: Add required include files removed from gimple.h.
4409 * asan.c: Likewise.
4410 * builtins.c: Likewise.
4411 * calls.c: Likewise.
4412 * cfgexpand.c: Likewise.
4413 * cfgloop.c: Likewise.
4414 * cfgloopmanip.c: Likewise.
4415 * cgraphbuild.c: Likewise.
4416 * cgraph.c: Likewise.
4417 * cgraphclones.c: Likewise.
4418 * cgraphunit.c: Likewise.
4419 * cilk-common.c: Likewise.
4420 * data-streamer.c: Likewise.
4421 * data-streamer-in.c: Likewise.
4422 * data-streamer-out.c: Likewise.
4423 * dse.c: Likewise.
4424 * dwarf2out.c: Likewise.
4425 * emit-rtl.c: Likewise.
4426 * except.c: Likewise.
4427 * expr.c: Likewise.
4428 * fold-const.c: Likewise.
4429 * function.c: Likewise.
4430 * gimple-builder.c: Likewise.
4431 * gimple-expr.c: Likewise.
4432 * gimple-fold.c: Likewise.
4433 * gimple-iterator.c: Likewise.
4434 * gimple-low.c: Likewise.
4435 * gimple-pretty-print.c: Likewise.
4436 * gimple-ssa-isolate-paths.c: Likewise.
4437 * gimple-ssa-strength-reduction.c: Likewise.
4438 * gimple-streamer-in.c: Likewise.
4439 * gimple-streamer-out.c: Likewise.
4440 * gimple-walk.c: Likewise.
4441 * gimplify-me.c: Likewise.
4442 * graphite-blocking.c: Likewise.
4443 * graphite.c: Likewise.
4444 * graphite-clast-to-gimple.c: Likewise.
4445 * graphite-dependences.c: Likewise.
4446 * graphite-interchange.c: Likewise.
4447 * graphite-optimize-isl.c: Likewise.
4448 * graphite-poly.c: Likewise.
4449 * graphite-scop-detection.c: Likewise.
4450 * graphite-sese-to-poly.c: Likewise.
4451 * internal-fn.c: Likewise.
4452 * ipa.c: Likewise.
4453 * ipa-cp.c: Likewise.
4454 * ipa-devirt.c: Likewise.
4455 * ipa-inline-analysis.c: Likewise.
4456 * ipa-inline.c: Likewise.
4457 * ipa-profile.c: Likewise.
4458 * ipa-prop.c: Likewise.
4459 * ipa-pure-const.c: Likewise.
4460 * ipa-reference.c: Likewise.
4461 * ipa-split.c: Likewise.
4462 * ipa-utils.c: Likewise.
4463 * langhooks.c: Likewise.
4464 * lto-cgraph.c: Likewise.
4465 * lto-compress.c: Likewise.
4466 * lto-opts.c: Likewise.
4467 * lto-section-in.c: Likewise.
4468 * lto-section-out.c: Likewise.
4469 * lto-streamer.c: Likewise.
4470 * lto-streamer-in.c: Likewise.
4471 * lto-streamer-out.c: Likewise.
4472 * omp-low.c: Likewise.
4473 * opts-global.c: Likewise.
4474 * passes.c: Likewise.
4475 * predict.c: Likewise.
4476 * profile.c: Likewise.
4477 * sese.c: Likewise.
4478 * stmt.c: Likewise.
4479 * stor-layout.c: Likewise.
4480 * symtab.c: Likewise.
4481 * targhooks.c: Likewise.
4482 * toplev.c: Likewise.
4483 * tracer.c: Likewise.
4484 * trans-mem.c: Likewise.
4485 * tree-affine.c: Likewise.
4486 * tree.c: Likewise.
4487 * tree-call-cdce.c: Likewise.
4488 * tree-cfg.c: Likewise.
4489 * tree-cfgcleanup.c: Likewise.
4490 * tree-chrec.c: Likewise.
4491 * tree-complex.c: Likewise.
4492 * tree-data-ref.c: Likewise.
4493 * tree-dfa.c: Likewise.
4494 * tree-eh.c: Likewise.
4495 * tree-emutls.c: Likewise.
4496 * tree-if-conv.c: Likewise.
4497 * tree-inline.c: Likewise.
4498 * tree-into-ssa.c: Likewise.
4499 * tree-loop-distribution.c: Likewise.
4500 * tree-nested.c: Likewise.
4501 * tree-nrv.c: Likewise.
4502 * tree-object-size.c: Likewise.
4503 * tree-outof-ssa.c: Likewise.
4504 * tree-parloops.c: Likewise.
4505 * tree-phinodes.c: Likewise.
4506 * tree-predcom.c: Likewise.
4507 * tree-pretty-print.c: Likewise.
4508 * tree-profile.c: Likewise.
4509 * tree-scalar-evolution.c: Likewise.
4510 * tree-sra.c: Likewise.
4511 * tree-ssa-address.c: Likewise.
4512 * tree-ssa-alias.c: Likewise.
4513 * tree-ssa.c: Likewise.
4514 * tree-ssa-ccp.c: Likewise.
4515 * tree-ssa-coalesce.c: Likewise.
4516 * tree-ssa-copy.c: Likewise.
4517 * tree-ssa-copyrename.c: Likewise.
4518 * tree-ssa-dce.c: Likewise.
4519 * tree-ssa-dom.c: Likewise.
4520 * tree-ssa-dse.c: Likewise.
4521 * tree-ssa-forwprop.c: Likewise.
4522 * tree-ssa-ifcombine.c: Likewise.
4523 * tree-ssa-live.c: Likewise.
4524 * tree-ssa-loop.c: Likewise.
4525 * tree-ssa-loop-ch.c: Likewise.
4526 * tree-ssa-loop-im.c: Likewise.
4527 * tree-ssa-loop-ivcanon.c: Likewise.
4528 * tree-ssa-loop-ivopts.c: Likewise.
4529 * tree-ssa-loop-manip.c: Likewise.
4530 * tree-ssa-loop-niter.c: Likewise.
4531 * tree-ssa-loop-prefetch.c: Likewise.
4532 * tree-ssa-loop-unswitch.c: Likewise.
4533 * tree-ssa-math-opts.c: Likewise.
4534 * tree-ssanames.c: Likewise.
4535 * tree-ssa-operands.c: Likewise.
4536 * tree-ssa-phiopt.c: Likewise.
4537 * tree-ssa-phiprop.c: Likewise.
4538 * tree-ssa-pre.c: Likewise.
4539 * tree-ssa-propagate.c: Likewise.
4540 * tree-ssa-reassoc.c: Likewise.
4541 * tree-ssa-sccvn.c: Likewise.
4542 * tree-ssa-sink.c: Likewise.
4543 * tree-ssa-strlen.c: Likewise.
4544 * tree-ssa-structalias.c: Likewise.
4545 * tree-ssa-tail-merge.c: Likewise.
4546 * tree-ssa-ter.c: Likewise.
4547 * tree-ssa-threadedge.c: Likewise.
4548 * tree-ssa-threadupdate.c: Likewise.
4549 * tree-ssa-uncprop.c: Likewise.
4550 * tree-ssa-uninit.c: Likewise.
4551 * tree-stdarg.c: Likewise.
4552 * tree-streamer.c: Likewise.
4553 * tree-streamer-in.c: Likewise.
4554 * tree-streamer-out.c: Likewise.
4555 * tree-switch-conversion.c: Likewise.
4556 * tree-tailcall.c: Likewise.
4557 * tree-vect-data-refs.c: Likewise.
4558 * tree-vect-generic.c: Likewise.
4559 * tree-vect-loop.c: Likewise.
4560 * tree-vect-loop-manip.c: Likewise.
4561 * tree-vectorizer.c: Likewise.
4562 * tree-vect-patterns.c: Likewise.
4563 * tree-vect-slp.c: Likewise.
4564 * tree-vect-stmts.c: Likewise.
4565 * tree-vrp.c: Likewise.
4566 * tsan.c: Likewise.
4567 * ubsan.c: Likewise.
4568 * value-prof.c: Likewise.
4569 * varpool.c: Likewise.
4570 * var-tracking.c: Likewise.
4571 * vtable-verify.c: Likewise.
4572 * config/darwin.c: Likewise.
4573 * config/aarch64/aarch64-builtins.c: Likewise.
4574 * config/aarch64/aarch64.c: Likewise.
4575 * config/alpha/alpha.c: Likewise.
4576 * config/i386/i386.c: Likewise.
4577 * config/i386/winnt.c: Likewise.
4578 * config/ia64/ia64.c: Likewise.
4579 * config/m32c/m32c.c: Likewise.
4580 * config/mep/mep.c: Likewise.
4581 * config/mips/mips.c: Likewise.
4582 * config/rs6000/rs6000.c: Likewise.
4583 * config/s390/s390.c: Likewise.
4584 * config/sh/sh.c: Likewise.
4585 * config/sparc/sparc.c: Likewise.
4586 * config/spu/spu.c: Likewise.
4587 * config/stormy16/stormy16.c: Likewise.
4588 * config/tilegx/tilegx.c: Likewise.
4589 * config/tilepro/tilepro.c: Likewise.
4590 * config/xtensa/xtensa.c: Likewise.
4591
4592 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4593
4594 PR target/59216
4595 * arm.md (negdi_extendsidi): Fix invalid split.
4596
4597 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4598
4599 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4600 (vmov_n_f64): Likewise.
4601 (vmov_n_p8): Likewise.
4602 (vmov_n_p16): Likewise.
4603 (vmov_n_s8): Likewise.
4604 (vmov_n_s16): Likewise.
4605 (vmov_n_s32): Likewise.
4606 (vmov_n_s64): Likewise.
4607 (vmov_n_u8): Likewise.
4608 (vmov_n_u16): Likewise.
4609 (vmov_n_u32): Likewise.
4610 (vmov_n_u64): Likewise.
4611 (vmovq_n_f32): Likewise.
4612 (vmovq_n_f64): Likewise.
4613 (vmovq_n_p8): Likewise.
4614 (vmovq_n_p16): Likewise.
4615 (vmovq_n_s8): Likewise.
4616 (vmovq_n_s16): Likewise.
4617 (vmovq_n_s32): Likewise.
4618 (vmovq_n_s64): Likewise.
4619 (vmovq_n_u8): Likewise.
4620 (vmovq_n_u16): Likewise.
4621 (vmovq_n_u32): Likewise.
4622 (vmovq_n_u64): Likewise.
4623
4624 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4625
4626 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4627 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4628 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4629 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4630 and also change to float UNSPEC.
4631 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4632 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4633 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4634 result access for big-endian.
4635 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4636 intrinsics for big-endian.
4637 * config/aarch64/iterators.md (VDQV): Add V2DI.
4638 (VDQV_S): New.
4639 (vp): New mode attribute.
4640
4641 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4642
4643 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4644 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4645 big-endian.
4646
4647 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4648
4649 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4650 for big-endian element order.
4651 (aarch64_simd_vec_setv2di): Likewise.
4652 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4653 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4654 (vec_extract): Expand using aarch64_get_lane.
4655 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4656
4657 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4658
4659 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4660 and stores to be ABI compliant.
4661
4662 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4663
4664 * input.h (input_line): Remove.
4665 (input_filename): Likewise.
4666 (in_system_header): Likewise.
4667 * tree.h (EXPR_LOC_OR_HERE): Remove.
4668 * config/bfin/bfin.c (output_file_start): Remove use of
4669 input_filename macro.
4670 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4671 * gimplify.c (internal_get_tmp_var): Likewise.
4672 EXPR_LOC_OR_HERE macro.
4673 (shortcut_cond_expr): Likewise.
4674 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4675 use of input_filename macro.
4676 * tree.c (get_file_function_name): Likewise.
4677
4678 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4679
4680 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4681
4682 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4683
4684 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4685 (same sized) elements even if the type of the CONSTRUCTOR has
4686 vector mode and target is a REG.
4687
4688 2013-11-22 Richard Biener <rguenther@suse.de>
4689
4690 Revert
4691 2013-11-21 Richard Biener <rguenther@suse.de>
4692
4693 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4694 nb_iterations_upper_bound by one.
4695
4696 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4697
4698 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4699 for Silvermont.
4700
4701 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4702 core-avx-i, core-avx2 and slm.
4703
4704 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4705
4706 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4707
4708 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4709
4710 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4711 (stzx_24_<mode>): Likewise mra_operand.
4712
4713 2013-11-22 Jeff Law <law@redhat.com>
4714
4715 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4716 (thread_block_1): Do not cancel jump threads which go from
4717 inside a loop, through the header, then back inside the loop.
4718 (bb_ends_with_multiway_branch): New function.
4719 (thread_through_all_blocks): Handle threading cases which start
4720 in a loop through the loop header to a point in the loop.
4721
4722 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4723 jump thread path properly.
4724
4725 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4726
4727 * vec.h (auto_vec): New class.
4728 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4729 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4730 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4731 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4732 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4733 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4734 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4735 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4736 appropriate instead of vec for local variables.
4737
4738 2013-11-21 Teresa Johnson <tejohnson@google.com>
4739
4740 PR target/59233
4741 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4742 not understood by old_insns_match_p.
4743
4744 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4745
4746 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4747 little endian change.
4748 (vec_pack_sfix_trunc_v2df): Likewise.
4749 (vec_pack_ufix_trunc_v2df): Likewise.
4750 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4751 double checking of endianness.
4752
4753 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4754
4755 * tree-vect-generic.c (optimize_vector_constructor): New function.
4756 (expand_vector_operations_1): Call it.
4757
4758 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4759
4760 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4761 ix86_zero_extend_to_Pmode where appropriate.
4762 (ix86_expand_builtin): Ditto.
4763
4764 2013-11-21 Cary Coutant <ccoutant@google.com>
4765
4766 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4767 (add_linkage_name): Don't add linkage name for -g1.
4768 (decls_for_scope): Process subblocks for -g1.
4769 (dwarf2out_source_line): Output line tables for -g1.
4770 (dwarf2out_finish): Likewise.
4771 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4772 unused scopes for -g1.
4773 * opts.c (common_handle_option): Handle -g same as -g2.
4774 * doc/invoke.texi: Update description for -g1.
4775
4776 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4777
4778 * doc/extend.texi: Document htm builtins.
4779
4780 2013-11-21 Jeff Law <law@redhat.com>
4781
4782 PR tree-optimization/59221
4783 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4784 temporary equivalences when threading through joiner blocks.
4785
4786 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4787
4788 PR rtl-optimization/55950
4789 * real.c (real_sqrt): Remove function.
4790 * real.h (real_sqrt): Remove prototype.
4791 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4792 SQRT using real_sqrt.
4793
4794 2013-11-21 Richard Biener <rguenther@suse.de>
4795
4796 PR tree-optimization/59058
4797 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4798 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4799 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4800 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4801 (NITERS_KNOWN_P): Fold into ...
4802 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4803 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4804 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4805 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4806 (vect_do_peeling_for_alignment): Re-use precomputed niter
4807 instead of re-emitting it.
4808 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4809 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4810 * tree-vect-loop.c (vect_get_loop_niters): Use
4811 number_of_latch_executions.
4812 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4813 (vect_analyze_loop_form): Simplify.
4814 (vect_analyze_loop_operations): Move epilogue peeling code ...
4815 (vect_analyze_loop_2): ... here and adjust it to compute
4816 LOOP_VINFO_PEELING_FOR_NITER.
4817 (vect_estimate_min_profitable_iters): Use
4818 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4819 (vect_build_loop_niters): Emit on the preheader.
4820 (vect_generate_tmps_on_preheader): Likewise.
4821 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4822 of recomputing it. Adjust.
4823
4824 2013-11-21 Richard Biener <rguenther@suse.de>
4825
4826 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4827 LOC_LINE): Remove wrappers and fix all users.
4828 (struct _loop_vec_info): Remove loop_line_number member.
4829 (LOOP_VINFO_LOC): Remove.
4830 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4831 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4832 and LOC_LINE.
4833
4834 2013-11-21 Richard Biener <rguenther@suse.de>
4835
4836 * tree-ssa-forwprop.c (simplify_vce): New function.
4837 (ssa_forward_propagate_and_combine): Call it.
4838
4839 2013-11-21 Richard Biener <rguenther@suse.de>
4840
4841 * tree-vect-loop-manip.c (vect_build_loop_niters,
4842 vect_generate_tmps_on_preheader): Move ...
4843 * tree-vect-loop.c (vect_build_loop_niters,
4844 vect_generate_tmps_on_preheader): ... here and simplify.
4845 (vect_transform_loop): Call them here and pass down results
4846 to consumers.
4847 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4848 Get niter variables from caller.
4849 (vect_do_peeling_for_alignment): Likewise.
4850 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4851 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4852 Adjust prototypes.
4853
4854 2013-11-21 Richard Biener <rguenther@suse.de>
4855
4856 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4857 nb_iterations_upper_bound by one.
4858
4859 2013-11-21 Richard Biener <rguenther@suse.de>
4860
4861 PR tree-optimization/59058
4862 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4863 (build_size_arg_loc): Apply niter adjustment here.
4864 (generate_memset_builtin): Adjust.
4865 (generate_memcpy_builtin): Likewise.
4866 (classify_partition): Do not use number_of_exit_cond_executions
4867 but record whether niter needs to be adjusted.
4868
4869 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4870
4871 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4872 could throw.
4873
4874 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4875
4876 PR target/53976
4877 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4878 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4879 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4880 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4881 sh_optimize_sett_clrt pass.o to extra_objs.
4882
4883 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4884
4885 * cfg.c (dump_edge_info): Remove redundant comment.
4886 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4887 EXIT_BLOCK_PTR in comment.
4888 (try_optimize_cfg): Likewise.
4889 * cfgrtl.c (last_bb_in_partition): Likewise.
4890 * cgraph.c (cgraph_node_cannot_return): Likewise.
4891 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4892 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4893 * ipa-split.c (consider_split): Likewise.
4894 * profile.c (find_spanning_tree): Likewise.
4895 * sched-int.h (common_sched_info_def.add_block): Likewise.
4896 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4897 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4898 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4899 in comments to now removed ENTRY_BLOCK_PTR macro.
4900 (tree_forwarder_block_p): Reword reference in comment to
4901 EXIT_BLOCK_PTR.
4902 * tree-inline.c (copy_cfg_body): Reword references in comments to
4903 now removed ENTRY_BLOCK_PTR macro.
4904 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4905 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4906 a comma to the comment to clarify the meaning.
4907
4908 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4909
4910 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4911 Move to gimplify.c.
4912 (free_gimplify_stack): Add prototype.
4913 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4914 (struct gimplify_ctx): Relocate here.
4915 (gimplify_ctxp): Make static.
4916 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4917 list of struct gimplify_ctx.
4918 (push_gimplify_context): Add default parameters and allocate a struct
4919 from the pool.
4920 (pop_gimplify_context): Free a struct back to the pool.
4921 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4922 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4923 use a local 'struct gimplify_ctx'.
4924 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4925 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4926 Likewise.
4927 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4928 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4929 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4930 lower_omp_teams, execute_lower_omp): Likewise.
4931 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4932 * tree-inline.c (optimize_inline_calls): Likewise.
4933
4934 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4935
4936 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4937 (vsx_extract_<mode>): Likewise.
4938 (*vsx_extract_<mode>_one_le): New LE variant on
4939 *vsx_extract_<mode>_zero.
4940 (vsx_extract_v4sf): Adjust for little endian.
4941
4942 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4943
4944 PR rtl-optimization/59133
4945 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4946 new pseudos.
4947 (lra_create_new_reg_with_unique_value): Pass new argument value.
4948 (lra_emit_add, lra_emit_move): Ditto.
4949 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4950 (change_class): Rename to lra_change_class. Move to lra-int.h.
4951 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4952 change_class.
4953 (process_addr_reg, process_addr): Ditto.
4954 (curr_insn_transform): Ditto. Add check on old pseudo for
4955 optional reload.
4956 * lra-int.h (lra_get_regno_hard_regno): Move below.
4957 (lra_change_class): Renamed change_class from lra.c.
4958
4959 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4960
4961 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4962 the children of a NULL pointer.
4963
4964 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4965
4966 * lra.c (lra): Set lra_in_progress before check_rtl call.
4967 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4968 adding clobber regs when LRA is running.
4969
4970 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4971
4972 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4973 restriction for ISA_MIPS32R2.
4974 (ISA_HAS_LXC1_SXC1): New macro.
4975 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4976 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4977 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4978 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4979 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4980 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4981 (*<ANYF:storex>_<P:mode>): Likewise.
4982
4983 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4984
4985 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4986 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4987 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4988 * config/mips/mips.md (recip_condition): Remove mode attribute.
4989 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4990 <recip_condition>.
4991 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4992
4993 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4994
4995 PR target/59207
4996 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4997 Make sure neg2_ovf is set before being used.
4998
4999 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
5000
5001 * plugin.def: Add comment about register_callback and
5002 invoke_plugin_callbacks_full.
5003
5004 * plugin.c (register_callback, invoke_plugin_callbacks_full):
5005 Handle PLUGIN_INCLUDE_FILE event.
5006
5007 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5008
5009 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
5010 allow subregs of TDmode in FPRs of smaller size in little-endian.
5011 (rs6000_split_multireg_move): When splitting an access to TDmode
5012 in FPRs, do not use simplify_gen_subreg.
5013
5014 2013-11-20 Joseph Myers <joseph@codesourcery.com>
5015
5016 PR middle-end/21718
5017 * real.c: Remove comment about decimal string conversion and
5018 rounding errors.
5019 (real_from_string): Use MPFR to convert nonzero decimal constant
5020 to REAL_VALUE_TYPE.
5021
5022 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5023
5024 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5025 endianness of the D registers for the legacy encodings.
5026
5027 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
5028
5029 PR rtl-optimization/54300
5030 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5031 outputs in a single-set are killed from the value chains.
5032
5033 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5034
5035 * cgraph.h (varpool_node): Add need_bounds_init field.
5036 * lto-cgraph.c (lto_output_varpool_node): Output
5037 need_bounds_init value.
5038 (input_varpool_node): Read need_bounds_init value.
5039 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5040
5041 2013-11-20 Jan Hubicka <jh@suse.cz>
5042
5043 * opts.c (finish_options): Imply -ffat-lto-objects with
5044 -fno-use-linker-plugin.
5045 * common.opt (fuse-linker-plugin): Add var.
5046
5047 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5048
5049 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5050 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5051 (gen_type_die_with_usage): Skip pointer bounds.
5052 (dwarf2out_global_decl): Likewise.
5053
5054 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5055
5056 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5057 from all insns.
5058
5059 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
5060
5061 PR target/57756
5062 * config/i386/i386.c (ix86_option_override_internal): Add missed
5063 argument prefix for 'ix86_fpmath'.
5064 * config/i386/ssemath.h: Add missed definition of
5065 TARGET_FPMATH_DEFAULT_P macros.
5066
5067 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5068 Mike Stump <mikestump@comcast.net>
5069 Richard Sandiford <rdsandiford@googlemail.com>
5070
5071 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5072 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5073 tree_fits_shwi_p or tree_fits_uhwi_p.
5074 * builtins.c (fold_builtin_powi): Likewise.
5075 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5076 Likewise.
5077 * dbxout.c (dbxout_symbol): Likewise.
5078 * expr.c (expand_expr_real_1): Likewise.
5079 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5080 (fold_binary_loc): Likewise.
5081 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5082 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5083 * omp-low.c (lower_omp_for_lastprivate): Likewise.
5084 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5085 * stor-layout.c (compute_record_mode): Likewise.
5086 * tree-cfg.c (verify_expr): Likewise.
5087 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5088 * tree-pretty-print.c (dump_array_domain): Likewise.
5089 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5090 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5091 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5092 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5093 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5094 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5095 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5096 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5097 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5098 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5099 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5100 (create_variable_info_for_1): Likewise.
5101 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5102 (vect_verify_datarefs_alignment): Likewise.
5103 (vect_analyze_data_ref_accesses): Likewise.
5104 (vect_prune_runtime_alias_test_list): Likewise.
5105 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5106
5107 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5108
5109 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5110 overflow. Use tree_to_shwi.
5111
5112 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5113
5114 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5115 HOST_WIDE_INTs when folding (x >> c) << c.
5116
5117 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5118 Dominik Vogt <vogt@linux.vnet.ibm.com>
5119
5120 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5121 int comparisons with an out of range condition code.
5122 (s390_optimize_nonescaping_tx): Skip empty BBs.
5123 Generate the new tbegin RTX when removing the FPR clobbers (with
5124 two SETs).
5125 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
5126 result before doing the retry calculations.
5127 (s390_init_builtins): Make tbegin "returns_twice" and tabort
5128 "noreturn".
5129 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5130 the TDB setting part of an tbegin.
5131 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5132 ("tx_assist"): Set unused argument to an immediate zero instead of
5133 loading zero into a GPR and pass it as argument.
5134 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5135 Remove inline and related attributes.
5136 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5137 (__TM_is_illegal, __TM_is_footprint_exceeded)
5138 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5139
5140 2013-11-20 Richard Biener <rguenther@suse.de>
5141
5142 PR lto/59035
5143 * lto-opts.c (lto_write_options): Write defaults only if
5144 they were not explicitely specified. Also write
5145 -ffp-contract default.
5146 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5147 conservatively.
5148 (run_gcc): Pass through -ffp-contract.
5149
5150 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5151
5152 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5153
5154 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5155
5156 * config/aarch64/aarch64-builtins.c
5157 (aarch64_simd_itype): Remove.
5158 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5159 (VAR1): Use qualifiers.
5160 (aarch64_build_scalar_type): New.
5161 (aarch64_build_vector_type): Likewise.
5162 (aarch64_build_type): Likewise.
5163 (aarch64_init_simd_builtins): Refactor, remove special cases,
5164 consolidate main loop.
5165 (aarch64_simd_expand_args): Likewise.
5166
5167 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5168
5169 PR c/53001
5170 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5171
5172 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
5173
5174 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5175
5176 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5177
5178 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5179 to "vec<>" instances.
5180 (build_pretty_printer): Register the vec<>* prettyprinter.
5181
5182 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5183
5184 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5185 (GdbSubprinter.handles_type): New.
5186 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5187 (GdbSubprinterRegex): New subclass of GdbSubprinter.
5188 (GdbPrettyPrinters.add_printer): Remove in favor of...
5189 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5190 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5191 (GdbPrettyPrinters.__call__): Update search for subprinter
5192 to use handles_type method.
5193 (build_pretty_printer): Update registration of subprinters to
5194 use the new API above, supporting multiple spelling of each type,
5195 and allowing for future regex-based subprinters.
5196
5197 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5198
5199 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5200 V16QI vector splat case for little endian.
5201
5202 2013-11-19 Jeff Law <law@redhat.com>
5203
5204 * tree-ssa-threadedge.c (thread_across_edge): After threading
5205 through a joiner, allow threading a normal block requiring duplication.
5206
5207 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5208 jump threading requests that would muck up the loop structures.
5209
5210 * tree-ssa-threadupdate.c: Fix trailing whitespace.
5211 * tree-ssa-threadupdate.h: Likewise.
5212
5213 2013-11-19 Mike Stump <mikestump@comcast.net>
5214
5215 * gdbinit.in: Add pmz to print out mpz values.
5216
5217 2013-11-20 Jan Hubicka <jh@suse.cz>
5218
5219 * common.opt (ffat-lto-objects): Disable by default.
5220 * doc/invoke.texi (fat-lto-objects): Update documentation.
5221 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5222
5223 2013-11-19 Martin Jambor <mjambor@suse.cz>
5224
5225 PR rtl-optimization/59099
5226 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5227 here.
5228 (ira): Move init_reg_equiv and call to
5229 split_live_ranges_for_shrink_wrap up, remove analyses around call
5230 to find_moveable_pseudos.
5231
5232 2013-11-20 Alan Modra <amodra@gmail.com>
5233
5234 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5235 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5236 to strict alignment on older processors when little-endian.
5237 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5238 for ELFv2.
5239
5240 2013-11-19 Teresa Johnson <tejohnson@google.com>
5241
5242 * common/config/i386/i386-common.c: Enable
5243 -freorder-blocks-and-partition at -O2 and up for x86.
5244 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5245 * opts.c (finish_options): Only warn if
5246 -freorder-blocks-and-partition was set on command line.
5247
5248 2013-11-19 Sriraman Tallam <tmsriram@google.com>
5249
5250 * final.c (final_scan_insn): Emit a label for the split
5251 cold function part. Label name is formed by suffixing
5252 the original function name with "cold".
5253
5254 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5255
5256 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5257 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5258 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5259 (EXIT_BLOCK_PTR_FOR_FN): ...this.
5260 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5261 cfun be explicit.
5262 (EXIT_BLOCK_PTR): Likewise.
5263 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5264 (FOR_ALL_BB_FN): Update for renaming of
5265 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5266
5267 * cfg.c (init_flow): Likewise.
5268 (check_bb_profile): Likewise.
5269 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5270 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5271 * cfghooks.c (account_profile_record): Likewise.
5272 * cfgloop.c (init_loops_structure): Likewise.
5273 * cgraphbuild.c (record_eh_tables): Likewise.
5274 (compute_call_stmt_bb_frequency): Likewise.
5275 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5276 * lto-streamer-in.c (input_cfg): Likewise.
5277 * predict.c (maybe_hot_frequency_p): Likewise.
5278 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5279 * tree-inline.c (initialize_cfun): Likewise.
5280 (copy_cfg_body): Likewise.
5281 (copy_body): Likewise.
5282 (tree_function_versioning): Likewise.
5283
5284 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5285 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5286 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5287 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5288 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5289 (connect_traces): Likewise.
5290 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5291 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5292 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5293 macro.
5294 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5295 EXIT_BLOCK_PTR.
5296 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5297 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5298 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5299 (rotate_loop): Likewise.
5300 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5301 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5302 EXIT_BLOCK_PTR.
5303 (alloc_aux_for_edges): Likewise.
5304 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5305 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5306 EXIT_BLOCK_PTR.
5307 (compact_blocks): Likewise.
5308 (clear_edges): Likewise.
5309 * cfganal.c (single_pred_before_succ_order): Remove usage of
5310 ENTRY_BLOCK_PTR macro.
5311 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5312 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5313 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5314 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5315 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5316 EXIT_BLOCK_PTR.
5317 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5318 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5319 EXIT_BLOCK_PTR.
5320 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5321 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5322 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5323 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5324 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5325 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5326 EXIT_BLOCK_PTR.
5327 (print_edge_list): Likewise.
5328 (create_edge_list): Likewise.
5329 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5330 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5331 EXIT_BLOCK_PTR.
5332 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5333 macro.
5334 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5335 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5336 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5337 (try_optimize_cfg): Likewise.
5338 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5339 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5340 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5341 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5342 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5343 (try_forward_edges): Likewise.
5344 (try_simplify_condjump): Likewise.
5345 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5346 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5347 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5348 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5349 EXIT_BLOCK_PTR.
5350 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5351 (expand_gimple_tailcall): Likewise.
5352 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5353 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5354 (tidy_fallthru_edges): Likewise.
5355 (verify_flow_info): Likewise.
5356 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5357 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5358 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5359 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5360 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5361 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5362 (get_loop_body_in_dom_order): Likewise.
5363 (get_loop_body): Likewise.
5364 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5365 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5366 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5367 macro.
5368 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5369 (fix_bb_placement): Likewise.
5370 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5371 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5372 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5373 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5374 EXIT_BLOCK_PTR.
5375 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5376 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5377 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5378 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5379 macro.
5380 (fixup_fallthru_exit_predecessor): Remove uses of macros:
5381 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5382 (fixup_reorder_chain): Likewise.
5383 (relink_block_chain): Likewise.
5384 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5385 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5386 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5387 (force_one_exit_fallthru): Likewise.
5388 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5389 EXIT_BLOCK_PTR.
5390 (rtl_verify_edges): Likewise.
5391 (commit_edge_insertions): Likewise.
5392 (commit_one_edge_insertion): Likewise.
5393 (rtl_split_edge): Likewise.
5394 (force_nonfallthru_and_redirect): Likewise.
5395 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5396 (skip_insns_after_block): Likewise.
5397 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5398 EXIT_BLOCK_PTR.
5399 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5400 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5401 EXIT_BLOCK_PTR.
5402 (contains_no_active_insn_p): Likewise.
5403 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5404 (entry_of_function): Likewise.
5405 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5406 (fixup_new_cold_bb): Likewise.
5407 (patch_jump_insn): Likewise.
5408 (try_redirect_by_replacing_jump): Likewise.
5409 (block_label): Likewise.
5410 (could_fall_through): Likewise.
5411 (can_fallthru): Likewise.
5412 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5413 ENTRY_BLOCK_PTR macro.
5414 (rebuild_cgraph_edges): Likewise.
5415 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5416 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5417 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5418 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5419 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5420 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5421 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5422 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5423 macro.
5424 (reg_nonzero_bits_for_combine): Likewise.
5425 (set_nonzero_bits_and_sign_copies): Likewise.
5426 (combine_instructions): Likewise.
5427 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5428 EXIT_BLOCK_PTR.
5429 (bypass_conditional_jumps): Likewise.
5430 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5431 (find_implicit_sets): Likewise.
5432 (cprop_jump): Likewise.
5433 * cse.c (cse_cc_succs): Likewise.
5434 (cse_find_path): Likewise.
5435 * df-problems.c (df_lr_confluence_0): Likewise.
5436 * df-scan.c (df_entry_block_defs_collect): Remove usage of
5437 ENTRY_BLOCK_PTR macro.
5438 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5439 * dominance.c (iterate_fix_dominators): Remove usage of
5440 ENTRY_BLOCK_PTR macro.
5441 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5442 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5443 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5444 EXIT_BLOCK_PTR.
5445 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5446 macro.
5447 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5448 EXIT_BLOCK_PTR.
5449 * domwalk.c (cmp_bb_postorder): Likewise.
5450 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5451 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5452 macro.
5453 (sjlj_emit_function_enter): Likewise.
5454 * final.c (compute_alignments): Likewise.
5455 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5456 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5457 (reposition_prologue_and_epilogue_notes): Remove usage of
5458 EXIT_BLOCK_PTR macro.
5459 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5460 EXIT_BLOCK_PTR.
5461 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5462 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5463 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5464 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5465 (compute_code_hoist_vbeinout): Likewise.
5466 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5467 (pre_expr_reaches_here_p_work): Likewise.
5468 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5469 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5470 EXIT_BLOCK_PTR.
5471 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5472 ENTRY_BLOCK_PTR macro.
5473 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5474 macro.
5475 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5476 ENTRY_BLOCK_PTR macro.
5477 * graphite-scop-detection.c (build_scops): Likewise.
5478 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5479 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5480 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5481 macro.
5482 (unlink_bb_notes): Likewise.
5483 (create_check_block_twin): Likewise.
5484 (init_before_recovery): Likewise.
5485 (sched_extend_bb): Likewise.
5486 (priority): Likewise.
5487 * hw-doloop.c (reorder_loops): Likewise.
5488 (discover_loop): Likewise.
5489 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5490 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5491 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5492 (block_has_only_trap): Likewise.
5493 (cond_exec_find_if_block): Likewise.
5494 (merge_if_block): Likewise.
5495 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5496 ENTRY_BLOCK_PTR macro.
5497 (record_modified): Likewise.
5498 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5499 EXIT_BLOCK_PTR macro.
5500 (local_pure_const): Likewise.
5501 * ipa-split.c (split_function): Remove uses of macros:
5502 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5503 (find_split_points): Likewise.
5504 (consider_split): Likewise.
5505 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5506 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5507 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5508 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5509 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5510 ENTRY_BLOCK_PTR macro.
5511 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5512 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5513 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5514 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5515 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5516 macro.
5517 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5518 EXIT_BLOCK_PTR.
5519 (compute_farthest): Likewise.
5520 (compute_available): Likewise.
5521 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5522 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5523 EXIT_BLOCK_PTR.
5524 (compute_earliest): Likewise.
5525 (compute_antinout_edge): Likewise.
5526 * loop-iv.c (simplify_using_initial_values): Remove usage of
5527 ENTRY_BLOCK_PTR macro.
5528 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5529 macro.
5530 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5531 macro.
5532 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5533 macro.
5534 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5535 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5536 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5537 macro.
5538 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5539 macro.
5540 * lto-streamer-out.c (output_cfg): Likewise.
5541 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5542 EXIT_BLOCK_PTR.
5543 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5544 * mode-switching.c (optimize_mode_switching): Likewise.
5545 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5546 * modulo-sched.c (rest_of_handle_sms): Likewise.
5547 (canon_loop): Likewise.
5548 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5549 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5550 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5551 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5552 macro.
5553 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5554 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5555 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5556 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5557 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5558 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5559 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5560 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5561 (gimple_predict_edge): Likewise.
5562 (probably_never_executed): Likewise.
5563 * profile.c (find_spanning_tree): Remove uses of macros:
5564 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5565 (branch_prob): Likewise.
5566 (compute_branch_probabilities): Likewise.
5567 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5568 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5569 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5570 (set_bb_counts): Likewise.
5571 (correct_negative_edge_counts): Likewise.
5572 (get_exec_counts): Likewise.
5573 (instrument_values): Likewise.
5574 (instrument_edges): Likewise.
5575 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5576 EXIT_BLOCK_PTR.
5577 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5578 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5579 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5580 (reg_to_stack): Likewise.
5581 * regs.h (REG_N_SETS): Likewise.
5582 * reload.c (find_dummy_reload): Likewise.
5583 (combine_reloads): Likewise.
5584 (push_reload): Likewise.
5585 * reload1.c (has_nonexceptional_receiver): Remove usage of
5586 EXIT_BLOCK_PTR macro.
5587 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5588 macro.
5589 (find_basic_block): Likewise.
5590 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5591 (schedule_ebbs): Likewise.
5592 * sched-int.h (sel_sched_p): Likewise.
5593 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5594 macro.
5595 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5596 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5597 EXIT_BLOCK_PTR.
5598 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5599 (extend_rgns): Likewise.
5600 (find_single_block_region): Likewise.
5601 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5602 ENTRY_BLOCK_PTR macro.
5603 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5604 (sel_create_recovery_block): Likewise.
5605 (bb_ends_ebb_p): Likewise.
5606 (sel_bb_end): Likewise.
5607 (sel_bb_head): Likewise.
5608 (free_lv_sets): Likewise.
5609 (init_lv_sets): Likewise.
5610 (tidy_control_flow): Likewise.
5611 (maybe_tidy_empty_bb): Likewise.
5612 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5613 (_succ_iter_start): Likewise.
5614 (sel_bb_empty_or_nop_p): Likewise.
5615 (get_loop_exit_edges_unique_dests): Likewise.
5616 (inner_loop_header_p): Likewise.
5617 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5618 (find_block_for_bookkeeping): Likewise.
5619 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5620 (insert_store): Likewise.
5621 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5622 ENTRY_BLOCK_PTR macro.
5623 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5624 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5625 (gate_tm_init): Likewise.
5626 (tm_region_init): Likewise.
5627 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5628 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5629 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5630 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5631 EXIT_BLOCK_PTR.
5632 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5633 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5634 EXIT_BLOCK_PTR.
5635 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5636 macro.
5637 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5638 EXIT_BLOCK_PTR.
5639 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5640 macro.
5641 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5642 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5643 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5644 (build_gimple_cfg): Likewise.
5645 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5646 (gimple_can_merge_blocks_p): Likewise.
5647 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5648 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5649 * tree-complex.c (update_parameter_components): Remove usage of
5650 ENTRY_BLOCK_PTR macro.
5651 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5652 EXIT_BLOCK_PTR macro.
5653 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5654 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5655 (delete_unreachable_blocks_update_callgraph): Likewise.
5656 (initialize_cfun): Likewise.
5657 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5658 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5659 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5660 * tree-into-ssa.c (update_ssa): Likewise.
5661 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5662 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5663 (rewrite_into_ssa): Likewise.
5664 (rewrite_debug_stmt_uses): Likewise.
5665 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5666 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5667 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5668 ENTRY_BLOCK_PTR macro.
5669 * tree-scalar-evolution.h (block_before_loop): Likewise.
5670 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5671 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5672 EXIT_BLOCK_PTR.
5673 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5674 macro.
5675 (propagate_dereference_distances): Remove uses of macros:
5676 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5677 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5678 macro.
5679 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5680 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5681 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5682 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5683 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5684 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5685 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5686 (mark_control_dependent_edges_necessary): Remove uses of macros:
5687 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5688 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5689 ENTRY_BLOCK_PTR macro.
5690 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5691 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5692 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5693 (calculate_live_on_exit): Likewise.
5694 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5695 (loe_visit_block): Likewise.
5696 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5697 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5698 (live_on_entry): Likewise.
5699 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5700 EXIT_BLOCK_PTR macro.
5701 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5702 ENTRY_BLOCK_PTR macro.
5703 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5704 (bound_difference): Likewise.
5705 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5706 of EXIT_BLOCK_PTR macro.
5707 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5708 of ENTRY_BLOCK_PTR macro.
5709 * tree-ssa-math-opts.c (register_division_in): Likewise.
5710 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5711 * tree-ssa-pre.c (compute_avail): Likewise.
5712 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5713 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5714 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5715 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5716 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5717 EXIT_BLOCK_PTR.
5718 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5719 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5720 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5721 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5722 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5723 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5724 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5725 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5726 (find_pdom): Likewise.
5727 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5728 * tree-stdarg.c (reachable_at_most_once): Likewise.
5729 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5730 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5731 (eliminate_tail_call): Likewise.
5732 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5733 macro.
5734 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5735 * var-tracking.c (vt_initialize): Remove uses of macros:
5736 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5737 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5738 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5739 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5740 EXIT_BLOCK_PTR.
5741 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5742 macro.
5743 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5744 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5745 of EXIT_BLOCK_PTR macro.
5746 * config/arm/arm.c (require_pic_register): Remove usage of
5747 ENTRY_BLOCK_PTR macro.
5748 (arm_r3_live_at_start_p): Likewise.
5749 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5750 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5751 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5752 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5753 ENTRY_BLOCK_PTR macro.
5754 * config/i386/i386.c (ix86_count_insn): Likewise.
5755 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5756 (ix86_pad_short_function): Likewise.
5757 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5758 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5759 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5760 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5761 (ix86_expand_epilogue): Likewise.
5762 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5763 (ia64_expand_prologue): Likewise.
5764
5765 2013-11-19 Catherine Moore <clm@codesourcery.com>
5766
5767 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5768 * config/mips/mips.opt (mfix-rm7000): New option.
5769 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5770 * config/mips/mips.c (mips_reorg_process_insns): Disable
5771 noreorder for TARGET_FIX_RM7000.
5772
5773 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5774
5775 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5776
5777 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5778
5779 * config/arm/arm.c (arm_new_rtx_costs):
5780 Handle narrow mode add-shifts properly.
5781 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5782 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5783 Declare extern.
5784
5785 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5786
5787 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5788
5789 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5790
5791 * config/rs6000/vector.md ("mov<mode>"): Do not call
5792 rs6000_emit_le_vsx_move to move into or out of GPRs.
5793 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5794 source and destination are not GPR hard regs.
5795
5796 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5797
5798 * basic-block.h (n_edges_for_function): Rename macro to...
5799 (n_edges_for_fn): ...this.
5800 (n_edges): Eliminate macro as work towards making uses of
5801 cfun be explicit.
5802
5803 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5804 to "n_edges_for_fn".
5805
5806 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5807 (clear_edges): Likewise.
5808 (free_edge): Likewise.
5809 * cfghooks.c (dump_flow_info): Likewise.
5810 * cprop.c (is_too_expensive): Likewise.
5811 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5812 * gcse.c (is_too_expensive): Likewise.
5813 (prune_insertions_deletions): Likewise.
5814 * mcf.c (create_fixup_graph): Likewise.
5815 * sched-rgn.c (haifa_find_rgns): Likewise.
5816 * tree-cfg.c (gimple_dump_cfg): Likewise.
5817 * var-tracking.c (variable_tracking_main_1): Likewise.
5818
5819 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5820
5821 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5822 length lines.
5823
5824 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5825
5826 * config/aarch64/aarch64.md
5827 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5828
5829 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5830
5831 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5832
5833 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5834
5835 * varasm.c (align_variable): Give error instead of warning for
5836 unsupported alignment.
5837 (assemble_noswitch_variable): Likewise.
5838
5839 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5840
5841 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5842 cb_file_change.
5843
5844 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5845
5846 * loop-doloop.c (doloop_optimize_loops): Remove unused
5847 loop iterator argument from FOR_EACH_LOOP.
5848
5849 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5850
5851 Convert gimple types from a union to C++ inheritance.
5852 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5853 * coretypes.h (union gimple_statement_d): Remove declaration.
5854 (gimple): Convert from being a "union gimple_statement_d *"
5855 to a "struct gimple_statement_base *".
5856 (const_gimple): Likewise (with "const").
5857 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5858 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5859 * gimple-pretty-print.c (debug): Change parameter from a
5860 "gimple_statement_d &" to a "gimple_statement_base &".
5861 (debug): Change parameter from a "gimple_statement_d *" to
5862 a "gimple_statement_base *".
5863 * gimple-pretty-print.h (debug): Update declarations as above.
5864 * gimple.c (gimple_alloc_stat): Update for renaming of
5865 ggc_alloc_cleared_gimple_statement_d_stat to
5866 ggc_alloc_cleared_gimple_statement_stat.
5867 * gimple.h: Include "is-a.h" for use by is_a_helper
5868 specializations in followup autogenerated patch.
5869 (struct gimple statement_base): Make this type usable as a base
5870 class by adding "desc", "tag" and "variable_size" to GTY, thus
5871 using opting-in to gengtype's support for simple inheritance.
5872 (gimple_statement_with_ops_base): Convert to a subclass of
5873 gimple_statement_base, dropping initial "gsbase" field. Note that
5874 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5875 (gimple_statement_with_ops): Convert to a subclass of
5876 gimple_statement_with_ops_base, dropping initial "opbase" field.
5877 Add tag value to GTY marking. Update marking of op field to
5878 reflect how num_ops field is accessed via inheritance.
5879 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5880 gimple_statement_with_ops_base, dropping initial "opbase" field.
5881 Add tag value to GTY marking.
5882 (gimple_statement_with_memory_ops): Convert to a subclass of
5883 public gimple_statement_with_memory_ops_base, dropping initial
5884 "membase" field. Add tag value to GTY marking. Update marking
5885 of op field to reflect how num_ops field is accessed via inheritance.
5886 (gimple_statement_call): Analogous changes that also update the
5887 marking of the "u" union.
5888 (gimple_statement_omp): Convert to a subclass of
5889 gimple_statement_base, dropping initial "gsbase" field, adding
5890 tag value to GTY marking.
5891 (gimple_statement_bind): Likewise.
5892 (gimple_statement_catch): Likewise.
5893 (gimple_statement_eh_filter): Likewise.
5894 (gimple_statement_eh_else): Likewise.
5895 (gimple_statement_eh_mnt): Likewise.
5896 (gimple_statement_phi): Likewise.
5897 (gimple_statement_eh_ctrl): Likewise.
5898 (gimple_statement_try): Likewise.
5899 (gimple_statement_wce): Likewise.
5900 (gimple_statement_asm): Convert to a subclass of
5901 gimple_statement_with_memory_ops_base, dropping initial
5902 "membase" field, adding tag value to GTY marking, and updating
5903 marking of op field.
5904 (gimple_statement_omp_critical): Convert to a subclass of
5905 gimple_statement_omp, dropping initial "omp" field, adding tag
5906 value to GTY marking.
5907 (gimple_statement_omp_for): Likewise.
5908 (gimple_statement_omp_parallel): Likewise.
5909 (gimple_statement_omp_task): Convert to a subclass of
5910 gimple_statement_omp_parallel, dropping initial "par" field,
5911 adding tag value to GTY marking.
5912 (gimple_statement_omp_sections): Convert to a subclass of
5913 gimple_statement_omp, dropping initial "omp" field, adding
5914 tag value to GTY marking.
5915 (gimple_statement_omp_continue): Convert to a subclass of
5916 gimple_statement_base, dropping initial "gsbase" field, adding
5917 tag value to GTY marking.
5918 (gimple_statement_omp_single): Convert to a subclass of
5919 gimple_statement_omp, dropping initial "omp" field, adding
5920 tag value to GTY marking.
5921 (gimple_statement_omp_atomic_load): Convert to a subclass of
5922 gimple_statement_base, dropping initial "gsbase" field, adding
5923 tag value to GTY marking.
5924 (gimple_statement_omp_atomic_store): Convert to a subclass of
5925 gimple_statement_base, dropping initial "gsbase" field, adding
5926 tag value to GTY marking.
5927 (gimple_statement_transaction): Convert to a subclass of
5928 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5929 field, adding tag value to GTY marking.
5930 (union gimple_statement_d): Remove.
5931 * system.h (CONST_CAST_GIMPLE): Update to use
5932 "struct gimple_statement_base *" rather than
5933 "union gimple_statement_d *".
5934 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5935 gimple_statement_d to gimple_statement_base.
5936
5937 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5938 (gimple_set_use_ops): Port from union to usage of as_a.
5939 (gimple_set_vuse): Likewise.
5940 (gimple_set_vdef): Likewise.
5941 (gimple_call_internal_fn): Port from union to a static_cast,
5942 given that the type has already been asserted.
5943 (gimple_omp_body_ptr): Port from unchecked union usage to
5944 a static_cast.
5945 (gimple_omp_set_body): Likewise.
5946
5947 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5948 gimple types to a true class hierarchy.
5949 (update_call_edge_frequencies): Likewise.
5950 (gsi_insert_seq_nodes_before): Likewise.
5951 (gsi_insert_seq_nodes_after): Likewise.
5952 (gsi_split_seq_after): Likewise.
5953 (gsi_set_stmt): Likewise.
5954 (gsi_split_seq_before): Likewise.
5955 (gsi_remove): Likewise.
5956 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5957 (gsi_next): Likewise.
5958 (gsi_prev): Likewise.
5959 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5960 * gimple-ssa.h (gimple_vuse_op): Likewise.
5961 (gimple_vdef_op): Likewise.
5962 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5963 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5964 * gimple.c (gimple_set_code): Likewise.
5965 (gimple_alloc_stat): Likewise.
5966 (gimple_set_subcode): Likewise.
5967 (gimple_build_call_internal_1): Likewise.
5968 (gimple_check_failed): Likewise.
5969 (gimple_call_flags): Likewise.
5970 (gimple_set_bb): Likewise.
5971 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5972 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5973 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5974 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5975 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5976 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5977 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5978 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5979 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5980 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5981 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5982 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5983 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5984 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5985 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5986 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5987 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5988 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5989 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5990 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5991 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5992 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5993 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5994 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5995 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5996 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5997 Likewise.
5998 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5999 Likewise.
6000 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
6001 Likewise.
6002 (is_a_helper <const gimple_statement_omp_atomic_store>
6003 (const_gimple)): Likewise.
6004 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
6005 Likewise.
6006 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
6007 Likewise.
6008 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
6009 Likewise.
6010 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
6011 Likewise.
6012 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
6013 Likewise.
6014 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
6015 Likewise.
6016 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
6017 Likewise.
6018 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
6019 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
6020 Likewise.
6021 (gimple_seq_last): Update for conversion of gimple types to a true
6022 class hierarchy.
6023 (gimple_seq_set_last): Likewise.
6024 (gimple_code): Likewise.
6025 (gimple_bb): Likewise.
6026 (gimple_block): Likewise.
6027 (gimple_set_block): Likewise.
6028 (gimple_location): Likewise.
6029 (gimple_location_ptr): Likewise.
6030 (gimple_set_location): Likewise.
6031 (gimple_no_warning_p): Likewise.
6032 (gimple_set_no_warning): Likewise.
6033 (gimple_set_visited): Likewise.
6034 (gimple_visited_p): Likewise.
6035 (gimple_set_plf): Likewise.
6036 (gimple_plf): Likewise.
6037 (gimple_set_uid): Likewise.
6038 (gimple_uid): Likewise.
6039 (gimple_init_singleton): Likewise.
6040 (gimple_modified_p): Likewise.
6041 (gimple_set_modified): Likewise.
6042 (gimple_expr_code): Likewise.
6043 (gimple_has_volatile_ops): Likewise.
6044 (gimple_set_has_volatile_ops): Likewise.
6045 (gimple_omp_subcode): Likewise.
6046 (gimple_omp_set_subcode): Likewise.
6047 (gimple_omp_return_set_nowait): Likewise.
6048 (gimple_omp_section_set_last): Likewise.
6049 (gimple_omp_parallel_set_combined_p): Likewise.
6050 (gimple_omp_atomic_set_need_value): Likewise.
6051 (gimple_omp_atomic_set_seq_cst): Likewise.
6052 (gimple_num_ops): Likewise.
6053 (gimple_set_num_ops): Likewise.
6054 (gimple_assign_nontemporal_move_p): Likewise.
6055 (gimple_assign_set_nontemporal_move): Likewise.
6056 (gimple_assign_rhs_code): Likewise.
6057 (gimple_assign_set_rhs_code): Likewise.
6058 (gimple_call_internal_p): Likewise.
6059 (gimple_call_with_bounds_p): Likewise.
6060 (gimple_call_set_with_bounds): Likewise.
6061 (gimple_call_set_tail): Likewise.
6062 (gimple_call_tail_p): Likewise.
6063 (gimple_call_set_return_slot_opt): Likewise.
6064 (gimple_call_return_slot_opt_p): Likewise.
6065 (gimple_call_set_from_thunk): Likewise.
6066 (gimple_call_from_thunk_p): Likewise.
6067 (gimple_call_set_va_arg_pack): Likewise.
6068 (gimple_call_va_arg_pack_p): Likewise.
6069 (gimple_call_set_nothrow): Likewise.
6070 (gimple_call_set_alloca_for_var): Likewise.
6071 (gimple_call_alloca_for_var_p): Likewise.
6072 (gimple_call_copy_flags): Likewise.
6073 (gimple_cond_code): Likewise.
6074 (gimple_cond_set_code): Likewise.
6075 (gimple_cond_make_false): Likewise.
6076 (gimple_cond_make_true): Likewise.
6077 (gimple_asm_volatile_p): Likewise.
6078 (gimple_asm_set_volatile): Likewise.
6079 (gimple_asm_set_input): Likewise.
6080 (gimple_asm_input_p): Likewise.
6081 (gimple_try_kind): Likewise.
6082 (gimple_try_set_kind): Likewise.
6083 (gimple_try_catch_is_cleanup): Likewise.
6084 (gimple_try_set_catch_is_cleanup): Likewise.
6085 (gimple_wce_cleanup_eh_only): Likewise.
6086 (gimple_wce_set_cleanup_eh_only): Likewise.
6087 (gimple_debug_bind_p): Likewise.
6088 (gimple_debug_source_bind_p): Likewise.
6089 (gimple_omp_for_set_kind): Likewise.
6090 (gimple_omp_for_set_combined_p): Likewise.
6091 (gimple_omp_for_set_combined_into_p): Likewise.
6092 (gimple_omp_target_set_kind): Likewise.
6093 (gimple_transaction_subcode): Likewise.
6094 (gimple_transaction_set_subcode): Likewise.
6095 (gimple_predict_predictor): Likewise.
6096 (gimple_predict_set_predictor): Likewise.
6097 (gimple_predict_outcome): Likewise.
6098 (gimple_predict_set_outcome): Likewise.
6099 (gimple_transaction_set_label): Likewise.
6100 (gimple_transaction_set_body): Likewise.
6101 (gimple_transaction_label_ptr): Likewise.
6102 (gimple_transaction_label): Likewise.
6103 (gimple_transaction_body_ptr): Likewise.
6104 (gimple_omp_continue_set_control_use): Likewise.
6105 (gimple_omp_continue_control_use_ptr): Likewise.
6106 (gimple_omp_continue_control_use): Likewise.
6107 (gimple_omp_continue_set_control_def): Likewise.
6108 (gimple_omp_continue_control_def_ptr): Likewise.
6109 (gimple_omp_continue_control_def): Likewise.
6110 (gimple_omp_atomic_load_rhs_ptr): Likewise.
6111 (gimple_omp_atomic_load_rhs): Likewise.
6112 (gimple_omp_atomic_load_set_rhs): Likewise.
6113 (gimple_omp_atomic_load_lhs_ptr): Likewise.
6114 (gimple_omp_atomic_load_lhs): Likewise.
6115 (gimple_omp_atomic_load_set_lhs): Likewise.
6116 (gimple_omp_atomic_store_val_ptr): Likewise.
6117 (gimple_omp_atomic_store_val): Likewise.
6118 (gimple_omp_atomic_store_set_val): Likewise.
6119 (gimple_omp_for_cond): Likewise.
6120 (gimple_omp_for_set_cond): Likewise.
6121 (gimple_omp_sections_set_control): Likewise.
6122 (gimple_omp_sections_control_ptr): Likewise.
6123 (gimple_omp_sections_control): Likewise.
6124 (gimple_omp_sections_set_clauses): Likewise.
6125 (gimple_omp_sections_clauses_ptr): Likewise.
6126 (gimple_omp_sections_clauses): Likewise.
6127 (gimple_omp_teams_set_clauses): Likewise.
6128 (gimple_omp_teams_clauses_ptr): Likewise.
6129 (gimple_omp_teams_clauses): Likewise.
6130 (gimple_omp_target_set_data_arg): Likewise.
6131 (gimple_omp_target_data_arg_ptr): Likewise.
6132 (gimple_omp_target_data_arg): Likewise.
6133 (gimple_omp_target_set_child_fn): Likewise.
6134 (gimple_omp_target_child_fn_ptr): Likewise.
6135 (gimple_omp_target_child_fn): Likewise.
6136 (gimple_omp_target_set_clauses): Likewise.
6137 (gimple_omp_target_clauses_ptr): Likewise.
6138 (gimple_omp_target_clauses): Likewise.
6139 (gimple_omp_single_set_clauses): Likewise.
6140 (gimple_omp_single_clauses_ptr): Likewise.
6141 (gimple_omp_single_clauses): Likewise.
6142 (gimple_omp_task_set_arg_align): Likewise.
6143 (gimple_omp_task_arg_align_ptr): Likewise.
6144 (gimple_omp_task_arg_align): Likewise.
6145 (gimple_omp_task_set_arg_size): Likewise.
6146 (gimple_omp_task_arg_size_ptr): Likewise.
6147 (gimple_omp_task_arg_size): Likewise.
6148 (gimple_omp_task_set_copy_fn): Likewise.
6149 (gimple_omp_task_copy_fn_ptr): Likewise.
6150 (gimple_omp_task_copy_fn): Likewise.
6151 (gimple_omp_task_set_data_arg): Likewise.
6152 (gimple_omp_task_data_arg_ptr): Likewise.
6153 (gimple_omp_task_data_arg): Likewise.
6154 (gimple_omp_task_set_child_fn): Likewise.
6155 (gimple_omp_task_child_fn_ptr): Likewise.
6156 (gimple_omp_task_child_fn): Likewise.
6157 (gimple_omp_task_set_clauses): Likewise.
6158 (gimple_omp_task_clauses_ptr): Likewise.
6159 (gimple_omp_task_clauses): Likewise.
6160 (gimple_omp_parallel_set_data_arg): Likewise.
6161 (gimple_omp_parallel_data_arg_ptr): Likewise.
6162 (gimple_omp_parallel_data_arg): Likewise.
6163 (gimple_omp_parallel_set_child_fn): Likewise.
6164 (gimple_omp_parallel_child_fn_ptr): Likewise.
6165 (gimple_omp_parallel_child_fn): Likewise.
6166 (gimple_omp_parallel_set_clauses): Likewise.
6167 (gimple_omp_parallel_clauses_ptr): Likewise.
6168 (gimple_omp_parallel_clauses): Likewise.
6169 (gimple_omp_for_set_pre_body): Likewise.
6170 (gimple_omp_for_pre_body_ptr): Likewise.
6171 (gimple_omp_for_set_incr): Likewise.
6172 (gimple_omp_for_incr_ptr): Likewise.
6173 (gimple_omp_for_incr): Likewise.
6174 (gimple_omp_for_set_final): Likewise.
6175 (gimple_omp_for_final_ptr): Likewise.
6176 (gimple_omp_for_final): Likewise.
6177 (gimple_omp_for_set_initial): Likewise.
6178 (gimple_omp_for_initial_ptr): Likewise.
6179 (gimple_omp_for_initial): Likewise.
6180 (gimple_omp_for_set_index): Likewise.
6181 (gimple_omp_for_index_ptr): Likewise.
6182 (gimple_omp_for_index): Likewise.
6183 (gimple_omp_for_collapse): Likewise.
6184 (gimple_omp_for_set_clauses): Likewise.
6185 (gimple_omp_for_clauses_ptr): Likewise.
6186 (gimple_omp_for_clauses): Likewise.
6187 (gimple_omp_critical_set_name): Likewise.
6188 (gimple_omp_critical_name_ptr): Likewise.
6189 (gimple_omp_critical_name): Likewise.
6190 (gimple_eh_dispatch_set_region): Likewise.
6191 (gimple_eh_dispatch_region): Likewise.
6192 (gimple_resx_set_region): Likewise.
6193 (gimple_resx_region): Likewise.
6194 (gimple_phi_set_arg): Likewise.
6195 (gimple_phi_arg): Likewise.
6196 (gimple_phi_set_result): Likewise.
6197 (gimple_phi_result_ptr): Likewise.
6198 (gimple_phi_result): Likewise.
6199 (gimple_phi_num_args): Likewise.
6200 (gimple_phi_capacity): Likewise.
6201 (gimple_wce_set_cleanup): Likewise.
6202 (gimple_wce_cleanup_ptr): Likewise.
6203 (gimple_try_set_cleanup): Likewise.
6204 (gimple_try_set_eval): Likewise.
6205 (gimple_try_cleanup_ptr): Likewise.
6206 (gimple_try_eval_ptr): Likewise.
6207 (gimple_eh_else_set_e_body): Likewise.
6208 (gimple_eh_else_set_n_body): Likewise.
6209 (gimple_eh_else_e_body_ptr): Likewise.
6210 (gimple_eh_else_n_body_ptr): Likewise.
6211 (gimple_eh_must_not_throw_set_fndecl): Likewise.
6212 (gimple_eh_must_not_throw_fndecl): Likewise.
6213 (gimple_eh_filter_set_failure): Likewise.
6214 (gimple_eh_filter_set_types): Likewise.
6215 (gimple_eh_filter_failure_ptr): Likewise.
6216 (gimple_eh_filter_types_ptr): Likewise.
6217 (gimple_eh_filter_types): Likewise.
6218 (gimple_catch_set_handler): Likewise.
6219 (gimple_catch_set_types): Likewise.
6220 (gimple_catch_handler_ptr): Likewise.
6221 (gimple_catch_types_ptr): Likewise.
6222 (gimple_catch_types): Likewise.
6223 (gimple_asm_string): Likewise.
6224 (gimple_asm_set_label_op): Likewise.
6225 (gimple_asm_label_op): Likewise.
6226 (gimple_asm_set_clobber_op): Likewise.
6227 (gimple_asm_clobber_op): Likewise.
6228 (gimple_asm_set_output_op): Likewise.
6229 (gimple_asm_output_op_ptr): Likewise.
6230 (gimple_asm_output_op): Likewise.
6231 (gimple_asm_set_input_op): Likewise.
6232 (gimple_asm_input_op_ptr): Likewise.
6233 (gimple_asm_input_op): Likewise.
6234 (gimple_asm_nlabels): Likewise.
6235 (gimple_asm_nclobbers): Likewise.
6236 (gimple_asm_noutputs): Likewise.
6237 (gimple_asm_ninputs): Likewise.
6238 (gimple_bind_set_block): Likewise.
6239 (gimple_bind_block): Likewise.
6240 (gimple_bind_add_seq): Likewise.
6241 (gimple_bind_add_stmt): Likewise.
6242 (gimple_bind_set_body): Likewise.
6243 (gimple_bind_body_ptr): Likewise.
6244 (gimple_bind_append_vars): Likewise.
6245 (gimple_bind_set_vars): Likewise.
6246 (gimple_bind_vars): Likewise.
6247 (gimple_call_clobber_set): Likewise.
6248 (gimple_call_use_set): Likewise.
6249 (gimple_call_set_internal_fn): Likewise.
6250 (gimple_call_set_fntype): Likewise.
6251 (gimple_call_fntype): Likewise.
6252 (gimple_omp_return_lhs_ptr): Likewise.
6253 (gimple_omp_return_lhs): Likewise.
6254 (gimple_omp_return_set_lhs): Likewise.
6255 (gimple_omp_taskreg_set_data_arg): Likewise.
6256 (gimple_omp_taskreg_data_arg_ptr): Likewise.
6257 (gimple_omp_taskreg_data_arg): Likewise.
6258 (gimple_omp_taskreg_set_child_fn): Likewise.
6259 (gimple_omp_taskreg_child_fn_ptr): Likewise.
6260 (gimple_omp_taskreg_child_fn): Likewise.
6261 (gimple_omp_taskreg_set_clauses): Likewise.
6262 (gimple_omp_taskreg_clauses_ptr): Likewise.
6263 (gimple_omp_taskreg_clauses): Likewise.
6264 (gimple_vuse): Likewise.
6265 (gimple_vdef): Likewise.
6266 (gimple_vuse_ptr): Likewise.
6267 (gimple_vdef_ptr): Likewise.
6268 * tree-inline.c (copy_debug_stmt): Likewise.
6269 * tree-phinodes.c (make_phi_node): Likewise.
6270
6271 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6272 (is_a_helper <gimple_statement_with_ops>::test): New.
6273 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6274 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6275
6276 * gimple-streamer-in.c (input_gimple_stmt): Port from union
6277 access to use of as_a.
6278 * gimple.c (gimple_build_asm_1): Likewise.
6279 (gimple_build_try): Likewise. Also, return a specific subclass
6280 rather than just gimple.
6281 (gimple_build_resx): Port from union access to use of as_a.
6282 (gimple_build_eh_dispatch): Likewise.
6283 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
6284 now that gengtype no longer provides a typed allocator function.
6285 (gimple_copy): Likewise.
6286 * gimple.h (gimple_build_try): Return a specific subclass rather
6287 than just gimple.
6288 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6289 with subclass access by making use of new return type of
6290 gimple_build_try.
6291 * tree-phinodes.c: (allocate_phi_node): Return a
6292 "gimple_statement_phi *" rather than just a gimple.
6293 (resize_phi_node): Likewise.
6294 (make_phi_node): Replace union access with subclass access by
6295 making use of new return type of allocate_phi_node.
6296 (reserve_phi_args_for_new_edge): Replace union access with as_a.
6297 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6298 than just a gimple.
6299 (remove_phi_args): Update for change to remove_phi_arg_num.
6300
6301 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6302 code field to reflect inheritance, rather than embedding of
6303 the base gimple type.
6304
6305 2013-11-19 Richard Biener <rguenther@suse.de>
6306
6307 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6308 and destructor and make fel_next a member function.
6309 (fel_next): Transform into ...
6310 (loop_iterator::next): ... this.
6311 (fel_init): Transform into ...
6312 (loop_iterator::loop_iterator): ... this.
6313 (loop_iterator::~loop_iterator): New.
6314 (FOR_EACH_LOOP): Remove loop-iterator argument.
6315 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6316 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6317 graphite-clast-to-gimple.c, graphite-scop-detection.c,
6318 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6319 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6320 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6321 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6322 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6323 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6324 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6325 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6326 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6327 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
6328 FOR_EACH_LOOP_BREAK with break.
6329
6330 2013-11-19 Richard Biener <rguenther@suse.de>
6331
6332 PR tree-optimization/59164
6333 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6334 Uncomment assert.
6335 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6336 whether we can create an epilogue loop to reflect thecases where
6337 we create one.
6338
6339 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
6340
6341 * graphite-sese-to-poly.c: Include expr.h.
6342
6343 2013-11-19 Richard Biener <rguenther@suse.de>
6344
6345 PR middle-end/58956
6346 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6347 loads into stmts that may clobber it.
6348
6349 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
6350
6351 * cgraphunit.c (symtab_terminator): New variable.
6352 (queued_nodes): Renamed from first. Use symtab_terminator as
6353 initializer.
6354 (analyze_functions): Adjust accordingly.
6355 (cgraph_process_new_functions): Return void.
6356 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6357
6358 2013-11-19 Marek Polacek <polacek@redhat.com>
6359
6360 * opts.c (common_handle_option): Add -fsanitize=null option.
6361 Turn off -fdelete-null-pointer-checks option when doing the
6362 NULL pointer checking.
6363 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6364 * tree-pass.h (make_pass_ubsan): Declare.
6365 (make_pass_sanopt): Declare.
6366 * timevar.def (TV_TREE_UBSAN): New timevar.
6367 * passes.def: Add pass_sanopt and pass_ubsan.
6368 * ubsan.h (ubsan_null_ckind): New enum.
6369 (ubsan_mismatch_data): New struct.
6370 (ubsan_expand_null_ifn): Declare.
6371 (ubsan_create_data): Adjust declaration.
6372 (ubsan_type_descriptor): Likewise.
6373 * asan.c: Include "ubsan.h".
6374 (pass_data_sanopt): New pass.
6375 (execute_sanopt): New function.
6376 (gate_sanopt): Likewise.
6377 (make_pass_sanopt): Likewise.
6378 (class pass_sanopt): New class.
6379 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6380 gimple-iterator.h and cfgloop.h.
6381 (PROB_VERY_UNLIKELY): Define.
6382 (tree_type_map_hash): New function.
6383 (ubsan_type_descriptor): Add new parameter.
6384 Improve type name generation.
6385 (ubsan_create_data): Add new parameter. Add pointer data into
6386 ubsan structure.
6387 (ubsan_expand_null_ifn): New function.
6388 (instrument_member_call): Likewise.
6389 (instrument_mem_ref): Likewise.
6390 (instrument_null): Likewise.
6391 (ubsan_pass): Likewise.
6392 (gate_ubsan): Likewise.
6393 (make_pass_ubsan): Likewise.
6394 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6395 (class pass_ubsan): New class.
6396 (pass_data_ubsan): New pass.
6397 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6398 * internal-fn.c (expand_UBSAN_NULL): New function.
6399 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6400 even when !flag_toplevel_reorder.
6401 * internal-fn.def (UBSAN_NULL): New.
6402
6403 2013-11-19 Jan Hubicka <jh@suse.cz>
6404
6405 * cgraph.c (cgraph_create_indirect_edge): Use
6406 get_polymorphic_call_info.
6407 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6408 maybe_in_construction and maybe_derived_type.
6409 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6410 (ipa_dummy_polymorphic_call_context): New global var.
6411 (possible_polymorphic_call_targets): Add context paramter.
6412 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6413 (possible_polymorphic_call_target_p): Likewise.
6414 (get_polymorphic_call_info): New function.
6415 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6416 (add_type_duplicate): Remove forgotten debug output.
6417 (method_class_type): Add sanity check.
6418 (maybe_record_node): Add FINALP parameter.
6419 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6420 by info by get_binfo_at_offset.
6421 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6422 parameters; pass them to record-binfo.
6423 (polymorphic_call_target_d): Add context and FINAL.
6424 (polymorphic_call_target_hasher::hash): Hash context.
6425 (polymorphic_call_target_hasher::equal): Compare context.
6426 (free_polymorphic_call_targets_hash):
6427 (get_class_context): New function.
6428 (contains_type_p): New function.
6429 (get_polymorphic_call_info): New function.
6430 (walk_bases): New function.
6431 (possible_polymorphic_call_targets): Add context parameter; honnor it.
6432 (dump_possible_polymorphic_call_targets): Dump context.
6433 (possible_polymorphic_call_target_p): Add context.
6434 (update_type_inheritance_graph): Update comment.s
6435 (ipa_set_jf_known_type): Assert that compoentn type is known.
6436 (ipa_note_param_call): Do not tamper with offsets.
6437 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6438 outer type.
6439 (update_indirect_edges_after_inlining): Likewise.
6440 (ipa_write_indirect_edge_info): Stream new fields.
6441 (ipa_read_indirect_edge_info): Stream in new fields.
6442
6443 2013-11-19 Jan Hubicka <jh@suse.cz>
6444
6445 * tree-pretty-print.c (dump_generic_node): Print class type of
6446 OBJ_TYPE_REF.
6447
6448 2013-11-19 Joey Ye <joey.ye@arm.com>
6449
6450 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6451 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6452 for new option.
6453 * config/arm/arm.c (arm_option_override): By default disable
6454 -marm-pic-data-is-text-relative.
6455 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6456 (arm_assemble_integer): Likewise.
6457 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6458 New macro to initialize -marm-pic-data-is-text-relative.
6459
6460 2013-11-19 Bin Cheng <bin.cheng@arm.com>
6461
6462 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6463 (address_cost_data): New field.
6464 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6465 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
6466
6467 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6468
6469 * config/aarch64/aarch64.md: Remove v8type from all insns.
6470
6471 2013-11-19 Richard Biener <rguenther@suse.de>
6472
6473 PR tree-optimization/57517
6474 * tree-predcom.c (combinable_refs_p): Verify the combination
6475 is always executed when the refs are.
6476
6477 2013-11-19 Jeff Law <law@redhat.com>
6478
6479 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6480 (copy_phi_arg_into_existing_phi): New function.
6481 (any_remaining_duplicated_blocks): Likewise.
6482 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6483 blocks on a jump threading path.
6484
6485 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6486 thread through a joiner which has the latch edge.
6487
6488 2013-11-19 Jan Hubicka <jh@suse.cz>
6489
6490 * md.texi (setmem): Document new parameter.
6491 * optabs.c (maybe_gen_insn): Support 9 operands.
6492 * builtins.c (determine_block_size): Add probable_max_size;
6493 support anti-ranges.
6494 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6495 probable_max_size.
6496 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6497 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6498 Likewise.
6499 * expr.h (emit_block_move_hints, clear_storage_hints,
6500 set_storage_via_setmem): Update prototype.
6501 * i386.md (setmem, movmem patterns): Add 9th operand.
6502 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6503 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6504 argument; pass it to decide_alg.
6505
6506 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6507
6508 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6509 (n_basic_blocks_for_fn): ...this.
6510
6511 (n_basic_blocks): Eliminate macro as work towards making uses of
6512 cfun be explicit.
6513
6514 * cfgloop.c (init_loops_structure): Update for renaming of
6515 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6516 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6517 * ipa-utils.c (ipa_merge_profiles): Likewise.
6518 * lto-streamer-in.c (make_new_block): Likewise.
6519 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6520 (dump_function_to_file): Likewise.
6521
6522 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6523 macro with "n_basic_blocks_for_fn (cfun)".
6524 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6525 (duplicate_computed_gotos): Likewise.
6526 (reorder_basic_blocks): Likewise.
6527 * bt-load.c (augment_live_range): Likewise.
6528 * cfg.c (expunge_block): Likewise.
6529 (compact_blocks): Likewise.
6530 * cfganal.c (single_pred_before_succ_order): Likewise.
6531 (compute_idf): Likewise.
6532 (flow_dfs_compute_reverse_init): Likewise.
6533 (pre_and_rev_post_order_compute): Likewise.
6534 (pre_and_rev_post_order_compute_fn): Likewise.
6535 (inverted_post_order_compute): Likewise.
6536 (post_order_compute): Likewise.
6537 (print_edge_list): Likewise.
6538 (find_unreachable_blocks): Likewise.
6539 (mark_dfs_back_edges): Likewise.
6540 * cfgcleanup.c (try_optimize_cfg): Likewise.
6541 (try_forward_edges): Likewise.
6542 * cfghooks.c (dump_flow_info): Likewise.
6543 * cfgloop.c (verify_loop_structure): Likewise.
6544 (get_loop_body): Likewise.
6545 (flow_loops_find): Likewise.
6546 * cfgloopmanip.c (add_loop): Likewise.
6547 (remove_path): Likewise.
6548 (find_path): Likewise.
6549 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6550 (rtl_verify_bb_layout): Likewise.
6551 (entry_of_function): Likewise.
6552 (rtl_create_basic_block): Likewise.
6553 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6554 * cprop.c (one_cprop_pass): Likewise.
6555 (is_too_expensive): Likewise.
6556 * df-core.c (df_compute_cfg_image): Likewise.
6557 (df_compact_blocks): Likewise.
6558 (df_worklist_dataflow_doublequeue): Likewise.
6559 * dominance.c (calculate_dominance_info): Likewise.
6560 (calc_dfs_tree): Likewise.
6561 (calc_dfs_tree_nonrec): Likewise.
6562 (init_dom_info): Likewise.
6563 * domwalk.c (cmp_bb_postorder): Likewise.
6564 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6565 (generate_setjmp_warnings): Likewise.
6566 * fwprop.c (build_single_def_use_links): Likewise.
6567 * gcse.c (is_too_expensive): Likewise.
6568 (one_code_hoisting_pass): Likewise.
6569 (one_pre_gcse_pass): Likewise.
6570 * graphite.c (graphite_initialize): Likewise.
6571 * haifa-sched.c (haifa_sched_init): Likewise.
6572 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6573 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6574 * ira-build.c (ira_build): Likewise.
6575 * lcm.c (compute_nearerout): Likewise.
6576 (compute_available): Likewise.
6577 (compute_laterin): Likewise.
6578 (compute_antinout_edge): Likewise.
6579 * lra-lives.c (lra_create_live_ranges): Likewise.
6580 * lra.c (has_nonexceptional_receiver): Likewise.
6581 * mcf.c (create_fixup_graph): Likewise.
6582 * profile.c (branch_prob): Likewise.
6583 * reg-stack.c (convert_regs_2): Likewise.
6584 * regrename.c (regrename_analyze): Likewise.
6585 * reload1.c (has_nonexceptional_receiver): Likewise.
6586 * reorg.c (dbr_schedule): Likewise.
6587 * sched-deps.c (sched_deps_init): Likewise.
6588 * sched-ebb.c (schedule_ebbs): Likewise.
6589 * sched-rgn.c (extend_regions): Likewise.
6590 (schedule_insns): Likewise.
6591 (sched_rgn_init): Likewise.
6592 (extend_rgns): Likewise.
6593 (haifa_find_rgns): Likewise.
6594 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6595 (sel_recompute_toporder): Likewise.
6596 * sel-sched.c (run_selective_scheduling): Likewise.
6597 * store-motion.c (one_store_motion_pass): Likewise.
6598 (remove_reachable_equiv_notes): Likewise.
6599 * tracer.c (tracer): Likewise.
6600 (tail_duplicate): Likewise.
6601 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6602 (dump_cfg_stats): Likewise.
6603 (gimple_dump_cfg): Likewise.
6604 (create_bb): Likewise.
6605 (build_gimple_cfg): Likewise.
6606 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6607 * tree-inline.c (optimize_inline_calls): Likewise.
6608 (fold_marked_statements): Likewise.
6609 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6610 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6611 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6612 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6613 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6614 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6615 * tree-ssa-pre.c (do_pre): Likewise.
6616 (init_pre): Likewise.
6617 (compute_avail): Likewise.
6618 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6619 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6620 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6621 (init_worklist): Likewise.
6622 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6623 * var-tracking.c (variable_tracking_main_1): Likewise.
6624 (vt_find_locations): Likewise.
6625 (vt_stack_adjustments): Likewise.
6626 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6627 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6628
6629 2013-11-18 Jan Hubicka <jh@suse.cz>
6630
6631 * profile.c (compute_branch_probabilities): Do not sanity check
6632 run_max.
6633
6634 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6635
6636 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6637 GET_MODE_PRECISION.
6638 * fold-const.c (fold_single_bit_test_into_sign_test)
6639 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6640
6641 2013-11-18 Teresa Johnson <tejohnson@google.com>
6642
6643 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6644 cfglayout after bb reordering.
6645 * passes.def: Move compgotos before bb reordering since it goes into
6646 cfglayout.
6647
6648 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6649
6650 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6651 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6652 static.
6653 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6654 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6655 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6656 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6657 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6658 Remove all_lto_gen_passes.
6659 * passes.c (pass_manager::dump_passes): Remove its use.
6660 (pass_manager::register_pass): Likewise.
6661 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6662 (pass_manager::pass_manager): Don't initialize or use it.
6663 (write_lto): New static function.
6664 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6665 instead of using all_lto_gen_passes.
6666 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6667 pass_ipa_lto_finish_out): Delete.
6668 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6669 make_pass_ipa_lto_finish_out): Don't declare.
6670
6671 2013-11-18 Jeff Law <law@redhat.com>
6672
6673 * tree-ssa-threadupdate.c (redirection_data): Record two
6674 duplicated blocks instead of just one.
6675 (local_info): Explain why we don't create a template for the
6676 second duplicated block in a thread path.
6677 (create_block_for_threading): Accept argument indicating array
6678 index into redirection_data to store its result.
6679 (lookup_redirection_data): Initialize both duplicate blocks.
6680 (ssa_create_duplicates): If a jump threading path needs multiple
6681 blocks duplicated, then duplicate them.
6682 (ssa_fix_duplicate_block_edges): Corresponding changes.
6683 (ssa_fixup_template_block, thread_single_edge): Likewise.
6684
6685 2013-11-18 Marek Polacek <polacek@redhat.com>
6686
6687 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6688
6689 2013-11-18 Andrew Pinski <apinski@cavium.com>
6690 Steve Ellcey <sellcey@mips.com>
6691
6692 PR target/56552
6693 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6694 type restriction from equality_operator on conditonal move.
6695 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6696 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6697
6698 2013-11-18 Jeff Law <law@redhat.com>
6699
6700 * tree-ssa-threadupdate.c: Fix file block comment.
6701 Fix minor indention issue.
6702
6703 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6704
6705 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6706 ix86_address_subreg_operand. Move subreg checks to
6707 ix86_validate_address_register. Move address override check to
6708 ix86_legitimate_address_p.
6709 (ix86_validate_address_register): New function.
6710 (ix86_legitimate_address_p): Call ix86_validate_address_register
6711 to validate base and index registers. Add address override check
6712 from ix86_decompose_address.
6713 (ix86_decompose_address): Remove.
6714
6715 2013-11-18 Richard Biener <rguenther@suse.de>
6716
6717 PR tree-optimization/59125
6718 PR tree-optimization/54570
6719 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6720 is not complete do not treat component-references with offset zero
6721 but different fields as equal.
6722 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6723 (compute_object_sizes): Apply TLC. Propagate the constant
6724 results into all uses and fold their stmts.
6725 * passes.def (pass_all_optimizations): Move pass_object_sizes
6726 after the first pass_forwprop and before pass_fre.
6727
6728 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6729
6730 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6731 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6732 (tree_ctz): Remove cast to unsigned type.
6733 * builtins.c (fold_builtin_memory_op): Likewise.
6734 * dwarf2out.c (descr_info_loc): Likewise.
6735 * godump.c (go_output_typedef): Likewise.
6736 * omp-low.c (expand_omp_simd): Likewise.
6737 * stor-layout.c (excess_unit_span): Likewise.
6738 * tree-object-size.c (addr_object_size): Likewise.
6739 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6740 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6741 (simplify_rotate): Likewise.
6742 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6743 (handle_pointer_plus): Likewise.
6744 * tree-switch-conversion.c (check_range): Likewise.
6745 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6746 * tsan.c (instrument_builtin_call): Likewise.
6747 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6748 * trans-mem.c (tm_log_add): Likewise.
6749 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6750 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6751 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6752 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6753
6754 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6755
6756 * tree.h (host_integerp, tree_low_cst): Delete.
6757 * tree.c (host_integerp, tree_low_cst): Delete.
6758
6759 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6760
6761 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6762 than tree_low_cst.
6763 * fold-const.c (fold_binary_loc): Likewise.
6764 * expr.c (store_constructor): Use tree_to_uhwi rather than
6765 tree_low_cst.
6766 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6767 * stmt.c (emit_case_dispatch_table): Likewise.
6768 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6769
6770 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6771
6772 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6773 config/aarch64/aarch64.c, config/alpha/predicates.md,
6774 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6775 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6776 config/mep/mep-pragma.c, config/mips/mips.c,
6777 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6778 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6779 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6780 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6781 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6782 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6783 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6784 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6785 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6786 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6787
6788 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6789
6790 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6791 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6792 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6793 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6794 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6795 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6796 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6797 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6798 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6799 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6800 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6801
6802 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6803
6804 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6805 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6806
6807 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6808
6809 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6810 than host_integerp.
6811
6812 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6813
6814 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6815 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6816 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6817 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6818 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6819 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6820 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6821 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6822 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6823 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6824 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6825 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6826 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6827 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6828 tree_fits_uhwi_p throughout.
6829
6830 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6831
6832 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6833 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6834 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6835 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6836 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6837 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6838 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6839 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6840 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6841 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6842 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6843 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6844 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6845 throughout.
6846
6847 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6848
6849 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6850 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6851
6852 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6853
6854 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6855 flag if it kills its address, not its post-increment.
6856
6857 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6858
6859 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6860 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6861 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6862 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6863 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6864 (gimple_call_with_bounds_p): New.
6865 (gimple_call_set_with_bounds): New.
6866 (gimple_call_num_nobnd_args): Remove.
6867 (gimple_call_nobnd_arg): Remove.
6868 * tree.h (CALL_WITH_BOUNDS_P): New.
6869 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6870
6871 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6872
6873 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6874 (symtab_node_name): Rename to symtab_node::name.
6875 (cgraph_node_asm_name): Remove.
6876 (varpool_node_asm_name): Remove.
6877 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6878 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6879 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6880 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6881 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6882
6883 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6884
6885 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6886 * config/arm/arm.c (arm_cortex_a53_tune): New.
6887 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6888
6889 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6890
6891 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6892 (case ${target}): Add bdver4.
6893 * config/i386/bdver3.md: Add bdver4.
6894 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6895 -march=native recognize bdver4 processors.
6896 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6897 bdver4 def_and_undef
6898 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6899 (m_BDVER4): New definition.
6900 (m_AMD_MULTIPLE): Includes m_BDVER4.
6901 (processor_target_table): Add bdver4 entry.
6902 (static const char *const cpu_names): Add bdver4 entry.
6903 (software_prefetching_beneficial_p): Add bdver3.
6904 (ix86_option_override_internal): Add bdver4 instruction sets.
6905 (ix86_issue_rate): Add bdver4.
6906 (ix86_adjust_cost): Add bdver4.
6907 (ia32_multipass_dfa_lookahead): Add bdver4.
6908 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6909 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6910 (has_dispatch): Add bdver4.
6911 * config/i386/i386.h (TARGET_BDVER4): New definition.
6912 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6913 (enum processor_type): Add PROCESSOR_BDVER4.
6914 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6915 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6916 * doc/extend.texi: Add details about bdver4.
6917 * doc/invoke.texi: Add details about bdver4. Add
6918 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6919
6920 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6921
6922 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6923 sdmode_stack_slot also in little-endian mode.
6924
6925 2013-11-17 Jan Hubicka <jh@suse.cz>
6926
6927 * doc/md.texi (setmem, movstr): Update documentation.
6928 * builtins.c (determine_block_size): New function.
6929 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6930 (expand_builtin_memset_args): Use it and pass it to
6931 set_storage_via_setmem.
6932 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6933 parameters; update call to expander.
6934 (emit_block_move_hints): Add min_size/max_size parameters.
6935 (clear_storage_hints): Likewise.
6936 (set_storage_via_setmem): Likewise.
6937 (clear_storage): Update.
6938 * expr.h (emit_block_move_hints, clear_storage_hints,
6939 set_storage_via_setmem): Update prototypes.
6940 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6941 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6942 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6943 * i386.md (movmem, setmem): Pass parameters.
6944
6945 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6946
6947 PR target/59153
6948 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6949 reject non-integer subregs.
6950 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6951 Move check for invalid x32 constant addresses ...
6952 (ix86_legitimate_address_p): ... here.
6953
6954 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6955
6956 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6957 parameter and use it in REG_FRAME_RELATED_EXPR note.
6958 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6959 parameter.
6960 (rs6000_emit_prologue): Likewise, but for little endian VSX
6961 stores, pass the source register of the store instead.
6962
6963 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6964
6965 * gimple.h: Reorder prototypes to match .c declaration order, and
6966 remove protyotypes for functions not in gimple.c.
6967 (LABEL): Move to tree-into-ssa.c.
6968 * gimple.c: Remove unused prototypes.
6969 (get_base_address): Move to tree.c.
6970 * tree.c (get_base_address): Relocate from gimple.c.
6971 * builtins.h (validate_gimple_arglist): Add prototype.
6972 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6973 * cfgexpand.h: New File.
6974 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6975 * tree.h (build_addr): Move to tree-nested.h.
6976 * tree-nested.h: New File.
6977 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6978 prototypes.
6979 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6980 * ipa-inline-analysis.c: Include cfgexpand.h.
6981 * cgraphunit.c: Include tree-nested.h.
6982 * omp-low.c: Likewise.
6983 * tree-parloops.c: Likewise.
6984 * gimple-low.h: Likewise.
6985 * tree-profile.h: Likewise.
6986 * expr.c: Include cfgexpand.h.
6987 * tree-affine.c: Likewise.
6988 * tree-ssa.c: Likewise.
6989 * tree-ssa-loop-im.c: Include trans-mem.h.
6990 * tree-ssa-tail-merge.c: Likewise.
6991 * value-prof.c: Include builtins.h and tree-nested.h.
6992 * tree-into-ssa.c (LABEL): Define here.
6993
6994 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6995
6996 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6997 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6998 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6999 (make_pass_arc_predicate_delay_insns): New function.
7000 (arc_init): Register pass_arc_predicate_delay_insns if
7001 flag_delayed_branch is active.
7002
7003 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7004
7005 * config/arc/constraints.md (Rcq): Simplify register number test.
7006
7007 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7008
7009 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
7010
7011 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
7012
7013 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
7014 is null.
7015
7016 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7017
7018 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
7019 * gimple-pretty-print.c (dump_omp_for): Add case for
7020 GF_OMP_FOR_KIND_CILKSIMD.
7021 * gimple.h (enum gf_mask): Restructure entries to add
7022 GF_OMP_FOR_KIND_CILKSIMD.
7023 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7024 (gimplify_omp_for): Handle CILK_SIMD.
7025 (gimplify_expr): Add ccase for CILK_SIMD.
7026 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7027 (build_outer_var_ref): Same.
7028 (check_omp_nesting_restrictions): Same.
7029 (lower_rec_input_clauses): Same.
7030 (lower_lastprivate_clauses): Same.
7031 (expand_omp_for): Same.
7032 (execute_expand_omp): Check flag_enable_cilkplus.
7033 (execute_lower_omp): Same.
7034 (diagnose_sb_0): Handle CILK_SIMD.
7035 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7036 (setjmp_or_longjmp_p): New.
7037 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7038 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7039 * tree.def: Add tree code for CILK_SIMD.
7040
7041 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7042
7043 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7044 Remove.
7045 (altivec_vperm_<mode>): Revert earlier little endian change.
7046 (*altivec_vperm_<mode>_internal): Remove.
7047 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7048 (*altivec_vperm_<mode>_uns_internal): Remove.
7049 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7050
7051 2013-11-15 Jeff Law <law@redhat.com>
7052
7053 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7054 has_abnormal_or_outgoing_edge. Check for EH edges as well.
7055 * gimple-ssa-isolate-paths.c
7056 (find_implicit_erroneous_behaviour): Corresponding changes.
7057 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7058 (find_explicit_erroneous_behaviour): Likewise.
7059
7060 2013-11-15 Jeff Law <law@redhat.com>
7061
7062 * ifcvt.c (find_cond_trap): Properly handle case where
7063 trap_bb == else_bb.
7064
7065 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
7066
7067 * configure: Regenerate.
7068
7069 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
7070
7071 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7072 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7073 where it is incorrect or missing.
7074
7075 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7076
7077 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7078 host_integerp test.
7079 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7080 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7081 constant.
7082 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7083 pair with a TREE_CODE test and TREE_INT_CST_LOW.
7084 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7085
7086 2013-11-15 Richard Biener <rguenther@suse.de>
7087
7088 PR tree-optimization/50262
7089 * tree-ssa-alias.h (struct pt_solution): Split
7090 vars_contains_global into vars_contains_nonlocal,
7091 vars_contains_escaped and vars_contains_escaped_heap.
7092 * tree-ssa-structalias.c (label_visit): Expand comment.
7093 (handle_lhs_call): Adjust comment.
7094 (set_uids_in_ptset): Set the new flags appropriately.
7095 (pt_solution_set): Adjust.
7096 (pt_solution_set_var): Likewise.
7097 (pt_solution_ior_into): Likewise.
7098 (pt_solution_includes_global): Likewise.
7099 (pt_solutions_intersect_1): Optimize escaped handling.
7100 (compute_points_to_sets): Remove heap variable globalization.
7101 (ipa_escaped_pt): Adjust initializer.
7102 (pass_data_ipa_pta): Do not run TODO_update_ssa.
7103 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7104 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7105
7106 2013-11-15 Richard Biener <rguenther@suse.de>
7107
7108 * tree-loop-distribution.c (tree_loop_distribution): Make sure
7109 to distribute all stores.
7110
7111 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7112
7113 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7114
7115 2013-11-15 Joseph Myers <joseph@codesourcery.com>
7116
7117 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7118 * configure.ac: Determine target_header_dir earlier.
7119 (--with-glibc-version): New configure option.
7120 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7121 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7122 * configure: Regenerate.
7123 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7124 native toolchains for default.
7125 (--with-glibc-version): Document.
7126
7127 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
7128
7129 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7130
7131 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
7132
7133 * lto-streamer-in.c (input function): Call cgraph_create_node if
7134 cgraph_get_node failed.
7135
7136 2013-11-14 Olivier Hainque <hainque@adacore.com>
7137
7138 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7139 defer allocation of DECL_IGNORED_P variables at toplevel unless really
7140 small. Factorize size threshold computation from the existing one.
7141 (expand_used_vars): Refine comment.
7142
7143 2013-11-14 Cong Hou <congh@google.com>
7144
7145 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7146 address field as it can be obtained from dr. Rename the struct.
7147 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7148 steps of data references during sort.
7149 (vect_prune_runtime_alias_test_list): Adjust with the change to
7150 struct dr_with_seg_len.
7151 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7152 Adjust with the change to struct dr_with_seg_len.
7153
7154 2013-11-14 Jeff Law <law@redhat.com>
7155
7156 PR middle-end/59127
7157 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7158 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7159 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7160 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7161 edges, then ignore it. If the statement exhibiting erroneous
7162 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7163 then we can not optimize.
7164 (find_explicit_erroneous_behaviour): Likewise.
7165
7166 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
7167
7168 * gimplify-me.h: New file. Add prototypes.
7169 * gimplify.h: Don't include gimple.h.
7170 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7171 Relocate from gimple.h.
7172 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7173 is_gimple_sizepos): Move to gimplify.h.
7174 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7175 (enum gsi_iterator_update): Move to gimple-iterator.h.
7176 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7177 * gimplify-me.c: New File.
7178 (force_gimple_operand_1, force_gimple_operand,
7179 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7180 gimple_regimplify_operands): Relocate from gimplify.c.
7181 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7182 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7183 gimple_regimplify_operands): Move to gimplify-me.c.
7184 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7185 from gimple.h.
7186 * Makefile.in (OBJS): Add gimplify-me.o
7187 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7188 required.
7189 * cfgloopmanip.c: Likewise.
7190 * cgraphunit.c: Likewise.
7191 * cilk-common.c: Likewise.
7192 * fold-const.c: Likewise.
7193 * function.c: Likewise.
7194 * gimple-expr.c: Likewise.
7195 * gimple-fold.c: Likewise.
7196 * gimple-ssa-strength-reduction.c: Likewise.
7197 * gimple.c: Likewise.
7198 * graphite-clast-to-gimple.c: Likewise.
7199 * graphite-sese-to-poly.c: Likewise.
7200 * ipa-prop.c: Likewise.
7201 * ipa-split.c: Likewise.
7202 * ipa.c: Likewise.
7203 * langhooks.c: Likewise.
7204 * omp-low.c: Likewise.
7205 * sese.c: Likewise.
7206 * stor-layout.c: Likewise.
7207 * targhooks.c: Likewise.
7208 * trans-mem.c: Likewise.
7209 * tree-affine.c: Likewise.
7210 * tree-cfg.c: Likewise.
7211 * tree-cfgcleanup.c: Likewise.
7212 * tree-complex.c: Likewise.
7213 * tree-if-conv.c: Likewise.
7214 * tree-inline.c: Likewise.
7215 * tree-loop-distribution.c: Likewise.
7216 * tree-nested.c: Likewise.
7217 * tree-parloops.c: Likewise.
7218 * tree-predcom.c: Likewise.
7219 * tree-profile.c: Likewise.
7220 * tree-scalar-evolution.c: Likewise.
7221 * tree-sra.c: Likewise.
7222 * tree-ssa-address.c: Likewise.
7223 * tree-ssa-ccp.c: Likewise.
7224 * tree-ssa-dce.c: Likewise.
7225 * tree-ssa-forwprop.c: Likewise.
7226 * tree-ssa-ifcombine.c: Likewise.
7227 * tree-ssa-loop-im.c: Likewise.
7228 * tree-ssa-loop-ivopts.c: Likewise.
7229 * tree-ssa-loop-manip.c: Likewise.
7230 * tree-ssa-loop-niter.c: Likewise.
7231 * tree-ssa-loop-prefetch.c: Likewise.
7232 * tree-ssa-loop-unswitch.c: Likewise.
7233 * tree-ssa-math-opts.c: Likewise.
7234 * tree-ssa-phiopt.c: Likewise.
7235 * tree-ssa-phiprop.c: Likewise.
7236 * tree-ssa-pre.c: Likewise.
7237 * tree-ssa-propagate.c: Likewise.
7238 * tree-ssa-reassoc.c: Likewise.
7239 * tree-ssa-sccvn.c: Likewise.
7240 * tree-ssa-strlen.c: Likewise.
7241 * tree-ssa.c: Likewise.
7242 * tree-switch-conversion.c: Likewise.
7243 * tree-tailcall.c: Likewise.
7244 * tree-vect-data-refs.c: Likewise.
7245 * tree-vect-generic.c: Likewise.
7246 * tree-vect-loop-manip.c: Likewise.
7247 * tree-vect-loop.c: Likewise.
7248 * tree-vect-patterns.c: Likewise.
7249 * tree-vect-stmts.c: Likewise.
7250 * tree.c: Likewise.
7251 * tsan.c: Likewise.
7252 * value-prof.c: Likewise.
7253 * config/aarch64/aarch64.c: Likewise.
7254 * config/alpha/alpha.c: Likewise.
7255 * config/darwin.c: Likewise.
7256 * config/i386/i386.c: Likewise.
7257 * config/ia64/ia64.c: Likewise.
7258 * config/mep/mep.c: Likewise.
7259 * config/mips/mips.c: Likewise.
7260 * config/rs6000/rs6000.c: Likewise.
7261 * config/s390/s390.c: Likewise.
7262 * config/sh/sh.c: Likewise.
7263 * config/sparc/sparc.c: Likewise.
7264 * config/spu/spu.c: Likewise.
7265 * config/stormy16/stormy16.c: Likewise.
7266 * config/tilegx/tilegx.c: Likewise.
7267 * config/tilepro/tilepro.c: Likewise.
7268 * config/xtensa/xtensa.c: Likewise.
7269
7270 2013-11-14 Diego Novillo <dnovillo@google.com>
7271
7272 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7273
7274 2013-11-14 Diego Novillo <dnovillo@google.com>
7275
7276 * tree.h: Include fold-const.h.
7277 (aggregate_value_p): Moved to function.h.
7278 (alloca_call_p): Moved to calls.h.
7279 (allocate_struct_function): Moved to function.h.
7280 (apply_tm_attr): Moved to attribs.h.
7281 (array_at_struct_end_p): Moved to expr.h.
7282 (array_ref_element_size): Moved to tree-dfa.h.
7283 (array_ref_low_bound): Moved to tree-dfa.h.
7284 (array_ref_up_bound): Moved to tree.h.
7285 (assemble_alias): Moved to cgraph.h.
7286 (bit_from_pos): Moved to stor-layout.h.
7287 (build_addr): Moved to tree-nested.h.
7288 (build_duplicate_type): Moved to tree-inline.h.
7289 (build_fold_addr_expr): Moved to fold-const.h.
7290 (build_fold_addr_expr_with_type): Moved to fold-const.h.
7291 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7292 (build_fold_indirect_ref): Moved to fold-const.h.
7293 (build_fold_indirect_ref_loc): Moved to fold-const.h.
7294 (build_personality_function): Moved to tree.h.
7295 (build_range_check): Moved to fold-const.h.
7296 (build_simple_mem_ref): Moved to fold-const.h.
7297 (build_simple_mem_ref_loc): Moved to fold-const.h.
7298 (build_tm_abort_call): Moved to trans-mem.h.
7299 (byte_from_pos): Moved to stor-layout.h.
7300 (call_expr_flags): Moved to calls.h.
7301 (can_move_by_pieces): Moved to expr.h.
7302 (categorize_ctor_elements): Moved to expr.h.
7303 (change_decl_assembler_name): Moved to gcc-symtab.h.
7304 (combine_comparisons): Moved to fold-const.h.
7305 (complete_ctor_at_level_p): Moved to tree.h.
7306 (component_ref_field_offset): Moved to tree-dfa.h.
7307 (compute_builtin_object_size): Moved to tree-object-size.h.
7308 (compute_record_mode): Moved to stor-layout.h.
7309 (constant_boolean_node): Moved to fold-const.h.
7310 (constructor_static_from_elts_p): Moved to varasm.h.
7311 (cxx11_attribute_p): Moved to attribs.h.
7312 (debug_body): Moved to print-tree.h.
7313 (debug_find_tree): Moved to tree-inline.h.
7314 (debug_fold_checksum): Moved to fold-const.h.
7315 (debug_head): Moved to print-tree.h.
7316 (debug_head): Moved to print-tree.h.
7317 (debug_raw): Moved to print-tree.h.
7318 (debug_tree): Moved to print-tree.h.
7319 (debug_vec_tree): Moved to print-tree.h.
7320 (debug_verbose): Moved to print-tree.h.
7321 (debug_verbose): Moved to print-tree.h.
7322 (decl_attributes): Moved to attribs.h.
7323 (decl_binds_to_current_def_p): Moved to varasm.h.
7324 (decl_default_tls_model): Moved to varasm.h.
7325 (decl_replaceable_p): Moved to varasm.h.
7326 (div_if_zero_remainder): Moved to fold-const.h.
7327 (double_int mem_ref_offset): Moved to fold-const.h.
7328 (dump_addr): Moved to print-tree.h.
7329 (element_precision): Moved to machmode.h.
7330 (expand_dummy_function_end): Moved to function.h.
7331 (expand_function_end): Moved to function.h.
7332 (expand_function_start): Moved to function.h.
7333 (expand_label): Moved to stmt.h.
7334 (expr_first): Moved to tree-iterator.h.
7335 (expr_last): Moved to tree-iterator.h.
7336 (finalize_size_functions): Moved to stor-layout.h.
7337 (finish_builtin_struct): Moved to stor-layout.h.
7338 (finish_record_layout): Moved to stor-layout.h.
7339 (fixup_signed_type): Moved to stor-layout.h.
7340 (fixup_unsigned_type): Moved to stor-layout.h.
7341 (flags_from_decl_or_type): Moved to calls.h.
7342 (fold): Moved to fold-const.h.
7343 (fold_abs_const): Moved to fold-const.h.
7344 (fold_binary): Moved to fold-const.h.
7345 (fold_binary_loc): Moved to fold-const.h.
7346 (fold_binary_to_constant): Moved to fold-const.h.
7347 (fold_build1): Moved to fold-const.h.
7348 (fold_build1_initializer_loc): Moved to fold-const.h.
7349 (fold_build1_loc): Moved to fold-const.h.
7350 (fold_build1_stat_loc): Moved to fold-const.h.
7351 (fold_build2): Moved to fold-const.h.
7352 (fold_build2_initializer_loc): Moved to fold-const.h.
7353 (fold_build2_loc): Moved to fold-const.h.
7354 (fold_build2_stat_loc): Moved to fold-const.h.
7355 (fold_build3): Moved to fold-const.h.
7356 (fold_build3_loc): Moved to fold-const.h.
7357 (fold_build3_stat_loc): Moved to fold-const.h.
7358 (fold_build_call_array): Moved to fold-const.h.
7359 (fold_build_call_array_initializer): Moved to fold-const.h.
7360 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7361 (fold_build_call_array_loc): Moved to fold-const.h.
7362 (fold_build_cleanup_point_expr): Moved to fold-const.h.
7363 (fold_convert): Moved to fold-const.h.
7364 (fold_convert_loc): Moved to fold-const.h.
7365 (fold_convertible_p): Moved to fold-const.h.
7366 (fold_defer_overflow_warnings): Moved to fold-const.h.
7367 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7368 (fold_fma): Moved to fold-const.h.
7369 (fold_ignored_result): Moved to fold-const.h.
7370 (fold_indirect_ref): Moved to fold-const.h.
7371 (fold_indirect_ref_1): Moved to fold-const.h.
7372 (fold_indirect_ref_loc): Moved to fold-const.h.
7373 (fold_read_from_constant_string): Moved to fold-const.h.
7374 (fold_real_zero_addition_p): Moved to fold-const.h.
7375 (fold_single_bit_test): Moved to fold-const.h.
7376 (fold_strip_sign_ops): Moved to fold-const.h.
7377 (fold_ternary): Moved to fold-const.h.
7378 (fold_ternary_loc): Moved to fold-const.h.
7379 (fold_unary): Moved to tree-data-ref.h.
7380 (fold_unary_ignore_overflow): Moved to fold-const.h.
7381 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7382 (fold_unary_loc): Moved to fold-const.h.
7383 (fold_unary_to_constant): Moved to fold-const.h.
7384 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7385 (fold_undefer_overflow_warnings): Moved to fold-const.h.
7386 (folding_initializer): Moved to fold-const.h.
7387 (free_temp_slots): Moved to function.h.
7388 (generate_setjmp_warnings): Moved to function.h.
7389 (get_attribute_name): Moved to attribs.h.
7390 (get_identifier): Moved to stringpool.h.
7391 (get_identifier_with_length): Moved to stringpool.h.
7392 (get_inner_reference): Moved to tree.h.
7393 (gimple_alloca_call_p): Moved to calls.h.
7394 (gimplify_parameters): Moved to function.h.
7395 (highest_pow2_factor): Moved to expr.h.
7396 (indent_to): Moved to print-tree.h.
7397 (init_attributes): Moved to attribs.h.
7398 (init_dummy_function_start): Moved to function.h.
7399 (init_function_start): Moved to function.h.
7400 (init_inline_once): Moved to tree-inline.h.
7401 (init_object_sizes): Moved to tree-object-size.h.
7402 (init_temp_slots): Moved to function.h.
7403 (init_tree_optimization_optabs): Moved to optabs.h.
7404 (initialize_sizetypes): Moved to stor-layout.h.
7405 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7406 (initializer_constant_valid_p): Moved to varasm.h.
7407 (int_const_binop): Moved to fold-const.h.
7408 (internal_reference_types): Moved to stor-layout.h.
7409 (invert_tree_comparison): Moved to fold-const.h.
7410 (invert_truthvalue): Moved to fold-const.h.
7411 (invert_truthvalue_loc): Moved to fold-const.h.
7412 (is_tm_ending_fndecl): Moved to trans-mem.h.
7413 (is_tm_may_cancel_outer): Moved to trans-mem.h.
7414 (is_tm_pure): Moved to trans-mem.h.
7415 (is_tm_safe): Moved to trans-mem.h.
7416 (layout_decl): Moved to stor-layout.h.
7417 (layout_type): Moved to stor-layout.h.
7418 (lookup_attribute_spec): Moved to attribs.h.
7419 (make_accum_type): Moved to stor-layout.h.
7420 (make_decl_one_only): Moved to varasm.h.
7421 (make_decl_rtl): Moved to tree.h.
7422 (make_decl_rtl_for_debug): Moved to varasm.h.
7423 (make_fract_type): Moved to stor-layout.h.
7424 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7425 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7426 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7427 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7428 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7429 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7430 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7431 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7432 (make_range): Moved to fold-const.h.
7433 (make_range_step): Moved to fold-const.h.
7434 (make_sat_signed_accum_type): Moved to stor-layout.h.
7435 (make_sat_signed_fract_type): Moved to stor-layout.h.
7436 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7437 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7438 (make_signed_accum_type): Moved to stor-layout.h.
7439 (make_signed_fract_type): Moved to stor-layout.h.
7440 (make_signed_type): Moved to stor-layout.h.
7441 (make_unsigned_accum_type): Moved to stor-layout.h.
7442 (make_unsigned_fract_type): Moved to stor-layout.h.
7443 (make_unsigned_type): Moved to stor-layout.h.
7444 (mark_decl_referenced): Moved to varasm.h.
7445 (mark_referenced): Moved to varasm.h.
7446 (may_negate_without_overflow_p): Moved to fold-const.h.
7447 (maybe_get_identifier): Moved to stringpool.h.
7448 (merge_ranges): Moved to fold-const.h.
7449 (merge_weak): Moved to varasm.h.
7450 (mode_for_size_tree): Moved to stor-layout.h.
7451 (multiple_of_p): Moved to fold-const.h.
7452 (must_pass_in_stack_var_size): Moved to calls.h.
7453 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7454 (native_encode_expr): Moved to fold-const.h.
7455 (native_interpret_expr): Moved to fold-const.h.
7456 (non_lvalue): Moved to fold-const.h.
7457 (non_lvalue_loc): Moved to fold-const.h.
7458 (normalize_offset): Moved to stor-layout.h.
7459 (normalize_rli): Moved to stor-layout.h.
7460 (notice_global_symbol): Moved to varasm.h.
7461 (omit_one_operand): Moved to fold-const.h.
7462 (omit_one_operand_loc): Moved to fold-const.h.
7463 (omit_two_operands): Moved to fold-const.h.
7464 (omit_two_operands_loc): Moved to fold-const.h.
7465 (operand_equal_p): Moved to tree-data-ref.h.
7466 (parse_input_constraint): Moved to stmt.h.
7467 (parse_output_constraint): Moved to stmt.h.
7468 (place_field): Moved to stor-layout.h.
7469 (pop_function_context): Moved to function.h.
7470 (pop_temp_slots): Moved to function.h.
7471 (pos_from_bit): Moved to stor-layout.h.
7472 (preserve_temp_slots): Moved to function.h.
7473 (print_node): Moved to print-tree.h.
7474 (print_node_brief): Moved to print-tree.h.
7475 (print_rtl): Moved to rtl.h.
7476 (process_pending_assemble_externals): Moved to varasm.h.
7477 (ptr_difference_const): Moved to fold-const.h.
7478 (push_function_context): Moved to function.h.
7479 (push_struct_function): Moved to function.h.
7480 (push_temp_slots): Moved to function.h.
7481 (record_tm_replacement): Moved to trans-mem.h.
7482 (relayout_decl): Moved to stor-layout.h.
7483 (resolve_asm_operand_names): Moved to stmt.h.
7484 (resolve_unique_section): Moved to varasm.h.
7485 (rli_size_so_far): Moved to stor-layout.h.
7486 (rli_size_unit_so_far): Moved to stor-layout.h.
7487 (round_down): Moved to fold-const.h.
7488 (round_down_loc): Moved to fold-const.h.
7489 (round_up): Moved to fold-const.h.
7490 (round_up_loc): Moved to fold-const.h.
7491 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7492 (set_decl_rtl): Moved to tree.h.
7493 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7494 (set_user_assembler_name): Moved to varasm.h.
7495 (setjmp_call_p): Moved to calls.h.
7496 (size_binop): Moved to fold-const.h.
7497 (size_binop_loc): Moved to fold-const.h.
7498 (size_diffop): Moved to fold-const.h.
7499 (size_diffop_loc): Moved to fold-const.h.
7500 (size_int_kind): Moved to fold-const.h.
7501 (stack_protect_epilogue): Moved to function.h.
7502 (start_record_layout): Moved to stor-layout.h.
7503 (supports_one_only): Moved to varasm.h.
7504 (swap_tree_comparison): Moved to fold-const.h.
7505 (tm_malloc_replacement): Moved to trans-mem.h.
7506 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7507 (tree build_invariant_address): Moved to fold-const.h.
7508 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7509 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7510 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7511 (tree_expr_nonnegative_p): Moved to fold-const.h.
7512 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7513 (tree_output_constant_def): Moved to varasm.h.
7514 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7515 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7516 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7517 (tree_swap_operands_p): Moved to fold-const.h.
7518 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7519 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7520 (update_alignment_for_field): Moved to stor-layout.h.
7521 (use_register_for_decl): Moved to function.h.
7522 (variable_size): Moved to rtl.h.
7523 (vector_type_mode): Moved to stor-layout.h.
7524 * cgraph.h: Corresponding changes.
7525 * emit-rtl.h: Corresponding changes.
7526 * expr.h: Corresponding changes.
7527 * function.h: Corresponding changes.
7528 * optabs.h: Corresponding changes.
7529 * trans-mem.h: Corresponding changes.
7530 Protect against multiple inclusion.
7531 * tree-inline.h: Corresponding changes.
7532 * tree-iterator.h: Corresponding changes.
7533 * tree-dfa.h: Include expr.h.
7534 * tree-ssanames.h: Include stringpool.h.
7535 * attribs.h: New file.
7536 * calls.h: New file.
7537 * fold-const.h: New file.
7538 * gcc-symtab.h: New file.
7539 * print-rtl.h: New file.
7540 * print-tree.h: New file.
7541 * stmt.h: New file.
7542 * stor-layout.h: New file.
7543 * strinpool.h: New file.
7544 * tree-nested.h: New file
7545 * tree-object-size.h: New file.
7546 * varasm.h: New file.
7547
7548 2013-11-14 Diego Novillo <dnovillo@google.com>
7549
7550 * alias.c: Include varasm.h.
7551 Include expr.h.
7552 * asan.c: Include calls.h.
7553 Include stor-layout.h.
7554 Include varasm.h.
7555 * attribs.c: Include stringpool.h.
7556 Include attribs.h.
7557 Include stor-layout.h.
7558 * builtins.c: Include stringpool.h.
7559 Include stor-layout.h.
7560 Include calls.h.
7561 Include varasm.h.
7562 Include tree-object-size.h.
7563 * calls.c: Include stor-layout.h.
7564 Include varasm.h.
7565 Include stringpool.h.
7566 Include attribs.h.
7567 * cfgexpand.c: Include stringpool.h.
7568 Include varasm.h.
7569 Include stor-layout.h.
7570 Include stmt.h.
7571 Include print-tree.h.
7572 * cgraph.c: Include varasm.h.
7573 Include calls.h.
7574 Include print-tree.h.
7575 * cgraphclones.c: Include stringpool.h.
7576 Include function.h.
7577 Include emit-rtl.h.
7578 Move inclusion of rtl.h earlier in the file.
7579 * cgraphunit.c: Include varasm.h.
7580 Include stor-layout.h.
7581 Include stringpool.h.
7582 * cilk-common.c: Include stringpool.h.
7583 Include stor-layout.h.
7584 * combine.c: Include stor-layout.h.
7585 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7586 Include stringpool.h.
7587 Include calls.h.
7588 * config/aarch64/aarch64.c: Include stringpool.h.
7589 Include stor-layout.h.
7590 Include calls.h.
7591 Include varasm.h.
7592 * config/alpha/alpha.c: Include stor-layout.h.
7593 Include calls.h.
7594 Include varasm.h.
7595 * config/arc/arc.c: Include varasm.h.
7596 Include stor-layout.h.
7597 Include stringpool.h.
7598 Include calls.h.
7599 * config/arm/arm.c: Include stringpool.h.
7600 Include stor-layout.h.
7601 Include calls.h.
7602 Include varasm.h.
7603 * config/avr/avr-c.c: Include stor-layout.h.
7604 * config/avr/avr-log.c: Include print-tree.h.
7605 * config/avr/avr.c: Include print-tree.h.
7606 Include calls.h.
7607 Include stor-layout.h.
7608 Include stringpool.h.
7609 * config/bfin/bfin.c: Include varasm.h.
7610 Include calls.h.
7611 * config/c6x/c6x.c: Include stor-layout.h.
7612 Include varasm.h.
7613 Include calls.h.
7614 Include stringpool.h.
7615 * config/cr16/cr16.c: Include stor-layout.h.
7616 Include calls.h.
7617 * config/cris/cris.c: Include varasm.h.
7618 Include stor-layout.h.
7619 Include calls.h.
7620 Include stmt.h.
7621 * config/darwin.c: Include stringpool.h.
7622 Include varasm.h.
7623 Include stor-layout.h.
7624 * config/epiphany/epiphany.c: Include stor-layout.h.
7625 Include varasm.h.
7626 Include calls.h.
7627 Include stringpool.h.
7628 * config/fr30/fr30.c: Include stor-layout.h.
7629 Include varasm.h.
7630 * config/frv/frv.c: Include varasm.h.
7631 Include stor-layout.h.
7632 Include stringpool.h.
7633 * config/h8300/h8300.c: Include stor-layout.h.
7634 Include varasm.h.
7635 Include calls.h.
7636 Include stringpool.h.
7637 * config/i386/i386.c: Include stringpool.h.
7638 Include attribs.h.
7639 Include calls.h.
7640 Include stor-layout.h.
7641 Include varasm.h.
7642 * config/i386/winnt-cxx.c: Include stringpool.h.
7643 Include attribs.h.
7644 * config/i386/winnt.c: Include stringpool.h.
7645 Include varasm.h.
7646 * config/ia64/ia64-c.c: Include stringpool.h.
7647 * config/ia64/ia64.c: Include stringpool.h.
7648 Include stor-layout.h.
7649 Include calls.h.
7650 Include varasm.h.
7651 * config/iq2000/iq2000.c: Include stor-layout.h.
7652 Include calls.h.
7653 Include varasm.h.
7654 * config/lm32/lm32.c: Include calls.h.
7655 * config/m32c/m32c.c: Include stor-layout.h.
7656 Include varasm.h.
7657 Include calls.h.
7658 * config/m32r/m32r.c: Include stor-layout.h.
7659 Include varasm.h.
7660 Include stringpool.h.
7661 Include calls.h.
7662 * config/m68k/m68k.c: Include calls.h.
7663 Include stor-layout.h.
7664 Include varasm.h.
7665 * config/mcore/mcore.c: Include stor-layout.h.
7666 Include varasm.h.
7667 Include stringpool.h.
7668 Include calls.h.
7669 * config/mep/mep.c: Include varasm.h.
7670 Include calls.h.
7671 Include stringpool.h.
7672 Include stor-layout.h.
7673 * config/microblaze/microblaze.c: Include varasm.h.
7674 Include stor-layout.h.
7675 Include calls.h.
7676 * config/mips/mips.c: Include varasm.h.
7677 Include stringpool.h.
7678 Include stor-layout.h.
7679 Include calls.h.
7680 * config/mmix/mmix.c: Include varasm.h.
7681 Include stor-layout.h.
7682 Include calls.h.
7683 * config/mn10300/mn10300.c: Include stor-layout.h.
7684 Include varasm.h.
7685 Include calls.h.
7686 * config/moxie/moxie.c: Include stor-layout.h.
7687 Include varasm.h.
7688 Include calls.h.
7689 * config/msp430/msp430.c: Include stor-layout.h.
7690 Include calls.h.
7691 * config/nds32/nds32.c: Include stor-layout.h.
7692 Include varasm.h.
7693 Include calls.h.
7694 * config/pa/pa.c: Include stor-layout.h.
7695 Include stringpool.h.
7696 Include varasm.h.
7697 Include calls.h.
7698 * config/pdp11/pdp11.c: Include stor-layout.h.
7699 Include varasm.h.
7700 Include calls.h.
7701 * config/picochip/picochip.c: Include calls.h.
7702 Include stor-layout.h.
7703 Include stringpool.h.
7704 Include varasm.h.
7705 * config/rl78/rl78.c: Include varasm.h.
7706 Include stor-layout.h.
7707 Include calls.h.
7708 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7709 Include stringpool.h.
7710 * config/rs6000/rs6000.c: Include stringpool.h.
7711 Include stor-layout.h.
7712 Include calls.h.
7713 Include print-tree.h.
7714 Include varasm.h.
7715 * config/rx/rx.c: Include varasm.h.
7716 Include stor-layout.h.
7717 Include calls.h.
7718 * config/s390/s390.c: Include print-tree.h.
7719 Include stringpool.h.
7720 Include stor-layout.h.
7721 Include varasm.h.
7722 Include calls.h.
7723 * config/score/score.c: Include stringpool.h.
7724 Include calls.h.
7725 Include varasm.h.
7726 Include stor-layout.h.
7727 * config/sh/sh-c.c: Include stringpool.h.
7728 Include attribs.h.h.
7729 * config/sh/sh.c: Include stringpool.h.
7730 Include stor-layout.h.
7731 Include calls.h.
7732 Include varasm.h.
7733 * config/sol2-c.c: Include stringpool.h.
7734 Include attribs.h.
7735 * config/sol2-cxx.c: Include stringpool.h.
7736 * config/sol2.c: Include stringpool.h.
7737 Include varasm.h.
7738 * config/sparc/sparc.c: Include stringpool.h.
7739 Include stor-layout.h.
7740 Include calls.h.
7741 Include varasm.h.
7742 * config/spu/spu-c.c: Include stringpool.h.
7743 * config/spu/spu.c: Include stringpool.h.
7744 Include stor-layout.h.
7745 Include calls.h.
7746 Include varasm.h.
7747 * config/stormy16/stormy16.c: Include stringpool.h.
7748 Include stor-layout.h.
7749 Include varasm.h.
7750 Include calls.h.
7751 * config/tilegx/tilegx.c: Include stringpool.h.
7752 Include stor-layout.h.
7753 Include varasm.h.
7754 Include calls.h.
7755 * config/tilepro/tilepro.c: Include stringpool.h.
7756 Include stor-layout.h.
7757 Include varasm.h.
7758 Include calls.h.
7759 * config/v850/v850-c.c: Include stringpool.h.
7760 Include attribs.h.
7761 * config/v850/v850.c: Include stringpool.h.
7762 Include stor-layout.h.
7763 Include varasm.h.
7764 Include calls.h.
7765 * config/vax/vax.c: Include calls.h.
7766 Include varasm.h.
7767 * config/vms/vms.c: Include stringpool.h.
7768 * config/vxworks.c: Include stringpool.h.
7769 * config/xtensa/xtensa.c: Include stringpool.h.
7770 Include stor-layout.h.
7771 Include calls.h.
7772 Include varasm.h.
7773 * convert.c: Include stor-layout.h.
7774 * coverage.c: Include stringpool.h.
7775 Include stor-layout.h.
7776 * dbxout.c: Include varasm.h.
7777 Include stor-layout.h.
7778 * dojump.c: Include stor-layout.h.
7779 * dse.c: Include stor-layout.h.
7780 * dwarf2asm.c: Include stringpool.h.
7781 Include varasm.h.
7782 * dwarf2cfi.c: Include stor-layout.h.
7783 * dwarf2out.c: Include rtl.h.
7784 Include stringpool.h.
7785 Include stor-layout.h.
7786 Include varasm.h.
7787 Include function.h.
7788 Include emit-rtl.h.
7789 Move inclusion of rtl.h earlier in the file.
7790 * emit-rtl.c: Include varasm.h.
7791 * except.c: Include stringpool.h.
7792 Include stor-layout.h.
7793 * explow.c: Include stor-layout.h.
7794 * expmed.c: Include stor-layout.h.
7795 * expr.c: Include stringpool.h.
7796 Include stor-layout.h.
7797 Include attribs.h.
7798 Include varasm.h.
7799 * final.c: Include varasm.h.
7800 * fold-const.c: Include stor-layout.h.
7801 Include calls.h.
7802 Include tree-iterator.h.
7803 * function.c: Include stor-layout.h.
7804 Include varasm.h.
7805 Include stringpool.h.
7806 * genattrtab.c (write_header): Emit includes for varasm.h,
7807 stor-layout.h and calls.h.
7808 * genautomata.c (main): Likewise.
7809 * genemit.c: Likewise.
7810 * genopinit.c: Likewise.
7811 * genoutput.c (output_prologue): Likewise.
7812 * genpeep.c: Likewise.
7813 * genpreds.c (write_insn_preds_c): Likewise.
7814 * gengtype.c (open_base_files): Add stringpool.h.
7815 * gimple-expr.c: Include stringpool.h.
7816 Include stor-layout.h.
7817 * gimple-fold.c: Include stringpool.h.
7818 Include expr.h.
7819 Include stmt.h.
7820 Include stor-layout.h.
7821 * gimple-low.c: Include tree-nested.h.
7822 Include calls.h.
7823 * gimple-pretty-print.c: Include stringpool.h.
7824 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7825 Include expr.h.
7826 * gimple-walk.c: Include stmt.h.
7827 * gimple.c: Include calls.h.
7828 Include stmt.h.
7829 Include stor-layout.h.
7830 * gimplify.c: Include stringpool.h.
7831 Include calls.h.
7832 Include varasm.h.
7833 Include stor-layout.h.
7834 Include stmt.h.
7835 Include print-tree.h.
7836 Include expr.h.
7837 * gimplify-me.c: Include stmt.h
7838 Include stor-layout.h
7839 * internal-fn.c: Include stor-layout.h.
7840 * ipa-devirt.c: Include print-tree.h.
7841 Include calls.h.
7842 * ipa-inline-analysis.c: Include stor-layout.h.
7843 Include stringpool.h.
7844 Include print-tree.h.
7845 * ipa-inline.c: Include trans-mem.h.
7846 Include calls.h.
7847 * ipa-prop.c: Include expr.h.
7848 Include stor-layout.h.
7849 Include print-tree.h.
7850 * ipa-pure-const.c: Include print-tree.h.
7851 Include calls.h.
7852 * ipa-reference.c: Include calls.h.
7853 * ipa-split.c: Include stringpool.h.
7854 Include expr.h.
7855 Include calls.h.
7856 * ipa.c: Include calls.h.
7857 Include stringpool.h.
7858 * langhooks.c: Include stringpool.h.
7859 Include attribs.h.
7860 * lto-cgraph.c: Include stringpool.h.
7861 * lto-streamer-in.c: Include stringpool.h.
7862 * lto-streamer-out.c: Include stor-layout.h.
7863 Include stringpool.h.
7864 * omp-low.c: Include stringpool.h.
7865 Include stor-layout.h.
7866 Include expr.h.
7867 * optabs.c: Include stor-layout.h.
7868 Include stringpool.h.
7869 Include varasm.h.
7870 * passes.c: Include varasm.h.
7871 * predict.c: Include calls.h.
7872 * print-rtl.c: Include print-tree.h.
7873 * print-tree.c: Include varasm.h.
7874 Include print-rtl.h.
7875 Include stor-layout.h.
7876 * realmpfr.c: Include stor-layout.h.
7877 * reg-stack.c: Include varasm.h.
7878 * sdbout.c: Include varasm.h.
7879 Include stor-layout.h.
7880 * simplify-rtx.c: Include varasm.h.
7881 * stmt.c: Include varasm.h.
7882 Include stor-layout.h.
7883 * stor-layout.c: Include stor-layout.h.
7884 Include stringpool.h.
7885 Include varasm.h.
7886 Include print-tree.h.
7887 * symtab.c: Include rtl.h.
7888 Include print-tree.h.
7889 Include varasm.h.
7890 Include function.h.
7891 Include emit-rtl.h.
7892 * targhooks.c: Include stor-layout.h.
7893 Include varasm.h.
7894 * toplev.c: Include varasm.h.
7895 Include tree-inline.h.
7896 * trans-mem.c: Include calls.h.
7897 Include function.h.
7898 Include rtl.h.
7899 Include emit-rtl.h.
7900 * tree-affine.c: Include expr.h.
7901 * tree-browser.c: Include print-tree.h.
7902 * tree-call-cdce.c: Include stor-layout.h.
7903 * tree-cfg.c: Include trans-mem.h.
7904 Include stor-layout.h.
7905 Include print-tree.h.
7906 * tree-complex.c: Include stor-layout.h.
7907 * tree-data-ref.c: Include expr.h.
7908 * tree-dfa.c: Include stor-layout.h.
7909 * tree-eh.c: Include expr.h.
7910 Include calls.h.
7911 * tree-emutls.c: Include stor-layout.h.
7912 Include varasm.h.
7913 * tree-if-conv.c: Include stor-layout.h.
7914 * tree-inline.c: Include stor-layout.h.
7915 Include calls.h.
7916 * tree-loop-distribution.c: Include stor-layout.h.
7917 * tree-nested.c: Include stringpool.h.
7918 Include stor-layout.h.
7919 * tree-object-size.c: Include tree-object-size.h.
7920 * tree-outof-ssa.c: Include stor-layout.h.
7921 * tree-parloops.c: Include stor-layout.h.
7922 Include tree-nested.h.
7923 * tree-pretty-print.c: Include stor-layout.h.
7924 Include expr.h.
7925 * tree-profile.c: Include varasm.h.
7926 Include tree-nested.h.
7927 * tree-scalar-evolution.c: Include expr.h.
7928 * tree-sra.c: Include stor-layout.h.
7929 * tree-ssa-address.c: Include stor-layout.h.
7930 * tree-ssa-ccp.c: Include stor-layout.h.
7931 * tree-ssa-dce.c: Include calls.h.
7932 * tree-ssa-dom.c: Include stor-layout.h.
7933 * tree-ssa-forwprop.c: Include stor-layout.h.
7934 * tree-ssa-ifcombine.c: Include stor-layout.h.
7935 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7936 * tree-ssa-loop-niter.c: Include calls.h.
7937 Include expr.h.
7938 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7939 * tree-ssa-math-opts.c: Include stor-layout.h.
7940 * tree-ssa-operands.c: Include stmt.h.
7941 Include print-tree.h.
7942 * tree-ssa-phiopt.c: Include stor-layout.h.
7943 * tree-ssa-reassoc.c: Include stor-layout.h.
7944 * tree-ssa-sccvn.c: Include stor-layout.h.
7945 * tree-ssa-sink.c: Include stor-layout.h.
7946 * tree-ssa-strlen.c: Include stor-layout.h.
7947 * tree-ssa-structalias.c: Include stor-layout.h.
7948 Include stmt.h.
7949 * tree-ssa-tail-merge.c: Include stor-layout.h.
7950 Include trans-mem.h.
7951 * tree-ssa-uncprop.c: Include stor-layout.h.
7952 * tree-ssa.c: Include stor-layout.h.
7953 * tree-ssanames.c: Include stor-layout.h.
7954 * tree-streamer-in.c: Include stringpool.h.
7955 * tree-streamer-out.c: Include stor-layout.h.
7956 * tree-switch-conversion.c: Include varasm.h.
7957 Include stor-layout.h.
7958 * tree-tailcall.c: Include stor-layout.h.
7959 * tree-vect-data-refs.c: Include stor-layout.h.
7960 * tree-vect-generic.c: Include stor-layout.h.
7961 * tree-vect-loop.c: Include stor-layout.h.
7962 * tree-vect-patterns.c: Include stor-layout.h.
7963 * tree-vect-slp.c: Include stor-layout.h.
7964 * tree-vect-stmts.c: Include stor-layout.h.
7965 * tree-vectorizer.c: Include stor-layout.h.
7966 * tree-vrp.c: Include stor-layout.h.
7967 Include calls.h.
7968 * tree.c: Include stor-layout.h.
7969 Include calls.h.
7970 Include attribs.h.
7971 Include varasm.h.
7972 * tsan.c: Include expr.h.
7973 * ubsan.c: Include stor-layout.h.
7974 Include stringpool.h.
7975 * value-prof.c: Include tree-nested.h.
7976 Include calls.h.
7977 * var-tracking.c: Include varasm.h.
7978 Include stor-layout.h.
7979 * varasm.c: Include stor-layout.h.
7980 Include stringpool.h.
7981 Include gcc-symtab.h.
7982 Include varasm.h.
7983 * varpool.c: Include varasm.h.
7984 * vmsdbgout.c: Include varasm.h.
7985 * xcoffout.c: Include varasm.h.
7986
7987 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7988
7989 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7990 use (.&-4) idiom.
7991
7992 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7993
7994 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7995
7996 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7997 Alan Modra <amodra@gmail.com>
7998
7999 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
8000 (RS6000_SAVE_TOC): Remove.
8001 (RS6000_TOC_SAVE_SLOT): New macro.
8002 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
8003 (rs6000_parm_start): Use it.
8004 (rs6000_function_arg_advance_1): Likewise.
8005 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
8006 (rs6000_emit_epilogue): Likewise.
8007 (rs6000_call_aix): Likewise.
8008 (rs6000_output_function_prologue): Do not save/restore r11
8009 around calling _mcount for ABI_ELFv2.
8010
8011 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8012 Alan Modra <amodra@gmail.com>
8013
8014 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
8015 Add prototype.
8016 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
8017 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
8018 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
8019 (rs6000_function_parms_need_stack): Likewise.
8020 (rs6000_reg_parm_stack_space): Likewise.
8021 (rs6000_function_arg): Do not replace BLKmode by Pmode when
8022 returning a register argument.
8023
8024 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8025 Michael Gschwind <mkg@us.ibm.com>
8026
8027 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8028 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8029 (FUNCTION_VALUE_REGNO_P): Use them.
8030 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8031 (rs6000_return_in_msb): New function.
8032 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8033 Handle aggregates of up to 16 bytes for ELFv2.
8034 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8035
8036 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8037 Michael Gschwind <mkg@us.ibm.com>
8038
8039 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8040 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8041 (rs6000_discover_homogeneous_aggregate): Likewise.
8042 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8043 (rs6000_function_arg_advance_1): Likewise.
8044 (rs6000_function_arg): Likewise.
8045 (rs6000_arg_partial_bytes): Likewise.
8046 (rs6000_psave_function_arg): Handle BLKmode arguments.
8047
8048 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8049 Michael Gschwind <mkg@us.ibm.com>
8050
8051 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8052 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8053 (rs6000_discover_homogeneous_aggregate): Likewise.
8054 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8055 (rs6000_function_arg_advance_1): Likewise.
8056 (rs6000_function_arg): Likewise.
8057 (rs6000_arg_partial_bytes): Likewise.
8058 (rs6000_psave_function_arg): Handle BLKmode arguments.
8059
8060 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8061
8062 * config/rs6000/rs6000.c (machine_function): New member
8063 r2_setup_needed.
8064 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8065 (rs6000_output_mi_thunk): Set r2_setup_needed.
8066 (rs6000_output_function_prologue): Output global entry point
8067 prologue and local entry point marker if needed for ABI_ELFv2.
8068 Output -mprofile-kernel code here.
8069 (output_function_profiler): Do not output -mprofile-kernel
8070 code here; moved to rs6000_output_function_prologue.
8071 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8072
8073 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8074 (rs6000_output_function_entry): Likewise.
8075 (rs6000_assemble_integer): Likewise.
8076 (rs6000_elf_encode_section_info): Likewise.
8077 (rs6000_elf_declare_function_name): Do not create dot symbols
8078 or .opd section for ABI_ELFv2.
8079
8080 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8081 (rs6000_trampoline_init): Likewise.
8082 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8083
8084 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
8085 for function descriptors in ABI_ELFv2.
8086
8087 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8088 on ABI_AIX only, not ABI_ELFv2.
8089 ("*call_value_indirect_aix<mode>"): Likewise.
8090 ("*call_indirect_elfv2<mode>"): New pattern.
8091 ("*call_value_indirect_elfv2<mode>"): Likewise.
8092
8093 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8094 check for function descriptors in ABI_ELFv2.
8095 ("current_file_function_operand"): Likewise.
8096
8097 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8098 (toc): Undefine.
8099 (FUNC_NAME): Define ELFv2 variant.
8100 (JUMP_TARGET): Likewise.
8101 (FUNC_START): Likewise.
8102 (HIDDEN_FUNC): Likewise.
8103 (FUNC_END): Likeiwse.
8104
8105 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8106
8107 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8108 and --with-abi=elfv2.
8109 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8110 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8111 (mabi=elfv2): Likewise.
8112 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8113 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8114 if !RS6000_BI_ARCH.
8115 (ELFv2_ABI_CHECK): New macro.
8116 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8117 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8118 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8119 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8120 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8121
8122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8123 (debug_stack_info): Likewise.
8124 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8125 (rs6000_legitimize_tls_address): Likewise.
8126 (rs6000_conditional_register_usage): Likewise.
8127 (rs6000_emit_move): Likewise.
8128 (init_cumulative_args): Likewise.
8129 (rs6000_function_arg_advance_1): Likewise.
8130 (rs6000_function_arg): Likewise.
8131 (rs6000_arg_partial_bytes): Likewise.
8132 (rs6000_output_function_entry): Likewise.
8133 (rs6000_assemble_integer): Likewise.
8134 (rs6000_savres_strategy): Likewise.
8135 (rs6000_stack_info): Likewise.
8136 (rs6000_function_ok_for_sibcall): Likewise.
8137 (rs6000_emit_load_toc_table): Likewise.
8138 (rs6000_savres_routine_name): Likewise.
8139 (ptr_regno_for_savres): Likewise.
8140 (rs6000_emit_prologue): Likewise.
8141 (rs6000_emit_epilogue): Likewise.
8142 (rs6000_output_function_epilogue): Likewise.
8143 (output_profile_hook): Likewise.
8144 (output_function_profiler): Likewise.
8145 (rs6000_trampoline_size): Likewise.
8146 (rs6000_trampoline_init): Likewise.
8147 (rs6000_elf_output_toc_section_asm_op): Likewise.
8148 (rs6000_elf_encode_section_info): Likewise.
8149 (rs6000_elf_reloc_rw_mask): Likewise.
8150 (rs6000_elf_declare_function_name): Likewise.
8151 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8152 except that rs6000_compat_align_parm is always assumed false.
8153 (rs6000_gimplify_va_arg): Likewise.
8154 (rs6000_call_aix): Update comment.
8155 (rs6000_sibcall_aix): Likewise.
8156 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8157 Treat ABI_ELFv2 the same as ABI_AIX.
8158 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8159 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8160 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8161 ("load_toc_aix_si"): Likewise.
8162 ("load_toc_aix_di"): Likewise.
8163 ("call"): Likewise.
8164 ("call_value"): Likewise.
8165 ("*call_local_aix<mode>"): Likewise.
8166 ("*call_value_local_aix<mode>"): Likewise.
8167 ("*call_nonlocal_aix<mode>"): Likewise.
8168 ("*call_value_nonlocal_aix<mode>"): Likewise.
8169 ("*call_indirect_aix<mode>"): Likewise.
8170 ("*call_value_indirect_aix<mode>"): Likewise.
8171 ("sibcall"): Likewise.
8172 ("sibcall_value"): Likewise.
8173 ("*sibcall_aix<mode>"): Likewise.
8174 ("*sibcall_value_aix<mode>"): Likewise.
8175 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8176 ("current_file_function_operand"): Likewise.
8177
8178 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8179
8180 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8181 by making use of the fact that for vector / floating point arguments
8182 passed both in VRs/FPRs and in the fixed parameter area, the partial
8183 bytes mechanism is in fact not used.
8184
8185 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8186
8187 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8188 (rs6000_finish_function_arg): Likewise.
8189 (rs6000_function_arg): Use rs6000_psave_function_arg and
8190 rs6000_finish_function_arg to handle both vector and floating
8191 point arguments that are also passed in GPRs / the stack.
8192
8193 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8194
8195 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8196 (USE_ALTIVEC_FOR_ARG_P): Likewise.
8197 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8198 (rs6000_function_arg_advance_1):Likewise.
8199 (rs6000_darwin64_record_arg_recurse): Likewise.
8200 (rs6000_function_arg): Likewise.
8201 (rs6000_arg_partial_bytes): Likewise.
8202
8203 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8204
8205 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8206 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8207 (rs6000_savres_strategy): Likewise.
8208 (rs6000_return_addr): Likewise.
8209 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8210 testing for ABI_V4 (since ABI_DARWIN is impossible here).
8211 (rs6000_emit_prologue): Likewise.
8212 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8213 (rs6000_elf_declare_function_name): Remove duplicated test.
8214 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8215 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8216 ("load_toc_v4_PIC_1_normal"): Likewise.
8217 ("load_toc_v4_PIC_1_476"): Likewise.
8218 ("load_toc_v4_PIC_1b"): Likewise.
8219 ("load_toc_v4_PIC_1b_normal"): Likewise.
8220 ("load_toc_v4_PIC_1b_476"): Likewise.
8221 ("load_toc_v4_PIC_2"): Likewise.
8222 ("load_toc_v4_PIC_3b"): Likewise.
8223 ("load_toc_v4_PIC_3c"): Likewise.
8224 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8225 (RS6000_SAVE_AREA): Likewise.
8226 (FP_ARG_MAX_REG): Likewise.
8227 (RETURN_ADDRESS_OFFSET): Likewise.
8228 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8229 of ABI_AIX.
8230 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8231 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8232
8233 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8234
8235 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8236 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
8237 Create call insn directly instead of via various gen_... routines.
8238 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8239 (rs6000_sibcall_aix): New function.
8240 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8241 (TOC_SAVE_OFFSET_64BIT): Likewise.
8242 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8243 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8244 (AIX_FUNC_DESC_SC_32BIT): Likewise.
8245 (AIX_FUNC_DESC_SC_64BIT): Likewise.
8246 ("call" expander): Call rs6000_call_aix.
8247 ("call_value" expander): Likewise.
8248 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8249 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8250 ("*call_indirect_aix<mode>"): ... by this insn pattern.
8251 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8252 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8253 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8254 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8255 ("*call_nonlocal_aix<mode>"): ... this pattern.
8256 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8257 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8258 ("*call_local_aix<mode>"): New insn pattern.
8259 ("*call_value_local_aix<mode>"): Likewise.
8260 ("sibcall" expander): Call rs6000_sibcall_aix.
8261 ("sibcall_value" expander): Likewise. Move earlier in file.
8262 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8263 ("*sibcall_aix<mode>"): ... this pattern.
8264 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8265 ("*sibcall_value_aix<mode>"): ... this pattern.
8266 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8267 (rs6000_call_aix): Add prototype.
8268 (rs6000_sibcall_aix): Likewise.
8269
8270 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8271
8272 PR sanitizer/59122
8273 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8274 isn't confused by the artificial decl.
8275
8276 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8277
8278 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8279 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8280 Instead, add USEs of all modified call-saved CR fields to the
8281 insn storing the result to the stack slot, and provide an
8282 appropriate REG_FRAME_RELATED_EXPR for that insn.
8283 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8284 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8285
8286 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8287 Alan Modra <amodra@gmail.com>
8288
8289 * function.c (assign_parms): Use all.reg_parm_stack_space instead
8290 of re-evaluating REG_PARM_STACK_SPACE target macro.
8291 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
8292 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8293 (assign_parm_find_entry_rtl): Update call.
8294 * calls.c (initialize_argument_information): Update call.
8295 (emit_library_call_value_1): Likewise.
8296 * expr.h (locate_and_pad_parm): Update prototype.
8297
8298 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8299
8300 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8301 arguments.
8302
8303 2013-11-14 DJ Delorie <dj@redhat.com>
8304
8305 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8306 to 16 bits.
8307
8308 2013-11-14 Jeff Law <law@redhat.com>
8309
8310 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8311 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8312
8313 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8314
8315 * doc/invoke.texi: Update documentation for AArch64's -mcpu
8316 and -mtune options.
8317
8318 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8319
8320 * config/aarch64/aarch64-cores.def (example-1): Remove.
8321 (example-2): Likewise.
8322 * config/aarch64/aarch64-tune.md: Regenerate.
8323 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8324 (generic_sched): Remove "large", "small".
8325 * config/aarch64/large.md: Delete.
8326 * config/aarch64/small.md: Delete.
8327
8328 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8329
8330 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8331 * config/aarch64/aarch64-tune.md: Regenerate.
8332 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8333 (generic_sched): "no" if we are tuning for cortexa15.
8334 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8335 relative path.
8336
8337 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8338
8339 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8340 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8341 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8342 (all_cores): Use cortexa53 when tuning for "generic".
8343 (aarch64_override_options): Fix comment.
8344 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8345 * config/aarch64/aarch64-generic.md: Delete.
8346
8347 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8348
8349 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8350
8351 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8352
8353 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8354 (generic_rtx_cost_table): Remove.
8355 (aarch64_rtx_costs): Use fields from cpu_cost_table.
8356 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8357 insn_extra_cost.
8358 (cpu_rtx_cost_table): Remove.
8359
8360 2013-11-14 Julian Brown <julian@codesourcery.com>
8361 Joey Ye <joey.ye@arm.com>
8362
8363 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8364 (arm_v7m_tune): New.
8365 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8366 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8367 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8368 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8369
8370 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8371
8372 PR target/57491
8373 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8374 flag setting.
8375
8376 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8377 Uros Bizjak <ubizjak@gmail.com>
8378
8379 PR target/59101
8380 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8381 operands[2] satisfies_constraint_Z that might have bit 31 set.
8382
8383 2013-11-13 Jeff Law <law@redhat.com>
8384
8385 PR tree-optimization/59102
8386 * gimple-ssa-isolate-paths.c
8387 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8388 gimple assignment before looking at gimple_assign_lhs.
8389
8390 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8391
8392 * ira.c: Add comment about threads at the top of file.
8393
8394 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8395
8396 * ira-color.c (coalesce_allocnos): Don't allocate and free
8397 sorted_copies.
8398
8399 2013-11-14 Tom de Vries <tom@codesourcery.com>
8400
8401 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8402 equality for GIMPLE_ASSIGN.
8403
8404 2013-11-14 Tom de Vries <tom@codesourcery.com>
8405
8406 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8407 function out of ...
8408 (gimple_equal_p): ... here.
8409
8410 2013-11-14 Tom de Vries <tom@codesourcery.com>
8411
8412 * trans-mem.c (is_tm_ending): New function.
8413 * gimple.h (is_tm_ending): Declare.
8414 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8415 BUILT_IN_TM_COMMIT.
8416 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8417
8418 2013-11-14 Tom de Vries <tom@codesourcery.com>
8419
8420 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8421
8422 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
8423
8424 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
8425 (struct walk_stmt_info): Relocate here from gimple.h.
8426 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
8427 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8428 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8429 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8430 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8431 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8432 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8433 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8434 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8435 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8436 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8437 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8438 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8439 (struct walk_stmt_info): Move to gimple-walk.h.
8440 (gimple_seq_set_location): Move to gimple.c
8441 * gimple-walk.c: New File.
8442 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8443 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8444 walk_stmt_load_store_ops): Relocate here from gimple.c.
8445 * gimple-iterator.c: Include gimple-iterator.h.
8446 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8447 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8448 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8449 gimple-walk.c.
8450 (gimple_seq_set_location): Relocate from gimple.h.
8451 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8452 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8453 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8454 * Makefile.in (OBJS): Add gimple-walk.o
8455 * asan.c: Update Include list as required for gimple-iterator.h and
8456 gimple-walk.h.
8457 * cfgexpand.c: Likewise.
8458 * cfgloop.c: Likewise.
8459 * cfgloopmanip.c: Likewise.
8460 * cgraph.c: Likewise.
8461 * cgraphbuild.c: Likewise.
8462 * cgraphunit.c: Likewise.
8463 * gimple-fold.c: Likewise.
8464 * gimple-low.c: Likewise.
8465 * gimple-pretty-print.c: Likewise.
8466 * gimple-ssa-isolate-paths.c: Likewise.
8467 * gimple-ssa-strength-reduction.c: Likewise.
8468 * gimple-streamer-in.c: Likewise.
8469 * gimple-streamer-out.c: Likewise.
8470 * gimplify.c: Likewise.
8471 * graphite-blocking.c: Likewise.
8472 * graphite-clast-to-gimple.c: Likewise.
8473 * graphite-dependences.c: Likewise.
8474 * graphite-interchange.c: Likewise.
8475 * graphite-optimize-isl.c: Likewise.
8476 * graphite-poly.c: Likewise.
8477 * graphite-scop-detection.c: Likewise.
8478 * graphite-sese-to-poly.c: Likewise.
8479 * graphite.c: Likewise.
8480 * ipa-inline-analysis.c: Likewise.
8481 * ipa-profile.c: Likewise.
8482 * ipa-prop.c: Likewise.
8483 * ipa-pure-const.c: Likewise.
8484 * ipa-split.c: Likewise.
8485 * lto-streamer-in.c: Likewise.
8486 * lto-streamer-out.c: Likewise.
8487 * omp-low.c: Likewise.
8488 * predict.c: Likewise.
8489 * profile.c: Likewise.
8490 * sese.c: Likewise.
8491 * tracer.c: Likewise.
8492 * trans-mem.c: Likewise.
8493 * tree-call-cdce.c: Likewise.
8494 * tree-cfg.c: Likewise.
8495 * tree-cfgcleanup.c: Likewise.
8496 * tree-complex.c: Likewise.
8497 * tree-data-ref.c: Likewise.
8498 * tree-dfa.c: Likewise.
8499 * tree-eh.c: Likewise.
8500 * tree-emutls.c: Likewise.
8501 * tree-if-conv.c: Likewise.
8502 * tree-inline.c: Likewise.
8503 * tree-into-ssa.c: Likewise.
8504 * tree-loop-distribution.c: Likewise.
8505 * tree-nested.c: Likewise.
8506 * tree-nrv.c: Likewise.
8507 * tree-object-size.c: Likewise.
8508 * tree-outof-ssa.c: Likewise.
8509 * tree-parloops.c: Likewise.
8510 * tree-predcom.c: Likewise.
8511 * tree-profile.c: Likewise.
8512 * tree-scalar-evolution.c: Likewise.
8513 * tree-sra.c: Likewise.
8514 * tree-ssa-ccp.c: Likewise.
8515 * tree-ssa-coalesce.c: Likewise.
8516 * tree-ssa-copy.c: Likewise.
8517 * tree-ssa-copyrename.c: Likewise.
8518 * tree-ssa-dce.c: Likewise.
8519 * tree-ssa-dom.c: Likewise.
8520 * tree-ssa-dse.c: Likewise.
8521 * tree-ssa-forwprop.c: Likewise.
8522 * tree-ssa-ifcombine.c: Likewise.
8523 * tree-ssa-live.c: Likewise.
8524 * tree-ssa-loop-ch.c: Likewise.
8525 * tree-ssa-loop-im.c: Likewise.
8526 * tree-ssa-loop-ivcanon.c: Likewise.
8527 * tree-ssa-loop-ivopts.c: Likewise.
8528 * tree-ssa-loop-manip.c: Likewise.
8529 * tree-ssa-loop-niter.c: Likewise.
8530 * tree-ssa-loop-prefetch.c: Likewise.
8531 * tree-ssa-loop.c: Likewise.
8532 * tree-ssa-math-opts.c: Likewise.
8533 * tree-ssa-phiopt.c: Likewise.
8534 * tree-ssa-phiprop.c: Likewise.
8535 * tree-ssa-pre.c: Likewise.
8536 * tree-ssa-propagate.c: Likewise.
8537 * tree-ssa-reassoc.c: Likewise.
8538 * tree-ssa-sink.c: Likewise.
8539 * tree-ssa-strlen.c: Likewise.
8540 * tree-ssa-structalias.c: Likewise.
8541 * tree-ssa-tail-merge.c: Likewise.
8542 * tree-ssa-ter.c: Likewise.
8543 * tree-ssa-threadedge.c: Likewise.
8544 * tree-ssa-threadupdate.c: Likewise.
8545 * tree-ssa-uncprop.c: Likewise.
8546 * tree-ssa-uninit.c: Likewise.
8547 * tree-ssa.c: Likewise.
8548 * tree-stdarg.c: Likewise.
8549 * tree-switch-conversion.c: Likewise.
8550 * tree-tailcall.c: Likewise.
8551 * tree-vect-data-refs.c: Likewise.
8552 * tree-vect-generic.c: Likewise.
8553 * tree-vect-loop-manip.c: Likewise.
8554 * tree-vect-loop.c: Likewise.
8555 * tree-vect-patterns.c: Likewise.
8556 * tree-vect-slp.c: Likewise.
8557 * tree-vect-stmts.c: Likewise.
8558 * tree-vectorizer.c: Likewise.
8559 * tree-vrp.c: Likewise.
8560 * tree.c: Likewise.
8561 * tsan.c: Likewise.
8562 * value-prof.c: Likewise.
8563 * vtable-verify.c: Likewise.
8564
8565 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8566
8567 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8568 fix.
8569
8570 2013-11-13 Jeff Law <law@redhat.com>
8571
8572 * PR middle-end/59119
8573 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8574 function, extracted from gimple_ssa_isolate_erroneous_paths.
8575 (find_explicit_erroneous_behaviour): Similarly.
8576 (insert_trap_and_remove_trailing_statements): Remove statements
8577 in reverse order.
8578
8579 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8580
8581 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8582 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8583 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8584 looking at INSN_CODE.
8585 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8586 active_insn_p object, respect basic block boundaries.
8587 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8588 follows immediately after the jump table data label.
8589 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8590 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8591 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8592
8593 2013-11-13 Teresa Johnson <tejohnson@google.com>
8594
8595 PR ipa/58862
8596 * predict.c (drop_profile): Error is currently too strict.
8597 (handle_missing_profiles): Pass call_count to drop_profile.
8598
8599 2013-11-13 Teresa Johnson <tejohnson@google.com>
8600
8601 PR ipa/58862
8602 * ipa-inline.c (edge_badness): Fix overflow.
8603
8604 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8605
8606 PR rtl-optimization/59036
8607 * ira-color.c (struct allocno_color_data): Add new members
8608 first_thread_allocno, next_thread_allocno, thread_freq.
8609 (sorted_copies): New static var.
8610 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8611 (allocno_thread_conflict_p, merge_threads)
8612 (form_threads_from_copies, form_threads_from_bucket)
8613 (form_threads_from_colorable_allocno, init_allocno_threads): New
8614 functions.
8615 (bucket_allocno_compare_func): Add comparison by thread frequency
8616 and threads.
8617 (add_allocno_to_ordered_bucket): Rename to
8618 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8619 (push_only_colorable): Call form_threads_from_bucket.
8620 (color_pass): Call init_allocno_threads. Use
8621 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8622 for nuillify allocno color data.
8623 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8624 (coalesce_allocnos): Use static sorted copies.
8625
8626 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8627
8628 * passes.c (execute_todo): Don't call do_per_function if
8629 flags are zero.
8630 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8631 execute_function_dump if dump_file is NULL.
8632
8633 2013-11-13 Martin Jambor <mjambor@suse.cz>
8634
8635 * cgraph.c (cgraph_get_create_node): Do what
8636 cgraph_get_create_real_symbol_node used to do.
8637 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8638 call cgraph_get_create_node.
8639 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8640 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8641 cgraph_get_create_node. Assert we get a node.
8642
8643 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8644
8645 * config/aarch64/aarch64-simd.md (vec_extract): New.
8646
8647 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8648
8649 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8650 the constraint.
8651
8652 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8653
8654 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8655 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8656 or if optimization is enabled.
8657 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8658 require that all the names based on a PARM_DECL or a RESULT_DECL that
8659 isn't ignored for debug info be coalesced.
8660
8661 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8662
8663 * config/c6x/c6x.c: Include "gimple-expr.h".
8664
8665 2013-11-13 Richard Biener <rguenther@suse.de>
8666
8667 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8668 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8669 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8670 dealing with type mismatches inside component reference chains.
8671
8672 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8673
8674 PR tree-optimization/59077
8675 * ipa-pure-const.c (better_state): Update *state.
8676
8677 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8678
8679 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8680 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8681 Update offset calculations.
8682
8683 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8684
8685 PR ada/35998
8686 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8687 for fields. Do not add the attribute if the size is negative.
8688
8689 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8690
8691 * config/arm/arm.c: Include aarch-cost-tables.h.
8692 (generic_extra_costs): Move from here...
8693 * config/arm/aarch-cost-tables.h: ... To here. New file.
8694
8695 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8697 Sergey Lega <sergey.s.lega@intel.com>
8698 Anna Tikhonova <anna.tikhonova@intel.com>
8699 Ilya Tocar <ilya.tocar@intel.com>
8700 Andrey Turetskiy <andrey.turetskiy@intel.com>
8701 Ilya Verbin <ilya.verbin@intel.com>
8702 Kirill Yukhin <kirill.yukhin@intel.com>
8703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8704
8705 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8706 * config/i386/predicate.md (const_0_to_4_operand): New.
8707 (const_0_to_5_operand): Ditto.
8708 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8709 (UNSPEC_COMPRESS_STORE): Ditto.
8710 (UNSPEC_EXPAND): Ditto.
8711 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8712 (define_mode_attr ssescalarsize): Ditto.
8713 (avx512f_load<mode>_mask): Ditto.
8714 (avx512f_store<mode>_mask): Ditto.
8715 (avx512f_storedqu<mode>_mask): Ditto.
8716 (avx512f_vmcmp<mode>3_mask): Ditto.
8717 (avx512f_fmadd_<mode>_mask): Ditto.
8718 (avx512f_fmadd_<mode>_mask3): Ditto.
8719 (avx512f_fmsub_<mode>_mask): Ditto.
8720 (avx512f_fmsub_<mode>_mask3): Ditto.
8721 (avx512f_fnmadd_<mode>_mask): Ditto.
8722 (avx512f_fnmadd_<mode>_mask3): Ditto.
8723 (avx512f_fnmsub_<mode>_mask): Ditto.
8724 (avx512f_fnmsub_<mode>_mask3): Ditto.
8725 (avx512f_fmaddsub_<mode>_mask): Ditto.
8726 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8727 (avx512f_fmsubadd_<mode>_mask): Ditto.
8728 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8729 (vec_unpacku_float_lo_v16si): Ditto.
8730 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8731 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8732 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8733 (vec_extract_lo_<mode>_maskm): Ditto.
8734 (vec_extract_hi_<mode>_maskm): Ditto.
8735 (avx512f_vternlog<mode>_mask): Ditto.
8736 (avx512f_shufps512_mask): Ditto.
8737 (avx512f_fixupimm<mode>_mask): Ditto.
8738 (avx512f_shufpd512_mask): Ditto.
8739 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8740 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8741 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8742 (ashr<mode>3<mask_name>): Ditto.
8743 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8744 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8745 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8746 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8747 (avx512f_pshufdv3_mask): Ditto.
8748 (avx512f_perm<mode>_mask): Ditto.
8749 (avx512f_vpermi2var<mode>3_mask): Ditto.
8750 (avx512f_vpermt2var<mode>3_mask): Ditto.
8751 (avx512f_compress<mode>_mask): Ditto.
8752 (avx512f_compressstore<mode>_mask): Ditto.
8753 (avx512f_expand<mode>_mask): Ditto.
8754 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8755 to support masking.
8756 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8757 (<plusminus_insn><mode>3<mask_name>): Ditto.
8758 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8759 (mul<mode>3<mask_name>): Ditto.
8760 (*mul<mode>3<mask_name>): Ditto.
8761 (<sse>_div<mode>3<mask_name>): Ditto.
8762 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8763 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8764 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8765 (<code><mode>3<mask_name>/smaxmin): Ditto.
8766 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8767 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8768 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8769 (ufloatv16siv16sf2<mask_name>): Ditto.
8770 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8771 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8772 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8773 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8774 (ufloatv8siv8df<mask_name>): Ditto.
8775 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8776 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8777 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8778 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8779 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8780 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8781 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8782 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8783 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8784 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8785 (vec_extract_lo_<mode><mask_name>): Ditto.
8786 (vec_extract_hi_<mode><mask_name>): Ditto.
8787 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8788 (avx512f_movddup512<mask_name>): Ditto.
8789 (avx512f_unpcklpd512<mask_name>): Ditto.
8790 (*avx512f_unpcklpd512<mask_name>): Ditto.
8791 (*avx512f_vmscalef<mode>): Ditto.
8792 (avx512f_scalef<mode><mask_name>): Ditto.
8793 (avx512f_getexp<mode><mask_name>): Ditto.
8794 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8795 (avx512f_rndscale<mode><mask_name>): Ditto.
8796 (avx512f_shufps512_1<mask_name>): Ditto.
8797 (avx512f_shufpd512_1<mask_name>): Ditto.
8798 (<plusminus_insn><mode>3<mask_name>): Ditto.
8799 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8800 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8801 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8802 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8803 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8804 (mul<mode>3<mask_name>): Ditto.
8805 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8806 (<shift_insn><mode>3<mask_name>): Ditto.
8807 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8808 (avx512f_<rotate><mode><mask_name>): Ditto.
8809 (<code><mode>3<mask_name>/maxmin): Ditto.
8810 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8811 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8812 (*andnot<mode>3<mask_name>): Ditto.
8813 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8814 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8815 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8816 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8817 (vec_set_lo_<mode><mask_name>): Ditto.
8818 (vec_set_hi_<mode><mask_name>): Ditto.
8819 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8820 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8821 (avx512f_pshufd_1<mask_name>): Ditto.
8822 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8823 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8824 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8825 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8826 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8827 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8828 (avx512er_exp2<mode><mask_name>): Ditto.
8829 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8830 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8831 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8832 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8833 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8834 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8835 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8836 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8837 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8838 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8839 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8840 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8841 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8842 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8843 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8844 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8845 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8846 (avx512f_getmant<mode><mask_name>): Ditto.
8847 (clz<mode>2<mask_name>): Ditto.
8848 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8849 (*srcp14<mode>): Remove visibility.
8850 (*rsqrt14<mode>): Ditto.
8851 (*fma_fmsub_<mode>): Ditto.
8852 (*fma_fnmadd_<mode>): Ditto.
8853 (*avx512f_rndscale<mode>): Ditto.
8854 * config/i386/subst.md: New file.
8855
8856 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8857
8858 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8859 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8860 (atomic_load_explicit, atomic_exchange_explicit)
8861 (atomic_compare_exchange_strong_explicit)
8862 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8863 declare variable initialized with PTR argument.
8864
8865 2013-11-12 Jeff Law <law@redhat.com>
8866
8867 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8868 backedge_seen_p. Set, use and pass it to children appropriately.
8869 (thread_through_normal_block): Similarly.
8870 (thread_across_edge): Similarly.
8871
8872 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8873 memory references as volatile.
8874 (insert_trap_and_remove_trailing_statements): Fix comment.
8875
8876 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8877
8878 PR other/58712
8879 * ira-costs.c (record_operand_costs): Check operands number for
8880 the single set.
8881
8882 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8883
8884 PR target/59054
8885 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8886 constraints that would allow DImode into the traditional Altivec
8887 registers, but cause undesirable code generation when loading 0 as
8888 a constant.
8889 (movdi_internal64): Likewise.
8890 (cmp<mode>_fpr): Do not use %x for CR register output.
8891 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8892 -mallow-upper-sf debug switches are used.
8893
8894 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8895
8896 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8897 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8898 Relocate prototypes from gimple.h.
8899 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8900 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8901 from gimple.h.
8902 * gimple.h: Move some prototypes to gimplify.h.
8903 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8904 gimplify.h.
8905 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8906 Relocate from gimpify.c.
8907 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8908 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8909 is_gimple_reg_rhs) Relocate from gimplify.c.
8910 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8911 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8912 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8913 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8914 is_gimple_reg_rhs): Move to gimple-expr.c.
8915 (should_carry_location_p): Move to gimple.c.
8916 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8917 to gimple.h.
8918 (annotate_one_with_location, annotate_all_with_location_after,
8919 annotate_all_with_location): Move to gimple.c.
8920 (compare_case_labels, sort_case_labels,
8921 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8922 (rhs_predicate_for): Make static.
8923 (gimplify_assign): Relocate from gimple.c.
8924 * gimple.c (gimplify_assign): Move to gimplify.c.
8925 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8926 annotate_one_with_location, annotate_all_with_location_after,
8927 annotate_all_with_location, compare_case_labels, sort_case_labels,
8928 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8929 * tree.h (unshare_expr, unshare_expr_without_location,
8930 mark_addressable): Move prototypes to gimplify.h.
8931 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8932 tmp_var_id_num
8933 * asan.c: Include gimplify.h rather than gimple.h.
8934 * cfgloopmanip.c: Likewise.
8935 * cgraphunit.c: Likewise.
8936 * cilk-common.c: Likewise.
8937 * dwarf2out.c: Dont include gimple.h.
8938 * fold-const.c: Include gimplify.h rather than gimple.h.
8939 * function.c: Likewise.
8940 * gimple-fold.c: Likewise.
8941 * gimple-ssa-strength-reduction.c: Likewise.
8942 * graphite-clast-to-gimple.c: Likewise.
8943 * graphite-sese-to-poly.c: Likewise.
8944 * ipa-prop.c: Likewise.
8945 * ipa-split.c: Likewise.
8946 * ipa.c: Likewise.
8947 * langhooks.c: Dont include gimple.h.
8948 * loop-init.c: Include gimplify.h rather than gimple.h.
8949 * omp-low.c: Likewise.
8950 * sese.c: Likewise.
8951 * stor-layout.c: Likewise.
8952 * targhooks.c: Likewise.
8953 * trans-mem.c: Likewise.
8954 * tree-affine.c: Likewise.
8955 * tree-cfg.c: Likewise.
8956 * tree-cfgcleanup.c: Likewise.
8957 * tree-complex.c: Likewise.
8958 * tree-if-conv.c: Likewise.
8959 * tree-inline.c: Likewise.
8960 * tree-iterator.c: Likewise.
8961 * tree-loop-distribution.c: Likewise.
8962 * tree-nested.c: Likewise.
8963 * tree-parloops.c: Likewise.
8964 * tree-predcom.c: Likewise.
8965 * tree-profile.c: Likewise.
8966 * tree-scalar-evolution.c: Likewise.
8967 * tree-sra.c: Likewise.
8968 * tree-ssa-address.c: Likewise.
8969 * tree-ssa-ccp.c: Likewise.
8970 * tree-ssa-dce.c: Likewise.
8971 * tree-ssa-forwprop.c: Likewise.
8972 * tree-ssa-ifcombine.c: Likewise.
8973 * tree-ssa-loop-im.c: Likewise.
8974 * tree-ssa-loop-ivopts.c: Likewise.
8975 * tree-ssa-loop-manip.c: Likewise.
8976 * tree-ssa-loop-niter.c: Likewise.
8977 * tree-ssa-loop-prefetch.c: Likewise.
8978 * tree-ssa-loop-unswitch.c: Likewise.
8979 * tree-ssa-math-opts.c: Likewise.
8980 * tree-ssa-phiopt.c: Likewise.
8981 * tree-ssa-phiprop.c: Likewise.
8982 * tree-ssa-pre.c: Likewise.
8983 * tree-ssa-propagate.c: Likewise.
8984 * tree-ssa-reassoc.c: Likewise.
8985 * tree-ssa-sccvn.c: Likewise.
8986 * tree-ssa-strlen.c: Likewise.
8987 * tree-ssa.c: Likewise.
8988 * tree-switch-conversio: Likewise.n.c
8989 * tree-tailcall.c: Likewise.
8990 * tree-vect-data-refs.c: Likewise.
8991 * tree-vect-generic.c: Likewise.
8992 * tree-vect-loop-manip.c: Likewise.
8993 * tree-vect-loop.c: Likewise.
8994 * tree-vect-patterns.c: Likewise.
8995 * tree-vect-stmts.c: Likewise.
8996 * tsan.c: Likewise.
8997 * value-prof.c: Likewise.
8998 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8999 * config/alpha/alpha.c: Likewise.
9000 * config/darwin.c: Likewise.
9001 * config/i386/i386.c: Likewise.
9002 * config/ia64/ia64.c: Likewise.
9003 * config/mep/mep.c: Likewise.
9004 * config/mips/mips.c: Likewise.
9005 * config/rs6000/rs6000.c: Likewise.
9006 * config/s390/s390.c: Likewise.
9007 * config/sh/sh.c: Likewise.
9008 * config/sparc/sparc.c: Likewise.
9009 * config/spu/spu.c: Likewise.
9010 * config/stormy16/stormy16.c: Likewise.
9011 * config/tilegx/tilegx.c: Likewise.
9012 * config/tilepro/tilepro.c: Likewise.
9013 * config/xtensa/xtensa.c: Likewise.
9014
9015 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
9016
9017 * tree.c (grow_tree_vec_stat): New function ...
9018 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
9019 and macro front-end.
9020
9021 2013-11-12 Marek Polacek <polacek@redhat.com>
9022
9023 * final.c (update_alignments): Initialize label to NULL_RTX.
9024
9025 2013-11-12 Jeff Law <law@redhat.com>
9026
9027 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9028 (insert_trap_and_remove_trailing_statements): New argument OP which
9029 is the NULL pointer. Emit the trap after the load/store through
9030 the NULL pointer. Simplify the RHS of a store through a NULL pointer
9031 when trivial to do so.
9032 (isolate_path): Corresponding changes.
9033 (gimple_ssa_isolate_erroneous_path): Likewise.
9034
9035 2013-11-12 Teresa Johnson <tejohnson@google.com>
9036 Jan Hubicka <jh@suse.cz>
9037
9038 * predict.c (drop_profile): New function.
9039 (handle_missing_profiles): Ditto.
9040 (counts_to_freqs): Don't overwrite estimated frequencies
9041 when function has no profile counts.
9042 * predict.h (handle_missing_profiles): Declare.
9043 * tree-inline.c (freqs_to_counts): New function.
9044 (copy_cfg_body): Invoke freqs_to_counts as needed.
9045 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9046
9047 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9048
9049 PR target/59088
9050 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9051 Set for m_HASWELL.
9052 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9053
9054 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9055
9056 PR target/59084
9057 * config/i386/i386.c (ix86_option_override_internal): Check
9058 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9059 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9060 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9061 MASK_AVX256_SPLIT_UNALIGNED_STORE.
9062
9063 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9064 Clear m_COREI7_AVX and update comments.
9065 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9066
9067 2013-11-12 Martin Jambor <mjambor@suse.cz>
9068
9069 PR rtl-optimization/10474
9070 * ira.c (interesting_dest_for_shprep): New function.
9071 (split_live_ranges_for_shrink_wrap): Likewise.
9072 (find_moveable_pseudos): Move calculation of dominance info,
9073 df_analysios and the final anlyses to...
9074 (ira): ...here, call split_live_ranges_for_shrink_wrap.
9075
9076 2013-11-12 Bin Cheng <bin.cheng@arm.com>
9077
9078 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9079 Handle type conversion.
9080
9081 2013-11-11 Martin Liska <marxin.liska@gmail.com>
9082 Jan Hubicka <jh@suse.cz>
9083
9084 * cgraph.c (dump_cgraph_node): Profile dump added.
9085 * cgraph.h (struct cgraph_node): New time profile variable added.
9086 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9087 * gcov-io.h (gcov_type): New profiler type introduced.
9088 * ipa-profile.c (lto_output_node): Streaming for time profile added.
9089 (input_node): Time profiler is read from LTO stream.
9090 * predict.c (maybe_hot_count_p): Hot prediction changed.
9091 * profile.c (instrument_values): New case for time profiler added.
9092 (compute_value_histograms): Read of time profile.
9093 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9094 * tree-profile.c (init_ic_make_global_vars): Time profiler
9095 function added.
9096 (gimple_init_edge_profiler): TP function instrumentation.
9097 (gimple_gen_time_profiler): New.
9098 * value-prof.c (gimple_add_histogram_value): Support for time profiler
9099 added.
9100 (dump_histogram_value): TP type added to dumps.
9101 (visit_hist): More sensitive check that takes TP into account.
9102 (gimple_find_values_to_profile): TP instrumentation.
9103 * value-prof.h (hist_type): New histogram type added.
9104 (struct histogram_value_t): Pointer to struct function added.
9105 * libgcc/Makefile.in: New GCOV merge function for TP added.
9106 * libgcov.c: function_counter variable introduced.
9107 (_gcov_merge_time_profile): New.
9108 (_gcov_time_profiler): New.
9109
9110 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
9111 Jeff Law <law@redhat.com>
9112
9113 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9114 ao_ref_init_from_ptr_and_size for builtins.
9115
9116 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
9117 H.J. Lu <hongjiu.lu@intel.com>
9118
9119 PR target/58853
9120 * config/i386/x86-tune.def
9121 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9122 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9123 * config/i386/i386.h
9124 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9125 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
9126 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9127 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9128 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9129 misaligned_prologue_used. Check that
9130 desired_aling <= epilogue_size_needed.
9131
9132 2013-11-11 Cong Hou <congh@google.com>
9133
9134 PR tree-optimization/59050
9135 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9136
9137 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9138
9139 PR middle-end/59049
9140 * expmed.c (emit_store_flag): Fail for const-const comparison.
9141
9142 2013-11-11 Tristan Gingold <gingold@adacore.com>
9143 Eric Botcazou <ebotcazou@adacore.com>
9144
9145 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9146 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9147 * tree.def (CONSTRUCTOR): Likewise.
9148 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
9149 * gimplify.c (gimplify_init_constructor): Do not clear the object when
9150 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9151
9152 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
9153
9154 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9155 diagnostic_finish.
9156
9157 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9158
9159 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9160 comparisons.
9161
9162 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9163
9164 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9165
9166 2013-11-08 Jeff Law <law@redhat.com>
9167
9168 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9169 threading paths first, then perform PHI node checks if applicable.
9170
9171 2013-11-10 Karlson2k <k2k@narod.ru>
9172 Kai Tietz <ktietz@redhat.com>
9173
9174 PR plugin/52872
9175 * configure.ac: Adding for exported symbols check
9176 and for rdynamic-check executable-extension.
9177 * configure: Regenerated.
9178
9179 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
9180
9181 * mode-switching.c (optimize_mode_switching): Mark block as
9182 nontransparent, if last_mode at block exit is different from no_mode.
9183
9184 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9185
9186 * function.c (NAME__MAIN): Move to...
9187 * cfgexpand.c (NAME__MAIN): ...here.
9188
9189 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
9190
9191 * target.def (can_use_doloop_p): New hook.
9192 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9193 * doc/tm.texi: Regenerate.
9194 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9195 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9196 * hooks.c (hook_bool_dint_dint_uint_true): New function.
9197 * targhooks.h (can_use_doloop_if_innermost): Declare.
9198 * targhooks.c (can_use_doloop_if_innermost): New function.
9199 * target.h: Include double-int.h.
9200 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9201 Remove iteration count, maximum iteration count, loop depth and
9202 enter-at-top inputs from doloop_begin and doloop_end.
9203 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9204 interface.
9205 * config/arc/arc.c (arc_can_use_doloop_p): New function.
9206 (TARGET_CAN_USE_DOLOOP_P): Define.
9207 * config/arm/thumb2.md (doloop_end): Update for new interface.
9208 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9209 * config/bfin/bfin.md (doloop_end): Update for new interface.
9210 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9211 (TARGET_CAN_USE_DOLOOP_P): Define.
9212 * config/c6x/c6x.md (doloop_end): Update for new interface.
9213 * config/ia64/ia64.md (doloop_end): Update for new interface.
9214 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9215 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9216 interface.
9217 * config/mep/mep.c (mep_emit_doloop): Likewise.
9218 (TARGET_CAN_USE_DOLOOP_P): Define.
9219 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9220 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9221 * config/s390/s390.md (doloop_end): Update for new interface.
9222 * config/sh/sh.md (doloop_end): Likewise.
9223 * config/spu/spu.md (doloop_end): Likewise.
9224 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9225 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9226 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9227 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9228 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9229 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9230 interface.
9231 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9232
9233 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
9234
9235 PR other/59055
9236 * doc/extend.texi: Move Cilk Plus Builtins node before Other
9237 Builtins node.
9238
9239 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
9240 Joseph Myers <joseph@codesourcery.com>
9241
9242 * ginclude/stdatomic.h: New file.
9243 * Makefile.in (USER_H): Add stdatomic.h.
9244
9245 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9246
9247 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9248 comparisons.
9249
9250 2013-11-08 Jeff Law <law@redhat.com>
9251
9252 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9253 * tree-ssa-threadupdate.c (delete_thread_path): New function.
9254 (ssa_redirect_edges, thread_block_1): Use it.
9255 (thread_through_loop_header, mark_threaded_blocks): Likewise.
9256 (thread_through_all_blocks, register_jump_thread): Likewise.
9257 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9258
9259 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
9260
9261 * config/arm/aarch-common.c
9262 (search_term): New typedef.
9263 (shift_rtx_costs): New array.
9264 (arm_rtx_shift_left_p): New.
9265 (arm_find_sub_rtx_with_search_term): Likewise.
9266 (arm_find_sub_rtx_with_code): Likewise.
9267 (arm_early_load_addr_dep): Add sanity checking.
9268 (arm_no_early_alu_shift_dep): Likewise.
9269 (arm_no_early_alu_shift_value_dep): Likewise.
9270 (arm_no_early_mul_dep): Likewise.
9271 (arm_no_early_store_addr_dep): Likewise.
9272
9273 2013-11-08 Richard Biener <rguenther@suse.de>
9274
9275 PR tree-optimization/59047
9276 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9277
9278 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
9279
9280 * common.opt (fcheck-pointer-bounds): Move to ...
9281 * c-family/c.opt: ... here.
9282 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9283 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9284 * langhooks.h (lang_hooks): Remove chkp_supported field.
9285 * toplev.c (process_options): Remove chkp_supported check.
9286
9287 2013-11-08 Richard Biener <rguenther@suse.de>
9288
9289 PR tree-optimization/59038
9290 PR tree-optimization/58955
9291 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9292 previous change. Handle known dependences correctly.
9293
9294 2013-11-08 Tom de Vries <tom@codesourcery.com>
9295
9296 * config/rs6000/t-xilinx: Remove duplicate contents.
9297
9298 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
9299 Joseph Myers <joseph@codesourcery.com>
9300
9301 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9302 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9303 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9304 (struct tree_base): Add atomic_flag field.
9305 * tree.h (TYPE_ATOMIC): New accessor macro.
9306 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9307 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9308 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9309 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9310 * tree.c (set_type_quals): Set TYPE_ATOMIC.
9311 (find_atomic_core_type): New function.
9312 (build_qualified_type): Adjust alignment for qualified types.
9313 (build_atomic_base): New function
9314 (build_common_tree_nodes): Build atomicQI_type_node,
9315 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9316 atomicTI_type_node.
9317 * print-tree.c (print_node): Print atomic qualifier.
9318 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9319 * target.def (atomic_assign_expand_fenv): New hook.
9320 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9321 * doc/tm.texi: Regenerate.
9322 * targhooks.c (default_atomic_assign_expand_fenv): New function.
9323 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9324 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9325 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9326 function type.
9327 * config/i386/i386.c (enum ix86_builtins): Add
9328 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9329 IX86_BUILTIN_FNCLEX.
9330 (bdesc_special_args): Add __builtin_ia32_fnstenv,
9331 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9332 (ix86_expand_builtin): Handle the new built-in functions.
9333 (ix86_atomic_assign_expand_fenv): New function.
9334 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9335 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9336 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9337 (fnstenv, fldenv, fnstsw, fnclex): New insns.
9338
9339 2013-11-07 Steve Ellcey <sellcey@mips.com>
9340
9341 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9342 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9343 (MULTILIB_DIRNAMES): Add fp64 directory.
9344 (MULTILIB_EXCEPTIONS): Add new exclusions.
9345
9346 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
9347
9348 * gimplify.c (gimple_regimplify_operands): Do not set
9349 SSA_NAME_DEF_STMT.
9350 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9351 (rewrite_close_phi_out_of_ssa): Same.
9352 (rewrite_phi_out_of_ssa): Same.
9353 (rewrite_degenerate_phi): Same.
9354 (handle_scalar_deps_crossing_scop_limits): Same.
9355 * tree-if-conv.c (predicate_scalar_phi): Same.
9356 * tree-parloops.c (create_loads_for_reductions): Same.
9357 (create_final_loads_for_reduction): Same.
9358 (create_loads_and_stores_for_name): Same.
9359 (transform_to_exit_first_loop): Same.
9360 (create_parallel_loop): Same.
9361 * tree-ssa-loop-im.c
9362 (move_computations_dom_walker::before_dom_children): Same.
9363 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9364 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9365 * tree-ssa-propagate.c (substitute_and_fold): Same.
9366 * tree-vect-loop.c (vect_finalize_reduction): Same.
9367 * tree-vect-stmts.c (vectorizable_call): Same.
9368
9369 2013-11-07 Mike Stump <mikestump@comcast.net>
9370
9371 * config/pdp11/pdp11.c: Include dbxout.h.
9372 * config/picochip/picochip.c: Likewise.
9373
9374 2013-11-07 Cong Hou <congh@google.com>
9375
9376 PR tree-optimization/56764
9377 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9378 Combine alias checks if it is possible to amortize the runtime
9379 overhead. Return the number of alias checks after merging.
9380 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9381 Use the function vect_create_cond_for_alias_checks () to check
9382 the number of alias checks.
9383
9384 2013-11-07 Jeff Law <law@redhat.com>
9385
9386 * varpool.c (ctor_for_folding): Fix typo in comment.
9387
9388 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
9389
9390 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9391 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
9392
9393 2013-11-07 Jeff Law <law@redhat.com>
9394
9395 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9396
9397 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9398 No longer check if we have __builtin_trap, assume it's available.
9399
9400 2013-11-07 Diego Novillo <dnovillo@google.com>
9401
9402 * attribs.c (lookup_scoped_attribute_spec): Make static.
9403 (get_attribute_namespace): Likewise.
9404 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9405 (validate_arglist): Move earlier in the file. Make static.
9406 (expand_stack_restore): Move from stmt.c
9407 (expand_stack_save): Move from stmt.c
9408 (rewrite_call_expr_array): Move earlier in the file.
9409 (rewrite_call_expr_valist): Likewise.
9410 * cfgexpand.c: Include hard-reg-set.h before tree.h
9411 Include recog.h.
9412 Include output.h.
9413 (expand_asm_loc): Move from stmt.c.
9414 (n_occurrences): Move from stmt.c.
9415 (check_operand_nalternatives): Move from stmt.c.
9416 (tree_conflicts_with_clobbers_p): Move from stmt.c.
9417 (expand_asm_operands): Move from stmt.c
9418 (expand_asm_stmt): Move from stmt.c
9419 (expand_computed_goto): Move from stmt.c
9420 (expand_goto): Move from stmt.c
9421 (expand_null_return_1): Move from stmt.c
9422 (expand_null_return): Move from stmt.c
9423 (expand_value_return): Move from stmt.c
9424 (expand_return): Move from stmt.c
9425 (expand_main_function): Move from function.c
9426 (stack_protect_prologue): Move from function.c
9427 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9428 (build_function_decl_skip_args): Move from tree.c.
9429 * explow.c (tree_expr_size): Move from tree.c.
9430 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9431 (fields_length): Move from tree.c.
9432 * fold-const.c (size_low_cst): Move from tree.c.
9433 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9434 (tree_expr_nonzero_p): Make static. Move earlier in the file.
9435 (fold_build3_initializer_loc): Remove.
9436 (tree_invalid_nonnegative_warnv_p): Make static.
9437 * function.c (expand_main_function): Move to cfgexpand.c.
9438 (stack_protect_prologue): Move to cfgexpand.c.
9439 (set_insn_locations): Move earlier in the file.
9440 * gimple-fold.c: Include langhooks.h.
9441 (truth_type_for): Move from tree.c.
9442 * print-tree.c (print_vec_tree): Remove.
9443 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9444 (expand_goto): Move to cfgexpand.c.
9445 (n_occurrences): Move to cfgexpand.c.
9446 (expand_asm_loc): Move to cfgexpand.c
9447 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9448 (expand_asm_operands): Move to cfgexpand.c.
9449 (expand_asm_stmt): Move to cfgexpand.c.
9450 (check_operand_nalternatives): Move to cfgexpand.c
9451 (expand_null_return): Move to cfgexpand.c.
9452 (expand_value_return): Move to cfgexpand.c.
9453 (expand_null_return_1): Move to cfgexpand.c.
9454 (expand_return): Move to cfgexpand.c.
9455 (expand_stack_save): Move to builtins.c.
9456 (expand_stack_restore): Move to builtins.c
9457 * symtab.c: Include output.h.
9458 (decl_assembler_name_hash): Move from tree.c.
9459 (decl_assembler_name_equal): Move from tree.c.
9460 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9461 * tree-eh.c (in_array_bounds_p): Move from tree.c.
9462 (range_in_array_bounds_p): Move from tree.c.
9463 * tree-object-size.c (fini_object_sizes): Make static.
9464 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9465 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9466 * tree.c (decl_assembler_name_equal): Move to symtab.c.
9467 (tree_expr_size): Move to explow.c.
9468 (decl_assembler_name_hash): Move to symtab.c.
9469 (real_twop): Remove.
9470 (tree_expr_size): Move to explow.c.
9471 (stabilize_reference_1): Move earlier in the file. Make static.
9472 (omp_remove_redundant_declare_simd_attrs): Remove.
9473 (simple_cst_list_equal): Move earlier in the file. Make static.
9474 (size_low_cst): Move to fold-const.c.
9475 (build_type_no_quals): Remove.
9476 (build_function_type_skip_args): Move to cgraphclones.c.
9477 (build_function_decl_skip_args): Move to cgraphclones.c.
9478 (in_array_bounds_p): Move to tree-eh.c.
9479 (range_in_array_bounds_p): Move to tree-eh.c.
9480 (truth_type_for): Move to gimple-fold.c.
9481 (list_equal_p): Remove.
9482 * tree.h (decl_assembler_name_equal): Remove.
9483 (decl_assembler_name_hash): Remove.
9484 (truth_type_for): Remove.
9485 (build_type_no_quals): Remove.
9486 (build_function_decl_skip_args): Remove.
9487 (in_array_bounds_p): Remove.
9488 (range_in_array_bounds_p): Remove.
9489 (size_low_cst): Remove.
9490 (omp_remove_redundant_declare_simd_attrs): Remove.
9491 (tree_expr_size): Remove.
9492 (fields_length): Remove.
9493 (stabilize_reference_1): Remove.
9494 (expand_goto): Remove.
9495 (expand_stack_save): Remove.
9496 (expand_stack_restore): Remove.
9497 (expand_return): Remove.
9498 (fold_build3_initializer_loc): Remove.
9499 (tree_expr_nonzero_p): Remove.
9500 (tree_invalid_nonnegative_warnv_p): Remove.
9501 (tree_expr_nonzero_warnv_p): Remove.
9502 (fold_builtin_snprintf_chk): Remove.
9503 (validate_arglist): Remove.
9504 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9505 (simple_cst_list_equal): Remove.
9506 (real_twop): Remove.
9507 (expand_main_function): Remove.
9508 (stack_protect_prologue): Remove.
9509 (print_vec_tree): Remove.
9510 (lookup_scoped_attribute_spec): Remove.
9511 (get_attribute_namespace): Remove.
9512 (expand_computed_goto): Remove.
9513 (expand_asm_stmt): Remove.
9514 (list_equal_p): Remove.
9515 (ssa_name_nonnegative_p): Remove.
9516 (fini_object_sizes): Remove.
9517 (addr_expr_of_non_mem_decl_p): Remove.
9518 (is_tm_safe_or_pure): Move to trans-mem.c.
9519 (more_const_call_expr_args_p): Remove.
9520 (save_vtable_map_decl): Remove.
9521
9522 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9523
9524 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9525 linker plugins, too.
9526
9527 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9528 link to libgomp and its dependencies.
9529 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9530 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9531 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9532 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9533
9534 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9535
9536 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9537 (determine_value_range): Add loop argument. Use get_range_info to
9538 improve range.
9539 (bound_difference): Adjust caller.
9540
9541 2013-11-07 Richard Biener <rguenther@suse.de>
9542 Jakub Jelinek <jakub@redhat.com>
9543
9544 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9545 latches from header PHI arguments from the latch edge.
9546
9547 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9548
9549 PR c++/58176
9550 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9551
9552 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9553
9554 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9555 misaligned_prologue_used when it has been set.
9556
9557 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9558 Jakub Jelinek <jakub@redhat.com>
9559
9560 PR sanitizer/59029
9561 * asan.c (get_mem_refs_of_builtin_call): Allow
9562 integer literals as addresses in instrumented builtins.
9563
9564 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9565
9566 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9567 Explain why plus_constant is not used.
9568
9569 2013-11-07 Richard Biener <rguenther@suse.de>
9570
9571 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9572 (canonicalize_value): ... this. Also handle stripping of
9573 TREE_OVERFLOW.
9574 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9575 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9576 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9577
9578 2013-11-07 Richard Biener <rguenther@suse.de>
9579
9580 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9581
9582 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9583
9584 PR target/59034
9585 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9586 with stack_pointer_rtx.
9587
9588 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9589
9590 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9591 using operand_equal_p.
9592
9593 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9594
9595 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9596 * tree-affine.c (get_inner_reference_aff): Return base.
9597 * tree-affine.h (get_inner_reference_aff): Change prototype.
9598
9599 2013-11-06 Tobias Burnus <burnus@net-b.de>
9600
9601 * doc/invoke.texi (Wdate-time): Fix typo.
9602
9603 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9604
9605 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9606 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9607 fp_arith_reg_operand instead of arith_reg_operand.
9608
9609 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9610
9611 * config/sh/sh.md (adddi3): Remove empty constraints.
9612 Remove can_create_pseudo_p and arith_reg_operand check.
9613 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9614 Split before reload.
9615
9616 2013-11-06 Jeff Law <law@redhat.com>
9617 Tom Tromey <tromey@redhat.com>
9618
9619 * gdbinit.in: Disable strict type checking.
9620
9621 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9622
9623 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9624 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9625 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9626 (rest_of_handle_live_range_shrinkage): Ditto
9627 (class pass_live_range_shrinkage): Ditto.
9628 (pass_data_live_range_shrinkage): Ditto.
9629 (make_pass_live_range_shrinkage): Ditto.
9630 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9631 (finish_live_range_shrinkage): Ditto.
9632 * sched-deps.c (create_insn_reg_set): Make void return value.
9633 * passes.def: Add pass_live_range_shrinkage.
9634 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9635 * haifa-sched.c (live_range_shrinkage_p): New.
9636 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9637 New functions.
9638 (rank_for_schedule): Add code for pressure relief through live
9639 range shrinkage.
9640 (schedule_insn): Print more debug info.
9641 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9642 through live range shrinkage.
9643 * doc/invoke.texi (-flive-range-shrinkage): New.
9644 * common.opt (flive-range-shrinkage): New.
9645
9646 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9647
9648 PR target/59021
9649 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9650 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9651 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9652 RTXes that return in AVX256 register.
9653
9654 2013-11-06 Richard Biener <rguenther@suse.de>
9655
9656 PR tree-optimization/58653
9657 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9658 (prepare_initializers_chain): Adjust.
9659
9660 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9661
9662 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9663 (gimple_in_transaction): Use bb_in_transaction.
9664 * basic-block.h (bb_in_transaction): Relocate here and rename.
9665 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9666
9667 2013-11-06 Richard Biener <rguenther@suse.de>
9668
9669 * tree.c (drop_tree_overflow): New function.
9670 * tree.h (drop_tree_overflow): Declare.
9671 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9672 * tree-vrp.c (range_int_cst_singleton_p): Use
9673 is_overflow_infinity instead of testing TREE_OVERFLOW.
9674 (extract_range_from_assert): Likewise.
9675 (zero_nonzero_bits_from_vr): Likewise.
9676 (extract_range_basic): Likewise.
9677 (register_new_assert_for): Use drop_tree_overflow.
9678 (vrp_visit_phi_node): Likewise.
9679
9680 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9681
9682 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9683 checking for leaf functions without dynamic stack allocation.
9684 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9685 (ia64_expand_prologue): Likewise.
9686 * config/mips/mips.c (mips_expand_prologue): Likewise.
9687 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9688 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9689 (sparc_flat_expand_prologue): Likewise.
9690
9691 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9692
9693 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9694 (__ST3_LANE_FUNC): Likewise.
9695 (__ST4_LANE_FUNC): Likewise.
9696
9697 2013-11-06 Nick Clifton <nickc@redhat.com>
9698
9699 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9700 name returned by msp430_mcu_name.
9701 (LIB_SPEC): If a -T option has not been specified then set a
9702 default, mcu-specific, linker script.
9703 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9704 * config/msp430/msp430.c (msp430x_names): Likewise.
9705 Alpha sort the names for ease of comparison.
9706 (msp430_mcu_name): New function: Returns a string suitable for
9707 use as a C preprocessor symbol based upon the name of the MCU
9708 being targeted.
9709 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9710 mcu names.
9711 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9712
9713 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9714 unless it is the last part of a spec substring.
9715 * doc/invoke.texi (Spec Files): Document space insertion
9716 behaviour of %*.
9717
9718 2013-11-06 Christian Bruel <christian.bruel@st.com>
9719
9720 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9721 Factorize probabilities, Use adjust_address instead of
9722 adjust_automodify_address when possible. Enable for optimize.
9723 (sh_expand_strlen): New function.
9724 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9725 * config/sh/sh.md (strlensi): New pattern.
9726 (UNSPEC_BUILTIN_STRLEN): Define.
9727
9728 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9729
9730 PR middle-end/58970
9731 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9732 (expand_assignment): If *bitpos is negative, set *offset
9733 and adjust *bitpos, so that it is not negative.
9734
9735 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9736
9737 * config/i386/bdver3.md : Added two additional decoder units
9738 to support issue rate of 4 and remodeled vector unit.
9739 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9740 architectures is set to 4.
9741 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9742 lookahead is set to 4 for BD architectures.
9743
9744 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9745
9746 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9747 Remove restriction against use of VSX instructions when generating
9748 code for little endian mode.
9749
9750 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9751
9752 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9753 for both big and little endian.
9754 (mulv8hi3): Swap input operands for merge high and merge low
9755 instructions for little endian.
9756
9757 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9758
9759 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9760 define_insn to define_expand that uses even patterns for big
9761 endian and odd patterns for little endian.
9762 (vec_widen_smult_even_v16qi): Likewise.
9763 (vec_widen_umult_even_v8hi): Likewise.
9764 (vec_widen_smult_even_v8hi): Likewise.
9765 (vec_widen_umult_odd_v16qi): Likewise.
9766 (vec_widen_smult_odd_v16qi): Likewise.
9767 (vec_widen_umult_odd_v8hi): Likewise.
9768 (vec_widen_smult_odd_v8hi): Likewise.
9769 (altivec_vmuleub): New define_insn.
9770 (altivec_vmuloub): Likewise.
9771 (altivec_vmulesb): Likewise.
9772 (altivec_vmulosb): Likewise.
9773 (altivec_vmuleuh): Likewise.
9774 (altivec_vmulouh): Likewise.
9775 (altivec_vmulesh): Likewise.
9776 (altivec_vmulosh): Likewise.
9777
9778 2013-11-05 Mike Stump <mikestump@comcast.net>
9779
9780 * Makefile.in (mostlyclean): Remove c-family objects.
9781
9782 2013-11-05 Ian Lance Taylor <iant@google.com>
9783
9784 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9785 If possible, add .cfi directives to record change to bx.
9786 * config/i386/i386.c (ix86_emit_cfi): New function.
9787 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9788
9789 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9790
9791 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9792 immediately after a label for a tablejump pattern.
9793
9794 * config/arm/arm.c (is_jump_table): Remove.
9795 (create_fix_barrier): Use tablejump_p instead.
9796 (arm_reorg): Likewise.
9797 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9798 (thumb2_output_casesi): Likewise.
9799 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9800 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9801 casesi_shift_media, casesi_load_media): Likewise.
9802 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9803 * config/microblaze/microblaze.md: Likewise.
9804
9805 2013-11-05 Tobias Burnus <burnus@net-b.de>
9806
9807 * doc/invoke.texi (-Wdate-time): Document.
9808
9809 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9810
9811 * double-int.c (lshift_double, rshift_double): Remove
9812 SHIFT_COUNT_TRUNCATED handling.
9813
9814 2013-11-05 Jeff Law <law@redhat.com>
9815
9816 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9817 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9818 * gimple-ssa-isolate-paths.c: New file.
9819 * gimple.c (check_loadstore): New function.
9820 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9821 Verify OP is in the argument list and the argument corresponding
9822 to OP is a pointer type. Use operand_equal_p rather than
9823 pointer equality when testing if OP is on the nonnull list.
9824 Use check_loadstore rather than count_ptr_derefs. Handle
9825 GIMPLE_RETURN statements.
9826 * tree-vrp.c (infer_nonnull_range): Remove.
9827 * gimple.h (infer_nonnull_range): Declare.
9828 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9829 * passes.def: Add pass_isolate_erroneous_paths.
9830 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9831 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9832 * tree-ssa.c (struct count_ptr_d): Remove.
9833 (count_ptr_derefs, count_uses_and_derefs): Remove.
9834 * tree-ssa.h (count_uses_and_derefs): Remove.
9835
9836 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9837
9838 PR rtl-optimization/58997
9839 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9840 get_iv_value to be in iv->mode rather than iv->extend_mode.
9841 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9842 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9843 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9844 mode.
9845
9846 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9847
9848 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9849 list.
9850 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9851 Move to gimple-expr.h.
9852 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9853 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9854 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9855 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9856 Relocate here.
9857 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9858 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9859 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9860 is_gimple_address, is_gimple_invariant_address,
9861 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9862 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9863 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9864 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9865 gimple_decl_printable_name, useless_type_conversion_p,
9866 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9867 gimple-expr.[ch].
9868 * gimple-expr.c: New File.
9869 (useless_type_conversion_p, gimple_set_body, gimple_body,
9870 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9871 gimple_can_coalesce_p, extract_ops_from_tree_1,
9872 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9873 is_gimple_address, is_gimple_invariant_address,
9874 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9875 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9876 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9877 is_gimple_mem_ref_addr): Relocate here.
9878 * Makefile.in (OBJS): Add gimple-expr.o.
9879
9880 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9881
9882 * gengtype-parse.c (struct_field_seq): Support empty structs.
9883
9884 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9885
9886 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9887
9888 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9889
9890 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9891 for !TARGET_80387.
9892 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9893 _SOFT_FLOAT here.
9894 (LONG_DOUBLE_TYPE_SIZE): New define.
9895 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9896
9897 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9898
9899 PR c++/58724
9900 * doc/extend.texi [visibility ("visibility_type")]: Add example
9901 about visibility attribute on namespace declaration.
9902
9903 2013-11-05 Richard Biener <rguenther@suse.de>
9904
9905 PR ipa/58492
9906 * passes.def (all_passes): Start with pass_fixup_cfg again.
9907
9908 2013-11-05 Richard Biener <rguenther@suse.de>
9909
9910 PR tree-optimization/58955
9911 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9912 edge direction.
9913
9914 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9915
9916 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9917 little endian.
9918 (vec_pack_ufix_trunc_v2df): Likewise.
9919
9920 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9921
9922 PR middle-end/58981
9923 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9924 pattern, instead of word_mode.
9925
9926 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9927 Pmode for size.
9928 (set_storage_via_setmem): Likewise.
9929
9930 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9931
9932 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9933 gimple.h and the rest of the condition in eliminate_build.
9934 (eliminate_build): Call new routine.
9935 * gimple.h (phi_ssa_name_p): Delete.
9936
9937 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9938
9939 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9940 case of no prefix and reserving zero slots, because when that's the
9941 case we'll never get here.
9942 * vec.h (va_heap::reserve): Don't try and handle
9943 vec_prefix::calculate_allocation returning zero because that should
9944 never happen.
9945
9946 2013-11-05 Richard Biener <rguenther@suse.de>
9947
9948 PR middle-end/58941
9949 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9950 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9951 process trailing array detection before diving into the
9952 view-converted object (and possibly apply some extra offset).
9953
9954 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9955
9956 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9957 New function.
9958 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9959
9960 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9961
9962 PR tree-optimization/58958
9963 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9964 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9965
9966 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9967
9968 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9969 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9970
9971 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9972
9973 PR tree-optimization/58984
9974 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9975 set *SIZE_P if non-NULL on success.
9976 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9977 callers.
9978 (ipcp_transform_function): Likewise. Punt if size of access
9979 is different from TYPE_SIZE on v->value's type.
9980
9981 2013-11-05 Tobias Burnus <burnus@net-b.de>
9982
9983 * doc/invoke.texi (-fopenmp-simd): Document new option.
9984 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9985 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9986 * tree.c (attribute_value_equal): Ditto.
9987
9988 2013-11-04 Wei Mi <wmi@google.com>
9989
9990 * sched-rgn.c (add_branch_dependences): Keep insns in
9991 a SCHED_GROUP at the end of BB to remain their location.
9992
9993 2013-11-04 Wei Mi <wmi@google.com>
9994
9995 * config/i386/i386.c (memory_address_length): Extract a part
9996 of code to rip_relative_addr_p.
9997 (rip_relative_addr_p): New Function.
9998 (ix86_macro_fusion_p): Ditto.
9999 (ix86_macro_fusion_pair_p): Ditto.
10000 * config/i386/i386.h: Add new tune features about macro-fusion.
10001 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10002 * doc/tm.texi: Generated.
10003 * doc/tm.texi.in: Ditto.
10004 * haifa-sched.c (try_group_insn): New Function.
10005 (group_insns_for_macro_fusion): Ditto.
10006 (sched_init): Call group_insns_for_macro_fusion.
10007 * target.def: Add two hooks: macro_fusion_p and
10008 macro_fusion_pair_p.
10009
10010 2013-11-04 Kostya Serebryany <kcc@google.com>
10011
10012 Update to match the changed asan API.
10013 * asan.c (asan_function_start): New function.
10014 (asan_emit_stack_protection): Update the string stored in the
10015 stack red zone to match new API. Store the PC of the current
10016 function in the red zone.
10017 (asan_global_struct): Update the __asan_global definition to match
10018 the new API.
10019 (asan_add_global): Ditto.
10020 * asan.h (asan_function_start): New prototype.
10021 * final.c (final_start_function): Call asan_function_start.
10022 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10023 to __asan_init_v3.
10024
10025 2013-11-04 Wei Mi <wmi@google.com>
10026
10027 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10028 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10029 * config/i386/i386.c (ix86_option_override_internal): Ditto.
10030 (ix86_issue_rate): Ditto.
10031 (ix86_adjust_cost): Ditto.
10032 (ia32_multipass_dfa_lookahead): Ditto.
10033 (ix86_sched_init_global): Ditto.
10034 (get_builtin_code_for_version): Ditto.
10035 * config/i386/i386.h (enum target_cpu_default): Ditto.
10036 (enum processor_type): Ditto.
10037 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10038
10039 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10040
10041 PR rtl-optimization/58967
10042 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10043 !lra_in_progress for mode sizes bigger word.
10044
10045 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10046
10047 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10048 arguments to merge instruction for little endian.
10049 (vec_widen_umult_lo_v16qi): Likewise.
10050 (vec_widen_smult_hi_v16qi): Likewise.
10051 (vec_widen_smult_lo_v16qi): Likewise.
10052 (vec_widen_umult_hi_v8hi): Likewise.
10053 (vec_widen_umult_lo_v8hi): Likewise.
10054 (vec_widen_smult_hi_v8hi): Likewise.
10055 (vec_widen_smult_lo_v8hi): Likewise.
10056
10057 2013-11-04 Ian Lance Taylor <iant@google.com>
10058
10059 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10060 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10061 builtins that take pointers.
10062 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10063 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10064 (run_gcc): Pass -fnon-call-exceptions.
10065
10066 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10067
10068 * optabs.c (expand_vec_perm): Revert one incorrect line from
10069 2013-10-31 change.
10070
10071 PR tree-optimization/58978
10072 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10073 use_stmt by single_imm_use directly. Only call single_imm_use
10074 on SSA_NAMEs.
10075
10076 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10077
10078 PR rtl-optimization/58968
10079 * lra-spills.c (return_regno_p): New function.
10080 (lra_final_code_change): Use it.
10081
10082 2013-11-04 Joseph Myers <joseph@codesourcery.com>
10083
10084 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10085 * target.def (float_exceptions_rounding_supported_p): New hook.
10086 * targhooks.c (default_float_exceptions_rounding_supported_p): New
10087 function.
10088 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10089 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10090 New @hook.
10091 * doc/tm.texi: Regenerate.
10092 * config.gcc (powerpc*-*-linux*): Set extra_objs.
10093 * config/rs6000/rs6000-linux.c: New file.
10094 * config/rs6000/rs6000-protos.h
10095 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10096 * config/rs6000/linux.h
10097 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10098 * config/rs6000/linux64.h
10099 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10100 * config/rs6000/t-linux (rs6000-linux.o): New rule.
10101 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10102
10103 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10104
10105 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10106 Replace the define_insn_and_split with a define_insn and two
10107 define_splits, with the split after reload re-permuting the source
10108 register to its original value.
10109 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10110 (*vsx_le_perm_store_v8hi): Likewise.
10111 (*vsx_le_perm_store_v16qi): Likewise.
10112
10113 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10114
10115 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
10116 little endian.
10117
10118 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10119
10120 PR tree-optimization/58946
10121 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10122 bbs with bbinfo[idx].op != NULL before all blocks with
10123 bbinfo[idx].op == NULL.
10124
10125 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
10126
10127 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10128 (avr_dump_double_int_hex): Likewise.
10129 (avr_log_vadump): Remove %D and %X handling.
10130 * config/avr/avr.c (avr_double_int_push_digit): Delete.
10131 (avr_map_op_t): Change map from double_int to unsigned int.
10132 (avr_map_op): Update accordingly.
10133 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10134 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10135 unsigned ints rather than double_ints.
10136
10137 2013-11-03 Marek Polacek <polacek@redhat.com>
10138
10139 Implement -fsanitize=vla-bound.
10140 * opts.c (common_handle_option): Handle vla-bound.
10141 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10142 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10143 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10144
10145 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10146
10147 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10148 little endian.
10149
10150 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
10151
10152 * config/i386/constraints.md (Ts, Tv): New address constrains.
10153 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10154 constraint for address_no_seg_operand.
10155 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10156 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10157 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10158 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10159 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10160 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10161 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10162 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10163 constraint for vsib_address_operand.
10164
10165 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
10166
10167 * gcse.c (pre_delete): Remove references to regmove from comments.
10168 * recog.c: (validate_replace_rtx_1): Likewise.
10169 * config/rl78/rl78.c: Likewise.
10170 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10171 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10172 * common/config/mmix/mmix-common.c: Likewise.
10173
10174 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
10175
10176 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10177 * gimplify.c (gimplify_compound_lval): Likewise.
10178 * graphite-clast-to-gimple.c (gloog): Likewise.
10179 * graphite-dependences.c (loop_is_parallel_p): Likewise.
10180 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10181 (limit_scop); Likewise.
10182 (build_scops): Likewise.
10183 (dot_scop): Likewise.
10184 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10185 (build_scop_drs): Likewise.
10186 (insert_stmts): Likewise.
10187 (insert_out_of_ssa_copy): Likewise.
10188 (remove_phi): Likewise.
10189 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10190 * hw-doloop.c (discover_loop): Likewise.
10191 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10192 * tree-dfa.c (dump_enumerated_decls): Likewise.
10193 * tree-if-conv.c (if_convertable_loop_p): Likewise.
10194 * tree-inline.c (tree_function_versioning): Likewise.
10195 * tree-loop-distribution.c (build_rdg): Likewise.
10196 (rdg_flag_vertex_and_dependent): Likewise.
10197 (distribute_loop): Likewise.
10198 * tree-parloops.c (loop_parallel_p): Likewise.
10199 (eliminate_local_variables): Likewise.
10200 (separate_decls_in_region): Likewise.
10201 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10202 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10203 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10204 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10205 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10206 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10207 (vectorizable_condition): Likewise.
10208
10209 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
10210
10211 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10212 * configure: Regenerate.
10213 * config/i386/i386.md (*movdi_internal): Change
10214 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10215 (*movdf_internal): Ditto.
10216 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10217 * config/i386/sse.md (vec_concatv2di): Output interunit movq
10218 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10219
10220 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
10221
10222 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10223 after comment.
10224
10225 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10226
10227 Automated part of renaming of symtab_node_base to symtab_node.
10228
10229 Patch autogenerated by rename_symtab.py from
10230 https://github.com/davidmalcolm/gcc-refactoring-scripts
10231 revision 58bb219cc090b2f4516a9297d868c245495ee622
10232 with ChangeLog entry fixed up by hand.
10233
10234 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10235 symtab_node.
10236 (cgraph_node_for_asm): Likewise.
10237 * cgraph.h (symtab_node_base): Likewise.
10238 (cgraph_node): Likewise.
10239 (varpool_node): Likewise.
10240 (is_a_helper <cgraph_node>::test): Likewise.
10241 (is_a_helper <varpool_node>::test): Likewise.
10242 (symtab_nodes): Likewise.
10243 (symtab_register_node): Likewise.
10244 (symtab_unregister_node): Likewise.
10245 (symtab_remove_node): Likewise.
10246 (symtab_get_node): Likewise.
10247 (symtab_node_for_asm): Likewise.
10248 (symtab_node_asm_name): Likewise.
10249 (symtab_node_name): Likewise.
10250 (symtab_insert_node_to_hashtable): Likewise.
10251 (symtab_add_to_same_comdat_group): Likewise.
10252 (symtab_dissolve_same_comdat_group_list): Likewise.
10253 (dump_symtab_node): Likewise.
10254 (debug_symtab_node): Likewise.
10255 (dump_symtab_base): Likewise.
10256 (verify_symtab_node): Likewise.
10257 (verify_symtab_base): Likewise.
10258 (symtab_used_from_object_file_p): Likewise.
10259 (symtab_alias_ultimate_target): Likewise.
10260 (symtab_resolve_alias): Likewise.
10261 (fixup_same_cpp_alias_visibility): Likewise.
10262 (symtab_for_node_and_aliases): Likewise.
10263 (symtab_nonoverwritable_alias): Likewise.
10264 (availability symtab_node_availability): Likewise.
10265 (symtab_semantically_equivalent_p): Likewise.
10266 (fixup_same_cpp_alias_visibility): Likewise.
10267 (symtab_prevail_in_asm_name_hash): Likewise.
10268 (cgraph): Likewise.
10269 (varpool): Likewise.
10270 (varpool_first_variable): Likewise.
10271 (varpool_next_variable): Likewise.
10272 (varpool_first_static_initializer): Likewise.
10273 (varpool_next_static_initializer): Likewise.
10274 (varpool_first_defined_variable): Likewise.
10275 (varpool_next_defined_variable): Likewise.
10276 (cgraph_first_defined_function): Likewise.
10277 (cgraph_next_defined_function): Likewise.
10278 (cgraph_first_function): Likewise.
10279 (cgraph_next_function): Likewise.
10280 (cgraph_first_function_with_gimple_body): Likewise.
10281 (cgraph_next_function_with_gimple_body): Likewise.
10282 (symtab_alias_target): Likewise.
10283 (symtab_real_symbol_p): Likewise.
10284 (symtab_can_be_discarded): Likewise.
10285 * cgraphbuild.c (mark_address): Likewise.
10286 (mark_load): Likewise.
10287 (mark_store): Likewise.
10288 * cgraphunit.c (decide_is_symbol_needed): Likewise.
10289 (first): Likewise.
10290 (enqueue_node): Likewise.
10291 (referred_to_p): Likewise.
10292 (cgraph_process_same_body_aliases): Likewise.
10293 (analyze_functions): Likewise.
10294 (handle_alias_pairs): Likewise.
10295 (output_weakrefs): Likewise.
10296 (compile): Likewise.
10297 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10298 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10299 * ipa-prop.c (remove_described_reference): Likewise.
10300 (try_decrement_rdesc_refcount): Likewise.
10301 (ipa_edge_duplication_hook): Likewise.
10302 * ipa-ref.c (ipa_record_reference): Likewise.
10303 (ipa_maybe_record_reference): Likewise.
10304 (ipa_clone_ref): Likewise.
10305 (ipa_clone_references): Likewise.
10306 (ipa_clone_referring): Likewise.
10307 (ipa_find_reference): Likewise.
10308 (ipa_remove_stmt_references): Likewise.
10309 (ipa_clear_stmts_in_references): Likewise.
10310 * ipa-ref.h (symtab_node_base): Likewise.
10311 (ipa_ref): Likewise.
10312 (ipa_record_reference): Likewise.
10313 (ipa_maybe_record_reference): Likewise.
10314 (ipa_clone_references): Likewise.
10315 (ipa_clone_referring): Likewise.
10316 (ipa_clone_ref): Likewise.
10317 (ipa_find_reference): Likewise.
10318 (ipa_remove_stmt_references): Likewise.
10319 (ipa_clear_stmts_in_references): Likewise.
10320 * ipa-reference.c (ipa_reference_write_optimization_summary):
10321 Likewise.
10322 * ipa.c (enqueue_node): Likewise.
10323 (process_references): Likewise.
10324 (walk_polymorphic_call_targets): Likewise.
10325 (symtab_remove_unreachable_nodes): Likewise.
10326 (address_taken_from_non_vtable_p): Likewise.
10327 (comdat_can_be_unshared_p_1): Likewise.
10328 (comdat_can_be_unshared_p): Likewise.
10329 (can_replace_by_local_alias): Likewise.
10330 (function_and_variable_visibility): Likewise.
10331 * is-a.h: Likewise (within example in comment).
10332 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10333 (lto_symtab_encoder_encode): Likewise.
10334 (lto_symtab_encoder_delete_node): Likewise.
10335 (lto_symtab_encoder_in_partition_p): Likewise.
10336 (lto_set_symtab_encoder_in_partition): Likewise.
10337 (output_refs): Likewise.
10338 (compute_ltrans_boundary): Likewise.
10339 (output_symtab): Likewise.
10340 (input_node): Likewise.
10341 (input_ref): Likewise.
10342 (input_edge): Likewise.
10343 (input_cgraph_1): Likewise.
10344 (input_refs): Likewise.
10345 (output_cgraph_opt_summary): Likewise.
10346 (input_node_opt_summary): Likewise.
10347 (input_cgraph_opt_section): Likewise.
10348 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10349 Likewise.
10350 * lto-streamer-out.c (lto_output): Likewise.
10351 (output_symbol_p): Likewise.
10352 (produce_symtab): Likewise.
10353 * lto-streamer.h (lto_encoder_entry): Likewise.
10354 (lto_free_function_in_decl_state_for_node): Likewise.
10355 (lto_symtab_encoder_encode): Likewise.
10356 (lto_symtab_encoder_delete_node): Likewise.
10357 (lto_symtab_encoder_in_partition_p): Likewise.
10358 (lto_set_symtab_encoder_in_partition): Likewise.
10359 (lto_symtab_encoder_lookup): Likewise.
10360 (lsei_node): Likewise.
10361 (lto_symtab_encoder_deref): Likewise.
10362 * symtab.c (symtab_hash): Likewise.
10363 (assembler_name_hash): Likewise.
10364 (symtab_nodes): Likewise.
10365 (hash_node): Likewise.
10366 (eq_node): Likewise.
10367 (hash_node_by_assembler_name): Likewise.
10368 (eq_assembler_name): Likewise.
10369 (insert_to_assembler_name_hash): Likewise.
10370 (unlink_from_assembler_name_hash): Likewise.
10371 (symtab_prevail_in_asm_name_hash): Likewise.
10372 (symtab_register_node): Likewise.
10373 (symtab_insert_node_to_hashtable): Likewise.
10374 (symtab_unregister_node): Likewise.
10375 (symtab_get_node): Likewise.
10376 (symtab_remove_node): Likewise.
10377 (symtab_initialize_asm_name_hash): Likewise.
10378 (symtab_node_for_asm): Likewise.
10379 (symtab_add_to_same_comdat_group): Likewise.
10380 (symtab_dissolve_same_comdat_group_list): Likewise.
10381 (symtab_node_asm_name): Likewise.
10382 (symtab_node_name): Likewise.
10383 (dump_symtab_base): Likewise.
10384 (dump_symtab_node): Likewise.
10385 (dump_symtab): Likewise.
10386 (debug_symtab_node): Likewise.
10387 (verify_symtab_base): Likewise.
10388 (verify_symtab_node): Likewise.
10389 (verify_symtab): Likewise.
10390 (symtab_used_from_object_file_p): Likewise.
10391 (symtab_node_availability): Likewise.
10392 (symtab_alias_ultimate_target): Likewise.
10393 (fixup_same_cpp_alias_visibility): Likewise.
10394 (symtab_resolve_alias): Likewise.
10395 (symtab_for_node_and_aliases): Likewise.
10396 (symtab_for_node_and_aliases): Likewise.
10397 (symtab_nonoverwritable_alias_1): Likewise.
10398 (symtab_nonoverwritable_alias): Likewise.
10399 (symtab_semantically_equivalent_p): Likewise.
10400 * value-prof.c (init_node_map): Likewise.
10401 * varasm.c (find_decl): Likewise.
10402 * varpool.c (varpool_node_for_asm): Likewise.
10403 (varpool_remove_unreferenced_decls): Likewise.
10404
10405 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10406
10407 Manual part of renaming of symtab_node_base to symtab_node.
10408
10409 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10410 clashes with the preferred name for the base class.
10411 (const_symtab_node): Remove redundant typedef.
10412
10413 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10414
10415 * optabs.c (expand_vec_perm): Avoid vector mode punning
10416 SUBREGs in SET_DEST.
10417 * expmed.c (store_bit_field_1): Likewise.
10418 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10419 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10420 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10421 * config/i386/i386.c (ix86_expand_vector_move_misalign,
10422 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10423 ix86_expand_sse_unpack, ix86_expand_args_builtin,
10424 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10425 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10426 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10427 expand_vec_perm_vpshufb2_vpermq,
10428 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10429 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10430 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10431 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
10432 than *d itself.
10433
10434 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
10435
10436 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10437 Use gcc_unreachable for unhandled modes. Do not check results of
10438 expand_simple_binop. If not expanded to target, move the result.
10439
10440 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
10441 Shiva Chen <shiva0217@gmail.com>
10442
10443 * config.gcc (nds32*-*-*): Add nds32 target.
10444 * config/nds32/nds32.c: New file.
10445 * config/nds32/nds32.h: New file.
10446 * config/nds32/nds32.md: New file.
10447 * config/nds32/constants.md: New file.
10448 * config/nds32/constraints.md: New file.
10449 * config/nds32/iterators.md: New file.
10450 * config/nds32/nds32-doubleword.md: New file.
10451 * config/nds32/nds32-intrinsic.md: New file.
10452 * config/nds32/nds32_intrinsic.h: New file.
10453 * config/nds32/nds32-modes.def: New file.
10454 * config/nds32/nds32-multiple.md: New file.
10455 * config/nds32/nds32.opt: New file.
10456 * config/nds32/nds32-opts.h: New file.
10457 * config/nds32/nds32-protos.h: New file.
10458 * config/nds32/nds32-peephole2.md: New file.
10459 * config/nds32/pipelines.md: New file.
10460 * config/nds32/predicates.md: New file.
10461 * config/nds32/t-mlibs: New file.
10462 * common/config/nds32: New directory and files.
10463
10464 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10465 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10466 * doc/install.texi (Cross-Compiler-Specific Options): Document
10467 --with-nds32-lib for nds32 target.
10468 * doc/extend.texi (Function Attributes, Target Builtins): Document
10469 nds32 specific attributes.
10470
10471 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10472
10473 * lra-constraints (process_alt_operands): Use the result
10474 elimination register for operand when matching constraints.
10475
10476 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10477
10478 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10479 (remove_range_assertions): Call it.
10480
10481 * tree.c (tree_ctz): New function.
10482 * tree.h (tree_ctz): New prototype.
10483 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10484 first argument from tree to const_tree.
10485 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10486 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10487 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10488 static.
10489 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10490 * tree-vect-loop.c (vect_analyze_loop_operations,
10491 vect_transform_loop): Don't force scalar loop for bound just because
10492 number of iterations is unknown, only do it if it is not known to be
10493 a multiple of vectorization_factor.
10494 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10495
10496 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10497 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10498 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10499 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10500 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10501 a default def isn't partially constant.
10502 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10503 is known to be partially zero.
10504 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10505 to see if a default def isn't partially constant.
10506 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10507 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10508 the range.
10509 (set_nonzero_bits, get_nonzero_bits): New functions.
10510
10511 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10512 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10513 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10514 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10515 uses but in the condition and ASSERT_EXPR and the other successor of
10516 the predecessor bb is __builtin_unreachable (), set_range_info of the
10517 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10518
10519 2013-10-31 Martin Jambor <mjambor@suse.cz>
10520
10521 PR rtl-optimization/58934
10522 Revert:
10523 2013-10-30 Martin Jambor <mjambor@suse.cz>
10524 PR rtl-optimization/10474
10525 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10526 nor df analysis.
10527 (interesting_dest_for_shprep): New function.
10528 (split_live_ranges_for_shrink_wrap): Likewise.
10529 (ira): Calculate dominance info and df analysis. Call
10530 split_live_ranges_for_shrink_wrap.
10531
10532 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10533 Yury Gribov <y.gribov@samsung.com>
10534
10535 PR sanitizer/58543
10536 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10537 shadow pointer to avoid clobbering the main one.
10538
10539 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10540
10541 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10542
10543 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10544
10545 PR bootstrap/58933
10546 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10547 it for calling update_costs_from_allocno.
10548 (assign_hard_reg): Call restore_costs_from_copies only for
10549 !retry_p. Pass new argument to update_costs_from_copies.
10550 (color_pass): Pass new argument to update_costs_from_copies.
10551 (ira_mark_allocation_change): Ditto.
10552
10553 2013-10-30 Sharad Singhai <singhai@google.com>
10554
10555 PR middle-end/58134
10556 * opts.c (common_handle_option): Remove deprecated option
10557 -ftree-vectorizer-verbose.
10558 * doc/invoke.texi (Debugging Options): Ditto.
10559 * opts-global.c (handle_common_deferred_options): Ditto.
10560 (dump_remap_tree_vectorizer_verbose): Delete.
10561 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10562
10563 2013-10-30 DJ Delorie <dj@redhat.com>
10564
10565 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10566 that take no arguments.
10567
10568 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10569
10570 PR other/58545
10571 * reload1.c (update_eliminables_and_spill): New function, broken
10572 out of reload.
10573 (reload): Use it. Check for frame size change after frame size
10574 alignment, and call update_eliminables_and_spill first if continue-ing.
10575
10576 2013-10-30 Cong Hou <congh@google.com>
10577
10578 PR target/58762
10579 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10580 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10581 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10582
10583 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10584
10585 PR rtl-optimization/58369
10586 * reload1.c (compute_reload_subreg_offset): New function.
10587 (choose_reload_regs): Use it to pass endian-correct
10588 offset to subreg_regno_offset.
10589
10590 2013-10-30 Tobias Burnus <burnus@net-b.de>
10591
10592 PR other/33426
10593 * tree-cfg.c (replace_loop_annotate): Replace warning by
10594 warning_at.
10595
10596 2013-10-30 Jason Merrill <jason@redhat.com>
10597
10598 * configure.ac (loose_warn): Add -Wno-format if
10599 --disable-build-format-warnings.
10600
10601 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10602
10603 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10604 onto multiple lines to make things easier for rename_symtab.py.
10605
10606 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10607 (symtab_semantically_equivalent_p): Likewise.
10608
10609 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10610
10611 PR target/58784
10612 * lra.c (check_rtl): Remove address check before LRA work.
10613
10614 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10615
10616 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10617 POINTER_PLUS_EXPR in the defining statement.
10618
10619 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10620
10621 * regmove.c: Remove.
10622 * tree-pass.h (make_pass_regmove): Remove.
10623 * timevar.def (TV_REGMOVE): Remove.
10624 * passes.def (pass_regmove): Remove.
10625 * opts.c (default_options_table): Remove entry for regmove.
10626 * doc/passes.texi: Remove regmove pass description.
10627 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10628 options.
10629 (-fdump-rtl-regmove): Ditto.
10630 * common.opt (foptimize-register-move, fregmove): Ignore.
10631 * Makefile.in (OBJS): Remove regmove.o.
10632 * regmove.c: Remove.
10633 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10634 and type.
10635 (struct ira_allocno) New member allocno_prefs.
10636 (ALLOCNO_PREFS): New macro.
10637 (ira_prefs, ira_prefs_num): New external vars.
10638 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10639 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10640 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10641 Ditto.
10642 (ira_add_allocno_copy_to_list): Remove prototype.
10643 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10644 (ira_pref_iterator): New type.
10645 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10646 (FOR_EACH_PREF): New macro.
10647 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10648 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10649 code.
10650 (ira_setup_alts): New function.
10651 (decrease_live_ranges_number): New function.
10652 (ira): Call the above function.
10653 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10654 (ira_create_allocno): Initialize allocno prefs.
10655 (pref_pool, pref_vec): New static vars.
10656 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10657 functions.
10658 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10659 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10660 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10661 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10662 (ira_add_allocno_copy_to_list): Make static. Rename to
10663 add_allocno_copy_to_list.
10664 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10665 swap_allocno_copy_ends_if_necessary.
10666 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10667 ira_remove_allocno_prefs.
10668 (ira_flattening): Ditto.
10669 (ira_build): Call initiate_prefs, print_prefs.
10670 (ira_destroy): Call finish_prefs.
10671 * ira-color.c (struct update_cost_record): New.
10672 (struct allocno_color_data): Add new member update_cost_records.
10673 (update_cost_record_pool): New static var.
10674 (init_update_cost_records, get_update_cost_record): New functions.
10675 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10676 (struct update_cost_queue_elem): Add member from.
10677 (initiate_cost_update): Call init_update_cost_records.
10678 (finish_cost_update): Call finish_update_cost_records.
10679 (queue_update_cost, get_next_update_cost): Add new param from.
10680 (Update_allocno_cost, update_costs_from_allocno): New functions.
10681 (update_costs_from_prefs): Ditto.
10682 (update_copy_costs): Rename to update_costs_from_copies.
10683 (restore_costs_from_copies): New function.
10684 (update_conflict_hard_regno_costs): Don't go back.
10685 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10686 more debug info.
10687 (pop_allocnos): Add priniting more debug info.
10688 (color_allocnos): Remove prefs for conflicting hard regs.
10689 Call update_costs_from_prefs.
10690 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10691 (get_dup_num): Rename, modify, and move to ira.c
10692 (process_regs_for_copy): Add prefs.
10693 (add_insn_allocno_copies): Put src as first arg of
10694 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10695 * ira-costs.c (record_reg_classes): Modify and move code into
10696 record_operands_costs.
10697 (find_costs_and_classes): Create prefs for the hard reg of small
10698 reg class.
10699 (process_bb_node_for_hard_reg_moves): Add prefs.
10700
10701 2013-10-30 Richard Biener <rguenther@suse.de>
10702
10703 PR middle-end/57100
10704 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10705 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10706 as worker for ...
10707 (pre_and_rev_post_order_compute): ... which now wraps it.
10708 * graph.c (draw_cfg_nodes_no_loops): Use
10709 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10710 on cfun.
10711
10712 2013-10-30 Christian Bruel <christian.bruel@st.com>
10713
10714 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10715 (sh_expand_cmpstr): Handle known align and schedule improvements.
10716 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10717 * config/sh/sh.md (cmpstrnsi): New pattern.
10718
10719 2013-10-30 Martin Jambor <mjambor@suse.cz>
10720
10721 PR rtl-optimization/10474
10722 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10723 nor df analysis.
10724 (interesting_dest_for_shprep): New function.
10725 (split_live_ranges_for_shrink_wrap): Likewise.
10726 (ira): Calculate dominance info and df analysis. Call
10727 split_live_ranges_for_shrink_wrap.
10728
10729 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10730
10731 PR target/58854
10732 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10733
10734 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10735
10736 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10737 * tree.h (POINTER_BOUNDS_P): New.
10738 (BOUNDED_TYPE_P): New.
10739 (BOUNDED_P): New.
10740 (pointer_bounds_type_node): New.
10741 * tree.c (build_common_tree_nodes): Initialize
10742 pointer_bounds_type_node.
10743 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10744 (gimple_call_num_nobnd_args): New.
10745 (gimple_call_nobnd_arg): New.
10746 (gimple_return_retbnd): New.
10747 (gimple_return_set_retbnd): New
10748 * gimple.c (gimple_build_return): Increase number of ops
10749 for return statement.
10750 (gimple_call_get_nobnd_arg_index): New.
10751 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10752
10753 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10754
10755 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10756 with "chkp ctor" and "bnd_legacy" attributes.
10757 * gimplify.c (gimplify_init_constructor): Avoid infinite
10758 loop during gimplification of bounds initializer.
10759
10760 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10761
10762 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10763 (handle_bnd_legacy): New.
10764 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10765 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10766 attributes.
10767
10768 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10769
10770 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10771 (BT_FN_PTR_CONST_PTR): New.
10772 (BT_FN_CONST_PTR_CONST_PTR): New.
10773 (BT_FN_PTR_CONST_PTR_SIZE): New.
10774 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10775 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10776 (BT_FN_VOID_CONST_PTR_SIZE): New.
10777 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10778 * chkp-builtins.def: New.
10779 * builtins.def: include chkp-builtins.def.
10780 (DEF_CHKP_BUILTIN): New.
10781 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10782 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10783 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10784 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10785 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10786 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10787 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10788 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10789 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10790 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10791 * common.opt (fcheck-pointer-bounds): New.
10792 * toplev.c (process_options): Check Pointer Bounds Checker is
10793 supported.
10794 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10795
10796 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10797
10798 * target.def (builtin_chkp_function): New.
10799 (chkp_bound_type): New.
10800 (chkp_bound_mode): New.
10801 (fn_abi_va_list_bounds_size): New.
10802 (load_bounds_for_arg): New.
10803 (store_bounds_for_arg): New.
10804 * targhooks.h (default_load_bounds_for_arg): New.
10805 (default_store_bounds_for_arg): New.
10806 (default_fn_abi_va_list_bounds_size): New.
10807 (default_chkp_bound_type): New.
10808 (default_chkp_bound_mode): New.
10809 (default_builtin_chkp_function): New.
10810 * targhooks.c (default_load_bounds_for_arg): New.
10811 (default_store_bounds_for_arg): New.
10812 (default_fn_abi_va_list_bounds_size): New.
10813 (default_chkp_bound_type): New.
10814 (default_chkp_bound_mode); New.
10815 (default_builtin_chkp_function): New.
10816 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10817 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10818 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10819 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10820 (TARGET_CHKP_BOUND_TYPE): New.
10821 (TARGET_CHKP_BOUND_MODE): New.
10822 * doc/tm.texi: Regenerated.
10823 * langhooks.h (lang_hooks): Add chkp_supported field.
10824 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10825 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10826
10827 2013-10-29 Andrew Pinski <apinski@cavium.com>
10828
10829 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10830 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10831 fails, combining the branches anyways.
10832 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10833 increases the number of combinings.
10834 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10835
10836 2013-10-29 Mike Stump <mikestump@comcast.net>
10837
10838 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10839 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10840 (make_vector_mode): Increase namebuf to 16.
10841 (emit_insn_modes_h): When processing BImode, don't
10842 also match partial int modes.
10843 (emit_class_narrowest_mode): Likewise.
10844
10845 * config/bfin/bfin-modes.def: Add precision to PDI.
10846 * config/m32c/m32c-modes.def: Add precision to PSI.
10847 * config/msp430/msp430-modes.def: Add precision to PSI.
10848 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10849 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10850
10851 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10852
10853 PR target/54236
10854 * config/sh/sh.md (*addc): Rename existing variations to ...
10855 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10856 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10857 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10858 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10859
10860 2013-10-29 Teresa Johnson <tejohnson@google.com>
10861
10862 PR ipa/58862
10863 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10864 insanities when updating probabilities.
10865
10866 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10867
10868 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10869 prettyprinter for cgraph_node to reflect the conversion of the
10870 symtable types to a C++ class hierarchy: it now *is* a
10871 symtab_node_base, rather than having one (named "symbol").
10872
10873 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10874
10875 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10876 __cilkrts_pop_frame. If matched, then return true for built-in
10877 function name.
10878 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10879 BUILT_IN_CILK_POP_FRAME case.
10880 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10881 (lhs_cilk_detect_spawn): Likewise.
10882 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10883 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10884 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10885 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10886 (LANG_HOOKS_CILKPLUS): Likewise.
10887 * tree.h (CILK_SPAWN_FN): Likewise.
10888 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10889 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10890 (OBJS): Added cilk-common.o.
10891 (BUILTINS_DEF): Added cilk-builtins.def.
10892 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10893 (lhd_cilk_detect_spawn): Likewise.
10894 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10895 (struct lang_hooks): Added new field called "cilkplus."
10896 * cilk-common.c: New file.
10897 * cilk.h: Likewise.
10898 * cilk-builtins.def: Likewise.
10899 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10900 "__cilk" macro and set it to 200.
10901 * function.h (struct function::cilk_frame_decl): New field.
10902 (struct function::is_cilk_function): Likewise.
10903 (struct function::calls_cilk_spawn): Likewise.
10904 * gimplify.c (gimplify_call_expr): Added a check if the function call
10905 being gimplified is a spawn detach point. If so, then add pop_frame
10906 and detach function calls.
10907 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10908 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10909 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10910 function. If so, added a _Cilk_sync and gimplified it.
10911 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10912 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10913 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10914 spawner function.
10915 (can_inline_edge_p): Prevent inling of spawnee function.
10916 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10917 for functions that use Cilk keywords.
10918 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10919 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10920 CILK_SYNC_STMT cases.
10921 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10922 trees.
10923 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10924 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10925 * passes.texi (Cilk Keywords): New section that describes the compiler
10926 code changes for handling Cilk Keywords.
10927
10928 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10929
10930 Patch autogenerated by refactor_symtab.py from
10931 https://github.com/davidmalcolm/gcc-refactoring-scripts
10932 revision 58bb219cc090b2f4516a9297d868c245495ee622
10933
10934 * asan.c (asan_finish_file): Update for conversion of symtab types to
10935 a true class hierarchy.
10936 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10937 * cgraph.c (cgraph_get_body): Likewise.
10938 (cgraph_get_create_real_symbol_node): Likewise.
10939 (verify_cgraph_node): Likewise.
10940 (verify_edge_corresponds_to_fndecl): Likewise.
10941 (verify_edge_count_and_frequency): Likewise.
10942 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10943 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10944 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10945 (cgraph_node_cannot_return): Likewise.
10946 (cgraph_set_pure_flag_1): Likewise.
10947 (cgraph_set_const_flag_1): Likewise.
10948 (cgraph_set_nothrow_flag_1): Likewise.
10949 (cgraph_make_node_local_1): Likewise.
10950 (cgraph_for_node_and_aliases): Likewise.
10951 (cgraph_for_node_thunks_and_aliases): Likewise.
10952 (cgraph_node_can_be_local_p): Likewise.
10953 (cgraph_node_cannot_be_local_p_1): Likewise.
10954 (cgraph_function_body_availability): Likewise.
10955 (dump_cgraph_node): Likewise.
10956 (cgraph_rtl_info): Likewise.
10957 (cgraph_mark_address_taken_node): Likewise.
10958 (cgraph_remove_node): Likewise.
10959 (cgraph_release_function_body): Likewise.
10960 (cgraph_update_edges_for_call_stmt_node): Likewise.
10961 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10962 (cgraph_make_edge_direct): Likewise.
10963 (cgraph_resolve_speculation): Likewise.
10964 (cgraph_speculative_call_info): Likewise.
10965 (cgraph_turn_edge_to_speculative): Likewise.
10966 (cgraph_create_edge_1): Likewise.
10967 (cgraph_set_call_stmt): Likewise.
10968 (cgraph_node_for_asm): Likewise.
10969 (cgraph_add_thunk): Likewise.
10970 (cgraph_same_body_alias): Likewise.
10971 (cgraph_create_function_alias): Likewise.
10972 (cgraph_create_node): Likewise.
10973 (cgraph_create_empty_node): Likewise.
10974 (record_function_versions): Likewise.
10975 (used_from_object_file_p): Likewise.
10976 * cgraph.h (symtab_can_be_discarded): Likewise.
10977 (symtab_real_symbol_p): Likewise.
10978 (cgraph_mark_force_output_node): Likewise.
10979 (cgraph_edge_recursive_p): Likewise.
10980 (symtab_alias_target): Likewise.
10981 (varpool_all_refs_explicit_p): Likewise.
10982 (varpool_can_remove_if_no_refs): Likewise.
10983 (cgraph_only_called_directly_or_aliased_p): Likewise.
10984 (cgraph_next_function_with_gimple_body): Likewise.
10985 (cgraph_first_function_with_gimple_body): Likewise.
10986 (cgraph_function_with_gimple_body_p): Likewise.
10987 (cgraph_next_function): Likewise.
10988 (cgraph_first_function): Likewise.
10989 (cgraph_next_defined_function): Likewise.
10990 (cgraph_first_defined_function): Likewise.
10991 (varpool_next_defined_variable): Likewise.
10992 (varpool_first_defined_variable): Likewise.
10993 (varpool_next_static_initializer): Likewise.
10994 (varpool_first_static_initializer): Likewise.
10995 (varpool_next_variable): Likewise.
10996 (varpool_first_variable): Likewise.
10997 (varpool_node_name): Likewise.
10998 (varpool): Likewise.
10999 (cgraph): Likewise.
11000 (is_a_helper <varpool_node>::test): Likewise.
11001 (is_a_helper <cgraph_node>::test): Likewise.
11002 (varpool_variable_node): Likewise.
11003 (cgraph_function_or_thunk_node): Likewise.
11004 (varpool_alias_target): Likewise.
11005 (cgraph_alias_target): Likewise.
11006 (cgraph_node_name): Likewise.
11007 (varpool_node_asm_name): Likewise.
11008 (cgraph_node_asm_name): Likewise.
11009 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
11010 (cgraph_rebuild_references): Likewise.
11011 (rebuild_cgraph_edges): Likewise.
11012 (record_eh_tables): Likewise.
11013 (build_cgraph_edges): Likewise.
11014 (mark_store): Likewise.
11015 (mark_load): Likewise.
11016 (mark_address): Likewise.
11017 (record_type_list): Likewise.
11018 (record_reference): Likewise.
11019 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
11020 (cgraph_materialize_clone): Likewise.
11021 (cgraph_function_versioning): Likewise.
11022 (cgraph_copy_node_for_versioning): Likewise.
11023 (update_call_expr): Likewise.
11024 (cgraph_find_replacement_node): Likewise.
11025 (cgraph_create_virtual_clone): Likewise.
11026 (cgraph_clone_node): Likewise.
11027 * cgraphunit.c (compile): Likewise.
11028 (output_weakrefs): Likewise.
11029 (output_in_order): Likewise.
11030 (expand_function): Likewise.
11031 (assemble_thunks_and_aliases): Likewise.
11032 (expand_thunk): Likewise.
11033 (mark_functions_to_output): Likewise.
11034 (handle_alias_pairs): Likewise.
11035 (analyze_functions): Likewise.
11036 (walk_polymorphic_call_targets): Likewise.
11037 (varpool_finalize_decl): Likewise.
11038 (process_function_and_variable_attributes): Likewise.
11039 (cgraph_process_same_body_aliases): Likewise.
11040 (analyze_function): Likewise.
11041 (cgraph_add_new_function): Likewise.
11042 (cgraph_finalize_function): Likewise.
11043 (referred_to_p): Likewise.
11044 (cgraph_reset_node): Likewise.
11045 (cgraph_process_new_functions): Likewise.
11046 (enqueue_node): Likewise.
11047 (decide_is_symbol_needed): Likewise.
11048 * coverage.c (coverage_compute_profile_id): Likewise.
11049 * dbxout.c (dbxout_expand_expr): Likewise.
11050 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11051 (reference_to_unused): Likewise.
11052 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11053 * gimplify.c (unvisit_body): Likewise.
11054 (unshare_body): Likewise.
11055 * ipa-cp.c (ipcp_generate_summary): Likewise.
11056 (ipcp_decision_stage): Likewise.
11057 (identify_dead_nodes): Likewise.
11058 (decide_whether_version_node): Likewise.
11059 (decide_about_value): Likewise.
11060 (perhaps_add_new_callers): Likewise.
11061 (create_specialized_node): Likewise.
11062 (update_profiling_info): Likewise.
11063 (ipcp_propagate_stage): Likewise.
11064 (estimate_local_effects): Likewise.
11065 (good_cloning_opportunity_p): Likewise.
11066 (devirtualization_time_bonus): Likewise.
11067 (propagate_constants_accross_call): Likewise.
11068 (initialize_node_lattices): Likewise.
11069 (ipcp_cloning_candidate_p): Likewise.
11070 (determine_versionability): Likewise.
11071 (print_all_lattices): Likewise.
11072 (print_lattice): Likewise.
11073 (ipcp_discover_new_direct_edges): Likewise.
11074 * ipa-devirt.c (ipa_devirt): Likewise.
11075 (likely_target_p): Likewise.
11076 (update_type_inheritance_graph): Likewise.
11077 (possible_polymorphic_call_target_p): Likewise.
11078 (dump_possible_polymorphic_call_targets): Likewise.
11079 (devirt_variable_node_removal_hook): Likewise.
11080 (record_binfo): Likewise.
11081 (maybe_record_node): Likewise.
11082 (build_type_inheritance_graph): Likewise.
11083 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11084 (inline_generate_summary): Likewise.
11085 (inline_analyze_function): Likewise.
11086 (do_estimate_growth): Likewise.
11087 (simple_edge_hints): Likewise.
11088 (estimate_node_size_and_time): Likewise.
11089 (estimate_edge_devirt_benefit): Likewise.
11090 (compute_inline_parameters): Likewise.
11091 (estimate_function_body_sizes): Likewise.
11092 (compute_bb_predicates): Likewise.
11093 (initialize_inline_failed): Likewise.
11094 (dump_inline_summary): Likewise.
11095 (dump_inline_edge_summary): Likewise.
11096 * ipa-inline-transform.c (inline_transform): Likewise.
11097 (preserve_function_body_p): Likewise.
11098 (save_inline_function_body): Likewise.
11099 (inline_call): Likewise.
11100 (clone_inlined_nodes): Likewise.
11101 (can_remove_node_now_p): Likewise.
11102 (can_remove_node_now_p_1): Likewise.
11103 * ipa-inline.c (early_inliner): Likewise.
11104 (early_inline_small_functions): Likewise.
11105 (inline_always_inline_functions): Likewise.
11106 (ipa_inline): Likewise.
11107 (flatten_function): Likewise.
11108 (inline_small_functions): Likewise.
11109 (speculation_useful_p): Likewise.
11110 (recursive_inlining): Likewise.
11111 (update_caller_keys): Likewise.
11112 (reset_edge_caches): Likewise.
11113 (update_edge_key): Likewise.
11114 (edge_badness): Likewise.
11115 (relative_time_benefit): Likewise.
11116 (want_inline_self_recursive_call_p): Likewise.
11117 (want_inline_small_function_p): Likewise.
11118 (want_early_inline_function_p): Likewise.
11119 (num_calls): Likewise.
11120 (can_early_inline_edge_p): Likewise.
11121 (can_inline_edge_p): Likewise.
11122 (report_inline_failed_reason): Likewise.
11123 * ipa-profile.c (ipa_profile): Likewise.
11124 (ipa_propagate_frequency): Likewise.
11125 (ipa_propagate_frequency_1): Likewise.
11126 (ipa_profile_generate_summary): Likewise.
11127 * ipa-prop.c (ipcp_transform_function): Likewise.
11128 (read_replacements_section): Likewise.
11129 (ipa_prop_read_section): Likewise.
11130 (ipa_modify_call_arguments): Likewise.
11131 (ipa_print_node_params): Likewise.
11132 (propagate_controlled_uses): Likewise.
11133 (update_indirect_edges_after_inlining): Likewise.
11134 (remove_described_reference): Likewise.
11135 (ipa_make_edge_direct_to_target): Likewise.
11136 (ipa_analyze_node): Likewise.
11137 (ipa_analyze_params_uses): Likewise.
11138 (ipa_compute_jump_functions): Likewise.
11139 (ipa_get_callee_param_type): Likewise.
11140 (ipa_print_node_jump_functions): Likewise.
11141 (ipa_initialize_node_params): Likewise.
11142 (ipa_populate_param_decls): Likewise.
11143 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11144 (write_agg_replacement_chain): Likewise.
11145 (ipa_write_node_info): Likewise.
11146 (ipa_edge_duplication_hook): Likewise.
11147 (try_decrement_rdesc_refcount): Likewise.
11148 * ipa-pure-const.c (propagate_nothrow): Likewise.
11149 (propagate_pure_const): Likewise.
11150 (pure_const_read_summary): Likewise.
11151 (pure_const_write_summary): Likewise.
11152 (analyze_function): Likewise.
11153 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11154 (ipa_ref_referring_ref_list): Likewise.
11155 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11156 (ipa_remove_stmt_references): Likewise.
11157 (ipa_find_reference): Likewise.
11158 (ipa_dump_referring): Likewise.
11159 (ipa_dump_references): Likewise.
11160 (ipa_record_reference): Likewise.
11161 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11162 (ipa_reference_write_optimization_summary): Likewise.
11163 (write_node_summary_p): Likewise.
11164 (propagate): Likewise.
11165 (read_write_all_from_decl): Likewise.
11166 (generate_summary): Likewise.
11167 (analyze_function): Likewise.
11168 (propagate_bits): Likewise.
11169 (ipa_reference_get_not_written_global): Likewise.
11170 (ipa_reference_get_not_read_global): Likewise.
11171 * ipa-split.c (execute_split_functions): Likewise.
11172 (split_function): Likewise.
11173 * ipa-utils.c (ipa_merge_profiles): Likewise.
11174 (dump_cgraph_node_set): Likewise.
11175 (ipa_reverse_postorder): Likewise.
11176 (ipa_edge_within_scc): Likewise.
11177 (ipa_get_nodes_in_cycle): Likewise.
11178 (ipa_free_postorder_info): Likewise.
11179 (ipa_reduced_postorder): Likewise.
11180 (searchc): Likewise.
11181 (recursive_call_p): Likewise.
11182 * ipa.c (ipa_cdtor_merge): Likewise.
11183 (record_cdtor_fn): Likewise.
11184 (function_and_variable_visibility): Likewise.
11185 (varpool_externally_visible_p): Likewise.
11186 (cgraph_externally_visible_p): Likewise.
11187 (comdat_can_be_unshared_p): Likewise.
11188 (comdat_can_be_unshared_p_1): Likewise.
11189 (address_taken_from_non_vtable_p): Likewise.
11190 (ipa_discover_readonly_nonaddressable_vars): Likewise.
11191 (symtab_remove_unreachable_nodes): Likewise.
11192 (walk_polymorphic_call_targets): Likewise.
11193 (process_references): Likewise.
11194 (enqueue_node): Likewise.
11195 (has_addr_references_p): Likewise.
11196 (cgraph_non_local_node_p_1): Likewise.
11197 * is-a.h (varpool_analyze_node): Likewise.
11198 * lto-cgraph.c (input_symtab): Likewise.
11199 (merge_profile_summaries): Likewise.
11200 (input_cgraph_1): Likewise.
11201 (input_edge): Likewise.
11202 (input_varpool_node): Likewise.
11203 (input_node): Likewise.
11204 (input_overwrite_node): Likewise.
11205 (compute_ltrans_boundary): Likewise.
11206 (output_refs): Likewise.
11207 (lto_output_varpool_node): Likewise.
11208 (lto_output_node): Likewise.
11209 (reachable_from_other_partition_p): Likewise.
11210 (referenced_from_other_partition_p): Likewise.
11211 (lto_output_edge): Likewise.
11212 (output_node_opt_summary): Likewise.
11213 (add_node_to): Likewise.
11214 (reachable_from_this_partition_p): Likewise.
11215 (lto_set_symtab_encoder_in_partition): Likewise.
11216 (lto_symtab_encoder_in_partition_p): Likewise.
11217 (lto_set_symtab_encoder_encode_initializer): Likewise.
11218 (lto_symtab_encoder_encode_initializer_p): Likewise.
11219 (lto_set_symtab_encoder_encode_body): Likewise.
11220 (lto_symtab_encoder_encode_body_p): Likewise.
11221 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11222 Likewise.
11223 * lto-streamer-in.c (lto_read_body): Likewise.
11224 (fixup_call_stmt_edges): Likewise.
11225 (fixup_call_stmt_edges_1): Likewise.
11226 * lto-streamer-out.c (produce_symtab): Likewise.
11227 (output_symbol_p): Likewise.
11228 (write_symbol): Likewise.
11229 (lto_output): Likewise.
11230 (copy_function): Likewise.
11231 (output_function): Likewise.
11232 * passes.c (function_called_by_processed_nodes_p): Likewise.
11233 (ipa_write_optimization_summaries): Likewise.
11234 (ipa_write_summaries): Likewise.
11235 (do_per_function_toporder): Likewise.
11236 (do_per_function): Likewise.
11237 (dump_passes): Likewise.
11238 * symtab.c (symtab_semantically_equivalent_p): Likewise.
11239 (symtab_nonoverwritable_alias): Likewise.
11240 (symtab_nonoverwritable_alias_1): Likewise.
11241 (symtab_for_node_and_aliases): Likewise.
11242 (symtab_resolve_alias): Likewise.
11243 (fixup_same_cpp_alias_visibility): Likewise.
11244 (symtab_alias_ultimate_target): Likewise.
11245 (symtab_used_from_object_file_p): Likewise.
11246 (verify_symtab_base): Likewise.
11247 (dump_symtab_base): Likewise.
11248 (symtab_node_name): Likewise.
11249 (symtab_node_asm_name): Likewise.
11250 (symtab_dissolve_same_comdat_group_list): Likewise.
11251 (symtab_add_to_same_comdat_group): Likewise.
11252 (symtab_unregister_node): Likewise.
11253 (symtab_insert_node_to_hashtable): Likewise.
11254 (symtab_register_node): Likewise.
11255 (unlink_from_assembler_name_hash): Likewise.
11256 (insert_to_assembler_name_hash): Likewise.
11257 (eq_assembler_name): Likewise.
11258 (hash_node_by_assembler_name): Likewise.
11259 (eq_node): Likewise.
11260 (hash_node): Likewise.
11261 * toplev.c (wrapup_global_declaration_2): Likewise.
11262 * trans-mem.c (ipa_tm_execute): Likewise.
11263 (ipa_tm_transform_clone): Likewise.
11264 (ipa_tm_transform_transaction): Likewise.
11265 (ipa_tm_transform_calls_redirect): Likewise.
11266 (ipa_tm_insert_gettmclone_call): Likewise.
11267 (ipa_tm_insert_irr_call): Likewise.
11268 (ipa_tm_create_version): Likewise.
11269 (ipa_tm_create_version_alias): Likewise.
11270 (ipa_tm_mark_forced_by_abi_node): Likewise.
11271 (ipa_tm_mark_force_output_node): Likewise.
11272 (ipa_tm_diagnose_tm_safe): Likewise.
11273 (ipa_tm_mayenterirr_function): Likewise.
11274 (ipa_tm_scan_irr_function): Likewise.
11275 (ipa_tm_note_irrevocable): Likewise.
11276 (ipa_tm_scan_calls_clone): Likewise.
11277 (get_cg_data): Likewise.
11278 * tree-eh.c (tree_could_trap_p): Likewise.
11279 * tree-emutls.c (ipa_lower_emutls): Likewise.
11280 (create_emultls_var): Likewise.
11281 (lower_emutls_function_body): Likewise.
11282 (gen_emutls_addr): Likewise.
11283 (emutls_decl): Likewise.
11284 (new_emutls_decl): Likewise.
11285 * tree-inline.c (tree_function_versioning): Likewise.
11286 (optimize_inline_calls): Likewise.
11287 (expand_call_inline): Likewise.
11288 (estimate_num_insns): Likewise.
11289 (copy_bb): Likewise.
11290 (delete_unreachable_blocks_update_callgraph): Likewise.
11291 * tree-nested.c (gimplify_all_functions): Likewise.
11292 (create_nesting_tree): Likewise.
11293 (check_for_nested_with_variably_modified): Likewise.
11294 * tree-pretty-print.c (dump_function_header): Likewise.
11295 * tree-profile.c (tree_profiling): Likewise.
11296 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11297 (modify_function): Likewise.
11298 (convert_callers): Likewise.
11299 (convert_callers_for_node): Likewise.
11300 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11301 (associate_varinfo_to_alias): Likewise.
11302 (create_variable_info_for): Likewise.
11303 (get_constraint_for_ssa_var): Likewise.
11304 * tree-vectorizer.c (increase_alignment): Likewise.
11305 * tree.c (find_decls_types_in_var): Likewise.
11306 (find_decls_types_in_node): Likewise.
11307 (free_lang_data_in_decl): Likewise.
11308 * value-prof.c (gimple_ic_transform): Likewise.
11309 (gimple_ic): Likewise.
11310 (check_ic_target): Likewise.
11311 (init_node_map): Likewise.
11312 * varasm.c (decl_binds_to_current_def_p): Likewise.
11313 (default_binds_local_p_1): Likewise.
11314 (dump_tm_clone_pairs): Likewise.
11315 (assemble_alias): Likewise.
11316 (find_decl): Likewise.
11317 (mark_decl_referenced): Likewise.
11318 * varpool.c (varpool_for_node_and_aliases): Likewise.
11319 (varpool_extra_name_alias): Likewise.
11320 (varpool_create_variable_alias): Likewise.
11321 (add_new_static_var): Likewise.
11322 (varpool_finalize_named_section_flags): Likewise.
11323 (varpool_remove_unreferenced_decls): Likewise.
11324 (enqueue_node): Likewise.
11325 (varpool_assemble_decl): Likewise.
11326 (assemble_aliases): Likewise.
11327 (varpool_analyze_node): Likewise.
11328 (cgraph_variable_initializer_availability): Likewise.
11329 (varpool_add_new_variable): Likewise.
11330 (ctor_for_folding): Likewise.
11331 (dump_varpool_node): Likewise.
11332 (varpool_remove_initializer): Likewise.
11333 (varpool_remove_node): Likewise.
11334 (varpool_node_for_decl): Likewise.
11335 (varpool_create_empty_node): Likewise.
11336 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11337 (ix86_get_function_versions_dispatcher): Likewise.
11338
11339 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11340
11341 * cgraph.h (symtab_node_base): Convert to a class;
11342 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11343 chain_next/prev from symtab_node_def.
11344 (cgraph_node): Inherit from symtab_node; add GTY option
11345 tag ("SYMTAB_FUNCTION").
11346 (varpool_node): Inherit from symtab_node; add GTY option
11347 tag ("SYMTAB_VARIABLE").
11348 (symtab_node_def): Remove.
11349 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11350 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11351 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11352 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11353
11354 * ipa-ref.h (symtab_node_def): Drop.
11355 (symtab_node): Change underlying type from symtab_node_def to
11356 symtab_node_base.
11357 (const_symtab_node): Likwise.
11358
11359 * is-a.h: Update examples in comment.
11360
11361 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11362 (assembler_name_hash): Likewise.
11363
11364 2013-10-29 Martin Liska <marxin.liska@gmail.com>
11365
11366 * doc/tree-ssa.texi (gimple_phi_result): Document.
11367 (gimple_phi_num_args, gimple_phi_arg): Likewise.
11368 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11369 (PHI_RESULT, PHI_NUM_ARGS): Remove.
11370 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11371
11372 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11373
11374 * expr.h: Revert change and include tree-core.h.
11375 * rtl.h: Revert change and don't include tree-core.h.
11376
11377 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11378
11379 * config/darwin.c: Include gimple.h.
11380 * config/i386/winnt.c: Likewise.
11381
11382 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
11383
11384 PR tree-optimization/19831
11385 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11386
11387 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11388
11389 * tree-outof-ssa.h: Remove include files.
11390 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11391 * expr.c: Likewise.
11392 * tree-ssa-coalesce.c: Likewise.
11393 * cfgexpand.c: Likewise.
11394 * tree-ssa-ter.c: Likewise.
11395 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11396 * lto-streamer.h: Likewise.
11397 * cgraphbuild.c: Add gimple.h to include list.
11398 * data-streamer-in.c: Likewise.
11399 * ipa-cp.c: Likewise.
11400 * tree-streamer.c: Likewise.
11401 * lto-compress.c: Likewise.
11402 * ipa-reference.c: Likewise.
11403 * data-streamer-out.c: Likewise.
11404 * lto-cgraph.c: Likewise.
11405 * cgraphclones.c: Likewise.
11406 * ipa-utils.c: Likewise.
11407 * data-streamer.c: Likewise.
11408 * ipa-split.c: Likewise.
11409 * lto-section-in.c: Likewise.
11410 * tree-streamer-out.c: Likewise.
11411 * ipa-prop.c: Likewise.
11412 * tree-streamer-in.c: Likewise.
11413 * symtab.c: Likewise.
11414 * opts-global.c: Likewise.
11415 * lto-opts.c: Likewise.
11416 * lto-section-out.c: Likewise.
11417 * lto-streamer.c: Likewise.
11418 * rtl.h: Add tree-core.h to include list.
11419 * expr.h: Remove tree-core.h from include list.
11420 * gimple.h: Likewise.
11421 * ipa-utils.h: Likewise.
11422 * streamer-hooks.h: Likewise.
11423 * streamer-hooks.c: Include input.h.
11424
11425 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11426
11427 * config/arm/arm.c (cortexa7_extra_costs): New table.
11428 (arm_cortex_a7_tune): New.
11429 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11430
11431 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
11432
11433 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11434
11435 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11436
11437 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11438 to use autogenerated markers for a class-hierarchy, every class
11439 must have a GTY marker.
11440 * gengtype.h (struct type): Add linked list of subclasses to
11441 the "s" member of the union.
11442 (add_subclass): New decl.
11443 * gengtype-state.c (read_state_struct_type): Set up subclass
11444 linked list.
11445 * gengtype.c (get_ultimate_base_class): New.
11446 (add_subclass): New.
11447 (new_structure): Set up subclass linked list.
11448 (set_gc_used_type): Propagate usage information to subclasses.
11449 (output_mangled_typename): Use get_ultimate_base_class.
11450 (walk_subclasses): Use the subclass linked list, avoiding an
11451 O(N^2) when writing out all types.
11452 (walk_type): Issue an error if the base class is missing a tag,
11453 rather than generating bogus C code. Add a gcc_unreachable
11454 default case, in case people omit tags from concrete subclasses,
11455 or get the values wrong.
11456 (write_func_for_structure): Issue an error for subclasses for
11457 which the base doesn't have a "desc", since otherwise the
11458 autogenerated routines for the base would silently fail to visit
11459 any subclass fields.
11460 (write_root): Use get_ultimate_base_class, tweaking constness of
11461 tp to match that function's signature.
11462
11463 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11464
11465 * doc/gty.texi (GTY Options): Add note about inheritance to
11466 description of desc and tag.
11467 (Inheritance and GTY): New.
11468
11469 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11470
11471 * gengtype-parse.c (opts_have): Drop "static" so that
11472 we can use this from gengtype.c.
11473 * gengtype.c (set_gc_used_type): Mark any base class as used;
11474 update field traversal to visit inherited fields.
11475 (output_mangled_typename): Convert references to classes within
11476 an inheritance hierarchy to reference the ultimate base class,
11477 since only it will have gt_ functions.
11478 (get_string_option): New.
11479 (walk_subclasses): New.
11480 (walk_type): Treat GTY structs that have a "desc" as being the
11481 root of an inheritance hierarchy. Generate a switch on it
11482 within the marking function which walks all subclasses, adding
11483 cases for them via walk_subclasses. For subclasses, visit all
11484 fields of the type (including inherited ones).
11485 (write_func_for_structure): Don't write fns for subclasses, only
11486 for the ultimate base class within an inheritance hierarchy.
11487 Subclasses-marking will be handled by the base class marking functions.
11488 (write_types): Likewise.
11489 (write_local_func_for_structure): Likewise.
11490 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11491 a "tag" option (and are thus concrete subclasses).
11492 (write_root): Use the marker function for the ultimate base class.
11493 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11494 (opts_have): Add declaration.
11495
11496 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11497
11498 * lra-spills.c (lra_final_code_change): Remove useless move insns
11499 originated from moves of pseudos.
11500
11501 2013-10-28 Jeff Law <law@redhat.com>
11502
11503 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11504
11505 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11506
11507 * df-scan.c (df_collection_rec): Adjust.
11508 (copy_defs): New constant.
11509 (copy_uses): Likewise.
11510 (copy_eq_uses): Likewise.
11511 (copy_mw): Likewise.
11512 (copy_all): Likewise.
11513 (df_insn_rescan): Adjust.
11514 (df_notes_rescan): Likewise.
11515 (df_swap_refs): Likewise.
11516 (df_sort_and_compress_refs): Likewise.
11517 (df_sort_and_compress_mws): Likewise.
11518 (df_install_refs): Likewise.
11519 (df_install_mws): Likewise.
11520 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11521 are coppied.
11522 (df_bb_refs_record): Adjust.
11523 (df_record_entry_block_defs): Likewise.
11524 (df_record_exit_block_defs): Likewise.
11525 (df_refs_verify): Likewise.
11526 (df_mws_verify): Likewise.
11527 (df_insn_refs_verify): Likewise.
11528 (df_bb_verify): Likewise.
11529 * ipa-pure-const.c (finish_state): Remove.
11530 (propagate): Adjust.
11531 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11532 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11533 var-tracking.c: Adjust.
11534 * vec.c (stack_vecs): Remove.
11535 (register_stack_vec): Likewise.
11536 (stack_vec_register_index): Likewise.
11537 (unregister_stack_vec): Likewise.
11538 * vec.h (struct va_stack): Remove.
11539 (struct vec<T, A, vl_ptr>): Specialize as
11540 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11541 allocation strategy compatable with the vl_ptr layout.
11542 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11543 specialization anyway.
11544 (class stack_vec): New class.
11545 (vec_stack_alloc): Remove.
11546 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11547
11548 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11549 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11550 Sergey Lega <sergey.s.lega@intel.com>
11551 Anna Tikhonova <anna.tikhonova@intel.com>
11552 Ilya Tocar <ilya.tocar@intel.com>
11553 Andrey Turetskiy <andrey.turetskiy@intel.com>
11554 Ilya Verbin <ilya.verbin@intel.com>
11555 Kirill Yukhin <kirill.yukhin@intel.com>
11556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11557
11558 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11559 (*prefetch_avx512pf_<mode>): New.
11560 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11561 (avx512f_maskcmp<mode>3): Ditto.
11562 (vashrv16si3): Ditto.
11563
11564 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11565 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11566 Sergey Lega <sergey.s.lega@intel.com>
11567 Anna Tikhonova <anna.tikhonova@intel.com>
11568 Ilya Tocar <ilya.tocar@intel.com>
11569 Andrey Turetskiy <andrey.turetskiy@intel.com>
11570 Ilya Verbin <ilya.verbin@intel.com>
11571 Kirill Yukhin <kirill.yukhin@intel.com>
11572 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11573
11574 * config/i386/i386.md (any_truncate): New.
11575 (trunsuffix): Ditto.
11576 * config/i386/predicates.md (const_8_to_9_operand): New.
11577 (const_10_to_11_operand): Ditto.
11578 (const_12_to_13_operand): Ditto.
11579 (const_14_to_15_operand): Ditto.
11580 (const_16_to_19_operand): Ditto.
11581 (const_20_to_23_operand): Ditto.
11582 (const_24_to_27_operand): Ditto.
11583 (const_28_to_31_operand): Ditto.
11584 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11585 (cvtusi2<ssescalarmodesuffix>32): New.
11586 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11587 (ufloatv16siv16sf2): Ditto.
11588 (avx512f_fix_notruncv16sfv16si): Ditto.
11589 (avx512f_ufix_notruncv16sfv16si): Ditto.
11590 (avx512f_vcvtss2usi): Ditto.
11591 (avx512f_vcvtss2usiq): Ditto.
11592 (avx512f_vcvttss2usi): Ditto.
11593 (avx512f_vcvttss2usiq): Ditto.
11594 (avx512f_vcvtsd2usi): Ditto.
11595 (avx512f_vcvtsd2usiq): Ditto.
11596 (avx512f_vcvttsd2usi): Ditto.
11597 (avx512f_vcvttsd2usiq): Ditto.
11598 (ufloatv8siv8df): Ditto.
11599 (avx512f_cvtdq2pd512_2): Ditto.
11600 (avx512f_cvtpd2dq512): Ditto.
11601 (avx512f_ufix_notruncv8dfv8si): Ditto.
11602 (avx512f_cvtpd2ps512): Ditto.
11603 (vec_unpacks_lo_v16sf): Ditto.
11604 (vec_unpacks_hi_v16sf): Ditto.
11605 (vec_unpacks_float_hi_v16si): Ditto.
11606 (vec_unpacks_float_lo_v16si): Ditto.
11607 (avx512f_unpckhps512): Ditto.
11608 (avx512f_unpcklps512): Ditto.
11609 (avx512f_movshdup512): Ditto.
11610 (avx512f_movsldup512): Ditto.
11611 (vec_extract_lo_v32hi): Ditto.
11612 (vec_extract_hi_v32hi): Ditto.
11613 (vec_extract_lo_v64qi): Ditto.
11614 (vec_extract_hi_v64qi): Ditto.
11615 (avx512f_unpckhpd512): Ditto.
11616 (avx512f_movddup512): Ditto.
11617 (avx512f_unpcklpd512): Ditto.
11618 (*avx512f_unpcklpd512): Ditto.
11619 (avx512f_shufps512_1): Ditto.
11620 (avx512f_shufpd512_1): Ditto.
11621 (avx512f_interleave_highv8di): Ditto.
11622 (avx512f_interleave_lowv8di): Ditto.
11623 (PMOV_DST_MODE): Ditto.
11624 (pmov_src_mode): Ditto.
11625 (pmov_src_lower): Ditto.
11626 (pmov_suff): Ditto.
11627 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11628 (*avx512f_<code>v8div16qi2): Ditto.
11629 (*avx512f_<code>v8div16qi2_store): Ditto.
11630 (vec_widen_umult_even_v16si): Ditto.
11631 (*vec_widen_umult_even_v16si): Ditto.
11632 (vec_widen_smult_even_v16si): Ditto.
11633 (*vec_widen_smult_even_v16si): Ditto.
11634 (avx512f_interleave_highv16si): Ditto.
11635 (avx512f_interleave_lowv16si): Ditto.
11636 (avx512f_<code>v16qiv16si2): Ditto.
11637 (avx512f_<code>v16hiv16si2): Ditto.
11638 (avx512f_<code>v8qiv8di2): Ditto.
11639 (avx512f_<code>v8hiv8di2): Ditto.
11640 (avx512f_<code>v8siv8di2): Ditto.
11641 (avx512cd_maskb_vec_dupv8di): Ditto.
11642 (avx512cd_maskw_vec_dupv16si): Ditto.
11643 (avx512f_vcvtph2ps512): Ditto.
11644 (avx512f_vcvtps2ph512): Ditto.
11645 (VEC_EXTRACT_MODE): Extened with wider modes.
11646 (VEC_PERM_AVX2): Ditto.
11647 (VEC_PERM_CONST): Ditto.
11648
11649 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11650
11651 * config/arc/arc.c (arc_ccfsm_post_advance):
11652 Add comment about TYPE_RETURN.
11653
11654 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11655
11656 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11657 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11658 (strip_offset): Convert offset to unsigned number.
11659
11660 2013-10-27 Tom de Vries <tom@codesourcery.com>
11661
11662 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11663 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11664
11665 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11666
11667 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11668 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11669 (TARGET_BIG_ENDIAN): New macro.
11670 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11671 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11672 * config/sh/sh.c: Likewise.
11673 * config/sh/sh.h: Likewise.
11674
11675 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11676
11677 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11678 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11679
11680 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11681
11682 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11683 Fix formatting.
11684 (cmpstr_t, cmpstrsi): Fix formatting.
11685
11686 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11687
11688 PR target/52483
11689 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11690 addressing, do not use general_operand for memory operands.
11691
11692 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11693
11694 Revert:
11695 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11696 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11697
11698 2013-10-26 Jeff Law <law@redhat.com>
11699
11700 * predict.c (PRED_MUDFLAP): Remove.
11701 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11702
11703 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11704 (OBJS): Remove tree-nomudflap.o
11705 (GTFILES): Remove tree-mudflap.c
11706 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11707 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11708 (mfwrap_spec, mflib_spec): Likewise.
11709 (cpp_unique_options, cc1_options, static_specs): Likewise.
11710 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11711 * passes.def: Likewise.
11712 * toplev.c (compile_file, process_options): Likewise.
11713 * tree-inline.c (copy_tree_r): Likewise.
11714 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11715 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11716 (build_constant_desc, output_constant_def_contents): Likewise.
11717 (categorize_decl_for_section): Likewise.
11718 * tree-mudflap.c: Removed.
11719 * tree-mudflap.h: Removed.
11720 * tree-nomudflap.c: Removed.
11721 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11722 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11723 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11724 * config/sol2.h (MFLIB_SPEC): Likewise.
11725 * doc/install.texi: Remove mudflap references.
11726 * doc/passes.texi: Similarly.
11727 * doc/sourcebuild.texi: Similarly.
11728 * doc/invoke.texi: Remove mudlfap related options.
11729
11730 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11731
11732 PR rtl-optimization/58759
11733 * lra-constraints.c (lra_constraints): Remove wrong condition to
11734 remove insn setting up an equivalent pseudo.
11735
11736 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11737
11738 * config/rs6000/rs6000-protos.h
11739 (rs6000_secondary_memory_needed_mode): New prototype.
11740 * config/rs6000/rs6000.c: Include ira.h.
11741 (TARGET_LRA_P): Redefine.
11742 (rs6000_legitimate_offset_address_p): Call
11743 legitimate_constant_pool_address_p in strict mode for LRA.
11744 (rs6000_legitimate_address_p): Ditto.
11745 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11746 (rs6000_emit_move): Add LRA version of code to generate load/store
11747 of SDmode values.
11748 (rs6000_secondary_memory_needed_mode): New.
11749 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11750 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11751 constants, memory, and FP registers.
11752 (rs6000_lra_p): New.
11753 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11754 * config/rs6000/rs6000.opt (mlra): New option.
11755 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11756
11757 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11758
11759 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11760 has_single_use () and not do the conversion if has_single_use ()
11761 returns false for the multiplication result.
11762
11763 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11764
11765 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11766 to "NODE", since this works on a "tree", not an
11767 "enum tree_code".
11768 (CONSTANT_CLASS_P): Likewise.
11769 (TYPE_P): Likewise.
11770 (DECL_P): Likewise.
11771 (INDIRECT_REF_P): Likewise.
11772 (REFERENCE_CLASS_P): Likewise.
11773 (COMPARISON_CLASS_P): Likewise.
11774 (UNARY_CLASS_P): Likewise.
11775 (BINARY_CLASS_P): Likewise.
11776 (STATEMENT_CLASS_P): Likewise.
11777 (VL_EXP_CLASS_P): Likewise.
11778 (EXPRESSION_CLASS_P): Likewise.
11779 (IS_TYPE_OR_DECL_P): Likewise.
11780
11781 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11782
11783 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11784 ADDR_EXPR in the defining statement.
11785
11786 2013-10-25 Richard Biener <rguenther@suse.de>
11787
11788 PR tree-optimization/58626
11789 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11790 anti_dd, output_dd and input_dd.
11791 (struct rdg_edge): Remove level and relation members.
11792 (RDGE_LEVEL, RDGE_RELATION): Remove.
11793 (dot_rdg_1): Adjust.
11794 (create_rdg_edge_for_ddr): Remove.
11795 (create_rdg_edges_for_scalar): Adjust.
11796 (create_edge_for_control_dependence): Likewise.
11797 (create_rdg_edges): Split into ...
11798 (create_rdg_flow_edges): ... this
11799 (create_rdg_cd_edges): ... and this.
11800 (free_rdg): Adjust.
11801 (build_rdg): Likewise, do not compute data dependences or
11802 add edges for them.
11803 (pg_add_dependence_edges): New function.
11804 (pgcmp): Likewise.
11805 (distribute_loop): First apply all non-dependence based
11806 partition mergings. Then compute dependences between partitions
11807 and merge and order partitions according to them.
11808
11809 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11810
11811 PR rtl-optimization/58831
11812 * alias.c (init_alias_analysis): At the beginning of each iteration,
11813 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11814
11815 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11816
11817 * recog.c (search_ofs): New static variable moved from...
11818 (peep2_find_free_register): ...here.
11819 (peephole2_optimize): Initialize it.
11820
11821 2013-10-25 Tobias Burnus <burnus@net-b.de>
11822
11823 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11824
11825 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11826
11827 * config/i386/i386.h (TARGET_MPX): New define.
11828 (TARGET_MPX_P): Ditto.
11829
11830 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11831
11832 * config/i386/constraints.md (B): New.
11833 (Ti): New.
11834 (Tb): New.
11835 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11836 * config/i386/i386-modes.def (BND32): New.
11837 (BND64): New.
11838 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11839 * config/i386/i386.c (isa_opts): Add mmpx.
11840 (regclass_map): Add bound registers.
11841 (dbx_register_map): Likewise.
11842 (dbx64_register_map): Likewise.
11843 (svr4_dbx_register_map): Likewise.
11844 (PTA_MPX): New.
11845 (ix86_option_override_internal): Support MPX ISA.
11846 (ix86_conditional_register_usage): Support bound registers.
11847 (print_reg): Likewise.
11848 (ix86_code_end): Add MPX bnd prefix.
11849 (output_set_got): Likewise.
11850 (ix86_output_call_insn): Likewise.
11851 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11852 (ix86_print_operand_punct_valid_p): Likewise.
11853 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11854 UNSPEC_BNDMK_ADDR.
11855 (ix86_class_likely_spilled_p): Add bound regs support.
11856 (ix86_hard_regno_mode_ok): Likewise.
11857 (x86_order_regs_for_local_alloc): Likewise.
11858 (ix86_bnd_prefixed_insn_p): New.
11859 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11860 (FIXED_REGISTERS): Add bound registers.
11861 (CALL_USED_REGISTERS): Likewise.
11862 (REG_ALLOC_ORDER): Likewise.
11863 (HARD_REGNO_NREGS): Likewise.
11864 (TARGET_MPX): New.
11865 (VALID_BND_REG_MODE): New.
11866 (FIRST_BND_REG): New.
11867 (LAST_BND_REG): New.
11868 (reg_class): Add BND_REGS.
11869 (REG_CLASS_NAMES): Likewise.
11870 (REG_CLASS_CONTENTS): Likewise.
11871 (BND_REGNO_P): New.
11872 (ANY_BND_REG_P): New.
11873 (BNDmode): New.
11874 (HI_REGISTER_NAMES): Add bound registers.
11875 * config/i386/i386.md (UNSPEC_BNDMK): New.
11876 (UNSPEC_BNDMK_ADDR): New.
11877 (UNSPEC_BNDSTX): New.
11878 (UNSPEC_BNDLDX): New.
11879 (UNSPEC_BNDLDX_ADDR): New.
11880 (UNSPEC_BNDCL): New.
11881 (UNSPEC_BNDCU): New.
11882 (UNSPEC_BNDCN): New.
11883 (UNSPEC_MPX_FENCE): New.
11884 (BND0_REG): New.
11885 (BND1_REG): New.
11886 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11887 (length_immediate): Likewise.
11888 (prefix_0f): Likewise.
11889 (memory): Likewise.
11890 (prefix_rep): Check for bnd prefix.
11891 (length_nobnd): New.
11892 (length): Use length_nobnd if specified.
11893 (BND): New.
11894 (bnd_ptr): New.
11895 (BNDCHECK): New.
11896 (bndcheck): New.
11897 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11898 (*jcc_2): Likewise.
11899 (jump): Likewise.
11900 (simple_return_internal): Likewise.
11901 (simple_return_pop_internal): Likewise.
11902 (*indirect_jump): Add MPX bnd prefix.
11903 (*tablejump_1): Likewise.
11904 (simple_return_internal_long): Likewise.
11905 (simple_return_indirect_internal): Likewise.
11906 (<mode>_mk): New.
11907 (*<mode>_mk): New.
11908 (mov<mode>): New.
11909 (*mov<mode>_internal_mpx): New.
11910 (<mode>_<bndcheck>): New.
11911 (*<mode>_<bndcheck>): New.
11912 (<mode>_ldx): New.
11913 (*<mode>_ldx): New.
11914 (<mode>_stx): New.
11915 (*<mode>_stx): New.
11916 * config/i386/predicates.md (lea_address_operand): Rename to...
11917 (address_no_seg_operand): ... this.
11918 (address_mpx_no_base_operand): New.
11919 (address_mpx_no_index_operand): New.
11920 (bnd_mem_operator): New.
11921 * config/i386/i386.opt (mmpx): New.
11922 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11923 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11924
11925 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11926
11927 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11928 * tree.def (POINTER_BOUNDS_TYPE): New.
11929 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11930 (POINTER_BOUNDS_MODE): New.
11931 (make_pointer_bounds_mode): New.
11932 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11933 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11934 (layout_type): Support POINTER_BOUNDS_TYPE.
11935 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11936 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11937 (type_contains_placeholder_1): Likewise.
11938 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11939 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11940 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11941
11942 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11943
11944 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11945 mode of address computation when calling memory_address_addr_space.
11946
11947 2013-08-24 Richard Henderson <rth@twiddle.net>
11948
11949 PR rtl/58542
11950 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11951 instead of create_convert_operand_to.
11952 (maybe_emit_sync_lock_test_and_set): Likewise.
11953 (expand_atomic_compare_and_swap): Likewise.
11954 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11955
11956 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11957
11958 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11959 Change param_is to use the struct and not the pointer to the struct.
11960
11961 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11962
11963 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11964 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11965 Move to targhooks.c.
11966 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11967 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11968 Relocate from gimplify.c.
11969 * targhooks.h: Add 2 prototypes.
11970 * tree.h: Delete 2 prototypes.
11971
11972 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11973
11974 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11975 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11976
11977 2013-10-24 Cong Hou <congh@google.com>
11978
11979 * convert.c (convert_to_real): Guard those unsafe math function
11980 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11981 specially.
11982
11983 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11984
11985 PR ipa/58712
11986 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11987 as argument.
11988 (cgraph_create_edge): Use the new argument.
11989 (cgraph_create_indirect_edge): Likewise.
11990
11991 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11992
11993 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11994 TYPE_UNCOND_BRANCH.
11995 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11996 changes statep->state.
11997
11998 2013-10-24 Tobias Burnus <burnus@net-b.de>
11999
12000 PR other/33426
12001 * tree-cfg.c (replace_loop_annotate): New function.
12002 (execute_build_cfg): Call it.
12003 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
12004 * internal-fn.c (expand_ANNOTATE): New function.
12005 * internal-fn.def (ANNOTATE): Define as new internal function.
12006 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
12007 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
12008 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
12009 * doc/extend.texi (Pragmas): Document #pragma ivdep.
12010 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
12011
12012 2013-10-17 Ian Bolton <ian.bolton@arm.com>
12013 Marcus Shawcroft <marcus.shawcroft@arm.com>
12014
12015 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
12016 Special case reload SP+C into none GENERAL_REGS.
12017
12018 2013-10-24 Michael Matz <matz@suse.de>
12019
12020 * gengtype.c (is_file_equal): Check that files will be same length.
12021
12022 2013-10-25 Christian Bruel <christian.bruel@st.com>
12023
12024 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12025 * config/sh/t-sh (sh-mem.o): New rule.
12026 * config/sh/sh-mem.cc (expand_block_move): Moved here.
12027 (sh_expand_cmpstr): New function.
12028 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12029 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12030 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12031 (rotlhi3_8): Rename.
12032
12033 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12034
12035 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12036 * Makefile.in (CXXDEPMODE): Assign and change users.
12037 (CCDEPMODE): Delete.
12038 * configure: Regenerate.
12039
12040 2013-10-23 David Malcolm <dmalcolm@redhat.com>
12041
12042 * gengtype-parse.c (require_without_advance): New.
12043 (type): For GTY-marked types that are not GTY((user)), parse any
12044 base classes, requiring them to be single-inheritance, and not
12045 be templates. For non-GTY-marked types and GTY((user)),
12046 continue to skip over any C++ inheritance specification.
12047 * gengtype-state.c (state_writer::write_state_struct_type):
12048 Write base class of type (if any).
12049 (read_state_struct_type): Read base class of type (if any).
12050 * gengtype.c (new_structure): Add a "base_class" parameter.
12051 (create_optional_field_): Update for new parameter to new_structure.
12052 (adjust_field_rtx_def): Likewise.
12053 (adjust_field_tree_exp): Likewise.
12054 * gengtype.h (struct type): Add "base_class" field to the s
12055 union field.
12056 (new_structure): Add "base" parameter.
12057
12058 2013-10-23 Sriraman Tallam <tmsriram@google.com>
12059
12060 PR target/57756
12061 * config/i386/i386.c (ix86_option_override_internal):
12062 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12063 (ix86_valid_target_attribute_tree):
12064 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12065 Change TARGET_SSE to TARGET_SSE_P (opts->...)
12066
12067 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12068
12069 * tree-ssa-loop.h: Remove include files.
12070 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12071 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12072 * graphite-clast-to-gimple.c: Likewise.
12073 * graphite-scop-detection.c: Likewise.
12074 * graphite-sese-to-poly.c: Likewise.
12075 * ipa-inline-analysis.c: Likewise.
12076 * ipa-pure-const.c: Likewise.
12077 * loop-init.c: Likewise.
12078 * passes.c: Likewise.
12079 * predict.c: Likewise.
12080 * tree-cfg.c: Likewise.
12081 * tree-cfgcleanup.c: Likewise.
12082 * tree-chrec.c: Likewise.
12083 * tree-data-ref.c: Likewise.
12084 * tree-loop-distribution.c: Likewise.
12085 * tree-parloops.c: Likewise.
12086 * tree-predcom.c: Likewise.
12087 * tree-scalar-evolution.c: Likewise.
12088 * tree-ssa-address.c: Likewise.
12089 * tree-ssa.c: Likewise.
12090 * tree-ssa-dce.c: Likewise.
12091 * tree-ssa-loop.c: Likewise.
12092 * tree-ssa-loop-im.c: Likewise.
12093 * tree-ssa-loop-ivcanon.c: Likewise.
12094 * tree-ssa-loop-ivopts.c: Likewise.
12095 * tree-ssa-loop-manip.c: Likewise.
12096 * tree-ssa-loop-niter.c: Likewise.
12097 * tree-ssa-loop-prefetch.c: Likewise.
12098 * tree-ssa-loop-unswitch.c: Likewise.
12099 * tree-ssa-reassoc.c: Likewise.
12100 * tree-vect-data-refs.c: Likewise.
12101 * tree-vect-loop.c: Likewise.
12102 * tree-vect-loop-manip.c: Likewise.
12103 * tree-vectorizer.c: Likewise.
12104 * tree-vect-stmts.c: Likewise.
12105 * tree-vrp.c: Likewise.
12106
12107 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12108
12109 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12110
12111 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12112
12113 PR tree-optimization/58775
12114 PR tree-optimization/58791
12115 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12116 (insert_stmt_after): Rewritten, don't move the stmt, but really
12117 insert it.
12118 (get_stmt_uid_with_default): Remove.
12119 (build_and_add_sum): Use insert_stmt_after and
12120 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
12121 (update_range_test): Set uid on stmts added by
12122 force_gimple_operand_gsi. Don't immediately modify statements
12123 in inter-bb optimization, just update oe->op values.
12124 (optimize_range_tests): Return bool whether any changed have been made.
12125 (update_ops): New function.
12126 (struct inter_bb_range_test_entry): New type.
12127 (maybe_optimize_range_tests): Perform statement changes here.
12128 (not_dominated_by, appears_later_in_bb, get_def_stmt,
12129 ensure_ops_are_available): Remove.
12130 (find_insert_point): Rewritten.
12131 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12132 return LHS of the (new resp. old) stmt. Don't call
12133 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12134 instead of last, move new stmt at the right place.
12135 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12136 (negate_value): Likewise. Set uids.
12137 (break_up_subtract_bb): Initialize uids.
12138 (reassociate_bb): Adjust rewrite_expr_tree caller.
12139 (do_reassoc): Don't call renumber_gimple_stmt_uids.
12140
12141 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
12142
12143 PR target/58838
12144 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12145 TARGET_32BIT final condition.
12146 (mulsi3_internal2 and splitter): Same.
12147
12148 2013-10-23 Jeff Law <law@redhat.com>
12149
12150 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12151 through joiner blocks with abnormal outgoing edges.
12152
12153 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12154 Add parameter JOINERS, to allow/disallow threading through joiner
12155 blocks.
12156 (thread_block): New. Call thread_block_1.
12157 (mark_threaded_blocks): Remove code to filter out certain cases
12158 of threading through joiner blocks.
12159 (thread_through_all_blocks): Document how we can have a dangling
12160 edge AUX field and clear it.
12161
12162 2013-10-23 Ian Lance Taylor <iant@google.com>
12163
12164 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12165 (C++ Dialect Options): Likewise.
12166 (Optimize Options): Likewise.
12167
12168 2013-10-23 Tom de Vries <tom@codesourcery.com>
12169
12170 PR tree-optimization/58805
12171 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12172
12173 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12174
12175 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12176 sequence based on get_range_info returned range.
12177
12178 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12179
12180 * tree-ssa.h: Remove all #include's
12181 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12182 * alias.c: Move required includes from tree-ssa.h.
12183 * asan.c: Likewise.
12184 * builtins.c: Likewise.
12185 * calls.c: Likewise.
12186 * cfgexpand.c: Likewise.
12187 * cfghooks.c: Likewise.
12188 * cfgloop.c: Likewise.
12189 * cfgloopmanip.c: Likewise.
12190 * cgraph.c: Likewise.
12191 * cgraphbuild.c: Likewise.
12192 * cgraphclones.c: Likewise.
12193 * cgraphunit.c: Likewise.
12194 * dse.c: Likewise.
12195 * except.c: Likewise.
12196 * expr.c: Likewise.
12197 * final.c: Likewise.
12198 * fold-const.c: Likewise.
12199 * ggc-page.c: Likewise.
12200 * gimple-builder.c: Likewise.
12201 * gimple-fold.c: Likewise.
12202 * gimple-iterator.c: Likewise.
12203 * gimple-low.c: Likewise.
12204 * gimple-pretty-print.c: Likewise.
12205 * gimple-ssa-strength-reduction.c: Likewise.
12206 * gimple-streamer-in.c: Likewise.
12207 * gimple-streamer-out.c: Likewise.
12208 * gimplify.c: Likewise.
12209 * graphite-blocking.c: Likewise.
12210 * graphite-clast-to-gimple.c: Likewise.
12211 * graphite-dependences.c: Likewise.
12212 * graphite-interchange.c: Likewise.
12213 * graphite-optimize-isl.c: Likewise.
12214 * graphite-poly.c: Likewise.
12215 * graphite-scop-detection.c: Likewise.
12216 * graphite-sese-to-poly.c: Likewise.
12217 * graphite.c: Likewise.
12218 * ipa-cp.c: Likewise.
12219 * ipa-inline-analysis.c: Likewise.
12220 * ipa-inline-transform.c: Likewise.
12221 * ipa-inline.c: Likewise.
12222 * ipa-prop.c: Likewise.
12223 * ipa-pure-const.c: Likewise.
12224 * ipa-reference.c: Likewise.
12225 * ipa-split.c: Likewise.
12226 * ipa-utils.c: Likewise.
12227 * loop-init.c: Likewise.
12228 * lto-cgraph.c: Likewise.
12229 * lto-section-in.c: Likewise.
12230 * lto-section-out.c: Likewise.
12231 * lto-streamer-in.c: Likewise.
12232 * lto-streamer-out.c: Likewise.
12233 * lto-streamer.c: Likewise.
12234 * omp-low.c: Likewise.
12235 * passes.c: Likewise.
12236 * predict.c: Likewise.
12237 * print-tree.c: Likewise.
12238 * profile.c: Likewise.
12239 * sese.c: Likewise.
12240 * targhooks.c: Likewise.
12241 * tracer.c: Likewise.
12242 * trans-mem.c: Likewise.
12243 * tree-call-cdce.c: Likewise.
12244 * tree-cfg.c: Likewise.
12245 * tree-cfgcleanup.c: Likewise.
12246 * tree-chrec.c: Likewise.
12247 * tree-complex.c: Likewise.
12248 * tree-data-ref.c: Likewise.
12249 * tree-dfa.c: Likewise.
12250 * tree-eh.c: Likewise.
12251 * tree-emutls.c: Likewise.
12252 * tree-if-conv.c: Likewise.
12253 * tree-inline.c: Likewise.
12254 * tree-into-ssa.c: Likewise.
12255 * tree-loop-distribution.c: Likewise.
12256 * tree-mudflap.c: Likewise.
12257 * tree-nested.c: Likewise.
12258 * tree-nrv.c: Likewise.
12259 * tree-object-size.c: Likewise.
12260 * tree-outof-ssa.c: Likewise.
12261 * tree-parloops.c: Likewise.
12262 * tree-phinodes.c: Likewise.
12263 * tree-predcom.c: Likewise.
12264 * tree-pretty-print.c: Likewise.
12265 * tree-profile.c: Likewise.
12266 * tree-scalar-evolution.c: Likewise.
12267 * tree-sra.c: Likewise.
12268 * tree-ssa-address.c: Likewise.
12269 * tree-ssa-alias.c: Likewise.
12270 * tree-ssa-ccp.c: Likewise.
12271 * tree-ssa-coalesce.c: Likewise.
12272 * tree-ssa-copy.c: Likewise.
12273 * tree-ssa-copyrename.c: Likewise.
12274 * tree-ssa-dce.c: Likewise.
12275 * tree-ssa-dom.c: Likewise.
12276 * tree-ssa-dse.c: Likewise.
12277 * tree-ssa-forwprop.c: Likewise.
12278 * tree-ssa-ifcombine.c: Likewise.
12279 * tree-ssa-live.c: Likewise.
12280 * tree-ssa-loop-ch.c: Likewise.
12281 * tree-ssa-loop-im.c: Likewise.
12282 * tree-ssa-loop-ivcanon.c: Likewise.
12283 * tree-ssa-loop-ivopts.c: Likewise.
12284 * tree-ssa-loop-manip.c: Likewise.
12285 * tree-ssa-loop-niter.c: Likewise.
12286 * tree-ssa-loop-prefetch.c: Likewise.
12287 * tree-ssa-loop-unswitch.c: Likewise.
12288 * tree-ssa-loop.c: Likewise.
12289 * tree-ssa-math-opts.c: Likewise.
12290 * tree-ssa-operands.c: Likewise.
12291 * tree-ssa-phiopt.c: Likewise.
12292 * tree-ssa-phiprop.c: Likewise.
12293 * tree-ssa-pre.c: Likewise.
12294 * tree-ssa-propagate.c: Likewise.
12295 * tree-ssa-reassoc.c: Likewise.
12296 * tree-ssa-sccvn.c: Likewise.
12297 * tree-ssa-sink.c: Likewise.
12298 * tree-ssa-strlen.c: Likewise.
12299 * tree-ssa-structalias.c: Likewise.
12300 * tree-ssa-tail-merge.c: Likewise.
12301 * tree-ssa-ter.c: Likewise.
12302 * tree-ssa-threadedge.c: Likewise.
12303 * tree-ssa-threadupdate.c: Likewise.
12304 * tree-ssa-uncprop.c: Likewise.
12305 * tree-ssa-uninit.c: Likewise.
12306 * tree-ssa.c: Likewise.
12307 * tree-ssanames.c: Likewise.
12308 * tree-stdarg.c: Likewise.
12309 * tree-streamer-in.c: Likewise.
12310 * tree-switch-conversion.c: Likewise.
12311 * tree-tailcall.c: Likewise.
12312 * tree-vect-data-refs.c: Likewise.
12313 * tree-vect-generic.c: Likewise.
12314 * tree-vect-loop-manip.c: Likewise.
12315 * tree-vect-loop.c: Likewise.
12316 * tree-vect-patterns.c: Likewise.
12317 * tree-vect-slp.c: Likewise.
12318 * tree-vect-stmts.c: Likewise.
12319 * tree-vectorizer.c: Likewise.
12320 * tree-vrp.c: Likewise.
12321 * tree.c: Likewise.
12322 * tsan.c: Likewise.
12323 * value-prof.c: Likewise.
12324 * var-tracking.c: Likewise.
12325 * varpool.c: Likewise.
12326 * vtable-verify.c: Likewise.
12327
12328 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12329
12330 * config/tilegx/tilegx.c: Include "tree.h".
12331
12332 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12333
12334 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12335 the info, not after it.
12336 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12337 dump_ssaname_info call.
12338 (pp_gimple_stmt_1): Adjust caller.
12339 (dump_phi_nodes): Likewise. Don't print "# " here.
12340
12341 2013-10-22 Jan Hubicka <jh@suse.cz>
12342
12343 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12344 tuning flag.
12345 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12346 * i386.c (expand_small_movmem_or_setmem): New function.
12347 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12348 function.
12349 (alg_usable_p): Add support for value ranges; cleanup.
12350 (ix86_expand_set_or_movmem): Add support for misaligned moves.
12351
12352 2013-10-22 Sterling Augustine <saugustine@google.com>
12353
12354 * doc/invoke.texi: Document -ggnu-pubnames.
12355 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12356 logic.
12357 * dwarf2out.c: Include gdb/gdb-index.h.
12358 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12359 debug_generate_pub_sections.
12360 (is_java, output_pubtables, output_pubname): New functions.
12361 (include_pubname_in_output): Handle debug_generate_pub_sections at
12362 level 2.
12363 (size_of_pubnames): Use new local space_for_flags based on
12364 debug_generate_pub_sections.
12365 (output_pubnames): Unify pubnames and pubtypes output logic.
12366 Genericize comments. Call output_pubname.
12367 (dwarf2out_finish): Move logic to output_pubnames and call it.
12368
12369 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
12370
12371 PR target/58779
12372 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12373 Remove CCCmode handling.
12374 <case LTU>: Return 'c' suffix for CCCmode.
12375 <case GEU>: Return 'nc' suffix for CCCmode.
12376 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12377 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12378 (*sub<mode>3_cc_overflow): Ditto.
12379 (*subsi3_zext_cc_overflow): Ditto.
12380
12381 2013-10-22 Steve Ellcey <sellcey@mips.com>
12382
12383 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
12384 (AND (NOT OP1) (NOT OP2)).
12385
12386 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
12387
12388 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12389 meaning of merge-high and merge-low masks for little endian; avoid
12390 use of vector-pack masks for little endian for mismatched modes.
12391
12392 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12393
12394 * config/tilepro/tilepro.c: Include "tree.h".
12395
12396 2013-10-22 Andreas Schwab <schwab@suse.de>
12397
12398 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12399 with PRE_DEC.
12400
12401 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
12402
12403 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12404 [Ed Smith-Rowland]): New entries.
12405 ([Stephen M. Webb]): Update.
12406
12407 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
12408
12409 * tree-ssa-ter.h: Remove duplicate copy of file contents.
12410
12411 2013-10-21 Marek Polacek <polacek@redhat.com>
12412
12413 PR middle-end/58809
12414 * fold-const.c (fold_range_test): Return 0 if the type is not
12415 an integral type.
12416
12417 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
12418
12419 * system.h: Move hwint.h include further down.
12420 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
12421 gcc_checking_asserts.
12422 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12423
12424 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12425
12426 Fix volatile issues in optimize_bit_field_compare.
12427 * fold-const.c (optimize_bit_field_compare): Bail out if
12428 lvolatilep or rvolatilep.
12429
12430 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12431
12432 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12433 and get_inner_reference returning different pmode for non-volatile
12434 bit-field members dependent on flag_strict_volatile_bitfields.
12435 * stor-layout.c (layout_decl): Remove special handling of
12436 flag_strict_volatile_bitfields.
12437 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12438 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12439
12440 2013-10-21 Paulo Matos <pmatos@broadcom.com>
12441
12442 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12443 calculations.
12444
12445 2013-10-21 Jeff Law <law@redhat.com>
12446
12447 * tree-ssa-threadedge.c (thread_through_normal_block): New
12448 argument VISITED. Remove VISISTED as a local variable. When we
12449 have a threadable jump, verify the destination of the jump has not
12450 been visised.
12451 (thread_across_edge): Allocate VISITED bitmap once at function
12452 scope and use it throughout. Make sure to set appropriate bits in
12453 VISITED for E (start of jump thread path).
12454 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12455 through a joiner if any edge on the path has a recorded jump thread.
12456
12457 2013-10-21 Ian Lance Taylor <iant@google.com>
12458
12459 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12460 don't imply that attributes can solve all problems.
12461 (Directory Options): Fix typo.
12462
12463 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12464
12465 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12466 extend and extend_add.
12467
12468 2013-10-21 Richard Biener <rguenther@suse.de>
12469
12470 PR tree-optimization/58794
12471 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12472 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12473
12474 2013-10-21 Richard Biener <rguenther@suse.de>
12475
12476 PR middle-end/58742
12477 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12478 to (T) X for sign-changing conversions (or no conversion).
12479
12480 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12481
12482 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12483
12484 2013-10-20 Jan Hubicka <jh@suse.cz>
12485
12486 * config/i386/i386-tune.def: Add comment; organize into categories
12487
12488 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12489
12490 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12491 argument. Update function comment.
12492 (expand_set_or_movmem_via_rep): New function combining
12493 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12494 (expand_movmem_via_rep_mov): Remove.
12495 expand_setmem_via_rep_stos): Remove.
12496 (expand_movmem_epilogue): Update calls correspondingly.
12497 (expand_setmem_epilogue_via_loop): Likewise.
12498 (emit_memset): New.
12499 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12500 (expand_set_or_movmem_prologue): New function combining
12501 expand_movmem_prologue and expand_setmem_prologue.
12502 (expand_movmem_prologue): Remove.
12503 (expand_setmem_prologue): Remove.
12504 (expand_set_or_movmem_constant_prologue): New function combining
12505 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12506 (expand_constant_movmem_prologue): Remove.
12507 (expand_constant_setmem_prologue): Remove.
12508 (promote_duplicated_reg): Allow vector-const0 value.
12509 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12510 and ix86_expand_setmem.
12511 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12512 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12513
12514 2013-10-21 Diego Novillo <dnovillo@google.com>
12515
12516 * asan.c: Include tree.h
12517 * bb-reorder.c: Likewise.
12518 * cfgcleanup.c: Likewise.
12519 * cfgloopmanip.c: Likewise.
12520 * data-streamer-in.c: Likewise.
12521 * data-streamer-out.c: Likewise.
12522 * data-streamer.c: Likewise.
12523 * dwarf2cfi.c: Likewise.
12524 * graphite-blocking.c: Likewise.
12525 * graphite-clast-to-gimple.c: Likewise.
12526 * graphite-dependences.c: Likewise.
12527 * graphite-interchange.c: Likewise.
12528 * graphite-optimize-isl.c: Likewise.
12529 * graphite-poly.c: Likewise.
12530 * graphite-scop-detection.c: Likewise.
12531 * graphite-sese-to-poly.c: Likewise.
12532 * graphite.c: Likewise.
12533 * ipa-devirt.c: Likewise.
12534 * ipa-profile.c: Likewise.
12535 * ipa.c: Likewise.
12536 * ira.c: Likewise.
12537 * loop-init.c: Likewise.
12538 * loop-unroll.c: Likewise.
12539 * lower-subreg.c: Likewise.
12540 * lto/lto-object.c: Likewise.
12541 * recog.c: Likewise.
12542 * reginfo.c: Likewise.
12543 * tree-loop-distribution.c: Likewise.
12544 * tree-parloops.c: Likewise.
12545 * tree-ssa-strlen.c: Likewise.
12546 * tree-streamer.c: Likewise.
12547 * value-prof.c: Likewise.
12548 * target-globals.c: Likewise.
12549 * expr.h: Include tree-core.h instead of tree.h.
12550 * gimple.h: Likewise.
12551 * ipa-prop.h: Likewise.
12552 * ipa-utils.h: Likewise.
12553 * lto-streamer.h: Likewise.
12554 * streamer-hooks.h: Likewise.
12555 * ipa-reference.h: Include cgraph.h instead of tree.h.
12556 * cgraph.h: Include basic-block.h instead of tree.h.
12557 * tree-streamer.h: Do not include tree.h.
12558 * genattrtab.c (write_header): Generate inclusion of tree.h.
12559 * genautomata.c (main): Likewise.
12560 * genemit.c: Likewise.
12561 * genopinit.c: Likewise.
12562 * genoutput.c (output_prologue): Likewise.
12563 * genpeep.c: Likewise.
12564
12565 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12566
12567 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12568 little endian.
12569 (vec_unpacku_hi_v8hi): Likewise.
12570 (vec_unpacku_lo_v16qi): Likewise.
12571 (vec_unpacku_lo_v8hi): Likewise.
12572
12573 2013-10-20 Jan Hubicka <jh@suse.cz>
12574
12575 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12576 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12577 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12578
12579 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12580
12581 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12582 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12583 constants.
12584 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12585
12586 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12587
12588 PR target/58603
12589 * system.h: Undef m_slot.
12590
12591 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12592
12593 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12594 all elements for both endian flavors.
12595
12596 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12597
12598 PR target/58792
12599 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12600 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12601 and SI_REG for 64bit SYSV ABI targets.
12602
12603 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12604
12605 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12606 to multi_reg_return. Clarify that we are skipping USEs of multiple
12607 return registers. Use bool type where appropriate.
12608
12609 2013-10-18 Jan Hubicka <jh@suse.cz>
12610
12611 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12612 for cold functions.
12613 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12614 (X86_TUNE_PUSH_MEMORY): Likewise.
12615 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12616 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12617 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12618 New.
12619 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12620 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12621 Remove.
12622 (ix86_option_override_internal): Update to use tune features instead
12623 of variables.
12624
12625 2013-10-18 Cong Hou <congh@google.com>
12626
12627 PR tree-optimization/58508
12628 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12629 statement that contains data refs with zero-step.
12630
12631 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12632
12633 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12634 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12635 * gimple-low.c (gimple_check_call_arg,
12636 gimple_check_call_matching_types): Move to cgraph.c.
12637 * gimple-low.h: Remove prototype.
12638 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12639 Relocate from gimple-low.c.
12640 * cgraph.h: Add prototype. Don't include basic-block.h.
12641 * gimplify.c: Add gimple-low to include list.
12642 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12643 * tree-eh.c: Add gimple-low to include list.
12644 * tree-nested.c: Likewise.
12645 * cfgexpand.c: Add tree-ssa-address.h to include list.
12646 * expr.c: Likewise.
12647 * gimple-fold.c: Likewise.
12648 * gimple-ssa-strength-reduction.c: Likewise.
12649 * trans-mem.c: Likewise.
12650 * tree-mudflap.c: Likewise.
12651 * tree-ssa-loop-ivopts.c: Likewise.
12652 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12653 (degenerate_phi_result): Move to tree-phinodes.c.
12654 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12655 * tree-ssa-threadedge.c: Likewise.
12656 * tree-vrp.c: Likewise.
12657 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12658 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12659 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12660 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12661 * tree-ssa-forwprop.c: Likewise.
12662 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12663 pass_data_cleanup_cfg_post_optimizing,
12664 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12665 * tree-optimize.c: Delete File.
12666 * graphite.c: Include tree-cfgcleanup.h.
12667 * passes.c: Likewise.
12668 * tree-cfg.c: Likewise.
12669 * tree-profile.c: Likewise.
12670 * tree-ssa-dse.c: Likewise.
12671 * tree-ssa-loop-ivcanon.c: Likewise.
12672 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12673 * tree-outof-ssa.c: Include sbitmap.h.
12674 * tree-ssa-live.c: Likewise.
12675 * tree-ssa-propagate.c: Likewise.
12676 * tree-ssa-structalias.c: Likewise.
12677 * tree-stdarg.c: Likewise.
12678 * Makefile.in (OBJS): Delete tree-optimize.o.
12679 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12680 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12681 * varasm.c: Include basic-block.h.
12682 * cfgloop.h: Include function.h instead of basic-block.h
12683 (bb_loop_depth): Move to cfgloop.c.
12684 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12685
12686 2013-10-18 Teresa Johnson <tejohnson@google.com>
12687
12688 * predict.c (probably_never_executed): Compare frequency-based
12689 count to number of training runs.
12690 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12691
12692 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12693
12694 * config/arm/arm.c (cortexa9_extra_costs): New table.
12695 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12696
12697 2013-10-18 Jeff Law <law@redhat.com>
12698
12699 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12700
12701 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12702 (register_jump_thread): Add "registered_jump_thread" debug
12703 counter support.
12704 * dbgcnt.def (registered_jump_thread): New debug counter.
12705
12706 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12707
12708 * config/rs6000/rs6000.c: Include cgraph.h.
12709
12710 2013-10-18 Teresa Johnson <tejohnson@google.com>
12711
12712 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12713 weights during merging.
12714
12715 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12716
12717 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12718 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12719 * tree-ssa-operands.h: Remove prototype.
12720 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12721 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12722 * gimple.h: Add prototype.
12723 * gimple-ssa.h: Include tree-ssa-operands.h.
12724 * tree-dump.c: Add tree-cfg.h to include list.
12725 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12726 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12727 * config/i386/i386.c: Don't include tree-flow.h.
12728 * config/rs6000/rs6000.c: Likewise.
12729
12730 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12731
12732 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12733
12734 2013-10-18 Richard Biener <rguenther@suse.de>
12735
12736 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12737 or TYPE_UNSIGNED of integral types.
12738 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12739 NULL_TREE for zero-precision integral types.
12740
12741 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12742
12743 * config/aarch64/arm_neon.h
12744 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12745
12746 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12747
12748 PR target/57756
12749 * opth-gen.awk: Define target_flags_explicit.
12750
12751 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12752
12753 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12754 fields to the reg_addr array that describes the valid addressing
12755 mode for any register, general purpose registers, floating point
12756 registers, and Altivec registers.
12757 (FIRST_RELOAD_REG_CLASS): Likewise.
12758 (LAST_RELOAD_REG_CLASS): Likewise.
12759 (struct reload_reg_map_type): Likewise.
12760 (reload_reg_map_type): Likewise.
12761 (RELOAD_REG_VALID): Likewise.
12762 (RELOAD_REG_MULTIPLE): Likewise.
12763 (RELOAD_REG_INDEXED): Likewise.
12764 (RELOAD_REG_OFFSET): Likewise.
12765 (RELOAD_REG_PRE_INCDEC): Likewise.
12766 (RELOAD_REG_PRE_MODIFY): Likewise.
12767 (reg_addr): Likewise.
12768 (mode_supports_pre_incdec_p): New helper functions to say whether
12769 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12770 (mode_supports_pre_modify_p): Likewise.
12771 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12772 print the valid address mode bits for each mode.
12773 (rs6000_debug_print_mode): Likewise.
12774 (rs6000_debug_reg_global): Likewise.
12775 (rs6000_setup_reg_addr_masks): New function to set up the address
12776 mask bits for each type.
12777 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12778 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12779 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12780 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12781 PRE_MODIFY are supported.
12782 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12783 registers, instead of {src,dest}_av_p.
12784 (rs6000_print_options_internal): Tweak the debug output slightly.
12785
12786 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12787
12788 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12789 isa attribute.
12790
12791 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12792
12793 * tree-flow.h (struct omp_region): Move to omp-low.c.
12794 Remove omp_ prototypes and variables.
12795 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12796 (copy_var_decl): Relocate prototype from tree-flow.h.
12797 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12798 * tree.h: Move prototype to omp-low.h.
12799 * omp-low.h: New File. Relocate prototypes here.
12800 * omp-low.c (struct omp_region): Make local here.
12801 (root_omp_region): Make static.
12802 (copy_var_decl) Move to gimple.c.
12803 (new_omp_region): Make static.
12804 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12805 * tree-cfg.c: Include omp-low.h.
12806 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12807 * gimplify.c: Include omp-low.h.
12808 * tree-parloops.c: Likewise.
12809
12810 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12811
12812 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12813 operands are in memory, prefer to force non-matched operand 1 to
12814 the register.
12815
12816 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12817
12818 PR target/58673
12819 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12820 restrict TImode addresses to single indirect registers if both
12821 -mquad-memory and -mvsx-timode are used.
12822 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12823 we should emit load/store quad. Remove using %y for quad memory
12824 addresses.
12825
12826 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12827 constraints to allow load/store quad on machines where TImode is
12828 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12829 for TImode to load integer constants.
12830
12831 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12832
12833 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12834
12835 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12836
12837 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12838 handling of STACK_REG.
12839
12840 2013-10-17 Richard Biener <rguenther@suse.de>
12841
12842 PR tree-optimization/58143
12843 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12844 New function.
12845 (rewrite_to_defined_overflow): Likewise.
12846 (move_computations_dom_walker::before_dom): Rewrite stmts
12847 with undefined signed overflow that are not always executed
12848 into unsigned arithmetic.
12849
12850 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12851
12852 PR target/57756
12853 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12854 explicit isa flag to be an options variable, instead of using
12855 global_options_set. Remove define from rs6000.h.
12856 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12857
12858 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12859 Initialize rs6000_isa_flags_explicit.
12860 (rs6000_function_specific_save): Add gcc_options* parameter, so
12861 that the powerpc builds after the 2013-10-15 changes.
12862 (rs6000_function_specific_restore): Likewise.
12863
12864 2013-10-16 DJ Delorie <dj@redhat.com>
12865
12866 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12867 op is a REG before checking REGNO.
12868 (rl78_alloc_physical_registers): Verify pattern is a SET before
12869 checking SET_SRC.
12870
12871 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12872
12873 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12874 endianness.
12875 (vec_unpacks_lo_v4sf): Likewise.
12876 (vec_unpacks_float_hi_v4si): Likewise.
12877 (vec_unpacks_float_lo_v4si): Likewise.
12878 (vec_unpacku_float_hi_v4si): Likewise.
12879 (vec_unpacku_float_lo_v4si): Likewise.
12880
12881 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12882
12883 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12884 (vsx_concat_v2sf): Likewise.
12885
12886 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12887
12888 * config/aarch64/aarch64.md
12889 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12890
12891 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12892
12893 PR tree-optimization/58697
12894 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12895 estimated_loop_iterations_int.
12896 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12897 (get_max_loop_iterations_int): New. HWINT version of
12898 get_max_loop_iterations.
12899 * cfgloop.h: Add prototypes.
12900 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12901 * loop-unroll.c (decide_peel_once_rolling): Call
12902 get_estimated_loop_iterations_int.
12903 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12904 * tree-ssa-loop-niter.h: Tweak prototypes.
12905
12906 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12907
12908 * gengtype-parse.c (struct_field_seq): Ignore access-control
12909 keywords ("public:" etc).
12910
12911 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12912
12913 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12914 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12915
12916 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12917
12918 * config/arm/arm.opt (mlra): New option.
12919 * config/arm/arm.c (arm_lra_p): New function.
12920 (TARGET_LRA_P): Define.
12921
12922 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12923
12924 * tree-core.h (tree_code_name): Remove.
12925 * tree.h (get_tree_code_name): New prototype.
12926 * tree.c (tree_code_name): Make static.
12927 (get_tree_code_name): New function.
12928 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12929 tree_class_check_failed, tree_range_check_failed,
12930 tree_not_class_check_failed, omp_clause_check_failed,
12931 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12932 wrapper get_tree_code_name instead of calling tree_code_name directly.
12933 * tree-vrp.c (dump_asserts_for): Likewise.
12934 * tree-dump.c (dequeue_and_dump): Likewise.
12935 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12936 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12937 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12938 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12939 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12940 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12941 dump_gimple_omp_for): Likewise.
12942 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12943 * tree-ssa-pre.c (print_pre_expr): Likewise.
12944 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12945 * print-tree.c (print_node_brief, print_node): Likewise.
12946 * gimple.c (gimple_check_failed): Likewise.
12947 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12948 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12949 * config/mep/mep.c (mep_validate_vliw): Likewise.
12950 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12951 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12952
12953 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12954
12955 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12956 for AMD bdver3.
12957
12958 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12959
12960 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12961 (MULTILIB_MATCHES): Add multilib for -march=v8.
12962
12963 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12964
12965 PR target/57756
12966 * optc-save-gen.awk: Add extra parameter to the save and restore
12967 target calls.
12968 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12969 * tree.c (build_optimization_node): New parameter. Add extra parameter
12970 to call to cl_optimization_save.
12971 (build_target_option_node): New parameter. Add extra parameter
12972 to call to cl_target_option_save.
12973 * tree.h (build_optimization_node): New parameter.
12974 (build_target_option_node): New parameter.
12975 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12976 build_optimization_node and build_target_option_node.
12977 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12978 (handle_pragma_push_options): Ditto.
12979 * toplev.c (process_options): Ditto.
12980 * opts.c (init_options_struct): Check for opts_set non-null.
12981 * target.def (target_option.save): New parameter.
12982 (target_option.restore): New parameter.
12983 * tm.texi: Generate.
12984 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12985 (ix86_pragma_target_parse): Ditto.
12986 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12987 parameters.
12988 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12989 to build_optimization_node and build_target_option_node.
12990 (rs6000_valid_attribute_p): Ditto.
12991 (rs6000_pragma_target_parse): Ditto.
12992 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12993 data.
12994 * config/i386/i386.h:
12995 TARGET_64BIT_P: New Macro
12996 TARGET_MMX_P: New Macro.
12997 TARGET_3DNOW_P: New Macro.
12998 TARGET_3DNOW_A_P: New Macro.
12999 TARGET_SSE_P: New Macro.
13000 TARGET_SSE2_P: New Macro.
13001 TARGET_SSE3_P: New Macro.
13002 TARGET_SSSE3_P: New Macro.
13003 TARGET_SSE4_1_P: New Macro.
13004 TARGET_SSE4_2_P: New Macro.
13005 TARGET_AVX_P: New Macro.
13006 TARGET_AVX2_P: New Macro.
13007 TARGET_AVX512F_P: New Macro.
13008 TARGET_AVX512PF_P: New Macro.
13009 TARGET_AVX512ER_P: New Macro.
13010 TARGET_AVX512CD_P: New Macro.
13011 TARGET_FMA_P: New Macro.
13012 TARGET_SSE4A_P: New Macro.
13013 TARGET_FMA4_P: New Macro.
13014 TARGET_XOP_P: New Macro.
13015 TARGET_LWP_P: New Macro.
13016 TARGET_ABM_P: New Macro.
13017 TARGET_BMI_P: New Macro.
13018 TARGET_BMI2_P: New Macro.
13019 TARGET_LZCNT_P: New Macro.
13020 TARGET_TBM_P: New Macro.
13021 TARGET_POPCNT_P: New Macro.
13022 TARGET_SAHF_P: New Macro.
13023 TARGET_MOVBE_P: New Macro.
13024 TARGET_CRC32_P: New Macro.
13025 TARGET_AES_P: New Macro.
13026 TARGET_PCLMUL_P: New Macro.
13027 TARGET_CMPXCHG16B_P: New Macro.
13028 TARGET_FSGSBASE_P: New Macro.
13029 TARGET_RDRND_P: New Macro.
13030 TARGET_F16C_P: New Macro.
13031 TARGET_RTM_P: New Macro.
13032 TARGET_HLE_P: New Macro.
13033 TARGET_RDSEED_P: New Macro.
13034 TARGET_PRFCHW_P: New Macro.
13035 TARGET_ADX_P: New Macro.
13036 TARGET_FXSR_P: New Macro.
13037 TARGET_XSAVE_P: New Macro.
13038 TARGET_XSAVEOPT_P: New Macro.
13039 TARGET_LP64_P: New Macro.
13040 TARGET_X32_P: New Macro.
13041 TARGET_FPMATH_DEFAULT_P: New Macro.
13042 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13043 * config/i386/i386.c (ix86_option_override_internal): New parameters.
13044 opts and opts_set.
13045 Change ix86_tune_string to access opts->x_ix86_tune_string.
13046 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13047 Change ix86_arch_string to access opts->x_ix86_arch_string.
13048 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13049 Change ix86_pmode to access opts->x_ix86_pmode.
13050 Change ix86_abi to access opts->x_ix86_abi.
13051 Change ix86_cmodel to access opts->x_ix86_cmodel.
13052 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13053 Change ix86_isa_flags_explicit to access
13054 opts->x_ix86_isa_flags_explicit.
13055 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13056 Change ix86_regparm to access opts->x_ix86_regparm.
13057 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13058 Change ix86_preferred_stack_boundary_arg to access
13059 opts->x_ix86_preferred_stack_boundary_arg.
13060 Change ix86_force_align_arg_pointer to access
13061 opts->x_ix86_force_align_arg_pointer.
13062 Change ix86_incoming_stack_boundar_arg to access
13063 opts->x_ix86_incoming_stack_boundar_arg.
13064 Change ix86_fpmath to access opts->x_ix86_fpmath.
13065 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13066 Change ix86_recip_name to access opts->x_ix86_recip_name.
13067 Change ix86_stack_protector_guard to access
13068 opts->x_ix86_stack_protector_guard.
13069 Change ix86_tune_memcpy_strategy to access
13070 opts->x_ix86_tune_memcpy_strategy.
13071 Change ix86_tune_memset_strategy to access
13072 opts->x_ix86_tune_memset_strategy.
13073 Change global_options to access opts.
13074 Change global_options_set to access opts_set.
13075 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13076 Change TARGET_MMX to TARGET_MMX_P (opts->...).
13077 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13078 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13079 Change TARGET_SSE to TARGET_SSE_P (opts->...).
13080 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13081 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13082 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13083 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13084 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13085 Change TARGET_AVX to TARGET_AVX_P (opts->...).
13086 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13087 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13088 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13089 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13090 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13091 Change TARGET_FMA to TARGET_FMA_P (opts->...).
13092 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13093 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13094 Change TARGET_XOP to TARGET_XOP_P (opts->...).
13095 Change TARGET_LWP to TARGET_LWP_P (opts->...).
13096 Change TARGET_ABM to TARGET_ABM_P (opts->...).
13097 Change TARGET_BMI to TARGET_BMI_P (opts->...).
13098 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13099 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13100 Change TARGET_TBM to TARGET_TBM_P (opts->...).
13101 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13102 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13103 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13104 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13105 Change TARGET_AES to TARGET_AES_P (opts->...).
13106 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13107 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13108 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13109 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13110 Change TARGET_F16C to TARGET_F16C_P (opts->...).
13111 Change TARGET_RTM to TARGET_RTM_P (opts->...).
13112 Change TARGET_HLE to TARGET_HLE_P (opts->...).
13113 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13114 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13115 Change TARGET_ADX to TARGET_ADX_P (opts->...).
13116 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13117 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13118 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13119 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13120 Change TARGET_X32 to TARGET_X32_P (opts->...).
13121 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13122 Change TARGET_FLOAT_RETURNS_IN_80387 to
13123 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13124 (ix86_function_specific_save): New parameter. Use opts-> fields
13125 to replace global fields.
13126 (ix86_function_specific_restore): Ditto.
13127 (ix86_valid_target_attribute_inner_p): New parameters.
13128 Fix recursive call.
13129 Fix call to ix86_handle_option and set_option.
13130 (ix86_valid_target_attribute_tree): New parameters.
13131 Change global_options to access opts.
13132 Change global_options_set to access opts_set.
13133 Fix call to ix86_valid_target_attribute_inner_p.
13134 Change ix86_tune_string to access opts->x_ix86_tune_string.
13135 Change ix86_arch_string to access opts->x_ix86_arch_string.
13136 Change ix86_fpmath to access opts->x_ix86_fpmath
13137 Fix call to ix86_option_override_internal.
13138 Fix call to ix86_add_new_builtins.
13139 Fix calls to build_optimization_node and build_target_option_node.
13140 (ix86_valid_target_attribute_p): Remove access to global_options.
13141 Use new gcc_options structure func_options.
13142 Fix call to ix86_valid_target_attribute_tree.
13143 Fix call to build_optimization_node.
13144 (get_builtin_code_for_version): Fix call to
13145 ix86_valid_target_attribute_tree.
13146
13147 2013-10-15 David Malcolm <dmalcolm@redhat.com>
13148
13149 * Makefile.in (PICFLAG): New.
13150 (enable_host_shared): New.
13151 (INTERNAL_CFLAGS): Use PICFLAG.
13152 (LIBIBERTY): Use pic build of libiberty.a if configured with
13153 --enable-host-shared.
13154 * configure.ac: Add --enable-host-shared, setting up new
13155 PICFLAG variable.
13156 * configure: Regenerate.
13157 * doc/install.texi (--enable-shared): Add note contrasting it with ...
13158 (--enable-host-shared): New option.
13159
13160 2013-10-15 Richard Biener <rguenther@suse.de>
13161
13162 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13163 for built-in functions.
13164
13165 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
13166
13167 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13168 (optimize_range_tests_1): New function,
13169 extracted from optimize_range_tests.
13170 (optimize_range_tests_xor): Similarly.
13171 (optimize_range_tests_diff): New function.
13172 (optimize_range_tests): Use optimize_range_tests_1.
13173
13174 2013-10-15 Cong Hou <congh@google.com>
13175
13176 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13177 requirement of the reduction pattern so that one operand of the
13178 reduction operation can come from outside of the loop.
13179
13180 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13181
13182 * config/arm/neon-schedgen.ml: Remove.
13183 * config/arm/cortex-a9-neon.md: Remove comment regarding
13184 neon-schedgen.ml.
13185
13186 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13187
13188 * config/arm/types: Remove old neon types.
13189
13190 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13191
13192 * config/arm/cortex-a7.md
13193 (cortex_a7_neon_type): New.
13194 (cortex_a7_neon_mul): Update for new types.
13195 (cortex_a7_neon_mla): Likewise.
13196 (cortex_a7_neon): Likewise.
13197
13198 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13199
13200 * config/arm/cortex-a15-neon.md
13201 (cortex_a15_neon_type): New,
13202
13203 (cortex_a15_neon_int_1): Remove.
13204 (cortex_a15_neon_int_2): Likewise.
13205 (cortex_a15_neon_int_3): Likewise.
13206 (cortex_a15_neon_int_4): Likewise.
13207 (cortex_a15_neon_int_5): Likewise.
13208 (cortex_a15_neon_vqneg_vqabs): Likewise.
13209 (cortex_a15_neon_vmov): Likewise.
13210 (cortex_a15_neon_vaba): Likewise.
13211 (cortex_a15_neon_vaba_qqq): Likewise.
13212 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13213 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13214 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13215 Likewise.
13216 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13217 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13218 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13219 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13220 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13221 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13222 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13223 (cortex_a15_neon_shift_1): Likewise.
13224 (cortex_a15_neon_shift_2): Likewise.
13225 (cortex_a15_neon_shift_3): Likewise.
13226 (cortex_a15_neon_vshl_ddd): Likewise.
13227 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13228 (cortex_a15_neon_vsra_vrsra): Likewise.
13229 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13230 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13231 (cortex_a15_neon_bp_3cycle): Likewise.
13232 (cortex_a15_neon_ldm_2): Likewise.
13233 (cortex_a15_neon_stm_2): Likewise.
13234 (cortex_a15_neon_mcr): Likewise.
13235 (cortex_a15_neon_mrc): Likewise.
13236 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13237 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13238 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13239 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13240 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13241 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13242 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13243 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13244 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13245 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13246 (cortex_a15_neon_bp_simple): Likewise.
13247 (cortex_a15_neon_bp_2cycle): Likewise.
13248 (cortex_a15_neon_bp_3cycle): Likewise.
13249 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13250 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13251 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13252 (cortex_a15_neon_vld2_4_regs): Likewise.
13253 (cortex_a15_neon_vld3_vld4): Likewise.
13254 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13255 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13256 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13257 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13258 (cortex_a15_neon_vst3_vst4): Rename to...
13259 (cortex_a15_neon_vst4): This, update for new attributes.
13260 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13261 (cortex_a15_neon_vld3_vld4_lane): Likewise.
13262 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13263 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13264 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13265 (cortex_a15_neon_ldm_2): Likewise.
13266 (cortex_a15_neon_stm_2): Likewise.
13267 (cortex_a15_neon_mcr): Likewise.
13268 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13269 (cortex_a15_neon_mrc): Likewise.
13270 (cortex_a15_neon_mrrc): Likewise.
13271
13272 (cortex_a15_neon_abd): New.
13273 (cortex_a15_neon_abd_q): Likewise.
13274 (cortex_a15_neon_aba): Likewise.
13275 (cortex_a15_neon_aba_q): Likewise.
13276 (cortex_a15_neon_acc): Likewise.
13277 (cortex_a15_neon_acc_q): Likewise.
13278 (cortex_a15_neon_arith_basic): Likewise.
13279 (cortex_a15_neon_arith_complex): Likewise.
13280 (cortex_a15_neon_multiply): Likewise.
13281 (cortex_a15_neon_multiply_q): Likewise.
13282 (cortex_a15_neon_mla): Likewise.
13283 (cortex_a15_neon_mla_q): Likewise.
13284 (cortex_a15_neon_sat_mla_long): Likewise.
13285 (cortex_a15_neon_shift_acc): Likewise.
13286 (cortex_a15_neon_shift_imm_basic): Likewise.
13287 (cortex_a15_neon_shift_imm_complex): Likewise.
13288 (cortex_a15_neon_shift_reg_basic): Likewise.
13289 (cortex_a15_neon_shift_reg_basic_q): Likewise.
13290 (cortex_a15_neon_shift_reg_complex): Likewise.
13291 (cortex_a15_neon_shift_reg_complex_q): Likewise.
13292 (cortex_a15_neon_fp_negabs): Likewise
13293 (cortex_a15_neon_fp_arith): Likewise
13294 (cortex_a15_neon_fp_arith_q): Likewise
13295 (cortex_a15_neon_fp_cvt_int): Likewise
13296 (cortex_a15_neon_fp_cvt_int_q): Likewise
13297 (cortex_a15_neon_fp_cvt_16): Likewise
13298 (cortex_a15_neon_fp_mul): Likewise
13299 (cortex_a15_neon_fp_mul_q): Likewise
13300 (cortex_a15_neon_fp_mla): Likewise
13301 (cortex_a15_neon_fp_mla_q): Likewise
13302 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13303 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13304 (cortex_a15_neon_bitops): Likewise.
13305 (cortex_a15_neon_bitops_q): Likewise.
13306 (cortex_a15_neon_from_gp): Likewise.
13307 (cortex_a15_neon_from_gp_q): Likewise.
13308 (cortex_a15_neon_tbl3_tbl4): Likewise.
13309 (cortex_a15_neon_zip_q): Likewise.
13310 (cortex_a15_neon_to_gp): Likewise.
13311 (cortex_a15_neon_load_a): Likewise.
13312 (cortex_a15_neon_load_b): Likewise.
13313 (cortex_a15_neon_load_c): Likewise.
13314 (cortex_a15_neon_load_d): Likewise.
13315 (cortex_a15_neon_load_e): Likewise.
13316 (cortex_a15_neon_load_f): Likewise.
13317 (cortex_a15_neon_store_a): Likewise.
13318 (cortex_a15_neon_store_b): Likewise.
13319 (cortex_a15_neon_store_c): Likewise.
13320 (cortex_a15_neon_store_d): Likewise.
13321 (cortex_a15_neon_store_e): Likewise.
13322 (cortex_a15_neon_store_f): Likewise.
13323 (cortex_a15_neon_store_g): Likewise.
13324 (cortex_a15_neon_store_h): Likewise.
13325 (cortex_a15_vfp_to_from_gp): Likewise.
13326
13327 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13328
13329 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13330
13331 (cortex_a9_neon_vshl_ddd): Remove.
13332 (cortex_a9_neon_vst3_vst4): Likewise.
13333 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13334
13335 (cortex_a9_neon_bit_ops_q): New.
13336
13337 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13338 (cortex_a9_neon_int_2): Likewise.
13339 (cortex_a9_neon_int_3): Likewise.
13340 (cortex_a9_neon_int_4): Likewise.
13341 (cortex_a9_neon_int_5): Likewise.
13342 (cortex_a9_neon_vqneg_vqabs): Likewise.
13343 (cortex_a9_neon_vmov): Likewise.
13344 (cortex_a9_neon_vaba): Likewise.
13345 (cortex_a9_neon_vaba_qqq): Likewise.
13346 (cortex_a9_neon_shift_1): Likewise.
13347 (cortex_a9_neon_shift_2): Likewise.
13348 (cortex_a9_neon_shift_3): Likewise.
13349 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13350 (cortex_a9_neon_vsra_vrsra): Likewise.
13351 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13352 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13353 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13354 Likewise.
13355 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13356 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13357 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13358 Likewise.
13359 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13360 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13361 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13362 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13363 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13364 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13365 (cortex_a9_neon_fp_vsum): Likewise.
13366 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13367 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13368 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13369 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13370 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13371 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13372 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13373 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13374 (cortex_a9_neon_bp_simple): Likewise.
13375 (cortex_a9_neon_bp_2cycle): Likewise.
13376 (cortex_a9_neon_bp_3cycle): Likewise.
13377 (cortex_a9_neon_ldr): Likewise.
13378 (cortex_a9_neon_str): Likewise.
13379 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13380 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13381 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13382 (cortex_a9_neon_vld2_4_regs): Likewise.
13383 (cortex_a9_neon_vld3_vld4): Likewise.
13384 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13385 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13386 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13387 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13388 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13389 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13390 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13391 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13392 (cortex_a9_neon_mcr): Likewise.
13393 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13394 (cortex_a9_neon_mrc): Likewise.
13395 (cortex_a9_neon_mrrc): Likewise.
13396
13397 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13398
13399 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13400
13401 (cortex_a8_neon_vshl_ddd): Remove.
13402 (cortex_a8_neon_vst3_vst4): Likewise.
13403 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13404
13405 (cortex_a8_neon_bit_ops_q): New.
13406
13407 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13408 (cortex_a8_neon_int_2): Likewise..
13409 (cortex_a8_neon_int_3): Likewise.
13410 (cortex_a8_neon_int_5): Likewise.
13411 (cortex_a8_neon_vqneg_vqabs): Likewise.
13412 (cortex_a8_neon_int_4): Likewise.
13413 (cortex_a8_neon_vaba): Likewise.
13414 (cortex_a8_neon_vaba_qqq): Likewise.
13415 (cortex_a8_neon_shift_1): Likewise.
13416 (cortex_a8_neon_shift_2): Likewise.
13417 (cortex_a8_neon_shift_3): Likewise.
13418 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13419 (cortex_a8_neon_vsra_vrsra): Likewise.
13420 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13421 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13422 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13423 Likewise.
13424 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13425 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13426 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13427 Likewise.
13428 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13429 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13430 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13431 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13432 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13433 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13434 (cortex_a8_neon_fp_vsum): Likewise.
13435 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13436 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13437 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13438 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13439 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13440 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13441 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13442 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13443 (cortex_a8_neon_bp_simple): Likewise.
13444 (cortex_a8_neon_bp_2cycle): Likewise.
13445 (cortex_a8_neon_bp_3cycle): Likewise.
13446 (cortex_a8_neon_ldr): Likewise.
13447 (cortex_a8_neon_str): Likewise.
13448 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13449 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13450 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13451 (cortex_a8_neon_vld2_4_regs): Likewise.
13452 (cortex_a8_neon_vld3_vld4): Likewise.
13453 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13454 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13455 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13456 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13457 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13458 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13459 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13460 (cortex_a8_neon_mcr): Likewise.
13461 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13462 (cortex_a8_neon_mrc): Likewise.
13463 (cortex_a8_neon_mrrc): Likewise.
13464
13465 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13466
13467 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13468 (fp): New.
13469 * config/aarch64/aarch64-simd.md (neon_type): Remove.
13470 (aarch64_simd_dup<mode>): Add "type" attribute.
13471 (aarch64_dup_lane<mode>): Likewise.
13472 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13473 (*aarch64_simd_mov<mode>): Likewise.
13474 (aarch64_simd_mov_from_<mode>low): Likewise.
13475 (aarch64_simd_mov_from_<mode>high): Likewise.
13476 (orn<mode>3): Likewise.
13477 (bic<mode>3): Likewise.
13478 (add<mode>3): Likewise.
13479 (sub<mode>3): Likewise.
13480 (mul<mode>3): Likewise.
13481 (*aarch64_mul3_elt<mode>): Likewise.
13482 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13483 (*aarch64_mul3_elt_to_128df): Likewise.
13484 (*aarch64_mul3_elt_to_64v2df): Likewise.
13485 (neg<mode>2): Likewise.
13486 (abs<mode>2): Likewise.
13487 (abd<mode>_3): Likewise.
13488 (aba<mode>_3): Likewise.
13489 (fabd<mode>_3): Likewise.
13490 (*fabd_scalar<mode>3): Likewise.
13491 (and<mode>3): Likewise.
13492 (ior<mode>3): Likewise.
13493 (xor<mode>3): Likewise.
13494 (one_cmpl<mode>2): Likewise.
13495 (aarch64_simd_vec_set<mode>): Likewise.
13496 (aarch64_simd_lshr<mode>): Likewise.
13497 (aarch64_simd_ashr<mode>): Likewise.
13498 (aarch64_simd_imm_shl<mode>): Likewise.
13499 (aarch64_simd_reg_sshl<mode): Likewise.
13500 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13501 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13502 (aarch64_simd_vec_setv2di): Likewise.
13503 (aarch64_simd_vec_set<mode>): Likewise.
13504 (aarch64_mla<mode>): Likewise.
13505 (*aarch64_mla_elt<mode>): Likewise.
13506 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13507 (aarch64_mls<mode>): Likewise.
13508 (*aarch64_mls_elt<mode>): Likewise.
13509 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13510 (<su><maxmin><mode>3): Likewise.
13511 (move_lo_quad_<mode>): Likewise.
13512 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13513 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13514 (vec_pack_trunc_<mode>): Likewise.
13515 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13516 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13517 (*aarch64_<su>mlal_lo<mode>): Likewise.
13518 (*aarch64_<su>mlal_hi<mode>): Likewise.
13519 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13520 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13521 (*aarch64_<su>mlal<mode>): Likewise.
13522 (*aarch64_<su>mlsl<mode>): Likewise.
13523 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13524 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13525 (add<mode>3): Likewise.
13526 (sub<mode>3): Likewise.
13527 (mul<mode>3): Likewise.
13528 (div<mode>3): Likewise.
13529 (neg<mode>2): Likewise.
13530 (abs<mode>2): Likewise.
13531 (fma<mode>4): Likewise.
13532 (*aarch64_fma4_elt<mode>): Likewise.
13533 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13534 (*aarch64_fma4_elt_to_128df): Likewise.
13535 (*aarch64_fma4_elt_to_64v2df): Likewise.
13536 (fnma<mode>4): Likewise.
13537 (*aarch64_fnma4_elt<mode>): Likewise.
13538 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13539 (*aarch64_fnma4_elt_to_128df): Likewise.
13540 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13541 (<frint_pattern><mode>2): Likewise.
13542 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13543 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13544 (vec_unpacks_lo_v4sf): Likewise.
13545 (aarch64_float_extend_lo_v2df): Likewise.
13546 (vec_unpacks_hi_v4sf): Likewise.
13547 (aarch64_float_truncate_lo_v2sf): Likewise.
13548 (aarch64_float_truncate_hi_v4sf): Likewise.
13549 (aarch64_vmls<mode>): Likewise.
13550 (<su><maxmin><mode>3): Likewise.
13551 (<maxmin_uns><mode>3): Likewise.
13552 (reduc_<sur>plus_<mode>): Likewise.
13553 (reduc_<sur>plus_v2di): Likewise.
13554 (reduc_<sur>plus_v2si): Likewise.
13555 (reduc_<sur>plus_<mode>): Likewise.
13556 (aarch64_addpv4sf): Likewise.
13557 (clz<mode>2): Likewise.
13558 (reduc_<maxmin_uns>_<mode>): Likewise.
13559 (reduc_<maxmin_uns>_v2di): Likewise.
13560 (reduc_<maxmin_uns>_v2si): Likewise.
13561 (reduc_<maxmin_uns>_<mode>): Likewise.
13562 (reduc_<maxmin_uns>_v4sf): Likewise.
13563 (aarch64_simd_bsl<mode>_internal): Likewise.
13564 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13565 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13566 (aarch64_get_lane<mode>): Likewise.
13567 (*aarch64_combinez<mode>): Likewise.
13568 (aarch64_combine<mode>): Likewise.
13569 (aarch64_simd_combine<mode>): Likewise.
13570 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13571 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13572 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13573 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13574 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13575 (aarch64_<sur>h<addsub><mode>): Likewise.
13576 (aarch64_<sur><addsub>hn<mode>): Likewise.
13577 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13578 (aarch64_pmul<mode>): Likewise.
13579 (aarch64_<su_optab><optab><mode>): Likewise.
13580 (aarch64_<sur>qadd<mode>): Likewise.
13581 (aarch64_sqmovun<mode>): Likewise.
13582 (aarch64_<sur>qmovn<mode>): Likewise.
13583 (aarch64_s<optab><mode>): Likewise.
13584 (aarch64_sq<r>dmulh<mode>): Likewise.
13585 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13586 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13587 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13588 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13589 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13590 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13591 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13592 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13593 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13594 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13595 (aarch64_sqdmull<mode>): Likewise.
13596 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13597 (aarch64_sqdmull_n<mode>): Likewise.
13598 (aarch64_sqdmull2<mode>_internal): Likewise.
13599 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13600 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13601 (aarch64_<sur>shl<mode>): Likewise.
13602 (aarch64_<sur>q<r>shl<mode>
13603 (aarch64_<sur>shll_n<mode>): Likewise.
13604 (aarch64_<sur>shll2_n<mode>): Likewise.
13605 (aarch64_<sur>shr_n<mode>): Likewise.
13606 (aarch64_<sur>sra_n<mode>): Likewise.
13607 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13608 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13609 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13610 (aarch64_cm<optab><mode>): Likewise.
13611 (aarch64_cm<optab>di): Likewise.
13612 (aarch64_cm<optab><mode>): Likewise.
13613 (aarch64_cm<optab>di): Likewise.
13614 (aarch64_cmtst<mode>): Likewise.
13615 (aarch64_cmtstdi): Likewise.
13616 (aarch64_cm<optab><mode>): Likewise.
13617 (*aarch64_fac<optab><mode>): Likewise.
13618 (aarch64_addp<mode>): Likewise.
13619 (aarch64_addpdi): Likewise.
13620 (sqrt<mode>2): Likewise.
13621 (vec_load_lanesoi<mode>): Likewise.
13622 (vec_store_lanesoi<mode>): Likewise.
13623 (vec_load_lanesci<mode>): Likewise.
13624 (vec_store_lanesci<mode>): Likewise.
13625 (vec_load_lanesxi<mode>): Likewise.
13626 (vec_store_lanesxi<mode>): Likewise.
13627 (*aarch64_mov<mode>): Likewise.
13628 (aarch64_ld2<mode>_dreg): Likewise.
13629 (aarch64_ld2<mode>_dreg): Likewise.
13630 (aarch64_ld3<mode>_dreg): Likewise.
13631 (aarch64_ld3<mode>_dreg): Likewise.
13632 (aarch64_ld4<mode>_dreg): Likewise.
13633 (aarch64_ld4<mode>_dreg): Likewise.
13634 (aarch64_tbl1<mode>): Likewise.
13635 (aarch64_tbl2v16qi): Likewise.
13636 (aarch64_combinev16qi): Likewise.
13637 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13638 (aarch64_st2<mode>_dreg): Likewise.
13639 (aarch64_st2<mode>_dreg): Likewise.
13640 (aarch64_st3<mode>_dreg): Likewise.
13641 (aarch64_st3<mode>_dreg): Likewise.
13642 (aarch64_st4<mode>_dreg): Likewise.
13643 (aarch64_st4<mode>_dreg): Likewise.
13644 (*aarch64_simd_ld1r<mode>): Likewise.
13645 (aarch64_frecpe<mode>): Likewise.
13646 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13647 (aarch64_frecps<mode>): Likewise.
13648
13649 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13650
13651 * config/arm/iterators.md (V_elem_ch): New.
13652 (q): Likewise.
13653 (VQH_type): Likewise.
13654 * config/arm/arm.md (is_neon_type): New.
13655 (conds): Use is_neon_type.
13656 (anddi3_insn): Update type attribute.
13657 (xordi3_insn): Likewise.
13658 (one_cmpldi2): Likewise.
13659 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13660 * config/arm/neon.md (neon_mov): Update type attribute.
13661 (*movmisalign<mode>_neon_store): Likewise.
13662 (*movmisalign<mode>_neon_load): Likewise.
13663 (vec_set<mode>_internal): Likewise.
13664 (vec_set<mode>_internal): Likewise.
13665 (vec_setv2di_internal): Likewise.
13666 (vec_extract<mode>): Likewise.
13667 (vec_extract<mode>): Likewise.
13668 (vec_extractv2di): Likewise.
13669 (*add<mode>3_neon): Likewise.
13670 (adddi3_neon): Likewise.
13671 (*sub<mode>3_neon): Likewise.
13672 (subdi3_neon): Likewise.
13673 (fma<VCVTF:mode>4): Likewise.
13674 (fma<VCVTF:mode>4_intrinsic): Likewise.
13675 (*fmsub<VCVTF:mode>4): Likewise.
13676 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13677 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13678 (ior<mode>3): Likewise.
13679 (and<mode>3): Likewise.
13680 (orn<mode>3_neon): Likewise.
13681 (orndi3_neon): Likewise.
13682 (bic<mode>3_neon): Likewise.
13683 (bicdi3_neon): Likewise.
13684 (xor<mode>3): Likewise.
13685 (one_cmpl<mode>2): Likewise.
13686 (abs<mode>2): Likewise.
13687 (neg<mode>2): Likewise.
13688 (negdi2_neon): Likewise.
13689 (*umin<mode>3_neon): Likewise.
13690 (*umax<mode>3_neon): Likewise.
13691 (*smin<mode>3_neon): Likewise.
13692 (*smax<mode>3_neon): Likewise.
13693 (vashl<mode>3): Likewise.
13694 (vashr<mode>3_imm): Likewise.
13695 (vlshr<mode>3_imm): Likewise.
13696 (ashl<mode>3_signed): Likewise.
13697 (ashl<mode>3_unsigned): Likewise.
13698 (neon_load_count): Likewise.
13699 (ashldi3_neon_noclobber): Likewise.
13700 (ashldi3_neon): Likewise.
13701 (signed_shift_di3_neon): Likewise.
13702 (unsigned_shift_di3_neon): Likewise.
13703 (ashrdi3_neon_imm_noclobber): Likewise.
13704 (lshrdi3_neon_imm_noclobber): Likewise.
13705 (<shift>di3_neon): Likewise.
13706 (widen_ssum<mode>3): Likewise.
13707 (widen_usum<mode>3): Likewise.
13708 (quad_halves_<code>v4si): Likewise.
13709 (quad_halves_<code>v4sf): Likewise.
13710 (quad_halves_<code>v8hi): Likewise.
13711 (quad_halves_<code>v16qi): Likewise.
13712 (reduc_splus_v2di): Likewise.
13713 (neon_vpadd_internal<mode>): Likewise.
13714 (neon_vpsmin<mode>): Likewise.
13715 (neon_vpsmax<mode>): Likewise.
13716 (neon_vpumin<mode>): Likewise.
13717 (neon_vpumax<mode>): Likewise.
13718 (*ss_add<mode>_neon): Likewise.
13719 (*us_add<mode>_neon): Likewise.
13720 (*ss_sub<mode>_neon): Likewise.
13721 (*us_sub<mode>_neon): Likewise.
13722 (neon_vadd<mode>_unspec): Likewise.
13723 (neon_vaddl<mode>): Likewise.
13724 (neon_vaddw<mode>): Likewise.
13725 (neon_vhadd<mode>): Likewise.
13726 (neon_vqadd<mode>): Likewise.
13727 (neon_vaddhn<mode>): Likewise.
13728 (neon_vmul<mode>): Likewise.
13729 (neon_vfms<VCVTF:mode>): Likewise.
13730 (neon_vmlal<mode>): Likewise.
13731 (neon_vmls<mode>): Likewise.
13732 (neon_vmlsl<mode>): Likewise.
13733 (neon_vqdmulh<mode>): Likewise.
13734 (neon_vqdmlal<mode>): Likewise.
13735 (neon_vqdmlsl<mode>): Likewise.
13736 (neon_vmull<mode>): Likewise.
13737 (neon_vqdmull<mode>): Likewise.
13738 (neon_vsub<mode>_unspec): Likewise.
13739 (neon_vsubl<mode>): Likewise.
13740 (neon_vsubw<mode>): Likewise.
13741 (neon_vqsub<mode>): Likewise.
13742 (neon_vhsub<mode>): Likewise.
13743 (neon_vsubhn<mode>): Likewise.
13744 (neon_vceq<mode>): Likewise.
13745 (neon_vcge<mode>): Likewise.
13746 (neon_vcgeu<mode>): Likewise.
13747 (neon_vcgt<mode>): Likewise.
13748 (neon_vcgtu<mode>): Likewise.
13749 (neon_vcle<mode>): Likewise.
13750 (neon_vclt<mode>): Likewise.
13751 (neon_vcage<mode>): Likewise.
13752 (neon_vcagt<mode>): Likewise.
13753 (neon_vtst<mode>): Likewise.
13754 (neon_vabd<mode>): Likewise.
13755 (neon_vabdl<mode>): Likewise.
13756 (neon_vaba<mode>): Likewise.
13757 (neon_vabal<mode>): Likewise.
13758 (neon_vmax<mode>): Likewise.
13759 (neon_vmin<mode>): Likewise.
13760 (neon_vpaddl<mode>): Likewise.
13761 (neon_vpadal<mode>): Likewise.
13762 (neon_vpmax<mode>): Likewise.
13763 (neon_vpmin<mode>): Likewise.
13764 (neon_vrecps<mode>): Likewise.
13765 (neon_vrsqrts<mode>): Likewise.
13766 (neon_vqabs<mode>): Likewise.
13767 (neon_vqneg<mode>): Likewise.
13768 (neon_vcls<mode>): Likewise.
13769 (clz<mode>2): Likewise.
13770 (popcount<mode>2): Likewise.
13771 (neon_vrecpe<mode>): Likewise.
13772 (neon_vrsqrte<mode>): Likewise.
13773 (neon_vget_lane<mode>_sext_internal): Likewise.
13774 (neon_vget_lane<mode>_zext_internal): Likewise.
13775 (neon_vdup_n<mode>): Likewise.
13776 (neon_vdup_n<mode>): Likewise.
13777 (neon_vdup_nv2di): Likewise.
13778 (neon_vdup_lane<mode>_interal): Likewise.
13779 (*neon_vswp<mode>): Likewise.
13780 (neon_vcombine<mode>): Likewise.
13781 (float<mode><V_cvtto>2): Likewise.
13782 (floatuns<mode><V_cvtto>2): Likewise.
13783 (fix_trunc<mode><V_cvtto>2): Likewise.
13784 (fixuns_trunc<mode><V_cvtto>2
13785 (neon_vcvt<mode>): Likewise.
13786 (neon_vcvt<mode>): Likewise.
13787 (neon_vcvtv4sfv4hf): Likewise.
13788 (neon_vcvtv4hfv4sf): Likewise.
13789 (neon_vcvt_n<mode>): Likewise.
13790 (neon_vcvt_n<mode>): Likewise.
13791 (neon_vmovn<mode>): Likewise.
13792 (neon_vqmovn<mode>): Likewise.
13793 (neon_vqmovun<mode>): Likewise.
13794 (neon_vmovl<mode>): Likewise.
13795 (neon_vmul_lane<mode>): Likewise.
13796 (neon_vmul_lane<mode>): Likewise.
13797 (neon_vmull_lane<mode>): Likewise.
13798 (neon_vqdmull_lane<mode>): Likewise.
13799 (neon_vqdmulh_lane<mode>): Likewise.
13800 (neon_vqdmulh_lane<mode>): Likewise.
13801 (neon_vmla_lane<mode>): Likewise.
13802 (neon_vmla_lane<mode>): Likewise.
13803 (neon_vmlal_lane<mode>): Likewise.
13804 (neon_vqdmlal_lane<mode>): Likewise.
13805 (neon_vmls_lane<mode>): Likewise.
13806 (neon_vmls_lane<mode>): Likewise.
13807 (neon_vmlsl_lane<mode>): Likewise.
13808 (neon_vqdmlsl_lane<mode>): Likewise.
13809 (neon_vext<mode>): Likewise.
13810 (neon_vrev64<mode>): Likewise.
13811 (neon_vrev32<mode>): Likewise.
13812 (neon_vrev16<mode>): Likewise.
13813 (neon_vbsl<mode>_internal): Likewise.
13814 (neon_vshl<mode>): Likewise.
13815 (neon_vqshl<mode>): Likewise.
13816 (neon_vshr_n<mode>): Likewise.
13817 (neon_vshrn_n<mode>): Likewise.
13818 (neon_vqshrn_n<mode>): Likewise.
13819 (neon_vqshrun_n<mode>): Likewise.
13820 (neon_vshl_n<mode>): Likewise.
13821 (neon_vqshl_n<mode>): Likewise.
13822 (neon_vqshlu_n<mode>): Likewise.
13823 (neon_vshll_n<mode>): Likewise.
13824 (neon_vsra_n<mode>): Likewise.
13825 (neon_vsri_n<mode>): Likewise.
13826 (neon_vsli_n<mode>): Likewise.
13827 (neon_vtbl1v8qi): Likewise.
13828 (neon_vtbl2v8qi): Likewise.
13829 (neon_vtbl3v8qi): Likewise.
13830 (neon_vtbl4v8qi): Likewise.
13831 (neon_vtbl1v16qi): Likewise.
13832 (neon_vtbl2v16qi): Likewise.
13833 (neon_vcombinev16qi): Likewise.
13834 (neon_vtbx1v8qi): Likewise.
13835 (neon_vtbx2v8qi): Likewise.
13836 (neon_vtbx3v8qi): Likewise.
13837 (neon_vtbx4v8qi): Likewise.
13838 (*neon_vtrn<mode>_insn): Likewise.
13839 (*neon_vzip<mode>_insn): Likewise.
13840 (*neon_vuzp<mode>_insn): Likewise.
13841 (neon_vld1<mode>): Likewise.
13842 (neon_vld1_lane<mode>): Likewise.
13843 (neon_vld1_lane<mode>): Likewise.
13844 (neon_vld1_dup<mode>): Likewise.
13845 (neon_vld1_dup<mode>): Likewise.
13846 (neon_vld1_dupv2di): Likewise.
13847 (neon_vst1<mode>): Likewise.
13848 (neon_vst1_lane<mode>): Likewise.
13849 (neon_vst1_lane<mode>): Likewise.
13850 (neon_vld2<mode>): Likewise.
13851 (neon_vld2<mode>): Likewise.
13852 (neon_vld2_lane<mode>): Likewise.
13853 (neon_vld2_lane<mode>): Likewise.
13854 (neon_vld2_dup<mode>): Likewise.
13855 (neon_vst2<mode>): Likewise.
13856 (neon_vst2<mode>): Likewise.
13857 (neon_vst2_lane<mode>): Likewise.
13858 (neon_vst2_lane<mode>): Likewise.
13859 (neon_vld3<mode>): Likewise.
13860 (neon_vld3qa<mode>): Likewise.
13861 (neon_vld3qb<mode>): Likewise.
13862 (neon_vld3_lane<mode>): Likewise.
13863 (neon_vld3_lane<mode>): Likewise.
13864 (neon_vld3_dup<mode>): Likewise.
13865 (neon_vst3<mode>): Likewise.
13866 (neon_vst3qa<mode>): Likewise.
13867 (neon_vst3qb<mode>): Likewise.
13868 (neon_vst3_lane<mode>): Likewise.
13869 (neon_vst3_lane<mode>): Likewise.
13870 (neon_vld4<mode>): Likewise.
13871 (neon_vld4qa<mode>): Likewise.
13872 (neon_vld4qb<mode>): Likewise.
13873 (neon_vld4_lane<mode>): Likewise.
13874 (neon_vld4_lane<mode>): Likewise.
13875 (neon_vld4_dup<mode>): Likewise.
13876 (neon_vst4<mode>): Likewise.
13877 (neon_vst4qa<mode>): Likewise.
13878 (neon_vst4qb<mode>): Likewise.
13879 (neon_vst4_lane<mode>): Likewise.
13880 (neon_vst4_lane<mode>): Likewise.
13881 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13882 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13883 (neon_vec_<US>mult_lo_<mode>): Likewise.
13884 (neon_vec_<US>mult_hi_<mode>): Likewise.
13885 (neon_vec_<US>shiftl_<mode>): Likewise.
13886 (neon_unpack<US>_<mode>): Likewise.
13887 (neon_vec_<US>mult_<mode>): Likewise.
13888 (vec_pack_trunc_<mode>): Likewise.
13889 (neon_vec_pack_trunc_<mode>): Likewise.
13890 (neon_vabd<mode>_2): Likewise.
13891 (neon_vabd<mode>_3): Likewise.
13892
13893 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13894
13895 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13896 (load_pair): Update type attribute.
13897 (store_pair): Update type attribute.
13898 * config/aarch64/iterators.md (q): New.
13899
13900 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13901
13902 * config/arm/types.md: Add new types for Neon insns.
13903
13904 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13906 Sergey Lega <sergey.s.lega@intel.com>
13907 Anna Tikhonova <anna.tikhonova@intel.com>
13908 Ilya Tocar <ilya.tocar@intel.com>
13909 Andrey Turetskiy <andrey.turetskiy@intel.com>
13910 Ilya Verbin <ilya.verbin@intel.com>
13911 Kirill Yukhin <kirill.yukhin@intel.com>
13912 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13913
13914 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13915 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13916 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13917 (rcp14<mode>): New.
13918 (srcp14<mode>): Ditto.
13919 (rsqrt14<mode>): Ditto.
13920 (rsqrt14<mode>): Ditto.
13921 (avx512f_vmscalef<mode>): Ditto.
13922 (avx512f_scalef<mode>): Ditto.
13923 (avx512f_getexp<mode>): Ditto.
13924 (avx512f_sgetexp<mode>): Ditto.
13925 (avx512f_fixupimm<mode>): Ditto.
13926 (avx512f_sfixupimm<mode>): Ditto.
13927 (avx512f_rndscale<mode>): Ditto.
13928 (*avx512er_exp2<mode>): Ditto.
13929 (*avx512er_rcp28<mode>): Ditto.
13930 (avx512er_rsqrt28<mode>): Ditto.
13931 (avx512f_getmant<mode>): Ditto.
13932 (avx512f_getmant<mode>): Ditto.
13933 (avx512f_rndscale<mode>): Fix formatting.
13934
13935 2013-10-15 Martin Jambor <mjambor@suse.cz>
13936
13937 * ipa-utils.h (ipa_edge_within_scc): Declare.
13938 * ipa-cp.c (edge_within_scc): Moved...
13939 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13940
13941 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13943 Sergey Lega <sergey.s.lega@intel.com>
13944 Anna Tikhonova <anna.tikhonova@intel.com>
13945 Ilya Tocar <ilya.tocar@intel.com>
13946 Andrey Turetskiy <andrey.turetskiy@intel.com>
13947 Ilya Verbin <ilya.verbin@intel.com>
13948 Kirill Yukhin <kirill.yukhin@intel.com>
13949 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13950
13951 * config/i386/predicates.md (const_8_to_15_operand): New.
13952 (const_16_to_31_operand): Ditto.
13953 * config/i386/sse.md (V8FI): New.
13954 (V16FI): Ditto.
13955 (reduc_splus_v8df): Ditto.
13956 (reduc_splus_v16sf): Ditto.
13957 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13958 (vec_extract_hi_<mode>): Ditto.
13959 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13960 (vec_set_lo_<mode>): Ditto.
13961 (vec_set_hi_<mode>): Ditto.
13962 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13963 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13964 (avx512f_pshufd_1): Ditto.
13965 (avx512f_broadcast<mode>): Ditto.
13966 (avx512f_broadcast<mode>): Ditto.
13967 (define_split): Split vec_extract_lo into move.
13968 (ssequartermode): Ditto.
13969 (ssedoublemode): Extened with wider modes.
13970 (vec_extract_lo_<mode>): Ditto.
13971
13972 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13974 Sergey Lega <sergey.s.lega@intel.com>
13975 Anna Tikhonova <anna.tikhonova@intel.com>
13976 Ilya Tocar <ilya.tocar@intel.com>
13977 Andrey Turetskiy <andrey.turetskiy@intel.com>
13978 Ilya Verbin <ilya.verbin@intel.com>
13979 Kirill Yukhin <kirill.yukhin@intel.com>
13980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13981
13982 * config/i386/predicates.md (register_or_constm1_operand): New.
13983 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13984 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13985 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13986 UNSPEC_SCATTER_PREFETCH
13987 (VI48_512): New.
13988 (avx512f_ucmp<mode>3): Ditto.
13989 (avx512f_vternlog<mode>): Ditto.
13990 (avx512f_align<mode>): Ditto.
13991 (<shift_insn><mode>3): Ditto.
13992 (avx512f_<rotate>v<mode>): Ditto.
13993 (avx512f_<rotate><mode>): Ditto.
13994 (avx512f_eq<mode>3): Ditto.
13995 (avx512f_eq<mode>3_1): Ditto.
13996 (avx512f_gt<mode>3): Ditto.
13997 (avx512f_testm<mode>3): Ditto.
13998 (avx512f_testnm<mode>3): Ditto.
13999 (avx512pf_gatherpf<mode>): Ditto.
14000 (*avx512pf_gatherpf<mode>_mask): Ditto.
14001 (*avx512pf_gatherpf<mode>): Ditto.
14002 (avx512pf_scatterpf<mode>): Ditto.
14003 (*avx512pf_scatterpf<mode>_mask): Ditto.
14004 (*avx512pf_scatterpf<mode>): Ditto.
14005 (avx512f_vec_dup_gpr<mode>): Ditto.
14006 (clz<mode>2): Ditto.
14007 (conflict<mode>): Ditto.
14008 (REDUC_SMINMAX_MODE): Extened with wider modes.
14009 (reduc_<code>_<mode>): Ditto.
14010 (vlshr<mode>3): Ditto.
14011 (vashl<mode>3): Ditto.
14012
14013 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14015 Sergey Lega <sergey.s.lega@intel.com>
14016 Anna Tikhonova <anna.tikhonova@intel.com>
14017 Ilya Tocar <ilya.tocar@intel.com>
14018 Andrey Turetskiy <andrey.turetskiy@intel.com>
14019 Ilya Verbin <ilya.verbin@intel.com>
14020 Kirill Yukhin <kirill.yukhin@intel.com>
14021 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14022
14023 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14024 UNSPEC_SCATTER.
14025 (VI48F_512): New.
14026 (avx512fmaskmode): Ditto.
14027 (bcstscalarsuff): Ditto.
14028 (avx512f_blendm<mode>): Ditto.
14029 (cmp_imm_predicate): Ditto.
14030 (avx512f_cmp<mode>3): Ditto.
14031 (avx512f_vec_dup<mode>): Ditto.
14032 (avx512f_vec_dup_mem<mode>): Ditto.
14033 (avx512f_vpermi2var<mode>3): Ditto.
14034 (avx512f_vpermt2var<mode>3): Ditto.
14035 (vec_init<mode>): Ditto.
14036 (avx512f_gathersi<mode>): Ditto.
14037 (*avx512f_gathersi<mode>): Ditto.
14038 (*avx512f_gathersi<mode>_2): Ditto.
14039 (avx512f_gatherdi<mode>): Ditto.
14040 (*avx512f_gatherdi<mode>): Ditto.
14041 (*avx512f_gatherdi<mode>_2): Ditto.
14042 (avx512f_scattersi<mode>): Ditto.
14043 (*avx512f_scattersi<mode>): Ditto.
14044 (avx512f_scatterdi<mode>): Ditto.
14045 (*avx512f_scatterdi<mode>): Ditto.
14046 (sseintprefix): Extened with wider modes.
14047 (VEC_GATHER_IDXSI): Ditto.
14048 (VEC_GATHER_IDXDI): Ditto.
14049 (VEC_GATHER_SRCDI): Ditto.
14050
14051 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14052 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14053
14054 * config/arm/t-aprofile: New file.
14055 * config.gcc: Handle --with-multilib-list option.
14056
14057 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
14058
14059 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14060 the input for r2.
14061
14062 2013-10-15 Richard Biener <rguenther@suse.de>
14063
14064 * tree-loop-distribution.c (build_empty_rdg): Inline into
14065 single user.
14066 (rdg_flag_vertex): Inline into single user.
14067 (rdg_flag_vertex_and_dependent): Likewise.
14068 (build_rdg_partition_for_vertex): Remove processed bitmap.
14069 (rdg_build_partitions): Simplify.
14070
14071 2013-10-15 Richard Biener <rguenther@suse.de>
14072
14073 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14074 Restructure forwarding through conversions and copies to
14075 avoid performing copy-propagation the wrong way. Adjust
14076 recursion invocations.
14077 (forward_propagate_addr_expr): Add argument stating if we
14078 are recursing from a single-use.
14079 (ssa_forward_propagate_and_combine): Adjust.
14080
14081 2013-10-14 David Malcolm <dmalcolm@redhat.com>
14082
14083 * dumpfile.h (gcc::dump_manager): New class, to hold state
14084 relating to dumpfile management.
14085 (get_dump_file_name): Remove in favor of method of dump_manager.
14086 (dump_initialized_p): Likewise.
14087 (dump_start): Likewise.
14088 (dump_finish): Likewise.
14089 (dump_switch_p): Likewise.
14090 (dump_register): Likewise.
14091 (get_dump_file_info): Likewise.
14092 * context.c (gcc::context::context): Construct the dump_manager
14093 instance.
14094 * context.h (gcc::context::get_dumps): New.
14095 (gcc::context::m_dumps): New.
14096 * coverage.c (coverage_init): Port to dump_manager API.
14097 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14098 (extra_dump_files_in_use): Likewise.
14099 (extra_dump_files_alloced): Likewise.
14100 (gcc::dump_manager::dump_manager): New.
14101 (dump_register): Convert to...
14102 (gcc::dump_manager::dump_register): ...method, replacing
14103 function-static next_dump with m_next_dump field.
14104 (get_dump_file_info): Convert to...
14105 (gcc::dump_manager::get_dump_file_info): ...method.
14106 (get_dump_file_name): Convert to...
14107 (gcc::dump_manager::get_dump_file_name): ...method.
14108 (dump_start): Convert to...
14109 (gcc::dump_manager::dump_start): ...method.
14110 (dump_finish): Convert to...
14111 (gcc::dump_manager::dump_finish): ...method.
14112 (dump_begin): Replace body with...
14113 (gcc::dump_manager::dump_begin): ...new method.
14114 (dump_phase_enabled_p): Convert to...
14115 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14116 (dump_phase_enabled_p): Convert to...
14117 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14118 (dump_initialized_p): Convert to...
14119 (gcc::dump_manager::dump_initialized_p): ...method.
14120 (dump_flag_name): Replace body with...
14121 (gcc::dump_manager::dump_flag_name): ...new method.
14122 (dump_enable_all): Convert to...
14123 (gcc::dump_manager::dump_enable_all): ...new method.
14124 (opt_info_enable_passes): Convert to...
14125 (gcc::dump_manager::opt_info_enable_passes): ...new method.
14126 (dump_switch_p_1): Convert to...
14127 (gcc::dump_manager::dump_switch_p_1): ...new method.
14128 (dump_switch_p): Convert to...
14129 (gcc::dump_manager::dump_switch_p): ...new method.
14130 (opt_info_switch_p): Port to dump_manager API.
14131 (enable_rtl_dump_file): Likewise.
14132 * opts-global.c (handle_common_deferred_options): Port to new
14133 dump_manager API.
14134 * passes.c (pass_manager::finish_optimization_passes): Likewise.
14135 (pass_manager::register_one_dump_file): Likewise.
14136 (pass_manager::register_pass): Likewise.
14137 (pass_init_dump_file): Likewise.
14138 (pass_fini_dump_file): Likewise.
14139 * statistics.c (statistics_early_init): Likewise.
14140
14141 2013-10-14 Richard Biener <rguenther@suse.de>
14142
14143 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14144 iterative_hash_canonical_type, gimple_canonical_type_hash,
14145 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14146 gimple_register_canonical_type, print_gimple_types_stats,
14147 free_gimple_type_tables): Move to lto/lto.c
14148 (gt-gimple.h): Do not include.
14149 * gimple.h (gimple_register_canonical_type,
14150 print_gimple_types_stats, free_gimple_type_tables): Remove.
14151 * Makefile.in (GTFILES): Remove gimple.c.
14152
14153 2013-10-14 Travis Snoozy <quandary@remstate.com>
14154
14155 PR target/58716
14156 * config/msp430/msp430.c (msp430_option_override): Correct thinko
14157 scanning for msp430x targets.
14158
14159 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
14160
14161 PR bootstrap/58509
14162 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14163 (registers_ok_for_ldd_peep): Move around.
14164 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14165 * config/sparc/sparc.md (widening peepholes): Use it.
14166
14167 2013-10-14 Richard Biener <rguenther@suse.de>
14168
14169 PR middle-end/58712
14170 PR middle-end/55358
14171 * gimple.c (iterative_hash_canonical_type): Make sure to
14172 record the hash into the correct hashtable slot.
14173
14174 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
14175
14176 PR rtl-optimization/58662
14177 * combine.c (try_combine): Take into account death nodes on I2 when
14178 splitting a PARALLEL of two independent SETs. Fix dump message.
14179
14180 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
14181
14182 PR target/51244
14183 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14184 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14185 extra_objs.
14186 * config/sh/t-sh (sh_treg_combine.o): New entry.
14187 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14188 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14189 (register_sh_passes): New function. Register sh_treg_combine pass.
14190 (sh_option_override): Invoke it.
14191 (sh_canonicalize_comparison): Handle op0_preserve_value.
14192 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14193 opportunities. Canonicalize branch condition.
14194 (nott): Allow only if pseudos can be created for non-SH2A.
14195
14196 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
14197
14198 PR target/58690
14199 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14200 (ix86_expand_movmem): Replace copy_addr_to_reg with
14201 ix86_copy_addr_to_reg.
14202 (ix86_expand_setmem): Likewise.
14203
14204 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
14205
14206 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14207 provided by ix86_fp_compare_mode instead of CCFPUmode.
14208
14209 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
14210
14211 * config/aarch64/arm_neon.h
14212 (vtbx<1,3>_<psu>8): Fix register constriants.
14213
14214 2013-10-11 Jeff Law <law@redhat.com>
14215
14216 PR tree-optimization/58640
14217 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14218 threading paths that cross over two loop entry points.
14219
14220 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14221
14222 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14223 handle vector float as well.
14224 (*vsx_le_perm_load_v4si): Likewise.
14225 (*vsx_le_perm_store_v2di): Likewise.
14226 (*vsx_le_perm_store_v4si): Likewise.
14227
14228 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14229
14230 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14231 directly to circumvent subtract from splat{31} workaround.
14232 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14233 prototype.
14234 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14235 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14236 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14237 (altivec_vperm_<mode>): Convert to define_insn_and_split to
14238 separate big and little endian logic.
14239 (*altivec_vperm_<mode>_internal): New define_insn.
14240 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14241 separate big and little endian logic.
14242 (*altivec_vperm_<mode>_uns_internal): New define_insn.
14243 (vec_permv16qi): Add little endian logic.
14244
14245 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
14246
14247 * doc/extend.texi (returns_nonnull): Remove arguments.
14248
14249 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14250 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14251 Sergey Lega <sergey.s.lega@intel.com>
14252 Anna Tikhonova <anna.tikhonova@intel.com>
14253 Ilya Tocar <ilya.tocar@intel.com>
14254 Andrey Turetskiy <andrey.turetskiy@intel.com>
14255 Ilya Verbin <ilya.verbin@intel.com>
14256 Kirill Yukhin <kirill.yukhin@intel.com>
14257 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14258
14259 * config/i386/sse.md (VI48F_256_512): New.
14260 (avx2_permvar<mode>): Change to ...
14261 (<avx2_avx512f>_permvar<mode>): This.
14262
14263 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14265 Sergey Lega <sergey.s.lega@intel.com>
14266 Anna Tikhonova <anna.tikhonova@intel.com>
14267 Ilya Tocar <ilya.tocar@intel.com>
14268 Andrey Turetskiy <andrey.turetskiy@intel.com>
14269 Ilya Verbin <ilya.verbin@intel.com>
14270 Kirill Yukhin <kirill.yukhin@intel.com>
14271 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14272
14273 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14274 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14275 * config/i386/sse.md (VI4_AVX): New.
14276 (sf2simodelower): Ditto.
14277 (sse2_cvtps2dq): Change to ...
14278 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
14279
14280 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14281 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14282 Sergey Lega <sergey.s.lega@intel.com>
14283 Anna Tikhonova <anna.tikhonova@intel.com>
14284 Ilya Tocar <ilya.tocar@intel.com>
14285 Andrey Turetskiy <andrey.turetskiy@intel.com>
14286 Ilya Verbin <ilya.verbin@intel.com>
14287 Kirill Yukhin <kirill.yukhin@intel.com>
14288 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14289
14290 * config/i386/sse.md (V_512): New.
14291 (VI_512): Ditto.
14292 (vcond<V_512:mode><VF_512:mode>): Ditto.
14293 (vcond<V_512:mode><VI_512:mode>): Ditto.
14294 (vcondu<V_512:mode><VI_512:mode>): Ditto.
14295
14296 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14297 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14298 Sergey Lega <sergey.s.lega@intel.com>
14299 Anna Tikhonova <anna.tikhonova@intel.com>
14300 Ilya Tocar <ilya.tocar@intel.com>
14301 Andrey Turetskiy <andrey.turetskiy@intel.com>
14302 Ilya Verbin <ilya.verbin@intel.com>
14303 Kirill Yukhin <kirill.yukhin@intel.com>
14304 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14305
14306 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14307 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14308 (FMAMODE): Ditto.
14309 (fma<mode>4): Removed condition.
14310 (fms<mode>4): Ditto.
14311 (fnma<mode>4): Ditto.
14312 (fnms<mode>4): Ditto.
14313 (fma4i_fmadd_<mode>): Ditto.
14314 (*fma_fmadd_<mode>): Ditto.
14315 (*fma_fmsub_<mode>): Ditto.
14316 (*fma_fnmadd_<mode>): Ditto.
14317 (*fma_fnmsub_<mode>): Ditto.
14318 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14319 (*fma_fmaddsub_<mode>): Ditto.
14320 (*fma_fmsubadd_<mode>): Ditto.
14321 (*fmai_fmadd_<mode>): Ditto.
14322 (*fmai_fmsub_<mode>): Ditto.
14323 (*fmai_fnmadd_<mode>): Ditto.
14324 (*fmai_fnmsub_<mode>): Ditto.
14325
14326 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14328 Sergey Lega <sergey.s.lega@intel.com>
14329 Anna Tikhonova <anna.tikhonova@intel.com>
14330 Ilya Tocar <ilya.tocar@intel.com>
14331 Andrey Turetskiy <andrey.turetskiy@intel.com>
14332 Ilya Verbin <ilya.verbin@intel.com>
14333 Kirill Yukhin <kirill.yukhin@intel.com>
14334 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14335
14336 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14337 (VI124_256): Changed to ...
14338 (VI124_256_48_512): This.
14339 (ssepackmode): Extended with wider modes.
14340 (<code><mode>3): Changed iterator.
14341 (*avx2_<code><mode>3): Ditto.
14342 (vec_pack_trunc_<mode>): Ditto.
14343
14344 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14345 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14346 Sergey Lega <sergey.s.lega@intel.com>
14347 Anna Tikhonova <anna.tikhonova@intel.com>
14348 Ilya Tocar <ilya.tocar@intel.com>
14349 Andrey Turetskiy <andrey.turetskiy@intel.com>
14350 Ilya Verbin <ilya.verbin@intel.com>
14351 Kirill Yukhin <kirill.yukhin@intel.com>
14352 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14353
14354 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14355 (VI8F_256_512): Ditto.
14356 (abs<mode>2): Changed iterator.
14357 (avx2_perm<mode>): Changed to ...
14358 (<avx2_avx512f>_perm<mode>): This.
14359 (avx2_perm<mode>_1): Changed to ...
14360 (<avx2_avx512f>_perm<mode>_1): This.
14361
14362 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14363 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14364 Sergey Lega <sergey.s.lega@intel.com>
14365 Anna Tikhonova <anna.tikhonova@intel.com>
14366 Ilya Tocar <ilya.tocar@intel.com>
14367 Andrey Turetskiy <andrey.turetskiy@intel.com>
14368 Ilya Verbin <ilya.verbin@intel.com>
14369 Kirill Yukhin <kirill.yukhin@intel.com>
14370 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14371
14372 * config/i386/sse.md (VI48_AVX512F): New.
14373 (VI48_AVX2): Changed to ...
14374 (VI48_AVX2_48_AVX512F): This.
14375 (avx2_ashrv<mode>): Changed to ...
14376 (<avx2_avx512f>_ashrv<mode>): This.
14377 (avx2_<shift_insn>v<mode>): Changed to ...
14378 (<avx2_avx512f>_<shift_insn>v<mode>): This.
14379
14380 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14382 Sergey Lega <sergey.s.lega@intel.com>
14383 Anna Tikhonova <anna.tikhonova@intel.com>
14384 Ilya Tocar <ilya.tocar@intel.com>
14385 Andrey Turetskiy <andrey.turetskiy@intel.com>
14386 Ilya Verbin <ilya.verbin@intel.com>
14387 Kirill Yukhin <kirill.yukhin@intel.com>
14388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14389
14390 * config/i386/sse.md (VI4_AVX512F): New.
14391 (VI8_AVX2_AVX512F): Ditto.
14392 (mul<mode>3): Extended with wider modes.
14393 (*<sse4_1_avx2>_mul<mode>3): Ditto.
14394 (mul<mode>3): Ditto.
14395 (vec_widen_<s>mult_odd_<mode>): Ditto.
14396
14397 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14399 Sergey Lega <sergey.s.lega@intel.com>
14400 Anna Tikhonova <anna.tikhonova@intel.com>
14401 Ilya Tocar <ilya.tocar@intel.com>
14402 Andrey Turetskiy <andrey.turetskiy@intel.com>
14403 Ilya Verbin <ilya.verbin@intel.com>
14404 Kirill Yukhin <kirill.yukhin@intel.com>
14405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14406
14407 * config/i386/sse.md (VI2_AVX512F): New.
14408 (VI124_AVX512F): Ditto.
14409 (sseunpackmode): Extended with wider modes.
14410 (sseunpackfltmode): Ditto.
14411 (vec_unpacks_float_hi_<mode>): Ditto.
14412 (vec_unpacks_float_lo_<mode>): Ditto.
14413 (vec_unpacku_float_hi_<mode>): Ditto.
14414 (vec_unpacku_float_lo_<mode>): Ditto.
14415 (vec_unpacks_lo_<mode>): Ditto.
14416 (vec_unpacks_hi_<mode>): Ditto.
14417 (vec_unpacku_lo_<mode>): Ditto.
14418 (vec_unpacku_hi_<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.md (multdiv): New.
14431 (multdiv_mnemonic): Ditto.
14432 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14433 (<sse>_vm<multdiv_mnemonic><mode>3): This.
14434 (<sse>_vmdiv<mode>3): Removed.
14435
14436 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14438 Sergey Lega <sergey.s.lega@intel.com>
14439 Anna Tikhonova <anna.tikhonova@intel.com>
14440 Ilya Tocar <ilya.tocar@intel.com>
14441 Andrey Turetskiy <andrey.turetskiy@intel.com>
14442 Ilya Verbin <ilya.verbin@intel.com>
14443 Kirill Yukhin <kirill.yukhin@intel.com>
14444 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14445
14446 * config/i386/sse.md (V): Extended with wider modes.
14447 (VF2): Ditto.
14448 (ssehalfvecmode): Ditto.
14449 (i128): Ditto.
14450 (ssepackfltmode): Ditto.
14451 (avx_vec_concat<mode>): Ditto.
14452 (V_256_512): New iterator.
14453 (VF2_512_256): Ditto.
14454 (si2dfmode): New attribute.
14455 (si2dfmodelower): Ditto.
14456 (sf2dfmode): Ditto.
14457 (concat_tg_mode): Ditto.
14458 (floatv4siv4df2): Changed to ...
14459 (float<si2dfmodelower><mode>2): This.
14460 (avx_cvtps2pd256): Changed to ...
14461 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14462 (vec_pack_trunc_v4df): Changed to ...
14463 (vec_pack_trunc_<mode>): This.
14464 (avx_vpermil<mode>): Changed to ...
14465 (<sse2_avx_avx512f>_vpermil<mode>): This.
14466 (<fixsuffix>fix_truncv8dfv8si2): New.
14467 (vec_pack_sfix_trunc_v8df): Ditto.
14468 (avx512f_rndscale<mode>): Ditto.
14469 (avx512f_roundpd512): Ditto.
14470 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14471
14472 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14474 Sergey Lega <sergey.s.lega@intel.com>
14475 Anna Tikhonova <anna.tikhonova@intel.com>
14476 Ilya Tocar <ilya.tocar@intel.com>
14477 Andrey Turetskiy <andrey.turetskiy@intel.com>
14478 Ilya Verbin <ilya.verbin@intel.com>
14479 Kirill Yukhin <kirill.yukhin@intel.com>
14480 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14481
14482 * config/i386/i386.md (any_fix): New iterator.
14483 (fixsuffix): New attribute.
14484 * config/i386/sse.md (VF1): Extened with wider modes.
14485 (VI): Ditto.
14486 (VI_AVX2): Ditto.
14487 (VI8): Ditto.
14488 (sseintvecmodelower): Ditto.
14489 (ssescalarmode): Ditto.
14490 (ssescalarnum): Ditto.
14491 (VF1_128_256): New.
14492 (ssexmmmode): Ditto.
14493 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14494 (<sse>_rcp<mode>2): Change iterator.
14495 (rsqrt<mode>2): Ditto.
14496 (<sse>_rsqrt<mode>2): Ditto.
14497 (avx2_vec_dup<mode>): Ditto.
14498 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14499 (round<mode>2_sfix): Ditto.
14500 (avx2_pbroadcast<mode>): Ditto.
14501 (*andnot<mode>3): Handle XI mode.
14502 (*<code><mode>3): Ditto.
14503 (AVXTOSSEMODE): Removed.
14504 (avx_vpermil<mode>): Changed to ...
14505 (<sse2_avx_avx512f>_vpermil<mode>): This.
14506
14507 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14508 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14509 Sergey Lega <sergey.s.lega@intel.com>
14510 Anna Tikhonova <anna.tikhonova@intel.com>
14511 Ilya Tocar <ilya.tocar@intel.com>
14512 Andrey Turetskiy <andrey.turetskiy@intel.com>
14513 Ilya Verbin <ilya.verbin@intel.com>
14514 Kirill Yukhin <kirill.yukhin@intel.com>
14515 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14516
14517 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14518 (<sse>_comi): Ditto.
14519 (<sse>_ucomi): Ditto.
14520 (sse_cvtss2siq_2): Ditto.
14521 (sse2_cvtsd2si): Ditto.
14522 (sse2_cvtsd2siq): Ditto.
14523 (sse2_cvttsd2si): Ditto.
14524 (sse2_cvttsd2siq): Ditto.
14525 (<shift_insn><mode>3): Ditto.
14526 (sse2_cvtsi2sdq): Update constraint and prefix.
14527 (sse_cvtsi2ss): Update prefix.
14528 (sse_cvtsi2ssq): Ditto.
14529
14530 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14531
14532 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14533 ignore internal calls.
14534
14535 2013-10-11 Richard Biener <rguenther@suse.de>
14536
14537 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14538 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14539 TREE_OVERFLOW is set.
14540
14541 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14542
14543 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14544
14545 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14546 * gimple.h: Likewise.
14547
14548 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14549
14550 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14551 macros.
14552
14553 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14554
14555 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14556 * configure: Regenerate.
14557
14558 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14559
14560 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14561 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14562 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14563 similarly pp_right_paren.
14564 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14565 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14566 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14567 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14568 clauses.
14569 (omp_declare_simd_clauses_equal,
14570 omp_remove_redundant_declare_simd_attrs): New functions.
14571 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14572 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14573 * tree.h (OMP_LOOP_CHECK): Define.
14574 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14575 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14576 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14577 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14578 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14579 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14580 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14581 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14582 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14583 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14584 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14585 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14586 (omp_remove_redundant_declare_simd_attrs): New prototype.
14587 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14588 GIMPLE_OMP_TEAMS): New codes.
14589 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14590 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14591 fields.
14592 (target_nesting_level): New variable.
14593 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14594 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14595 for collapse > 1 static schedule unless ordered.
14596 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14597 (determine_parallel_type): Adjust get_ws_args_for caller.
14598 (install_var_field): Handle mask & 4 for double indirection.
14599 (scan_sharing_clauses): Ignore shared clause on teams construct.
14600 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14601 (create_omp_child_function): If inside target or declare target
14602 constructs, set "omp declare target" attribute on the child function.
14603 (find_combined_for): New function.
14604 (scan_omp_parallel): Handle combined loops.
14605 (scan_omp_target, scan_omp_teams): New functions.
14606 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14607 restrictions and set ctx->cancellable for cancellable constructs.
14608 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14609 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14610 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14611 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14612 (omp_clause_aligned_alignment): New function.
14613 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14614 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14615 on teams constructs. Handle user defined reductions and new
14616 OpenMP 4.0 clauses.
14617 (lower_reduction_clauses): Don't set placeholder to address of ref
14618 if it has already the right type.
14619 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14620 (expand_parallel_call): Use the new non-_start suffixed builtins,
14621 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14622 and GOMP_parallel_end after the call.
14623 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14624 (expand_omp_for_init_counts): Handle combined loops.
14625 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14626 loops.
14627 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14628 end of cancellable loops.
14629 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14630 Likewise. Handle collapse > 1 loops.
14631 (expand_omp_simd): Handle combined loops.
14632 (expand_omp_for): Add inner_stmt argument, adjust callers of
14633 expand_omp_for* functions, use expand_omp_for_static*chunk even
14634 for collapse > 1 unless ordered.
14635 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14636 of cancellable sections.
14637 (expand_omp_single): Remove need_barrier variable, just rely on
14638 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14639 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14640 (expand_omp_atomic_load, expand_omp_atomic_store,
14641 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14642 (expand_omp_target): New function.
14643 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14644 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14645 (build_omp_regions_1): Immediately close region for
14646 GF_OMP_TARGET_KIND_UPDATE.
14647 (maybe_add_implicit_barrier_cancel): New function.
14648 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14649 cancellation.
14650 (lower_omp_single): Likewise. Add clobber after the barrier.
14651 (lower_omp_taskgroup): New function.
14652 (lower_omp_for): Handle combined loops. Adjust
14653 lower_rec_input_clauses caller. Handle cancellation.
14654 (lower_depend_clauses): New function.
14655 (lower_omp_taskreg): Lower depend clauses. Adjust
14656 lower_rec_input_clauses caller. Add clobber after the call. Handle
14657 cancellation.
14658 (lower_omp_target, lower_omp_teams): New functions.
14659 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14660 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14661 and GOMP_cancellation_point calls.
14662 (lower_omp): Fold stmts inside of target region.
14663 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14664 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14665 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14666 (BT_FN_VOID_OMPFN_PTR_UINT,
14667 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14668 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14669 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14670 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14671 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14672 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14673 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14674 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14675 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14676 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14677 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14678 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14679 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14680 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14681 BUILT_IN_GOMP_PARALLEL_END.
14682 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14683 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14684 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14685 GF_OMP_FOR_KIND_DISTRIBUTE.
14686 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14687 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14688 (dump_gimple_omp_return): Print lhs if it has any.
14689 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14690 gimple_omp_atomic_seq_cst_p.
14691 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14692 and GIMPLE_OMP_TEAMS.
14693 * langhooks.c (lhd_omp_mappable_type): New function.
14694 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14695 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14696 hook.
14697 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14698 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14699 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14700 (struct gimplify_omp_ctx): Add combined_loop field.
14701 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14702 on stmts inside of target region.
14703 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14704 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14705 ORT_TARGET and ORT_TARGET_DATA.
14706 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14707 Handle GOVD_MAP.
14708 (omp_notice_threadprivate_variable): Complain about threadprivate
14709 variables in target region.
14710 (omp_notice_variable): Complain about vars with non-mappable type
14711 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14712 (omp_check_private): Ignore ORT_TARGET* regions.
14713 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14714 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14715 (find_combined_omp_for): New function.
14716 (gimplify_omp_for): Handle gimplification of combined loops.
14717 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14718 OMP_TEAMS.
14719 (gimplify_omp_target_update): New function.
14720 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14721 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14722 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14723 (gimplify_body): If fndecl has "omp declare target" attribute, add
14724 implicit ORT_TARGET context around it.
14725 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14726 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14727 * tree-nested.c (convert_nonlocal_reference_stmt,
14728 convert_local_reference_stmt, convert_gimple_call): Handle
14729 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14730 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14731 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14732 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14733 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14734 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14735 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14736 BUILT_IN_GOMP_LOOP_END_CANCEL,
14737 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14738 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14739 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14740 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14741 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14742 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14743 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14744 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14745 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14746 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14747 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14748 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14749 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14750 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14751 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14752 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14753 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14754 gimple_build_omp_teams): New functions.
14755 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14756 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14757 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14758 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14759 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14760 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14761 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14762 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14763 GF_OMP_ATOMIC_SEQ_CST): New.
14764 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14765 gimple_build_omp_teams): New prototypes.
14766 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14767 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14768 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14769 GIMPLE_OMP_SINGLE as end of range.
14770 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14771 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14772 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14773 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14774 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14775 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14776 gimple_omp_target_kind, gimple_omp_target_set_kind,
14777 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14778 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14779 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14780 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14781 gimple_omp_teams_set_clauses): New inlines.
14782 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14783 and GIMPLE_OMP_TASKGROUP.
14784 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14785 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14786 enum omp_clause_proc_bind_kind): New.
14787 (union omp_clause_subcode): Add depend_kind, map_kind and
14788 proc_bind_kind fields.
14789 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14790 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14791 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14792 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14793 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14794
14795 2013-10-10 Teresa Johnson <tejohnson@google.com>
14796
14797 * predict.c (tree_estimate_probability): Add new parameter
14798 for estimate_bb_frequencies.
14799 (estimate_bb_frequencies): Add new parameter to force estimation.
14800 (rebuild_frequencies): When max frequency in function is small,
14801 recompute counts from frequencies.
14802 * predict.h (estimate_bb_frequencies): New parameter.
14803
14804 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14805
14806 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14807 optimizations are disabled.
14808
14809 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14810
14811 * coverage.c (coverage_finish): Fix leak of da_file_name.
14812
14813 2013-10-10 Jan Hubicka <jh@suse.cz>
14814
14815 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14816 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14817 Bobcat and generic.
14818
14819 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14820
14821 PR middle-end/58670
14822 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14823 if any labels are in FALLTHRU_BB, use a special label emitted
14824 immediately after the asm goto insn rather than label_rtx
14825 of the LABEL_DECL.
14826 (expand_asm_stmt): Adjust caller.
14827 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14828 edge if the last insn in predecessor is a jump with single successor,
14829 but it isn't simplejump_p.
14830
14831 2013-10-10 Richard Biener <rguenther@suse.de>
14832
14833 PR tree-optimization/58656
14834 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14835
14836 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14837
14838 * gimplify.c: Include expr.h and tm_p.h for targets with special
14839 va-arg padding requirements.
14840
14841 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14842
14843 * tree-flow.h: Move some prototypes to gimple.h.
14844 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14845 * gimple.h: Relocate some prototypes from tree-flow.h
14846 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14847 Move to gimplify.c.
14848 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14849 (build_va_arg_indirect_ref): Relocate and make static.
14850 (std_gimplify_va_arg_expr): Relocate here.
14851 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14852 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14853
14854 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14855
14856 * doc/md.texi: Document the mnemonic attribute.
14857
14858 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14859
14860 PR target/57377
14861 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14862 (set_attr_alternative x ...) when searching for user defined
14863 mnemonic attribute.
14864
14865 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14866
14867 * config/alpha/alpha.c: Add gimple-ssa.h to include list.
14868
14869 2013-10-09 Easwaran Raman <eraman@google.com>
14870
14871 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14872 * cfgexpand.c (defer_stack_allocation): ...use here
14873 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14874
14875 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14876
14877 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14878 (operand_equal_for_value_replacement): New function, extracted from
14879 value_replacement and enhanced to catch more cases.
14880 (value_replacement): Use operand_equal_for_value_replacement.
14881
14882 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14883
14884 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14885 get_max_loop_iterations.
14886
14887 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14888
14889 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14890 Place comment above function.
14891
14892 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14893
14894 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14895 are not related to tree-cfg.c.
14896 * tree-ssa-address.h: New file. Relocate prototypes.
14897 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14898 (addr_for_mem_ref): New. Combine call to get_address_description and
14899 return addr_for_mem_ref.
14900 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14901 * tree-ssa-live.h: Adjust prototypes.
14902 * passes.c: Include tree-ssa-live.h.
14903 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14904 * graphite.c (graphite_transform_loops): Make static.
14905 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14906 make_pass_graphite, pass_data_graphite_transforms,
14907 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14908 * ipa-pure-const.c (warn_function_noreturn): Make static.
14909 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14910 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14911 Relocate from tree-cfg.c
14912 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14913 static.
14914 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14915 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14916 Move to ipa-pure-const.c.
14917 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14918 Relocate from tree-optimize.c.
14919 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14920 make_pass_fixup_cfg): Move to tree-cfg.c.
14921 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14922 Relocate some prototypes.
14923 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14924 * tree-dump.c (dump_function_to_file): Remove prototype.
14925 Add tree-flow.h to the include file.
14926 * tree-dump.h: Remove prototype.
14927 * tree-parloops.h: New File. Add prototypes.
14928 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14929 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14930 from tree-ssa-loop.c.
14931 * tree-predcom.c (run_tree_predictive_commoning,
14932 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14933 Relocate here from tree-ssa-loop.c.
14934 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14935 ssa_name_values.release ().
14936 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14937 (ssa_name_values): Relocate from tree-flow.h.
14938 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14939 * tree-ssa-loop.c (run_tree_predictive_commoning,
14940 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14941 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14942 make_pass_graphite, pass_data_graphite_transforms,
14943 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14944 tree_parallelize_loops, pass_data_parallelize_loops,
14945 make_pass_parallelize_loops): Move to other files.
14946 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14947 moved here.
14948 * tree.h: Remove prototypes from tree-address.c.
14949
14950 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14951
14952 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14953 (struct int_tree_map): Move to tree-hasher.h
14954 (SCALE, LABEL, PERCENT): Move to gimple.h
14955 * tree-flow-inline.h: Delete. Move functions to other files.
14956 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14957 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14958 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14959 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14960 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14961 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14962 * tree-hasher.h: Don't include tree-flow.h.
14963 (struct int_tree_map): Relocate from tree-flow.h.
14964 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14965 tree-flow-inline.h and make static.
14966 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14967 tree-flow-inline.h.
14968 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14969 tree-flow-inline.h and make static.
14970 * tree.h (is_global_var, may_be_aliased): Relocate from
14971 tree-flow-inline.h.
14972 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14973 * value-prof.c: No longer include tree-flow-inline.h.
14974 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14975
14976 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14977
14978 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14979 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14980 (enum move_pos): Move to tree-ssa-loop-im.h
14981 * cfgloop.h: Move some prototypes.
14982 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14983 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14984 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14985 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14986 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14987 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14988 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14989 (enum move_pos): Relocate here.
14990 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14991 tree-ssa-loop.c.
14992 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14993 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14994 make_pass_lim): Relocate here from tree-ssa-loop.c.
14995 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14996 tree-ssa-loop.c.
14997 (loop_edge_to_cancel, unloop_loops): Make static.
14998 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14999 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
15000 (tree_complete_unroll, gate_tree_complete_unroll,
15001 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
15002 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15003 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
15004 * tree-ssa-loop-ivopts.c: Remove local prototypes.
15005 (stmt_invariant_in_loop_p): Remove unused function.
15006 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
15007 * tree-ssa-loop-manip.h: New file. Add prototypes.
15008 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
15009 (gcov_type_to_double_int): Move to cfgloop.h.
15010 (double_int_cmp, bound_index,
15011 estimate_numbers_of_iterations_loop): Make static.
15012 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
15013 (max_loop_iterations): Factor out get_max_loop_iterations.
15014 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
15015 cfgloop.c.
15016 * tree-ssa-loop-niter.h: New file. Add prototypes.
15017 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
15018 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
15019 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
15020 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15021 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15022 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15023 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15024 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15025 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15026 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15027 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15028 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15029 pass_data_complete_unroll, make_pass_complete_unroll,
15030 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15031 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15032 tree-ssa-loop-ivcanon.c.
15033 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15034 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15035 tree-ssa-loop-prefetch.c.
15036 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15037 tree-ssa-loop-im.c.
15038 (get_lsm_tmp_name): Relocate and add suffix parameter.
15039 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15040 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15041 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15042 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15043 (get_estimated_loop_iterations): Factor out accessor from
15044 estimated_loop_iterations in tree-ssa-loop-niter.c.
15045 (get_max_loop_iterations): Factor out accessor from
15046 _max_loop_iterations in tree-ssa-niter.c.
15047 * loop-unroll.c (decide_unroll_constant_iterations,
15048 decide_unroll_runtime_iterations, decide_peel_simple,
15049 decide_unroll_stupid): Use new get_* accessors.
15050
15051 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
15052
15053 PR tree-optimization/20318
15054 * doc/extend.texi (returns_nonnull): New function attribute.
15055 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15056 attribute.
15057 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15058 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15059
15060 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
15061
15062 PR middle-end/58570
15063 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15064 false if both components are bitfields.
15065
15066 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15067
15068 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15069 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15070 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15071 * config/aarch64/aarch64.h
15072 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15073 * config/aarch64/aarch64-simd-builtins.def
15074 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15075
15076 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15077
15078 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15079
15080 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15081
15082 * config/aarch64/arm_neon.h (vdiv_f64): Added.
15083
15084 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15085
15086 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15087 (vneg_f64): New intrinsic.
15088 (vneg_s8): Asm replaced with C.
15089 (vneg_s16): Likewise.
15090 (vneg_s32): Likewise.
15091 (vneg_s64): New intrinsic.
15092 (vnegq_f32): Asm replaced with C.
15093 (vnegq_f64): Likewise.
15094 (vnegq_s8): Likewise.
15095 (vnegq_s16): Likewise.
15096 (vnegq_s32): Likewise.
15097 (vnegq_s64): Likewise.
15098
15099 2013-10-09 Renlin Li <Renlin.Li@arm.com>
15100
15101 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15102
15103 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15104
15105 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15106 packed stack special handling.
15107 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15108 back to fixed stack slots for FPRs saved due to stdarg.
15109
15110 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15111
15112 * config/s390/s390.c (s390_frame_info): Restructure function.
15113
15114 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15115
15116 * config/s390/s390.c (struct s390_frame_layout): New field
15117 gpr_save_slots.
15118 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15119 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15120 regs_ever_clobbered to char*.
15121 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15122 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
15123 (s390_register_info): Enable FPR save slots. Move/Copy some
15124 functionality into ...
15125 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15126 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15127 function.
15128 (s390_frame_info): Do gpr slot allocation here now. stdarg does
15129 not imply a stack frame.
15130 (s390_init_frame_layout): Remove variable clobbered_regs.
15131 (s390_update_register_info): Remove function.
15132 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15133 cannot be used for register renaming.
15134 (s390_hard_regno_scratch_ok): New function.
15135 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15136 (s390_initial_elimination_offset): Change offset calculation of
15137 the return address pointer.
15138 (save_gprs): Deal with only r6 being saved from the call-saved regs.
15139 (restore_gprs): Set frame related flag.
15140 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15141 (s390_emit_prologue): Call s390_register_info instead of
15142 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
15143 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15144 (s390_optimize_prologue): Call s390_optimize_register_info.
15145 Try to remove also FPR slot save/restore INSNs. Remove frame
15146 related flags from restore INSNs.
15147
15148 2013-10-08 DJ Delorie <dj@redhat.com>
15149
15150 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15151 (movhi): Likewise.
15152
15153 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15154 avoid conflict with the MI use of %c.
15155 * config/rl78/rl78-real.md: change %c to %C throughout.
15156 * config/rl78/rl78-virt.md: Likewise.
15157
15158 2013-10-08 Jan Hubicka <jh@suse.cz>
15159
15160 * config/i386/i386.c (ix86_option_override_internal): Switch
15161 to SSE math for -ffast-math when target ISA supports SSE2.
15162
15163 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
15164
15165 * tree-flow.h: Remove some prototypes.
15166 * tree.h: Remove some protypes, add a couple.
15167 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15168 using_eh_for_cleanups_p): Add interface routines for front ends.
15169 * tree-eh.h: New file. Add protoptyes.
15170 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15171 (add_stmt_to_eh_lp_fn): Make static.
15172 (lower_try_finally): Use new using_eh_for_cleanups_p.
15173 * emit-rtl.c: Include tree-eh.h.
15174 * gimple.h: Include tree-eh.h.
15175
15176 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
15177
15178 PR tree-optimization/58480
15179 * tree-vrp.c (infer_nonnull_range): New function.
15180 (infer_value_range): Call infer_nonnull_range.
15181
15182 2013-10-08 Dehao Chen <dehao@google.com>
15183
15184 PR tree-optimization/58619
15185 * tree-inline.c (copy_phis_for_bb): Combine location data
15186 only if non-null.
15187
15188 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15189
15190 PR target/58423
15191 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15192 RTX_FRAME_RELATED_P on INSN.
15193
15194 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15195
15196 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15197 (altivec_expand_vec_perm_const): Call it.
15198
15199 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15200
15201 * config/rs6000/vector.md (mov<mode>): Emit permuted move
15202 sequences for LE VSX loads and stores at expand time.
15203 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15204 prototype.
15205 * config/rs6000/rs6000.c (rs6000_const_vec): New.
15206 (rs6000_gen_le_vsx_permute): New.
15207 (rs6000_gen_le_vsx_load): New.
15208 (rs6000_gen_le_vsx_store): New.
15209 (rs6000_gen_le_vsx_move): New.
15210 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15211 (*vsx_le_perm_load_v4si): New.
15212 (*vsx_le_perm_load_v8hi): New.
15213 (*vsx_le_perm_load_v16qi): New.
15214 (*vsx_le_perm_store_v2di): New.
15215 (*vsx_le_perm_store_v4si): New.
15216 (*vsx_le_perm_store_v8hi): New.
15217 (*vsx_le_perm_store_v16qi): New.
15218 (*vsx_xxpermdi2_le_<mode>): New.
15219 (*vsx_xxpermdi4_le_<mode>): New.
15220 (*vsx_xxpermdi8_le_V8HI): New.
15221 (*vsx_xxpermdi16_le_V16QI): New.
15222 (*vsx_lxvd2x2_le_<mode>): New.
15223 (*vsx_lxvd2x4_le_<mode>): New.
15224 (*vsx_lxvd2x8_le_V8HI): New.
15225 (*vsx_lxvd2x16_le_V16QI): New.
15226 (*vsx_stxvd2x2_le_<mode>): New.
15227 (*vsx_stxvd2x4_le_<mode>): New.
15228 (*vsx_stxvd2x8_le_V8HI): New.
15229 (*vsx_stxvd2x16_le_V16QI): New.
15230
15231 2013-10-07 Renlin Li <Renlin.Li@arm.com>
15232
15233 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15234
15235 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15236
15237 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15238 loop to work also for 31bit ABI.
15239 Save the stack pointer for frame_size > 0.
15240
15241 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15242
15243 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15244 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15245 constraint letters from expanders.
15246 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15247 retry count to general_operand.
15248 ("tabort"): Give operand 0 a mode.
15249 ("tabort_1"): Add mode and constraint letter for operand 0.
15250 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15251
15252 2013-10-04 Jeff Law <law@redhat.com>
15253
15254 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15255
15256 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15257 out of ...
15258 (thread_across_edge): Here. Call it.
15259
15260 2013-10-04 Cary Coutant <ccoutant@google.com>
15261
15262 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15263 discarding a location list expression (or a piece of one).
15264
15265 2013-10-03 Jan Hubicka <jh@suse.cz>
15266
15267 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15268 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
15269 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15270
15271 2013-10-03 Jan Hubicka <jh@suse.cz>
15272
15273 * config/i386/i386.c (ix86_option_override_internal): Do not enable
15274 accumulate-outgoing-args when producing unwind info.
15275
15276 2013-10-03 Wei Mi <wmi@google.com>
15277
15278 * lra-constraints.c (insert_move_for_subreg): New function
15279 extracted from simplify_operand_subreg.
15280 (simplify_operand_subreg): Add reload for paradoxical subreg.
15281
15282 2013-10-03 Rong Xu <xur@google.com>
15283
15284 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15285 the candidate of builtin_expect such that we should fix the
15286 size/time estimation.
15287 (estimate_function_body_sizes): Do the acutally size/time fix-up
15288 for builtin_expect.
15289
15290 2013-10-03 Rong Xu <xur@google.com>
15291
15292 * predict.c (tree_predict_by_opcode): Get the probability
15293 for builtin_expect from param builtin_expect_probability.
15294 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15295 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15296 * doc/invoke.texi: Add documentation for builtin-expect-probability.
15297
15298 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
15299
15300 PR c++/19476
15301 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15302 * calls.c (alloca_call_p): Use get_callee_fndecl.
15303 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15304 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15305 Likewise.
15306 (vrp_visit_stmt): Remove duplicated code.
15307
15308 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15309
15310 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15311 ceildf2, btruncdf2, instead of vsx_* name.
15312
15313 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15314 iterators to only do V2DF and V4SF here. Move the DF code to
15315 rs6000.md where it is combined with SF mode. Replace <VSv> with
15316 just 'v' since only vector operations are handled with these insns
15317 after moving the DF support to rs6000.md.
15318 (vsx_sub<mode>3): Likewise.
15319 (vsx_mul<mode>3): Likewise.
15320 (vsx_div<mode>3): Likewise.
15321 (vsx_fre<mode>2): Likewise.
15322 (vsx_neg<mode>2): Likewise.
15323 (vsx_abs<mode>2): Likewise.
15324 (vsx_nabs<mode>2): Likewise.
15325 (vsx_smax<mode>3): Likewise.
15326 (vsx_smin<mode>3): Likewise.
15327 (vsx_sqrt<mode>2): Likewise.
15328 (vsx_rsqrte<mode>2): Likewise.
15329 (vsx_fms<mode>4): Likewise.
15330 (vsx_nfma<mode>4): Likewise.
15331 (vsx_copysign<mode>3): Likewise.
15332 (vsx_btrunc<mode>2): Likewise.
15333 (vsx_floor<mode>2): Likewise.
15334 (vsx_ceil<mode>2): Likewise.
15335 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15336 (vsx_sminsf3): Likewise.
15337 (vsx_fmadf4): Likewise.
15338 (vsx_fmsdf4): Likewise.
15339 (vsx_nfmadf4): Likewise.
15340 (vsx_nfmsdf4): Likewise.
15341 (vsx_cmpdf_internal1): Likewise.
15342
15343 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15344 simpler to select whether a target has SPE or traditional floating
15345 point support in iterators.
15346 (TARGET_DF_SPE): Likewise.
15347 (TARGET_SF_FPR): Likewise.
15348 (TARGET_DF_FPR): Likewise.
15349 (TARGET_SF_INSN): Macros to say whether floating point support
15350 exists for a given operation for expanders.
15351 (TARGET_DF_INSN): Likewise.
15352
15353 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15354 combining of SF/DF mode operations, using both traditional and VSX
15355 registers.
15356 (Fvsx): Likewise.
15357 (Ff): Likewise.
15358 (Fv): Likewise.
15359 (Fs): Likewise.
15360 (Ffre): Likewise.
15361 (FFRE): Likewise.
15362 (abs<mode>2): Combine SF/DF modes using traditional floating point
15363 instructions. Add support for using the upper DF registers with
15364 VSX support, and SF registers with power8-vector support. Update
15365 expanders for operations supported by both the SPE and traditional
15366 floating point units.
15367 (abs<mode>2_fpr): Likewise.
15368 (nabs<mode>2): Likewise.
15369 (nabs<mode>2_fpr): Likewise.
15370 (neg<mode>2): Likewise.
15371 (neg<mode>2_fpr): Likewise.
15372 (add<mode>3): Likewise.
15373 (add<mode>3_fpr): Likewise.
15374 (sub<mode>3): Likewise.
15375 (sub<mode>3_fpr): Likewise.
15376 (mul<mode>3): Likewise.
15377 (mul<mode>3_fpr): Likewise.
15378 (div<mode>3): Likewise.
15379 (div<mode>3_fpr): Likewise.
15380 (sqrt<mode>3): Likewise.
15381 (sqrt<mode>3_fpr): Likewise.
15382 (fre<Fs>): Likewise.
15383 (rsqrt<mode>2): Likewise.
15384 (cmp<mode>_fpr): Likewise.
15385 (smax<mode>3): Likewise.
15386 (smin<mode>3): Likewise.
15387 (smax<mode>3_vsx): Likewise.
15388 (smin<mode>3_vsx): Likewise.
15389 (negsf2): Delete SF operations that are merged with DF.
15390 (abssf2): Likewise.
15391 (addsf3): Likewise.
15392 (subsf3): Likewise.
15393 (mulsf3): Likewise.
15394 (divsf3): Likewise.
15395 (fres): Likewise.
15396 (fmasf4_fpr): Likewise.
15397 (fmssf4_fpr): Likewise.
15398 (nfmasf4_fpr): Likewise.
15399 (nfmssf4_fpr): Likewise.
15400 (sqrtsf2): Likewise.
15401 (rsqrtsf_internal1): Likewise.
15402 (smaxsf3): Likewise.
15403 (sminsf3): Likewise.
15404 (cmpsf_internal1): Likewise.
15405 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15406 (negdf2): Delete DF operations that are merged with SF.
15407 (absdf2): Likewise.
15408 (nabsdf2): Likewise.
15409 (adddf3): Likewise.
15410 (subdf3): Likewise.
15411 (muldf3): Likewise.
15412 (divdf3): Likewise.
15413 (fred): Likewise.
15414 (rsqrtdf_internal1): Likewise.
15415 (fmadf4_fpr): Likewise.
15416 (fmsdf4_fpr): Likewise.
15417 (nfmadf4_fpr): Likewise.
15418 (nfmsdf4_fpr): Likewise.
15419 (sqrtdf2): Likewise.
15420 (smaxdf3): Likewise.
15421 (smindf3): Likewise.
15422 (cmpdf_internal1): Likewise.
15423 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15424 (btrunc<mode>2): Delete separate expander, and combine with the
15425 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
15426 (btrunc<mode>2_fpr): Likewise.
15427 (ceil<mode>2): Likewise.
15428 (ceil<mode>2_fpr): Likewise.
15429 (floor<mode>2): Likewise.
15430 (floor<mode>2_fpr): Likewise.
15431 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15432 Add support for using the upper registers with VSX and
15433 power8-vector. Move insns to be closer to the define_expands. On
15434 VSX systems, prefer the traditional form of FMA over the VSX
15435 version, since the traditional form allows the target not to
15436 overlap with the inputs.
15437 (fms<mode>4_fpr): Likewise.
15438 (nfma<mode>4_fpr): Likewise.
15439 (nfms<mode>4_fpr): Likewise.
15440
15441 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15442 Richard Earnshaw <richard.earnshaw@arm.com>
15443
15444 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15445 (struct mult_cost_table): Likewise.
15446 (struct mem_cost_table): Likewise.
15447 (struct fp_cost_table): Likewise.
15448 (struct vector_cost_table): Likewise.
15449 (cpu_cost_table): Likewise.
15450 * config/arm/arm.opt (mold-rts-costs): New option.
15451 (mnew-generic-costs): Likewise.
15452 * config/arm/arm.c (generic_extra_costs): New table.
15453 (cortexa15_extra_costs): Likewise.
15454 (arm_slowmul_tune): Use NULL as new costs.
15455 (arm_fastmul_tune): Likewise.
15456 (arm_strongarm_tune): Likewise.
15457 (arm_xscale_tune): Likewise.
15458 (arm_9e_tune): Likewise.
15459 (arm_v6t2_tune): Likewise.
15460 (arm_cortex_a5_tune): Likewise.
15461 (arm_cortex_a9_tune): Likewise.
15462 (arm_v6m_tune): Likewise.
15463 (arm_fa726te_tune): Likewise.
15464 (arm_cortex_a15_tune): Use cortex15_extra_costs.
15465 (arm_cortex_tune): Use generict_extra_costs.
15466 (shifter_op_p): New function.
15467 (arm_unspec_cost): Likewise.
15468 (LIBCALL_COST): Define.
15469 (arm_new_rtx_costs): New function.
15470 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15471 table is available. Use old costs otherwise unless mnew-generic-costs
15472 is specified.
15473 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15474 (cpu_cost_table): Declare.
15475
15476 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15477
15478 PR target/58460
15479 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15480 (*subs_mul_imm_<mode>)
15481 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15482 (*sub_<shift>_<mode>)
15483 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15484 Remove k constraint.
15485
15486 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15487
15488 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15489 code.
15490 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15491
15492 2013-10-02 Teresa Johnson <tejohnson@google.com>
15493
15494 * predict.c (probably_never_executed): New function.
15495 (probably_never_executed_bb_p): Invoke probably_never_executed.
15496 (probably_never_executed_edge_p): Ditto.
15497 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15498 Treat profile insanities conservatively.
15499
15500 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15501
15502 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15503
15504 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15505
15506 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15507 use it. Use smaller increase for scratch. Don't increase reject
15508 for early clobber scratch.
15509 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15510 setting eliminated regs except setting fp from hfp.
15511 (lra_eliminate): Check lra_insn_recog_data on NULL.
15512
15513 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15514
15515 PR target/58587
15516 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15517 setting -mvsx-timode by default until the underlying problem is fixed.
15518 (RS6000_CPU, power7 defaults): Likewise.
15519
15520 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15521
15522 * config/x-linux (host-linux.o): Remove header dependencies.
15523 Use $(COMPILE) and $(POSTCOMPILE).
15524 * config/t-linux-android (linux-android.o): Ditto.
15525
15526 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15527
15528 * Makefile.in (expmed.o-warn): Remove.
15529
15530 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15531
15532 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15533 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15534
15535 2013-10-02 Teresa Johnson <tejohnson@google.com>
15536
15537 * dojump.c (do_jump_1): Divide probability between
15538 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15539
15540 2013-10-02 Tom Tromey <tromey@redhat.com>
15541
15542 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15543
15544 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15545
15546 * tree-flow.h: Remove some prototypes.
15547 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15548 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15549 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15550 mark_virtual_phi_result_for_renaming): Relocate here.
15551 * tree-into-ssa.h: Add prototypes.
15552 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15553 single_pred_before_succ_order.
15554 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15555 (nonfreeing_call_p) Move to gimple.c.
15556 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15557 tree-ssa-phiopt.c.
15558 * basic-block.h (single_pred_before_succ_order): Add prototype.
15559 * gimple.c (nonfreeing_call_p): Relocate here.
15560 * gimple.h: Add prototype.
15561 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15562 * tree-ssa-dom.h: New file. Relocate prototypes here.
15563 * tree-ssa.h: Include tree-ssa-dom.h.
15564
15565 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15566
15567 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15568 Use $(COMPILE) and $(POSTCOMPILE).
15569
15570 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15571
15572 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15573
15574 * tree-flow.h: Remove some prototypes.
15575 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15576 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15577 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15578 propagate_tree_value*): Move from here to...
15579 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15580 propagate_tree_value*): Relocate here.
15581 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15582 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15583 * gimple-fold.c: Remove gimple-fold.h from include list.
15584 * tree-vrp.c: Remove gimple-fold.h from include list.
15585 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15586 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15587 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15588 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15589 * sese.c: Add tree-ssa-propagate.h to include list.
15590
15591 2013-10-02 Richard Biener <rguenther@suse.de>
15592
15593 * tree-loop-distribution.c: Include tree-vectorizer.h for
15594 find_loop_location.
15595 (enum partition_kind): Remove PKIND_REDUCTION.
15596 (struct partition_s): Remove has_writes member, add reduction_p member.
15597 (partition_alloc): Adjust.
15598 (partition_builtin_p): Likewise.
15599 (partition_has_writes): Remove.
15600 (partition_reduction_p): New function.
15601 (partition_merge_into): Likewise.
15602 (generate_code_for_partition): Commonize builtin partition
15603 handling tail.
15604 (rdg_cannot_recompute_vertex_p): Remove.
15605 (already_processed_vertex_p): Likewise.
15606 (rdg_flag_vertex): Do not set has_writes.
15607 (classify_partition): Adjust.
15608 (rdg_build_partitions): Do not set has_writes, treat all
15609 partitions as useful.
15610 (distribute_loop): Record number of library calls generated. Adjust.
15611 (tree_loop_distribution): Report number of loops and library
15612 calls generated as opt-info.
15613
15614 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15615
15616 * tree-flow.h: Include new .h files. Move prototypes.
15617 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15618 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15619 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15620 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15621 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15622 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15623 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15624 * tree.h (get_ref_base_and_extent): Move prototype out.
15625 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15626 tree-dfa.h.
15627 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15628 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15629 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15630 * tree-scalar-evolution.c: Include tree.h.
15631 * sese.c: Include tree.h.
15632 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15633 * dwarf2out.c: Include tree-dfa.h.
15634 * tree-chrec.c: Include tree.h.
15635 * tree-data-ref.c: Include tree.h.
15636
15637 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15638
15639 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15640 Fix whitespace.
15641
15642 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15643
15644 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15645 Use $(COMPILE) and $(POSTCOMPILE).
15646 (sol2-cxx.o): Likewise.
15647 (sol2-stubs.o): Likewise.
15648 (sol2.o): Likewise.
15649 * config/x-solaris (host-solaris.o): Likewise.
15650
15651 * config/sparc/t-sparc (sparc.o): Remove.
15652 (sparc-c.o): Remove header dependencies.
15653 Use $(COMPILE) and $(POSTCOMPILE).
15654 * config/sparc/x-sparc: Likewise.
15655
15656 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15657
15658 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15659 * config/arc/arc700.md: Likewise.
15660 * config/arc/arc-modes.def: Likewise.
15661 * config/arc/arc-simd.h: Likewise.
15662 * config/arc/t-arc-uClibc: Likewise.
15663 * config/arc/t-arc-newlib: Likewise.
15664
15665 2013-10-02 Renlin Li <renlin.li@arm.com>
15666
15667 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15668 plus_constant.
15669 (aarch64_expand_epilogue): Likewise.
15670
15671 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15672 Yufeng Zhang <yufeng.zhang@arm.com>
15673
15674 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15675 declaration.
15676 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15677 'base_in' represent a conversion and legal_cast_p_1 holds; set
15678 'base_in' with the returned value from get_unwidened.
15679
15680 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15681
15682 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15683 plus_constant is not used.
15684
15685 2013-10-01 Wei Mi <wmi@google.com>
15686
15687 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15688 * config/i386/i386.md: Add define_peephole2 to
15689 break partial reg stall for cvtss2sd/cvtsd2ss.
15690
15691 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15692
15693 * config/arc/arc.c (pass_arc_ifcvt::clone):
15694 Update for ctxt_ -> m_ctxt change.
15695
15696 2013-10-01 Jeff Law <law@redhat.com>
15697
15698 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15699 outgoing_edge and intermediate_edge fields. Instead store the path.
15700 (redirection_data::hash): Hash on the last edge's destination index.
15701 (redirection_data::equal): Check the entire thread path.
15702 (lookup_redirectio_data): Corresponding changes.
15703 (create_edge_and_update_destination_phis): Likewise.
15704 (thread_single_edge): Likewise.
15705
15706 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15707 Diego Novillo <dnovillo@google.com>
15708
15709 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15710 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15711 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15712 versions of these patterns.
15713
15714 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15715 (__builtin_arc_aligned): Likewise.
15716
15717 * config/arc/arc.md: Expand adc_0 comment stating the intended
15718 purpose and why it isn't ready.
15719 Replace commented out call_value_via_label_mixed with a
15720 plain comment about bl_s.
15721
15722 * config/arc/arc.c (stdio.h): Don't include directly.
15723 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15724 Remove if (1) condition.
15725 (arc_encode_section_info): Fix comment.
15726
15727 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15728
15729 * config/arc/arc.c (arc_conditional_register_usage):
15730 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15731 Also set reg_alloc_order for DMA config regs.
15732
15733 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15734 Jeremy Bennett <jeremy.bennett@embecosm.com>
15735
15736 * doc/install.texi (--with-cpu): Mention ARC.
15737 (arc-*-elf32): New paragraph.
15738 (arc-linux-uclibc): Likewise.
15739 * doc/md.texi (Machine Constraints): Add ARC part.
15740 * doc/invoke.texi: (menu): Add ARC Options.
15741 (Machine Dependent Options) <ARC Options>: Add synopsis.
15742 (node ARC Options): Add.
15743 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15744 (ARC Built-in Functions): New section defining
15745 generic ARC built-in functions.
15746 (ARC SIMD Built-in Functions): New section defining SIMD specific
15747 built-in functions.
15748 (Declaring Attributes of Functions): Extended
15749 description of short_call and long_call attributes for ARC and
15750 added index entries.
15751
15752 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15753 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15754 Joern Rennecke <joern.rennecke@embecosm.com>
15755 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15756 Brendan Kehoe <brendan@zen.org>
15757 Michael Eager <eager@eagercon.com>
15758 Simon Cook <simon.cook@embecosm.com>
15759 Jeremy Bennett <jeremy.bennett@embecosm.com>
15760
15761 * config/arc, common/config/arc: New directories.
15762
15763 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15764 Brendan Kehoe <brendan@zen.org>
15765 Simon Cook <simon.cook@embecosm.com>
15766
15767 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15768
15769 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15770
15771 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15772 * tree-ssa-coalesce.h: New. Move prototype to here.
15773 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15774 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15775 (gimple_can_coalesce_p): Move to...
15776 * gimple.c (gimple_can_coalesce_p): Here.
15777
15778 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15779
15780 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15781 (dump_decl_set): Move to gimple.c.
15782 * gimple.h: Don't include tree-ssa-operands.h.
15783 (dump_decl_set): Add prototype.
15784 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15785 Move to gimple-ssa.h.
15786 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15787 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15788 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15789 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15790 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15791 than PHI_ARG_DEF.
15792 (dump_decl_set): Relocate here.
15793 * gimple-ssa.h: New file.
15794 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15795 Relocate from gimple.h.
15796 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15797 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15798 swap_tree_operands and remove non-ssa path.
15799 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15800 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15801 swap_ssa_operands.
15802 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15803 vect_is_simple_reduction_1): Use swap_ssa_operands.
15804 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15805 (enum need_phi_state): Move to tree-into-ssa.c.
15806 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15807 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15808 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15809 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15810 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15811 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15812 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15813 num_imm_uses): Move to ssa-iterators.h.
15814 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15815 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15816 tree-phinodes.h.
15817 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15818 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15819 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15820 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15821 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15822 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15823 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15824 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15825 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15826 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15827 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15828 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15829 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15830 (set_phi_nodes): Move to tree-phinodes.h.
15831 * tree-ssa-operands.h (enum ssa_op_iter_type,
15832 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15833 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15834 (dump_decl_set): Remove prototype.
15835 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15836 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15837 (set_phi_nodes): Relocate from tree-flow-inline.h.
15838 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15839 tree-flow-inline.h
15840 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15841 include list. Temporarily add gimple.h to include list.
15842 * ssa-iterators.h: New file.
15843 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15844 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15845 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15846 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15847 Relocate from tree-ssa-operands.h.
15848 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15849 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15850 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15851 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15852 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15853 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15854 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15855 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15856 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15857 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15858 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15859 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15860 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15861 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15862 Relocate from tree-flow-inline.h.
15863 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15864
15865 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15866
15867 * aarch64-simd.md
15868 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15869 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15870 Insert '\t' to output template.
15871 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15872 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15873 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15874 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15875
15876 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15877
15878 * doc/install.texi (Host/target specific installation notes for GCC):
15879 Put @anchor before @heading.
15880 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15881 Use @email for email addresses.
15882
15883 2013-10-01 Jeff Law <law@redhat.com>
15884
15885 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15886 a vec. Only delete the path if we create one without successfully
15887 registering a jump thread.
15888 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15889 as a pointer.
15890 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15891 (paths): New vector of jump threading paths.
15892 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15893 (THREAD_PATH): New accessor macro for the entire thread path.
15894 (lookup_redirection_data): Get intermediate and final outgoing edge
15895 from the thread path.
15896 (create_edge_and_update_destination_phis): Copy the threading path.
15897 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15898 jump threading path.
15899 (ssa_redirect_edges): Get edges and block types from the jump threading
15900 path. Free the path vector.
15901 (thread_block): Get edges from the jump threading path. Look at the
15902 entire path to see if we thread to a loop exit. If we cancel a jump
15903 thread request, then free the path vector.
15904 (thread_single_edge): Get edges and block types from the jump threading
15905 path. Free the path vector.
15906 (thread_through_loop_header): Get edges and block types from the jump
15907 threading path. Free the path vector.
15908 (mark_threaded_blocks): Iterate over the vector of paths and store
15909 the path on the appropriate edge. Get edges and block types from the
15910 jump threading path.
15911 (mark_threaded_blocks): Get edges and block types from the jump
15912 threading path. Free the path vector.
15913 (thread_through_all_blocks): Use the vector of paths rather than
15914 a vector of 3-edge sets.
15915 (register_jump_thread): Accept pointer to a path vector rather
15916 than the path vector itself. Store the path vector for later use.
15917 Simplify.
15918
15919 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15920 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15921
15922 PR target/58574
15923 * config/s390/s390.c (s390_split_branches): Modify check for table
15924 jump insns.
15925 (s390_chunkify_start): Rearrange table jump insn check in order to
15926 deal with compare and branch insns correctly.
15927
15928 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15929
15930 PR target/58578
15931 Revert
15932 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15933 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15934 define_insn_and_split.
15935 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15936 (shiftsi3_compare): New pattern.
15937 (rrx): New pattern.
15938 * config/arm/unspecs.md (UNSPEC_RRX): New.
15939
15940 2013-10-01 Alan Modra <amodra@gmail.com>
15941
15942 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15943 casing inout operands.
15944
15945 2013-10-01 Richard Biener <rguenther@suse.de>
15946
15947 PR tree-optimization/58553
15948 * tree-loop-distribution.c (struct partition_s): Add niter member.
15949 (classify_partition): Populate niter member for the partition
15950 and properly identify whether the relevant store happens before
15951 or after the loop exit.
15952 (generate_memset_builtin): Use niter member from the partition.
15953 (generate_memcpy_builtin): Likewise.
15954
15955 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15956
15957 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15958 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15959
15960 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15961
15962 * basic-block.h (edge_list): Prefix member names with "m_".
15963 * context.h (context): Likewise.
15964 * domwalk.h (dom_walker): Likewise.
15965 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15966 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15967 * hash-table.h (hash_table): Likewise.
15968 * machmode.h (bit_field_mode_iterator): Likewise.
15969 * pass_manager.h (pass_list): Likewise.
15970 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15971 * tree-pass.h (pass_data): Likewise.
15972 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15973 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15974 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15975 * asan.c (pass_data_asan): Update accordingly.
15976 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15977 (control_dependences::control_dependences): Likewise.
15978 (control_dependences::~control_dependences): Likewise.
15979 (control_dependences::~control_dependences): Likewise.
15980 (control_dependences::get_edges_dependent_on): Likewise.
15981 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15982 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15983 * context.c (gcc::context::context): Likewise.
15984 * cprop.c (pass_rtl_cprop::clone): Likewise.
15985 * domwalk.c (dom_walker::walk): Likewise.
15986 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15987 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15988 * mode-switching.c (pass_mode_switching::clone): Likewise.
15989 * passes.c (opt_pass::opt_pass): Likewise.
15990 (pass_manager::pass_manager): Likewise.
15991 * predict.c (pass_strip_predict_hints::clone): Likewise.
15992 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15993 (pass_split_all_insns::clone): Likewise.
15994 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15995 Likewise.
15996 (bit_field_mode_iterator::next_mode): Likewise.
15997 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15998 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15999 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
16000 * tree-complex.c (pass_lower_complex::clone): Likewise.
16001 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
16002 * tree-object-size.c (pass_object_sizes::clone): Likewise.
16003 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
16004 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
16005 (pass_fold_builtins::clone): Likewise.
16006 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
16007 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
16008 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
16009 (pass_cd_dce::clone): Likewise.
16010 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
16011 (pass_phi_only_cprop::clone): Likewise.
16012 * tree-ssa-dse.c (pass_dse::clone): Likewise.
16013 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
16014 * tree-ssa-loop.c (pass_lim::clone): Likewise.
16015 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
16016 * tree-ssa-pre.c (pass_fre::clone): Likewise.
16017 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
16018 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
16019 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
16020 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16021 * tree-vrp.c (pass_vrp::clone): Likewise.
16022 * tsan.c (pass_tsan::clone): Likewise.
16023
16024 2013-09-30 Jakub Jelinek <jakub@redhat.com>
16025
16026 PR middle-end/58564
16027 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16028 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16029
16030 PR middle-end/58564
16031 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16032 optimization, punt if sign_bit_p looked through any zero extension.
16033
16034 2013-09-30 Teresa Johnson <tejohnson@google.com>
16035
16036 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16037 Update redirected out edge count in joiner case.
16038 (ssa_redirect_edges): Common the joiner and non-joiner cases
16039 so that joiner case gets profile updates.
16040
16041 2013-09-30 Richard Biener <rguenther@suse.de>
16042
16043 PR tree-optimization/58554
16044 * tree-loop-distribution.c (classify_partition): Require
16045 unconditionally executed stores for memcpy and memset recognition.
16046 (tree_loop_distribution): Calculate dominance info.
16047
16048 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16049
16050 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16051 (NO_PROFILE_COUNTERS): Likewise.
16052 (PROFILE_HOOK): Likewise.
16053 (FUNCTION_PROFILER): Likewise.
16054 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16055
16056 2013-09-30 Iain Sandoe <iain@codesourcery.com>
16057
16058 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16059 calls and defines in TARGET_MACHO conditional.
16060 (load_macho_picbase_di): Likewise.
16061 (reload_macho_picbase): Likewise.
16062 (reload_macho_picbase_si): Likewise.
16063 (reload_macho_picbase_di): Likewise.
16064 (nonlocal_goto_receiver): Likewise.
16065
16066 2013-09-30 Nick Clifton <nickc@redhat.com>
16067
16068 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
16069 that use the MSP430X ISA.
16070 (msp430_option_override): Scan -mmcu command line option for any
16071 MCU name that supports the MSP430X ISA.
16072 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16073 -mmcu options which enable the MSP430X ISA.
16074
16075 2013-09-30 Richard Biener <rguenther@suse.de>
16076
16077 PR middle-end/58532
16078 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16079 before looking for setjmp-like calls.
16080
16081 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16082
16083 PR target/10901
16084 * config/darwin-protos.h (machopic_get_function_picbase): New.
16085 * config/darwin.c (machopic_get_function_picbase): New.
16086 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16087 label for a new func. (load_macho_picbase_di): Likewise.
16088 (reload_macho_picbase): New expand.
16089 (reload_macho_picbase_si): New insn.
16090 (reload_macho_picbase_di): New insn.
16091 (nonlocal_goto_receiver): New define and split.
16092 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16093 (unspecv enum): Add UNSPECV_NLGR.
16094
16095 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16096
16097 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16098 that altivec registers are correctly sized on Darwin.
16099
16100 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16101
16102 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16103 darwin-driver.o): Use COMPILE and POSTCOMPILE.
16104 * config/x-darwin (host-darwin.o): Likewise.
16105 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16106 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16107 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16108
16109 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
16110
16111 * doc/invoke.texi: Fix usage of @tie{} command.
16112
16113 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
16114
16115 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16116
16117 2013-09-28 Jan Hubicka <jh@suse.cz>
16118
16119 * config/i386/x86-tune.def: Add documentation for each of the options;
16120 add whitespace.
16121
16122 2013-09-28 Jan Hubicka <jh@suse.cz>
16123
16124 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16125 generic.
16126 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16127 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16128 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16129 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16130 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16131
16132 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
16133
16134 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16135 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16136 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16137 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16138 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16139 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16140 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16141 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16142 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16143 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16144 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16145 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16146 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16147 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16148 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16149 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16150 gimple.h, godump.c, graphite-clast-to-gimple.c,
16151 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16152 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16153 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16154 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16155 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16156 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16157 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16158 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16159 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16160 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16161 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16162 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16163 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16164 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16165 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16166 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16167 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16168 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16169 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16170 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16171 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16172 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16173 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16174 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16175 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16176 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16177 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16178 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16179 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16180 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16181 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16182 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16183 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16184 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16185 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16186 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16187 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16188 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16189 whitespace before "(".
16190
16191 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
16192
16193 * expr.h (extract_bit_field): Remove packedp parameter.
16194 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16195 from forward declaration.
16196 (store_split_bit_field): Remove packedp arg from calls to
16197 extract_fixed_bit_field.
16198 (extract_bit_field_1): Remove packedp parameter and packedp
16199 argument from recursive calls and calls to extract_fixed_bit_field.
16200 (extract_bit_field): Remove packedp parameter and corresponding
16201 arg to extract_bit_field_1.
16202 (extract_fixed_bit_field): Remove packedp parameter. Remove code
16203 to issue warnings.
16204 (extract_split_bit_field): Remove packedp arg from call to
16205 extract_fixed_bit_field.
16206 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16207 (copy_blkmode_from_reg): Likewise.
16208 (copy_blkmode_to_reg): Likewise.
16209 (read_complex_part): Likewise.
16210 (store_field): Likewise.
16211 (expand_expr_real_1): Likewise.
16212 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16213 to extract_bit_field.
16214 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16215 call to extract_bit_field.
16216 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16217 call to extract_bit_field.
16218 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16219 and special packedp behavior from -fstrict-volatile-bitfields
16220 documentation.
16221
16222 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16223
16224 * lra-eliminations.c (init_elim_table): Guard value_p.
16225
16226 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16227
16228 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16229 DFmode, DImode, and SFmode in the upper VSX registers based on the
16230 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
16231 if -mpower8-vector. Combine -mvsx-timode handling with the rest
16232 of the VSX register handling.
16233
16234 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16235 (f32_sv): Likewise.
16236 (zero_extendsidi2_lfiwzx): Add support for loading into the
16237 Altivec registers with -mpower8-vector. Use wu/wv constraints to
16238 only do VSX memory options on Altivec registers.
16239 (extendsidi2_lfiwax): Likewise.
16240 (extendsfdf2_fpr): Likewise.
16241 (mov<mode>_hardfloat, SF/SD modes): Likewise.
16242 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16243 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16244 (movdi_internal64): Likewise.
16245
16246 2013-09-27 Xinliang David Li <davidxl@google.com>
16247
16248 * opts.c (finish_options): Adjust parameters
16249 according to vect cost model.
16250 (common_handle_option): Set dynamic vect cost
16251 model for FDO.
16252 targhooks.c (default_add_stmt_cost): Compute stmt cost
16253 unconditionally.
16254 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16255 Use helper function.
16256 * tree-vectorizer.h (unlimited_cost_model): New function.
16257 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16258 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16259 function.
16260 (vect_enhance_data_refs_alignment): Ditto.
16261 * flag-types.h: New enum.
16262 * common/config/i386/i386-common.c (ix86_option_init_struct):
16263 No need to initialize vect_cost_model flag.
16264 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16265 unconditionally.
16266
16267 2013-09-27 Diego Novillo <dnovillo@google.com>
16268
16269 * gimple.h (enum ssa_mode): Remove.
16270
16271 2013-09-27 Paulo Matos <pmatos@broadcom.com>
16272
16273 * cfgloop.h (number_of_loops): Fix typo in check for null.
16274
16275 2013-09-27 Jakub Jelinek <jakub@redhat.com>
16276
16277 PR middle-end/58551
16278 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16279 are children of outermost saved_cfun's loop, and set it up to
16280 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
16281 if loop != loop0 and SESE region contains bbs that belong to loop0.
16282
16283 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16284
16285 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16286 (binary_scale_code_p, get_base_term, get_index_term): New functions.
16287 (set_address_segment, set_address_base, set_address_index)
16288 (set_address_disp): Accept the argument unconditionally.
16289 (baseness): Remove must_be_base_p and must_be_index_p checks.
16290 (decompose_normal_address): Classify as much as possible in the
16291 main loop.
16292
16293 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16294
16295 * cse.c (count_reg_usage): Handle INT_LIST.
16296 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16297 * reginfo.c (reg_scan_mark_refs): Likewise.
16298 * reload1.c (eliminate_regs_1): Likewise.
16299
16300 2013-09-27 Iain Sandoe <iain@codesourcery.com>
16301
16302 PR middle-end/58547
16303 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16304 signed.
16305
16306 2013-09-27 Richard Biener <rguenther@suse.de>
16307
16308 PR tree-optimization/58459
16309 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16310 restriction not propagating into loops.
16311
16312 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
16313
16314 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16315 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16316 * doc/tree-ssa.texi (Walking use-def chains): Delete.
16317
16318 2013-09-26 Richard Biener <rguenther@suse.de>
16319
16320 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16321
16322 2013-09-26 Richard Biener <rguenther@suse.de>
16323
16324 * alias.h (component_uses_parent_alias_set): Rename to ...
16325 (component_uses_parent_alias_set_from): ... this.
16326 * alias.c (component_uses_parent_alias_set): Rename to ...
16327 (component_uses_parent_alias_set_from): ... this and return
16328 the desired parent.
16329 (reference_alias_ptr_type_1): Use the result from
16330 component_uses_parent_alias_set_from instead of stripping
16331 components one at a time.
16332 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16333
16334 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16335
16336 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16337 Move prototypes to...
16338 * tree-ssa-ter.h: New File. Move prototypes here.
16339 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16340 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16341 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
16342 from is_replaceable_p.
16343 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16344 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
16345 (process_replaceable): Use ter_is_replaceable_p.
16346 (find_replaceable_in_bb): Use ter_is_replaceable_p.
16347 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
16348 newly refactored ssa_is_replaceable_p.
16349 * cfgexpand.c: Include tree-outof-ssa.h.
16350 * ssaexpand.h: Delete.
16351
16352 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16353
16354 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16355 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16356 tree-ssa.c
16357 (create_gimple_tmp): Delete.
16358 (get_expr_type, build_assign, build_type_cast): Move to...
16359 * gimple-builder.c: New File.
16360 (get_expr_type): Relocate from gimple.c.
16361 (build_assign, build_type_cast): Change to only create ssanames.
16362 * gimple.h: Move prototypes to...
16363 * gimple-builder.h: New File. Here.
16364 * tree-ssa.h: And here.
16365 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16366 count_uses_and_derefs): Relocate from gimple.c.
16367 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16368 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16369 * tree-ssa-math-opts (execute_cse_reciprocals): Use
16370 gimple_replace_ssa_lhs.
16371 * asan.c: Include gimple-builder.h.
16372 * Makefile.in: Add gimple-builder.o.
16373
16374 2013-09-26 Richard Biener <rguenther@suse.de>
16375
16376 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16377 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16378 (loe_visit_block): Use gcc_checking_assert.
16379 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16380 gimple_assign_ssa_name_copy_p.
16381 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16382 change.
16383
16384 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
16385
16386 * config/rs6000/t-rs6000 (rs6000.o): Remove.
16387 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16388
16389 2013-09-26 Richard Biener <rguenther@suse.de>
16390
16391 PR tree-optimization/58539
16392 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16393 the fact that debug statements are not taking part in loop-closed
16394 SSA construction.
16395
16396 2013-09-26 Nick Clifton <nickc@redhat.com>
16397
16398 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16399 time warning message.
16400 (msp430_print_operand_raw): Delete unused letter parameter.
16401 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16402 (msp430_print_operand_address): New function.
16403 (msp430_print_operand): Move address printing code from here to
16404 new function.
16405 * config/msp430/msp430.md (movsipsi2): Add comment in generated
16406 assembler.
16407 (zero_extendpsisi2): Likewise.
16408 (extendpsisi2): New pattern.
16409 (andneghi3): New pattern.
16410
16411 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
16412
16413 * config/aarch64/aarch64.opt (mlra): New option.
16414 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16415 (TARGET_LRA_P): Define.
16416
16417 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
16418
16419 * expr.c (expand_assignment): Remove obsolete comment.
16420
16421 2013-09-25 Jeff Law <law@redhat.com>
16422
16423 * tree-flow.h (thread_through_all_blocks): Prototype moved into
16424 tree-ssa-threadupdate.h.
16425 (register_jump_thread): Similarly.
16426 * tree-ssa-threadupdate.h: New header file.
16427 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16428 * tree-vrp.c: Likewise.
16429 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16430 (thread_around_empty_blocks): Change type of path vector argument to
16431 an edge,type pair from just an edge. Initialize both elements when
16432 appending to a jump threading path. Tweak references to elements
16433 appropriately.
16434 (thread_across_edge): Similarly. Release memory for the elements
16435 as needed.
16436 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16437 (dump_jump_thread_path): New function broken out from
16438 register_jump_thread.
16439 (register_jump_thread): Use dump_jump_thread_path. Change type of
16440 path vector entries. Search the path for NULL edges and dump
16441 the path if one is found. Tweak the conversion of path to 3-edge
16442 form to use the block copy type information embedded in the path.
16443
16444 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16445
16446 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16447
16448 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16449 Vladimir Makarov <vmakarov@redhat.com>
16450
16451 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16452 from the least significant bit.
16453 (strip_address_mutations): Add bitfield operations handling.
16454 (must_be_index_p): Add shifting and rotate operations handling.
16455 (set_address_base): Use must_be_base_p predicate.
16456 (set_address_index): Use must_be_index_p predicate.
16457
16458 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16460 Sergey Lega <sergey.s.lega@intel.com>
16461 Anna Tikhonova <anna.tikhonova@intel.com>
16462 Ilya Tocar <ilya.tocar@intel.com>
16463 Andrey Turetskiy <andrey.turetskiy@intel.com>
16464 Ilya Verbin <ilya.verbin@intel.com>
16465 Kirill Yukhin <kirill.yukhin@intel.com>
16466 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16467
16468 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16469 Use new names.
16470 (ix86_expand_vector_move_misalign): Support new unaligned load and
16471 stores and use new names.
16472 (CODE_FOR_sse2_storedqu): Rename to ...
16473 (CODE_FOR_sse2_storedquv16qi): ... this.
16474 (CODE_FOR_sse2_loaddqu): Rename to ...
16475 (CODE_FOR_sse2_loaddquv16qi): ... this.
16476 (CODE_FOR_avx_loaddqu256): Rename to ...
16477 (CODE_FOR_avx_loaddquv32qi): ... this.
16478 (CODE_FOR_avx_storedqu256): Rename to ...
16479 (CODE_FOR_avx_storedquv32qi): ... this.
16480 * config/i386/i386.md (fpint_logic): New.
16481 * config/i386/sse.md (VMOVE): Extend for AVX512.
16482 (VF): Ditto.
16483 (VF_128_256): New.
16484 (VF_512): Ditto.
16485 (VI_UNALIGNED_LOADSTORE): Ditto.
16486 (sse2_avx_avx512f): Ditto.
16487 (sse2_avx2): Extend for AVX512.
16488 (sse4_1_avx2): Ditto.
16489 (avx2_avx512f): New.
16490 (sse): Extend for AVX512.
16491 (sse2): Ditto.
16492 (sse4_1): Ditto.
16493 (avxsizesuffix): Ditto.
16494 (sseintvecmode): Ditto.
16495 (ssePSmode): Ditto.
16496 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16497 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16498 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16499 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16500 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16501 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16502 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16503 (STORENT_MODE): Extend for AVX512.
16504 (*absneg<mode>2): Replace constraint "x" with "v".
16505 (*mul<mode>3): Ditto.
16506 (*ieee_smin<mode>3): Ditto.
16507 (*ieee_smax<mode>3): Ditto.
16508 (avx_cmp<mode>3): Replace VF with VF_128_256.
16509 (*<sse>_maskcmp<mode>3_comm): Ditto.
16510 (<sse>_maskcmp<mode>3): Ditto.
16511 (<sse>_andnot<mode>3): Extend for AVX512.
16512 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16513 (<code><mode>3, fpint_logic): New.
16514 (*<code><mode>3): Extend for AVX512.
16515 (avx512flogicsuff): New.
16516 (avx512f_<logic><mode>): Ditto.
16517 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16518 VF_128_256.
16519 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16520 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16521 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16522 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16523 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16524 (xop_vpermil2<mode>3): Ditto.
16525 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16526 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16527 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16528 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16529
16530 2013-09-25 Tom Tromey <tromey@redhat.com>
16531
16532 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16533 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16534 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16535 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16536 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16537 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16538 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16539 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16540 (GRAPHITE_HTAB_H): Remove.
16541
16542 2013-09-25 Tom Tromey <tromey@redhat.com>
16543
16544 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16545
16546 2013-09-25 Tom Tromey <tromey@redhat.com>
16547
16548 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16549
16550 2013-09-25 Tom Tromey <tromey@redhat.com>
16551
16552 * config/i386/t-i386 (i386.o): Remove.
16553 (i386-c.o): Use COMPILE and POSTCOMPILE.
16554
16555 2013-09-25 Tom Tromey <tromey@redhat.com>
16556
16557 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16558
16559 2013-09-25 Tom Tromey <tromey@redhat.com>
16560
16561 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16562 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16563 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16564 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16565 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16566 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16567 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16568 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16569 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16570 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16571 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16572 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16573 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16574 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16575 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16576 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16577 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16578 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16579 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16580 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16581 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16582 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16583 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16584 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16585 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16586 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16587 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16588 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16589 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16590 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16591 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16592 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16593 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16594 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16595 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16596 (graphite-clast-to-gimple.o, graphite-dependences.o)
16597 (graphite-interchange.o, graphite-poly.o)
16598 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16599 (graphite-optimize-isl.o, tree-vect-loop.o)
16600 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16601 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16602 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16603 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16604 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16605 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16606 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16607 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16608 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16609 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16610 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16611 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16612 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16613 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16614 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16615 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16616 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16617 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16618 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16619 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16620 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16621 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16622 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16623 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16624 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16625 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16626 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16627 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16628 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16629 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16630 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16631 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16632 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16633 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16634 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16635 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16636 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16637 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16638 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16639 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16640 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16641 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16642 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16643 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16644 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16645 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16646 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16647 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16648 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16649 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16650 (gcov-dump.o): Remove.
16651 (default-c.o): Use COMPILE and POSTCOMPILE.
16652 (CFLAGS-gcc.o): New variable.
16653 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16654
16655 2013-09-25 Tom Tromey <tromey@redhat.com>
16656
16657 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16658 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16659 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16660 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16661 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16662 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16663 (c-family/array-notation-common.o, c-family/stub-objc.o)
16664 (c-family/c-ubsan.o): Remove.
16665
16666 2013-09-25 Tom Tromey <tromey@redhat.com>
16667
16668 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16669
16670 2013-09-25 Tom Tromey <tromey@redhat.com>
16671
16672 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16673 to add -DENABLE_SHARED_LIBGCC.
16674 (gcc.o): Don't use subshell.
16675
16676 2013-09-25 Tom Tromey <tromey@redhat.com>
16677
16678 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16679 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16680 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16681 * configure, config.in: Rebuild.
16682
16683 2013-09-25 Tom Tromey <tromey@redhat.com>
16684
16685 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16686 (COMPILE, POSTCOMPILE): New variables.
16687 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16688 (DEPFILES): New variable.
16689 Include ".Po" files.
16690 * configure.ac: Add checks for dependency checking.
16691 * configure, aclocal.m4: Regenerate.
16692
16693 2013-09-25 Tom Tromey <tromey@redhat.com>
16694
16695 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16696 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16697
16698 2013-09-25 Tom Tromey <tromey@redhat.com>
16699
16700 * Makefile.in (generated_files): Add options.h,
16701 target-hooks-def.h, insn-opinit.h,
16702 common/common-target-hooks-def.h, pass-instances.def,
16703 c-family/c-target-hooks-def.h.
16704
16705 2013-09-25 Jeff Law <law@redhat.com>
16706
16707 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16708 than foo[foo.length () - 1] to access last member in a vec.
16709 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16710
16711 2013-09-25 Richard Biener <rguenther@suse.de>
16712
16713 PR middle-end/58521
16714 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16715
16716 2013-09-25 Jan Hubicka <jh@suse.cz>
16717
16718 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16719 test.
16720
16721 2013-09-25 Marek Polacek <polacek@redhat.com>
16722
16723 PR sanitizer/58420
16724 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16725 when determining the type name.
16726
16727 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16728
16729 * config/sh/sh.md: Fix formatting.
16730
16731 2013-09-24 Xinliang David Li <davidxl@google.com>
16732
16733 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16734 max peel iterations parameter.
16735 * param.def: New parameter.
16736 * doc/invoke.texi: Document New parameter.
16737
16738 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16739
16740 * gimple-pretty-print.c: Various whitespace tweaks.
16741 * tree-core.h: Likewise.
16742 * tree-pretty-print.c: Likewise.
16743 * tree-ssa-alias.c: Likewise.
16744 * tree-ssa-copy.c: Likewise.
16745 * tree-ssanames.c: Likewise.
16746 * tree-ssanames.h: Likewise.
16747 * tree-vrp.c: Likewise.
16748
16749 2013-09-24 Alan Modra <amodra@gmail.com>
16750
16751 PR middle-end/57134
16752 PR middle-end/57586
16753 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16754 for output operands that disallow regs. Don't use EXPAND_WRITE on
16755 inout operands.
16756
16757 2013-09-24 Richard Biener <rguenther@suse.de>
16758
16759 PR middle-end/58513
16760 * tree.c (reference_alias_ptr_type): Move ...
16761 * alias.c (reference_alias_ptr_type): ... here and implement
16762 in terms of the new reference_alias_ptr_type_1.
16763 (ref_all_alias_ptr_type_p): New helper.
16764 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16765 use ref_all_alias_ptr_type_p.
16766 (get_deref_alias_set): Add flag_strict_aliasing check here.
16767 (reference_alias_ptr_type_1): New function, split out from ...
16768 (get_alias_set): ... here.
16769 (alias_ptr_types_compatible_p): New function.
16770 * alias.h (reference_alias_ptr_type): Declare.
16771 (alias_ptr_types_compatible_p): Likewise.
16772 * tree.h (reference_alias_ptr_type): Remove.
16773 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16774 to compare MEM_REF alias types.
16775
16776 2013-09-24 Richard Biener <rguenther@suse.de>
16777
16778 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16779
16780 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16781
16782 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16783 reload helper function arrays into a single array reg_addr.
16784 (reload_fpr_gpr): Likewise.
16785 (reload_gpr_vsx): Likewise.
16786 (reload_vsx_gpr): Likewise.
16787 (struct rs6000_reg_addr): Likewise.
16788 (reg_addr): Likewise.
16789 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16790 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16791 (rs6000_init_hard_regno_mode_ok): Likewise.
16792 (rs6000_secondary_reload_direct_move): Likewise.
16793 (rs6000_secondary_reload): Likewise.
16794
16795 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16796 constraints: wu, ww, and wy. Repurpose wv constraint added during
16797 power8 changes. Put wg constraint in alphabetical order.
16798
16799 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16800 for future work to add ISA 2.07 VSX single precision support.
16801 (-mvsx-scalar-double): Change default from -1 to 1, update
16802 documentation comment.
16803 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16804 (-mupper-regs-df): New debug switch to control whether DF values
16805 can go in the traditional Altivec registers.
16806 (-mupper-regs-sf): New debug switch to control whether SF values
16807 can go in the traditional Altivec registers.
16808
16809 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16810 and wy constraints.
16811 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16812 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16813 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16814 (rs6000_debug_legitimate_address_p): Print if we are running
16815 before, during, or after reload.
16816 (rs6000_secondary_reload): Add a comment.
16817 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16818
16819 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16820 constraints. Update documentation string.
16821 (wd constraint): Likewise.
16822 (wf constraint): Likewise.
16823 (wg constraint): Likewise.
16824 (wn constraint): Likewise.
16825 (ws constraint): Likewise.
16826 (wt constraint): Likewise.
16827 (wx constraint): Likewise.
16828 (wz constraint): Likewise.
16829 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16830 instructions.
16831 (ww constraint): Likewise.
16832 (wy constraint): Likewise.
16833 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16834 in the previous submissions.
16835 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16836
16837 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16838
16839 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16840 (REG_BR_PROB): Say that the probability is stored in an int_list.
16841 * reg-notes.def: Update commentary to mention INT_LIST.
16842 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16843 (INT_LIST): New rtx.
16844 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16845 * rtlanal.c (int_reg_note_p): New function.
16846 (alloc_reg_note): Assert that the note does not have an int argument.
16847 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16848 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16849 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16850 rather than an INSN_LIST. Handle INT_LIST.
16851 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16852 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16853 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16854 Manipulate them as ints rather than rtxes.
16855 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16856 * regmove.c (copy_src_to_dest): Likewise.
16857 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16858
16859 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16860 into the cases that need it.
16861 * config/arm/arm.c (arm_unwind_emit): Likewise.
16862
16863 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16864 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16865 * loop-doloop.c (add_test, doloop_modify): Likewise.
16866 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16867 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16868 * predict.c (combine_predictions_for_insn): Likewise.
16869 * print-rtl.c (print_rtx): Handle INT_LIST.
16870 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16871 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16872 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16873 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16874 (ix86_split_fp_branch, predict_jump): Likewise.
16875 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16876 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16877 * config/spu/spu.c (ea_load_store_inline): Likewise.
16878
16879 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16880 value of a REG_BR_PROB note.
16881 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16882 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16883 * emit-rtl.c (try_split): Likewise.
16884 * predict.c (br_prob_note_reliable_p): Likewise.
16885 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16886 * reorg.c (mostly_true_jump): Likewise.
16887 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16888 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16889 * config/i386/i386.c (ix86_print_operand): Likewise.
16890 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16891 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16892 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16893 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16894 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16895 * config/sparc/sparc.c (output_cbranch): Likewise.
16896 * config/spu/spu.c (get_branch_target): Likewise.
16897 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16898 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16899
16900 2013-09-23 Jan Hubicka <jh@suse.cz>
16901
16902 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16903 for ipa-devirt.
16904 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16905 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16906 of external calls
16907 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16908 (gimple_fold_call): Dump inconsistent devirtualizations; add
16909 sanity check for type based devirtualizations.
16910 * ipa-prop.c: Include ipa-utils.h
16911 (ipa_intraprocedural_devirtualization): Add sanity check.
16912 (try_make_edge_direct_virtual_call): Likewise.
16913
16914 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16915
16916 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16917 assignment statements.
16918
16919 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16920
16921 * gimple-pretty-print.c (dump_ssaname_info): New function.
16922 (dump_gimple_phi): Call it.
16923 (pp_gimple_stmt_1): Likewise.
16924 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16925 (range_info_def): Declare.
16926 * tree-pretty-print.c (pp_double_int): New function.
16927 (dump_generic_node): Call it.
16928 * tree-pretty-print.h (pp_double_int): Declare.
16929 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16930 * tree-ssanames.h (range_info_def): New structure.
16931 (value_range_type): Move definition here.
16932 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16933 Declare.
16934 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16935 initialization.
16936 (set_range_info): New function.
16937 (get_range_info): Likewise.
16938 (duplicate_ssa_name_range_info): Likewise.
16939 (duplicate_ssa_name_fn): Check pointer type and call
16940 duplicate_ssa_name_range_info.
16941 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16942 * tree-vrp.c (value_range_type): Remove definition, now in
16943 tree-ssanames.h.
16944 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16945 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16946 (SSA_NAME_RANGE_INFO): New macro.
16947
16948 2013-09-23 Richard Biener <rguenther@suse.de>
16949
16950 PR tree-optimization/58464
16951 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16952 (phi_trans_add): Change to add conditionally on being not present.
16953 (phi_translate_1): Remove recursion detection here.
16954 (phi_translate): Pre-seed the cache with NULL to catch
16955 recursion here in a more generic way.
16956 (bitmap_find_leader): Adjust comment.
16957 (get_representative_for): Dump value-numbers.
16958 (create_expression_by_pieces): Likewise.
16959 (insert_into_preds_of_block): Likewise.
16960
16961 2013-09-23 Christian Bruel <christian.bruel@st.com>
16962
16963 PR target/58475
16964 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16965 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16966
16967 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16968
16969 Revert r202780:
16970 2013-09-20 Renlin Li <renlin.li@arm.com>
16971
16972 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16973 plus_constant.
16974 (aarch64_expand_epilogue): Likewise.
16975 (aarch64_legitimize_reload_address): Likewise.
16976
16977 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16978
16979 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16980 NULL_TREE before pushing them onto the vector. Likewise for labels.
16981
16982 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16983
16984 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16985 comparison operators when -fno-trapping-math is in effect.
16986 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16987 comparison operators in TFmode and assert that unsupported operators
16988 cannot reach here.
16989 (ia64_print_operand): Likewise.
16990
16991 2013-09-21 Jan Hubicka <jh@suse.cz>
16992
16993 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16994 (sse_typeless_stores): Enable for core
16995 (sse_load0_by_pxor): Likewise.
16996 (four_jump_limit): Disable for core.
16997 (pad_returns): Likewise.
16998 (avoid_vector_decode): Likewise.
16999 (fuse_cmp_and_branch): Enable for cores.
17000 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
17001
17002 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17003
17004 PR middle-end/56791
17005 * config/pa/pa.c (pa_option_override): Disable auto increment and
17006 decrement instructions until reload is completed.
17007
17008 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
17009 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17010 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17011
17012 2013-09-20 DJ Delorie <dj@redhat.com>
17013 Nick Clifton <nickc@redhat.com>
17014
17015 * config/rl78/rl78.c: Various whitespace and comment tweaks.
17016 (need_to_save): Save bank 0 on interrupts.
17017 (characterize_address): Strip far address wrappers.
17018 (rl78_as_legitimate_address): Likewise.
17019 (transcode_memory_rtx): Likewise.
17020 (rl78_peep_movhi_p): Disable this peephole after devirt.
17021 (rl78_propogate_register_origins): Forget all origins when a
17022 CLOBBER is seen.
17023 * config/rl78/rl78-virt.md: Various whitespace tweaks.
17024 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
17025 peephole2's.
17026 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17027 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17028 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17029 relocating.
17030 * config/rl78/constraints.md: Various whitespace and paren tweaks.
17031
17032 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17033
17034 * config/pa/pa.md: In "scc" insn patterns, change output template to
17035 handle const0_rtx in reg_or_0_operand operands.
17036
17037 2013-09-20 Martin Husemann <martin@NetBSD.org>
17038
17039 PR target/56875
17040 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17041 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17042
17043 2013-09-20 Richard Biener <rguenther@suse.de>
17044
17045 PR middle-end/58484
17046 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17047 remembering SSA name version and block index.
17048 (new_scev_info_str): Adjust.
17049 (hash_scev_info): Likewise. Also hash the block index.
17050 (eq_scev_info): Adjust.
17051 (find_var_scev_info): Likewise.
17052 (struct instantiate_cache_entry): Remove.
17053 (struct instantiate_cache_type): Use a htab to map name, block
17054 to chrec.
17055 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17056 (get_instantiated_value_entry): Likewise.
17057 (hash_idx_scev_info, eq_idx_scev_info): New functions.
17058 (instantiate_scev_name): Adjust.
17059
17060 2013-09-20 Jeff Law <law@redhat.com>
17061
17062 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17063
17064 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
17065
17066 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17067 Call aarch64_simd_expand_args to update op[argc].
17068
17069 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17070
17071 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17072 plugin argument.
17073
17074 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17075
17076 * gengtype.c (file_rules): Added rule for *.cc files.
17077 (get_output_file_with_visibility): Give fatal message when no
17078 rules found.
17079
17080 2013-09-20 Renlin Li <renlin.li@arm.com>
17081
17082 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17083 (aarch64_expand_epilogue): Likewise.
17084 (aarch64_legitimize_reload_address): Likewise.
17085
17086 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17087
17088 PR middle-end/57748
17089 * expr.c (expand_assignment): Remove misalignp code path.
17090
17091 2013-09-20 Marek Polacek <polacek@redhat.com>
17092
17093 PR sanitizer/58413
17094 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17095 TYPE_PRECISION. Add asserts.
17096
17097 2013-09-20 Richard Biener <rguenther@suse.de>
17098
17099 PR tree-optimization/58453
17100 * tree-loop-distribution.c (distribute_loop): Apply the cost
17101 model for -ftree-loop-distribute-patterns, too.
17102
17103 2013-09-20 Richard Biener <rguenther@suse.de>
17104
17105 PR middle-end/58473
17106 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17107 make type comparison less strict.
17108
17109 2013-09-20 Alan Modra <amodra@gmail.com>
17110
17111 * configure: Regenerate.
17112 * aclocal.m4: Regenerate.
17113
17114 2013-09-20 Marek Polacek <polacek@redhat.com>
17115
17116 PR other/58467
17117 * doc/extend.texi: Document that attribute used is meant to be used
17118 on variables with static storage duration.
17119
17120 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17121
17122 PR tree-optimization/58472
17123 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17124 simd_lane_access set inv_p = false.
17125 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17126 the simduid magic VAR_DECL.
17127
17128 2013-09-19 Jan Hubicka <jh@suse.cz>
17129
17130 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17131
17132 2013-09-17 Jeff Law <law@redhat.com>
17133
17134 * tree-ssa-dom.c (record_temporary_equivalences): New function
17135 split out of dom_opt_dom_walker::after_dom_children.
17136 (dom_opt_dom_walker::thread_across_edge): Move common code
17137 in here from dom_opt_dom_walker::after_dom_children.
17138 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17139
17140 2013-09-19 Jan Hubicka <jh@suse.cz>
17141
17142 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17143 (TARGET_GENERIC): Use PROCESOR_GENERIC
17144 (enum processor_type): Unify generic32 and 64.
17145 * i386.md (cpu): Likewise.
17146 * x86-tune.def (use_leave): Enable for generic32.
17147 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17148 * athlon.md: Change generic64 to generic in all occurences.
17149 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17150 (ix86_target_macros_internal): Likewise.
17151 * driver-i386.c (host_detect_local_cpu): Likewise.
17152 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17153 to ..
17154 (generic_memcpy, generic_memset, generic_cost): This one.
17155 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17156 (m_GENERIC32, m_GENERIC64): Remove.
17157 (m_GENERIC): Turn into one flag.
17158 (processor_target): Unify generic tunnings.
17159 (ix86_option_override_internal): Replace generic32/64 by generic.
17160 (ix86_issue_rate): Likewise.
17161 (ix86_adjust_cost): Likewise.
17162
17163 2013-09-19 Jan Hubicka <jh@suse.cz>
17164
17165 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17166 of speculative flag.
17167
17168 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17169
17170 * omp-low.c (expand_omp_sections): Always pass len - 1 to
17171 GOMP_sections_start, even if !exit_reachable.
17172
17173 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17174
17175 * lra-constraints.c (need_for_all_save_p): Use macro
17176 HARD_REGNO_CALL_PART_CLOBBERED.
17177 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17178 set up pseudo conflict hard regs.
17179
17180 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17181
17182 PR target/58452
17183 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17184 operands.
17185
17186 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17187
17188 PR rtl-optimization/58438
17189 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17190 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17191 from previous subpasses.
17192
17193 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
17194
17195 * arm.c (arm_get_frame_offsets): Validate architecture supports
17196 LDRD/STRD before accepting the tuning preference.
17197 (arm_expand_prologue): Likewise.
17198 (arm_expand_epilogue): Likewise.
17199
17200 2013-09-18 Richard Biener <rguenther@suse.de>
17201
17202 PR tree-optimization/58417
17203 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17204 have chrecs with symbols defined in the loop as operands.
17205 (chrec_fold_multiply): Likewise.
17206 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17207 parameters before folding binary operations.
17208 (struct instantiate_cache_entry_hasher): Remove.
17209 (struct instantiate_cache_type): Use a pointer-map.
17210 (instantiate_cache_type::instantiate_cache_type): New function.
17211 (instantiate_cache_type::get): Likewise.
17212 (instantiate_cache_type::set): Likewise.
17213 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17214 (get_instantiated_value_entry): Likewise.
17215 (global_cache): New global.
17216 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17217 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17218 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17219 (instantiate_scev_name): Adjust.
17220 (instantiate_scev): Construct global instead of local cache.
17221 (resolve_mixers): Likewise.
17222
17223 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
17224 Paolo Carlini <paolo.carlini@oracle.com>
17225
17226 PR c++/58458
17227 * doc/implement-cxx.texi: Fix references to the C++ standards.
17228
17229 2013-09-18 Jakub Jelinek <jakub@redhat.com>
17230
17231 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17232 * tree-vect-data-refs.c (vect_analyze_data_refs): For
17233 simd_lane_access drs, update also DR_ALIGNED_TO.
17234
17235 2013-09-18 Marek Polacek <polacek@redhat.com>
17236
17237 PR sanitizer/58411
17238 * doc/extend.texi: Document no_sanitize_undefined attribute.
17239 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17240 no_sanitize_undefined attribute.
17241
17242 2013-09-18 Nick Clifton <nickc@redhat.com>
17243
17244 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17245 (ASM_DECLARE_FUNCTION_NAME): Define.
17246
17247 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
17248
17249 * compare-elim.c (find_comparison_dom_walker): New class
17250 (find_comparisons_in_bb): Rename to
17251 find_comparison_dom_walker::before_dom_children
17252 (find_comparisons): Adjust
17253 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17254 adjust.
17255 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17256 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17257 (init_walk_dominator_tree): Remove declaration.
17258 (fini_walk_dominator_tree): Remove declaration.
17259 * fwprop.c (single_def_use_dom_walker): New class
17260 (single_def_use_enter_block): Convert to
17261 single_def_use_dom_walker::before_dom_children.
17262 (single_def_use_leave_block): Convert to
17263 single_def_use_dom_walker::after_dom_children.
17264 (build_single_def_use_links): Adjust.
17265 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17266 class.
17267 (find_candidates_in_block): Convert to
17268 find_candidates_dom_walker::before_dom_children.
17269 (execute_strength_reduction): Adjust.
17270 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17271 (sese_dom_walker): New class.
17272 (sese_dom_walker::sese_dom_walker): New constructor.
17273 (sese_dom_walker::~sese_dom_walker): New destructor.
17274 (build_sese_conditions_before): Convert to
17275 sese_dom_walker::before_dom_children.
17276 (build_sese_conditions_after): Convert to
17277 sese_dom_walker::after_dom_children.
17278 (build_poly_scop): Adjust
17279 * tree-into-ssa.c (rewrite_dom_walker): New class
17280 (rewrite_enter_block): Convert to
17281 rewrite_dom_walker::before_dom_children.
17282 (rewrite_leave_block): Convert to
17283 rewrite_dom_walker::after_dom_children.
17284 (rewrite_update_dom_walker): New class.
17285 (rewrite_update_enter_block): Convert to
17286 rewrite_update_dom_walker::before_dom_children.
17287 (rewrite_update_leave_block): Convert to
17288 rewrite_update_dom_walker::after_dom_children.
17289 (rewrite_blocks, rewrite_into_ssa): Adjust.
17290 (mark_def_dom_walker): New class.
17291 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17292 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17293 (mark_def_sites_blocks): Convert to
17294 mark_def_dom_walker::before_dom_children.
17295 (mark_def_site_blocks): Remove.
17296 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17297 (tree_ssa_dominator_optimize): Adjust.
17298 (dom_thread_across_edge): Convert to method
17299 dom_opt_dom_walker::thread_across_edge.
17300 (dom_opt_enter_block): Convert to member function
17301 dom_opt_dom_walker::before_dom_children.
17302 (dom_opt_leave_block): Convert to member function
17303 dom_opt_dom_walker::after_dom_children.
17304 * tree-ssa-dse.c (dse_dom_walker): New class.
17305 (dse_enter_block): Convert to member function
17306 dse_dom_walker::before_dom_children.
17307 (tree_ssa_dse): Adjust.
17308 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17309 (determine_invariantness_stmt): Convert to method
17310 invariantness_dom_walker::before_dom_children.
17311 (determine_invariantness): Remove
17312 (move_computations_dom_walker): New class.
17313 (move_computations_stmt): Convert to method
17314 move_computations_dom_walker::before_dom_children.
17315 (move_computations, tree_ssa_lim): Adjust.
17316 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17317 (nt_init_block): Convert to method
17318 notrappping_dom_walker::before_dom_children.
17319 (nt_fini_block): Convert to method
17320 method nontrapping_dom_walker::after_dom_children.
17321 (get_non_trapping): Adjust.
17322 * tree-ssa-pre.c (eliminate_dom_walker): New class.
17323 (eliminate_bb): Convert to method
17324 eliminate_dom_walker::before_dom_children.
17325 (eliminate_leave_block): Convert to method
17326 eliminate_dom_walker::after_dom_children.
17327 (eliminate): Adjust.
17328 * tree-ssa-strlen.c (strlen_dom_walker): New class.
17329 (strlen_enter_block): Convert to method
17330 strlen_dom_walker::before_dom_children.
17331 (strlen_leave_block): Convert to method
17332 method strlen_dom_walker::after_dom_children.
17333 (tree_ssa_strlen): Adjust.
17334 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17335 (tree_ssa_uncprop): Adjust.
17336 (uncprop_leave_block): Convert to method
17337 uncprop_dom_walker::after_dom_children.
17338 (uncprop_leave_block): Convert to method
17339 uncprop_dom_walker::before_dom_children.
17340
17341 2013-09-18 Bin Cheng <bin.cheng@arm.com>
17342
17343 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17344 branch in same basic block. Check both src and dest of the move insn.
17345
17346 2013-09-17 Nick Clifton <nickc@redhat.com>
17347
17348 * config/rl78/rl78-real.md (bf): New pattern.
17349 (bt): New pattern.
17350 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17351 (rl78_print_operand): Do not put a # before a %B.
17352 * config/rl78/rl78.opt: Tweak doc strings.
17353
17354 2013-09-17 DJ Delorie <dj@redhat.com>
17355
17356 * config/rl78/constraints.md (Wcv): Allow up to $r31.
17357 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17358 (rl78_option_override): Likewise, if -mallregs.
17359 (is_virtual_register): Likewise.
17360 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17361 (REGNO_OK_FOR_BASE_P): Likewise.
17362 * config/rl78/rl78.opt (-mallregs): New.
17363
17364 2013-09-17 Nick Clifton <nickc@redhat.com>
17365
17366 * config/rl78/rl78.c (need_to_save): Change return type to bool.
17367 For interrupt functions: save all call clobbered registers if the
17368 interrupt handler is not a leaf function.
17369 (rl78_expand_prologue): Always recompute the frame information.
17370 For interrupt functions: only select bank 0 if one of the bank 0
17371 registers is going to be psuhed.
17372
17373 2013-09-17 DJ Delorie <dj@redhat.com>
17374
17375 * config/rl78/constraints.md: For each W* constraint, rename to C*
17376 and create a W* constraint that checks for an optional ES: prefix
17377 pattern also.
17378 * config/rl78/rl78.md (UNS_ES_ADDR): New.
17379 (es_addr): New. Used to wrap far addresses.
17380 * config/rl78/rl78-protos.h (rl78_es_addr): New.
17381 (rl78_es_base): New.
17382 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17383 wrapped far addresses.
17384 (rl78_print_operand_1): Unwrap far addresses before processing.
17385 (rl78_lo16): Wrap far addresses in unspecs.
17386 (rl78_es_addr): New.
17387 (rl78_es_base): New.
17388 (insn_ok_now): Check for not-yet-wrapped far addresses.
17389 (transcode_memory_rtx): Properly re-wrap far addresses.
17390
17391 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17392
17393 * config/sparc/t-rtems: Add leon3 multilibs.
17394
17395 2013-09-17 Cong Hou <congh@google.com>
17396
17397 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17398 when checking the dot production pattern. The type of rhs operand
17399 of multiply is now checked correctly.
17400
17401 2013-09-17 Jeff Law <law@redhat.com>
17402
17403 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17404 edge implied equivalences into successor phis.
17405 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17406 here from tree-ssa-threadedge.c.
17407 (mark_threaded_blocks): When threading through a joiner, if both
17408 successors of the joiner's clone reach the same block, verify the
17409 PHI arguments are equal. If not, cancel the jump threading request.
17410 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17411 tree-ssa-threadupdate.c
17412 (thread_across_edge): Don't check PHI argument equality when
17413 threading through joiner block here.
17414
17415 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
17416
17417 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17418 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17419 (warn_uninit, warn_uninitialized_vars,
17420 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17421 Move to tree-ssa-uninit.c.
17422 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17423 (has_undefined_value_p): New. Pass dependant parts of
17424 ssa_undefined_value_p.
17425 (uninit_undefined_value_p): Use has_undefined_value_p.
17426 (warn_uninit, warn_uninitialized_vars,
17427 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17428 Move from tree-ssa.c.
17429 * tree-ssa.h: Adjust prototypes.
17430
17431 2013-09-17 Jan Hubicka <jh@suse.cz>
17432
17433 PR middle-end/58332
17434 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17435 * ipa-inline.c (can_inline_edge_p): Do not downgrade
17436 FUNCTION_NOT_OPTIMIZED.
17437 * ipa-inline-analysis.c (compute_inline_parameters): Function
17438 not optimized is not inlinable unless it is alwaysinline.
17439 (inline_analyze_function): Force calls in not optimized
17440 function not inlinable.
17441
17442 2013-09-17 Jan Hubicka <jh@suse.cz>
17443
17444 PR middle-end/58329
17445 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17446 to return NULL.
17447 * ipa.c (function_and_variable_visibility): Likewise.
17448 * ipa-profile.c (ipa_profile): Likewise.
17449
17450 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
17451
17452 PR ipa/58398
17453 * cgraph.c (cgraph_function_body_availability): Check for ifunc
17454 attribute, and don't inline the resolver in this case.
17455
17456 2013-09-17 Teresa Johnson <tejohnson@google.com>
17457
17458 * coverage.c (get_coverage_counts): Add missing newline.
17459
17460 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17461
17462 PR tree-optimization/58088
17463 * fold-const.c (mask_with_trailing_zeros): New function.
17464 (fold_binary_loc): Make sure we don't recurse infinitely
17465 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17466 Use mask_with_trailing_zeros where appropriate.
17467
17468 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17469
17470 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17471 of 'prev' var to get better distance estimation.
17472
17473 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17474
17475 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17476 * tree-inline.c (is_parameter_of): New predicate.
17477 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17478 a parameter has been remapped.
17479 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17480 (optimize_inline_calls): Initialize transform_parameter.
17481 (copy_gimple_seq_and_replace_locals): Likewise.
17482 (tree_function_versioning): Likewise.
17483 (maybe_inline_call_in_expr): Likewise.
17484
17485 2013-09-17 Nick Clifton <nickc@redhat.com>
17486
17487 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17488 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17489 interrupt handlers.
17490 (is_attr_func): New function.
17491 (msp430_is_interrupt_func): New function.
17492 (is_naked_func): New function.
17493 (is_reentrant_func): New function.
17494 (is_critical_func): New function.
17495 (msp430_start_function): Add annotations for function attributes.
17496 (msp430_attr): New function.
17497 (msp430_attribute_table): New.
17498 (msp430_function_section): New function.
17499 (TARGET_ASM_FUNCTION_SECTION): Define.
17500 (msp430_builtin): New enum.
17501 (msp430_init_builtins): New function.
17502 (msp430_builtin_devl): New function.
17503 (msp430_expand_builtin): New function.
17504 (TARGET_INIT_BUILTINS): Define.
17505 (TARGET_EXPAND_BUILTINS): Define.
17506 (TARGET_BUILTIN_DECL): Define.
17507 (msp430_expand_prologue): Add support for naked, interrupt,
17508 critical and reentrant functions.
17509 (msp430_expand_epilogue): Likewise.
17510 (msp430_print_operand): Handle 'O' character.
17511 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17512 NO_TRAMPOLINES.
17513 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17514 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17515 (pushm): Use a 'n' rather than an 'i' constraint.
17516 (msp_return): Add generation of the interrupt return instruction.
17517 (disable_interrupts): New pattern.
17518 (enable_interrupts): New pattern.
17519 (push_intr_state): New pattern.
17520 (pop_intr_state): New pattern.
17521 (bic_SR): New pattern.
17522 (bis_SR): New pattern.
17523 * doc/extend.texi: Document MSP430 function attributes and builtin
17524 functions.
17525
17526 2013-09-17 Richard Biener <rguenther@suse.de>
17527
17528 PR tree-optimization/58432
17529 * tree-loop-distribution.c (tree_loop_distribution): Also
17530 scan PHIs for outside loop uses and seed a partition from them.
17531
17532 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17533
17534 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17535 (restructure_reference): Call backtrace_base_for_ref.
17536
17537 2013-09-17 Alan Modra <amodra@gmail.com>
17538
17539 PR target/57589
17540 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17541 patch.
17542
17543 2013-09-16 DJ Delorie <dj@redhat.com>
17544
17545 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17546 vregs location for RL78/G10.
17547 (rl78_expand_prologue): Avoid SEL on G10.
17548 (rl78_expand_epilogue): Likewise.
17549 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17550 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17551 __RL78_G10__ when appropriate.
17552 (ASM_SPEC): Pass -mg10 along to the assembler.
17553 * config/rl78/rl78.md (sel_rb): Disable for G10.
17554 * config/rl78/rl78.opt: Add -mg10 option.
17555 * config/rl78/t-rl78: Add -mg10 multilib.
17556
17557 2013-09-16 Xinliang David Li <davidxl@google.com>
17558
17559 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17560 * omp-low.c (omp_max_vf): Ditto.
17561 (expand_omp_simd): Ditto.
17562 * tree-vectorizer.c (vectorize_loops): Ditto.
17563 (gate_vect_slp): Ditto.
17564 (gate_increase_alignment): Ditto.
17565 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17566 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17567 (gate_tree_vectorize): Name change.
17568 (tree_vectorize): Ditto.
17569 (pass_vectorize::gate): Call new function.
17570 (pass_vectorize::execute): Ditto.
17571 * opts.c: O3 default setting change.
17572 (finish_options): Check new flag.
17573 * doc/invoke.texi: Document new flags.
17574 * common.opt: New flags.
17575
17576 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17577
17578 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17579 (Condition Code): Don't reference it.
17580 * doc/tm.texi: Regenerate.
17581
17582 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17583
17584 PR middle-end/58418
17585 * lra-constraints.c (undo_optional_reloads): Consider all optional
17586 reload even if it did not get a hard reg.
17587
17588 2013-09-16 Teresa Johnson <tejohnson@google.com>
17589
17590 * dumpfile.c (dump_loc): Remove newline emission.
17591 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17592 emission to dump_printf_loc calls where missing.
17593 (vect_mark_for_runtime_alias_test): Ditto.
17594 (vect_analyze_data_ref_dependence): Ditto.
17595 (vect_analyze_data_ref_dependences): Ditto.
17596 (vect_slp_analyze_data_ref_dependence): Ditto.
17597 (vect_slp_analyze_data_ref_dependences): Ditto.
17598 (vect_compute_data_ref_alignment): Ditto.
17599 (vect_update_misalignment_for_peel): Ditto.
17600 (vect_verify_datarefs_alignment): Ditto.
17601 (vector_alignment_reachable_p): Ditto.
17602 (vect_get_data_access_cost): Ditto.
17603 (vect_enhance_data_refs_alignment): Ditto.
17604 (vect_find_same_alignment_drs): Ditto.
17605 (vect_analyze_data_refs_alignment): Ditto.
17606 (vect_analyze_group_access): Ditto.
17607 (vect_analyze_data_ref_access): Ditto.
17608 (vect_analyze_data_ref_accesses): Ditto.
17609 (vect_prune_runtime_alias_test_list): Ditto.
17610 (vect_analyze_data_refs): Ditto.
17611 (vect_create_addr_base_for_vector_ref): Ditto.
17612 (vect_create_data_ref_ptr): Ditto.
17613 (vect_grouped_store_supported): Ditto.
17614 (vect_grouped_load_supported): Ditto.
17615 * value-prof.c (check_counter): Ditto.
17616 (check_ic_target): Ditto.
17617 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17618 (vect_recog_widen_mult_pattern): Ditto.
17619 (vect_recog_widen_sum_pattern): Ditto.
17620 (vect_recog_over_widening_pattern): Ditto.
17621 (vect_recog_widen_shift_pattern): Ditto.
17622 (vect_recog_rotate_pattern): Ditto.
17623 (vect_recog_vector_vector_shift_pattern): Ditto.
17624 (vect_recog_divmod_pattern): Ditto.
17625 (vect_recog_mixed_size_cond_pattern): Ditto.
17626 (vect_recog_bool_pattern): Ditto.
17627 (vect_pattern_recog_1): Ditto.
17628 (vect_pattern_recog): Ditto.
17629 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17630 (vect_is_simple_iv_evolution): Ditto.
17631 (vect_analyze_scalar_cycles_1): Ditto.
17632 (vect_get_loop_niters): Ditto.
17633 (vect_analyze_loop_1): Ditto.
17634 (vect_analyze_loop_form): Ditto.
17635 (vect_analyze_loop_operations): Ditto.
17636 (vect_analyze_loop_2): Ditto.
17637 (vect_analyze_loop): Ditto.
17638 (report_vect_op): Ditto.
17639 (vect_is_slp_reduction): Ditto.
17640 (vect_is_simple_reduction_1): Ditto.
17641 (vect_get_known_peeling_cost): Ditto.
17642 (vect_estimate_min_profitable_iters): Ditto.
17643 (vect_model_reduction_cost): Ditto.
17644 (vect_model_induction_cost): Ditto.
17645 (get_initial_def_for_induction): Ditto.
17646 (vect_create_epilog_for_reduction): Ditto.
17647 (vectorizable_reduction): Ditto.
17648 (vectorizable_induction): Ditto.
17649 (vectorizable_live_operation): Ditto.
17650 (vect_loop_kill_debug_uses): Ditto.
17651 (vect_transform_loop): Ditto.
17652 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17653 (vect_stmt_relevant_p): Ditto.
17654 (process_use): Ditto.
17655 (vect_mark_stmts_to_be_vectorized): Ditto.
17656 (vect_model_simple_cost): Ditto.
17657 (vect_model_promotion_demotion_cost): Ditto.
17658 (vect_model_store_cost): Ditto.
17659 (vect_get_store_cost): Ditto.
17660 (vect_model_load_cost): Ditto.
17661 (vect_get_load_cost): Ditto.
17662 (vect_init_vector_1): Ditto.
17663 (vect_get_vec_def_for_operand): Ditto.
17664 (vect_finish_stmt_generation): Ditto.
17665 (vectorizable_call): Ditto.
17666 (vectorizable_conversion): Ditto.
17667 (vectorizable_assignment): Ditto.
17668 (vectorizable_shift): Ditto.
17669 (vectorizable_operation): Ditto.
17670 (vectorizable_store): Ditto.
17671 (vectorizable_load): Ditto.
17672 (vectorizable_condition): Ditto.
17673 (vect_analyze_stmt): Ditto.
17674 (vect_transform_stmt): Ditto.
17675 (vect_is_simple_use): Ditto.
17676 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17677 (vect_can_advance_ivs_p): Ditto.
17678 (vect_update_ivs_after_vectorizer): Ditto.
17679 (vect_do_peeling_for_loop_bound): Ditto.
17680 (vect_gen_niters_for_prolog_loop): Ditto.
17681 (vect_update_inits_of_drs): Ditto.
17682 (vect_create_cond_for_alias_checks): Ditto.
17683 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17684 (vect_build_slp_tree_1): Ditto.
17685 (vect_supported_load_permutation_p): Ditto.
17686 (vect_analyze_slp_instance): Ditto.
17687 (vect_analyze_slp): Ditto.
17688 (vect_make_slp_decision): Ditto.
17689 (vect_detect_hybrid_slp): Ditto.
17690 (vect_bb_vectorization_profitable_p): Ditto.
17691 (vect_slp_analyze_bb_1): Ditto.
17692 (vect_update_slp_costs_according_to_vf): Ditto.
17693 (vect_get_mask_element): Ditto.
17694 (vect_transform_slp_perm_load): Ditto.
17695 (vect_schedule_slp_instance): Ditto.
17696 (vect_schedule_slp): Ditto.
17697 (vect_slp_transform_bb): Ditto.
17698 * profile.c (read_profile_edge_counts): Ditto.
17699 (compute_branch_probabilities): Ditto.
17700 * coverage.c (get_coverage_counts): Ditto.
17701
17702 2013-09-16 Diego Novillo <dnovillo@google.com>
17703
17704 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17705
17706 2013-09-16 Jan Hubicka <jh@suse.cz>
17707
17708 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17709 abstract functions; for static functions check the presence of body.
17710
17711 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17712
17713 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17714 * config/aarch64/aarch64-simd.md
17715 (aarch64_mla_elt<mode>): New.
17716 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17717 (aarch64_mls_elt<mode>): Likewise.
17718 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17719 (aarch64_fma4_elt<mode>): Likewise.
17720 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17721 (aarch64_fma4_elt_to_128v2df): Likewise.
17722 (aarch64_fma4_elt_to_64df): Likewise.
17723 (fnma<mode>4): Likewise.
17724 (aarch64_fnma4_elt<mode>): Likewise.
17725 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17726 (aarch64_fnma4_elt_to_128v2df): Likewise.
17727 (aarch64_fnma4_elt_to_64df): Likewise.
17728 * config/aarch64/iterators.md (VDQSF): New.
17729 * config/aarch64/arm_neon.h
17730 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17731 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17732
17733 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17734
17735 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17736 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17737 (aarch64_mul3_elt_to_128df): Likewise.
17738 (aarch64_mul3_elt_to_64v2df): Likewise.
17739 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17740 (VMUL): New.
17741 (VMUL_CHANGE_NLANES) Likewise.
17742 (h_con): Likewise.
17743 (f): Likewise.
17744 * config/aarch64/arm_neon.h
17745 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17746
17747 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17748
17749 * config/aarch64/arm_neon.h
17750 (vcvtx_high_f32_f64): Fix parameters.
17751
17752 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17753 Uros Bizjak <ubizjak@gmail.com>
17754
17755 * config/alpha.c: Include tree-ssanames.h.
17756
17757 2013-09-16 Richard Biener <rguenther@suse.de>
17758
17759 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17760 (dot_rdg_1): Handle control_dd.
17761 (create_edge_for_control_dependence): New function.
17762 (create_rdg_edges): Add control dependences if asked for.
17763 (build_rdg): Likewise.
17764 (generate_loops_for_partition): If there are not necessary
17765 control stmts remove all their dependencies.
17766 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17767 (distribute_loop): Pass on control dependences.
17768 (tree_loop_distribution): Compute control dependences and remove
17769 restriction on number of loop nodes.
17770
17771 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17772
17773 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17774 for internal calls.
17775
17776 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17777
17778 * cse.c (try_const_anchors): Punt on CC modes.
17779
17780 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17781
17782 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17783
17784 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17785
17786 PR target/58382
17787 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17788 calls to word_mode.
17789
17790 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17791
17792 PR target/48094
17793 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17794 seen.
17795 (darwin_objc1_section): Likewise.
17796 (darwin_file_end): Emit Image Info section when required.
17797
17798 2013-09-14 Jan Hubicka <jh@suse.cz>
17799
17800 * tree-into-ssa.c (gate_into_ssa): New.
17801 (pass_data_build_ssa): Use it.
17802 * cgraph.h (expand_thunk): Update prototype.
17803 * cgraphunit.c (analyze_function): Expand thunks early.
17804 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17805 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17806 set lowered flag; do not add new function.
17807 (assemble_thunks_and_aliases): Update.
17808 * tree-ssa.c (gate_init_datastructures): New gate.
17809 (pass_data_init_datastructures): Use it.
17810
17811 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17812
17813 PR target/58269
17814 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17815 xmm register set described in the psABI.
17816
17817 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17818
17819 * dwarf2out.c (should_emit_struct_debug): Add check
17820 for type_decl variable is not NULL.
17821
17822 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17823
17824 * config.gcc: Use new winnt-c.c target hooks
17825 * config/t-winnt: New file
17826 * config/winnt-c.c: New file
17827 * doc/tm.texi.in: Document new hook
17828 * doc/tm.texi: Regenerated
17829
17830 2013-09-13 Jan Hubicka <jh@suse.cz>
17831
17832 PR middle-end/58094
17833 * ipa-inline.c (check_callers): New function.
17834 (check_caller_edge): Remove.
17835 (want_inline_function_to_all_callers_p): Also permit alises that are
17836 called dirrectly.
17837 (inline_to_all_callers): Terminate the walk when devirtualization
17838 introduce new calls.
17839
17840 2013-09-13 Jan Hubicka <jh@suse.cz>
17841
17842 * ipa-inline-analysis.c (struct growth_data): Add node.
17843 (do_estimate_growth_1): Fix detection of recursion.
17844
17845 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17846
17847 PR tree-optimization/58392
17848 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17849 to avoid shadowing of outer loop variable. If
17850 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17851 replace_by_duplicate_decl simduid of loops that have it set and
17852 set dest_cfun->has_simduid_loops and/or
17853 dest_cfun->has_force_vect_loops.
17854 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17855 instead of maybe_lookup_decl.
17856 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17857 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17858 call. Copy over force_vect and copy and remap simduid. Set
17859 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17860 (copy_cfg_body): Remove blocks_to_copy argument. Use
17861 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17862 caller. Don't set cfun->has_simduid_loops and/or
17863 cfun->has_force_vect_loops here.
17864 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17865 caller.
17866 (expand_call_inline, tree_function_versioning): Adjust copy_body
17867 callers.
17868
17869 2013-09-13 Martin Jambor <mjambor@suse.cz>
17870
17871 PR bootstrap/58388
17872 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17873 the assert if the edge was a speculative one.
17874
17875 2013-09-13 Richard Biener <rguenther@suse.de>
17876
17877 * tree-data-ref.h (known_dependences_p): Move here ...
17878 * tree-loop-distribution.c (known_dependences_p): ... from here.
17879 (dump_rdg_component, debug_rdg_component): Remove.
17880 (dump_rdg): Adjust.
17881 (generate_loops_for_partition): Use gimple_uid instead of
17882 relying on matching stmt visit order.
17883 (rdg_build_partitions): Take starting stmt vector.
17884 (ldist_gen): Merge into ...
17885 (distribute_loop): ... this function. Do not compute starting
17886 vertices vector.
17887 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17888
17889 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17890
17891 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17892 Set type attribute correctly. Set predicable_short_it attribute.
17893 (cmpsi_shiftsi): Remove %? from output template.
17894
17895 2013-09-13 Richard Biener <rguenther@suse.de>
17896
17897 * tree-loop-distribution.c (struct rdg_component,
17898 rdg_defs_used_in_other_loops_p, free_rdg_components,
17899 rdg_build_components): Remove.
17900 (stmts_from_loop): Do not record virtual PHIs.
17901 (generate_loops_for_partition): Skip virtual PHIs.
17902 (build_rdg_partition_for_component): Rename to ...
17903 (build_rdg_partition_for_vertex): ... this and adjust.
17904 (rdg_build_partitions): Take a vector of starting vertices
17905 instead of components. Remove unnecessary leftover handling.
17906 (ldist_gen): Do not build components or record other stores.
17907 (distribute_loop): Do not distribute loops containing stmts
17908 with side-effects.
17909
17910 2013-09-13 Christian Bruel <christian.bruel@st.com>
17911
17912 PR target/58314
17913 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17914
17915 2013-09-13 Kai Tietz <ktietz@redhat.com>
17916
17917 * config.gcc: Separate cases for mingw and cygwin targets,
17918 and add 64-bit cygwin target case.
17919
17920 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17921 dll-export inline-functions.
17922 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17923
17924 2013-09-13 Jeff Law <law@redhat.com>
17925
17926 PR middle-end/58387
17927 Revert:
17928 2013-09-06 Jeff Law <law@redhat.com>
17929
17930 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17931 edge implied equivalences into successor phis.
17932
17933 2013-09-12 DJ Delorie <dj@redhat.com>
17934
17935 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17936 separators.
17937
17938 2013-09-12 Brooks Moses <bmoses@google.com>
17939
17940 PR driver/42955
17941 * Makefile.in: Do not install driver binaries in $(target)/bin.
17942
17943 2013-09-12 DJ Delorie <dj@redhat.com>
17944
17945 * config/rl78/rl78.opt (mrelax): New.
17946 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17947 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17948
17949 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17950 between SP and FP.
17951 (rl78_expand_epilogue): Likewise.
17952
17953 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17954
17955 PR middle-end/58335
17956 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17957 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17958 pointer elimination with using remove_reg_equal_offset_note.
17959
17960 2013-09-12 DJ Delorie <dj@redhat.com>
17961
17962 * config/msp430/: New port.
17963 * config.gcc (msp430): Added.
17964 * doc/invoke.texi: Document MSP430 options.
17965 * doc/install.texi: Document msp430-elf
17966 * doc/md.texi: Document msp430-elf
17967 * doc/contrib.texi: Document msp430-elf
17968
17969 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17970 PSImode.
17971
17972 2013-09-12 Martin Jambor <mjambor@suse.cz>
17973
17974 PR ipa/58389
17975 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17976 reference descriptor is NULL.
17977 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17978 edge to NULL.
17979
17980 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17981
17982 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17983 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17984 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17985 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17986 make_temp_ssa_name): move to tree-ssanames.h
17987 * tree-ssa-alias.h: Move prototype.
17988 * tree-ssa.h: Include tree-ssanames.h.
17989 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17990 * tree-ssanames.h: New. Move items from tree-flow*.h
17991 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17992
17993 2013-09-12 Richard Biener <rguenther@suse.de>
17994
17995 PR tree-optimization/58404
17996 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17997 propagate non-invariant addresses into dereferences wrapped
17998 in component references.
17999
18000 2013-09-12 Richard Biener <rguenther@suse.de>
18001
18002 PR tree-optimization/58402
18003 * passes.def: Move pass_late_warn_uninitialized later.
18004
18005 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18006
18007 * tree-ssa.h: New. Move content from tree-flow.h and
18008 tree-flow-inline.h.
18009 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
18010 Move prototypes belonging to tree-ssa.c.
18011 * tree-flow-inline.h (redirect_edge_var_map_def,
18012 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
18013 tree-ssa.h.
18014 * gimple.h: Adjust prototypes.
18015 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
18016 to...
18017 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
18018 * tree.h: Move prototype to tree-ssa.h.
18019 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
18020 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18021 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18022 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18023 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18024 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18025 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18026 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18027 graphite-blocking.c, graphite-clast-to-gimple.c,
18028 graphite-dependences.c, graphite-interchange.c,
18029 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18030 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18031 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18032 ipa-reference.c, ipa-split.c, ipa-utils.c,
18033 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18034 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18035 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18036 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18037 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18038 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18039 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18040 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18041 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18042 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18043 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18044 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18045 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18046 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18047 value-prof.c, var-tracking.c,
18048 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18049
18050 2013-09-12 Richard Biener <rguenther@suse.de>
18051
18052 PR tree-optimization/58396
18053 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18054 (build_rdg): Take a loop-nest parameter, fix memleaks.
18055 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18056
18057 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18058
18059 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18060 for SLM.
18061
18062 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
18063
18064 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18065 The FMA instruction names should have a 'v' prefix.
18066
18067 2013-09-12 Richard Biener <rguenther@suse.de>
18068
18069 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18070 (dot_rdg): Use popen instead of system in optional code.
18071 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18072 (already_processed_vertex_p): Adjust.
18073 (has_anti_or_output_dependence, predecessor_has_mem_write,
18074 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18075 rdg_flag_uses): Remove.
18076 (rdg_flag_vertex): Simplify.
18077 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18078 remove recursion.
18079 (build_rdg_partition_for_component): Process the first vertex
18080 of a component only.
18081 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18082
18083 2013-09-12 Alan Modra <amodra@gmail.com>
18084
18085 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18086
18087 2013-09-11 DJ Delorie <dj@redhat.com>
18088 Nick Clifton <nickc@redhat.com>
18089
18090 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18091 (rl78_stack_based_mem): New.
18092 * config/rl78/constraints.md (Iv08): New.
18093 (Iv16): New.
18094 (Iv24): New.
18095 (Is09): New.
18096 (Is17): New.
18097 (Is25): New.
18098 (ISsi): New.
18099 (IShi): New.
18100 (ISqi): New.
18101 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18102 (movhi): Likewise.
18103 (movsi): Change from expand to insn-and-split.
18104 (ashrsi3): Clobber AX.
18105 (lshrsi3): New.
18106 (ashlsi3): New.
18107 (cbranchsi4): New.
18108 * config/rl78/rl78.md (CC_REG): Fix.
18109 (addsi3): Allow memory and immediate operands.
18110 (addsi3_internal): Split into...
18111 (addsi3_internal_virt): ...new, and ...
18112 (addsi3_internal_real): ...new.
18113 (subsi): New.
18114 (subsi3_internal_virt): New.
18115 (subsi3_internal_real): New.
18116 (mulsi3): Add memory operand.
18117 (mulsi3_rl78): Likewise.
18118 (mulsi3_g13): Likewise.
18119 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18120 (cbranchqi4_real): Add more constraint options.
18121 (cbranchhi4_real): Expand pattern.
18122 (cbranchhi4_real_signed): New.
18123 (cbranchhi4_real_inverted): New.
18124 (cbranchsi4_real_lt): New.
18125 (cbranchsi4_real_ge): New.
18126 (cbranchsi4_real_signed): New.
18127 (cbranchsi4_real): New.
18128 (peephole2): New.
18129 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18130 constant shifts.
18131 (lshrsi3_virt): Likewise.
18132 (ashlsi3_virt): Likewise.
18133 (cbranchqi4_virt_signed): New.
18134 (cbranchhi4_virt_signed): New.
18135 (cbranchsi4_virt): New.
18136 * config/rl78/rl78.c: Whitespace fixes throughout.
18137 (move_elim_pass): New.
18138 (pass_data_rl78_move_elim): New.
18139 (pass_rl78_move_elim): New.
18140 (make_pass_rl78_move_elim): New.
18141 (rl78_devirt_info): Run devirt earlier.
18142 (rl78_move_elim_info): New.
18143 (rl78_asm_file_start): Register it.
18144 (rl78_split_movsi): New.
18145 (rl78_as_legitimate_address): Allow virtual base registers when
18146 appropriate.
18147 (rl78_addr_space_convert): Remove spurious debug stuff.
18148 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18149 (rl78_print_operand): More cases for not printing '#'.
18150 (rl78_expand_compare): Remove most of the logic.
18151 (content_memory): New.
18152 (clear_content_memory): New.
18153 (get_content_index): New.
18154 (get_content_name): New.
18155 (display_content_memory): New.
18156 (update_content): New.
18157 (record_content): New.
18158 (already_contains): New.
18159 (insn_ok_now): Re-recog insns with virtual registers.
18160 (add_postponed_content_update): New.
18161 (process_postponed_content_update): New.
18162 (gen_and_emit_move): New.
18163 (transcode_memory_rtx): Record new location content.
18164 Use gen_and_emit_move.
18165 (force_into_acc): New.
18166 (move_to_acc): Use gen_and_emit_move.
18167 (move_from_acc): Likewise.
18168 (move_acc_to_reg): Likewise.
18169 (move_to_x): Likewise.
18170 (move_to_hl): Likewise.
18171 (move_to_de): Likewise.
18172 (rl78_alloc_physical_registers_op1): Record location content.
18173 (has_constraint): New.
18174 (rl78_alloc_physical_registers_op2): Record location content.
18175 Optimize use of HL.
18176 (rl78_alloc_physical_registers_ro1): Likewise.
18177 (rl78_alloc_physical_registers_cmp): Likewise.
18178 (rl78_alloc_physical_registers_umul): Likewise.
18179 (rl78_alloc_address_registers_macax): New.
18180 (rl78_alloc_physical_registers): Initialize and set location
18181 content memory as needed.
18182 (rl78_reorg): Make sure split2 is called.
18183 (rl78_rtx_costs): New.
18184
18185 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
18186
18187 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18188 for (not (neg ...)) and (neg (not ...)) cases.
18189
18190 2013-09-11 Richard Biener <rguenther@suse.de>
18191
18192 PR middle-end/58377
18193 * passes.def: Split critical edges before late uninit warning passes.
18194 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18195
18196 2013-09-11 Jakub Jelinek <jakub@redhat.com>
18197
18198 PR tree-optimization/58385
18199 * fold-const.c (build_range_check): If both low and high are NULL,
18200 use omit_one_operand_loc to preserve exp side-effects.
18201
18202 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18203
18204 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18205
18206 2013-09-11 Richard Biener <rguenther@suse.de>
18207
18208 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18209 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18210 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18211 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18212 stmts_from_loop, known_dependences_p, build_empty_rdg,
18213 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18214 * tree-loop-distribution.c: ... here.
18215 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18216 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18217 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18218 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18219 * tree-loop-distribution.c: ... here.
18220 * tree-loop-distribution.c: Include gimple-pretty-print.h.
18221 (struct partition_s): Add loops member.
18222 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18223 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18224 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18225
18226 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18227 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18228 Sergey Lega <sergey.s.lega@intel.com>
18229 Anna Tikhonova <anna.tikhonova@intel.com>
18230 Ilya Tocar <ilya.tocar@intel.com>
18231 Andrey Turetskiy <andrey.turetskiy@intel.com>
18232 Ilya Verbin <ilya.verbin@intel.com>
18233 Kirill Yukhin <kirill.yukhin@intel.com>
18234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18235
18236 * config/i386/constraints.md (k): New.
18237 (Yk): Ditto.
18238 * config/i386/i386.c (const regclass_map): Add new mask registers.
18239 (dbx_register_map): Ditto.
18240 (dbx64_register_map): Ditto.
18241 (svr4_dbx_register_map): Ditto.
18242 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18243 disabled.
18244 (ix86_preferred_reload_class): Disable constants for mask registers.
18245 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18246 (ix86_hard_regno_mode_ok): Support new mask registers.
18247 (x86_order_regs_for_local_alloc): Ditto.
18248 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18249 (FIXED_REGISTERS): Add new mask registers.
18250 (CALL_USED_REGISTERS): Ditto.
18251 (REG_ALLOC_ORDER): Ditto.
18252 (VALID_MASK_REG_MODE): New.
18253 (FIRST_MASK_REG): Ditto.
18254 (LAST_MASK_REG): Ditto.
18255 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18256 (MAYBE_MASK_CLASS_P): New.
18257 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18258 (REG_CLASS_CONTENTS): Ditto.
18259 (MASK_REGNO_P): New.
18260 (ANY_MASK_REG_P): Ditto.
18261 (HI_REGISTER_NAMES): Add new mask registers.
18262 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18263 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18264 mask registers.
18265 (attribute "type"): Add mskmov, msklog.
18266 (attribute "length_immediate"): Support them.
18267 (attribute "memory"): Ditto.
18268 (attribute "prefix_0f"): Ditto.
18269 (*movhi_internal): Support new mask registers.
18270 (*movqi_internal): Ditto.
18271 (define_split): Split out clobber pattern is a logic
18272 insn on mask registers.
18273 (*k<logic><mode>): New.
18274 (*andhi_1): Extend to support mask regs.
18275 (*andqi_1): Extend to support mask regs.
18276 (kandn<mode>): New.
18277 (define_split): Split and-not to and and not if operands
18278 are not mask regs.
18279 (*<code><mode>_1): Separate HI mode to new pattern...
18280 (*<code>hi_1): This.
18281 (*<code>qi_1): Extend to support mask regs.
18282 (kxnor<mode>): New.
18283 (kortestzhi): Ditto.
18284 (kortestchi): Ditto.
18285 (kunpckhi): Ditto.
18286 (*one_cmpl<mode>2_1): Remove HImode and handle it...
18287 (*one_cmplhi2_1): ...Here, now with mask registers support.
18288 (*one_cmplqi2_1): Support new mask registers.
18289 (HI/QImode arithmetics splitter): Don't split if mask registers
18290 are used.
18291 (HI/QImode not splitter): Ditto.
18292 * config/i386/predicated.md (mask_reg_operand): New.
18293 (general_reg_operand): Ditto.
18294
18295 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18296
18297 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18298 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18299
18300 2013-09-10 Jeff Law <law@redhat.com>
18301
18302 PR tree-optimization/58380
18303 * tree-ssa-threadupdate.c (thread_block): Recognize another case
18304 of threading through a buried loop header.
18305
18306 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18307 return value for single successor case.
18308
18309 2013-09-10 Jan Hubicka <jh@suse.cz>
18310
18311 * ipa-devirt.c (ipa_devirt): Enable with LTO.
18312
18313 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
18314
18315 PR target/58361
18316 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18317 support conditional execution.
18318 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18319
18320 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
18321
18322 * lra.c (lra): Clear lra_optional_reload_pseudos before every
18323 constraint pass.
18324 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18325 Check destination too to check move insn.
18326 (undo_optional_reloads): Add check that the original peudo did not
18327 changed its allocation and the optional reload was inherited on last
18328 inheritance pass. Break loop after deciding to keep optional reload.
18329 (lra_undo_inheritance): Add check that inherited pseudo still in
18330 memory.
18331
18332 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
18333
18334 * config/aarch64/aarch64.md (generic_sched): New.
18335 * config/aarch64/aarch64-generic.md (load): Make conditional
18336 on generic_sched attribute.
18337 (nonload): Likewise.
18338
18339 2013-09-10 Jan Hubicka <jh@suse.cz>
18340
18341 * lto-cgraph.c: Include ipa-utils.h.
18342 (compute_ltrans_boundary): Also add possible targets into the boundary.
18343
18344 2013-09-10 Jan Hubicka <jh@suse.cz>
18345
18346 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18347 VAR_DECL of vtable rather than full expression.
18348
18349 2013-09-10 Jan Hubicka <jh@suse.cz>
18350 Paolo Carlini <paolo.carlini@oracle.com>
18351
18352 * cgraphunit.c (analyze_functions): Save input_location, set it
18353 to UNKNOWN_LOCATION and restore it at the end.
18354
18355 2013-09-10 Martin Jambor <mjambor@suse.cz>
18356
18357 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18358 represented by a thunk.
18359
18360 2013-09-10 Jeff Law <law@redhat.com>
18361
18362 PR tree-optimization/58343
18363 * tree-ssa-threadupdate.c (thread_block): Identify and disable
18364 jump threading requests through loop headers buried in the middle
18365 of a jump threading path.
18366
18367 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18368 in return value/type.
18369
18370 2013-09-10 Jakub Jelinek <jakub@redhat.com>
18371
18372 PR rtl-optimization/58365
18373 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18374 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18375 it differs.
18376
18377 2013-09-10 Richard Biener <rguenther@suse.de>
18378
18379 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18380 * tree-data-ref.c (create_rdg_vertices): Collect all data
18381 references, signal failure to the caller, use data-ref API.
18382 (build_rdg): Compute data references only once. Maintain lifetime
18383 of data references and data dependences from within RDG.
18384 (free_rdg): Free dependence relations.
18385 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18386 inventing extra dependences.
18387 (distribute_loop): Update for RDG API changes.
18388
18389 2013-09-10 Kai Tietz <ktietz@redhat.com>
18390
18391 * doc/invoke.texi (fms-extensions): Document changed
18392 behavior for ms-abi targets.
18393 * config/i386/i386.c (ix86_option_override_internal):
18394 Set default value of option -fms-extension for ms-abi targets.
18395
18396 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18397
18398 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18399
18400 2013-09-10 Alan Modra <amodra@gmail.com>
18401
18402 PR target/58330
18403 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18404
18405 2013-09-10 Alan Modra <amodra@gmail.com>
18406
18407 * config/rs6000/predicates.md (add_cint_operand): New.
18408 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18409 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18410 using add_cint_operand.
18411 (largetoc_high_plus_aix): Likewise.
18412
18413 2013-09-09 Jakub Jelinek <jakub@redhat.com>
18414
18415 PR tree-optimization/58364
18416 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18417 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18418 the current range can't be an unconditional true or false.
18419
18420 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
18421
18422 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18423
18424 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
18425
18426 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18427
18428 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
18429
18430 PR c++/43452
18431 * doc/invoke.texi (-Wdelete-incomplete): Document it.
18432
18433 2013-09-09 Ian Bolton <ian.bolton@arm.com>
18434
18435 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18436 NO_REGS for immediate that can't be moved directly into FP_REGS.
18437
18438 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18439
18440 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18441 comparison with negated operand.
18442 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18443 RTL form.
18444
18445 2013-09-09 Richard Biener <rguenther@suse.de>
18446
18447 PR middle-end/58326
18448 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18449 of a subloop record all its block as affecting loop-closed SSA form.
18450
18451 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18452
18453 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18454 of an rtx/bitpos pair.
18455 (store_fixed_bit_field): Update accordingly.
18456
18457 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18458
18459 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18460 GEN_INT.
18461 * builtins.c (expand_errno_check): Likewise.
18462 * dwarf2cfi.c (init_return_column_size): Likewise.
18463 * except.c (sjlj_mark_call_sites): Likewise.
18464 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18465 * lra-constraints.c (emit_inc): Likewise.
18466 * ree.c (combine_set_extension): Likewise.
18467 * regmove.c (fixup_match_2): Likewise.
18468 * reload1.c (inc_for_reload): Likewise.
18469
18470 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18471
18472 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18473 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18474 Use gen_int_mode with the mode of the associated simplify_* call.
18475 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18476 * expmed.c (expand_shift_1): Likewise.
18477 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18478 * loop-iv.c (iv_number_of_iterations): Likewise.
18479 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18480 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18481
18482 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18483
18484 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18485 of the associated expand_* call.
18486 (asan_emit_stack_protection): Likewise.
18487 * builtins.c (round_trampoline_addr): Likewise.
18488 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18489 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18490 (emit_store_flag): Likewise.
18491 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18492 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18493 Likewise.
18494 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18495 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18496 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18497 * modulo-sched.c (generate_prolog_epilog): Likewise.
18498 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18499 (expand_ctz, expand_ffs, expand_unop): Likewise.
18500
18501 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18502
18503 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18504 of the associated gen_rtx_* call.
18505 * caller-save.c (init_caller_save): Likewise.
18506 * combine.c (find_split_point, make_extraction): Likewise.
18507 (make_compound_operation): Likewise.
18508 * dwarf2out.c (mem_loc_descriptor): Likewise.
18509 * explow.c (plus_constant, probe_stack_range): Likewise.
18510 * expmed.c (expand_mult_const): Likewise.
18511 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18512 * reload1.c (init_reload): Likewise.
18513 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18514 * var-tracking.c (adjust_mems): Likewise.
18515 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18516 rather than gen_rtx_fmt_ee.
18517
18518 2013-09-09 Jan Hubicka <jh@suse.cz>
18519
18520 PR middle-end/58294
18521 * value-prof.c (gimple_ic): Copy also abnormal edges.
18522
18523 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18524
18525 * asan.c (asan_shadow_cst): Use gen_int_mode.
18526
18527 2013-09-08 Jan Hubicka <jh@suse.cz>
18528
18529 * ipa-profile.c: Add toplevel comment.
18530 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18531 (contains_hot_call_p): New function.
18532 (ipa_propagate_frequency): Set frequencies based on counts when
18533 profile is read.
18534 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18535 profile; do not tamper with profile after inlining if it is read.
18536
18537 2013-09-08 Jan Hubicka <jh@suse.cz>
18538
18539 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18540 speculative edges.
18541
18542 2013-09-08 Jan Hubicka <jh@suse.cz>
18543
18544 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18545 summary generation.
18546
18547 2013-09-08 Jeff Law <law@redhat.com>
18548
18549 PR bootstrap/58340
18550 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18551 of 'found'.
18552
18553 2013-09-08 Andi Kleen <ak@linux.intel.com>
18554
18555 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18556
18557 2013-09-08 Jan Hubicka <jh@suse.cz>
18558
18559 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18560
18561 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18562
18563 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18564 for non-debug insns.
18565 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18566 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18567 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18568 accordingly.
18569
18570 2013-09-08 Jan Hubicka <jh@suse.cz>
18571
18572 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18573 targets and devirtualize to BUILT_IN_UNREACHABLE.
18574 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18575 * ipa.c (walk_polymorphic_call_targets): New function.
18576 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18577 functions; use the new timevar.
18578 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18579 was removed from the program.
18580 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18581 not consider it in the walk when its vtable is dead.
18582 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18583 record_binfo.
18584 (devirt_variable_node_removal_hook): New function.
18585 (possible_polymorphic_call_targets): Also register
18586 devirt_variable_node_removal_hook.
18587 (ipa_devirt): Do not do non-speculative devirtualization.
18588 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18589
18590 2013-09-08 Jan Hubicka <jh@suse.cz>
18591
18592 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18593 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18594 varpool_remove_variable_insertion_hook): Declare.
18595 * varpool.c (varpool_node_hook_list): New structure.
18596 (first_varpool_node_removal_hook,
18597 first_varpool_variable_insertion_hook): New variables.
18598 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18599 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18600 varpool_remove_variable_insertion_hook,
18601 varpool_call_variable_insertion_hooks): New functions.
18602 (varpool_remove_node): Use it.
18603
18604 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18605
18606 PR c++/54941
18607 * diagnostic.c (diagnostic_build_prefix): When s.file is
18608 "<built-in>" don't output line and column numbers.
18609
18610 2013-09-06 Jan Hubicka <jh@suse.cz>
18611
18612 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18613 * lto-streamer-out.c: Stream thunks, too.
18614 * lto-streamer-in.c (input_function): Pop cfun here
18615 (lto_read_body): Instead of here.
18616
18617 2013-09-06 Caroline Tice <cmtice@google.com>
18618
18619 * doc/install.texi: Add documentation for the --enable-vtable-verify
18620 and the --disable-libvtv configure options.
18621
18622 2013-09-06 Jeff Law <law@redhat.com>
18623
18624 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18625 edge implied equivalences into successor phis.
18626
18627 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18628
18629 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18630
18631 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18632
18633 * resource.c (mark_target_live_regs): Compute resources taking
18634 into account if a call is predicated or not.
18635
18636 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18637
18638 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18639 the compiler in the function names.
18640
18641 2013-09-06 Jan Hubicka <jh@suse.cz>
18642
18643 PR middle-end/58094
18644 * ipa-inline.c (has_caller_p): New function.
18645 (want_inline_function_to_all_callers_p): Use it.
18646 (sum_callers, inline_to_all_callers): Break out from ...
18647 (ipa_inline): ... here.
18648
18649 2013-09-06 Jan Hubicka <jh@suse.cz>
18650
18651 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18652 only when AVX is enabled.
18653
18654 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18655
18656 * config/aarch64/aarch64.md
18657 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18658 is fpsimd_<load/store>2.
18659 (load_pair<mode>): Likewise.
18660 (store_pair<mode>): Likewise.
18661
18662 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18663
18664 * config/arm/types.md (type): Add "mrs" type.
18665 * config/aarch64/aarch64.md
18666 (aarch64_load_tp_hard): Make type "mrs".
18667 * config/arm/arm.md
18668 (load_tp_hard): Make type "mrs".
18669 * config/arm/cortex-a15.md: Update with new attributes.
18670 * config/arm/cortex-a5.md: Update with new attributes.
18671 * config/arm/cortex-a53.md: Update with new attributes.
18672 * config/arm/cortex-a7.md: Update with new attributes.
18673 * config/arm/cortex-a8.md: Update with new attributes.
18674 * config/arm/cortex-a9.md: Update with new attributes.
18675 * config/arm/cortex-m4.md: Update with new attributes.
18676 * config/arm/cortex-r4.md: Update with new attributes.
18677 * config/arm/fa526.md: Update with new attributes.
18678 * config/arm/fa606te.md: Update with new attributes.
18679 * config/arm/fa626te.md: Update with new attributes.
18680 * config/arm/fa726te.md: Update with new attributes.
18681
18682 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18683
18684 * config/aarch64/aarch64.md
18685 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18686 (*movtf_aarch64): Likewise.
18687 * config/arm/arm.md
18688 (thumb1_movdi_insn): Use "multiple" for type where more than one
18689 instruction is used for a move.
18690 (*arm32_movhf): Likewise.
18691 (*thumb_movdf_insn): Likewise.
18692
18693 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18694
18695 * config/arm/types.md (type): Rename fcpys to fmov.
18696 * config/arm/vfp.md
18697 (*arm_movsi_vfp): Rename type fcpys as fmov.
18698 (*thumb2_movsi_vfp): Likewise
18699 (*movhf_vfp_neon): Likewise
18700 (*movhf_vfp): Likewise
18701 (*movsf_vfp): Likewise
18702 (*thumb2_movsf_vfp): Likewise
18703 (*movsfcc_vfp): Likewise
18704 (*thumb2_movsfcc_vfp): Likewise
18705 * config/aarch64/aarch64-simd.md
18706 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18707 * config/aarch64/aarch64.md
18708 (*movsi_aarch64): Replace type mov_reg with fmovs.
18709 (*movdi_aarch64): Likewise
18710 (*movsf_aarch64): Likewise
18711 (*movdf_aarch64): Likewise
18712 * config/arm/arm.c
18713 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18714 * config/arm/iwmmxt.md
18715 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18716 * config/arm/arm1020e.md: Update with new attributes.
18717 * config/arm/cortex-a15-neon.md: Update with new attributes.
18718 * config/arm/cortex-a5.md: Update with new attributes.
18719 * config/arm/cortex-a53.md: Update with new attributes.
18720 * config/arm/cortex-a7.md: Update with new attributes.
18721 * config/arm/cortex-a8-neon.md: Update with new attributes.
18722 * config/arm/cortex-a9.md: Update with new attributes.
18723 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18724 * config/arm/cortex-r4f.md: Update with new attributes.
18725 * config/arm/marvell-pj4.md: Update with new attributes.
18726 * config/arm/vfp11.md: Update with new attributes.
18727
18728 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18729
18730 * config/aarch64/aarch64.md
18731 (*madd<mode>): Fix type attribute.
18732 (*maddsi_uxtw): Likewise.
18733 (*msub<mode>): Likewise.
18734 (*msubsi_uxtw): Likewise.
18735 (<su_optab>maddsidi4): Likewise.
18736 (<su_optab>msubsidi4): Likewise.
18737
18738 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18739
18740 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18741 * config/arm/arm.md (core_cycles): Remove fdiv.
18742 * config/arm/vfp.md:
18743 (*sqrtsf2_vfp): Update for attribute changes.
18744 (*sqrtdf2_vfp): Likewise.
18745 * config/aarch64/aarch64.md:
18746 (sqrt<mode>2): Update for attribute changes.
18747 * config/arm/arm1020e.md: Update with new attributes.
18748 * config/arm/cortex-a15-neon.md: Update with new attributes.
18749 * config/arm/cortex-a5.md: Update with new attributes.
18750 * config/arm/cortex-a53.md: Update with new attributes.
18751 * config/arm/cortex-a7.md: Update with new attributes.
18752 * config/arm/cortex-a8-neon.md: Update with new attributes.
18753 * config/arm/cortex-a9.md: Update with new attributes.
18754 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18755 * config/arm/cortex-r4f.md: Update with new attributes.
18756 * config/arm/marvell-pj4.md: Update with new attributes.
18757 * config/arm/vfp11.md: Update with new attributes.
18758
18759 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18760
18761 * config/arm/types.md
18762 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18763 * config/aarch64/aarch64.md
18764 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18765 new attributes.
18766 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18767 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18768 (float<GPI:mode><GPF:mode>2): Likewise.
18769 * config/arm/vfp.md
18770 (*truncsisf2_vfp): Update with new attributes.
18771 (*truncsidf2_vfp): Likewise.
18772 (fixuns_truncsfsi2): Likewise.
18773 (fixuns_truncdfsi2): Likewise.
18774 (*floatsisf2_vfp): Likewise.
18775 (*floatsidf2_vfp): Likewise.
18776 (floatunssisf2): Likewise.
18777 (floatunssidf2): Likewise.
18778 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18779 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18780 * config/arm/arm1020e.md: Update with new attributes.
18781 * config/arm/cortex-a15-neon.md: Update with new attributes.
18782 * config/arm/cortex-a5.md: Update with new attributes.
18783 * config/arm/cortex-a53.md: Update with new attributes.
18784 * config/arm/cortex-a7.md: Update with new attributes.
18785 * config/arm/cortex-a8-neon.md: Update with new attributes.
18786 * config/arm/cortex-a9.md: Update with new attributes.
18787 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18788 * config/arm/cortex-r4f.md: Update with new attributes.
18789 * config/arm/marvell-pj4.md: Update with new attributes.
18790 * config/arm/vfp11.md: Update with new attributes.
18791
18792 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18793
18794 * config/aarch64/arm_neon.h
18795 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18796 (vqtbx<1,2,3,4><q>_s8): Likewise.
18797
18798 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18799
18800 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18801 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18802 (add<mode>3): Add type attribute.
18803 (add<mode>3): Likewise.
18804 (usadd<mode>3): Likewise.
18805 (ssadd<mode>3): Likewise.
18806 (sub<mode>3): Likewise.
18807 (sub<mode>3): Likewise.
18808 (ussub<mode>3): Likewise.
18809 (sssub<mode>3): Likewise.
18810 (ssmulsa3): Likewise.
18811 (usmulusa3): Likewise.
18812 (arm_usatsihi): Likewise.
18813 * config/arm/vfp.md
18814 (*movdi_vfp): Add types for all instructions.
18815 (*movdi_vfp_cortexa8): Likewise.
18816 (*movhf_vfp_neon): Likewise.
18817 (*movhf_vfp): Likewise.
18818 (*movdf_vfp): Likewise.
18819 (*thumb2_movdf_vfp): Likewise.
18820 (*thumb2_movdfcc_vfp): Likewise.
18821 * config/arm/arm.md: Add type attribute to all insn patterns.
18822 (*thumb1_adddi3): Add type attribute.
18823 (*arm_adddi3): Likewise.
18824 (*adddi_sesidi_di): Likewise.
18825 (*adddi_zesidi_di): Likewise.
18826 (*thumb1_addsi3): Likewise.
18827 (addsi3_compare0): Likewise.
18828 (*addsi3_compare0_scratch): Likewise.
18829 (*compare_negsi_si): Likewise.
18830 (cmpsi2_addneg): Likewise.
18831 (*addsi3_carryin_<optab>): Likewise.
18832 (*addsi3_carryin_alt2_<optab>): Likewise.
18833 (*addsi3_carryin_clobercc_<optab>): Likewise.
18834 (*subsi3_carryin): Likewise.
18835 (*subsi3_carryin_const): Likewise.
18836 (*subsi3_carryin_compare): Likewise.
18837 (*subsi3_carryin_compare_const): Likewise.
18838 (*arm_subdi3): Likewise.
18839 (*thumb_subdi3): Likewise.
18840 (*subdi_di_zesidi): Likewise.
18841 (*subdi_di_sesidi): Likewise.
18842 (*subdi_zesidi_di): Likewise.
18843 (*subdi_sesidi_di): Likewise.
18844 (*subdi_zesidi_ze): Likewise.
18845 (thumb1_subsi3_insn): Likewise.
18846 (*arm_subsi3_insn): Likewise.
18847 (*anddi3_insn): Likewise.
18848 (*anddi_zesidi_di): Likewise.
18849 (*anddi_sesdi_di): Likewise.
18850 (*ne_zeroextracts): Likewise.
18851 (*ne_zeroextracts): Likewise.
18852 (*ite_ne_zeroextr): Likewise.
18853 (*ite_ne_zeroextr): Likewise.
18854 (*anddi_notdi_di): Likewise.
18855 (*anddi_notzesidi): Likewise.
18856 (*anddi_notsesidi): Likewise.
18857 (andsi_notsi_si): Likewise.
18858 (thumb1_bicsi3): Likewise.
18859 (*iordi3_insn): Likewise.
18860 (*iordi_zesidi_di): Likewise.
18861 (*iordi_sesidi_di): Likewise.
18862 (*thumb1_iorsi3_insn): Likewise.
18863 (*xordi3_insn): Likewise.
18864 (*xordi_zesidi_di): Likewise.
18865 (*xordi_sesidi_di): Likewise.
18866 (*arm_xorsi3): Likewise.
18867 (*andsi_iorsi3_no): Likewise.
18868 (*smax_0): Likewise.
18869 (*smax_m1): Likewise.
18870 (*arm_smax_insn): Likewise.
18871 (*smin_0): Likewise.
18872 (*arm_smin_insn): Likewise.
18873 (*arm_umaxsi3): Likewise.
18874 (*arm_uminsi3): Likewise.
18875 (*minmax_arithsi): Likewise.
18876 (*minmax_arithsi_): Likewise.
18877 (*satsi_<SAT:code>): Likewise.
18878 (arm_ashldi3_1bit): Likewise.
18879 (arm_ashrdi3_1bit): Likewise.
18880 (arm_lshrdi3_1bit): Likewise.
18881 (*arm_negdi2): Likewise.
18882 (*thumb1_negdi2): Likewise.
18883 (*arm_negsi2): Likewise.
18884 (*thumb1_negsi2): Likewise.
18885 (*negdi_extendsid): Likewise.
18886 (*negdi_zero_extend): Likewise.
18887 (*arm_abssi2): Likewise.
18888 (*thumb1_abssi2): Likewise.
18889 (*arm_neg_abssi2): Likewise.
18890 (*thumb1_neg_abss): Likewise.
18891 (one_cmpldi2): Likewise.
18892 (extend<mode>di2): Likewise.
18893 (*compareqi_eq0): Likewise.
18894 (*arm_extendhisi2addsi): Likewise.
18895 (*arm_movdi): Likewise.
18896 (*thumb1_movdi_insn): Likewise.
18897 (*arm_movt): Likewise.
18898 (*thumb1_movsi_insn): Likewise.
18899 (pic_add_dot_plus_four): Likewise.
18900 (pic_add_dot_plus_eight): Likewise.
18901 (tls_load_dot_plus_eight): Likewise.
18902 (*thumb1_movhi_insn): Likewise.
18903 (*thumb1_movsf_insn): Likewise.
18904 (*movdf_soft_insn): Likewise.
18905 (*thumb_movdf_insn): Likewise.
18906 (cbranchsi4_insn): Likewise.
18907 (cbranchsi4_scratch): Likewise.
18908 (*negated_cbranchsi4): Likewise.
18909 (*tbit_cbranch): Likewise.
18910 (*tlobits_cbranch): Likewise.
18911 (*tstsi3_cbranch): Likewise.
18912 (*cbranchne_decr1): Likewise.
18913 (*addsi3_cbranch): Likewise.
18914 (*addsi3_cbranch_scratch): Likewise.
18915 (*arm_cmpdi_insn): Likewise.
18916 (*arm_cmpdi_unsig): Likewise.
18917 (*arm_cmpdi_zero): Likewise.
18918 (*thumb_cmpdi_zero): Likewise.
18919 (*deleted_compare): Likewise.
18920 (*mov_scc): Likewise.
18921 (*mov_negscc): Likewise.
18922 (*mov_notscc): Likewise.
18923 (*cstoresi_eq0_thumb1_insn): Likewise.
18924 (cstoresi_nltu_thumb1): Likewise.
18925 (cstoresi_ltu_thu): Likewise.
18926 (thumb1_addsi3_addgeu): Likewise.
18927 (*arm_jump): Likewise.
18928 (*thumb_jump): Likewise.
18929 (*check_arch2): Likewise.
18930 (arm_casesi_internal): Likewise.
18931 (thumb1_casesi_dispatch): Likewise.
18932 (*arm_indirect_jump): Likewise.
18933 (*thumb1_indirect_jump): Likewise.
18934 (nop): Likewise.
18935 (*and_scc): Likewise.
18936 (*ior_scc): Likewise.
18937 (*compare_scc): Likewise.
18938 (*cond_move): Likewise.
18939 (*cond_arith): Likewise.
18940 (*cond_sub): Likewise.
18941 (*cmp_ite0): Likewise.
18942 (*cmp_ite1): Likewise.
18943 (*cmp_and): Likewise.
18944 (*cmp_ior): Likewise.
18945 (*ior_scc_scc): Likewise.
18946 (*ior_scc_scc_cmp): Likewise.
18947 (*and_scc_scc): Likewise.
18948 (*and_scc_scc_cmp): Likewise.
18949 (*and_scc_scc_nod): Likewise.
18950 (*negscc): Likewise.
18951 (movcond_addsi): Likewise.
18952 (movcond): Likewise.
18953 (*ifcompare_plus_move): Likewise.
18954 (*if_plus_move): Likewise.
18955 (*ifcompare_move_plus): Likewise.
18956 (*if_move_plus): Likewise.
18957 (*ifcompare_arith_arith): Likewise.
18958 (*if_arith_arith): Likewise.
18959 (*ifcompare_arith_move): Likewise.
18960 (*if_arith_move): Likewise.
18961 (*ifcompare_move_arith): Likewise.
18962 (*if_move_arith): Likewise.
18963 (*ifcompare_move_not): Likewise.
18964 (*if_move_not): Likewise.
18965 (*ifcompare_not_move): Likewise.
18966 (*if_not_move): Likewise.
18967 (*ifcompare_shift_move): Likewise.
18968 (*if_shift_move): Likewise.
18969 (*ifcompare_move_shift): Likewise.
18970 (*if_move_shift): Likewise.
18971 (*ifcompare_shift_shift): Likewise.
18972 (*ifcompare_not_arith): Likewise.
18973 (*ifcompare_arith_not): Likewise.
18974 (*if_arith_not): Likewise.
18975 (*ifcompare_neg_move): Likewise.
18976 (*if_neg_move): Likewise.
18977 (*ifcompare_move_neg): Likewise.
18978 (*if_move_neg): Likewise.
18979 (prologue_thumb1_interwork): Likewise.
18980 (*cond_move_not): Likewise.
18981 (*sign_extract_onebit): Likewise.
18982 (*not_signextract_onebit): Likewise.
18983 (stack_tie): Likewise.
18984 (align_4): Likewise.
18985 (align_8): Likewise.
18986 (consttable_end): Likewise.
18987 (consttable_1): Likewise.
18988 (consttable_2): Likewise.
18989 (consttable_4): Likewise.
18990 (consttable_8): Likewise.
18991 (consttable_16): Likewise.
18992 (*thumb1_tablejump): Likewise.
18993 (prefetch): Likewise.
18994 (force_register_use): Likewise.
18995 (thumb_eh_return): Likewise.
18996 (load_tp_hard): Likewise.
18997 (load_tp_soft): Likewise.
18998 (tlscall): Likewise.
18999 (*arm_movtas_ze): Likewise.
19000 (*arm_rev): Likewise.
19001 (*arm_revsh): Likewise.
19002 (*arm_rev16): Likewise.
19003 * config/arm/thumb2.md
19004 (*thumb2_smaxsi3): Likewise.
19005 (*thumb2_sminsi3): Likewise.
19006 (*thumb32_umaxsi3): Likewise.
19007 (*thumb2_uminsi3): Likewise.
19008 (*thumb2_negdi2): Likewise.
19009 (*thumb2_abssi2): Likewise.
19010 (*thumb2_neg_abss): Likewise.
19011 (*thumb2_movsi_insn): Likewise.
19012 (tls_load_dot_plus_four): Likewise.
19013 (*thumb2_movhi_insn): Likewise.
19014 (*thumb2_mov_scc): Likewise.
19015 (*thumb2_mov_negs): Likewise.
19016 (*thumb2_mov_negs): Likewise.
19017 (*thumb2_mov_nots): Likewise.
19018 (*thumb2_mov_nots): Likewise.
19019 (*thumb2_movsicc_): Likewise.
19020 (*thumb2_movsfcc_soft_insn): Likewise.
19021 (*thumb2_indirect_jump): Likewise.
19022 (*thumb2_and_scc): Likewise.
19023 (*thumb2_ior_scc): Likewise.
19024 (*thumb2_ior_scc_strict_it): Likewise.
19025 (*thumb2_cond_move): Likewise.
19026 (*thumb2_cond_arith): Likewise.
19027 (*thumb2_cond_ari): Likewise.
19028 (*thumb2_cond_sub): Likewise.
19029 (*thumb2_negscc): Likewise.
19030 (*thumb2_movcond): Likewise.
19031 (thumb2_casesi_internal): Likewise.
19032 (thumb2_casesi_internal_pic): Likewise.
19033 (*thumb2_alusi3_short): Likewise.
19034 (*thumb2_mov<mode>_shortim): Likewise.
19035 (*thumb2_addsi_short): Likewise.
19036 (*thumb2_subsi_short): Likewise.
19037 (thumb2_addsi3_compare0): Likewise.
19038 (*thumb2_cbz): Likewise.
19039 (*thumb2_cbnz): Likewise.
19040 (*thumb2_one_cmplsi2_short): Likewise.
19041 (*thumb2_negsi2_short): Likewise.
19042 (*orsi_notsi_si): Likewise.
19043 * config/arm/arm1020e.md: Update with new attributes.
19044 * config/arm/arm1026ejs.md: Update with new attributes.
19045 * config/arm/arm1136jfs.md: Update with new attributes.
19046 * config/arm/arm926ejs.md: Update with new attributes.
19047 * config/arm/cortex-a15.md: Update with new attributes.
19048 * config/arm/cortex-a5.md: Update with new attributes.
19049 * config/arm/cortex-a53.md: Update with new attributes.
19050 * config/arm/cortex-a7.md: Update with new attributes.
19051 * config/arm/cortex-a8.md: Update with new attributes.
19052 * config/arm/cortex-a9.md: Update with new attributes.
19053 * config/arm/cortex-m4.md: Update with new attributes.
19054 * config/arm/cortex-r4.md: Update with new attributes.
19055 * config/arm/fa526.md: Update with new attributes.
19056 * config/arm/fa606te.md: Update with new attributes.
19057 * config/arm/fa626te.md: Update with new attributes.
19058 * config/arm/fa726te.md: Update with new attributes.
19059
19060 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19061
19062 * config/aarch64/aarch64-simd.md
19063 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19064 <vwx> iterator to ensure correct register choice.
19065 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19066 (aarch64_sqdmull_n<mode>): Likewise.
19067 (aarch64_sqdmull2_n<mode>_internal): Likewise.
19068 * config/aarch64/arm_neon.h
19069 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19070 (vml<as><q>_n_<su>16): Likewise.
19071 (vml<as>l_high_lane<q>_<su>16): Likewise.
19072 (vml<as>l_high_n_<su>16): Likewise.
19073 (vml<as>l_lane<q>_<su>16): Likewise.
19074 (vml<as>l_n_<su>16): Likewise.
19075 (vmul<q>_lane<q>_<su>16): Likewise.
19076 (vmul<q>_n_<su>16): Likewise.
19077 (vmull_lane<q>_<su>16): Likewise.
19078 (vmull_n_<su>16): Likewise.
19079 (vmull_high_lane<q>_<su>16): Likewise.
19080 (vmull_high_n_<su>16): Likewise.
19081 (vqrdmulh<q>_n_s16): Likewise.
19082
19083 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
19084
19085 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19086 have the correct lane parameter.
19087
19088 2013-09-06 Richard Biener <rguenther@suse.de>
19089
19090 * cfganal.c (control_dependences::~control_dependences):
19091 Properly free all of the vector.
19092
19093 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
19094
19095 PR target/58269
19096 * config/i386/i386.c (ix86_conditional_register_usage):
19097 Proper initialize extended SSE registers.
19098
19099 2013-09-06 Jan Hubicka <jh@suse.cz>
19100
19101 PR tree-optimization/58311
19102 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19103
19104 2013-09-06 Jan Hubicka <jh@suse.cz>
19105
19106 * Makefile.in (tree-sra.o): Update dependencies.
19107 * tree-sra.c: Include ipa-utils.h
19108 (scan_function): Use recursive_call_p.
19109 (has_caller_p): New function.
19110 (cgraph_for_node_and_aliases): Count also callers of aliases.
19111
19112 2013-09-06 Jan Hubicka <jh@suse.cz>
19113
19114 PR middle-end/58094
19115 * cgraph.h (symtab_semantically_equivalent_p): Declare.
19116 * tree-tailcall.c: Include ipa-utils.h.
19117 (find_tail_calls): Use it.
19118 * ipa-pure-const.c (check_call): Likewise.
19119 * ipa-utils.c (recursive_call_p): New function.
19120 * ipa-utils.h (recursive_call_p): Dclare.
19121 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19122 (symtab_semantically_equivalent_p): New function.
19123 * Makefile.in (tree-tailcall.o): Update dependencies.
19124
19125 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19126
19127 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19128 non-inlinable part.
19129
19130 2013-09-06 Richard Biener <rguenther@suse.de>
19131
19132 * lto-streamer.h (lto_global_var_decls): Remove.
19133 * Makefile.in (OBJS): Remove lto-symtab.o.
19134 (lto-symtab.o): Remove.
19135 (GTFILES): Remove lto-symtab.c
19136 * lto-symtab.c: Move to lto/
19137
19138 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19139
19140 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19141 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19142 (UNSPEC_FPINT_RINT): New constant definitions.
19143 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19144 definition with 2 attributes.
19145 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19146 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19147 definitions.
19148
19149 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19150
19151 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19152 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19153 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
19154 attribute to "z196_alone".
19155 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19156 "zEC12_simple".
19157
19158 2013-09-06 Richard Biener <rguenther@suse.de>
19159
19160 * basic-block.h (class control_dependences): New.
19161 * tree-ssa-dce.c (control_dependence_map): Remove.
19162 (cd): New global.
19163 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19164 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19165 find_pdom, find_control_dependence, find_all_control_dependences):
19166 Move to cfganal.c.
19167 (mark_control_dependent_edges_necessary,
19168 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19169 tree_dce_done, perform_tree_ssa_dce): Adjust.
19170 * cfganal.c (set_control_dependence_map_bit,
19171 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19172 find_all_control_dependences): Move from tree-ssa-dce.c and
19173 implement as methods of control_dependences class.
19174 (control_dependences::control_dependences): New.
19175 (control_dependences::~control_dependences): Likewise.
19176 (control_dependences::get_edges_dependent_on): Likewise.
19177 (control_dependences::get_edge): Likewise.
19178
19179 2013-09-04 Jan Hubicka <jh@suse.cz>
19180
19181 * tree.c (types_same_for_odr): Drop overactive check.
19182 * ipa-devirt.c (hash_type_name): Likewise.
19183
19184 2013-09-04 Jan Hubicka <jh@suse.cz>
19185
19186 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19187 (analyze_functions): ... here.
19188
19189 2013-09-04 Jan Hubicka <jh@suse.cz>
19190
19191 PR middle-end/58201
19192 * cgraphunit.c (analyze_functions): Clear AUX fields
19193 after processing; initialize assembler name has.
19194
19195 2013-09-05 Jeff Law <law@redhat.com>
19196
19197 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19198 from thread_around_empty_block. Record threading path into PATH.
19199 Recurse if threading through the initial block is successful.
19200 (thread_across_edge): Corresponding changes to slightly simplify.
19201
19202 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19203
19204 * config/aarch64/aarch64.md
19205 (type): Remove frecpe, frecps, frecpx.
19206 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19207 fix to be a TARGET_SIMD instruction.
19208 (aarch64_frecps): Remove.
19209 * config/aarch64/aarch64-simd.md
19210 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19211 (aarch64_frecps<mode>): Handle all float/vector of float modes.
19212
19213 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19214 Sofiane Naci <sofiane.naci@arm.com>
19215
19216 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19217 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19218 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19219 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19220 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
19221 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19222 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
19223 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
19224 into "clz, "rbit". Rename "shift" to "shift_imm".
19225 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19226 changes. Update for attribute changes all occurrences of arlo_* and
19227 shift* types.
19228 * config/arm/arm-fixed.md: Update for attribute changes
19229 all occurrences of arlo_* types.
19230 * config/arm/thumb2.md: Update for attribute changes all occurrences
19231 of arlo_* types.
19232 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
19233 (cortexa7_older_only): Likewise.
19234 (cortexa7_younger): Likewise.
19235 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19236 (1020alu_shift_op): Likewise.
19237 (1020alu_shift_reg_op): Likewise.
19238 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19239 (alu_shift_op): Likewise.
19240 (alu_shift_reg_op): Likewise.
19241 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19242 (11_alu_shift_op): Likewise.
19243 (11_alu_shift_reg_op): Likewise.
19244 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19245 (9_alu_shift_reg_op): Likewise.
19246 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19247 attribute changes.
19248 (cortex_a15_alu_shift): Likewise.
19249 (cortex_a15_alu_shift_reg): Likewise.
19250 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19251 attribute changes.
19252 (cortex_a5_alu_shift): Likewise.
19253 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19254 attribute changes.
19255 (cortex_a53_alu_shift): Likewise.
19256 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19257 attribute changes.
19258 (cortex_a7_alu_reg): Likewise.
19259 (cortex_a7_alu_shift): Likewise.
19260 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19261 attribute changes.
19262 (cortex_a8_alu_shift): Likewise.
19263 (cortex_a8_alu_shift_reg): Likewise.
19264 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19265 (cortex_a9_dp_shift): Likewise.
19266 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19267 attribute changes.
19268 * config/arm/cortex-r4.md
19269 (cortex_r4_alu): Update for attribute changes.
19270 (cortex_r4_mov): Likewise.
19271 (cortex_r4_alu_shift_reg): Likewise.
19272 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19273 (526_alu_shift_op): Likewise.
19274 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19275 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19276 (626te_alu_shift_op): Likewise.
19277 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19278 (726te_alu_shift_op): Likewise.
19279 (726te_alu_shift_reg_op): Likewise.
19280 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19281 (mp626_alu_shift_op): Likewise.
19282 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19283 (pj4_alu_conds): Likewise.
19284 (pj4_shift): Likewise.
19285 (pj4_shift_conds): Likewise.
19286 (pj4_alu_shift): Likewise.
19287 (pj4_alu_shift_conds): Likewise.
19288 * config/aarch64/aarch64.md: Update for attribute change
19289 all occurrences of arlo_* and shift* types.
19290
19291 2013-09-05 Mike Stump <mikestump@comcast.net>
19292
19293 * tree.h: Move documentation for tree_function_decl to tree-core.h
19294 with the declaration.
19295
19296 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
19297
19298 PR target/58139
19299 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19300 looking for widest mode.
19301
19302 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
19303
19304 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19305
19306 2013-09-05 Richard Biener <rguenther@suse.de>
19307
19308 PR tree-optimization/58137
19309 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19310 Do not create vectors of pointers.
19311 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19312 types for the components of the vector initializer.
19313 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19314 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19315
19316 2013-09-05 Martin Jambor <mjambor@suse.cz>
19317
19318 * ipa-prop.c (remove_described_reference): Accept missing references,
19319 return false if that hppens, otherwise return true.
19320 (cgraph_node_for_jfunc): New function.
19321 (try_decrement_rdesc_refcount): Likewise.
19322 (try_make_edge_direct_simple_call): Use them.
19323 (ipa_edge_removal_hook): Remove references from rdescs.
19324 (ipa_edge_duplication_hook): Clone rdescs and their references
19325 when the new edge has the same caller as the old one.
19326 * cgraph.c (cgraph_resolve_speculation): Remove speculative
19327 reference before removing any edges.
19328
19329 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
19330
19331 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19332 initial store.
19333 * thumb2.md (thumb2_storewb_parisi): New pattern.
19334
19335 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
19336
19337 * config/aarch64/aarch64-option-extensions.def: Add
19338 AARCH64_OPT_EXTENSION of 'crc'.
19339 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19340 (AARCH64_ISA_CRC): Ditto.
19341 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19342 description of the CRC extension.
19343
19344 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
19345
19346 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19347 * config/rs6000/linux.h: Ditto.
19348 * alpha/linux.h: Ditto.
19349 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19350 no_c99_libc_has_function.
19351 * config/c6x/uclinux-elf.h: Ditto.
19352 * config/lm32/uclinux-elf.h: Ditto.
19353 * config/m68k/uclinux.h: Ditto.
19354 * config/moxie/uclinux.h: Ditto.
19355 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19356 (crisv32-*-linux*, cris-*-linux*): Ditto.
19357 * config/bfin/bfin.c: Include "tm_p.h".
19358
19359 2013-09-05 Richard Biener <rguenther@suse.de>
19360
19361 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19362 check for a definition without a basic-block.
19363
19364 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19365 Sofiane Naci <sofiane.naci@arm.com>
19366
19367 * config/aarch64/aarch64.md
19368 (*movti_aarch64): Rename r_2_f and f_2_r.
19369 (*movsf_aarch64): Likewise.
19370 (*movdf_aarch64): Likewise.
19371 (*movtf_aarch64): Likewise.
19372 (aarch64_movdi_<mode>low): Likewise.
19373 (aarch64_movdi_<mode>high): Likewise.
19374 (aarch64_mov<mode>high_di): Likewise.
19375 (aarch64_mov<mode>low_di): Likewise.
19376 (aarch64_movtilow_tilow): Likewise.
19377 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
19378 values to config/arm/types.md
19379 (attribute "conds"): Update for attribute change.
19380 (anddi3_insn): Likewise.
19381 (iordi3_insn): Likewise.
19382 (xordi3_insn): Likewise.
19383 (one_cmpldi2): Likewise.
19384 * config/arm/types.md (type): Add Neon types.
19385 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19386 use "type" attribute.
19387 (movmisalign<mode>_neon_store): Likewise.
19388 (movmisalign<mode>_neon_load): Likewise.
19389 (vec_set<mode>_internal): Likewise.
19390 (vec_setv2di_internal): Likewise.
19391 (vec_extract<mode>): Likewise.
19392 (vec_extractv2di): Likewise.
19393 (add<mode>3_neon): Likewise.
19394 (adddi3_neon): Likewise.
19395 (sub<mode>3_neon): Likewise.
19396 (subdi3_neon): Likewise.
19397 (mul<mode>3_neon): Likewise.
19398 (mul<mode>3add<mode>_neon): Likewise.
19399 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19400 (fma<VCVTF:mode>4)): Likewise.
19401 (fma<VCVTF:mode>4_intrinsic): Likewise.
19402 (fmsub<VCVTF:mode>4)): Likewise.
19403 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19404 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19405 (ior<mode>3): Likewise.
19406 (and<mode>3): Likewise.
19407 (anddi3_neon): Likewise.
19408 (orn<mode>3_neon): Likewise.
19409 (orndi3_neon): Likewise.
19410 (bic<mode>3_neon): Likewise.
19411 (bicdi3_neon): Likewise.
19412 (xor<mode>3): Likewise.
19413 (one_cmpl<mode>2): Likewise.
19414 (abs<mode>2): Likewise.
19415 (neg<mode>2): Likewise.
19416 (umin<mode>3_neon): Likewise.
19417 (umax<mode>3_neon): Likewise.
19418 (smin<mode>3_neon): Likewise.
19419 (smax<mode>3_neon): Likewise.
19420 (vashl<mode>3): Likewise.
19421 (vashr<mode>3_imm): Likewise.
19422 (vlshr<mode>3_imm): Likewise.
19423 (ashl<mode>3_signed): Likewise.
19424 (ashl<mode>3_unsigned): Likewise.
19425 (neon_load_count): Likewise.
19426 (ashldi3_neon_noclobber): Likewise.
19427 (signed_shift_di3_neon): Likewise.
19428 (unsigned_shift_di3_neon): Likewise.
19429 (ashrdi3_neon_imm_noclobber): Likewise.
19430 (lshrdi3_neon_imm_noclobber): Likewise.
19431 (widen_ssum<mode>3): Likewise.
19432 (widen_usum<mode>3): Likewise.
19433 (quad_halves_<code>v4si): Likewise.
19434 (quad_halves_<code>v4sf): Likewise.
19435 (quad_halves_<code>v8hi): Likewise.
19436 (quad_halves_<code>v16qi): Likewise.
19437 (reduc_splus_v2di): Likewise.
19438 (neon_vpadd_internal<mode>): Likewise.
19439 (neon_vpsmin<mode>): Likewise.
19440 (neon_vpsmax<mode>): Likewise.
19441 (neon_vpumin<mode>): Likewise.
19442 (neon_vpumax<mode>): Likewise.
19443 (ss_add<mode>_neon): Likewise.
19444 (us_add<mode>_neon): Likewise.
19445 (ss_sub<mode>_neon): Likewise.
19446 (us_sub<mode>_neon): Likewise.
19447 (neon_vadd<mode>_unspec): Likewise.
19448 (neon_vaddl<mode>): Likewise.
19449 (neon_vaddw<mode>): Likewise.
19450 (neon_vhadd<mode>): Likewise.
19451 (neon_vqadd<mode>): Likewise.
19452 (neon_vaddhn<mode>): Likewise.
19453 (neon_vmul<mode>): Likewise.
19454 (neon_vmla<mode>): Likewise.
19455 (neon_vmlal<mode>): Likewise.
19456 (neon_vmls<mode>): Likewise.
19457 (neon_vmlsl<mode>): Likewise.
19458 (neon_vqdmulh<mode>): Likewise.
19459 (neon_vqdmlal<mode>): Likewise.
19460 (neon_vqdmlsl<mode>): Likewise.
19461 (neon_vmull<mode>): Likewise.
19462 (neon_vqdmull<mode>): Likewise.
19463 (neon_vsub<mode>_unspec): Likewise.
19464 (neon_vsubl<mode>): Likewise.
19465 (neon_vsubw<mode>): Likewise.
19466 (neon_vqsub<mode>): Likewise.
19467 (neon_vhsub<mode>): Likewise.
19468 (neon_vsubhn<mode>): Likewise.
19469 (neon_vceq<mode>): Likewise.
19470 (neon_vcge<mode>): Likewise.
19471 (neon_vcgeu<mode>): Likewise.
19472 (neon_vcgt<mode>): Likewise.
19473 (neon_vcgtu<mode>): Likewise.
19474 (neon_vcle<mode>): Likewise.
19475 (neon_vclt<mode>): Likewise.
19476 (neon_vcage<mode>): Likewise.
19477 (neon_vcagt<mode>): Likewise.
19478 (neon_vtst<mode>): Likewise.
19479 (neon_vabd<mode>): Likewise.
19480 (neon_vabdl<mode>): Likewise.
19481 (neon_vaba<mode>): Likewise.
19482 (neon_vabal<mode>): Likewise.
19483 (neon_vmax<mode>): Likewise.
19484 (neon_vmin<mode>): Likewise.
19485 (neon_vpaddl<mode>): Likewise.
19486 (neon_vpadal<mode>): Likewise.
19487 (neon_vpmax<mode>): Likewise.
19488 (neon_vpmin<mode>): Likewise.
19489 (neon_vrecps<mode>): Likewise.
19490 (neon_vrsqrts<mode>): Likewise.
19491 (neon_vqabs<mode>): Likewise.
19492 (neon_vqneg<mode>): Likewise.
19493 (neon_vcls<mode>): Likewise.
19494 (clz<mode>2): Likewise.
19495 (popcount<mode>2): Likewise.
19496 (neon_vrecpe): Likewise.
19497 (neon_vrsqrte): Likewise.
19498 (neon_vget_lane<mode>_sext_internal): Likewise.
19499 (neon_vget_lane<mode>_zext_internal): Likewise.
19500 (neon_vdup_n<mode>): Likewise.
19501 (neon_vdup_nv2di): Likewise.
19502 (neon_vdpu_lane<mode>_internal): Likewise.
19503 (neon_vswp<mode>): Likewise.
19504 (float<mode><V_cvtto>2): Likewise.
19505 (floatuns<mode><V_cvtto>2): Likewise.
19506 (fix_trunc<mode><V_cvtto>)2): Likewise
19507 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19508 (neon_vcvt<mode>): Likewise.
19509 (neon_vcvtv4sfv4hf): Likewise.
19510 (neon_vcvtv4hfv4sf): Likewise.
19511 (neon_vcvt_n<mode>): Likewise.
19512 (neon_vmovn<mode>): Likewise.
19513 (neon_vqmovn<mode>): Likewise.
19514 (neon_vqmovun<mode>): Likewise.
19515 (neon_vmovl<mode>): Likewise.
19516 (neon_vmul_lane<mode>): Likewise.
19517 (neon_vmull_lane<mode>): Likewise.
19518 (neon_vqdmull_lane<mode>): Likewise.
19519 (neon_vqdmulh_lane<mode>): Likewise.
19520 (neon_vmla_lane<mode>): Likewise.
19521 (neon_vmlal_lane<mode>): Likewise.
19522 (neon_vqdmlal_lane<mode>): Likewise.
19523 (neon_vmls_lane<mode>): Likewise.
19524 (neon_vmlsl_lane<mode>): Likewise.
19525 (neon_vqdmlsl_lane<mode>): Likewise.
19526 (neon_vext<mode>): Likewise.
19527 (neon_vrev64<mode>): Likewise.
19528 (neon_vrev32<mode>): Likewise.
19529 (neon_vrev16<mode>): Likewise.
19530 (neon_vbsl<mode>_internal): Likewise.
19531 (neon_vshl<mode>): Likewise.
19532 (neon_vqshl<mode>): Likewise.
19533 (neon_vshr_n<mode>): Likewise.
19534 (neon_vshrn_n<mode>): Likewise.
19535 (neon_vqshrn_n<mode>): Likewise.
19536 (neon_vqshrun_n<mode>): Likewise.
19537 (neon_vshl_n<mode>): Likewise.
19538 (neon_vqshl_n<mode>): Likewise.
19539 (neon_vqshlu_n<mode>): Likewise.
19540 (neon_vshll_n<mode>): Likewise.
19541 (neon_vsra_n<mode>): Likewise.
19542 (neon_vsri_n<mode>): Likewise.
19543 (neon_vsli_n<mode>): Likewise.
19544 (neon_vtbl1v8qi): Likewise.
19545 (neon_vtbl2v8qi): Likewise.
19546 (neon_vtbl3v8qi): Likewise.
19547 (neon_vtbl4v8qi): Likewise.
19548 (neon_vtbx1v8qi): Likewise.
19549 (neon_vtbx2v8qi): Likewise.
19550 (neon_vtbx3v8qi): Likewise.
19551 (neon_vtbx4v8qi): Likewise.
19552 (neon_vtrn<mode>_internal): Likewise.
19553 (neon_vzip<mode>_internal): Likewise.
19554 (neon_vuzp<mode>_internal): Likewise.
19555 (neon_vld1<mode>): Likewise.
19556 (neon_vld1_lane<mode>): Likewise.
19557 (neon_vld1_dup<mode>): Likewise.
19558 (neon_vld1_dupv2di): Likewise.
19559 (neon_vst1<mode>): Likewise.
19560 (neon_vst1_lane<mode>): Likewise.
19561 (neon_vld2<mode>): Likewise.
19562 (neon_vld2_lane<mode>): Likewise.
19563 (neon_vld2_dup<mode>): Likewise.
19564 (neon_vst2<mode>): Likewise.
19565 (neon_vst2_lane<mode>): Likewise.
19566 (neon_vld3<mode>): Likewise.
19567 (neon_vld3qa<mode>): Likewise.
19568 (neon_vld3qb<mode>): Likewise.
19569 (neon_vld3_lane<mode>): Likewise.
19570 (neon_vld3_dup<mode>): Likewise.
19571 (neon_vst3<mode>): Likewise.
19572 (neon_vst3qa<mode>): Likewise.
19573 (neon_vst3qb<mode>): Likewise.
19574 (neon_vst3_lane<mode>): Likewise.
19575 (neon_vld4<mode>): Likewise.
19576 (neon_vld4qa<mode>): Likewise.
19577 (neon_vld4qb<mode>): Likewise.
19578 (neon_vld4_lane<mode>): Likewise.
19579 (neon_vld4_dup<mode>): Likewise.
19580 (neon_vst4<mode>): Likewise.
19581 (neon_vst4qa<mode>): Likewise.
19582 (neon_vst4qb<mode>): Likewise.
19583 (neon_vst4_lane<mode>): Likewise.
19584 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19585 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19586 (neon_vec_<US>mult_lo_<mode>): Likewise.
19587 (neon_vec_<US>mult_hi_<mode>): Likewise.
19588 (neon_vec_<US>shiftl_<mode>): Likewise.
19589 (neon_unpack<US>_<mode>): Likewise.
19590 (neon_vec_<US>mult_<mode>): Likewise.
19591 (vec_pack_trunc_<mode>): Likewise.
19592 (neon_vec_pack_trunk_<mode>): Likewise.
19593 (neon_vabd<mode>_2): Likewise.
19594 (neon_vabd<mode>_3): Likewise.
19595 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19596 (thumb2_movsi_vfp): Likewise.
19597 (movdi_vfp): Likewise.
19598 (movdi_vfp_cortexa8): Likewise.
19599 (movhf_vfp_neon): Likewise.
19600 (movhf_vfp): Likewiwse.
19601 (movsf_vfp): Likewiwse.
19602 (thumb2_movsf_vfp): Likewiwse.
19603 (movdf_vfp): Likewise.
19604 (thumb2_movdf_vfp): Likewise.
19605 (movsfcc_vfp): Likewise.
19606 (thumb2_movsfcc_vfp): Likewise.
19607 (movdfcc_vfp): Likewise.
19608 (thumb2_movdfcc_vfp): Likewise.
19609 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19610 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19611 (v10_v2c): Likewise.
19612 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19613 attribute change.
19614 (cortex_a15_neon_int_2): Likewise.
19615 (cortex_a15_neon_int_3): Likewise.
19616 (cortex_a15_neon_int_4): Likewise.
19617 (cortex_a15_neon_int_5): Likewise.
19618 (cortex_a15_neon_vqneg_vqabs): Likewise.
19619 (cortex_a15_neon_vmov): Likewise.
19620 (cortex_a15_neon_vaba): Likewise.
19621 (cortex_a15_neon_vaba_qqq): Likewise.
19622 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19623 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19624 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19625 scalar_64_32_long_scalar): Likewise.
19626 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19627 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19628 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19629 lotype_qdd_64_32_long): Likewise.
19630 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19631 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19632 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19633 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19634 (cortex_a15_neon_shift_1): Likewise.
19635 (cortex_a15_neon_shift_2): Likewise.
19636 (cortex_a15_neon_shift_3): Likewise.
19637 (cortex_a15_neon_vshl_ddd): Likewise.
19638 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19639 (cortex_a15_neon_vsra_vrsra): Likewise.
19640 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19641 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19642 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19643 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19644 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19645 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19646 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19647 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19648 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19649 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19650 (cortex_a15_neon_bp_simple): Likewise.
19651 (cortex_a15_neon_bp_2cycle): Likewise.
19652 (cortex_a15_neon_bp_3cycle): Likewise.
19653 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19654 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19655 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19656 (cortex_a15_neon_vld2_4_regs): Likewise.
19657 (cortex_a15_neon_vld3_vld4): Likewise.
19658 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19659 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19660 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19661 (cortex_a15_neon_vst3_vst4): Likewise.
19662 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19663 (cortex_a15_neon_vld3_vld4_lane" 10
19664 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19665 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19666 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19667 (cortex_a15_neon_ldm_2): Likewise.0
19668 (cortex_a15_neon_stm_2): Likewise.
19669 (cortex_a15_neon_mcr): Likewise.
19670 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19671 (cortex_a15_neon_mrc): Likewise.
19672 (cortex_a15_neon_mrrc): Likewise.
19673 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19674 change.
19675 (cortex_a15_alu_shift): Likewise.
19676 (cortex_a15_alu_shift_reg): Likewise.
19677 (cortex_a15_mult32): Likewise.
19678 (cortex_a15_mult64): Likewise.
19679 (cortex_a15_block): Likewise.
19680 (cortex_a15_branch): Likewise.
19681 (cortex_a15_load1): Likewise.
19682 (cortex_a15_load3): Likewise.
19683 (cortex_a15_store1): Likewise.
19684 (cortex_a15_store3): Likewise.
19685 (cortex_a15_call): Likewise.
19686 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19687 (cortex_a5_f2r): Likewise.
19688 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19689 change.
19690 (cortex_a53_f2r): Likewise.
19691 * config/arm/cortex-a7.md
19692 (cortex_a7_branch): Update for attribute change.
19693 (cortex_a7_call): Likewise.
19694 (cortex_a7_alu_imm): Likewise.
19695 (cortex_a7_alu_reg): Likewise.
19696 (cortex_a7_alu_shift): Likewise.
19697 (cortex_a7_mul): Likewise.
19698 (cortex_a7_load1): Likewise.
19699 (cortex_a7_store1): Likewise.
19700 (cortex_a7_load2): Likewise.
19701 (cortex_a7_store2): Likewise.
19702 (cortex_a7_load3): Likewise.
19703 (cortex_a7_store3): Likewise.
19704 (cortex_a7_load4): Likewise.
19705 (cortex_a7_store4): Likewise.
19706 (cortex_a7_fpalu): Likewise.
19707 (cortex_a7_fconst): Likewise.
19708 (cortex_a7_fpmuls): Likewise.
19709 (cortex_a7_neon_mul): Likewise.
19710 (cortex_a7_fpmacs): Likewise.
19711 (cortex_a7_neon_mla: Likewise.
19712 (cortex_a7_fpmuld: Likewise.
19713 (cortex_a7_fpmacd: Likewise.
19714 (cortex_a7_fpfmad: Likewise.
19715 (cortex_a7_fdivs: Likewise.
19716 (cortex_a7_fdivd: Likewise.
19717 (cortex_a7_r2f: Likewise.
19718 (cortex_a7_f2r: Likewise.
19719 (cortex_a7_f_flags: Likewise.
19720 (cortex_a7_f_loads: Likewise.
19721 (cortex_a7_f_loadd: Likewise.
19722 (cortex_a7_f_stores: Likewise.
19723 (cortex_a7_f_stored: Likewise.
19724 (cortex_a7_neon): Likewise.
19725 * config/arm/cortex-a8-neon.md
19726 (cortex_a8_neon_mrc): Update for attribute change.
19727 (cortex_a8_neon_mrrc): Likewise.
19728 (cortex_a8_neon_int_1): Likewise.
19729 (cortex_a8_neon_int_2): Likewise.
19730 (cortex_a8_neon_int_3): Likewise.
19731 (cortex_a8_neon_int_4): Likewise.
19732 (cortex_a8_neon_int_5): Likewise.
19733 (cortex_a8_neon_vqneg_vqabs): Likewise.
19734 (cortex_a8_neon_vmov): Likewise.
19735 (cortex_a8_neon_vaba): Likewise.
19736 (cortex_a8_neon_vaba_qqq): Likewise.
19737 (cortex_a8_neon_vsma): Likewise.
19738 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19739 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19740 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19741 long_scalar): Likewise.
19742 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19743 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19744 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19745 long_scalar_qdd_64_32_long): Likewise.
19746 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19747 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19748 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19749 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19750 (cortex_a8_neon_shift_1): Likewise.
19751 (cortex_a8_neon_shift_2): Likewise.
19752 (cortex_a8_neon_shift_3): Likewise.
19753 (cortex_a8_neon_vshl_ddd): Likewise.
19754 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19755 (cortex_a8_neon_vsra_vrsra): Likewise.
19756 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19757 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19758 (cortex_a8_neon_fp_vsum): Likewise.
19759 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19760 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19761 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19762 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19763 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19764 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19765 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19766 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19767 (cortex_a8_neon_bp_simple): Likewise.
19768 (cortex_a8_neon_bp_2cycle): Likewise.
19769 (cortex_a8_neon_bp_3cycle): Likewise.
19770 (cortex_a8_neon_ldr): Likewise.
19771 (cortex_a8_neon_str): Likewise.
19772 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19773 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19774 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19775 (cortex_a8_neon_vld2_4_regs): Likewise.
19776 (cortex_a8_neon_vld3_vld4): Likewise.
19777 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19778 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19779 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19780 (cortex_a8_neon_vst3_vst4): Likewise.
19781 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19782 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19783 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19784 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19785 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19786 (cortex_a8_neon_mcr): Likewise.
19787 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19788 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19789 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19790 change.
19791 (ca9_neon_mrrc): Likewise.
19792 (cortex_a9_neon_int_1): Likewise.
19793 (cortex_a9_neon_int_2): Likewise.
19794 (cortex_a9_neon_int_3): Likewise.
19795 (cortex_a9_neon_int_4): Likewise.
19796 (cortex_a9_neon_int_5): Likewise.
19797 (cortex_a9_neon_vqneg_vqabs): Likewise.
19798 (cortex_a9_neon_vmov): Likewise.
19799 (cortex_a9_neon_vaba): Likewise.
19800 (cortex_a9_neon_vaba_qqq): Likewise.
19801 (cortex_a9_neon_vsma): Likewise.
19802 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19803 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19804 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19805 long_scalar): Likewise.
19806 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19807 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19808 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19809 long_scalar_qdd_64_32_long): Likewise.
19810 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19811 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19812 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19813 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19814 (cortex_a9_neon_shift_1): Likewise.
19815 (cortex_a9_neon_shift_2): Likewise.
19816 (cortex_a9_neon_shift_3): Likewise.
19817 (cortex_a9_neon_vshl_ddd): Likewise.
19818 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19819 (cortex_a9_neon_vsra_vrsra): Likewise.
19820 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19821 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19822 (cortex_a9_neon_fp_vsum): Likewise.
19823 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19824 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19825 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19826 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19827 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19828 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19829 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19830 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19831 (cortex_a9_neon_bp_simple): Likewise.
19832 (cortex_a9_neon_bp_2cycle): Likewise.
19833 (cortex_a9_neon_bp_3cycle): Likewise.
19834 (cortex_a9_neon_ldr): Likewise.
19835 (cortex_a9_neon_str): Likewise.
19836 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19837 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19838 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19839 (cortex_a9_neon_vld2_4_regs): Likewise.
19840 (cortex_a9_neon_vld3_vld4): Likewise.
19841 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19842 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19843 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19844 (cortex_a9_neon_vst3_vst4): Likewise.
19845 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19846 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19847 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19848 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19849 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19850 (cortex_a9_neon_mcr): Likewise.
19851 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19852 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19853 (cortex_a9_fps): Likewise.
19854 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19855 change.
19856 (cortex_m4_fmuls): Likewise.
19857 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19858 change.
19859 (cortex_r4_mrc): Likewise.
19860 * config/arm/iterators.md: Update comment referring to neon_type.
19861 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19862 (iwmmxt_movsi_insn): Likewise.
19863 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19864 attribute change.
19865 (pj4_core_to_vfp): Likewise.
19866 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19867 attribute change.
19868 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19869 (vfp_fstore): Likewise.
19870 * doc/md.texi: Change references to neon_type to refer to type.
19871
19872 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19873
19874 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19875
19876 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19877
19878 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19879 lglobl if not weak.
19880
19881 2013-09-04 Easwaran Raman <eraman@google.com>
19882
19883 PR middle-end/57370
19884 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19885 (build_and_add_sum): Use it.
19886 (appears_later_in_bb): Simplify code.
19887
19888 2013-09-04 Teresa Johnson <tejohnson@google.com>
19889
19890 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19891
19892 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19893
19894 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19895
19896 2013-09-04 Jan Hubicka <jh@suse.cz>
19897
19898 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19899 * ipa-devirt.c: Include diganostic.h
19900 (odr_type_d): Add types and types_set.
19901 (hash_type_name): Work for types with vtables during LTO.
19902 (odr_hasher::remove): Fix comment; destroy types_set.
19903 (add_type_duplicate): New function,
19904 (get_odr_type): Use it.
19905 (dump_type_inheritance_graph): Dump type duplicates.
19906 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19907 graph.
19908 * tree.c (types_same_for_odr): Give exact answers on types with
19909 virtual tables.
19910
19911 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19912
19913 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19914 explaining their differences.
19915
19916 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19917
19918 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19919
19920 2013-09-03 Jeff Law <law@redhat.com>
19921
19922 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19923 when not threading through a joiner block. Pass joiner/no joiner
19924 state to register_jump_thread.
19925 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19926 state from argument rather than implying on path length.
19927 Dump the entire jump thread path into debugging dump.
19928 * tree-flow.h (register_jump_thread): Update prototype.
19929
19930 2013-08-29 Xinliang David Li <davidxl@google.com>
19931
19932 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19933 Remove a trivial gcc_assert.
19934
19935 2013-08-29 Xinliang David Li <davidxl@google.com>
19936
19937 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19938 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19939 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19940 Delay base decl alignment adjustment.
19941 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19942 * tree-vectorizer.h: New data structure.
19943 (set_dr_misalignment): New function.
19944 (dr_misalignment): Ditto.
19945 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19946 (vectorizable_load): Ditto.
19947 (ensure_base_align): New function.
19948 (vectorize_loops): Add dbg_cnt support.
19949 (execute_vect_slp): Ditto.
19950 * dbgcnt.def: New debug counter.
19951 * Makefile: New dependency.
19952
19953 2013-09-03 Meador Inge <meadori@codesourcery.com>
19954
19955 Revert:
19956
19957 2013-08-30 Meador Inge <meadori@codesourcery.com>
19958
19959 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19960
19961 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19962
19963 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19964 function descriptor.
19965
19966 2013-09-03 Richard Biener <rguenther@suse.de>
19967
19968 * tree-affine.c (add_elt_to_tree): Fix association issue,
19969 avoid useless converts and make sure to always return a
19970 properly typed result.
19971
19972 2013-09-03 Richard Biener <rguenther@suse.de>
19973
19974 PR middle-end/57656
19975 * fold-const.c (negate_expr_p): Fix division case.
19976 (negate_expr): Likewise.
19977
19978 2013-09-03 Richard Biener <rguenther@suse.de>
19979
19980 PR lto/58285
19981 * tree-streamer-out.c: Include tm.h.
19982 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19983
19984 2013-09-03 Jan Hubicka <jh@suse.cz>
19985
19986 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19987
19988 2013-09-03 Alan Modra <amodra@gmail.com>
19989
19990 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19991 multilibs to big-endian target and vice versa.
19992 * config/rs6000/t-linux64: Use := assignment on all vars.
19993 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19994 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19995 * config/rs6000/t-linux64le: New file.
19996 * config/rs6000/t-linux64bele: New file.
19997 * config/rs6000/t-linux64lebe: New file.
19998
19999 2013-09-02 Jan Hubicka <jh@suse.cz>
20000
20001 * ipa-inline-transform.c (inline_transform): Do not
20002 optimize_inline_calls when not optimizing.
20003
20004 2013-09-02 Jan Hubicka <jh@suse.cz>
20005
20006 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
20007 duplicated nodes for assembler names.
20008 * symtab.c (symtab_unregister_node): Do not attempt to unlink
20009 hard registers from assembler name hash.
20010
20011 2013-09-02 Jan Hubicka <jh@suse.cz>
20012
20013 * ipa-split.c (execute_split_functions): Split externally visible
20014 functions called once.
20015
20016 2013-09-02 Martin Jambor <mjambor@suse.cz>
20017
20018 PR ipa/58106
20019 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
20020 linked list. When finding the correct duplicate, also consider also
20021 the caller in additon to its inlined_to node.
20022
20023 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
20024
20025 * config/aarch64/aarch64-simd-builtins.def
20026 (dup_lane_scalar): Remove.
20027 * config/aarch64/aarch64-simd.md
20028 (aarch64_simd_dup): Add 'w->w' alternative.
20029 (aarch64_dup_lane<mode>): Allow for VALL.
20030 (aarch64_dup_lane_scalar<mode>): Remove.
20031 (aarch64_dup_lane_<vswap_width_name><mode>): New.
20032 (aarch64_get_lane_signed<mode>): Add w->w altenative.
20033 (aarch64_get_lane_unsigned<mode>): Likewise.
20034 (aarch64_get_lane<mode>): Likewise.
20035 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20036 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20037 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20038 (VCON): Change container of V2SF.
20039 (vswap_width_name): Likewise.
20040 * config/aarch64/arm_neon.h
20041 (__aarch64_vdup_lane_any): New.
20042 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20043 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20044 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20045
20046 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
20047
20048 PR middle-end/56382
20049 * expr.c (emit_move_complex): Do not move complex FP values as parts if
20050 the source or the destination is a single hard register.
20051
20052 2013-09-02 Richard Biener <rguenther@suse.de>
20053
20054 PR middle-end/57511
20055 * tree-scalar-evolution.c (instantiate_scev_name): Allow
20056 non-linear SCEVs.
20057
20058 2013-09-02 Richard Biener <rguenther@suse.de>
20059
20060 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20061 arithmetic to sizetype.
20062
20063 2013-09-02 Bin Cheng <bin.cheng@arm.com>
20064
20065 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20066 Find auto-increment use both before and after candidate.
20067
20068 2013-09-02 Marek Polacek <polacek@redhat.com>
20069
20070 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20071
20072 2013-09-01 Jan Hubicka <jh@suse.cz>
20073
20074 * Makefile.in: Add ipa-profile.o
20075 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20076 * cgraph.c (struct cgraph_propagate_frequency_data,
20077 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20078 ipa-profile.c; replace cgraph_ by ipa_ prefix.
20079 * cgraph.h (cgraph_propagate_frequency): Remove.
20080 * ipa-inline-analysis.c: Include ipa-utils.h;
20081 drop duplicated cfgloop.h.
20082 (inline_update_callee_summaries): Update.
20083 * ipa-profile.c: New file.
20084 * ipa-utils.h (ipa_propagate_frequency): Declare.
20085 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20086 data-streamer.h, value-prof.h.
20087 (symtab_remove_unreachable_nodes): Update profile.
20088 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20089 account_time_size, cmp_counts, dump_histogram,
20090 ipa_profile_generate_summary, ipa_profile_write_summary,
20091 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20092 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20093 Move to ipa-profile.c.
20094
20095 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
20096
20097 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20098
20099 2013-09-01 Jan Hubicka <jh@suse.cz>
20100
20101 * common.opt (fdevirtualize-speculatively): New function.
20102 * invoke.texi (fdevirtualize-speculatively): Document.
20103 * ipa-devirt.c: Include ipa-inline.h
20104 (likely_target_p): New function.
20105 (ipa_devirt): New function.
20106 (gate_ipa_devirt): New function.
20107 (pass_data_ipa_devirt): New static var.
20108 (pass_ipa_devirt): Likewise.
20109 (make_pass_ipa_devirt): New function.
20110 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20111 (common_handle_option): Disable devirtualization when
20112 value range profiling is available.
20113 * passes.def (pass_ipa_devirt): Add.
20114 * timever.def (TV_IPA_DEVIRT): New timevar.
20115 * tree-pass.h (make_pass_ipa_devirt):
20116
20117 2013-09-01 Iain Sandoe <iain@codesourcery.com>
20118
20119 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20120 include sanitize(undefined).
20121
20122 2013-08-31 Diego Novillo <dnovillo@google.com>
20123
20124 * Makefile.in (TREE_CORE_H): Define.
20125 (TREE_H): Use.
20126 (GTFILES): Add tree-core.h.
20127 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20128 size the array.
20129 * tree-core.h: New file.
20130 Move all data structures, enum, typedefs, global
20131 declarations and constants from ...
20132 * tree.h: ... here.
20133
20134 2013-08-31 Jan Hubicka <jh@suse.cz>
20135
20136 * bulitins.c (expand_builtin): Do not early exit for gcov
20137 instrumented functions.
20138
20139 2013-08-31 Marek Polacek <polacek@redhat.com>
20140
20141 * ubsan.c: Include tm_p.h.
20142
20143 2013-08-31 Jan Hubicka <jh@suse.cz>
20144
20145 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20146 warning.
20147
20148 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20149 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20150 * tree-cfg.c (verify_gimple_label): ... here.
20151 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20152 (ipa_merge_profiles): New function.
20153 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20154 (lto_input_function_body): Likewise.
20155 * ipa-utils.h (ipa_merge_profiles): Declare.
20156 * lto-streamer.h (lto_input_function_body): Update prototype.
20157 (emit_label_in_global_context_p): Remove.
20158 * lto-symtab.c: Include ipa-utils.h
20159 (lto_cgraph_replace_node): Use ipa_merge_profiles.
20160
20161 2013-08-31 Jan Hubicka <jh@suse.cz>
20162
20163 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20164
20165 2013-08-31 Jan Hubicka <jh@suse.cz>
20166
20167 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20168
20169 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
20170
20171 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20172 "cmp" RTX before signed_comparison_operator check to account
20173 for "code" changes.
20174
20175 2013-08-30 Jan Hubicka <jh@suse.cz>
20176
20177 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20178 (detect_type_change_1): Rename to ...
20179 (detect_type_change): ... this one; early return on non-polymorphic
20180 types.
20181 (detect_type_change_ssa): Add comp_type parameter; update
20182 use of detect_type_change.
20183 (compute_complex_assign_jump_func): Add param_type parameter;
20184 update use of detect_type_change_ssa.
20185 (compute_complex_ancestor_jump_func): Likewise.
20186 (ipa_get_callee_param_type): New function.
20187 (ipa_compute_jump_functions_for_edge): Compute parameter type;
20188 update calls to the jump function computation functions.
20189
20190 2013-08-30 Teresa Johnson <tejohnson@google.com>
20191 Steven Bosscher <steven@gcc.gnu.org>
20192
20193 * cfgrtl.c (fixup_new_cold_bb): New routine.
20194 (commit_edge_insertions): Invoke fixup_partitions.
20195 (find_partition_fixes): New routine.
20196 (fixup_partitions): Ditto.
20197 (verify_hot_cold_block_grouping): Update comments.
20198 (rtl_verify_edges): Invoke find_partition_fixes.
20199 (rtl_verify_bb_pointers): Update comments.
20200 (rtl_verify_bb_layout): Ditto.
20201 * basic-block.h (probably_never_executed_edge_p): Declare.
20202 (fixup_partitions): Ditto.
20203 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20204 * bb-reorder.c (sanitize_hot_paths): New function.
20205 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20206 sanitize_hot_paths.
20207 * predict.c (probably_never_executed_edge_p): New routine.
20208 * cfg.c (check_bb_profile): Add partition insanity warnings.
20209
20210 2013-08-30 Meador Inge <meadori@codesourcery.com>
20211
20212 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20213
20214 2013-08-30 Marek Polacek <polacek@redhat.com>
20215
20216 * Makefile.in (ubsan.o): Add.
20217 (c-family/c-ubsan.o): Add.
20218 (builtins.o): Add ubsan.h dependency.
20219 * ubsan.h: New file.
20220 * ubsan.c: New file.
20221 * common.opt: Add -fsanitize=undefined option.
20222 (flag_sanitize): Add variable.
20223 (fsanitize=): Add option. Add Driver.
20224 (fsanitize=thread): Remove option.
20225 (fsanitize=address): Likewise.
20226 (static-libubsan): New option.
20227 * doc/invoke.texi: Document the new flag and -static-libubsan.
20228 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20229 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20230 * builtin-attrs.def (ATTR_COLD): Define.
20231 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20232 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20233 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20234 * flag-types.h (sanitize_code): New enum.
20235 * opts.c (common_handle_option): Parse command line arguments
20236 of -fsanitize=. Add -fsanitize=unreachable option.
20237 * varasm.c (get_variable_section): Adjust.
20238 (assemble_noswitch_variable): Likewise.
20239 (assemble_variable): Likewise.
20240 (output_constant_def_contents): Likewise.
20241 (categorize_decl_for_section): Likewise.
20242 (place_block_symbol): Likewise.
20243 (output_object_block): Likewise.
20244 * builtins.def: Likewise.
20245 * toplev.c (compile_file): Likewise.
20246 (process_options): Likewise.
20247 * cppbuiltin.c: Likewise.
20248 * tsan.c (tsan_pass): Likewise.
20249 (tsan_gate): Likewise.
20250 (tsan_gate_O0): Likewise.
20251 * cfgexpand.c (partition_stack_vars): Likewise.
20252 (expand_stack_vars): Likewise.
20253 (defer_stack_allocation): Likewise.
20254 (expand_used_vars): Likewise.
20255 * cfgcleanup.c (old_insns_match_p): Likewise.
20256 * asan.c (asan_finish_file): Likewise.
20257 (asan_instrument): Likewise.
20258 (gate_asan): Likewise.
20259 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20260 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20261 (asan_global_struct): Use pointer_sized_int_node instead
20262 calling build_nonstandard_integer_type.
20263 (initialize_sanitizer_builtins): Likewise.
20264 (asan_finish_file): Likewise.
20265 * gcc.c: Document %{%:function(args):X}.
20266 (static_spec_functions): Add sanitize.
20267 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20268 store funcval != NULL there.
20269 (do_spec_1): Adjust handle_spec_function caller.
20270 (handle_braces): Allow %:function(args) as condition.
20271 (sanitize_spec_function): New function.
20272 (ADD_STATIC_LIBUBSAN_LIBS): Define.
20273 (LIBUBSAN_SPEC): Likewise.
20274 (LIBUBSAN_EARLY_SPEC): Likewise.
20275 (SANITIZER_SPEC): Handle libubsan.
20276 (SANITIZER_EARLY_SPEC): Likewise.
20277 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20278 instead of fsanitize=address.
20279 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20280 instead of fsanitize=address*.
20281 * builtins.c: Include ubsan.h.
20282 (fold_builtin_0): Instrument __builtin_unreachable.
20283 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20284 instead of flag_asan.
20285 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20286 (pointer_sized_int_node): Define.
20287 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20288
20289 2013-08-30 Mike Stump <mikestump@comcast.net>
20290
20291 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20292 with RE patterns.
20293
20294 2013-08-29 Jan Hubicka <jh@suse.cz>
20295
20296 * cgraph.c (cgraph_function_body_availability): Handle weakref
20297 correctly.
20298 * passes.def: Remove pass_fixup_cfg.
20299 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20300 track when we need to remove functions.
20301 (gate_ipa_inline): Execute inlining always; add comment why.
20302 (pass_data_ipa_inline): Remove TODO_remove_functions.
20303 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20304 do not produce summaries.
20305 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20306 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20307 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20308 constant pool and vtable.
20309
20310 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
20311
20312 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20313 New arm_neon.h's internal macros to specify 64-bit constants.
20314 Avoid using stdint.h's macros.
20315
20316 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
20317
20318 * recog.c (verify_changes): Verify that changes[i].old is non-zero
20319 before applying REG_P.
20320
20321 2013-08-30 Jakub Jelinek <jakub@redhat.com>
20322
20323 PR tree-optimization/58277
20324 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20325 after seeing too many stmts with vdef in between dombb and current
20326 bb, invalidate everything.
20327
20328 2013-08-30 Richard Biener <rguenther@suse.de>
20329
20330 * fold-const.c (fold_single_bit_test): Fix overflow test.
20331
20332 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
20333
20334 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20335 and which can live in a register, always retrieve the value on entry.
20336 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20337 passed by invisible reference specially.
20338 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20339 (vt_add_function_parameter): Correctly deal with a parameter passed by
20340 invisible reference.
20341
20342 2013-08-30 Jan Hubicka <jh@suse.cz>
20343
20344 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20345
20346 2013-08-30 Richard Biener <rguenther@suse.de>
20347
20348 PR tree-optimization/58228
20349 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20350 allow invariant loads in nested loop vectorization.
20351
20352 2013-08-30 Richard Biener <rguenther@suse.de>
20353
20354 PR tree-optimization/58223
20355 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20356 (has_anti_or_output_dependence): ... this and adjust to also
20357 look for output dependences.
20358 (mark_nodes_having_upstream_mem_writes): Adjust.
20359 (rdg_flag_uses): Likewise.
20360
20361 2013-08-30 Richard Biener <rguenther@suse.de>
20362
20363 PR tree-optimization/58010
20364 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20365 assert that we have a loop-closed PHI.
20366
20367 2013-08-29 Jan Hubicka <jh@suse.cz>
20368
20369 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20370 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20371 * lto-section-in.c (lto_free_function_in_decl_state): New function.
20372 (lto_free_function_in_decl_state_for_node): New function.
20373
20374 2013-08-29 Xinliang David Li <davidxl@google.com>
20375
20376 * loop-unroll.c (report_unroll_peel): Minor message change.
20377 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20378 Emit alignment peeling message with default -fopt-info.
20379 (vect_loop_versioning): Emit loop version info message.
20380 * tree-vectorizer.c (vectorize_loops): Minor message change.
20381 (execute_vect_slp): Ditto.
20382
20383 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
20384
20385 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20386 of the clone from the DECL_NAME of the original function.
20387
20388 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
20389
20390 * passes.c (register_pass): Add overload.
20391 * tree-pass.h (register_pass): Forward declare it. Add comment.
20392
20393 2013-08-29 Jan Hubicka <jh@suse.cz>
20394
20395 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20396 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20397 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20398 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20399 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20400 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20401 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20402 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20403
20404 2013-08-29 Teresa Johnson <tejohnson@google.com>
20405
20406 * dumpfile.c (dump_loc): Output column number.
20407 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20408 * doc/invoke.texi: Document optall -fopt-info flag.
20409 * profile.c (read_profile_edge_counts): Use new dump framework.
20410 (compute_branch_probabilities): Ditto.
20411 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20412 when pass not in any opt group.
20413 * pass_manager.h (pass_manager::get_pass_profile): New method.
20414 * value-prof.c (check_counter): Use new dump framework.
20415 (check_ic_target): Ditto.
20416 * coverage.c (get_coverage_counts): Ditto.
20417 (coverage_init): Setup new dump framework.
20418
20419 2013-08-29 Richard Biener <rguenther@suse.de>
20420
20421 PR tree-optimization/58246
20422 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20423 handle the dominance check inside a basic-block.
20424
20425 2013-08-29 Richard Biener <rguenther@suse.de>
20426
20427 PR middle-end/57287
20428 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20429 of default defs that appear in abnormal PHI nodes.
20430
20431 2013-08-29 Richard Biener <rguenther@suse.de>
20432
20433 PR tree-optimization/57685
20434 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20435 single-use operands to avoid exponential complexity.
20436
20437 2013-08-28 Dehao Chen <dehao@google.com>
20438
20439 * ipa-inline.c (edge_badness): Fix integer underflow.
20440
20441 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
20442
20443 * gtm-builtins.def (_ITM_free): Declare leaf.
20444
20445 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20446
20447 PR target/58067
20448 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20449 (*tls_local_dynamic_base_64_largepic): Likewise.
20450 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20451 Remove predicate from call operand.
20452 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20453 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20454
20455 2013-08-28 Jeff Law <law@redhat.com>
20456
20457 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20458 checks for the number of predecessors and successors allowed.
20459 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20460 which require copying a joiner block if there is a request which
20461 is a subpath that requires no joiner block copying.
20462
20463 2013-08-28 Jan Hubicka <jh@suse.cz>
20464
20465 * lto-streamer-out.c (DFS_write_tree_body): Drop
20466 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20467 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20468 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20469 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20470 Do not read DECL_ERROR_ISSUED.
20471 (unpack_ts_decl_with_vis_value_fields): Do not read
20472 DECL_DEFER_OUTPUT.
20473 (lto_input_ts_binfo_tree_pointers): Do not read
20474 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20475 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20476 write DECL_ERROR_ISSUED..
20477 (pack_ts_decl_with_vis_value_fields): Do not write
20478 DECL_DEFER_OUTPUT.
20479 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20480 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20481 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20482 * tree.h (tree_decl_common): Update comment.
20483 (DECL_ERROR_ISSUED): Remove.
20484
20485 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20486
20487 PR middle-end/58257
20488 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20489
20490 2013-08-28 Jan Hubicka <jh@suse.cz>
20491
20492 * builtins.def (free): Declare leaf.
20493
20494 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20495
20496 * gdbhooks.py: New.
20497 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20498 * configure: Regenerate.
20499
20500 2013-08-27 Martin Jambor <mjambor@suse.cz>
20501
20502 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20503 (ipa_ancestor_jf_data): Likewise.
20504 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20505 (ipa_get_jf_pass_through_type_preserved): New function.
20506 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20507 (ipa_get_jf_ancestor_type_preserved): New function.
20508 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20509 (ipa_get_jf_ancestor_result): Likewise.
20510 (propagate_vals_accross_pass_through): Use
20511 ipa_get_jf_pass_through_result to do all the value mappings.
20512 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20513 type_preserved flag.
20514 (ipa_set_jf_cst_copy): New function.
20515 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20516 (ipa_set_jf_arith_pass_through): Likewise.
20517 (ipa_set_ancestor_jf): Likewise.
20518 (compute_complex_assign_jump_func): Set type_preserved instead of
20519 punting.
20520 (ipa_compute_jump_functions_for_edge): Likewise.
20521 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20522 (update_jump_functions_after_inlining): Update type_preserved.
20523 Explicitely create jump functions when combining one with pass_through.
20524 (ipa_write_jump_function): Stream the type_preserved flags.
20525 (ipa_read_jump_function): Likewise.
20526
20527 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20528 Aldy Hernandez <aldyh@redhat.com>
20529
20530 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20531 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20532 * function.h (struct function): Add has_force_vect_loops and
20533 has_simduid_loops.
20534 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20535 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20536 handle it.
20537 * gimple.def: Update CLAUSES comments.
20538 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20539 (gimple_build_omp_for): Add argument to prototype.
20540 (gimple_omp_for_kind): New.
20541 (gimple_omp_for_set_kind): New.
20542 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20543 GOVD_DATA_SHARE_CLASS.
20544 (enum omp_region_type): Add ORT_SIMD.
20545 (gimple_add_tmp_var): Handle ORT_SIMD.
20546 (gimplify_var_or_parm_decl): Same.
20547 (is_gimple_stmt): Same.
20548 (omp_firstprivatize_variable): Same.
20549 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20550 (omp_notice_variable): Handle ORT_SIMD.
20551 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20552 (omp_check_private): Handle ORT_SIMD.
20553 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20554 OMP_CLAUSE_SAFELEN.
20555 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20556 Handle OMP_CLAUSE_LASTPRIVATE.
20557 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20558 OMP_CLAUSE_SAFELEN.
20559 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20560 (gimplify_expr): Handle OMP_SIMD.
20561 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20562 (expand_GOMP_SIMD_VF): New.
20563 (expand_GOMP_SIMD_LAST_LANE): New.
20564 * internal-fn.def (GOMP_SIMD_LANE): New.
20565 (GOMP_SIMD_VF): New.
20566 (GOMP_SIMD_LAST_LANE): New.
20567 * omp-low.c: Include target.h.
20568 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20569 OMP_CLAUSE_SAFELEN.
20570 (check_omp_nesting_restrictions): Same.
20571 (omp_max_vf): New.
20572 (lower_rec_simd_input_clauses): New.
20573 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20574 OMP_CLAUSE_LINEAR.
20575 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20576 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20577 (expand_omp_build_assign): New.
20578 (expand_omp_for_init_counts): New.
20579 (expand_omp_for_init_vars): New.
20580 (extract_omp_for_update_vars): New.
20581 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20582 and rewrite accordingly.
20583 (expand_omp_simd): New.
20584 (expand_omp_for): Use expand_omp_simd.
20585 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20586 (lower_omp_for): Do not lower the body.
20587 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20588 in their own loops.
20589 * tree-flow.h (find_omp_clause): Remove prototype.
20590 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20591 forcing vectorization of the loop, or if flag_tree_vectorize.
20592 (gate_tree_if_conversion): Similarly.
20593 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20594 gimple_build_omp_for.
20595 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20596 * tree-parloops (create_parallel_loop): Pass kind argument to
20597 gimple_build_omp_for.
20598 * tree-pretty-print.c (dump_omp_clause): Add cases for
20599 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20600 OMP_CLAUSE__SIMDUID_.
20601 (dump_generic_node): Handle OMP_SIMD.
20602 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20603 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20604 unroll OMP_SIMD loops here.
20605 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20606 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20607 loop->safelen.
20608 (vect_analyze_data_refs): Handle simd loops.
20609 * tree-vect-loop.c (vectorizable_live_operation): Handle
20610 IFN_GOMP_SIMD*.
20611 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20612 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20613 (vectorizable_load): Same.
20614 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20615 (struct simduid_to_vf): New.
20616 (simduid_to_vf::hash): New.
20617 (simduid_to-vf::equal): New.
20618 (struct simd_array_to_simduid): New.
20619 (simd_array_to_simduid::hash): New.
20620 (simd_array_to_simduid::equal): New.
20621 (adjust_simduid_builtins): New.
20622 (struct note_simd_array_uses_struct): New.
20623 (note_simd_array_uses_cb): New.
20624 (note_simd_array_uses): New.
20625 (vectorize_loops): Handle simd hints and adjust simd builtins
20626 accordingly.
20627 * tree-vectorizer.h (struct _stmt_vec_info): Add
20628 simd_lane_access_p field.
20629 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20630 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20631 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20632 (omp_clause_code_name): Same.
20633 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20634 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20635 * tree.def (OMP_SIMD): New entry.
20636 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20637 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20638 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20639 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20640 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20641 (OMP_CLAUSE_LINEAR_STEP): New.
20642 (OMP_CLAUSE_SAFELEN_EXPR): New.
20643 (OMP_CLAUSE__SIMDUID__DECL): New.
20644 (find_omp_clause): New prototype.
20645
20646 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20647
20648 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20649 Haswell processor detection.
20650
20651 2013-08-27 Christian Widmer <shadow@umbrox.de>
20652
20653 PR target/57927
20654 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20655 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20656 AVX2 capable processors.
20657
20658 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20659
20660 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20661 of vget_low_* with implementations in terms of other intrinsics.
20662
20663 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20664
20665 PR middle-end/57219
20666 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20667 values to -1, 0 and 1.
20668
20669 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20670
20671 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20672 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20673 (<optab><mode>3_insn): Remove.
20674 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20675 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20676 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20677 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20678 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20679 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20680 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20681 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20682 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20683 (ror<mode>3_insn): Likewise.
20684 * config/aarch64/predicates.md (aarch64_simd_register): New.
20685
20686 2013-08-27 Richard Biener <rguenther@suse.de>
20687
20688 PR tree-optimization/57521
20689 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20690 one edge is non-critical.
20691 (find_phi_replacement_condition): Make sure to use a non-critical
20692 edge. Cleanup and remove old bug workarounds.
20693 (bb_postdominates_preds): Remove.
20694 (if_convertible_loop_p_1): Do not compute post-dominators.
20695 (combine_blocks): Do not free post-dominators.
20696 (main_tree_if_conversion): Likewise.
20697 (pass_data_if_conversion): Add TODO_verify_ssa.
20698
20699 2013-08-27 DJ Delorie <dj@redhat.com>
20700
20701 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20702
20703 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20704
20705 * function.c (assign_parm_find_data_types): Set passed_mode and
20706 nominal_mode to the TYPE_MODE of nominal_type for the built
20707 pointer type in case of the struct-pass-by-reference.
20708
20709 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20710
20711 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20712 (UINT16_TYPE): Change default to "unsigned int".
20713
20714 * config/avr/avr.opt (mfract-convert-truncate): New option.
20715 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20716 is set, round negative fractional integers according to n1169
20717 when converting to integer types.
20718
20719 2013-08-26 Jan Hubicka <jh@suse.cz>
20720
20721 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20722 methods can not be called indirectly when their address is not taken.
20723
20724 2013-08-26 Jan Hubicka <jh@suse.cz>
20725
20726 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20727 ctor_for_folding.
20728
20729 2013-08-26 Jan Hubicka <jh@suse.cz>
20730
20731 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20732 can be unshared.
20733
20734 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20735
20736 * reload.c (find_valid_class): Allow classes that do not include
20737 FIRST_PSEUDO_REGISTER - 1.
20738
20739 2013-08-26 Jan Hubicka <jh@suse.cz>
20740
20741 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20742 fix edge count/frequency when speculation failed; fix type check
20743 for the direct call.
20744
20745 2013-08-26 Jan Hubicka <jh@suse.cz>
20746
20747 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20748
20749 2013-08-26 Jan Hubicka <jh@suse.cz>
20750
20751 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20752 to be changed by edge redirection.
20753
20754 2013-08-26 Jan Hubicka <jh@suse.cz>
20755
20756 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20757 formating; add sanity check.
20758 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20759 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20760 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20761 (resolve_noninline_speculation): Update callee keys, too.
20762
20763 2013-08-26 Jan Hubicka <jh@suse.cz>
20764
20765 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20766 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20767
20768 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20769
20770 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20771 into proper place.
20772
20773 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20774
20775 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20776 (x86_64_elf_select_section): Ditto.
20777 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20778 arguments.
20779 (ix86_pass_by_reference): Ditto.
20780 (output_set_got): Ditto.
20781 (ix86_unary_operator_ok): Ditto.
20782 (ix86_expand_builtin): Ditto.
20783
20784 2013-08-23 Jan Hubicka <jh@suse.cz>
20785
20786 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20787
20788 2013-08-23 Jan Hubicka <jh@suse.cz>
20789
20790 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20791 (tree_decl_with_vis): Add FINAL field.
20792
20793 2013-08-23 Jeff Law <law@redhat.com>
20794
20795 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20796 the debugging dump when the expression is fully redundant.
20797
20798 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20799
20800 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20801 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20802 * pretty-print.c (pp_formatted_text_data): Likewise.
20803 (pp_write_text_to_stream): Likewise.
20804 (pp_write_text_as_dot_label_to_stream): Likewise.
20805 (pp_append_r): Likewise.
20806 (pp_format): Likewise.
20807 (pp_flush): Likewise.
20808 (pp_clear_output_area): Likewise.
20809 (pp_append_text): Likewise.
20810 (pp_formatted_text): Likewise.
20811 (pp_remaining_character_count_for_line): Likewise.
20812 (pp_newline): Likewise.
20813 (pp_character): Likewise.
20814 (output_buffer::~output_buffer): Define.
20815 (pretty_printer::~pretty_printer): Destruct output buffer.
20816 * pretty-print.h (output_buffer::~output_buffer): Declare.
20817 (pretty_printer::~pretty_printer): Declare virtual.
20818
20819 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20820
20821 PR other/57324
20822 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20823 HOST_WIDE_INT_M1U): New macros.
20824 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20825 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20826 unsigned -1 for lshift.
20827 * cse.c (cse_insn): Likewise.
20828 * double-int.c (rshift_double, lshift_double): Likewise.
20829 * builtins.c (fold_builtin_bitop): Likewise.
20830 * combine.c (force_to_mode): Likewise.
20831 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20832 * simplify-rtx.c (simplify_const_unary_operation,
20833 simplify_const_binary_operation): Likewise.
20834 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20835 check_va_list_escapes): Likewise.
20836 * rtlanal.c (nonzero_bits1): Likewise.
20837 * expmed.c (expand_smod_pow2): Likewise.
20838 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20839
20840 2013-08-23 Jan Hubicka <jh@suse.cz>
20841
20842 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20843 as having address taken.
20844
20845 2013-08-23 Jan Hubicka <jh@suse.cz>
20846
20847 * ipa-utils.h (method_class_type): Declare.
20848 * ipa-devirt.c (method_class_type): Export.
20849
20850 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20851 do not walk base classes of anonymous types.
20852
20853 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20854
20855 PR rtl-optimization/58220
20856 PR regression/58221
20857 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20858 handle SEQUENCE insns properly.
20859
20860 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20861
20862 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20863 definition.
20864 (pp_newline_and_indent): Likewise.
20865 (pp_separate_with): Likewise.
20866 * pretty-print.c (pp_newline_and_flush): Define.
20867 (pp_newline_and_indent): Likewise.
20868 (pp_separate_with): Likewise.
20869
20870 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20871
20872 PR target/58218
20873 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20874 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20875
20876 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20877
20878 * config/i386/predicates.md (ext_sse_reg_operand): New.
20879 * config/i386/i386.md (*movti_internal): Use
20880 predicate to determine if EVEX is needed.
20881 (*movsi_internal): Ditto.
20882 (*movdf_internal): Ditto.
20883 (*movsf_internal): Ditto.
20884 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20885
20886 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20887
20888 PR tree-optimization/58209
20889 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20890 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20891 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20892 emit POINTER_PLUS_EXPR.
20893 (create_tailcall_accumulator): For pointer result type accumulate in
20894 sizetype type.
20895
20896 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20897
20898 * configure.ac: Add backslashes missing from the last change.
20899 * configure: Regenerate.
20900
20901 2013-08-22 Jan Hubicka <jh@susue.cz>
20902
20903 * ipa.c (function_and_variable_visibility): First remember function
20904 was global and then make it local.
20905
20906 2013-08-22 Julian Brown <julian@codesourcery.com>
20907
20908 * configure.ac: Add aarch64 to list of arches which use "nop" in
20909 debug_line test.
20910 * configure: Regenerate.
20911
20912 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20913
20914 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20915 gnu_libc_has_function.
20916 * config/s390/tpf.h: Likewise.
20917
20918 2013-08-22 Jan Hubicka <jh@susue.cz>
20919
20920 * timevar.c (validate_phases): Add cast.
20921
20922 2013-08-22 Jan Hubicka <jh@susue.cz>
20923
20924 * timevar.c (validate_phases): Use size_t for memory.
20925 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20926
20927 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20928
20929 * pretty-print.h (output_buffer::output_buffer): Declare.
20930 (pretty_printer::pretty_printer): Likewise.
20931 (pp_construct): Remove.
20932 * pretty-print.c (output_buffer::output_buffer): Define.
20933 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20934 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20935 (print_gimple_expr): Likewise.
20936 (print_gimple_seq): Likewise.
20937 (gimple_dump_bb): Likewise.
20938 * sched-vis.c (dump_value_slim): Likewise.
20939 (dump_insn_slim): Likewise.
20940 (dump_rtl_slim): Likewise.
20941 (str_pattern_slim): Likewise.
20942 * tree-mudflap.c (mf_varname_tree): Likewise.
20943 * graph.c (print_graph_cfg): Likewise.
20944 (start_graph_dump): Likewise.
20945 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20946 placement-new.
20947 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20948 pretty printer initialization.
20949 * coretypes.h (diagnostic_context): Remove superflous type alias
20950 declaration.
20951 (pretty_printer): Likewise. Declare directly as a class.
20952 (pretty_print_info): Remove declaration as class.
20953 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20954 and pp_clear_output_area.
20955 (asan_add_global): Likewise.
20956
20957 2013-08-22 Jan Hubicka <jh@suse.cz>
20958
20959 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20960 * ipa-utils.h (update_type_inheritance_graph): Declare.
20961 (possible_polymorphic_call_target_p): Declare.
20962 (possible_polymorphic_call_target_p): New.
20963 * ipa-devirt.c: Update toplevel comments.
20964 (cached_polymorphic_call_targets): Move up.
20965 (odr_type_d): Move ID down.
20966 (polymorphic_type_binfo_p): Update comment.
20967 (odr_hasher::remove): Likewise;
20968 (get_odr_type): Set anonymous_namespace.
20969 (dump_odr_type): Dump it.
20970 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20971 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20972 (record_binfo): Add comment.
20973 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20974 built.
20975 (devirt_node_removal_hook): Do not iCE when cache is freed.
20976 (possible_polymorphic_call_target_p): New predicate.
20977 (update_type_inheritance_graph): New function.
20978
20979 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20981 Sergey Lega <sergey.s.lega@intel.com>
20982 Anna Tikhonova <anna.tikhonova@intel.com>
20983 Ilya Tocar <ilya.tocar@intel.com>
20984 Andrey Turetskiy <andrey.turetskiy@intel.com>
20985 Ilya Verbin <ilya.verbin@intel.com>
20986 Kirill Yukhin <kirill.yukhin@intel.com>
20987 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20988
20989 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20990 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20991 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20992 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20993 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20994 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20995 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20996 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20997 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20998 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20999 OPT_mavx512pf, OPT_mavx512er cases.
21000 * config/i386/constraints.md (v): New constraint.
21001 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
21002 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
21003 (bit_AVX512CD): New.
21004 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21005 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
21006 * config/i386/i386-c.c (ix86_target_macros_internal):
21007 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
21008 __AVX512PF__.
21009 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
21010 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
21011 * config/i386/i386.c (regclass_map, dbx_register_map)
21012 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
21013 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
21014 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
21015 -mavx512pf options.
21016 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
21017 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
21018 -mavx512pf options. Fix formatting.
21019 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
21020 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
21021 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21022 -mavx512cd, -mavx512pf options.
21023 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21024 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21025 (ix86_preferred_output_reload_class): Replace SSE_REGS with
21026 ALL_SSE_REGS.
21027 (ix86_hard_regno_mode_ok): Support 512-bit registers.
21028 (ix86_set_reg_reg_cost): Ditto.
21029 (x86_order_regs_for_local_alloc): Ditto.
21030 (MAX_VECT_LEN): Extend to 64-byte.
21031 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21032 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21033 (TARGET_AVX512ER, TARGET_AVX512CD): New.
21034 (BIGGEST_ALIGNMENT): Extend to 512-bits.
21035 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21036 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21037 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21038 (SSE_REG_MODE_P): Support new modes.
21039 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21040 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21041 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21042 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21043 (REG_CLASS_CONTENTS): Add new registers.
21044 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21045 (EXT_REX_SSE_REGNO_P): New.
21046 (HI_REGISTER_NAMES): Add new registers.
21047 * config/i386/i386.md: Define constants for new registers.
21048 (mode): Add new 512-bit modes.
21049 (prefix): Support evex prefix.
21050 (isa): Support avx512f, noavx512f, fma_avx512f.
21051 (ssemodesuffix): Add new 512-bit modes.
21052 (movxi): New.
21053 (*movxi_internal_avx512f): Ditto.
21054 (*movdi_internal): Replace constraint "x" with the new constraint "v".
21055 Support MODE_XI.
21056 (*movsi_internal): Likewise.
21057 (*movdf_internal): Likewise.
21058 (*movsf_internal): Likewise.
21059 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21060 (<code><mode>3): Likewise.
21061 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21062 New.
21063 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21064 with the new constraint "v".
21065 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21066 modes.
21067 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21068 with the new constraint "v".
21069 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21070 (<sse2>_storedqu<avxsizesuffix>): Likewise.
21071 (*<plusminus_insn><mode>3): Likewise.
21072 (<sse>_vm<plusminus_insn><mode>3): Likewise.
21073 (*mul<mode>3): Likewise.
21074 (<sse>_vmmul<mode>3): Likewise.
21075 (<sse>_div<mode>3): Likewise.
21076 (<sse>_vmdiv<mode>3): Likewise.
21077 (<sse>_sqrt<mode>2): Likewise.
21078 (<sse>_vmsqrt<mode>2): Likewise.
21079 (*<code><mode>3_finite): Likewise.
21080 (*<code><mode>3) <smaxmin>: Likewise.
21081 (<sse>_vm<code><mode>3): Likewise.
21082 (*<code><mode>3) <any_logic>: Likewise.
21083 (*fma_fmadd_<mode>): Likewise.
21084 (*fma_fmsub_<mode>): Likewise.
21085 (*fma_fnmadd_<mode>): Likewise.
21086 (*fma_fnmsub_<mode>): Likewise.
21087 (*fma_fmaddsub_<mode>): Likewise.
21088 (*fma_fmsubadd_<mode>): Likewise.
21089 (*fmai_fmadd_<mode>): Likewise.
21090 (*fmai_fmsub_<mode>): Likewise.
21091 (*fmai_fnmadd_<mode>): Likewise.
21092 (*fmai_fnmsub_<mode>): Likewise.
21093 (sse_cvtsi2ss): Likewise.
21094 (sse_cvtsi2ssq): Likewise.
21095 (sse_cvtss2si): Likewise.
21096 (sse_cvtss2si_2): Likewise.
21097 (sse_cvtss2siq): Likewise.
21098 (sse_cvtss2siq_2): Likewise.
21099 (sse_cvttss2si): Likewise.
21100 (sse_cvtss2siq_2): Likewise.
21101 (float<sseintvecmodelower><mode>2): Likewise.
21102 (sse2_cvtsd2si_2): Likewise.
21103 (sse2_cvtsd2siq_2): Likewise.
21104 (*<plusminus_insn><mode>3): Likewise.
21105 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21106 (*<sse4_1_avx2>_mul<mode>3): Likewise.
21107 (ashr<mode>3): Likewise.
21108 (<shift_insn><mode>3): Likewise.
21109 (avx2_<code><mode>3): Likewise.
21110 (*avx2_<code><mode>3): Likewise.
21111 (*andnot<mode>3): Likewise.
21112 (*<code><mode>3) <any_logic>: Likewise.
21113 (abs<mode>2): Likewise.
21114 (avx2_permvar<mode>): Likewise.
21115 (avx2_perm<mode>_1): Likewise.
21116 (*avx_vpermilp<mode>): Likewise.
21117 (avx_vpermilvar<mode>3): Likewise.
21118 (avx2_ashrv<mode>): Likewise.
21119 (avx2_<shift_insn>v<mode>): Likewise.
21120 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21121 -mavx512cd.
21122 * doc/rtl.texi: Document XImode.
21123
21124 2013-08-21 Jeff Law <law@redhat.com>
21125
21126 * tree-flow.h (register_jump_thread): Pass vector of edges
21127 instead of each important edge.
21128 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21129 thread path into a vector and pass that to register_jump_thread.
21130 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21131 passed in edge vector to the current 3-edge form.
21132
21133 Revert:
21134 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21135
21136 * dce.c (fini_dce): Call df_analyze again just in case
21137 delete_unmarked_insns removed anything.
21138
21139 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
21140
21141 * reload.h (struct reg_equivs): Rename to ..
21142 (struct reg_equivs_s): .. this.
21143
21144 2013-08-20 Martin Liska <marxin.liska@gmail.com>
21145
21146 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21147
21148 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21149
21150 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21151
21152 2013-08-21 Jeff Law <law@redhat.com>
21153
21154 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21155 simplify assignments too. If the RHS collapses to a singleton
21156 range, then return the value for the range.
21157
21158 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
21159
21160 * config/i386/sse.md (V16): Rename to...
21161 (VMOVE): this.
21162 (mov<mode>): Update iterator name.
21163 (*mov<mode>_internal): Ditto.
21164 (push<mode>1): Ditto.
21165 (movmisalign<mode>): Ditto.
21166
21167 2013-08-20 Jan Hubicka <jh@suse.cz>
21168
21169 PR bootstrap/58186
21170 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21171 entry for direct edges.
21172 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21173
21174 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21175
21176 Revert my last two changes, r201865 and r201864:
21177
21178 Revert r201865:
21179 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21180
21181 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21182 instances can own GC refs.
21183
21184 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21185 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21186 (gcc::context::gt_pch_nx): Likewise.
21187 (gcc::context::gt_pch_nx): Likewise.
21188 * ggc.h (gt_ggc_mx <T>): New.
21189 (gt_pch_nx_with_op <T>): New.
21190 (gt_pch_nx <T>): New.
21191 * passes.c (opt_pass::gt_ggc_mx): New.
21192 (opt_pass::gt_pch_nx): New.
21193 (opt_pass::gt_pch_nx_with_op): New.
21194 (pass_manager::gt_ggc_mx): New.
21195 (pass_manager::gt_pch_nx): New.
21196 (pass_manager::gt_pch_nx_with_op): New.
21197 (pass_manager::operator new): Use
21198 ggc_internal_cleared_alloc_stat rather than xcalloc.
21199 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21200 (pass_manager::gt_ggc_mx): New.
21201 (pass_manager::gt_pch_nx): New.
21202 (pass_manager::gt_pch_nx_with_op): New.
21203 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21204 (opt_pass::operator new): New.
21205 (opt_pass::gt_ggc_mx): New.
21206 (opt_pass::gt_pch_nx): New.
21207 (opt_pass::gt_pch_nx_with_op): New.
21208
21209 Revert r201864:
21210 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21211
21212 * Makefile.in (GTFILES): Add context.h.
21213 * context.c (gcc::context::operator new): New.
21214 (gcc::context::gt_ggc_mx): New.
21215 (gcc::context::gt_pch_nx): New.
21216 (gcc::context::gt_pch_nx): New.
21217 * context.h (gcc::context): Add GTY((user)) marking.
21218 (gcc::context::operator new): New.
21219 (gcc::context::gt_ggc_mx): New.
21220 (gcc::context::gt_pch_nx): New.
21221 (gcc::context::gt_pch_nx): New.
21222 (g): Add GTY marking.
21223 (gt_ggc_mx (gcc::context *)): New.
21224 (gt_pch_nx (gcc::context *)): New.
21225 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21226 void *cookie)): New.
21227 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21228
21229 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21230
21231 * dce.c (fini_dce): Call df_analyze again just in case
21232 delete_unmarked_insns removed anything.
21233
21234 2013-08-20 Teresa Johnson <tejohnson@google.com>
21235
21236 PR rtl-optimizations/57451
21237 * final.c (reemit_insn_block_notes): Prevent lexical blocks
21238 from crossing split section boundaries.
21239
21240 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21241
21242 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21243 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21244 with MULTLIB_DEFAULTS.
21245
21246 2013-08-20 Nick Clifton <nickc@redhat.com>
21247
21248 * target.def (narrow_volatile_bitfield): Note that the default
21249 value is false, not !TARGET_STRICT_ALIGN.
21250 * doc/tm.texi: Regenerate.
21251
21252 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
21253
21254 Fix LIB_SPEC for systems without libpthread.
21255
21256 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21257 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21258 for Android.
21259 * config/i386/linux-common.h: Likewise.
21260 * config/mips/linux-common.h: Likewise.
21261
21262 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21263
21264 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21265 checks.
21266
21267 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21268
21269 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21270 instances can own GC refs.
21271
21272 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21273 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21274 (gcc::context::gt_pch_nx): Likewise.
21275 (gcc::context::gt_pch_nx): Likewise.
21276 * ggc.h (gt_ggc_mx <T>): New.
21277 (gt_pch_nx_with_op <T>): New.
21278 (gt_pch_nx <T>): New.
21279 * passes.c (opt_pass::gt_ggc_mx): New.
21280 (opt_pass::gt_pch_nx): New.
21281 (opt_pass::gt_pch_nx_with_op): New.
21282 (pass_manager::gt_ggc_mx): New.
21283 (pass_manager::gt_pch_nx): New.
21284 (pass_manager::gt_pch_nx_with_op): New.
21285 (pass_manager::operator new): Use
21286 ggc_internal_cleared_alloc_stat rather than xcalloc.
21287 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21288 (pass_manager::gt_ggc_mx): New.
21289 (pass_manager::gt_pch_nx): New.
21290 (pass_manager::gt_pch_nx_with_op): New.
21291 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21292 (opt_pass::operator new): New.
21293 (opt_pass::gt_ggc_mx): New.
21294 (opt_pass::gt_pch_nx): New.
21295 (opt_pass::gt_pch_nx_with_op): New.
21296
21297 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21298
21299 * Makefile.in (GTFILES): Add context.h.
21300 * context.c (gcc::context::operator new): New.
21301 (gcc::context::gt_ggc_mx): New.
21302 (gcc::context::gt_pch_nx): New.
21303 (gcc::context::gt_pch_nx): New.
21304 * context.h (gcc::context): Add GTY((user)) marking.
21305 (gcc::context::operator new): New.
21306 (gcc::context::gt_ggc_mx): New.
21307 (gcc::context::gt_pch_nx): New.
21308 (gcc::context::gt_pch_nx): New.
21309 (g): Add GTY marking.
21310 (gt_ggc_mx (gcc::context *)): New.
21311 (gt_pch_nx (gcc::context *)): New.
21312 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21313 void *cookie)): New.
21314 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21315
21316 2013-08-20 Alan Modra <amodra@gmail.com>
21317
21318 PR target/57865
21319 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21320 (rs6000_emit_epilogue): Likewise.
21321
21322 2013-08-19 Dehao Chen <dehao@google.com>
21323
21324 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21325
21326 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
21327 Jakub Jelinek <jakub@redhat.com>
21328
21329 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21330 (BUILT_IN_FABSD64): Likewise.
21331 (BUILT_IN_FABSD128): Likewise.
21332 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21333 (fold_builtin_1): Likewise.
21334 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21335 destination and source operands.
21336 (*abstd2_fpr): Likewise.
21337 (*nabstd2_fpr): Likewise.
21338
21339 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
21340
21341 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21342 JUMP_P and INSN_P.
21343
21344 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
21345
21346 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21347 incomplete.
21348
21349 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
21350
21351 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21352 * builtins.c (default_libc_has_function): New.
21353 (gnu_libc_has_function): Ditto.
21354 (no_c99_libc_has_function): Ditto.
21355 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21356 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21357 (fold_builtin_sincos): Likewise.
21358 (fold_builtin_cexp): Likewise.
21359 * builtins.def (DEF_C94_BUILTIN): Likewise.
21360 (DEF_C99_BUILTIN): Likewise.
21361 (DEF_C99_C90RES_BUILTIN): Likewise.
21362 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21363 definitions to using this define.
21364 * config/darwin-protos.h (darwin_libc_has_function): New.
21365 * config/darwin.c (darwin_libc_has_function): Ditto.
21366 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21367 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21368 * config/darwin.h: Ditto.
21369 * config/elfos.h: Ditto.
21370 * config/freebsd.h: Ditto.
21371 * config/i386/cygming.h: Ditto.
21372 * config/i386/djgpp.h: Ditto.
21373 * config/i386/i386-interix.h: Ditto.
21374 * config/microblaze/microblaze.h: Ditto.
21375 * config/mmix/mmix.h: Ditto.
21376 * config/gnu-user.h: Ditto.
21377 * config/ia64/hpux.h: Ditto.
21378 * config/pa/pa-hpux.h: Ditto.
21379 * config/pdp11/pdp11.h: Ditto.
21380 * config/picochip/picochip.h: Ditto.
21381 * config/linux.h: Ditto.
21382 * config/netbsd.h: Ditto.
21383 * config/openbsd.h: Ditto.
21384 * config/rs6000/aix43.h: Ditto.
21385 * config/rs6000/aix51.h: Ditto.
21386 * config/rs6000/aix52.h: Ditto.
21387 * config/rs6000/aix53.h: Ditto.
21388 * config/rs6000/aix61.h: Ditto.
21389 * config/rs6000/darwin.h: Ditto.
21390 * config/rs6000/linux.h: Ditto.
21391 * config/rs6000/linux64.h: Ditto.
21392 * config/s390/tpf.h: Ditto.
21393 * config/sol2-10.h: Ditto.
21394 * config/sol2.h: Ditto.
21395 * config/vms/vms.h: Ditto.
21396 * config/vxworks.h: Ditto.
21397 * config/linux-android.c (linux_android_libc_has_function):
21398 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21399 * config/linux-protos.h (linux_android_libc_has_function):
21400 New declaration.
21401 * config/i386/i386.c (ix86_libc_has_function): New.
21402 * config/i386/i386-protos.h
21403 (ix86_libc_has_function): New declaration.
21404 * config/i386/i386.md
21405 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21406 ("isinf<mode>2): Likewise.
21407 * convert.c (convert_to_integer): Using new target hook
21408 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21409 TARGET_C99_FUNCTIONS.
21410 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21411 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21412 * coretypes.h (function_class): New enum for different
21413 classes of functions.
21414 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21415 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21416 (TARGET_HAS_SINCOS): Likewise.
21417 (TARGET_LIBC_HAS_FUNCTION): New.
21418 * doc/tm.texi: Regenerated.
21419 * targhooks.h (default_libc_has_function): New declaration.
21420 (no_c99_libc_has_function): Ditto.
21421 (gnu_libc_has_function): Ditto.
21422 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21423 and TARGET_HAS_SINCOS.
21424
21425 2013-08-18 Jan Hubicka <jh@suse.cz>
21426
21427 * Makeifle-in (ipa-devirt.o): New.
21428 (GTFILES): Add ipa-utils.h and ipa-devirt.c
21429 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21430 (analyze_functions): Look into possible targets of polymorphic call.
21431 * dumpfile.c (dump_files): Add type-inheritance dump.
21432 * dumpfile.h (TDI_inheritance): New.
21433 * ipa-devirt.c: New file.
21434 * ipa-utils.h (odr_type_d): Forward declare.
21435 (odr_type): New type.
21436 (build_type_inheritance_graph): Declare.
21437 (possible_polymorphic_call_targets): Declare and introduce inline
21438 variant when only edge is pased.
21439 (dump_possible_polymorphic_call_targets): Likewise.
21440 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21441 * tree.c (type_in_anonymous_namespace_p): Break out from ...
21442 (types_same_for_odr): ... here.
21443 * tree.h (type_in_anonymous_namespace_p): Declare.
21444
21445 2013-08-18 Jakub Jelinek <jakub@redhat.com>
21446
21447 PR tree-optimization/58006
21448 * tree-parloops.c (take_address_of): Don't ICE if get_name
21449 returns NULL.
21450 (eliminate_local_variables_stmt): Remove clobber stmts.
21451
21452 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
21453
21454 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21455 error message is issued for an alias to undefined symbol.
21456
21457 2013-08-18 Jan Hubicka <jh@suse.cz>
21458
21459 * cgraph.c (cgraph_create_indirect_edge): Discover
21460 polymorphic calls and record basic info into indirect_info.
21461 * gimple-fold.c (gimple_fold_call): When doing BINFO based
21462 devirtualization, ignore objc function calls.
21463 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21464 call with no parm index info.
21465 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21466 * tree.c (virtual_method_call_p): New function.
21467 * tree.h (virtual_method_call_p): Declare.
21468
21469 2013-08-16 Jan Hubicka <jh@suse.cz>
21470
21471 PR middle-end/58179
21472 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21473
21474 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21475
21476 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21477 attribute.
21478
21479 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21480
21481 * gengtype.c (type_for_name): Add special-case support for
21482 locating types within the "gcc::" namespace.
21483 (open_base_files): Emit a "using namespace gcc" directive.
21484
21485 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21486
21487 PR target/58160
21488 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21489 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21490
21491 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21492 array instead of each individual operand as a separate argument.
21493 (emit_fusion_gpr_load): Likewise.
21494 (expand_fusion_gpr_load): Add new function declaration.
21495
21496 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21497 signature to have the operands passed as an array, instead of as
21498 separate arguments. Allow ZERO_EXTEND to be in the memory
21499 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21500 depend on the register live/dead flags when peepholes are run.
21501 (expand_fusion_gpr_load): New function to be called from the
21502 peephole2 pass, to change the register that addis sets to be the
21503 target register.
21504 (emit_fusion_gpr_load): Change the calling signature to have the
21505 operands passed as an array, instead of as separate arguments.
21506 Allow ZERO_EXTEND to be in the memory address, and also
21507 SIGN_EXTEND if -mpower8-fusion-sign.
21508
21509 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21510 unspec enumeration.
21511 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21512 adjust the register addis loads up in the peephole2 pass. Do not
21513 depend on the register live/dead state when the peephole pass is done.
21514
21515 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21516
21517 * gengtype.c (create_user_defined_type): Ensure that the kind
21518 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21519 declaration is seen before the GTY((user)) marking.
21520
21521 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21522
21523 PR target/58105
21524 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21525
21526 2013-08-16 Jan Hubicka <jh@suse.cz>
21527
21528 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21529 arugment expected_type.
21530 (gimple_fold_call): Use it.
21531 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21532 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21533 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21534 (try_make_edge_direct_virtual_call): Likewise.
21535 * tree.c (obj_type_ref_class): New.
21536 * tree.h (obj_type_ref_class): Use it.
21537
21538 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21539
21540 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21541 (rtl_slim_pp): Likewise.
21542 (init_rtl_slim_pretty_print): Likewise.
21543 (dump_value_slim): Don't call it. Use local pretty printer.
21544 (dump_insn_slim): Likewise.
21545 (dump_rtl_slim): Likewise.
21546 (str_pattern_slim): Likewise.
21547 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21548 Simplify.
21549
21550 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21551
21552 PR tree-optimization/58164
21553 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21554 walk gimple_goto_dest of GIMPLE_GOTO.
21555
21556 PR tree-optimization/58165
21557 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21558 bi_call must be the last stmt in a bb, don't split_block, instead
21559 use fallthru edge from it and give up if there is none.
21560 Release conds vector when returning early.
21561
21562 2013-08-14 Xinliang David Li <davidxl@google.com>
21563
21564 * config/i386/i386.c (ix86_option_override_internal):
21565 Remove unused variable and field.
21566
21567 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21568
21569 PR target/57949
21570 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21571 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21572 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21573 and Linux, correct BLKmode alignment when 128-bit alignment is
21574 required and compatibility flag is not set.
21575 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21576 for zero-size arguments when compatibility flag is not set.
21577
21578 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21579
21580 PR tree-optimization/58145
21581 * tree-sra.c (build_ref_for_offset): If prev_base has
21582 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21583
21584 2013-08-14 Xinliang David Li <davidxl@google.com>
21585
21586 * config/i386/i386.c (ix86_option_override_internal):
21587 Fix uninitialized variable error.
21588
21589 2013-08-14 Xinliang David Li <davidxl@google.com>
21590
21591 * config/i386/i386.opt: Define two new options.
21592 * config/i386/x86-tune.def: Add arch selector field in macros.
21593 * config/i386/i386.h: Adjust macro definition.
21594 * config/i386/i386.c (ix86_option_override_internal):
21595 Refactor the code.
21596 (parse_mtune_ctrl_str): New function.
21597 (set_ix86_tune_features): New function.
21598 (ix86_function_specific_restore): Call the new helper function.
21599
21600 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21601
21602 PR rtl-optimization/57662
21603 * sel-sched.c (code_motion_process_successors): When the current insn
21604 is removed after the recursive traversal, break from the loop.
21605 Add comments and debug printouts.
21606
21607 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21608 Alexandre Oliva <aoliva@redhat.com>
21609
21610 PR target/58067
21611 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21612 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21613 there also UNSPEC_PLTOFF.
21614
21615 2013-08-14 Marek Polacek <polacek@redhat.com>
21616
21617 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21618 NUM_CONDITIONS bit positions.
21619
21620 2013-08-13 Cary Coutant <ccoutant@google.com>
21621
21622 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21623 (attr_checksum): Hash vector contents instead of pointer.
21624 (attr_checksum_ordered): Likewise.
21625
21626 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21627
21628 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21629 when Pmode != word_mode. Add length_address attribute.
21630 (sse3_monitor_<mode>): Merge from sse3_monitor and
21631 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21632 Pmode != word_mode. Update insn length attribute.
21633 * config/i386/i386.c (ix86_option_override_internal): Update
21634 ix86_gen_monitor selection for merged sse3_monitor insn.
21635
21636 2013-08-13 Julian Brown <julian@codesourcery.com>
21637
21638 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21639 perform invalid legitimization on greater-than-word-size modes for
21640 TARGET_E500_DOUBLE.
21641
21642 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21643
21644 * ira.c (setup_class_translate_array): Use aclass instead of cl
21645 for classes not fully covered by allocno classes.
21646
21647 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21648
21649 PR tree-optimization/57661
21650 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21651 * tree-inline.c (tree_function_versioning): Initialize it.
21652 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21653 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21654 that is not being copied.
21655
21656 PR sanitizer/56417
21657 * asan.c (instrument_strlen_call): Fix typo in comment.
21658 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21659
21660 2013-08-13 Steve Ellcey <sellcey@mips.com>
21661
21662 * config/mips/mips.md (prefetch): Use lw instead of ld on
21663 loongson in 32bit mode.
21664
21665 2013-08-13 Nick Clifton <nickc@redhat.com>
21666
21667 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21668
21669 2013-08-13 Jan Hubicka <jh@suse.cz>
21670
21671 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21672 introduced edge; fix typo in sanity check.
21673 (cgraph_resolve_speculation): Export; improve diagnostic.
21674 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21675 speculation at type mismatch.
21676 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21677 (cgraph_resolve_speculation): Declare.
21678 (symtab_can_be_discarded): New function.
21679 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21680 * ipa-inline-transform.c (speculation_removed): New global var.
21681 (clone_inlined_nodes): See if speculation can be removed.
21682 (inline_call): If speculations was removed, we growths may not match.
21683 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21684 (speculation_useful_p): New function.
21685 (resolve_noninline_speculation): New function.
21686 (inline_small_functions): Resolve useless speculations.
21687 * ipa-inline.h (speculation_useful_p): Declare
21688 * ipa.c (can_replace_by_local_alias): Simplify.
21689 (ipa_profile): Produce speculative calls in non-lto, too;
21690 add simple cost model; produce local aliases.
21691
21692 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21693
21694 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21695 PASS_MANAGER_H.
21696
21697 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21698
21699 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21700
21701 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21702
21703 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21704 iterator instead of X87MODEF.
21705
21706 2013-08-12 Perez Read <netfirewall@gmail.com>
21707
21708 PR target/58132
21709 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21710 operand 0 for intel asm alternative.
21711 (*movabs<mode>_2): Ditto for operand 1.
21712
21713 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21714
21715 * config/aarch64/arm_none.h
21716 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21717
21718 2013-08-12 Nick Clifton <nickc@redhat.com>
21719
21720 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21721
21722 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21723
21724 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21725 expand for QI/HImode operand to produce more effictive code for
21726 unsigned char(short) --> float(double) conversion.
21727
21728 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21729
21730 * doc/invoke.texi: Mention that -ftls-model does not force the final
21731 model.
21732
21733 2013-08-12 Marek Polacek <polacek@redhat.com>
21734 Marc Glisse <marc.glisse@inria.fr>
21735
21736 PR tree-optimization/57980
21737 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21738 when creating -1 constant.
21739
21740 2013-08-10 Jan Hubicka <jh@suse.cz>
21741
21742 Workaround binutils PR14342.
21743 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21744 (gimple_init_edge_profiler): Likewise.
21745 (gimple_gen_ic_func_profiler): Likewise.
21746
21747 2013-08-09 Jan Hubicka <jh@suse.cz>
21748
21749 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21750
21751 2013-08-09 Xinliang David Li <davidxl@google.com>
21752
21753 * config/i386/stringop.def: New file.
21754 * config/i386/stringop.opt: New file.
21755 * config/i386/i386-opts.h: Include stringopt.def.
21756 * config/i386/i386.opt: Include stringopt.opt.
21757 * config/i386/i386.c (ix86_option_override_internal):
21758 Override default size based stringop inline strategies with options.
21759 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21760 New function.
21761
21762 2013-08-09 Jan Hubicka <jh@suse.cz>
21763
21764 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21765
21766 2013-08-09 Jan Hubicka <jh@suse.cz>
21767
21768 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21769 CGRAPH_FREQ_MAX.
21770 (dump_cgraph_node): Dump profile-id.
21771 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21772 and common_target_probability.
21773 * lto-cgraph.c (lto_output_edge): Stream common targets.
21774 (lto_output_node): Stream profile ids.
21775 (input_node): Stream profile ids.
21776 (input_edge): Stream common targets.
21777 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21778 * ipa.c: Include value-prof.h
21779 (ipa_profile_generate_summary): Turn indirect call statement histograms
21780 into common targets.
21781 (ipa_profile): Turn common targets into speculative edges.
21782
21783 2013-08-09 Jan Hubicka <jh@suse.cz>
21784
21785 * cgraph.h (cgraph_node): Add profile_id.
21786 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21787 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21788 (del_node_map): Update.
21789 (find_func_by_funcdef_no): Replace by ...
21790 (find_func_by_profile_id): ... this one.
21791 (gimple_ic_transform): Do not remove useful histograms when
21792 speculation is not done; dump info when indirect call removal
21793 can happen at LTO.
21794 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21795 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21796 (__gcov_indirect_call_profiler_v2): .. this one.
21797 * profile.h (init_node_map): Update.
21798 * coverage.c (coverage_compute_profile_id): New function.
21799 * coverage.h (coverage_compute_profile_id): Declare.
21800 * tree-profile.c (init_ic_make_global_vars): Make
21801 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21802 (gimple_init_edge_profiler): Update prototype of
21803 __gcov_indirect_call_profiler.
21804 (gimple_gen_ic_func_profiler): Simplify.
21805 (tree_profiling): Use init_node_map
21806
21807 2013-08-09 Jan Hubicka <jh@suse.cz>
21808
21809 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21810 non-speculative refs.
21811 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21812 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21813 (cgraph_set_call_stmt): Likewise.
21814 (cgraph_create_edge_1): Fix release checking compilatoin;
21815 clear lto_stmt_uid.
21816 (cgraph_free_edge): Free indirect info.
21817 (cgraph_turn_edge_to_speculative): New function.
21818 (cgraph_speculative_call_info): New function.
21819 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21820 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21821 (dump_cgraph_node): Dump speculation.
21822 (verify_edge_count_and_frequency): Accept speculative edges.
21823 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21824 (verify_cgraph_node): Handle speculation.
21825 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21826 (cgraph_set_call_stmt): Update prototype.
21827 (cgraph_make_edge_direct): Update prototype.
21828 (cgraph_speculative_call_info): Declare.
21829 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21830 to change; update call of ipa_find_references.
21831 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21832 lto_stmt_uid and speculative flags.
21833 (ipa_dump_references): Dump speculation.
21834 (ipa_clone_references): Clone speculative flag.
21835 (ipa_clone_referring): Likewise.
21836 (ipa_clone_ref): New function.
21837 (ipa_find_reference): Look into lto_stmt_uids
21838 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21839 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21840 (ipa_find_reference): Update declaration.
21841 (ipa_clone_ref): Declare.
21842 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21843 stream speculative flag.
21844 (lto_output_ref): Stream statements uids and speculation.
21845 (input_ref): Likewise.
21846 (input_edge): Stream speuclation.
21847 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21848 (cgraph_set_call_stmt_including_clones): Handle speculation.
21849 * ipa-inline.c (heap_edge_removal_hook): New function.
21850 (inline_small_functions): Register it.
21851 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21852 also initialize refs.
21853 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21854 edge to change.
21855 (try_make_edge_direct_simple_call): Likewise.
21856 (try_make_edge_direct_simple_call): Likewise.
21857 (update_indirect_edges_after_inlining): Likewise.
21858 (remove_described_reference): Look proper lto_stmt_uid.
21859 (propagate_controlled_uses): Likewise.
21860 (propagate_controlled_uses): Liekwise.
21861 * tree-inline.c (copy_bb): Copy speculative edges.
21862 (redirect_all_calls): New function.
21863 (copy_cfg_body): Do redirection after loop info is updated.
21864 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21865
21866 2013-08-09 Jan Hubicka <jh@suse.cz>
21867
21868 * lto-streamer-out.c (output_function): Renumber PHIs.
21869 * lto-streamer-in.c (input_function): Likewise.
21870
21871 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21872
21873 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21874 (get_lane_unsigned): Likewise.
21875 (dup_lane_scalar): Likewise.
21876 (get_lane): enable for VALL.
21877 * config/aarch64/aarch64-simd.md
21878 (aarch64_dup_lane_scalar<mode>): Remove.
21879 (aarch64_get_lane_signed<mode>): Likewise.
21880 (aarch64_get_lane_unsigned<mode>): Likewise.
21881 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21882 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21883 (aarch64_get_lane<mode>): Enable for all vector modes.
21884 (aarch64_get_lanedi): Remove misleading constraints.
21885 * config/aarch64/arm_neon.h
21886 (__aarch64_vget_lane_any): Define.
21887 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21888 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21889 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21890 * config/aarch64/iterators.md (VDQQH): New.
21891 (VDQQHS): Likewise.
21892 (vwcore): Likewise.
21893
21894 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21895
21896 * configure.ac: Add GAS check for LEON instructions on SPARC.
21897 * configure: Regenerate.
21898 * config.in: Likewise.
21899 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21900 sparc*-*-* block.
21901 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21902 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21903 for LEON or LEON3.
21904 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21905 (AS_LEON_FLAG): New macro.
21906 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21907 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21908 Deal with LEON and LEON3 for the memory model.
21909 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21910 (atomic_compare_and_swap<mode>_1): Likewise.
21911 (*atomic_compare_and_swap<mode>_1): Likewise.
21912
21913 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21914
21915 * config/arm/neon.md (vcond): Fix floating-point vector
21916 comparisons against 0.
21917
21918 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21919
21920 * lra-constraints.c (emit_spill_move): Remove assert.
21921 (process_alt_operands): Add more debugging
21922 output. Increase reject for spilling into memory. Decrease
21923 reject for reloading scratch.
21924 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21925
21926 2013-08-08 Steve Ellcey <sellcey@mips.com>
21927
21928 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21929 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21930 micromips incompatible. Add nan2008.
21931 (MULTILIB_DIRNAMES): Add nan2008.
21932 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21933 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21934 and micromips incompatible. Add nan2008.
21935 (MULTILIB_DIRNAMES): Add nan2008.
21936 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21937
21938 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21939
21940 PR rtl-optimization/58079
21941 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21942 simplify_comparison has widened a comparison with an integer.
21943
21944 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21945
21946 * config/arm/neon.md (movmisalign<mode>): Disable when we
21947 don't allow unaligned accesses.
21948 (*movmisalign<mode>_neon_store): Likewise.
21949 (*movmisalign<mode>_neon_load): Likewise.
21950 (*movmisalign<mode>_neon_store): Likewise.
21951 (*movmisalign<mode>_neon_load): Likewise.
21952
21953 2013-08-08 Jan Hubicka <jh@suse.cz>
21954
21955 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21956 (make_pass_rebuild_cgraph_edges): Also clear references.
21957 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21958 * ipa-inline-transform.c (inline_transform): Remove all references
21959 after inlining.
21960 * cgraphunit.c (expand_function): Remove all references after
21961 expansion.
21962 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21963 (ipa_find_reference): Rewrite to iterator.
21964 (remove_stmt_references): Likewise.
21965 (ipa_clear_stmts_in_references): New function.
21966 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21967 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21968 clear references.
21969 * ipa-split.c (split_function): Remove references in split function.
21970
21971 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21972
21973 PR target/57431
21974 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21975 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21976
21977 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21978
21979 PR target/56979
21980 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21981 suggested mode for the assignment isn't compatible with the
21982 registers required.
21983
21984 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21985
21986 PR target/58065
21987 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21988
21989 2013-08-07 Xinliang David Li <davidxl@google.com>
21990
21991 * config/i386/i386.opt: New option -mtune-ctrl=.
21992 * config/i386/x86-tune.def: New file.
21993 * config/i386/i386.h: include x86-tune.def.
21994 * config/i386/i386.c (ix86_option_override_internal):
21995 Parsing -mtune-ctrl= option and set tune features.
21996
21997 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21998
21999 PR other/12081
22000 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
22001 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
22002 to gen_2arg_fn_t.
22003
22004 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22005
22006 * rtl.h (update_alignments): Declare.
22007 * final.c (grow_label_align): New function extracted from...
22008 (shorten_branches): ...here. Call it.
22009 (update_alignments): New function.
22010 * reorg.c (sibling_labels): New variable.
22011 (get_label_before): Add SIBLING parameter. If it is non-zero, push
22012 the new label along with it onto the sibling_labels vector.
22013 (fill_simple_delay_slots): Adjust call to get_label_before.
22014 (fill_slots_from_thread): Likewise.
22015 (relax_delay_slots): Likewise.
22016 (make_return_insns): Likewise.
22017 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
22018
22019 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22020
22021 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22022 document its semantics.
22023 (diagnostic_report_diagnostic): Adjust accordingly.
22024
22025 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22026
22027 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22028 (sparc_option_override): ...and port to new C++ pass API.
22029 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22030
22031 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
22032
22033 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22034
22035 2013-08-06 Caroline Tice <cmtice@google.com>
22036
22037 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22038 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22039 * tree-pass.h: Add pass_vtable_verify.
22040 * varasm.c (assemble_variable): Add code to properly set the comdat
22041 section and name for the .vtable_map_vars section.
22042 (assemble_vtyv_preinit_initializer): New function.
22043 (default_sectin_type_flags): Make sure .vtable_map_vars section has
22044 LINK_ONCE flag.
22045 * output.h: Add function decl for assemble_vtv_preinit_initializer.
22046 * vtable-verify.c: New file.
22047 * vtable-verify.h: New file.
22048 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22049 initialiation levels.
22050 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22051 * passes.def: Insert pass_vtable_verify.
22052 * aclocal.m4: Reorder includes.
22053 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
22054 -fvtv-counts options.
22055 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22056 as appropriate, if -fvtable-verify=... is used.
22057 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22058 -fvtable-verify=... is used.
22059 * Makefile.in (OBJS): Add vtable-verify.o to list.
22060 (vtable-verify.o): Add new build rule.
22061 (GTFILES): Add vtable-verify.c to list.
22062 * common.opt (fvtable-verify=): New flag.
22063 (vtv_priority): Values for fvtable-verify= flag.
22064 (fvtv-counts): New flag.
22065 (fvtv-debug): New flag.
22066 * tree.h (save_vtable_map_decl): New extern function decl.
22067
22068 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22069
22070 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22071 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22072 (pass_data_rl78_devirt): ...new pass_data instance and...
22073 (make_pass_rl78_devirt): ...new function.
22074 (rl78_asm_file_start): Port pass registration to new C++ API.
22075
22076 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22077
22078 * coretypes.h (rtl_opt_pass): Add.
22079 (gcc::context): Add.
22080 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22081 (epiphany_init): Port to new C++ pass API.
22082 (epiphany_optimize_mode_switching): Likewise.
22083 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22084 (pass_manager::get_pass_mode_switching): New.
22085 (pass_manager::get_pass_peephole2): New.
22086 * mode-switching.c (pass_mode_switching): Add clone method.
22087 * recog.c (pass_peephole2): Add clone method.
22088 (pass_split_all_insns): Add clone method.
22089
22090 2013-08-06 David Malcolm <dmalcolm@redhat.com>
22091
22092 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22093 (mips_option_override): ...here, porting to new C++ API for passes.
22094
22095 2013-08-06 Jan Hubicka <jh@suse.cz>
22096
22097 * cgraph.c (cgraph_get_body): New function based on lto.c
22098 implementation.
22099 * cgraph.h (cgraph_get_body): Declare.
22100 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22101 LTO paths.
22102 * cgraphunit.c (expand_function): Get body prior expanding.
22103 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22104 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22105 really need.
22106 * passes.c (do_per_function_toporder): Get body.
22107 * tree-inline.c (expand_call_inline): Get body prior inlining it.
22108 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22109
22110 2013-08-06 Martin Jambor <mjambor@suse.cz>
22111
22112 PR fortran/57987
22113 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22114 is not re-finalized. Rename second parameter to no_collect.
22115
22116 2013-08-06 Martin Jambor <mjambor@suse.cz>
22117
22118 PR middle-end/58041
22119 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22120 MEM_REF has proper alignment information.
22121
22122 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
22123
22124 PR other/12081
22125 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22126 class insn_gen_fn.
22127 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22128 rtx (*) (rtx, ...) with insn_gen_fn.
22129 * genoutput.c (output_insn_data): Cast gen_? function pointers to
22130 insn_gen_fn::stored_funcptr. Add initializer braces.
22131
22132 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22133
22134 Rewrite how instances of passes are cloned to remove assumptions
22135 about their sizes (thus allowing pass subclasses to have
22136 additional data fields, albeit non-GC-managed ones at this point).
22137
22138 * passes.c (make_pass_instance): Now that passes have clone
22139 methods, rewrite this function to eliminate XNEW and memcpy
22140 calls that used hardcoded sizes. Since this function no longer
22141 creates pass instances, rename it to...
22142 (add_pass_instance): ...this. Document the old way that passes were
22143 numbered and flagged, and rework this function to continue using it.
22144 (next_pass_1): Add an initial_pass argument for use by
22145 add_pass_instance.
22146 (position_pass): When adding multiple instances of a pass, use
22147 the pass's clone method, rather than relying on the XNEW/memcpy
22148 within the former make_pass_instance (now add_pass_instance).
22149 (pass_manager::pass_manager): When invoking next_pass_1, also supply
22150 the initial instance of the current pass within the pass manager.
22151
22152 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22153
22154 This is the automated part of the conversion of passes from C
22155 structs to C++ classes.
22156
22157 Patch autogenerated by refactor_passes.py from
22158 https://github.com/davidmalcolm/gcc-refactoring-scripts
22159 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22160
22161 * asan.c (pass_asan): Convert from a global struct to a subclass of
22162 gimple_opt_pass along with...
22163 (pass_data_asan): ...new pass_data instance and...
22164 (make_pass_asan): ...new function.
22165 (pass_asan_O0): Convert from a global struct to a subclass of
22166 gimple_opt_pass along with...
22167 (pass_data_asan_O0): ...new pass_data instance and...
22168 (make_pass_asan_O0): ...new function.
22169 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22170 subclass of rtl_opt_pass along with...
22171 (pass_data_inc_dec): ...new pass_data instance and...
22172 (make_pass_inc_dec): ...new function.
22173 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22174 a subclass of rtl_opt_pass along with...
22175 (pass_data_reorder_blocks): ...new pass_data instance and...
22176 (make_pass_reorder_blocks): ...new function.
22177 (pass_duplicate_computed_gotos): Convert from a global struct to a
22178 subclass of rtl_opt_pass along with...
22179 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22180 (make_pass_duplicate_computed_gotos): ...new function.
22181 (pass_partition_blocks): Convert from a global struct to a subclass of
22182 rtl_opt_pass along with...
22183 (pass_data_partition_blocks): ...new pass_data instance and...
22184 (make_pass_partition_blocks): ...new function.
22185 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22186 struct to a subclass of rtl_opt_pass along with...
22187 (pass_data_branch_target_load_optimize1): ...new pass_data instance
22188 and...
22189 (make_pass_branch_target_load_optimize1): ...new function.
22190 (pass_branch_target_load_optimize2): Convert from a global struct to a
22191 subclass of rtl_opt_pass along with...
22192 (pass_data_branch_target_load_optimize2): ...new pass_data instance
22193 and...
22194 (make_pass_branch_target_load_optimize2): ...new function.
22195 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22196 of rtl_opt_pass along with...
22197 (pass_data_jump): ...new pass_data instance and...
22198 (make_pass_jump): ...new function.
22199 (pass_jump2): Convert from a global struct to a subclass of
22200 rtl_opt_pass along with...
22201 (pass_data_jump2): ...new pass_data instance and...
22202 (make_pass_jump2): ...new function.
22203 * cfgexpand.c (pass_expand): Convert from a global struct to a
22204 subclass of rtl_opt_pass along with...
22205 (pass_data_expand): ...new pass_data instance and...
22206 (make_pass_expand): ...new function.
22207 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22208 of rtl_opt_pass along with...
22209 (pass_data_free_cfg): ...new pass_data instance and...
22210 (make_pass_free_cfg): ...new function.
22211 (pass_into_cfg_layout_mode): Convert from a global struct to a
22212 subclass of rtl_opt_pass along with...
22213 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22214 (make_pass_into_cfg_layout_mode): ...new function.
22215 (pass_outof_cfg_layout_mode): Convert from a global struct to a
22216 subclass of rtl_opt_pass along with...
22217 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22218 (make_pass_outof_cfg_layout_mode): ...new function.
22219 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22220 struct to a subclass of gimple_opt_pass along with...
22221 (pass_data_build_cgraph_edges): ...new pass_data instance and...
22222 (make_pass_build_cgraph_edges): ...new function.
22223 (pass_rebuild_cgraph_edges): Convert from a global struct to a
22224 subclass of gimple_opt_pass along with...
22225 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22226 (make_pass_rebuild_cgraph_edges): ...new function.
22227 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22228 subclass of gimple_opt_pass along with...
22229 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22230 and...
22231 (make_pass_remove_cgraph_callee_edges): ...new function.
22232 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22233 struct to a subclass of rtl_opt_pass along with...
22234 (pass_data_stack_adjustments): ...new pass_data instance and...
22235 (make_pass_stack_adjustments): ...new function.
22236 * combine.c (pass_combine): Convert from a global struct to a subclass
22237 of rtl_opt_pass along with...
22238 (pass_data_combine): ...new pass_data instance and...
22239 (make_pass_combine): ...new function.
22240 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22241 global struct to a subclass of rtl_opt_pass along with...
22242 (pass_data_compare_elim_after_reload): ...new pass_data instance
22243 and...
22244 (make_pass_compare_elim_after_reload): ...new function.
22245 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22246 of rtl_opt_pass along with...
22247 (pass_data_rtl_cprop): ...new pass_data instance and...
22248 (make_pass_rtl_cprop): ...new function.
22249 * cse.c (pass_cse): Convert from a global struct to a subclass of
22250 rtl_opt_pass along with...
22251 (pass_data_cse): ...new pass_data instance and...
22252 (make_pass_cse): ...new function.
22253 (pass_cse2): Convert from a global struct to a subclass of
22254 rtl_opt_pass along with...
22255 (pass_data_cse2): ...new pass_data instance and...
22256 (make_pass_cse2): ...new function.
22257 (pass_cse_after_global_opts): Convert from a global struct to a
22258 subclass of rtl_opt_pass along with...
22259 (pass_data_cse_after_global_opts): ...new pass_data instance and...
22260 (make_pass_cse_after_global_opts): ...new function.
22261 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22262 of rtl_opt_pass along with...
22263 (pass_data_ud_rtl_dce): ...new pass_data instance and...
22264 (make_pass_ud_rtl_dce): ...new function.
22265 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22266 rtl_opt_pass along with...
22267 (pass_data_fast_rtl_dce): ...new pass_data instance and...
22268 (make_pass_fast_rtl_dce): ...new function.
22269 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22270 a subclass of rtl_opt_pass along with...
22271 (pass_data_df_initialize_opt): ...new pass_data instance and...
22272 (make_pass_df_initialize_opt): ...new function.
22273 (pass_df_initialize_no_opt): Convert from a global struct to a
22274 subclass of rtl_opt_pass along with...
22275 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22276 (make_pass_df_initialize_no_opt): ...new function.
22277 (pass_df_finish): Convert from a global struct to a subclass of
22278 rtl_opt_pass along with...
22279 (pass_data_df_finish): ...new pass_data instance and...
22280 (make_pass_df_finish): ...new function.
22281 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22282 rtl_opt_pass along with...
22283 (pass_data_rtl_dse1): ...new pass_data instance and...
22284 (make_pass_rtl_dse1): ...new function.
22285 (pass_rtl_dse2): Convert from a global struct to a subclass of
22286 rtl_opt_pass along with...
22287 (pass_data_rtl_dse2): ...new pass_data instance and...
22288 (make_pass_rtl_dse2): ...new function.
22289 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22290 subclass of rtl_opt_pass along with...
22291 (pass_data_dwarf2_frame): ...new pass_data instance and...
22292 (make_pass_dwarf2_frame): ...new function.
22293 * except.c (pass_set_nothrow_function_flags): Convert from a global
22294 struct to a subclass of rtl_opt_pass along with...
22295 (pass_data_set_nothrow_function_flags): ...new pass_data instance
22296 and...
22297 (make_pass_set_nothrow_function_flags): ...new function.
22298 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22299 subclass of rtl_opt_pass along with...
22300 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22301 and...
22302 (make_pass_convert_to_eh_region_ranges): ...new function.
22303 * final.c (pass_compute_alignments): Convert from a global struct to a
22304 subclass of rtl_opt_pass along with...
22305 (pass_data_compute_alignments): ...new pass_data instance and...
22306 (make_pass_compute_alignments): ...new function.
22307 (pass_final): Convert from a global struct to a subclass of
22308 rtl_opt_pass along with...
22309 (pass_data_final): ...new pass_data instance and...
22310 (make_pass_final): ...new function.
22311 (pass_shorten_branches): Convert from a global struct to a subclass of
22312 rtl_opt_pass along with...
22313 (pass_data_shorten_branches): ...new pass_data instance and...
22314 (make_pass_shorten_branches): ...new function.
22315 (pass_clean_state): Convert from a global struct to a subclass of
22316 rtl_opt_pass along with...
22317 (pass_data_clean_state): ...new pass_data instance and...
22318 (make_pass_clean_state): ...new function.
22319 * function.c (pass_instantiate_virtual_regs): Convert from a global
22320 struct to a subclass of rtl_opt_pass along with...
22321 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22322 (make_pass_instantiate_virtual_regs): ...new function.
22323 (pass_leaf_regs): Convert from a global struct to a subclass of
22324 rtl_opt_pass along with...
22325 (pass_data_leaf_regs): ...new pass_data instance and...
22326 (make_pass_leaf_regs): ...new function.
22327 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22328 subclass of rtl_opt_pass along with...
22329 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22330 and...
22331 (make_pass_thread_prologue_and_epilogue): ...new function.
22332 (pass_match_asm_constraints): Convert from a global struct to a
22333 subclass of rtl_opt_pass along with...
22334 (pass_data_match_asm_constraints): ...new pass_data instance and...
22335 (make_pass_match_asm_constraints): ...new function.
22336 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22337 subclass of rtl_opt_pass along with...
22338 (pass_data_rtl_fwprop): ...new pass_data instance and...
22339 (make_pass_rtl_fwprop): ...new function.
22340 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22341 rtl_opt_pass along with...
22342 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22343 (make_pass_rtl_fwprop_addr): ...new function.
22344 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22345 rtl_opt_pass along with...
22346 (pass_data_rtl_pre): ...new pass_data instance and...
22347 (make_pass_rtl_pre): ...new function.
22348 (pass_rtl_hoist): Convert from a global struct to a subclass of
22349 rtl_opt_pass along with...
22350 (pass_data_rtl_hoist): ...new pass_data instance and...
22351 (make_pass_rtl_hoist): ...new function.
22352 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22353 subclass of gimple_opt_pass along with...
22354 (pass_data_lower_cf): ...new pass_data instance and...
22355 (make_pass_lower_cf): ...new function.
22356 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22357 from a global struct to a subclass of gimple_opt_pass along with...
22358 (pass_data_strength_reduction): ...new pass_data instance and...
22359 (make_pass_strength_reduction): ...new function.
22360 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22361 of rtl_opt_pass along with...
22362 (pass_data_rtl_ifcvt): ...new pass_data instance and...
22363 (make_pass_rtl_ifcvt): ...new function.
22364 (pass_if_after_combine): Convert from a global struct to a subclass of
22365 rtl_opt_pass along with...
22366 (pass_data_if_after_combine): ...new pass_data instance and...
22367 (make_pass_if_after_combine): ...new function.
22368 (pass_if_after_reload): Convert from a global struct to a subclass of
22369 rtl_opt_pass along with...
22370 (pass_data_if_after_reload): ...new pass_data instance and...
22371 (make_pass_if_after_reload): ...new function.
22372 * init-regs.c (pass_initialize_regs): Convert from a global struct to
22373 a subclass of rtl_opt_pass along with...
22374 (pass_data_initialize_regs): ...new pass_data instance and...
22375 (make_pass_initialize_regs): ...new function.
22376 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22377 of ipa_opt_pass_d along with...
22378 (pass_data_ipa_cp): ...new pass_data instance and...
22379 (make_pass_ipa_cp): ...new function.
22380 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22381 global struct to a subclass of gimple_opt_pass along with...
22382 (pass_data_inline_parameters): ...new pass_data instance and...
22383 (make_pass_inline_parameters): ...new function.
22384 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22385 subclass of gimple_opt_pass along with...
22386 (pass_data_early_inline): ...new pass_data instance and...
22387 (make_pass_early_inline): ...new function.
22388 (pass_ipa_inline): Convert from a global struct to a subclass of
22389 ipa_opt_pass_d along with...
22390 (pass_data_ipa_inline): ...new pass_data instance and...
22391 (make_pass_ipa_inline): ...new function.
22392 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22393 struct to a subclass of gimple_opt_pass along with...
22394 (pass_data_local_pure_const): ...new pass_data instance and...
22395 (make_pass_local_pure_const): ...new function.
22396 (pass_ipa_pure_const): Convert from a global struct to a subclass of
22397 ipa_opt_pass_d along with...
22398 (pass_data_ipa_pure_const): ...new pass_data instance and...
22399 (make_pass_ipa_pure_const): ...new function.
22400 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22401 to a subclass of ipa_opt_pass_d along with...
22402 (pass_data_ipa_reference): ...new pass_data instance and...
22403 (make_pass_ipa_reference): ...new function.
22404 * ipa-split.c (pass_split_functions): Convert from a global struct to
22405 a subclass of gimple_opt_pass along with...
22406 (pass_data_split_functions): ...new pass_data instance and...
22407 (make_pass_split_functions): ...new function.
22408 (pass_feedback_split_functions): Convert from a global struct to a
22409 subclass of gimple_opt_pass along with...
22410 (pass_data_feedback_split_functions): ...new pass_data instance and...
22411 (make_pass_feedback_split_functions): ...new function.
22412 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22413 global struct to a subclass of simple_ipa_opt_pass along with...
22414 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22415 instance and...
22416 (make_pass_ipa_function_and_variable_visibility): ...new function.
22417 (pass_ipa_free_inline_summary): Convert from a global struct to a
22418 subclass of simple_ipa_opt_pass along with...
22419 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22420 (make_pass_ipa_free_inline_summary): ...new function.
22421 (pass_ipa_whole_program_visibility): Convert from a global struct to a
22422 subclass of ipa_opt_pass_d along with...
22423 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22424 and...
22425 (make_pass_ipa_whole_program_visibility): ...new function.
22426 (pass_ipa_profile): Convert from a global struct to a subclass of
22427 ipa_opt_pass_d along with...
22428 (pass_data_ipa_profile): ...new pass_data instance and...
22429 (make_pass_ipa_profile): ...new function.
22430 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22431 ipa_opt_pass_d along with...
22432 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22433 (make_pass_ipa_cdtor_merge): ...new function.
22434 * ira.c (pass_ira): Convert from a global struct to a subclass of
22435 rtl_opt_pass along with...
22436 (pass_data_ira): ...new pass_data instance and...
22437 (make_pass_ira): ...new function.
22438 (pass_reload): Convert from a global struct to a subclass of
22439 rtl_opt_pass along with...
22440 (pass_data_reload): ...new pass_data instance and...
22441 (make_pass_reload): ...new function.
22442 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22443 subclass of rtl_opt_pass along with...
22444 (pass_data_cleanup_barriers): ...new pass_data instance and...
22445 (make_pass_cleanup_barriers): ...new function.
22446 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22447 of rtl_opt_pass along with...
22448 (pass_data_loop2): ...new pass_data instance and...
22449 (make_pass_loop2): ...new function.
22450 (pass_rtl_loop_init): Convert from a global struct to a subclass of
22451 rtl_opt_pass along with...
22452 (pass_data_rtl_loop_init): ...new pass_data instance and...
22453 (make_pass_rtl_loop_init): ...new function.
22454 (pass_rtl_loop_done): Convert from a global struct to a subclass of
22455 rtl_opt_pass along with...
22456 (pass_data_rtl_loop_done): ...new pass_data instance and...
22457 (make_pass_rtl_loop_done): ...new function.
22458 (pass_rtl_move_loop_invariants): Convert from a global struct to a
22459 subclass of rtl_opt_pass along with...
22460 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22461 (make_pass_rtl_move_loop_invariants): ...new function.
22462 (pass_rtl_unswitch): Convert from a global struct to a subclass of
22463 rtl_opt_pass along with...
22464 (pass_data_rtl_unswitch): ...new pass_data instance and...
22465 (make_pass_rtl_unswitch): ...new function.
22466 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22467 subclass of rtl_opt_pass along with...
22468 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22469 and...
22470 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22471 (pass_rtl_doloop): Convert from a global struct to a subclass of
22472 rtl_opt_pass along with...
22473 (pass_data_rtl_doloop): ...new pass_data instance and...
22474 (make_pass_rtl_doloop): ...new function.
22475 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22476 a subclass of rtl_opt_pass along with...
22477 (pass_data_lower_subreg): ...new pass_data instance and...
22478 (make_pass_lower_subreg): ...new function.
22479 (pass_lower_subreg2): Convert from a global struct to a subclass of
22480 rtl_opt_pass along with...
22481 (pass_data_lower_subreg2): ...new pass_data instance and...
22482 (make_pass_lower_subreg2): ...new function.
22483 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22484 struct to a subclass of ipa_opt_pass_d along with...
22485 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22486 (make_pass_ipa_lto_gimple_out): ...new function.
22487 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22488 of ipa_opt_pass_d along with...
22489 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22490 (make_pass_ipa_lto_finish_out): ...new function.
22491 * mode-switching.c (pass_mode_switching): Convert from a global struct
22492 to a subclass of rtl_opt_pass along with...
22493 (pass_data_mode_switching): ...new pass_data instance and...
22494 (make_pass_mode_switching): ...new function.
22495 * modulo-sched.c (pass_sms): Convert from a global struct to a
22496 subclass of rtl_opt_pass along with...
22497 (pass_data_sms): ...new pass_data instance and...
22498 (make_pass_sms): ...new function.
22499 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22500 subclass of gimple_opt_pass along with...
22501 (pass_data_expand_omp): ...new pass_data instance and...
22502 (make_pass_expand_omp): ...new function.
22503 (pass_lower_omp): Convert from a global struct to a subclass of
22504 gimple_opt_pass along with...
22505 (pass_data_lower_omp): ...new pass_data instance and...
22506 (make_pass_lower_omp): ...new function.
22507 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22508 of gimple_opt_pass along with...
22509 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22510 (make_pass_diagnose_omp_blocks): ...new function.
22511 * passes.c (pass_early_local_passes): Convert from a global struct to
22512 a subclass of simple_ipa_opt_pass along with...
22513 (pass_data_early_local_passes): ...new pass_data instance and...
22514 (make_pass_early_local_passes): ...new function.
22515 (pass_all_early_optimizations): Convert from a global struct to a
22516 subclass of gimple_opt_pass along with...
22517 (pass_data_all_early_optimizations): ...new pass_data instance and...
22518 (make_pass_all_early_optimizations): ...new function.
22519 (pass_all_optimizations): Convert from a global struct to a subclass
22520 of gimple_opt_pass along with...
22521 (pass_data_all_optimizations): ...new pass_data instance and...
22522 (make_pass_all_optimizations): ...new function.
22523 (pass_all_optimizations_g): Convert from a global struct to a subclass
22524 of gimple_opt_pass along with...
22525 (pass_data_all_optimizations_g): ...new pass_data instance and...
22526 (make_pass_all_optimizations_g): ...new function.
22527 (pass_rest_of_compilation): Convert from a global struct to a subclass
22528 of rtl_opt_pass along with...
22529 (pass_data_rest_of_compilation): ...new pass_data instance and...
22530 (make_pass_rest_of_compilation): ...new function.
22531 (pass_postreload): Convert from a global struct to a subclass of
22532 rtl_opt_pass along with...
22533 (pass_data_postreload): ...new pass_data instance and...
22534 (make_pass_postreload): ...new function.
22535 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22536 subclass of rtl_opt_pass along with...
22537 (pass_data_gcse2): ...new pass_data instance and...
22538 (make_pass_gcse2): ...new function.
22539 * postreload.c (pass_postreload_cse): Convert from a global struct to
22540 a subclass of rtl_opt_pass along with...
22541 (pass_data_postreload_cse): ...new pass_data instance and...
22542 (make_pass_postreload_cse): ...new function.
22543 * predict.c (pass_profile): Convert from a global struct to a subclass
22544 of gimple_opt_pass along with...
22545 (pass_data_profile): ...new pass_data instance and...
22546 (make_pass_profile): ...new function.
22547 (pass_strip_predict_hints): Convert from a global struct to a subclass
22548 of gimple_opt_pass along with...
22549 (pass_data_strip_predict_hints): ...new pass_data instance and...
22550 (make_pass_strip_predict_hints): ...new function.
22551 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22552 of rtl_opt_pass along with...
22553 (pass_data_peephole2): ...new pass_data instance and...
22554 (make_pass_peephole2): ...new function.
22555 (pass_split_all_insns): Convert from a global struct to a subclass of
22556 rtl_opt_pass along with...
22557 (pass_data_split_all_insns): ...new pass_data instance and...
22558 (make_pass_split_all_insns): ...new function.
22559 (pass_split_after_reload): Convert from a global struct to a subclass
22560 of rtl_opt_pass along with...
22561 (pass_data_split_after_reload): ...new pass_data instance and...
22562 (make_pass_split_after_reload): ...new function.
22563 (pass_split_before_regstack): Convert from a global struct to a
22564 subclass of rtl_opt_pass along with...
22565 (pass_data_split_before_regstack): ...new pass_data instance and...
22566 (make_pass_split_before_regstack): ...new function.
22567 (pass_split_before_sched2): Convert from a global struct to a subclass
22568 of rtl_opt_pass along with...
22569 (pass_data_split_before_sched2): ...new pass_data instance and...
22570 (make_pass_split_before_sched2): ...new function.
22571 (pass_split_for_shorten_branches): Convert from a global struct to a
22572 subclass of rtl_opt_pass along with...
22573 (pass_data_split_for_shorten_branches): ...new pass_data instance
22574 and...
22575 (make_pass_split_for_shorten_branches): ...new function.
22576 * ree.c (pass_ree): Convert from a global struct to a subclass of
22577 rtl_opt_pass along with...
22578 (pass_data_ree): ...new pass_data instance and...
22579 (make_pass_ree): ...new function.
22580 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22581 subclass of rtl_opt_pass along with...
22582 (pass_data_stack_regs): ...new pass_data instance and...
22583 (make_pass_stack_regs): ...new function.
22584 (pass_stack_regs_run): Convert from a global struct to a subclass of
22585 rtl_opt_pass along with...
22586 (pass_data_stack_regs_run): ...new pass_data instance and...
22587 (make_pass_stack_regs_run): ...new function.
22588 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22589 subclass of rtl_opt_pass along with...
22590 (pass_data_cprop_hardreg): ...new pass_data instance and...
22591 (make_pass_cprop_hardreg): ...new function.
22592 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22593 subclass of rtl_opt_pass along with...
22594 (pass_data_reginfo_init): ...new pass_data instance and...
22595 (make_pass_reginfo_init): ...new function.
22596 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22597 of rtl_opt_pass along with...
22598 (pass_data_regmove): ...new pass_data instance and...
22599 (make_pass_regmove): ...new function.
22600 * regrename.c (pass_regrename): Convert from a global struct to a
22601 subclass of rtl_opt_pass along with...
22602 (pass_data_regrename): ...new pass_data instance and...
22603 (make_pass_regrename): ...new function.
22604 * reorg.c (pass_delay_slots): Convert from a global struct to a
22605 subclass of rtl_opt_pass along with...
22606 (pass_data_delay_slots): ...new pass_data instance and...
22607 (make_pass_delay_slots): ...new function.
22608 (pass_machine_reorg): Convert from a global struct to a subclass of
22609 rtl_opt_pass along with...
22610 (pass_data_machine_reorg): ...new pass_data instance and...
22611 (make_pass_machine_reorg): ...new function.
22612 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22613 of rtl_opt_pass along with...
22614 (pass_data_sched): ...new pass_data instance and...
22615 (make_pass_sched): ...new function.
22616 (pass_sched2): Convert from a global struct to a subclass of
22617 rtl_opt_pass along with...
22618 (pass_data_sched2): ...new pass_data instance and...
22619 (make_pass_sched2): ...new function.
22620 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22621 to a subclass of rtl_opt_pass along with...
22622 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22623 (make_pass_stack_ptr_mod): ...new function.
22624 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22625 to a subclass of rtl_opt_pass along with...
22626 (pass_data_rtl_store_motion): ...new pass_data instance and...
22627 (make_pass_rtl_store_motion): ...new function.
22628 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22629 of gimple_opt_pass along with...
22630 (pass_data_tracer): ...new pass_data instance and...
22631 (make_pass_tracer): ...new function.
22632 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22633 to a subclass of gimple_opt_pass along with...
22634 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22635 (make_pass_diagnose_tm_blocks): ...new function.
22636 (pass_lower_tm): Convert from a global struct to a subclass of
22637 gimple_opt_pass along with...
22638 (pass_data_lower_tm): ...new pass_data instance and...
22639 (make_pass_lower_tm): ...new function.
22640 (pass_tm_init): Convert from a global struct to a subclass of
22641 gimple_opt_pass along with...
22642 (pass_data_tm_init): ...new pass_data instance and...
22643 (make_pass_tm_init): ...new function.
22644 (pass_tm_mark): Convert from a global struct to a subclass of
22645 gimple_opt_pass along with...
22646 (pass_data_tm_mark): ...new pass_data instance and...
22647 (make_pass_tm_mark): ...new function.
22648 (pass_tm_edges): Convert from a global struct to a subclass of
22649 gimple_opt_pass along with...
22650 (pass_data_tm_edges): ...new pass_data instance and...
22651 (make_pass_tm_edges): ...new function.
22652 (pass_tm_memopt): Convert from a global struct to a subclass of
22653 gimple_opt_pass along with...
22654 (pass_data_tm_memopt): ...new pass_data instance and...
22655 (make_pass_tm_memopt): ...new function.
22656 (pass_ipa_tm): Convert from a global struct to a subclass of
22657 simple_ipa_opt_pass along with...
22658 (pass_data_ipa_tm): ...new pass_data instance and...
22659 (make_pass_ipa_tm): ...new function.
22660 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22661 subclass of gimple_opt_pass along with...
22662 (pass_data_call_cdce): ...new pass_data instance and...
22663 (make_pass_call_cdce): ...new function.
22664 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22665 subclass of gimple_opt_pass along with...
22666 (pass_data_build_cfg): ...new pass_data instance and...
22667 (make_pass_build_cfg): ...new function.
22668 (pass_split_crit_edges): Convert from a global struct to a subclass of
22669 gimple_opt_pass along with...
22670 (pass_data_split_crit_edges): ...new pass_data instance and...
22671 (make_pass_split_crit_edges): ...new function.
22672 (pass_warn_function_return): Convert from a global struct to a
22673 subclass of gimple_opt_pass along with...
22674 (pass_data_warn_function_return): ...new pass_data instance and...
22675 (make_pass_warn_function_return): ...new function.
22676 (pass_warn_function_noreturn): Convert from a global struct to a
22677 subclass of gimple_opt_pass along with...
22678 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22679 (make_pass_warn_function_noreturn): ...new function.
22680 (pass_warn_unused_result): Convert from a global struct to a subclass
22681 of gimple_opt_pass along with...
22682 (pass_data_warn_unused_result): ...new pass_data instance and...
22683 (make_pass_warn_unused_result): ...new function.
22684 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22685 a subclass of gimple_opt_pass along with...
22686 (pass_data_merge_phi): ...new pass_data instance and...
22687 (make_pass_merge_phi): ...new function.
22688 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22689 a subclass of gimple_opt_pass along with...
22690 (pass_data_lower_complex): ...new pass_data instance and...
22691 (make_pass_lower_complex): ...new function.
22692 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22693 gimple_opt_pass along with...
22694 (pass_data_lower_complex_O0): ...new pass_data instance and...
22695 (make_pass_lower_complex_O0): ...new function.
22696 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22697 subclass of gimple_opt_pass along with...
22698 (pass_data_lower_eh): ...new pass_data instance and...
22699 (make_pass_lower_eh): ...new function.
22700 (pass_refactor_eh): Convert from a global struct to a subclass of
22701 gimple_opt_pass along with...
22702 (pass_data_refactor_eh): ...new pass_data instance and...
22703 (make_pass_refactor_eh): ...new function.
22704 (pass_lower_resx): Convert from a global struct to a subclass of
22705 gimple_opt_pass along with...
22706 (pass_data_lower_resx): ...new pass_data instance and...
22707 (make_pass_lower_resx): ...new function.
22708 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22709 of gimple_opt_pass along with...
22710 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22711 (make_pass_lower_eh_dispatch): ...new function.
22712 (pass_cleanup_eh): Convert from a global struct to a subclass of
22713 gimple_opt_pass along with...
22714 (pass_data_cleanup_eh): ...new pass_data instance and...
22715 (make_pass_cleanup_eh): ...new function.
22716 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22717 to a subclass of simple_ipa_opt_pass along with...
22718 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22719 (make_pass_ipa_lower_emutls): ...new function.
22720 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22721 a subclass of gimple_opt_pass along with...
22722 (pass_data_if_conversion): ...new pass_data instance and...
22723 (make_pass_if_conversion): ...new function.
22724 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22725 subclass of gimple_opt_pass along with...
22726 (pass_data_build_ssa): ...new pass_data instance and...
22727 (make_pass_build_ssa): ...new function.
22728 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22729 global struct to a subclass of gimple_opt_pass along with...
22730 (pass_data_loop_distribution): ...new pass_data instance and...
22731 (make_pass_loop_distribution): ...new function.
22732 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22733 subclass of gimple_opt_pass along with...
22734 (pass_data_mudflap_1): ...new pass_data instance and...
22735 (make_pass_mudflap_1): ...new function.
22736 (pass_mudflap_2): Convert from a global struct to a subclass of
22737 gimple_opt_pass along with...
22738 (pass_data_mudflap_2): ...new pass_data instance and...
22739 (make_pass_mudflap_2): ...new function.
22740 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22741 subclass of gimple_opt_pass along with...
22742 (pass_data_mudflap_1): ...new pass_data instance and...
22743 (make_pass_mudflap_1): ...new function.
22744 (pass_mudflap_2): Convert from a global struct to a subclass of
22745 gimple_opt_pass along with...
22746 (pass_data_mudflap_2): ...new pass_data instance and...
22747 (make_pass_mudflap_2): ...new function.
22748 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22749 gimple_opt_pass along with...
22750 (pass_data_nrv): ...new pass_data instance and...
22751 (make_pass_nrv): ...new function.
22752 (pass_return_slot): Convert from a global struct to a subclass of
22753 gimple_opt_pass along with...
22754 (pass_data_return_slot): ...new pass_data instance and...
22755 (make_pass_return_slot): ...new function.
22756 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22757 to a subclass of gimple_opt_pass along with...
22758 (pass_data_object_sizes): ...new pass_data instance and...
22759 (make_pass_object_sizes): ...new function.
22760 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22761 global struct to a subclass of gimple_opt_pass along with...
22762 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22763 and...
22764 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22765 (pass_fixup_cfg): Convert from a global struct to a subclass of
22766 gimple_opt_pass along with...
22767 (pass_data_fixup_cfg): ...new pass_data instance and...
22768 (make_pass_fixup_cfg): ...new function.
22769 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22770 (make_pass_mudflap_1): ...new function.
22771 (pass_mudflap_2): Replace declaration with that of...
22772 (make_pass_mudflap_2): ...new function.
22773 (pass_asan): Replace declaration with that of...
22774 (make_pass_asan): ...new function.
22775 (pass_asan_O0): Replace declaration with that of...
22776 (make_pass_asan_O0): ...new function.
22777 (pass_tsan): Replace declaration with that of...
22778 (make_pass_tsan): ...new function.
22779 (pass_tsan_O0): Replace declaration with that of...
22780 (make_pass_tsan_O0): ...new function.
22781 (pass_lower_cf): Replace declaration with that of...
22782 (make_pass_lower_cf): ...new function.
22783 (pass_refactor_eh): Replace declaration with that of...
22784 (make_pass_refactor_eh): ...new function.
22785 (pass_lower_eh): Replace declaration with that of...
22786 (make_pass_lower_eh): ...new function.
22787 (pass_lower_eh_dispatch): Replace declaration with that of...
22788 (make_pass_lower_eh_dispatch): ...new function.
22789 (pass_lower_resx): Replace declaration with that of...
22790 (make_pass_lower_resx): ...new function.
22791 (pass_build_cfg): Replace declaration with that of...
22792 (make_pass_build_cfg): ...new function.
22793 (pass_early_tree_profile): Replace declaration with that of...
22794 (make_pass_early_tree_profile): ...new function.
22795 (pass_cleanup_eh): Replace declaration with that of...
22796 (make_pass_cleanup_eh): ...new function.
22797 (pass_sra): Replace declaration with that of...
22798 (make_pass_sra): ...new function.
22799 (pass_sra_early): Replace declaration with that of...
22800 (make_pass_sra_early): ...new function.
22801 (pass_early_ipa_sra): Replace declaration with that of...
22802 (make_pass_early_ipa_sra): ...new function.
22803 (pass_tail_recursion): Replace declaration with that of...
22804 (make_pass_tail_recursion): ...new function.
22805 (pass_tail_calls): Replace declaration with that of...
22806 (make_pass_tail_calls): ...new function.
22807 (pass_tree_loop): Replace declaration with that of...
22808 (make_pass_tree_loop): ...new function.
22809 (pass_tree_loop_init): Replace declaration with that of...
22810 (make_pass_tree_loop_init): ...new function.
22811 (pass_lim): Replace declaration with that of...
22812 (make_pass_lim): ...new function.
22813 (pass_tree_unswitch): Replace declaration with that of...
22814 (make_pass_tree_unswitch): ...new function.
22815 (pass_predcom): Replace declaration with that of...
22816 (make_pass_predcom): ...new function.
22817 (pass_iv_canon): Replace declaration with that of...
22818 (make_pass_iv_canon): ...new function.
22819 (pass_scev_cprop): Replace declaration with that of...
22820 (make_pass_scev_cprop): ...new function.
22821 (pass_empty_loop): Replace declaration with that of...
22822 (make_pass_empty_loop): ...new function.
22823 (pass_record_bounds): Replace declaration with that of...
22824 (make_pass_record_bounds): ...new function.
22825 (pass_graphite): Replace declaration with that of...
22826 (make_pass_graphite): ...new function.
22827 (pass_graphite_transforms): Replace declaration with that of...
22828 (make_pass_graphite_transforms): ...new function.
22829 (pass_if_conversion): Replace declaration with that of...
22830 (make_pass_if_conversion): ...new function.
22831 (pass_loop_distribution): Replace declaration with that of...
22832 (make_pass_loop_distribution): ...new function.
22833 (pass_vectorize): Replace declaration with that of...
22834 (make_pass_vectorize): ...new function.
22835 (pass_slp_vectorize): Replace declaration with that of...
22836 (make_pass_slp_vectorize): ...new function.
22837 (pass_complete_unroll): Replace declaration with that of...
22838 (make_pass_complete_unroll): ...new function.
22839 (pass_complete_unrolli): Replace declaration with that of...
22840 (make_pass_complete_unrolli): ...new function.
22841 (pass_parallelize_loops): Replace declaration with that of...
22842 (make_pass_parallelize_loops): ...new function.
22843 (pass_loop_prefetch): Replace declaration with that of...
22844 (make_pass_loop_prefetch): ...new function.
22845 (pass_iv_optimize): Replace declaration with that of...
22846 (make_pass_iv_optimize): ...new function.
22847 (pass_tree_loop_done): Replace declaration with that of...
22848 (make_pass_tree_loop_done): ...new function.
22849 (pass_ch): Replace declaration with that of...
22850 (make_pass_ch): ...new function.
22851 (pass_ccp): Replace declaration with that of...
22852 (make_pass_ccp): ...new function.
22853 (pass_phi_only_cprop): Replace declaration with that of...
22854 (make_pass_phi_only_cprop): ...new function.
22855 (pass_build_ssa): Replace declaration with that of...
22856 (make_pass_build_ssa): ...new function.
22857 (pass_build_alias): Replace declaration with that of...
22858 (make_pass_build_alias): ...new function.
22859 (pass_build_ealias): Replace declaration with that of...
22860 (make_pass_build_ealias): ...new function.
22861 (pass_dominator): Replace declaration with that of...
22862 (make_pass_dominator): ...new function.
22863 (pass_dce): Replace declaration with that of...
22864 (make_pass_dce): ...new function.
22865 (pass_dce_loop): Replace declaration with that of...
22866 (make_pass_dce_loop): ...new function.
22867 (pass_cd_dce): Replace declaration with that of...
22868 (make_pass_cd_dce): ...new function.
22869 (pass_call_cdce): Replace declaration with that of...
22870 (make_pass_call_cdce): ...new function.
22871 (pass_merge_phi): Replace declaration with that of...
22872 (make_pass_merge_phi): ...new function.
22873 (pass_split_crit_edges): Replace declaration with that of...
22874 (make_pass_split_crit_edges): ...new function.
22875 (pass_pre): Replace declaration with that of...
22876 (make_pass_pre): ...new function.
22877 (pass_profile): Replace declaration with that of...
22878 (make_pass_profile): ...new function.
22879 (pass_strip_predict_hints): Replace declaration with that of...
22880 (make_pass_strip_predict_hints): ...new function.
22881 (pass_lower_complex_O0): Replace declaration with that of...
22882 (make_pass_lower_complex_O0): ...new function.
22883 (pass_lower_complex): Replace declaration with that of...
22884 (make_pass_lower_complex): ...new function.
22885 (pass_lower_vector): Replace declaration with that of...
22886 (make_pass_lower_vector): ...new function.
22887 (pass_lower_vector_ssa): Replace declaration with that of...
22888 (make_pass_lower_vector_ssa): ...new function.
22889 (pass_lower_omp): Replace declaration with that of...
22890 (make_pass_lower_omp): ...new function.
22891 (pass_diagnose_omp_blocks): Replace declaration with that of...
22892 (make_pass_diagnose_omp_blocks): ...new function.
22893 (pass_expand_omp): Replace declaration with that of...
22894 (make_pass_expand_omp): ...new function.
22895 (pass_expand_omp_ssa): Replace declaration with that of...
22896 (make_pass_expand_omp_ssa): ...new function.
22897 (pass_object_sizes): Replace declaration with that of...
22898 (make_pass_object_sizes): ...new function.
22899 (pass_strlen): Replace declaration with that of...
22900 (make_pass_strlen): ...new function.
22901 (pass_fold_builtins): Replace declaration with that of...
22902 (make_pass_fold_builtins): ...new function.
22903 (pass_stdarg): Replace declaration with that of...
22904 (make_pass_stdarg): ...new function.
22905 (pass_early_warn_uninitialized): Replace declaration with that of...
22906 (make_pass_early_warn_uninitialized): ...new function.
22907 (pass_late_warn_uninitialized): Replace declaration with that of...
22908 (make_pass_late_warn_uninitialized): ...new function.
22909 (pass_cse_reciprocals): Replace declaration with that of...
22910 (make_pass_cse_reciprocals): ...new function.
22911 (pass_cse_sincos): Replace declaration with that of...
22912 (make_pass_cse_sincos): ...new function.
22913 (pass_optimize_bswap): Replace declaration with that of...
22914 (make_pass_optimize_bswap): ...new function.
22915 (pass_optimize_widening_mul): Replace declaration with that of...
22916 (make_pass_optimize_widening_mul): ...new function.
22917 (pass_warn_function_return): Replace declaration with that of...
22918 (make_pass_warn_function_return): ...new function.
22919 (pass_warn_function_noreturn): Replace declaration with that of...
22920 (make_pass_warn_function_noreturn): ...new function.
22921 (pass_cselim): Replace declaration with that of...
22922 (make_pass_cselim): ...new function.
22923 (pass_phiopt): Replace declaration with that of...
22924 (make_pass_phiopt): ...new function.
22925 (pass_forwprop): Replace declaration with that of...
22926 (make_pass_forwprop): ...new function.
22927 (pass_phiprop): Replace declaration with that of...
22928 (make_pass_phiprop): ...new function.
22929 (pass_tree_ifcombine): Replace declaration with that of...
22930 (make_pass_tree_ifcombine): ...new function.
22931 (pass_dse): Replace declaration with that of...
22932 (make_pass_dse): ...new function.
22933 (pass_nrv): Replace declaration with that of...
22934 (make_pass_nrv): ...new function.
22935 (pass_rename_ssa_copies): Replace declaration with that of...
22936 (make_pass_rename_ssa_copies): ...new function.
22937 (pass_sink_code): Replace declaration with that of...
22938 (make_pass_sink_code): ...new function.
22939 (pass_fre): Replace declaration with that of...
22940 (make_pass_fre): ...new function.
22941 (pass_check_data_deps): Replace declaration with that of...
22942 (make_pass_check_data_deps): ...new function.
22943 (pass_copy_prop): Replace declaration with that of...
22944 (make_pass_copy_prop): ...new function.
22945 (pass_vrp): Replace declaration with that of...
22946 (make_pass_vrp): ...new function.
22947 (pass_uncprop): Replace declaration with that of...
22948 (make_pass_uncprop): ...new function.
22949 (pass_return_slot): Replace declaration with that of...
22950 (make_pass_return_slot): ...new function.
22951 (pass_reassoc): Replace declaration with that of...
22952 (make_pass_reassoc): ...new function.
22953 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22954 (make_pass_rebuild_cgraph_edges): ...new function.
22955 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22956 (make_pass_remove_cgraph_callee_edges): ...new function.
22957 (pass_build_cgraph_edges): Replace declaration with that of...
22958 (make_pass_build_cgraph_edges): ...new function.
22959 (pass_local_pure_const): Replace declaration with that of...
22960 (make_pass_local_pure_const): ...new function.
22961 (pass_tracer): Replace declaration with that of...
22962 (make_pass_tracer): ...new function.
22963 (pass_warn_unused_result): Replace declaration with that of...
22964 (make_pass_warn_unused_result): ...new function.
22965 (pass_diagnose_tm_blocks): Replace declaration with that of...
22966 (make_pass_diagnose_tm_blocks): ...new function.
22967 (pass_lower_tm): Replace declaration with that of...
22968 (make_pass_lower_tm): ...new function.
22969 (pass_tm_init): Replace declaration with that of...
22970 (make_pass_tm_init): ...new function.
22971 (pass_tm_mark): Replace declaration with that of...
22972 (make_pass_tm_mark): ...new function.
22973 (pass_tm_memopt): Replace declaration with that of...
22974 (make_pass_tm_memopt): ...new function.
22975 (pass_tm_edges): Replace declaration with that of...
22976 (make_pass_tm_edges): ...new function.
22977 (pass_split_functions): Replace declaration with that of...
22978 (make_pass_split_functions): ...new function.
22979 (pass_feedback_split_functions): Replace declaration with that of...
22980 (make_pass_feedback_split_functions): ...new function.
22981 (pass_strength_reduction): Replace declaration with that of...
22982 (make_pass_strength_reduction): ...new function.
22983 (pass_ipa_lower_emutls): Replace declaration with that of...
22984 (make_pass_ipa_lower_emutls): ...new function.
22985 (pass_ipa_function_and_variable_visibility): Replace declaration with
22986 that of...
22987 (make_pass_ipa_function_and_variable_visibility): ...new function.
22988 (pass_ipa_tree_profile): Replace declaration with that of...
22989 (make_pass_ipa_tree_profile): ...new function.
22990 (pass_early_local_passes): Replace declaration with that of...
22991 (make_pass_early_local_passes): ...new function.
22992 (pass_ipa_whole_program_visibility): Replace declaration with that
22993 of...
22994 (make_pass_ipa_whole_program_visibility): ...new function.
22995 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22996 (make_pass_ipa_lto_gimple_out): ...new function.
22997 (pass_ipa_increase_alignment): Replace declaration with that of...
22998 (make_pass_ipa_increase_alignment): ...new function.
22999 (pass_ipa_inline): Replace declaration with that of...
23000 (make_pass_ipa_inline): ...new function.
23001 (pass_ipa_free_lang_data): Replace declaration with that of...
23002 (make_pass_ipa_free_lang_data): ...new function.
23003 (pass_ipa_free_inline_summary): Replace declaration with that of...
23004 (make_pass_ipa_free_inline_summary): ...new function.
23005 (pass_ipa_cp): Replace declaration with that of...
23006 (make_pass_ipa_cp): ...new function.
23007 (pass_ipa_reference): Replace declaration with that of...
23008 (make_pass_ipa_reference): ...new function.
23009 (pass_ipa_pure_const): Replace declaration with that of...
23010 (make_pass_ipa_pure_const): ...new function.
23011 (pass_ipa_pta): Replace declaration with that of...
23012 (make_pass_ipa_pta): ...new function.
23013 (pass_ipa_lto_finish_out): Replace declaration with that of...
23014 (make_pass_ipa_lto_finish_out): ...new function.
23015 (pass_ipa_tm): Replace declaration with that of...
23016 (make_pass_ipa_tm): ...new function.
23017 (pass_ipa_profile): Replace declaration with that of...
23018 (make_pass_ipa_profile): ...new function.
23019 (pass_ipa_cdtor_merge): Replace declaration with that of...
23020 (make_pass_ipa_cdtor_merge): ...new function.
23021 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23022 of...
23023 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23024 (pass_init_datastructures): Replace declaration with that of...
23025 (make_pass_init_datastructures): ...new function.
23026 (pass_fixup_cfg): Replace declaration with that of...
23027 (make_pass_fixup_cfg): ...new function.
23028 (pass_expand): Replace declaration with that of...
23029 (make_pass_expand): ...new function.
23030 (pass_instantiate_virtual_regs): Replace declaration with that of...
23031 (make_pass_instantiate_virtual_regs): ...new function.
23032 (pass_rtl_fwprop): Replace declaration with that of...
23033 (make_pass_rtl_fwprop): ...new function.
23034 (pass_rtl_fwprop_addr): Replace declaration with that of...
23035 (make_pass_rtl_fwprop_addr): ...new function.
23036 (pass_jump): Replace declaration with that of...
23037 (make_pass_jump): ...new function.
23038 (pass_jump2): Replace declaration with that of...
23039 (make_pass_jump2): ...new function.
23040 (pass_lower_subreg): Replace declaration with that of...
23041 (make_pass_lower_subreg): ...new function.
23042 (pass_cse): Replace declaration with that of...
23043 (make_pass_cse): ...new function.
23044 (pass_fast_rtl_dce): Replace declaration with that of...
23045 (make_pass_fast_rtl_dce): ...new function.
23046 (pass_ud_rtl_dce): Replace declaration with that of...
23047 (make_pass_ud_rtl_dce): ...new function.
23048 (pass_rtl_dce): Replace declaration with that of...
23049 (make_pass_rtl_dce): ...new function.
23050 (pass_rtl_dse1): Replace declaration with that of...
23051 (make_pass_rtl_dse1): ...new function.
23052 (pass_rtl_dse2): Replace declaration with that of...
23053 (make_pass_rtl_dse2): ...new function.
23054 (pass_rtl_dse3): Replace declaration with that of...
23055 (make_pass_rtl_dse3): ...new function.
23056 (pass_rtl_cprop): Replace declaration with that of...
23057 (make_pass_rtl_cprop): ...new function.
23058 (pass_rtl_pre): Replace declaration with that of...
23059 (make_pass_rtl_pre): ...new function.
23060 (pass_rtl_hoist): Replace declaration with that of...
23061 (make_pass_rtl_hoist): ...new function.
23062 (pass_rtl_store_motion): Replace declaration with that of...
23063 (make_pass_rtl_store_motion): ...new function.
23064 (pass_cse_after_global_opts): Replace declaration with that of...
23065 (make_pass_cse_after_global_opts): ...new function.
23066 (pass_rtl_ifcvt): Replace declaration with that of...
23067 (make_pass_rtl_ifcvt): ...new function.
23068 (pass_into_cfg_layout_mode): Replace declaration with that of...
23069 (make_pass_into_cfg_layout_mode): ...new function.
23070 (pass_outof_cfg_layout_mode): Replace declaration with that of...
23071 (make_pass_outof_cfg_layout_mode): ...new function.
23072 (pass_loop2): Replace declaration with that of...
23073 (make_pass_loop2): ...new function.
23074 (pass_rtl_loop_init): Replace declaration with that of...
23075 (make_pass_rtl_loop_init): ...new function.
23076 (pass_rtl_move_loop_invariants): Replace declaration with that of...
23077 (make_pass_rtl_move_loop_invariants): ...new function.
23078 (pass_rtl_unswitch): Replace declaration with that of...
23079 (make_pass_rtl_unswitch): ...new function.
23080 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23081 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23082 (pass_rtl_doloop): Replace declaration with that of...
23083 (make_pass_rtl_doloop): ...new function.
23084 (pass_rtl_loop_done): Replace declaration with that of...
23085 (make_pass_rtl_loop_done): ...new function.
23086 (pass_web): Replace declaration with that of...
23087 (make_pass_web): ...new function.
23088 (pass_cse2): Replace declaration with that of...
23089 (make_pass_cse2): ...new function.
23090 (pass_df_initialize_opt): Replace declaration with that of...
23091 (make_pass_df_initialize_opt): ...new function.
23092 (pass_df_initialize_no_opt): Replace declaration with that of...
23093 (make_pass_df_initialize_no_opt): ...new function.
23094 (pass_reginfo_init): Replace declaration with that of...
23095 (make_pass_reginfo_init): ...new function.
23096 (pass_inc_dec): Replace declaration with that of...
23097 (make_pass_inc_dec): ...new function.
23098 (pass_stack_ptr_mod): Replace declaration with that of...
23099 (make_pass_stack_ptr_mod): ...new function.
23100 (pass_initialize_regs): Replace declaration with that of...
23101 (make_pass_initialize_regs): ...new function.
23102 (pass_combine): Replace declaration with that of...
23103 (make_pass_combine): ...new function.
23104 (pass_if_after_combine): Replace declaration with that of...
23105 (make_pass_if_after_combine): ...new function.
23106 (pass_ree): Replace declaration with that of...
23107 (make_pass_ree): ...new function.
23108 (pass_partition_blocks): Replace declaration with that of...
23109 (make_pass_partition_blocks): ...new function.
23110 (pass_match_asm_constraints): Replace declaration with that of...
23111 (make_pass_match_asm_constraints): ...new function.
23112 (pass_regmove): Replace declaration with that of...
23113 (make_pass_regmove): ...new function.
23114 (pass_split_all_insns): Replace declaration with that of...
23115 (make_pass_split_all_insns): ...new function.
23116 (pass_fast_rtl_byte_dce): Replace declaration with that of...
23117 (make_pass_fast_rtl_byte_dce): ...new function.
23118 (pass_lower_subreg2): Replace declaration with that of...
23119 (make_pass_lower_subreg2): ...new function.
23120 (pass_mode_switching): Replace declaration with that of...
23121 (make_pass_mode_switching): ...new function.
23122 (pass_sms): Replace declaration with that of...
23123 (make_pass_sms): ...new function.
23124 (pass_sched): Replace declaration with that of...
23125 (make_pass_sched): ...new function.
23126 (pass_ira): Replace declaration with that of...
23127 (make_pass_ira): ...new function.
23128 (pass_reload): Replace declaration with that of...
23129 (make_pass_reload): ...new function.
23130 (pass_clean_state): Replace declaration with that of...
23131 (make_pass_clean_state): ...new function.
23132 (pass_branch_prob): Replace declaration with that of...
23133 (make_pass_branch_prob): ...new function.
23134 (pass_value_profile_transformations): Replace declaration with that
23135 of...
23136 (make_pass_value_profile_transformations): ...new function.
23137 (pass_postreload_cse): Replace declaration with that of...
23138 (make_pass_postreload_cse): ...new function.
23139 (pass_gcse2): Replace declaration with that of...
23140 (make_pass_gcse2): ...new function.
23141 (pass_split_after_reload): Replace declaration with that of...
23142 (make_pass_split_after_reload): ...new function.
23143 (pass_branch_target_load_optimize1): Replace declaration with that
23144 of...
23145 (make_pass_branch_target_load_optimize1): ...new function.
23146 (pass_thread_prologue_and_epilogue): Replace declaration with that
23147 of...
23148 (make_pass_thread_prologue_and_epilogue): ...new function.
23149 (pass_stack_adjustments): Replace declaration with that of...
23150 (make_pass_stack_adjustments): ...new function.
23151 (pass_peephole2): Replace declaration with that of...
23152 (make_pass_peephole2): ...new function.
23153 (pass_if_after_reload): Replace declaration with that of...
23154 (make_pass_if_after_reload): ...new function.
23155 (pass_regrename): Replace declaration with that of...
23156 (make_pass_regrename): ...new function.
23157 (pass_cprop_hardreg): Replace declaration with that of...
23158 (make_pass_cprop_hardreg): ...new function.
23159 (pass_reorder_blocks): Replace declaration with that of...
23160 (make_pass_reorder_blocks): ...new function.
23161 (pass_branch_target_load_optimize2): Replace declaration with that
23162 of...
23163 (make_pass_branch_target_load_optimize2): ...new function.
23164 (pass_leaf_regs): Replace declaration with that of...
23165 (make_pass_leaf_regs): ...new function.
23166 (pass_split_before_sched2): Replace declaration with that of...
23167 (make_pass_split_before_sched2): ...new function.
23168 (pass_compare_elim_after_reload): Replace declaration with that of...
23169 (make_pass_compare_elim_after_reload): ...new function.
23170 (pass_sched2): Replace declaration with that of...
23171 (make_pass_sched2): ...new function.
23172 (pass_stack_regs): Replace declaration with that of...
23173 (make_pass_stack_regs): ...new function.
23174 (pass_stack_regs_run): Replace declaration with that of...
23175 (make_pass_stack_regs_run): ...new function.
23176 (pass_df_finish): Replace declaration with that of...
23177 (make_pass_df_finish): ...new function.
23178 (pass_compute_alignments): Replace declaration with that of...
23179 (make_pass_compute_alignments): ...new function.
23180 (pass_duplicate_computed_gotos): Replace declaration with that of...
23181 (make_pass_duplicate_computed_gotos): ...new function.
23182 (pass_variable_tracking): Replace declaration with that of...
23183 (make_pass_variable_tracking): ...new function.
23184 (pass_free_cfg): Replace declaration with that of...
23185 (make_pass_free_cfg): ...new function.
23186 (pass_machine_reorg): Replace declaration with that of...
23187 (make_pass_machine_reorg): ...new function.
23188 (pass_cleanup_barriers): Replace declaration with that of...
23189 (make_pass_cleanup_barriers): ...new function.
23190 (pass_delay_slots): Replace declaration with that of...
23191 (make_pass_delay_slots): ...new function.
23192 (pass_split_for_shorten_branches): Replace declaration with that of...
23193 (make_pass_split_for_shorten_branches): ...new function.
23194 (pass_split_before_regstack): Replace declaration with that of...
23195 (make_pass_split_before_regstack): ...new function.
23196 (pass_convert_to_eh_region_ranges): Replace declaration with that
23197 of...
23198 (make_pass_convert_to_eh_region_ranges): ...new function.
23199 (pass_shorten_branches): Replace declaration with that of...
23200 (make_pass_shorten_branches): ...new function.
23201 (pass_set_nothrow_function_flags): Replace declaration with that of...
23202 (make_pass_set_nothrow_function_flags): ...new function.
23203 (pass_dwarf2_frame): Replace declaration with that of...
23204 (make_pass_dwarf2_frame): ...new function.
23205 (pass_final): Replace declaration with that of...
23206 (make_pass_final): ...new function.
23207 (pass_rtl_seqabstr): Replace declaration with that of...
23208 (make_pass_rtl_seqabstr): ...new function.
23209 (pass_release_ssa_names): Replace declaration with that of...
23210 (make_pass_release_ssa_names): ...new function.
23211 (pass_early_inline): Replace declaration with that of...
23212 (make_pass_early_inline): ...new function.
23213 (pass_inline_parameters): Replace declaration with that of...
23214 (make_pass_inline_parameters): ...new function.
23215 (pass_update_address_taken): Replace declaration with that of...
23216 (make_pass_update_address_taken): ...new function.
23217 (pass_convert_switch): Replace declaration with that of...
23218 (make_pass_convert_switch): ...new function.
23219 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23220 to a subclass of simple_ipa_opt_pass along with...
23221 (pass_data_ipa_tree_profile): ...new pass_data instance and...
23222 (make_pass_ipa_tree_profile): ...new function.
23223 * tree-sra.c (pass_sra_early): Convert from a global struct to a
23224 subclass of gimple_opt_pass along with...
23225 (pass_data_sra_early): ...new pass_data instance and...
23226 (make_pass_sra_early): ...new function.
23227 (pass_sra): Convert from a global struct to a subclass of
23228 gimple_opt_pass along with...
23229 (pass_data_sra): ...new pass_data instance and...
23230 (make_pass_sra): ...new function.
23231 (pass_early_ipa_sra): Convert from a global struct to a subclass of
23232 gimple_opt_pass along with...
23233 (pass_data_early_ipa_sra): ...new pass_data instance and...
23234 (make_pass_early_ipa_sra): ...new function.
23235 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23236 subclass of gimple_opt_pass along with...
23237 (pass_data_ccp): ...new pass_data instance and...
23238 (make_pass_ccp): ...new function.
23239 (pass_fold_builtins): Convert from a global struct to a subclass of
23240 gimple_opt_pass along with...
23241 (pass_data_fold_builtins): ...new pass_data instance and...
23242 (make_pass_fold_builtins): ...new function.
23243 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23244 subclass of gimple_opt_pass along with...
23245 (pass_data_copy_prop): ...new pass_data instance and...
23246 (make_pass_copy_prop): ...new function.
23247 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23248 global struct to a subclass of gimple_opt_pass along with...
23249 (pass_data_rename_ssa_copies): ...new pass_data instance and...
23250 (make_pass_rename_ssa_copies): ...new function.
23251 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23252 subclass of gimple_opt_pass along with...
23253 (pass_data_dce): ...new pass_data instance and...
23254 (make_pass_dce): ...new function.
23255 (pass_dce_loop): Convert from a global struct to a subclass of
23256 gimple_opt_pass along with...
23257 (pass_data_dce_loop): ...new pass_data instance and...
23258 (make_pass_dce_loop): ...new function.
23259 (pass_cd_dce): Convert from a global struct to a subclass of
23260 gimple_opt_pass along with...
23261 (pass_data_cd_dce): ...new pass_data instance and...
23262 (make_pass_cd_dce): ...new function.
23263 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23264 subclass of gimple_opt_pass along with...
23265 (pass_data_dominator): ...new pass_data instance and...
23266 (make_pass_dominator): ...new function.
23267 (pass_phi_only_cprop): Convert from a global struct to a subclass of
23268 gimple_opt_pass along with...
23269 (pass_data_phi_only_cprop): ...new pass_data instance and...
23270 (make_pass_phi_only_cprop): ...new function.
23271 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23272 subclass of gimple_opt_pass along with...
23273 (pass_data_dse): ...new pass_data instance and...
23274 (make_pass_dse): ...new function.
23275 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23276 a subclass of gimple_opt_pass along with...
23277 (pass_data_forwprop): ...new pass_data instance and...
23278 (make_pass_forwprop): ...new function.
23279 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23280 struct to a subclass of gimple_opt_pass along with...
23281 (pass_data_tree_ifcombine): ...new pass_data instance and...
23282 (make_pass_tree_ifcombine): ...new function.
23283 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23284 subclass of gimple_opt_pass along with...
23285 (pass_data_ch): ...new pass_data instance and...
23286 (make_pass_ch): ...new function.
23287 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23288 subclass of gimple_opt_pass along with...
23289 (pass_data_tree_loop): ...new pass_data instance and...
23290 (make_pass_tree_loop): ...new function.
23291 (pass_tree_loop_init): Convert from a global struct to a subclass of
23292 gimple_opt_pass along with...
23293 (pass_data_tree_loop_init): ...new pass_data instance and...
23294 (make_pass_tree_loop_init): ...new function.
23295 (pass_lim): Convert from a global struct to a subclass of
23296 gimple_opt_pass along with...
23297 (pass_data_lim): ...new pass_data instance and...
23298 (make_pass_lim): ...new function.
23299 (pass_tree_unswitch): Convert from a global struct to a subclass of
23300 gimple_opt_pass along with...
23301 (pass_data_tree_unswitch): ...new pass_data instance and...
23302 (make_pass_tree_unswitch): ...new function.
23303 (pass_predcom): Convert from a global struct to a subclass of
23304 gimple_opt_pass along with...
23305 (pass_data_predcom): ...new pass_data instance and...
23306 (make_pass_predcom): ...new function.
23307 (pass_vectorize): Convert from a global struct to a subclass of
23308 gimple_opt_pass along with...
23309 (pass_data_vectorize): ...new pass_data instance and...
23310 (make_pass_vectorize): ...new function.
23311 (pass_graphite): Convert from a global struct to a subclass of
23312 gimple_opt_pass along with...
23313 (pass_data_graphite): ...new pass_data instance and...
23314 (make_pass_graphite): ...new function.
23315 (pass_graphite_transforms): Convert from a global struct to a subclass
23316 of gimple_opt_pass along with...
23317 (pass_data_graphite_transforms): ...new pass_data instance and...
23318 (make_pass_graphite_transforms): ...new function.
23319 (pass_check_data_deps): Convert from a global struct to a subclass of
23320 gimple_opt_pass along with...
23321 (pass_data_check_data_deps): ...new pass_data instance and...
23322 (make_pass_check_data_deps): ...new function.
23323 (pass_iv_canon): Convert from a global struct to a subclass of
23324 gimple_opt_pass along with...
23325 (pass_data_iv_canon): ...new pass_data instance and...
23326 (make_pass_iv_canon): ...new function.
23327 (pass_scev_cprop): Convert from a global struct to a subclass of
23328 gimple_opt_pass along with...
23329 (pass_data_scev_cprop): ...new pass_data instance and...
23330 (make_pass_scev_cprop): ...new function.
23331 (pass_record_bounds): Convert from a global struct to a subclass of
23332 gimple_opt_pass along with...
23333 (pass_data_record_bounds): ...new pass_data instance and...
23334 (make_pass_record_bounds): ...new function.
23335 (pass_complete_unroll): Convert from a global struct to a subclass of
23336 gimple_opt_pass along with...
23337 (pass_data_complete_unroll): ...new pass_data instance and...
23338 (make_pass_complete_unroll): ...new function.
23339 (pass_complete_unrolli): Convert from a global struct to a subclass of
23340 gimple_opt_pass along with...
23341 (pass_data_complete_unrolli): ...new pass_data instance and...
23342 (make_pass_complete_unrolli): ...new function.
23343 (pass_parallelize_loops): Convert from a global struct to a subclass
23344 of gimple_opt_pass along with...
23345 (pass_data_parallelize_loops): ...new pass_data instance and...
23346 (make_pass_parallelize_loops): ...new function.
23347 (pass_loop_prefetch): Convert from a global struct to a subclass of
23348 gimple_opt_pass along with...
23349 (pass_data_loop_prefetch): ...new pass_data instance and...
23350 (make_pass_loop_prefetch): ...new function.
23351 (pass_iv_optimize): Convert from a global struct to a subclass of
23352 gimple_opt_pass along with...
23353 (pass_data_iv_optimize): ...new pass_data instance and...
23354 (make_pass_iv_optimize): ...new function.
23355 (pass_tree_loop_done): Convert from a global struct to a subclass of
23356 gimple_opt_pass along with...
23357 (pass_data_tree_loop_done): ...new pass_data instance and...
23358 (make_pass_tree_loop_done): ...new function.
23359 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23360 struct to a subclass of gimple_opt_pass along with...
23361 (pass_data_cse_reciprocals): ...new pass_data instance and...
23362 (make_pass_cse_reciprocals): ...new function.
23363 (pass_cse_sincos): Convert from a global struct to a subclass of
23364 gimple_opt_pass along with...
23365 (pass_data_cse_sincos): ...new pass_data instance and...
23366 (make_pass_cse_sincos): ...new function.
23367 (pass_optimize_bswap): Convert from a global struct to a subclass of
23368 gimple_opt_pass along with...
23369 (pass_data_optimize_bswap): ...new pass_data instance and...
23370 (make_pass_optimize_bswap): ...new function.
23371 (pass_optimize_widening_mul): Convert from a global struct to a
23372 subclass of gimple_opt_pass along with...
23373 (pass_data_optimize_widening_mul): ...new pass_data instance and...
23374 (make_pass_optimize_widening_mul): ...new function.
23375 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23376 subclass of gimple_opt_pass along with...
23377 (pass_data_phiopt): ...new pass_data instance and...
23378 (make_pass_phiopt): ...new function.
23379 (pass_cselim): Convert from a global struct to a subclass of
23380 gimple_opt_pass along with...
23381 (pass_data_cselim): ...new pass_data instance and...
23382 (make_pass_cselim): ...new function.
23383 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23384 subclass of gimple_opt_pass along with...
23385 (pass_data_phiprop): ...new pass_data instance and...
23386 (make_pass_phiprop): ...new function.
23387 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23388 subclass of gimple_opt_pass along with...
23389 (pass_data_pre): ...new pass_data instance and...
23390 (make_pass_pre): ...new function.
23391 (pass_fre): Convert from a global struct to a subclass of
23392 gimple_opt_pass along with...
23393 (pass_data_fre): ...new pass_data instance and...
23394 (make_pass_fre): ...new function.
23395 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23396 subclass of gimple_opt_pass along with...
23397 (pass_data_reassoc): ...new pass_data instance and...
23398 (make_pass_reassoc): ...new function.
23399 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23400 subclass of gimple_opt_pass along with...
23401 (pass_data_sink_code): ...new pass_data instance and...
23402 (make_pass_sink_code): ...new function.
23403 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23404 subclass of gimple_opt_pass along with...
23405 (pass_data_strlen): ...new pass_data instance and...
23406 (make_pass_strlen): ...new function.
23407 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23408 struct to a subclass of gimple_opt_pass along with...
23409 (pass_data_build_alias): ...new pass_data instance and...
23410 (make_pass_build_alias): ...new function.
23411 (pass_build_ealias): Convert from a global struct to a subclass of
23412 gimple_opt_pass along with...
23413 (pass_data_build_ealias): ...new pass_data instance and...
23414 (make_pass_build_ealias): ...new function.
23415 (pass_ipa_pta): Convert from a global struct to a subclass of
23416 simple_ipa_opt_pass along with...
23417 (pass_data_ipa_pta): ...new pass_data instance and...
23418 (make_pass_ipa_pta): ...new function.
23419 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23420 subclass of gimple_opt_pass along with...
23421 (pass_data_uncprop): ...new pass_data instance and...
23422 (make_pass_uncprop): ...new function.
23423 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23424 global struct to a subclass of gimple_opt_pass along with...
23425 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23426 (make_pass_late_warn_uninitialized): ...new function.
23427 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23428 to a subclass of gimple_opt_pass along with...
23429 (pass_data_init_datastructures): ...new pass_data instance and...
23430 (make_pass_init_datastructures): ...new function.
23431 (pass_early_warn_uninitialized): Convert from a global struct to a
23432 subclass of gimple_opt_pass along with...
23433 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23434 (make_pass_early_warn_uninitialized): ...new function.
23435 (pass_update_address_taken): Convert from a global struct to a
23436 subclass of gimple_opt_pass along with...
23437 (pass_data_update_address_taken): ...new pass_data instance and...
23438 (make_pass_update_address_taken): ...new function.
23439 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23440 struct to a subclass of gimple_opt_pass along with...
23441 (pass_data_release_ssa_names): ...new pass_data instance and...
23442 (make_pass_release_ssa_names): ...new function.
23443 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23444 subclass of gimple_opt_pass along with...
23445 (pass_data_stdarg): ...new pass_data instance and...
23446 (make_pass_stdarg): ...new function.
23447 * tree-switch-conversion.c (pass_convert_switch): Convert from a
23448 global struct to a subclass of gimple_opt_pass along with...
23449 (pass_data_convert_switch): ...new pass_data instance and...
23450 (make_pass_convert_switch): ...new function.
23451 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23452 to a subclass of gimple_opt_pass along with...
23453 (pass_data_tail_recursion): ...new pass_data instance and...
23454 (make_pass_tail_recursion): ...new function.
23455 (pass_tail_calls): Convert from a global struct to a subclass of
23456 gimple_opt_pass along with...
23457 (pass_data_tail_calls): ...new pass_data instance and...
23458 (make_pass_tail_calls): ...new function.
23459 * tree-vect-generic.c (pass_lower_vector): Convert from a global
23460 struct to a subclass of gimple_opt_pass along with...
23461 (pass_data_lower_vector): ...new pass_data instance and...
23462 (make_pass_lower_vector): ...new function.
23463 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23464 gimple_opt_pass along with...
23465 (pass_data_lower_vector_ssa): ...new pass_data instance and...
23466 (make_pass_lower_vector_ssa): ...new function.
23467 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23468 to a subclass of gimple_opt_pass along with...
23469 (pass_data_slp_vectorize): ...new pass_data instance and...
23470 (make_pass_slp_vectorize): ...new function.
23471 (pass_ipa_increase_alignment): Convert from a global struct to a
23472 subclass of simple_ipa_opt_pass along with...
23473 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23474 (make_pass_ipa_increase_alignment): ...new function.
23475 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23476 gimple_opt_pass along with...
23477 (pass_data_vrp): ...new pass_data instance and...
23478 (make_pass_vrp): ...new function.
23479 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23480 subclass of simple_ipa_opt_pass along with...
23481 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23482 (make_pass_ipa_free_lang_data): ...new function.
23483 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23484 gimple_opt_pass along with...
23485 (pass_data_tsan): ...new pass_data instance and...
23486 (make_pass_tsan): ...new function.
23487 (pass_tsan_O0): Convert from a global struct to a subclass of
23488 gimple_opt_pass along with...
23489 (pass_data_tsan_O0): ...new pass_data instance and...
23490 (make_pass_tsan_O0): ...new function.
23491 * var-tracking.c (pass_variable_tracking): Convert from a global
23492 struct to a subclass of rtl_opt_pass along with...
23493 (pass_data_variable_tracking): ...new pass_data instance and...
23494 (make_pass_variable_tracking): ...new function.
23495 * web.c (pass_web): Convert from a global struct to a subclass of
23496 rtl_opt_pass along with...
23497 (pass_data_web): ...new pass_data instance and...
23498 (make_pass_web): ...new function.
23499 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23500 declaration with that of...
23501 (make_pass_mode_switch_use): ...new function.
23502 (pass_resolve_sw_modes): Replace declaration with that of...
23503 (make_pass_resolve_sw_modes): ...new function.
23504 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23505 from a global struct to a subclass of rtl_opt_pass along with...
23506 (pass_data_mode_switch_use): ...new pass_data instance and...
23507 (make_pass_mode_switch_use): ...new function.
23508 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23509 from a global struct to a subclass of rtl_opt_pass along with...
23510 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23511 (make_pass_resolve_sw_modes): ...new function.
23512 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23513 struct to a subclass of rtl_opt_pass along with...
23514 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23515 (make_pass_insert_vzeroupper): ...new function.
23516 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23517 global struct to a subclass of rtl_opt_pass along with...
23518 (pass_data_work_around_errata): ...new pass_data instance and...
23519 (make_pass_work_around_errata): ...new function.
23520 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23521 struct to a subclass of rtl_opt_pass along with...
23522 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23523 (make_pass_mips_machine_reorg2): ...new function.
23524
23525 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23526
23527 * passes.c (pass_manager::operator new): New.
23528
23529 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23530
23531 Handwritten part of conversion of passes to C++ classes.
23532
23533 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23534 (toplev.o): Add dep on PASS_MANAGER_H.
23535 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23536 of early local pases to reflect this moving from a global to a
23537 member of gcc::pass_manager.
23538 (cgraph_add_new_function): Likewise.
23539 * lto-cgraph.c (lto_output_node): Update for conversion of
23540 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23541 * passes.c (opt_pass::clone): New.
23542 (opt_pass::gate): New.
23543 (opt_pass::execute): New.
23544 (opt_pass::opt_pass): New.
23545 (pass_manager::execute_early_local_passes): New.
23546 (pass_manager::execute_pass_mode_switching): new.
23547 (finish_optimization_passes): Convert to...
23548 (pass_manager::finish_optimization_passes): ...this.
23549 (finish_optimization_passes): Update for conversion of passes to
23550 C++ classes.
23551 (register_dump_files_1): Use has_gate since we cannot portably
23552 check a vtable entry against NULL.
23553 (dump_one_pass): Likewise.
23554 (ipa_write_summaries_2): Likewise.
23555 (ipa_write_optimization_summaries_1): Likewise.
23556 (ipa_read_summaries_1): Likewise.
23557 (ipa_read_optimization_summaries_1): Likewise.
23558 (execute_ipa_stmt_fixups): Likewise.
23559 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23560 pass-creation functions rather than wiring up globals, and
23561 storing the results in fields of pass_manager generated using
23562 pass-instances.def.
23563 (pass_manager::dump_profile_report): Update for conversion of
23564 passes to C++ classes.
23565 (pass_manager::execute_ipa_summary_passes): Likewise.
23566 (execute_one_ipa_transform_pass): Likewise.
23567 (execute_one_pass): Use has_gate and has_execute since we cannot
23568 portably check a vtable entry against NULL.
23569 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23570 (pass_manager): Use pass-instances.def to add fields for the
23571 various pass instances.
23572 * toplev.c (finalize): Update for move of
23573 finish_optimization_passes to a method of gcc::pass_manager.
23574 * toplev.h (finish_optimization_passes): Move to method of class
23575 pass_manager.
23576 * tree-pass.h (struct pass_data): New.
23577 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23578 (opt_pass::gate): Convert to virtual function.
23579 (opt_pass::~opt_pass): New.
23580 (opt_pass::clone): New.
23581 (opt_pass::execute): Convert to virtual function.
23582 (opt_pass::opt_pass): New.
23583 (opt_pass::ctxt_): new.
23584 (gimple_opt_pass): Convert to subclass of opt_pass.
23585 (gimple_opt_pass::gimple_opt_pass): New.
23586 (rtl_opt_pass): Convert to subclass of opt_pass.
23587 (rtl_opt_pass::rtl_opt_pass): New.
23588 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23589 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23590 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23591 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23592 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23593 invocation of pass_mode_switching to reflect this moving from a
23594 global to a member of gcc::pass_manager.
23595 (ix86_option_override): Rework how pass_insert_vzeroupper is
23596 added to the pass_manager to reflect autogenerated changes.
23597 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23598
23599 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23600
23601 PR rtl-optimization/57708
23602 * recog.c (peep2_find_free_register): Validate all regs in a
23603 multi-reg mode.
23604
23605 2013-08-05 Jan Hubicka <jh@suse.cz>
23606
23607 PR lto/57602
23608 * cgraph.c (verify_cgraph_node): Accept local flags from other
23609 partitions.
23610 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23611 (function_and_variable_visibility): Likewise.
23612 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23613
23614 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23615
23616 * graph.c (init_graph_slim_pretty_print): Remove.
23617 (print_graph_cfg): Do not call it. Use local pretty printer.
23618 (start_graph_dump): Likewise.
23619
23620 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23621
23622 * gimple-pretty-print.c (buffer): Remove.
23623 (initialized): Likewise.
23624 (maybe_init_pretty_print): Likewise.
23625 (print_gimple_stmt): Do not call it. Use non-static local
23626 pretty_printer variable.
23627 (print_gimple_expr): Likewise.
23628 (print_gimple_seq): Likewise.
23629 (gimple_dump_bb): Likewise.
23630
23631 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23632
23633 * asan.c (asan_pp): Remove.
23634 (asan_pp_initialized): Likewise.
23635 (asan_pp_initialize): Likewise.
23636 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23637 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23638 (asan_add_global): Likewise.
23639
23640 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23641
23642 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23643 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23644 * pretty-print.c (pp_formatted_text_data): Likewise.
23645 (pp_indent): Rename from pp_base_indent.
23646 (pp_format): Rename from pp_base_format.
23647 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23648 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23649 (pp_flush): Rename from pp_base_flush.
23650 (pp_set_line_maximum_length): Rename from
23651 pp_base_set_line_maximum_length.
23652 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23653 (pp_set_prefix): Rename from pp_base_set_prefix.
23654 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23655 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23656 (pp_append_text): Rename from pp_base_append_text.
23657 (pp_formatted_text): Rename from pp_base_formatted_text.
23658 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23659 (pp_remaining_character_count_for_line): Rename from
23660 pp_base_remaining_character_count_for_line.
23661 (pp_newline): Rename from pp_base_newline.
23662 (pp_character): Rename from pp_base_character.
23663 (pp_string): Rename from pp_base_string.
23664 (pp_maybe_space): Rename from pp_base_maybe_space.
23665 * asan.c (asan_pp_string): Adjust.
23666 (asan_emit_stack_protection): Likewise.
23667 (asan_add_global): Likewise.
23668 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23669 * tree-mudflap.c (mf_varname_tree): Likewise.
23670 * tree-pretty-print.c (pp_tree_identifier): Rename from
23671 pp_base_tree_identifier.
23672 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23673 Declare as function.
23674
23675 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23676
23677 * pretty-print.h (pp_bar_bar): New.
23678 (pp_ampersand_ampersand): Likewise.
23679 (pp_less_equal): Likewise.
23680 (pp_greater_equal): Likewise.
23681 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23682 printer functions instead of pp_string or operators and punctuators.
23683 (dump_gimple_call): Likewise.
23684 (dump_gimple_omp_for): Likewise.
23685 (dump_gimple_transaction): Likewise.
23686 (dump_gimple_phi): Likewise.
23687 (pp_gimple_stmt_1): Likewise.
23688 * sched-vis.c (print_insn): Likewise.
23689 * tree-mudflap.c (mf_varname_tree): Likewise.
23690 * tree-pretty-print.c (dump_block_node): Likewise.
23691 (dump_generic_node): Likewise.
23692
23693 2013-08-02 Jan Hubicka <jh@suse.cz>
23694
23695 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23696 boundaries.
23697 * lto-streamer-out.c (tree_is_indexable): Results decls and
23698 parm decls are not indexable.
23699 (DFS_write_tree_body): Do not follow args and results.
23700 (hash_tree): Likewise.
23701 (output_functions): Rearrange so struct function is needed
23702 only when real body is output; be able to also ouptut abstract
23703 functions; output DECL_ARGUMENTS and DECL_RESULT.
23704 (lto_output): When not in WPA, ale store abstract functions.
23705 (write_symbol): Do not care about RESULT_DECL.
23706 (output_symbol_p): Handle correctly sbtract decls.
23707 * lto-streamer-in.c (input_function): Rearrange so struct
23708 function can be NULL at entry; allow streaming of
23709 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23710 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23711 sanity check during LTO.
23712 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23713 RESULT_DECl and DECL_ARGUMENTS.
23714 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23715 Likewise.
23716
23717 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23718
23719 * pretty-print.h (pp_underscore): New.
23720 (pp_comma): Tidy.
23721 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23722 printer functions instead of pp_character.
23723 (dump_binary_rhs): Likewise.
23724 (dump_ternary_rhs): Likewise.
23725 (dump_gimple_call_args): Likewise.
23726 (pp_points_to_solution): Likewise.
23727 (dump_gimple_call): Likewise.
23728 (dump_gimple_switch): Likewise.
23729 (dump_gimple_cond): Likewise.
23730 (dump_gimple_bind): Likewise.
23731 (dump_gimple_try): Likewise.
23732 (dump_gimple_omp_for): Likewise.
23733 (dump_gimple_omp_continue): Likewise.
23734 (dump_gimple_omp_single): Likewise.
23735 (dump_gimple_omp_sections): Likewise.
23736 (dump_gimple_omp_block): Likewise.
23737 (dump_gimple_omp_critical): Likewise.
23738 (dump_gimple_transaction): Likewise.
23739 (dump_gimple_asm): Likewise.
23740 (dump_gimple_phi): Likewise.
23741 (dump_gimple_omp_parallel): Likewise.
23742 (dump_gimple_omp_task): Likewise.
23743 (dump_gimple_omp_atomic_load): Likewise.
23744 (dump_gimple_omp_atomic_store): Likewise.
23745 (dump_gimple_mem_ops): Likewise.
23746 (pp_gimple_stmt_1): Likewise.
23747 (pp_cfg_jump): Likewise.
23748 (dump_implicit_edges): Likewise.
23749 (gimple_dump_bb_for_graph): Likewise.
23750 * graph.c (draw_cfg_node): Likewise.
23751 * langhooks.c (lhd_print_error_function): Likewise.
23752 * sched-vis.c (print_exp): Likewise.
23753 (print_value): Likewise.
23754 (print_pattern): Likewise.
23755 (print_insn): Likewise.
23756 (rtl_dump_bb_for_graph): Likewise.
23757 * tree-pretty-print.c (dump_function_declaration): Likewise.
23758 (dump_array_domain): Likewise.
23759 (dump_omp_clause): Likewise.
23760 (dump_location): Likewise.
23761 (dump_generic_node): Likewise.
23762 (print_struct_decl): Likewise.
23763 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23764
23765 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23766
23767 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23768 candidate table when replacing a candidate statement.
23769 (replace_rhs_if_not_dup): Likewise.
23770 (replace_one_candidate): Likewise.
23771
23772 2013-08-02 Jan Hubicka <jh@suse.cz>
23773 Martin Liska <marxin.liska@gmail.com>
23774
23775 * cgraphunit.c (add_new_function): Fix logic when adding from
23776 late IPA pass.
23777 (assemble_thunk): Rename to ...
23778 (expand_thunk); .. this one; export; get it working with
23779 general functions; make produced gimple valid.
23780 * cgraph.h (expand_thunk): Declare.
23781
23782 2013-08-02 Jan Hubicka <jh@suse.cz>
23783
23784 * ipa-cp.c (gather_context_independent_values): Use
23785 ipa_get_param_move_cost.
23786 (get_replacement_map): Remove PARAM; move parameter folding
23787 into tree-inline.c
23788 (create_specialized_node): Update.
23789 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23790 assert that we have gimple body; update move_cost.
23791 (count_formal_params): Assert that we have gimple body.
23792 (ipa_dump_param): New function.
23793 (ipa_alloc_node_params): Break out from ...
23794 (ipa_initialize_node_params): ... here.
23795 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23796 (ipa_write_node_info): Stream move costs.
23797 (ipa_read_node_info): Read move costs.
23798 (ipa_update_after_lto_read): Do not recompute node params.
23799 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23800 (ipa_get_param): Check we are not in WPA.
23801 (ipa_get_param_move_cost): New.
23802 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23803 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23804 parm numbers to be present.
23805
23806 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23807
23808 PR rtl-optimization/58048
23809 * lra-constraints.c (process_alt_operands): Don't check asm
23810 operand on register.
23811
23812 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23813
23814 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23815 the implied StoreLoad barrier for atomic operations if before.
23816
23817 2013-08-02 Jan Hubicka <jh@suse.cz>
23818 Martin Liska <marxin.liska@gmail.com>
23819
23820 * cgraph.c (cgraph_function_body_availability): Do not check
23821 cgraph flags.
23822 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23823 symtab_node_availability): Declare.
23824 * ipa.c (can_replace_by_local_alias): New.
23825 (function_and_variable_visibility): Use it.
23826 * symtab.c (symtab_for_node_and_aliases,
23827 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23828
23829 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23830
23831 PR rtl-optimization/57963
23832 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23833 (lra_constraints): Use them.
23834
23835 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23836
23837 * config/arm/types.md (define_attr "type"): Add "load_acq"
23838 and "store_rel".
23839 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23840 changes.
23841 (cortex_a53_store1): Likewise.
23842
23843 2013-08-01 Jan Hubicka <jh@suse.cz>
23844
23845 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23846 partitions are not needed.
23847
23848 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23849
23850 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23851 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23852 MAYBE_NON_Q_CLASS_P where appropriate.
23853
23854 2013-08-01 Jan Hubicka <jh@suse.cz>
23855
23856 * cgraph.h (release_function_body): Declare.
23857 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23858 of unused delcarations.
23859
23860 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23861
23862 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23863 RTL form when subtracting a constant.
23864
23865 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23866
23867 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23868 Generate canonical plus rtx with negated immediate instead of minus
23869 where appropriate.
23870 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23871
23872 2013-08-01 Jan Hubicka <jh@suse.cz>
23873
23874 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23875 (cgraph_release_function_body): Likewise.
23876 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23877 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23878 to used_as_abstract_origin.
23879 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23880 symbols used as abstract origins.
23881 * cgraphunit.c (analyze_functions): Update.
23882 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23883 used_as_abstract_origin.
23884 * tree-inline.c (tree_function_versioning): Update
23885 used_as_abstract_origin; be ready for DECL_RESULT and
23886 DECL_ARGUMENTS to be NULL.
23887
23888 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23889 for abstract functions.
23890 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23891 real symbols.
23892
23893 2013-08-01 Jan Hubicka <jh@suse.cz>
23894
23895 * profile.c (compute_value_histograms): Fix thinko.
23896
23897 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23898
23899 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23900 aarch-common-protos.h to extra_headers.
23901 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23902 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23903 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23904
23905 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23906
23907 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23908 Include "../arm/types.md". Define "type" attribute for all patterns.
23909 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23910 attribute changes.
23911
23912 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23913
23914 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23915 to support power8 load fusion.
23916 (fusion_gpr_mem_load): Likewise.
23917
23918 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23919
23920 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23921 declarations for power8 load fusion.
23922 (emit_fusion_gpr_load): Likewise.
23923
23924 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23925 tuning for power8, turn on fusion mode by default. Turn on sign
23926 extending fusion mode if normal fusion mode is on, and we are at
23927 -O2 or -O3.
23928 (fusion_gpr_load_p): New function, return true if we can fuse an
23929 addis instruction with a dependent load to a GPR.
23930 (emit_fusion_gpr_load): Emit the instructions for power8 load
23931 fusion to GPRs.
23932
23933 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23934 (VSX load fusion peepholes): New peepholes to fuse together an
23935 addi instruction with a VSX load instruction.
23936
23937 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23938 peepholes to fuse an addis instruction with a load to a GPR base
23939 register. If we are supporting sign extending fusions, convert
23940 sign extending loads to zero extending loads and add an explicit
23941 sign extension.
23942
23943 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23944
23945 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23946 aarch-common-protos.h to extra_headers.
23947 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23948 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23949 (arm_early_store_addr_dep): Likewise.
23950 (arm_no_early_alu_shift_dep): Likewise.
23951 (arm_no_early_alu_shift_value_dep): Likewise.
23952 (arm_no_early_mul_dep): Likewise.
23953 (arm_no_early_store_addr_dep): Likewise.
23954 (arm_mac_accumulator_is_mul_result): Likewise.
23955 (arm_mac_accumulator_is_result): Likewise.
23956 * config/arm/aarch-common.c: ... here. New file.
23957 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23958 here to ...
23959 (arm_early_store_addr_dep): Likewise.
23960 (arm_no_early_alu_shift_dep): Likewise.
23961 (arm_no_early_alu_shift_value_dep): Likewise.
23962 (arm_no_early_mul_dep): Likewise.
23963 (arm_no_early_store_addr_dep): Likewise.
23964 (arm_mac_accumulator_is_mul_result): Likewise.
23965 (arm_mac_accumulator_is_result): Likewise.
23966 * config/arm/aarch-common-protos.h: ... here. New file.
23967 * config/arm/t-arm (aarch-common.o): Define.
23968
23969 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23970
23971 * config/arm/arm.md: Include new file "types.md".
23972 (define_attr "type"): Move from here to ...
23973 (define_attr "mul32"): Likewise.
23974 (define_attr "mul64"): Likewise.
23975 * config/arm/types.md: ... here. New file.
23976
23977 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23978
23979 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23980 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23981
23982 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23983
23984 * gen-pass-instances.awk: Fix offset of substr().
23985
23986 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23987
23988 * Makefile.in (pass-instances.def): New.
23989 (passes.o): Replace dependency on passes.def with one on
23990 pass-instances.def
23991
23992 * gen-pass-instances.awk: New.
23993
23994 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23995 rather than passes.def, updating local definition of NEXT_PASS
23996 macro to add an extra NUM parameter (currently unused).
23997
23998 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23999
24000 * Makefile.in (PASS_MANAGER_H): New.
24001 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
24002 (passes.o): Likewise.
24003 (statistics.o): Likewise.
24004 (cgraphunit.o): Likewise.
24005 (context.o): Depend on PASS_MANAGER_H.
24006
24007 * pass_manager.h: New.
24008
24009 * cgraphunit.c (cgraph_add_new_function): Update for moves
24010 of globals to fields of pass_manager.
24011 (analyze_function): Likewise.
24012 (expand_function): Likewise.
24013 (ipa_passes): Likewise.
24014 (compile): Likewise.
24015
24016 * context.c (context::context): New.
24017 * context.h (context::context): New.
24018 (context::get_passes): New.
24019 (context::passes_): New.
24020
24021 * lto-cgraph.c (input_node): Update for moves of globals to
24022 fields of pass_manager.
24023
24024 * passes.c (all_passes): Remove, in favor of a field of the
24025 same name within the new class pass_manager.
24026 (all_small_ipa_passes): Likewise.
24027 (all_lowering_passes): Likewise.
24028 (all_regular_ipa_passes): Likewise.
24029 (all_late_ipa_passes): Likewise.
24030 (all_lto_gen_passes): Likewise.
24031 (passes_by_id): Likewise.
24032 (passes_by_id_size): Likewise.
24033 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24034 the new class pass_manager.
24035 (set_pass_for_id): Convert to...
24036 (pass_manager::set_pass_for_id): ...method.
24037 (get_pass_for_id): Convert to...
24038 (pass_manager::get_pass_for_id): ...method.
24039 (register_one_dump_file): Move body of implementation into...
24040 (pass_manager::register_one_dump_file): ...here.
24041 (register_dump_files_1): Convert to...
24042 (pass_manager::register_dump_files_1): ...method.
24043 (register_dump_files): Convert to...
24044 (pass_manager::register_dump_files): ...method.
24045 (create_pass_tab): Update for moves of globals to fields of
24046 pass_manager.
24047 (dump_passes): Move body of implementation into...
24048 (pass_manager::dump_passes): ...here.
24049 (register_pass): Move body of implementation into...
24050 (pass_manager::register_pass): ...here.
24051 (init_optimization_passes): Convert into...
24052 (pass_manager::pass_manager): ...constructor for new
24053 pass_manager class, and initialize the pass_lists array.
24054 (check_profile_consistency): Update for moves of globals to
24055 fields of pass_manager.
24056 (dump_profile_report): Move body of implementation into...
24057 (pass_manager::dump_profile_report): ...here.
24058 (ipa_write_summaries_1): Update for moves of pass lists from
24059 being globals to fields of pass_manager.
24060 (ipa_write_optimization_summaries): Likewise.
24061 (ipa_read_summaries): Likewise.
24062 (ipa_read_optimization_summaries): Likewise.
24063 (execute_all_ipa_stmt_fixups): Likewise.
24064
24065 * statistics.c (statistics_fini): Update for moves of globals to
24066 fields of pass_manager.
24067
24068 * toplev.c (general_init): Replace call to
24069 init_optimization_passes with construction of the pass_manager
24070 instance.
24071
24072 * tree-pass.h (all_passes): Remove, in favor of a field of the
24073 same name within the new class pass_manager.
24074 (all_small_ipa_passes): Likewise.
24075 (all_lowering_passes): Likewise.
24076 (all_regular_ipa_passes): Likewise.
24077 (all_lto_gen_passes): Likewise.
24078 (all_late_ipa_passes): Likewise.
24079 (passes_by_id): Likewise.
24080 (passes_by_id_size): Likewise.
24081 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24082 the new class pass_manager.
24083 (get_pass_for_id): Remove.
24084
24085 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24086
24087 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24088 configs.
24089
24090 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24091
24092 * arm.md (mulhi3): New expand pattern.
24093
24094 2013-07-30 Jan Hubicka <jh@suse.cz>
24095 Martin Liska <marxin.liska@gmail.com>
24096
24097 * profile.c (compute_value_histograms): Do not ICE when
24098 there is mismatch only on some counters.
24099
24100 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24101
24102 PR rtl-optimization/57637
24103 * function.c (move_insn_for_shrink_wrap): Also check the
24104 GEN set of the LIVE problem for the liveness analysis
24105 if it exists, otherwise give up.
24106
24107 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24108
24109 PR tree-optimization/57993
24110 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24111 replaced statement in the candidate table.
24112 (phi_add_costs): Return infinite cost when the hidden basis does
24113 not dominate all phis on which the candidate is dependent.
24114 (replace_one_candidate): Record replaced statement in the
24115 candidate table.
24116
24117 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
24118
24119 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24120 (ashlv2si3): New expander.
24121 (*ashlv2si3_i): New define_insn_and_split.
24122 * predicates.md (float_operation): Allow patterns with three
24123 basic sub-patterns.
24124
24125 PR rtl-optimization/58021
24126 * mode-switching.c (create_pre_exit): Always split off preceding
24127 insns if we are not at the basic block head.
24128
24129 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
24130
24131 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24132 (UCLIBC_DYNAMIC_LINKER): New macro.
24133 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24134 `-mnan=2008'.
24135 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24136 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
24137 `-mnan=2008'.
24138 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24139 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24140 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24141 for SF and DF modes. Use ieee_quad_format for TF mode.
24142 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24143 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24144 (mips_option_override): Handle `-mnan=legacy'.
24145 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24146 `-mabs=2008' and `-mnan=2008'.
24147 (OPTION_DEFAULT_SPECS): Add "nan" default.
24148 (ASM_SPEC): Handle `-mnan='.
24149 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24150 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24151 comment accordingly.
24152 (neg<mode>2): Likewise.
24153 * config/mips/mips.opt (mabs, mnan): New options.
24154 * doc/install.texi (Configuration): Document `--with-nan=' option.
24155 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24156 `-mnan=' options.
24157 (MIPS Options): Document them.
24158 * config.gcc <mips*-*-*>: Handle `--with-nan='.
24159 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24160 * configure: Regenerate.
24161 * config.in: Regenerate.
24162
24163 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24164
24165 * config/i386/i386.md (float post-reload splitters): Do not check
24166 for subregs of SSE registers.
24167
24168 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24169 H.J. Lu <hongjiu.lu@intel.com>
24170
24171 PR target/57954
24172 PR target/57988
24173 * config/i386/i386.md (post-reload splitter
24174 to avoid partial SSE reg dependency stalls): New pattern.
24175
24176 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24177
24178 * config/s390/s390.md ("movcc"): Swap load and store instructions.
24179
24180 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
24181
24182 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24183 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24184
24185 2013-07-26 Cary Coutant <ccoutant@google.com>
24186
24187 * dwarf2out.c (die_checksum_ordered): Don't include template
24188 instantiations in signature.
24189 (is_template_parameter): New function.
24190 (is_template_instantiation): New function.
24191 (generate_skeleton_bottom_up): Don't include template instantiations
24192 in type unit DIE.
24193 (generate_skeleton): Likewise.
24194 (break_out_comdat_types): Move recursive call to break out nested
24195 types earlier.
24196 (prune_unused_types_mark_generic_parms_dies): Call
24197 is_template_parameter.
24198
24199 2013-07-26 Ian Bolton <ian.bolton@arm.com>
24200
24201 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24202 uses vector registers.
24203 * config/aarch64/iterators.md: Add attributes rtn and vas.
24204
24205 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24206 Richard Earnshaw <richard.earnshaw@arm.com>
24207
24208 * combine.c (simplify_comparison): Re-canonicalize operands
24209 where appropriate.
24210 * config/arm/arm.md (movcond_addsi): New splitter.
24211
24212 2013-07-25 Sterling Augustine <saugustine@google.com>
24213
24214 * dwarf2out.c (size_of_pubnames): Move code to...
24215 (include_pubname_in_output): ...here. New.
24216 (want_pubnames): Rearrange.
24217 (output_pubnames): Call include_pubname_in_output. Move assertion.
24218
24219 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24220
24221 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24222
24223 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24224
24225 PR target/38836
24226 * doc/extend.texi: Remove obsolete builtins. Fix
24227 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24228
24229 2013-07-25 Jan Hubicka <jh@suse.cz>
24230
24231 * cgraph.c (release_function_body): Break out from ...
24232 (cgraph_release_function_body): ... this one; also release DECL_RESULT
24233 and DECL_ARGUMENTS.
24234 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24235 old_tree in the map.
24236 (create_specialized_node): Update.
24237 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24238 into index.
24239 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24240 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24241 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24242 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24243 DECL_RESULT.
24244
24245 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24246
24247 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24248 addsi3_carryin_alt2_<optab>): Correct output template.
24249
24250 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24251
24252 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24253 Adjust for arm_restrict_it.
24254 Remove trailing whitespace.
24255
24256 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
24257
24258 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24259 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24260
24261 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24262
24263 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
24264
24265 PR rtl-optimization/57960
24266 * lra-constraints.c (process_alt_operands): Use the right mode
24267 when checking strict_low.
24268
24269 2013-07-25 Jan Hubicka <jh@suse.cz>
24270
24271 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24272 * cgraph.c (cgraph_remove_node): Do not release function body
24273 when in cgraph streaming.
24274 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24275 in other partitions are not considered reachable; fix handling of
24276 clones.
24277
24278 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24279
24280 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24281
24282 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24283
24284 PR target/19599
24285 PR target/57731
24286 PR target/57837
24287 * config/arm/arm.md ("*sibcall_insn): Replace use of
24288 Ss with US. Adjust output for v5 and v4t.
24289 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24290
24291 * config/arm/constraints.md ("Ss"): Rename to US.
24292
24293 2013-07-25 Terry Guo <terry.guo@arm.com>
24294
24295 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24296 shift_add/shift_sub0/shift_sub1 RTXs.
24297
24298 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
24299 Anton Blanchard <anton@au1.ibm.com>
24300
24301 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24302 (altivec_vpks<VI_char>ss): Likewise.
24303 (altivec_vpks<VI_char>us): Likewise.
24304 (altivec_vpku<VI_char>us): Likewise.
24305 (altivec_vpku<VI_char>um): Likewise.
24306
24307 2013-07-24 David Malcolm <dmalcolm@redhat.com>
24308
24309 Introduce context class.
24310
24311 * Makefile.in (CONTEXT_H): New.
24312 (OBJS): Add context.o.
24313 (toplev.o): Add CONTEXT_H to dependencies.
24314 (context.o): New.
24315
24316 * toplev.c (general_init): Create the singleton gcc::context instance.
24317
24318 * context.c: New.
24319
24320 * context.h: New.
24321
24322 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
24323
24324 PR rtl-optimization/57968
24325 * mode-switching.c (create_pre_exit): Allow instructions that
24326 don't set a return register to need a non-exit mode.
24327
24328 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24329 Anton Blanchard <anton@au1.ibm.com>
24330
24331 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24332 operands to vperm for little endian.
24333 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24334 of lvsl to create the control mask for a vperm for little endian.
24335
24336 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24337 Anton Blanchard <anton@au1.ibm.com>
24338
24339 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24340 two operands for little-endian.
24341
24342 2013-07-23 Steve Ellcey <sellcey@mips.com>
24343
24344 * config/mips/mips.c (mips_case_values_threshold): New.
24345 (TARGET_CASE_VALUES_THRESHOLD): Define.
24346
24347 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24348 Anton Blanchard <anton@au1.ibm.com>
24349
24350 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24351 selection of field for vector splat in little endian mode.
24352
24353 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24354
24355 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24356 expanders to rs6000.md.
24357 (ior<mode>3): Likewise.
24358 (and<mode>3): Likewise.
24359 (one_cmpl<mode>2): Likewise.
24360 (nor<mode>3): Likewise.
24361 (andc<mode>3): Likewise.
24362 (eqv<mode>3): Likewise.
24363 (nand<mode>3): Likewise.
24364 (orc<mode>3): Likewise.
24365
24366 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24367 declaration.
24368
24369 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24370 to split multi-word logical operations.
24371 (rs6000_split_logical_di): Likewise.
24372 (rs6000_split_logical): Likewise.
24373
24374 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24375 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24376 and allow TImode operations in 32-bit.
24377 (vsx_and<mode>3_64bit): Likewise.
24378 (vsx_ior<mode>3_32bit): Likewise.
24379 (vsx_ior<mode>3_64bit): Likewise.
24380 (vsx_xor<mode>3_32bit): Likewise.
24381 (vsx_xor<mode>3_64bit): Likewise.
24382 (vsx_one_cmpl<mode>2_32bit): Likewise.
24383 (vsx_one_cmpl<mode>2_64bit): Likewise.
24384 (vsx_nor<mode>3_32bit): Likewise.
24385 (vsx_nor<mode>3_64bit): Likewise.
24386 (vsx_andc<mode>3_32bit): Likewise.
24387 (vsx_andc<mode>3_64bit): Likewise.
24388 (vsx_eqv<mode>3_32bit): Likewise.
24389 (vsx_eqv<mode>3_64bit): Likewise.
24390 (vsx_nand<mode>3_32bit): Likewise.
24391 (vsx_nand<mode>3_64bit): Likewise.
24392 (vsx_orc<mode>3_32bit): Likewise.
24393 (vsx_orc<mode>3_64bit): Likewise.
24394
24395 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24396 logical types in GPRs.
24397
24398 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24399 logical insns to rs6000.md, and allow TImode operations in
24400 32-bit.
24401 (altivec_ior<mode>3): Likewise.
24402 (altivec_xor<mode>3): Likewise.
24403 (altivec_one_cmpl<mode>2): Likewise.
24404 (altivec_nor<mode>3): Likewise.
24405 (altivec_andc<mode>3): Likewise.
24406
24407 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24408 attributes for moving the 128-bit logical operations into
24409 rs6000.md.
24410 (BOOL_REGS_OUTPUT): Likewise.
24411 (BOOL_REGS_OP1): Likewise.
24412 (BOOL_REGS_OP2): Likewise.
24413 (BOOL_REGS_UNARY): Likewise.
24414 (BOOL_REGS_AND_CR0): Likewise.
24415 (one_cmpl<mode>2): Add support for DI logical operations on
24416 32-bit, splitting the operations to 32-bit.
24417 (anddi3): Likewise.
24418 (iordi3): Likewise.
24419 (xordi3): Likewise.
24420 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24421 changes to combine the 32/64-bit code, allow logical operations on
24422 TI mode in 32-bit, and to use similar match_operator patterns like
24423 scalar mode uses. Combine the Altivec and VSX code for logical
24424 operations, and move it here.
24425 (ior<mode>3, 128-bit types): Likewise.
24426 (xor<mode>3, 128-bit types): Likewise.
24427 (one_cmpl<mode>3, 128-bit types): Likewise.
24428 (nor<mode>3, 128-bit types): Likewise.
24429 (andc<mode>3, 128-bit types): Likewise.
24430 (eqv<mode>3, 128-bit types): Likewise.
24431 (nand<mode>3, 128-bit types): Likewise.
24432 (orc<mode>3, 128-bit types): Likewise.
24433 (and<mode>3_internal): Likewise.
24434 (bool<mode>3_internal): Likewise.
24435 (boolc<mode>3_internal1): Likewise.
24436 (boolc<mode>3_internal2): Likewise.
24437 (boolcc<mode>3_internal1): Likewise.
24438 (boolcc<mode>3_internal2): Likewise.
24439 (eqv<mode>3_internal1): Likewise.
24440 (eqv<mode>3_internal2): Likewise.
24441 (one_cmpl1<mode>3_internal): Likewise.
24442
24443 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24444
24445 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24446 Rename flag_stack_usage to flag_stack_usage_info.
24447
24448 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24449
24450 * config/microblaze/sync.md: New file.
24451 * config/microblaze/microblaze.md: Include sync.md
24452 * config/microblaze/microblaze.c: Add print_operand 'y'.
24453 * config/microblaze/constraints.md: Add memory_contraint
24454 'Q' which is a single register.
24455
24456 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
24457
24458 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24459
24460 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24461
24462 * reload.c (find_reloads): Exit loop once we find this operand
24463 cannot be reloaded somehow for this alternative.
24464
24465 * reload.c (find_reloads): Exit loop once we find a hard register.
24466
24467 * rtlanal.c (computed_jump_p): Exit loop once we find label
24468 reference is used.
24469
24470 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24471
24472 * cfgloopmanip.c (remove_path): Exit loop after setting
24473 irred_invalidated.
24474
24475 * gensupport.c (subst_dup): Avoid loop if code is not
24476 MATCH_DUP nor MATCH_OP_DUP.
24477
24478 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24479
24480 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24481
24482 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24483
24484 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24485 true for SP_REGNUM if mode == ptr_mode.
24486 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24487 with value R0_REGNUM + 31.
24488
24489 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24490
24491 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24492 pad pointer-typed argument downward.
24493
24494 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24495
24496 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24497 and __ILP32__ when the ILP32 model is in use.
24498
24499 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24500
24501 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24502 (aarch64_load_symref_appropriately): In the case of
24503 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24504 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24505 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24506 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24507 if 'mode' doesn't equal to 'ptr_mode'.
24508 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24509 'vcall_offset'; change to call aarch64_emit_move differently depending
24510 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24511 to calculate the upper bound of 'vcall_offset'.
24512 (aarch64_cannot_force_const_mem): Change to also return true if
24513 mode != ptr_mode.
24514 (aarch64_legitimize_reload_address): In the case of large
24515 displacements, add new local variable 'xmode' and an assertion
24516 based on it; change to use 'xmode' to generate the new rtx and
24517 reload.
24518 (aarch64_asm_trampoline_template): Change to generate the template
24519 differently depending on TARGET_ILP32 or not; change to use
24520 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24521 (aarch64_trampoline_size): Removed.
24522 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24523 and replace immediate literals with it. Change to use 'ptr_mode'
24524 instead of 'DImode' and call convert_memory_address if the mode
24525 of 'fnaddr' doesn't equal to 'ptr_mode'.
24526 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24527 to output symbol.
24528 (aarch64_elf_asm_destructor): Likewise.
24529 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24530 on TARGET_ILP32 instead of aarch64_trampoline_size.
24531 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24532 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24533 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24534 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24535 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24536 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24537 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24538 depending on the value of 'mode'.
24539 (add_losym_<mode>): New.
24540 (ldr_got_small_<mode>): New, based on ldr_got_small.
24541 (ldr_got_small): Remove.
24542 (ldr_got_small_sidi): New.
24543 * config/aarch64/iterators.md (P): New.
24544 (PTR): Change to 'ptr_mode' in the condition.
24545
24546 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24547
24548 * config.gcc (aarch64*-*-*): Support --with-abi.
24549 (aarch64*-*-elf): Support --with-multilib-list.
24550 (aarch64*-*-linux*): Likewise.
24551 (supported_defaults): Add abi to aarch64*-*-*.
24552 * configure.ac: Mention AArch64 for --with-multilib-list.
24553 * configure: Re-generated.
24554 * config/aarch64/biarchilp32.h: New file.
24555 * config/aarch64/biarchlp64.h: New file.
24556 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24557 (ABI_SPEC): Ditto.
24558 (MULTILIB_DEFAULTS): Ditto.
24559 (DRIVER_SELF_SPECS): Ditto.
24560 (ASM_SPEC): Update to also substitute -mabi.
24561 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24562 file whose name depends on -mabi= and -mbig-endian.
24563 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24564 TARGET_ILP32.
24565 (POINTER_SIZE): New define.
24566 (POINTERS_EXTEND_UNSIGNED): Ditto.
24567 (enum aarch64_abi_type): New enumeration tag.
24568 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24569 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24570 (TARGET_ILP32): New define.
24571 * config/aarch64/aarch64.opt (mabi): New.
24572 (aarch64_abi): New.
24573 (ilp32, lp64): New values for -mabi.
24574 * config/aarch64/t-aarch64 (comma): New define.
24575 (MULTILIB_OPTIONS): Ditto.
24576 (MULTILIB_DIRNAMES): Ditto.
24577 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24578 * doc/invoke.texi: Document -mabi for AArch64.
24579
24580 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24581
24582 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24583
24584 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24585 Anton Blanchard <anton@au1.ibm.com>
24586
24587 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24588 endianness when selecting field to splat.
24589
24590 2013-07-22 Eric Christopher <echristo@gmail.com>
24591
24592 * dwarf2out.c (die_odr_checksum): New function to use
24593 CHECKSUM_ macros and ULEB128 for DIE tag.
24594 (generate_type_signature): Use.
24595
24596 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24597
24598 * config.gcc (sparc*-*-*): Accept leon3 processor.
24599 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24600 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24601 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24602 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24603 (mfix-ut699): Adjust comment.
24604 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24605 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24606 (CPP_CPU_SPEC): Likewise.
24607 (ASM_CPU_SPEC): Likewise.
24608 * config/sparc/sparc.c (leon3_cost): New constant.
24609 (sparc_option_override): Add leon3 support.
24610 (mem_ref): New function.
24611 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24612 (sparc_do_work_around_errata): Look into the instruction in the delay
24613 slot and adjust accordingly. Add fix for the data cache nullify issues
24614 of the UT699. Change insertion position for the NOP.
24615 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24616 (leon3_load): New reservation.
24617 (leon_store): Bump latency to 2.
24618 (grfpu): New automaton.
24619 (grfpu_alu): New unit.
24620 (grfpu_ds): Likewise.
24621 (leon_fp_alu): Adjust.
24622 (leon_fp_mult): Delete.
24623 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24624 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24625 * config/sparc/sparc.md (cpu): Add leon3.
24626 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24627 (swapsi): Likewise.
24628 (atomic_test_and_set): Likewise.
24629 (ldstub): Likewise.
24630
24631 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24632
24633 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24634 default for R5900 targets.
24635 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24636 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24637 * config/mips/mips.c (mips_option_override): Report an error for
24638 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24639 for -march=r5900 -mhard-float.
24640
24641 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24642
24643 * df-problems.c (can_move_insns_across): Exit loop once we
24644 find a non-fixed, non-global register.
24645
24646 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24647 setting can_throw.
24648
24649 * omega.c (omega_eliminate_red): Break after setting red_found.
24650 (omega_problem_has_red_equations): Similarly after setting found.
24651 (omega_query_variable): Similarly after setting coupled.
24652
24653 2013-07-22 Marek Polacek <polacek@redhat.com>
24654
24655 * gimplify.c: Don't include gimple.h twice.
24656
24657 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24658
24659 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24660 instead of TARGET_THUMB1.
24661 (Pz): New constraint.
24662 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24663 encodings.
24664 (compare_negsi_si): Likewise.
24665 (compare_addsi2_op0): Likewise.
24666 (compare_addsi2_op1): Likewise.
24667 (addsi3_carryin_<optab>): Likewise.
24668 (addsi3_carryin_alt2_<optab>): Likewise.
24669 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24670 for arm_restrict_it.
24671 (subsi3_carryin): Likewise.
24672 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24673 (minmax_arithsi): Disable for arm_restrict_it.
24674 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24675 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24676 (satsi_<SAT:code>_shift): Likewise.
24677 (arm_shiftsi3): Add alternative for 16-bit encoding.
24678 (arm32_movhf): Disable for arm_restrict_it.
24679 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24680 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24681
24682 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24683
24684 * config/arm/arm.md (attribute "insn"): Delete.
24685 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24686 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24687 (not_shiftsi): Update for attribute change.
24688 (not_shiftsi_compare0): Likewise.
24689 (not_shiftsi_compare0_scratch): Likewise.
24690 (arm_one_cmplsi2): Likewise.
24691 (thumb1_one_cmplsi2): Likewise.
24692 (notsi_compare0): Likewise.
24693 (notsi_compare0_scratch): Likewise.
24694 (thumb1_movdi_insn): Likewise.
24695 (arm_movsi_insn): Likewise.
24696 (movhi_insn_arch4): Likewise.
24697 (movhi_bytes): Likewise.
24698 (arm_movqi_insn): Likewise.
24699 (thumb1_movqi_insn): Likewise.
24700 (arm32_movhf): Likewise.
24701 (thumb1_movhf): Likewise.
24702 (arm_movsf_soft_insn): Likewise.
24703 (thumb1_movsf_insn): Likewise.
24704 (thumb_movdf_insn): Likewise.
24705 (movsicc_insn): Likewise.
24706 (movsfcc_soft_insn): Likewise.
24707 (and_scc): Likewise.
24708 (cond_move): Likewise.
24709 (if_move_not): Likewise.
24710 (if_not_move): Likewise.
24711 (if_shift_move): Likewise.
24712 (if_move_shift): Likewise.
24713 (if_shift_shift): Likewise.
24714 (if_not_arith): Likewise.
24715 (if_arith_not): Likewise.
24716 (cond_move_not): Likewise.
24717 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24718 (neon_mov<mode>): Likewise.
24719 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24720 (thumb2_movsi_vfp): Likewise.
24721 (movsf_vfp): Likewise.
24722 (thumb2_movsf_vfp): Likewise.
24723 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24724 change.
24725 (cortexa7_older_only): Likewise.
24726 (cortexa7_younger): Likewise.
24727 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24728 (1020alu_shift_op): Likewise.
24729 (1020alu_shift_reg_op): Likewise.
24730 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24731 (alu_shift_op): Likewise.
24732 (alu_shift_reg_op): Likewise.
24733 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24734 (11_alu_shift_op): Likewise.
24735 (11_alu_shift_reg_op): Likewise.
24736 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24737 (9_alu_shift_reg_op): Likewise.
24738 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24739 change.
24740 (cortex_a15_alu_shift): Likewise.
24741 (cortex_a15_alu_shift_reg): Likewise.
24742 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24743 (cortex_a5_alu_shift): Likewise.
24744 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24745 change.
24746 (cortex_a53_alu_shift): Likewise.
24747 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24748 change.
24749 (cortex_a7_alu_reg): Likewise.
24750 (cortex_a7_alu_shift): Likewise.
24751 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24752 (cortex_a8_alu_shift): Likewise.
24753 (cortex_a8_alu_shift_reg): Likewise.
24754 (cortex_a8_mov): Likewise.
24755 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24756 (cortex_a9_dp_shift): Likewise.
24757 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24758 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24759 (cortex_r4_mov): Likewise.
24760 (cortex_r4_alu_shift): Likewise.
24761 (cortex_r4_alu_shift_reg): Likewise.
24762 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24763 (526_alu_shift_op): Likewise.
24764 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24765 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24766 (626te_alu_shift_op): Likewise.
24767 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24768 (726te_alu_op): Likewise.
24769 (726te_alu_shift_op): Likewise.
24770 (726te_alu_shift_reg_op): Likewise.
24771 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24772 (mp626_alu_shift_op): Likewise.
24773 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24774 (pj4_alu_e1_conds): Likewise.
24775 (pj4_alu): Likewise.
24776 (pj4_alu_conds): Likewise.
24777 (pj4_shift): Likewise.
24778 (pj4_shift_conds): Likewise.
24779 (pj4_alu_shift): Likewise.
24780 (pj4_alu_shift_conds): Likewise.
24781
24782 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24783
24784 * config/arm/predicates.md (shiftable_operator_strict_it):
24785 New predicate.
24786 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24787 Disable cond_exec version for arm_restrict_it.
24788 (thumb2_smaxsi3): Convert to generate cond_exec.
24789 (thumb2_sminsi3): Likewise.
24790 (thumb32_umaxsi3): Likewise.
24791 (thumb2_uminsi3): Likewise.
24792 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24793 (thumb2_neg_abssi2): Likewise.
24794 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24795 (thumb2_movsicc_insn): Adjust alternatives.
24796 (thumb2_mov_negscc): Disable for arm_restrict_it.
24797 (thumb2_mov_negscc_strict_it): New pattern.
24798 (thumb2_mov_notscc_strict_it): New pattern.
24799 (thumb2_mov_notscc): Disable for arm_restrict_it.
24800 (thumb2_ior_scc): Likewise.
24801 (thumb2_ior_scc_strict_it): New pattern.
24802 (thumb2_cond_move): Adjust for arm_restrict_it.
24803 (thumb2_cond_arith): Disable for arm_restrict_it.
24804 (thumb2_cond_arith_strict_it): New pattern.
24805 (thumb2_cond_sub): Adjust for arm_restrict_it.
24806 (thumb2_movcond): Likewise.
24807 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24808 (thumb2_zero_extendhisi2_v6): Likewise.
24809 (thumb2_zero_extendqisi2_v6): Likewise.
24810 (orsi_notsi_si): Likewise.
24811 (orsi_not_shiftsi_si): Likewise.
24812
24813 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24814
24815 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24816 instruction sequence is 1 byte shorter.
24817
24818 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24819
24820 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24821 it is not needed after split.
24822
24823 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24824
24825 PR target/51784
24826 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24827 second label for nonlocal goto receivers. Don't output pic base labels
24828 unless we're producing PIC; mark that action unreachable().
24829 (ix86_save_reg): If the function contains a nonlocal label, save the
24830 PIC base reg.
24831 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24832 * config/darwin.c (emitted_pic_label_num): New GTY.
24833 (update_pic_label_number_if_needed): New.
24834 (machopic_output_function_base_name): Adjust for nonlocal receiver
24835 case.
24836 (machopic_should_output_picbase_label): New.
24837 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24838 (nonlocal_goto_receiver): New insn and split.
24839
24840 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24841
24842 * config/aarch64/aarch64-builtins.c
24843 (aarch64_fold_builtin): Fold abs in all modes.
24844 * config/aarch64/aarch64-simd-builtins.def
24845 (abs): Enable for all modes.
24846 * config/aarch64/arm_neon.h
24847 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24848 (vabs_f64): Add missing intrinsic.
24849
24850 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24851
24852 * config/aarch64/arm_neon.h (vabs_s64): New function
24853
24854 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24855
24856 PR target/57516
24857 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24858 * config/avr/avr.md (adjust_len): Add `round'.
24859 * config/avr/avr-protos.h (avr_out_round): New prototype.
24860 (avr_out_plus): Add `out_label' argument.
24861 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24862 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24863 Handle the case where `insn' is just a pattern.
24864 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24865 (avr_out_round): New function.
24866 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24867
24868 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24869
24870 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24871 Add check for flag_stack_usage to handle -fstack-usage support
24872
24873 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24874
24875 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24876 interaction for new Power8 flags and VSX.
24877
24878 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24879
24880 PR middle-end/57698
24881 * tree-inline.c (expand_call_inline): Emit errors during
24882 early_inlining only if optimization is not turned on.
24883
24884 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24885
24886 * passes.def: New.
24887
24888 * passes.c (init_optimization_passes): Move the construction of
24889 the pass hierarchy into a new passes.def file.
24890
24891 * Makefile.in (passes.o): Add dependency on passes.def.
24892
24893 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24894
24895 * passes.c (init_optimization_passes): Introduce macros for
24896 constructing the tree of passes (INSERT_PASSES_AFTER,
24897 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24898 TERMINATE_PASS_LIST).
24899
24900 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24901 Wei Mi <wmi@google.com>
24902
24903 PR rtl-optimization/57878
24904 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24905 top.
24906 (reload_pseudo_compare_func): Check nregs first for reload
24907 pseudos.
24908
24909 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24910
24911 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24912
24913 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24914
24915 * read-rtl.c (validate_const_int): Once an invalid character is
24916 seen, quit the loop.
24917
24918 * gengtype.c (write_roots): Similarly once we find the "deletable"
24919 or "if_marked" option.
24920
24921 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24922
24923 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24924 "xtab" and "sat". Move value "clz" from here to ...
24925 (attriubte "type"): ... here.
24926 (satsi_<SAT:code>): Delete "insn" attribute.
24927 (satsi_<SAT:code>_shift): Likewise.
24928 (arm_zero_extendqisi2addsi): Likewise.
24929 (arm_extendqisi2addsi): Likewise.
24930 (clzsi2): Update for attribute changes.
24931 (rbitsi2): Likewise.
24932 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24933 attribute.
24934 (arm_usatsihi): Likewise.
24935 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24936
24937 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24938
24939 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24940 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24941 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24942 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24943 in alphabetical order.
24944 (attribute "core_cycles"): Update for attribute changes.
24945 (arm_addsi3): Likewise.
24946 (addsi3_compare0): Likewise.
24947 (addsi3_compare0_scratch): Likewise.
24948 (addsi3_compare_op1): Likewise.
24949 (addsi3_compare_op2): Likewise.
24950 (compare_addsi2_op0): Likewise.
24951 (compare_addsi2_op1): Likewise.
24952 (addsi3_carryin_shift_<optab>): Likewise.
24953 (subsi3_carryin_shift): Likewise.
24954 (rsbsi3_carryin_shift): Likewise.
24955 (arm_subsi3_insn): Likewise.
24956 (subsi3_compare0): Likewise.
24957 (subsi3_compare): Likewise.
24958 (arm_andsi3_insn): Likewise.
24959 (thumb1_andsi3_insn): Likewise.
24960 (andsi3_compare0): Likewise.
24961 (andsi3_compare0_scratch): Likewise.
24962 (zeroextractsi_compare0_scratch
24963 (andsi_not_shiftsi_si): Likewise.
24964 (iorsi3_insn): Likewise.
24965 (iorsi3_compare0): Likewise.
24966 (iorsi3_compare0_scratch): Likewise.
24967 (arm_xorsi3): Likewise.
24968 (thumb1_xorsi3_insn): Likewise.
24969 (xorsi3_compare0): Likewise.
24970 (xorsi3_compare0_scratch): Likewise.
24971 (satsi_<SAT:code>_shift): Likewise.
24972 (rrx): Likewise.
24973 (arm_shiftsi3): Likewise.
24974 (shiftsi3_compare0): Likewise.
24975 (not_shiftsi): Likewise.
24976 (not_shiftsi_compare0): Likewise.
24977 (not_shiftsi_compare0_scratch): Likewise.
24978 (arm_one_cmplsi2): Likewise.
24979 (thumb_one_complsi2): Likewise.
24980 (notsi_compare0): Likewise.
24981 (notsi_compare0_scratch): Likewise.
24982 (thumb1_zero_extendhisi2): Likewise.
24983 (arm_zero_extendhisi2): Likewise.
24984 (arm_zero_extendhisi2_v6): Likewise.
24985 (arm_zero_extendhisi2addsi): Likewise.
24986 (thumb1_zero_extendqisi2): Likewise.
24987 (thumb1_zero_extendqisi2_v6): Likewise.
24988 (arm_zero_extendqisi2): Likewise.
24989 (arm_zero_extendqisi2_v6): Likewise.
24990 (arm_zero_extendqisi2addsi): Likewise.
24991 (thumb1_extendhisi2): Likewise.
24992 (arm_extendhisi2): Likewise.
24993 (arm_extendhisi2_v6): Likewise.
24994 (arm_extendqisi): Likewise.
24995 (arm_extendqisi_v6): Likewise.
24996 (arm_extendqisi2addsi): Likewise.
24997 (thumb1_extendqisi2): Likewise.
24998 (thumb1_movdi_insn): Likewise.
24999 (arm_movsi_insn): Likewise.
25000 (movsi_compare0): Likewise.
25001 (movhi_insn_arch4): Likewise.
25002 (movhi_bytes): Likewise.
25003 (arm_movqi_insn): Likewise.
25004 (thumb1_movqi_insn): Likewise.
25005 (arm32_movhf): Likewise.
25006 (thumb1_movhf): Likewise.
25007 (arm_movsf_soft_insn): Likewise.
25008 (thumb1_movsf_insn): Likewise.
25009 (movdf_soft_insn): Likewise.
25010 (thumb_movdf_insn): Likewise.
25011 (arm_cmpsi_insn): Likewise.
25012 (cmpsi_shiftsi): Likewise.
25013 (cmpsi_shiftsi_swp): Likewise.
25014 (arm_cmpsi_negshiftsi_si): Likewise.
25015 (movsicc_insn): Likewise.
25016 (movsfcc_soft_insn): Likewise.
25017 (arith_shiftsi): Likewise.
25018 (arith_shiftsi_compare0
25019 (arith_shiftsi_compare0_scratch
25020 (sub_shiftsi): Likewise.
25021 (sub_shiftsi_compare0
25022 (sub_shiftsi_compare0_scratch
25023 (and_scc): Likewise.
25024 (cond_move): Likewise.
25025 (if_plus_move): Likewise.
25026 (if_move_plus): Likewise.
25027 (if_move_not): Likewise.
25028 (if_not_move): Likewise.
25029 (if_shift_move): Likewise.
25030 (if_move_shift): Likewise.
25031 (if_shift_shift): Likewise.
25032 (if_not_arith): Likewise.
25033 (if_arith_not): Likewise.
25034 (cond_move_not): Likewise.
25035 (thumb1_ashlsi3): Set type attribute.
25036 (thumb1_ashrsi3): Likewise.
25037 (thumb1_lshrsi3): Likewise.
25038 (thumb1_rotrsi3): Likewise.
25039 (shiftsi3_compare0_scratch): Likewise.
25040 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25041 (neon_mov<mode>): Likewise.
25042 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25043 attribute changes.
25044 (thumb2_movsi_insn): Likewise.
25045 (thumb2_cmpsi_neg_shiftsi): Likewise.
25046 (thumb2_extendqisi_v6): Likewise.
25047 (thumb2_zero_extendhisi2_v6): Likewise.
25048 (thumb2_zero_extendqisi2_v6): Likewise.
25049 (thumb2_shiftsi3_short): Likewise.
25050 (thumb2_addsi3_compare0_scratch): Likewise.
25051 (orsi_not_shiftsi_si): Likewise.
25052 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25053 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25054 changes.
25055 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25056 (1020alu_shift_op): Likewise.
25057 (1020alu_shift_reg_op): Likewise.
25058 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25059 (alu_shift_op): Likewise.
25060 (alu_shift_reg_op): Likewise.
25061 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25062 (11_alu_shift_op): Likewise.
25063 (11_alu_shift_reg_op): Likewise.
25064 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25065 (9_alu_shift_reg_op): Likewise.
25066 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25067 changes.
25068 (cortex_a15_alu_shift): Likewise.
25069 (cortex_a15_alu_shift_reg): Likewise.
25070 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25071 changes.
25072 (cortex_a5_alu_shift): Likewise.
25073 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25074 changes.
25075 (cortex_a53_alu_shift): Likewise.
25076 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25077 changes.
25078 (cortex_a7_alu_reg): Likewise.
25079 (cortex_a7_alu_shift): Likewise.
25080 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25081 changes.
25082 (cortex_a8_alu_shift): Likewise.
25083 (cortex_a8_alu_shift_reg): Likewise.
25084 (cortex_a8_mov): Likewise.
25085 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25086 (cortex_a9_dp_shift): Likewise.
25087 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25088 changes.
25089 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25090 changes.
25091 (cortex_r4_mov): Likewise.
25092 (cortex_r4_alu_shift): Likewise.
25093 (cortex_r4_alu_shift_reg): Likewise.
25094 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25095 (526_alu_shift_op): Likewise.
25096 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25097 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25098 (626te_alu_shift_op): Likewise.
25099 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25100 (726te_alu_op): Likewise.
25101 (726te_alu_shift_op): Likewise.
25102 (726te_alu_shift_reg_op): Likewise.
25103 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25104 (mp626_alu_shift_op): Likewise.
25105 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25106 (pj4_alu_e1_conds): Likewise.
25107 (pj4_alu): Likewise.
25108 (pj4_alu_conds): Likewise.
25109 (pj4_shift): Likewise.
25110 (pj4_shift_conds): Likewise.
25111 (pj4_alu_shift): Likewise.
25112 (pj4_alu_shift_conds): Likewise.
25113 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25114 changes.
25115 (cortexa7_older_only): Likewise.
25116 (cortexa7_younger): Likewise.
25117
25118 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25119
25120 * ipa-pure-const.c (generate_summary): Rename to...
25121 (pure_const_generate_summary): ... this.
25122
25123 2013-07-17 Iain Sandoe <iain@codesourcery.com>
25124
25125 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25126
25127 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
25128
25129 PR target/57909
25130 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25131 usage in HI mode.
25132
25133 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25134
25135 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25136 enabled without -march=zEC12.
25137 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25138 flags to be set.
25139
25140 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25141
25142 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25143 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25144 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25145 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25146 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25147 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25148 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25149 ISA_HAS_FP4.
25150 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25151 and ISA_HAS_NMADD3_NMSUB3.
25152 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25153 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25154 (nmsub4<mode>, nmsub3<mode>): Likewise.
25155 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25156
25157 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25158
25159 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25160 TARGET_MIPS5400 checking.
25161
25162 2013-07-16 Jakub Jelinek <jakub@redhat.com>
25163 Peter Bergner <bergner@vnet.ibm.com>
25164
25165 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25166 registers in the comment.
25167 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25168 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25169 rather than FIRST_PSEUDO_REGISTERS.
25170
25171 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
25172
25173 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25174 enable extra ISA flags with TARGET_HTM.
25175
25176 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25177
25178 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25179 Fix comment typos.
25180
25181 2013-07-15 Cong Hou <congh@google.com>
25182
25183 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25184 in compare function for sorting.
25185
25186 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
25187
25188 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25189 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25190 * config/rs6000/rs6000.opt: Add -mhtm option.
25191 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25192 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25193 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25194 __HTM__ if the HTM instructions are available.
25195 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25196 htm_spr_reg_operand): New define_predicates.
25197 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25198 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25199 Include htm.md.
25200 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25201 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25202 HTM builtin functions.
25203 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25204 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25205 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25206 (rs6000_builtin_mask_calculate): Likewise.
25207 (rs6000_option_override_internal): Likewise.
25208 (bdesc_htm): Add new HTM builtin support.
25209 (htm_spr_num): New function.
25210 (htm_spr_regno): Likewise.
25211 (rs6000_htm_spr_icode): Likewise.
25212 (htm_expand_builtin): Likewise.
25213 (htm_init_builtins): Likewise.
25214 (rs6000_expand_builtin): Add support for HTM builtin functions.
25215 (rs6000_init_builtins): Likewise.
25216 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25217 option.
25218 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25219 (TARGET_HTM, MASK_HTM): Define macros.
25220 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25221 (FIXED_REGISTERS): Likewise.
25222 (CALL_USED_REGISTERS): Likewise.
25223 (CALL_REALLY_USED_REGISTERS): Likewise.
25224 (REG_ALLOC_ORDER): Likewise.
25225 (enum reg_class): Likewise.
25226 (REG_CLASS_NAMES): Likewise.
25227 (REG_CLASS_CONTENTS): Likewise.
25228 (REGISTER_NAMES): Likewise.
25229 (ADDITIONAL_REGISTER_NAMES): Likewise.
25230 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25231 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25232 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25233 * config/rs6000/htm.md: New file.
25234 * config/rs6000/htmintrin.h: New file.
25235 * config/rs6000/htmxlintrin.h: New file.
25236
25237 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
25238
25239 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25240 Define SYMBOL_TINY_GOT, update comment.
25241 * config/aarch64/aarch64.c
25242 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25243 (aarch64_expand_mov_immediate): Likewise.
25244 (aarch64_print_operand): Likewise.
25245 (aarch64_classify_symbol): Likewise.
25246 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25247 (ldr_got_tiny): Define.
25248
25249 2013-07-13 Tobias Grosser <tobias@grosser.es>
25250
25251 PR tree-optimization/54094
25252 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25253 scheduling dimension for the parallelism check from the polyhedral
25254 information in the AST.
25255 * graphite-dependences.c (carries_deps): Do not assume the schedule is
25256 in 2D + 1 form.
25257
25258 2013-07-13 Jason Merrill <jason@redhat.com>
25259
25260 * print-tree.c (debug_vec_tree): Use debug_raw.
25261 (debug_raw (vec<tree, va_gc> &)): New.
25262 (debug_raw (vec<tree, va_gc> *)): New.
25263 * tree.h: Declare them.
25264
25265 2013-07-13 Bin Cheng <bin.cheng@arm.com>
25266
25267 * ifcvt.c (ifcvt_after_combine): New static variable.
25268 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25269 for size.
25270 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
25271 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25272 rest_of_handle_if_after_reload): Pass new argument for if_convert.
25273
25274 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
25275
25276 * config/mips/mips.c (mips_expand_call): Remove empty statement.
25277
25278 2013-07-12 Michael Matz <matz@suse.de>
25279
25280 PR middle-end/55771
25281 * convert.c (convert_to_real): Reject non-float inner types.
25282
25283 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
25284
25285 * config/aarch64/aarch64-protos.h
25286 (aarch64_simd_immediate_valid_for_move): Remove.
25287 * config/aarch64/aarch64.c (simd_immediate_info): New member.
25288 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25289 cases.
25290 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25291
25292 2013-07-11 Steve Ellcey <sellcey@mips.com>
25293
25294 * config/mips/mips.c (mips_conditional_register_usage): Do not
25295 use t[0-7] registers in MIPS16 mode when optimizing for size.
25296
25297 2013-07-11 Sriraman Tallam <tmsriram@google.com>
25298
25299 * config/i386/i386.c (dispatch_function_versions): Fix array
25300 indexing of function_version_info to match actual_versions.
25301
25302 2013-07-11 Teresa Johnson <tejohnson@google.com>
25303
25304 * vec.h (struct va_gc): Move release out-of-line.
25305 (va_gc::release): Call ggc_free on released vec.
25306
25307 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25308
25309 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25310 Require GOT register as additional operand in UNSPEC.
25311 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25312 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25313 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25314 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25315 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25316 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25317 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25318
25319 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
25320
25321 PR target/57631
25322 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25323 name seen by assembler/linker rather if available.
25324
25325 2013-07-11 Andreas Schwab <schwab@suse.de>
25326
25327 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25328
25329 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
25330
25331 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25332
25333 2013-07-10 Joseph Myers <joseph@codesourcery.com>
25334
25335 * doc/tm.texi.in: Move hook documentation to ....
25336 * target.def: ... here.
25337
25338 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25339 text on @hook line.
25340 * doc/tm.texi: Regenerate.
25341
25342 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
25343
25344 PR c++/57869
25345 * doc/invoke.texi: Document -Wconditionally-supported.
25346
25347 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25348
25349 PR target/57844
25350 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25351 of my_fp.
25352
25353 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25354
25355 PR target/57506
25356 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25357 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25358 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25359 Remove duplicate devices.
25360 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25361 * config/avr/t-multilib: Regenerate.
25362 * config/avr/avr-tables.opt: Regenerate.
25363 * doc/avr-mmcu.texi: Regenerate.
25364
25365 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25366
25367 PR target/56987
25368 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25369
25370 2013-07-10 Graham Stott <graham.stott@btinternet.com>
25371
25372 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25373 the cost of MULT when optimizing for size.
25374
25375 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25376
25377 * config/cr16/cr16-protos.h: Don't include target.h.
25378
25379 2013-07-09 Joseph Myers <joseph@codesourcery.com>
25380
25381 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25382 adjust register size for TDmode and TFmode for VSX registers.
25383
25384 2013-07-08 Kai Tietz <ktietz@redhat.com>
25385
25386 PR target/56892
25387 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25388 hook_bool_const_tree_true.
25389
25390 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25391
25392 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25393 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25394 * config/s390/s390.md: Define FPR*_REGNUM constants.
25395 Fix FPR2_REGNUM constant (18 -> 17).
25396 ("*trunc<BFP:mode><DFP_ALL:mode>2")
25397 ("*trunc<DFP_ALL:mode><BFP:mode>2")
25398 ("trunc<BFP:mode><DFP_ALL:mode>2")
25399 ("trunc<DFP_ALL:mode><BFP:mode>2")
25400 ("*extend<BFP:mode><DFP_ALL:mode>2")
25401 ("*extend<DFP_ALL:mode><BFP:mode>2")
25402 ("extend<BFP:mode><DFP_ALL:mode>2")
25403 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25404 FPR4_REGNUM.
25405
25406 2013-07-08 Graham Stott <graham.stott@btinternet.com>
25407
25408 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25409
25410 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25411
25412 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25413 and cfun_fpr_bit_p to cfun_fpr_save_p.
25414 (s390_frame_area, s390_register_info, s390_frame_info)
25415 (s390_emit_prologue, s390_emit_epilogue)
25416 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25417 register numbers.
25418 * config/s390/s390.h: Define *_REGNUM macros for floating point
25419 register numbers.
25420
25421 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
25422
25423 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25424
25425 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
25426
25427 PR rtl-optimization/57786
25428 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25429 and break out of the loop when it is set to false.
25430
25431 2013-07-08 Jakub Jelinek <jakub@redhat.com>
25432
25433 PR target/57819
25434 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25435 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25436 (const_int 63)) 0)).
25437 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25438 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25439 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25440
25441 PR rtl-optimization/57829
25442 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25443 mask bits outside of mode are just sign-extension from mode to HWI.
25444
25445 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
25446
25447 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25448 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25449 adjust_address instead of change_address to keep info about alignment.
25450 (emit_strmov): Remove.
25451 (emit_memmov): New function.
25452 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25453 (expand_movmem_epilogue): Likewise and return updated rtx for
25454 destination.
25455 (expand_constant_movmem_prologue): Likewise and return updated rtx for
25456 destination and source.
25457 (decide_alignment): Refactor, handle vector_loop.
25458 (ix86_expand_movmem): Likewise.
25459 (ix86_expand_setmem): Likewise.
25460 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25461
25462 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
25463
25464 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25465 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25466
25467 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25468
25469 * config/i386/sse.md (sse_movlhps): Change alternative 3
25470 of operand 2 to "m".
25471
25472 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25473
25474 PR target/57807
25475 * config/i386/sse.md (iptr): New mode attribute.
25476 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25477 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25478 (<sse>_vmmul<mode>3): Ditto.
25479 (<sse>_vmdiv<mode>3): Ditto.
25480 (sse_vmrcpv4sf2): Ditto.
25481 (<sse>_vmsqrt<mode>2): Ditto.
25482 (sse_vmrsqrtv4sf2): Ditto.
25483 (<sse>_vm<code><mode>3): Ditto.
25484 (avx_vmcmp<mode>3): Ditto.
25485 (<sse>_vmmaskcmp<mode>3): Ditto.
25486 (<sse>_comi): Ditto.
25487 (<sse>_ucomi): Ditto.
25488 (*xop_vmfrcz_<mode>): Ditto.
25489 (*fmai_fmadd_<mode>): Ditto.
25490 (*fmai_fmsub_<mode>): Ditto.
25491 (*fmai_fnmadd_<mode>): Ditto.
25492 (*fmai_fnmsub_<mode>): Ditto.
25493 (*fma4i_vmfmadd_<mode>): Ditto.
25494 (*fma4i_vmfmsub_<mode>): Ditto.
25495 (*fma4i_vmfnmadd_<mode>): Ditto.
25496 (*fma4i_vmfnmsub_<mode>): Ditto.
25497 (*xop_vmfrcz_<mode>): Ditto.
25498 (sse_cvtps2pi): Ditto.
25499 (sse_cvttps2pi): Ditto.
25500 (sse_cvtss2si): Ditto.
25501 (sse_cvtss2si_2): Ditto.
25502 (sse_cvtss2siq_2): Ditto.
25503 (sse_cvttss2si): Ditto.
25504 (sse_cvttss2siq): Ditto.
25505 (sse_cvtsd2si): Ditto.
25506 (sse_cvtsd2si_2): Ditto.
25507 (sse_cvtsd2siq_2): Ditto.
25508 (sse_cvttsd2si): Ditto.
25509 (sse_cvttsd2siq): Ditto.
25510 (sse_cvtsd2ss): Ditto.
25511 (sse_cvtss2sd): Ditto.
25512 (avx2_pbroadcast<mode>): Ditto.
25513 (avx2_pbroadcast<mode>_1): Ditto.
25514 (*avx_vperm_broadcast_v4sf): Ditto.
25515
25516 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25517 (sse_movlhps): Ditto.
25518 (sse_storehps): Ditto.
25519 (sse_loadhps): Ditto.
25520 (sse_storelps): Ditto.
25521 (sse_loadlps): Ditto.
25522 (*vec_concatv4sf): Ditto.
25523 (*vec_interleave_highv2df): Ditto.
25524 (*vec_interleave_lowv2df): Ditto.
25525 (*vec_extractv2df_1_sse): Ditto.
25526 (*vec_extractv2df_0_sse): Ditto.
25527 (sse2_storelpd): Ditto.
25528 (sse2_loadlpd): Ditto.
25529 (sse2_movsd): Ditto.
25530 (*vec_concatv4si): Ditto.
25531 (vec_concatv2di): Ditto.
25532
25533 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25534 for Intel asm dialect.
25535 (mmx_punpcklwd): Ditto.
25536 (mmx_punpckldq): Ditto.
25537
25538 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25539 for intel assembler dialect.
25540
25541 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25542
25543 PR target/29776
25544 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25545 for BUILT_IN_C{LZ,LRSB}*.
25546 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25547 * tree-vrp.c (extract_range_basic): Handle
25548 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25549 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25550 fall thru to code calling set_value*.
25551 * builtins.c (expand_builtin): Remove *IMAX cases.
25552 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25553 if width is bigger than 2*HWI.
25554
25555 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25556
25557 PR rtl-optimization/55342
25558 * lra-int.h (lra_subreg_reload_pseudos): New.
25559 * lra.c: Add undoing optional reloads to the block diagram.
25560 (lra_subreg_reload_pseudos): New.
25561 (lra_optional_reload_pseudos): Change comments.
25562 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25563 lra_optional_reload_pseudos after undo transformations.
25564 * lra-assigns.c (pseudo_prefix_title): New.
25565 (lra_setup_reg_renumber): Use it.
25566 (spill_for): Ditto. Check subreg reload pseudos too.
25567 (assign_by_spills): Consider subreg reload pseudos too.
25568 * lra-constraints.c (simplify_operand_subreg): Use
25569 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25570 (curr_insn_transform): Recognize and do optional reloads.
25571 (undo_optional_reloads): New.
25572 (lra_undo_inheritance): Call undo_optional_reloads.
25573
25574 2013-07-05 Thomas Quinot <quinot@adacore.com>
25575
25576 * tree-complex.c (expand_complex_operations_1): Fix typo.
25577
25578 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25579
25580 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25581 (tune_params): New member 'const vec_costs'.
25582 * config/aarch64/aarch64.c (generic_vector_cost): New.
25583 (generic_tunings): New member 'generic_vector_cost'.
25584 (aarch64_builtin_vectorization_cost): New.
25585 (aarch64_add_stmt_cost): New.
25586 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25587 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25588
25589 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25590
25591 PR target/57777
25592 * config/i386/predicates.md (vsib_address_operand): Disallow
25593 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25594
25595 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25596
25597 PR middle-end/55030
25598 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25599 expand_builtin_setjmp_receiver.
25600 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25601 with NULL for the label parameter.
25602 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25603 the frame-pointer. Adjust comments.
25604 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25605 only if LABEL is non-NULL.
25606
25607 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25608
25609 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25610 (ARM_ABI_AAPCS64): Ditto.
25611 (arm_abi): Ditto.
25612 (ARM_DEFAULT_ABI): Ditto.
25613
25614 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25615
25616 * config/aarch64/aarch64-builtins.c
25617 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25618 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25619 (st1): Likewise.
25620 * config/aarch64/aarch64-simd.md
25621 (aarch64_ld1<VALL:mode>): New.
25622 (aarch64_st1<VALL:mode>): Likewise.
25623 * config/aarch64/arm_neon.h
25624 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25625
25626 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25627
25628 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25629 target ISA is AVX.
25630 (ix86_option_override_internal):Turn on all -mavx target flags by
25631 default as they are dependent on AVX anyway.
25632
25633 2013-07-02 Cary Coutant <ccoutant@google.com>
25634
25635 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25636 deterministic hash.
25637 (loc_checksum_ordered): Likewise.
25638 (hash_loc_operands): Remove inline keyword.
25639
25640 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25641
25642 PR tree-optimization/57741
25643 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25644 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25645 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25646 Allow REAL_CST step_exprs if flag_associative_math.
25647 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25648
25649 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25650
25651 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25652
25653 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25654
25655 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25656
25657 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25658
25659 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25660 encoding.
25661 (iorsi3_insn): Likewise.
25662 (arm_xorsi3): Likewise.
25663
25664 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25665
25666 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25667 to ...
25668 (attribute "type"): ... here, and prefix with "wmmx_".
25669 (attribute "core_cycles"): Update for attribute changes.
25670 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25671 (tbcstv4hi): Likewise.
25672 (tbcstv2si): Likewise.
25673 (iwmmxt_iordi3): Likewise.
25674 (iwmmxt_xordi3): Likewise.
25675 (iwmmxt_anddi3): Likewise.
25676 (iwmmxt_nanddi3): Likewise.
25677 (iwmmxt_arm_movdi): Likewise.
25678 (iwmmxt_movsi_insn): Likewise.
25679 (mov<mode>_internal): Likewise.
25680 (and<mode>3_iwmmxt): Likewise.
25681 (ior<mode>3_iwmmxt): Likewise.
25682 (xor<mode>3_iwmmxt): Likewise.
25683 (add<mode>3_iwmmxt): Likewise.
25684 (ssaddv8qi3): Likewise.
25685 (ssaddv4hi3): Likewise.
25686 (ssaddv2si3): Likewise.
25687 (usaddv8qi3): Likewise.
25688 (usaddv4hi3): Likewise.
25689 (usaddv2si3): Likewise.
25690 (sub<mode>3_iwmmxt): Likewise.
25691 (sssubv8qi3): Likewise.
25692 (sssubv4hi3): Likewise.
25693 (sssubv2si3): Likewise.
25694 (ussubv8qi3): Likewise.
25695 (ussubv4hi3): Likewise.
25696 (ussubv2si3): Likewise.
25697 (mulv4hi3_iwmmxt): Likewise.
25698 (smulv4hi3_highpart): Likewise.
25699 (umulv4hi3_highpart): Likewise.
25700 (iwmmxt_wmacs): Likewise.
25701 (iwmmxt_wmacsz): Likewise.
25702 (iwmmxt_wmacu): Likewise.
25703 (iwmmxt_wmacuz): Likewise.
25704 (iwmmxt_clrdi): Likewise.
25705 (iwmmxt_clrv8qi): Likewise.
25706 (iwmmxt_clr4hi): Likewise.
25707 (iwmmxt_clr2si): Likewise.
25708 (iwmmxt_uavgrndv8qi3): Likewise.
25709 (iwmmxt_uavgrndv4hi3): Likewise.
25710 (iwmmxt_uavgv8qi3): Likewise.
25711 (iwmmxt_uavgv4hi3): Likewise.
25712 (iwmmxt_tinsrb): Likewise.
25713 (iwmmxt_tinsrh): Likewise.
25714 (iwmmxt_tinsrw): Likewise.
25715 (iwmmxt_textrmub): Likewise.
25716 (iwmmxt_textrmsb): Likewise.
25717 (iwmmxt_textrmuh): Likewise.
25718 (iwmmxt_textrmsh): Likewise.
25719 (iwmmxt_textrmw): Likewise.
25720 (iwmxxt_wshufh): Likewise.
25721 (eqv8qi3): Likewise.
25722 (eqv4hi3): Likewise.
25723 (eqv2si3): Likewise.
25724 (gtuv8qi3): Likewise.
25725 (gtuv4hi3): Likewise.
25726 (gtuv2si3): Likewise.
25727 (gtv8qi3): Likewise.
25728 (gtv4hi3): Likewise.
25729 (gtv2si3): Likewise.
25730 (smax<mode>3_iwmmxt): Likewise.
25731 (umax<mode>3_iwmmxt): Likewise.
25732 (smin<mode>3_iwmmxt): Likewise.
25733 (umin<mode>3_iwmmxt): Likewise.
25734 (iwmmxt_wpackhss): Likewise.
25735 (iwmmxt_wpackwss): Likewise.
25736 (iwmmxt_wpackdss): Likewise.
25737 (iwmmxt_wpackhus): Likewise.
25738 (iwmmxt_wpackwus): Likewise.
25739 (iwmmxt_wpackdus): Likewise.
25740 (iwmmxt_wunpckihb): Likewise.
25741 (iwmmxt_wunpckihh): Likewise.
25742 (iwmmxt_wunpckihw): Likewise.
25743 (iwmmxt_wunpckilb): Likewise.
25744 (iwmmxt_wunpckilh): Likewise.
25745 (iwmmxt_wunpckilw): Likewise.
25746 (iwmmxt_wunpckehub): Likewise.
25747 (iwmmxt_wunpckehuh): Likewise.
25748 (iwmmxt_wunpckehuw): Likewise.
25749 (iwmmxt_wunpckehsb): Likewise.
25750 (iwmmxt_wunpckehsh): Likewise.
25751 (iwmmxt_wunpckehsw): Likewise.
25752 (iwmmxt_wunpckelub): Likewise.
25753 (iwmmxt_wunpckeluh): Likewise.
25754 (iwmmxt_wunpckeluw): Likewise.
25755 (iwmmxt_wunpckelsb): Likewise.
25756 (iwmmxt_wunpckelsh): Likewise.
25757 (iwmmxt_wunpckelsw): Likewise.
25758 (ror<mode>3): Likewise.
25759 (ashr<mode>3_iwmmxt): Likewise.
25760 (lshr<mode>3_iwmmxt): Likewise.
25761 (ashl<mode>3_iwmmxt): Likewise.
25762 (ror<mode>3_di): Likewise.
25763 (ashr<mode>3_di): Likewise.
25764 (lshr<mode>3_di): Likewise.
25765 (ashl<mode>3_di): Likewise.
25766 (iwmmxt_wmadds): Likewise.
25767 (iwmmxt_wmaddu): Likewise.
25768 (iwmmxt_tmia): Likewise.
25769 (iwmmxt_tmiaph): Likewise.
25770 (iwmmxt_tmiabb): Likewise.
25771 (iwmmxt_tmiatb): Likewise.
25772 (iwmmxt_tmiabt): Likewise.
25773 (iwmmxt_tmiatt): Likewise.
25774 (iwmmxt_tmovmskb): Likewise.
25775 (iwmmxt_tmovmskh): Likewise.
25776 (iwmmxt_tmovmskw): Likewise.
25777 (iwmmxt_waccb): Likewise.
25778 (iwmmxt_wacch): Likewise.
25779 (iwmmxt_waccw): Likewise.
25780 (iwmmxt_waligni): Likewise.
25781 (iwmmxt_walignr): Likewise.
25782 (iwmmxt_walignr0): Likewise.
25783 (iwmmxt_walignr1): Likewise.
25784 (iwmmxt_walignr2): Likewise.
25785 (iwmmxt_walignr3): Likewise.
25786 (iwmmxt_wsadb): Likewise.
25787 (iwmmxt_wsadh): Likewise.
25788 (iwmmxt_wsadbz): Likewise.
25789 (iwmmxt_wsadhz): Likewise.
25790 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25791 (iwmmxt_wabsdiffb): Likewise.
25792 (iwmmxt_wabsdiffh): Likewise.
25793 (iwmmxt_wabsdiffw): Likewise.
25794 (iwmmxt_waddsubhx): Likewise
25795 (iwmmxt_wsubaddhx): Likewise.
25796 (addc<mode>3): Likewise.
25797 (iwmmxt_avg4): Likewise.
25798 (iwmmxt_avg4r): Likewise.
25799 (iwmmxt_wmaddsx): Likewise.
25800 (iwmmxt_wmaddux): Likewise.
25801 (iwmmxt_wmaddsn): Likewise.
25802 (iwmmxt_wmaddun): Likewise.
25803 (iwmmxt_wmulwsm): Likewise.
25804 (iwmmxt_wmulwum): Likewise.
25805 (iwmmxt_wmulsmr): Likewise.
25806 (iwmmxt_wmulumr): Likewise.
25807 (iwmmxt_wmulwsmr): Likewise.
25808 (iwmmxt_wmulwumr): Likewise.
25809 (iwmmxt_wmulwl): Likewise.
25810 (iwmmxt_wqmulm): Likewise.
25811 (iwmmxt_wqmulwm): Likewise.
25812 (iwmmxt_wqmulmr): Likewise.
25813 (iwmmxt_wqmulwmr): Likewise.
25814 (iwmmxt_waddbhusm): Likewise.
25815 (iwmmxt_waddbhusl): Likewise.
25816 (iwmmxt_wqmiabb): Likewise.
25817 (iwmmxt_wqmiabt): Likewise.
25818 (iwmmxt_wqmiatb): Likewise.
25819 (iwmmxt_wqmiatt): Likewise.
25820 (iwmmxt_wqmiabbn): Likewise.
25821 (iwmmxt_wqmiabtn): Likewise.
25822 (iwmmxt_wqmiatbn): Likewise.
25823 (iwmmxt_wqmiattn): Likewise.
25824 (iwmmxt_wmiabb): Likewise.
25825 (iwmmxt_wmiabt): Likewise.
25826 (iwmmxt_wmiatb): Likewise.
25827 (iwmmxt_wmiatt): Likewise.
25828 (iwmmxt_wmiabbn): Likewise.
25829 (iwmmxt_wmiabtn): Likewise.
25830 (iwmmxt_wmiatbn): Likewise.
25831 (iwmmxt_wmiattn): Likewise.
25832 (iwmmxt_wmiawbb): Likewise.
25833 (iwmmxt_wmiawbt): Likewise.
25834 (iwmmxt_wmiawtb): Likewise.
25835 (iwmmxt_wmiawtt): Likewise.
25836 (iwmmxt_wmiawbbn): Likewise.
25837 (iwmmxt_wmiawbtn): Likewise.
25838 (iwmmxt_wmiawtbn): Likewise.
25839 (iwmmxt_wmiawttn): Likewise.
25840 (iwmmxt_wmerge): Likewise.
25841 (iwmmxt_tandc<mode>3): Likewise.
25842 (iwmmxt_torc<mode>3): Likewise.
25843 (iwmmxt_torvsc<mode>3): Likewise.
25844 (iwmmxt_textrc<mode>3): Likewise.
25845 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25846 (wmmxt_pack): Likewise.
25847 (wmmxt_mult_c1): Likewise.
25848 (wmmxt_mult_c2): Likewise.
25849 (wmmxt_alu_c1): Likewise.
25850 (wmmxt_alu_c2): Likewise.
25851 (wmmxt_alu_c3): Likewise.
25852 (wmmxt_transfer_c1): Likewise.
25853 (wmmxt_transfer_c2): Likewise.
25854 (wmmxt_transfer_c3): Likewise.
25855 (marvell_f_iwmmxt_wstr): Likewise.
25856 (marvell_f_iwmmxt_wldr): Likewise.
25857
25858 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25859
25860 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25861
25862 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25863
25864 Revert:
25865 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25866 * lra-constraints.c (need_for_split_p): Check call used hard regs
25867 living through calls.
25868
25869 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25870 call used regs for call insn.
25871
25872 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25873
25874 PR target/57736
25875 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25876 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25877
25878 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25879
25880 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25881
25882 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25883
25884 * lra-constraints.c (need_for_split_p): Check call used hard regs
25885 living through calls.
25886
25887 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25888
25889 PR target/57744
25890 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25891 to tie with any other modes. Eliminate Altivec vector mode tests,
25892 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25893 code, to return 0 if testing MODE2 for a condition, if we've
25894 already tested MODE1 for the same condition.
25895
25896 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25897
25898 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25899 layout.
25900
25901 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25902
25903 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25904 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25905
25906 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25907
25908 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25909 Define.
25910 (aarch64_symbolic_constant_p): Remove.
25911 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25912 static. Fix line length and white space.
25913 (aarch64_symbolic_constant_p): Remove.
25914 * config/aarch64/predicates.md (aarch64_valid_symref):
25915 Use aarch64_classify_symbol_expression.
25916
25917 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25918
25919 * config/arm/constraints.md (Ts): New constraint.
25920 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25921 16-bit encodings.
25922 (compare_scc): Use "Ts" constraint for operand 0.
25923 (ior_scc_scc): Likewise.
25924 (and_scc_scc): Likewise.
25925 (and_scc_scc_nodom): Likewise.
25926 (ior_scc_scc_cmp): Likewise for operand 7.
25927 (and_scc_scc_cmp): Likewise.
25928 * config/arm/thumb2.md (thumb2_movsi_insn):
25929 Add alternatives for 16-bit encodings.
25930 (thumb2_movhi_insn): Likewise.
25931 (thumb2_movsicc_insn): Likewise.
25932 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25933 (thumb2_negscc): Use "Ts" constraint.
25934 Move mvn instruction outside cond_exec block.
25935 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25936 for 16-bit encodings.
25937
25938 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25939
25940 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25941 encoding.
25942 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25943 (mulsi3subsi): Likewise.
25944 (mulsidi3adddi): Likewise.
25945 (mulsidi3_v6): Likewise.
25946 (umulsidi3_v6): Likewise.
25947 (umulsidi3adddi_v6): Likewise.
25948 (smulsi3_highpart_v6): Likewise.
25949 (umulsi3_highpart_v6): Likewise.
25950 (mulhisi3tb): Likewise.
25951 (mulhisi3bt): Likewise.
25952 (mulhisi3tt): Likewise.
25953 (maddhisi4): Likewise.
25954 (maddhisi4tb): Likewise.
25955 (maddhisi4tt): Likewise.
25956 (maddhidi4): Likewise.
25957 (maddhidi4tb): Likewise.
25958 (maddhidi4tt): Likewise.
25959 (zeroextractsi_compare0_scratch): Likewise.
25960 (insv_zero): Likewise.
25961 (insv_t2): Likewise.
25962 (anddi_notzesidi_di): Likewise.
25963 (anddi_notsesidi_di): Likewise.
25964 (andsi_notsi_si): Likewise.
25965 (iordi_zesidi_di): Likewise.
25966 (xordi_zesidi_di): Likewise.
25967 (andsi_iorsi3_notsi): Likewise.
25968 (smax_0): Likewise.
25969 (smax_m1): Likewise.
25970 (smin_0): Likewise.
25971 (not_shiftsi): Likewise.
25972 (unaligned_loadsi): Likewise.
25973 (unaligned_loadhis): Likewise.
25974 (unaligned_loadhiu): Likewise.
25975 (unaligned_storesi): Likewise.
25976 (unaligned_storehi): Likewise.
25977 (extv_reg): Likewise.
25978 (extzv_t2): Likewise.
25979 (divsi3): Likewise.
25980 (udivsi3): Likewise.
25981 (arm_zero_extendhisi2addsi): Likewise.
25982 (arm_zero_extendqisi2addsi): Likewise.
25983 (compareqi_eq0): Likewise.
25984 (arm_extendhisi2_v6): Likewise.
25985 (arm_extendqisi2addsi): Likewise.
25986 (arm_movt): Likewise.
25987 (thumb2_ldrd): Likewise.
25988 (thumb2_ldrd_base): Likewise.
25989 (thumb2_ldrd_base_neg): Likewise.
25990 (thumb2_strd): Likewise.
25991 (thumb2_strd_base): Likewise.
25992 (thumb2_strd_base_neg): Likewise.
25993 (arm_negsi2): Add alternative for 16-bit encoding.
25994 (arm_one_cmplsi2): Likewise.
25995
25996 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25997
25998 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25999 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
26000 (movdfcc): Likewise.
26001 * config/arm/vfp.md (*thumb2_movsf_vfp):
26002 Disable predication for arm_restrict_it.
26003 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
26004 (*thumb2_movdfcc_vfp): Likewise.
26005 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
26006 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
26007 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
26008 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
26009 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
26010 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
26011 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
26012 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
26013 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
26014 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
26015 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
26016 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
26017 Disable predication for arm_restrict_it.
26018
26019 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
26020
26021 * config/i386/bmiintrin.h (_bextr_u32): New.
26022 (_bextr_u64): Ditto.
26023
26024 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
26025
26026 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26027 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26028 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26029 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26030 * config/mips/n32-elf.h: ...this new file.
26031
26032 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
26033
26034 PR target/57224
26035 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26036 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26037
26038 2013-06-27 Catherine Moore <clm@codesourcery.com>
26039
26040 * config/mips/mips-tables.opt: Regenerate.
26041 * config/mips/mips-cpus.def: Add m14ke and m14kec.
26042 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26043 * doc/invoke.texi: Add -m14kc.
26044
26045 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26046
26047 PR target/57623
26048 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26049 constraints of operand 1 and 2.
26050
26051 PR target/57623
26052 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26053 to match RTL canonicalization. Swap predicates and
26054 constraints of operand 1 and 2.
26055
26056 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
26057
26058 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26059 Process OP_INOUT regs for splitting too.
26060
26061 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26062
26063 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26064 decl before the loop, initialize to NULL.
26065 (vectorizable_load): Initialize ptr_incr to NULL.
26066
26067 2013-06-27 Martin Jambor <mjambor@suse.cz>
26068
26069 PR lto/57208
26070 * ipa-ref.h (ipa_maybe_record_reference): Declare.
26071 * ipa-ref.c (ipa_maybe_record_reference): New function.
26072 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26073 * ipa-cp.c (create_specialized_node): Record potential references from
26074 aggvals.
26075 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26076
26077 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26078
26079 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26080 parameter 'mode' of type 'enum machine_mode mode'; change to pass
26081 'mode' to force_reg.
26082 (aarch64_add_offset): Update calls to aarch64_force_temporary.
26083 (aarch64_expand_mov_immediate): Likewise.
26084
26085 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26086
26087 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26088 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26089
26090 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26091
26092 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26093 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26094 (struct machine_function): Add tbegin_p.
26095 (s390_canonicalize_comparison): Fold CC mode compares to
26096 conditional jump if possible.
26097 (s390_emit_jump): Return the emitted jump.
26098 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26099 Handle CCRAWmode compares.
26100 (s390_option_override): Default to -mhtm if available.
26101 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26102 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26103 FPRs instead of df_regs_ever_live_p.
26104 (s390_optimize_nonescaping_tx): New function.
26105 (s390_init_frame_layout): Extend clobbered_regs array to cover
26106 FPRs as well.
26107 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26108 (s390_expand_tbegin): New function.
26109 (enum s390_builtin): New enum definition.
26110 (code_for_builtin): New array definition.
26111 (s390_init_builtins): New function.
26112 (s390_expand_builtin): New function.
26113 (TARGET_INIT_BUILTINS): Define.
26114 (TARGET_EXPAND_BUILTIN): Define.
26115 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26116 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26117 (s390_alc_comparison): Likewise.
26118 * config/s390/s390-modes.def: Add CCRAWmode.
26119 * config/s390/s390.h (processor_flags): Add PF_TX.
26120 (TARGET_CPU_HTM): Define macro.
26121 (TARGET_HTM): Define macro.
26122 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26123 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26124 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26125 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26126 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26127 (TBEGIN_MASK, TBEGINC_MASK): New constants.
26128 ("*cc_to_int"): Move up.
26129 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26130 constants other than 0.
26131 ("*ccraw_to_int"): New insn and splitter definition.
26132 ("tbegin", "tbegin_nofloat", "tbegin_retry")
26133 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26134 ("tx_assist"): New expander.
26135 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26136 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26137 * config/s390/s390.opt: Add -mhtm option.
26138 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26139 * config/s390/htmxlintrin.h: New file.
26140 * config/s390/htmintrin.h: New file.
26141 * config/s390/s390intrin.h: New file.
26142 * doc/extend.texi: Document htm builtins.
26143 * config.gcc: Add the new header files to extra_headers.
26144
26145 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
26146
26147 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26148 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26149
26150 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26151 Pat Haugen <pthaugen@us.ibm.com>
26152 Peter Bergner <bergner@vnet.ibm.com>
26153
26154 * config/rs6000/power8.md: New.
26155 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26156 setting for power8 entry.
26157 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26158 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26159 test for Power4/Power5 only.
26160 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26161 support.
26162 (force_new_group): Adjust comment.
26163 * config/rs6000/rs6000.md: Include power8.md.
26164
26165 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
26166
26167 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26168 * config/arm/arm-protos.h (arm_max_conditional_execute): New
26169 declaration.
26170 (tune_params): Update comment.
26171 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26172 (arm_max_conditional_execute): New function.
26173 (thumb2_final_prescan_insn): Use max_insn_skipped and
26174 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26175
26176 2013-06-25 Jakub Jelinek <jakub@redhat.com>
26177
26178 PR tree-optimization/57705
26179 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26180 SSA_NAME step, provided that it is not defined inside the loop.
26181 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26182 (get_initial_def_for_induction): Handle SSA_NAME IV step.
26183
26184 2013-06-25 Martin Jambor <mjambor@suse.cz>
26185
26186 PR middle-end/57670
26187 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26188 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26189 calls in the dump.
26190 (ipa_note_param_call): Initialize member_ptr flag.
26191 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26192 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26193 (ipa_write_indirect_edge_info): Stream member_ptr flag.
26194 (ipa_read_indirect_edge_info): Likewise.
26195
26196 2013-06-25 Richard Biener <rguenther@suse.de>
26197
26198 PR middle-end/56977
26199 * passes.c (init_optimization_passes): Move pass_fold_builtins
26200 and pass_dce earlier with -Og.
26201
26202 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
26203
26204 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26205 <BIT_FIELD_REF>: Remove trailing TAB.
26206 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26207 remove blank line.
26208
26209 2013-06-24 Martin Jambor <mjambor@suse.cz>
26210
26211 PR tree-optimization/57358
26212 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26213 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26214 (ipa_analyze_params_uses): Generate pessimistic info when true.
26215
26216 2013-06-24 Martin Jambor <mjambor@suse.cz>
26217
26218 PR tree-optimization/57539
26219 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26220 global.inlined_to of the new node to it. All callers changed.
26221 * ipa-inline-transform.c (clone_inlined_nodes): New variable
26222 inlining_into, pass it to cgraph_clone_node.
26223 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26224 ipa_free_edge_args_substructures.
26225 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26226 rdesc linked list. Do not assert rdesc edges have inlined caller.
26227 Assert we have found an rdesc in the rdesc list.
26228
26229 2013-06-24 Richard Biener <rguenther@suse.de>
26230
26231 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26232 (pointer_set_lookup): Declare.
26233 (class pointer_map): New template class implementing a
26234 generic pointer to T map.
26235 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26236 pointer_map<T>::contains, pointer_map<T>::insert,
26237 pointer_map<T>::traverse): New functions.
26238 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26239 (pointer_set_lookup): New function.
26240 (pointer_set_contains): Use pointer_set_lookup.
26241 (pointer_set_insert): Likewise.
26242 (insert_aux): Remove.
26243 (struct pointer_map_t): Embed a pointer_set_t.
26244 (pointer_map_create): Adjust.
26245 (pointer_map_destroy): Likewise.
26246 (pointer_map_contains): Likewise.
26247 (pointer_map_insert): Likewise.
26248 (pointer_map_traverse): Likewise.
26249 * tree-streamer.h (struct streamer_tree_cache_d): Use a
26250 pointer_map<unsigned> instead of a pointer_map_t.
26251 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26252 (streamer_tree_cache_lookup): Likewise.
26253 (streamer_tree_cache_create): Likewise.
26254 (streamer_tree_cache_delete): Likewise.
26255 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26256 pointer_map<unsigned> instead of a pointer_map_t.
26257 (lto_init_tree_ref_encoder): Adjust.
26258 (lto_destroy_tree_ref_encoder): Likewise.
26259 * lto-section-out.c (lto_output_decl_index): Likewise.
26260 (lto_record_function_out_decl_state): Likewise.
26261 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26262
26263 2013-06-24 Richard Biener <rguenther@suse.de>
26264
26265 PR tree-optimization/57488
26266 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26267
26268 2013-06-24 Alan Modra <amodra@gmail.com>
26269
26270 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26271 (gen_easy_altivec_constant): Likewise.
26272 * config/rs6000/predicates.md (easy_vector_constant_add_self,
26273 easy_vector_constant_msb): Likewise.
26274
26275 2013-06-23 Jakub Jelinek <jakub@redhat.com>
26276
26277 PR target/57688
26278 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26279 add missing return true.
26280
26281 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
26282
26283 PR target/52483
26284 * config/sh/predicates.md (general_extend_operand): Invoke
26285 general_movsrc_operand for memory operands.
26286 (general_movsrc_operand): Allow reg+reg addressing, do not use
26287 general_operand for memory operands.
26288
26289 2013-06-23 Sriraman Tallam <tmsriram@google.com>
26290
26291 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
26292 when current target options does not apply.
26293 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26294 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26295 * config/i386/bmiintrin.h: Pass appropriate target
26296 attributes to header.
26297 * config/i386/mmintrin.h: Ditto.
26298 * config/i386/nmmintrin.h: Ditto.
26299 * config/i386/avx2intrin.h: Ditto.
26300 * config/i386/fxsrintrin.h: Ditto.
26301 * config/i386/tbmintrin.h: Ditto.
26302 * config/i386/xsaveintrin.h: Ditto.
26303 * config/i386/f16cintrin.h: Ditto.
26304 * config/i386/xtestintrin.h: Ditto.
26305 * config/i386/xsaveoptintrin.h: Ditto.
26306 * config/i386/bmi2intrin.h: Ditto.
26307 * config/i386/lzcntintrin.h: Ditto.
26308 * config/i386/smmintrin.h: Ditto.
26309 * config/i386/wmmintrin.h: Ditto.
26310 * config/i386/x86intrin.h: Remove all header include guards.
26311 * config/i386/prfchwintrin.h: Ditto.
26312 * config/i386/pmmintrin.h: Ditto.
26313 * config/i386/tmmintrin.h: Ditto.
26314 * config/i386/xmmintrin.h: Ditto.
26315 * config/i386/popcntintrin.h: Ditto.
26316 * config/i386/rdseedintrin.h: Ditto.
26317 * config/i386/ammintrin.h: Ditto.
26318 * config/i386/emmintrin.h: Ditto.
26319 * config/i386/immintrin.h: Remove all header include guards.
26320 * config/i386/fma4intrin.h: Ditto.
26321 * config/i386/lwpintrin.h: Ditto.
26322 * config/i386/xopintrin.h: Ditto.
26323 * config/i386/ia32intrin.h: Ditto.
26324 * config/i386/avxintrin.h: Ditto.
26325 * config/i386/rtmintrin.h: Ditto.
26326 * config/i386/fmaintrin.h: Ditto.
26327 * config/i386/mm3dnow.h: Ditto.
26328
26329 2013-06-22 Sriraman Tallam <tmsriram@google.com>
26330
26331 * common/config/i386/i386-common.c: Handle LZCNT.
26332
26333 2013-06-22 Andi Kleen <ak@linux.intel.com>
26334
26335 * doc/extend.texi: Use __atomic_store_n instead of
26336 __atomic_store in HLE example.
26337
26338 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
26339
26340 * config/sh/sh.c: Remove <cstdlib> workaround.
26341
26342 2013-06-21 Andi Kleen <ak@linux.intel.com>
26343
26344 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
26345
26346 2013-06-21 Andi Kleen <ak@linux.intel.com>
26347
26348 * doc/extend.texi: Document that __atomic_clear and
26349 __atomic_test_and_set should only be used with bool.
26350
26351 2013-06-20 Jan Hubicka <jh@suse.cz>
26352
26353 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26354 types_same_for_odr.
26355 * tree.c (decls_same_for_odr): New function.
26356 (same_for_edr): New function.
26357 (types_same_for_odr): New function.
26358 (get_binfo_at_offset): Use it.
26359 * tree.h (types_same_for_odr): Declare.
26360
26361 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
26362 Jason Merrill <jason@redhat.com>
26363
26364 * system.h: Include <cstdlib> as well as <stdlib.h>.
26365
26366 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
26367
26368 PR target/57655
26369 * config/i386/i386.c (construct_container): Report error if
26370 long double is used with disabled x87 float returns.
26371
26372 2013-06-20 Jan Hubicka <jh@suse.cz>
26373
26374 * lto-cgraph.c (input_symtab): Do not set cgraph state.
26375
26376 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
26377
26378 PR rtl-optimization/57425
26379 PR rtl-optimization/57569
26380 * alias.c (write_dependence_p): Remove parameters mem_mode and
26381 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
26382 Changed all callers.
26383 (canon_anti_dependence): Get comments and semantics in sync.
26384 Add parameter mem_canonicalized. Changed all callers.
26385 * rtl.h (canon_anti_dependence): Update prototype.
26386
26387 2013-06-20 Richard Biener <rguenther@suse.de>
26388
26389 * data-streamer-in.c (streamer_read_uhwi): Optimize single
26390 byte case, inline streamer_read_uchar and defer section
26391 overrun check.
26392
26393 2013-06-20 Richard Biener <rguenther@suse.de>
26394
26395 PR tree-optimization/57584
26396 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26397 SSA names into the expanded expression that take part in
26398 abnormal coalescing.
26399
26400 2013-06-19 Sharad Singhai <singhai@google.com>
26401
26402 * gcov.c (print_usage): Handle new option.
26403 (process_args): Ditto.
26404 (get_gcov_intermediate_filename): New function.
26405 (output_intermediate_file): New function.
26406 (output_gcov_file): New function
26407 (generate_results): Handle new option.
26408 (release_function): Relase demangled name.
26409 (read_graph_file): Handle demangled name.
26410 (output_lines): Ditto.
26411 * doc/gcov.texi: Document gcov intermediate format.
26412
26413 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
26414
26415 PR bootstrap/57604
26416 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26417 (lra_emit_add): Use the functions. Add comment about Y as an
26418 address segment.
26419
26420 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
26421
26422 PR driver/57652
26423 * collect2.c (collect_atexit): New.
26424 (collect_exit): Delete.
26425 (main): Register collect_atexit with atexit.
26426 (collect_wait): Change collect_exit to exit.
26427 (do_wait): Same.
26428 * collect2.h (collect_exit): Delete.
26429 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26430
26431 2013-06-19 Wei Mi <wmi@google.com>
26432
26433 PR rtl-optimization/57518
26434 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26435 if regno is used in paradoxical subreg.
26436 (update_equiv_regs): Check pdx_subregs[regno] before
26437 set a reg to be equivalent with a mem.
26438
26439 2013-06-19 Matthias Klose <doko@ubuntu.com>
26440
26441 PR driver/57651
26442 * file-find.h (find_a_file): Add a mode parameter.
26443 * file-find.c (find_a_file): Likewise.
26444 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26445 with X_OK for the executables.
26446 * collect2.c (main): Call find_a_file with X_OK.
26447
26448 2013-06-19 Steve Ellcey <sellcey@mips.com>
26449
26450 PR target/56942
26451 * config/mips/mips.md (casesi_internal_mips16_<mode>):
26452 Use NEXT_INSN instead of next_real_insn.
26453
26454 2013-06-19 Jan Hubicka <jh@suse.cz>
26455
26456 * cgraph.h (const_value_known_p): Replace by ...
26457 (ctor_for_folding): .. this one.
26458 * cgraphunit.c (process_function_and_variable_attributes): Use it.
26459 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26460 * expr.c (expand_expr_real_1): Likewise.
26461 (string_constant): Likewise.
26462 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26463 * ipa.c (process_references): Likewise.
26464 (symtab_remove_unreachable_nodes): Likewise.
26465 * ipa-inline-analysis.c (param_change_prob): Likewise.
26466 * gimple-fold.c (canonicalize_constructor_val): Likewise.
26467 (get_base_constructor): Likwise.
26468 * varpool.c (varpool_remove_node): Likewise.
26469 (varpool_remove_initializer): LIkewise.
26470 (dump_varpool_node): LIkwise.
26471 (const_value_known_p): Rewrite to ...
26472 (ctor_for_folding): ... this one.
26473
26474 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26475
26476 PR driver/57651
26477 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26478 PERSONALITY in $PATH derived prefixes.
26479
26480 2013-06-19 Jeff Law <law@redhat.com>
26481
26482 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26483 in comment.
26484
26485 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26486 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26487 booleans.
26488
26489 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26490
26491 * config/arm/vfp.md: Move VFP instruction classification documentation
26492 to ...
26493 * config/arm/arm.md: ... here. Update instruction classification
26494 documentation.
26495
26496 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26497
26498 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26499 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26500 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26501
26502 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26503
26504 PR target/57609
26505 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26506 with NEXT_INSN. Use tablejump_p to check for jump table data
26507 insns.
26508
26509 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26510
26511 PR c++/56544
26512 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26513 that now in C++ the value is correct per the C++ standards.
26514
26515 2013-06-19 Richard Biener <rguenther@suse.de>
26516
26517 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26518 for global context.
26519
26520 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26521
26522 Revert:
26523 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26524
26525 PR target/57609
26526 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26527 with next_active_insn.
26528
26529 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26530
26531 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26532 functions are inlined during failures to flag an error.
26533 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26534 in early inline pass.
26535
26536 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26537
26538 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26539 in comments.
26540
26541 2013-06-18 Julian Brown <julian@codesourcery.com>
26542
26543 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26544 Permit virtual register pre-reload if !strict.
26545 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26546 change.
26547 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26548 prototype.
26549 * config/arm/neon.md (movmisalign<mode>): Use
26550 neon_perm_struct_or_reg_operand instead of
26551 neon_struct_or_register_operand.
26552 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26553 neon_permissive_struct_operand instead of neon_struct_operand.
26554 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26555 neon_vector_mem_operand.
26556 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26557 neon_vector_mem_operand.
26558 (neon_permissive_struct_operand): New.
26559 (neon_struct_or_register_operand): Rename to...
26560 (neon_perm_struct_or_reg_operand): This. Adjust call to
26561 neon_vector_mem_operand.
26562
26563 2013-06-18 Richard Biener <rguenther@suse.de>
26564
26565 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26566 * lto-streamer.h: Include pointer-set.h.
26567 (struct lto_decl_slot): Remove.
26568 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26569 Remove next_index entry.
26570 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26571 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26572 (lto_init_tree_ref_encoder): Adjust.
26573 (lto_destroy_tree_ref_encoder): Likewise.
26574 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26575 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26576 (lto_output_decl_index): Adjust.
26577 (lto_new_out_decl_state): Likewise.
26578 (lto_record_function_out_decl_state): Likewise.
26579 * lto-streamer-out.c (copy_function): Likewise.
26580
26581 2013-06-18 Richard Biener <rguenther@suse.de>
26582
26583 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26584 * cgraphunit.c: Include cfgloop.h.
26585 (init_lowered_empty_function): Initialize the loop tree.
26586 (assemble_thunk): Insert new BBs into loops.
26587
26588 2013-06-18 Richard Biener <rguenther@suse.de>
26589
26590 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26591 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26592 the map from cache entry to cache index optional.
26593 (streamer_tree_cache_replace_tree): Adjust accordingly.
26594 (streamer_tree_cache_append): Likewise.
26595 (streamer_tree_cache_delete): Likewise.
26596 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26597 streamer cache map from cache entry to cache index.
26598 * lto-streamer-out.c (create_output_block): Adjust.
26599
26600 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26601
26602 * config/arm/arm.md (attribute "insn"): Move multiplication and
26603 division attributes to...
26604 (attribute "type"): ... here. Remove mult.
26605 (attribute "mul32"): New attribute.
26606 (attribute "mul64"): Add umaal.
26607 (*arm_mulsi3): Update attributes.
26608 (*arm_mulsi3_v6): Likewise.
26609 (*thumb_mulsi3): Likewise.
26610 (*thumb_mulsi3_v6): Likewise.
26611 (*mulsi3_compare0): Likewise.
26612 (*mulsi3_compare0_v6): Likewise.
26613 (*mulsi_compare0_scratch): Likewise.
26614 (*mulsi_compare0_scratch_v6): Likewise.
26615 (*mulsi3addsi): Likewise.
26616 (*mulsi3addsi_v6): Likewise.
26617 (*mulsi3addsi_compare0): Likewise.
26618 (*mulsi3addsi_compare0_v6): Likewise.
26619 (*mulsi3addsi_compare0_scratch): Likewise.
26620 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26621 (*mulsi3subsi): Likewise.
26622 (*mulsidi3adddi): Likewise.
26623 (*mulsi3addsi_v6): Likewise.
26624 (*mulsidi3adddi_v6): Likewise.
26625 (*mulsidi3_nov6): Likewise.
26626 (*mulsidi3_v6): Likewise.
26627 (*umulsidi3_nov6): Likewise.
26628 (*umulsidi3_v6): Likewise.
26629 (*umulsidi3adddi): Likewise.
26630 (*umulsidi3adddi_v6): Likewise.
26631 (*smulsi3_highpart_nov6): Likewise.
26632 (*smulsi3_highpart_v6): Likewise.
26633 (*umulsi3_highpart_nov6): Likewise.
26634 (*umulsi3_highpart_v6): Likewise.
26635 (mulhisi3): Likewise.
26636 (*mulhisi3tb): Likewise.
26637 (*mulhisi3bt): Likewise.
26638 (*mulhisi3tt): Likewise.
26639 (maddhisi4): Likewise.
26640 (*maddhisi4tb): Likewise.
26641 (*maddhisi4tt): Likewise.
26642 (maddhidi4): Likewise.
26643 (*maddhidi4tb): Likewise.
26644 (*maddhidi4tt): Likewise.
26645 (divsi3): Likewise.
26646 (udivsi3): Likewise.
26647 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26648 (thumb2_mulsi_short_compare0): Likewise.
26649 (thumb2_mulsi_short_compare0_scratch): Likewise.
26650 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26651 (1020mult2): Likewise.
26652 (1020mult3): Likewise.
26653 (1020mult4): Likewise.
26654 (1020mult5): Likewise.
26655 (1020mult6): Likewise.
26656 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26657 change.
26658 (cortex_a15_mult64): Likewise.
26659 (cortex_a15_sdiv): Likewise.
26660 (cortex_a15_udiv): Likewise.
26661 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26662 (mult2): Likewise.
26663 (mult3): Likewise.
26664 (mult4): Likewise.
26665 (mult5): Likewise.
26666 (mult6): Likewise.
26667 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26668 (pj4_ir_div): Likewise.
26669 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26670 (11_mult2): Likewise.
26671 (11_mult3): Likewise.
26672 (11_mult4): Likewise.
26673 (11_mult5): Likewise.
26674 (11_mult6): Likewise.
26675 (11_mult7): Likewise.
26676 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26677 (cortex_a8_mla): Likewise.
26678 (cortex_a8_mull): Likewise.
26679 (cortex_a8_smulwy): Likewise.
26680 (cortex_a8_smlald): Likewise.
26681 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26682 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26683 (cortex_r4_mul_3): Likewise.
26684 (cortex_r4_mla_4): Likewise.
26685 (cortex_r4_mla_3): Likewise.
26686 (cortex_r4_smlald): Likewise.
26687 (cortex_r4_mull): Likewise.
26688 (cortex_r4_sdiv): Likewise.
26689 (cortex_r4_udiv): Likewise.
26690 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26691 (cortex_a7_idiv): Likewise.
26692 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26693 (9_mult2): Likewise.
26694 (9_mult3): Likewise.
26695 (9_mult4): Likewise.
26696 (9_mult5): Likewise.
26697 (9_mult6): Likewise.
26698 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26699 (cortex_a53_sdiv): Likewise.
26700 (cortex_a53_udiv): Likewise.
26701 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26702 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26703 (mp626_mult2): Likewise.
26704 (mp626_mult3): Likewise.
26705 (mp626_mult4): Likewise.
26706 * config/arm/fa526.md (526_mult1): Update attribute change.
26707 (526_mult2): Likewise.
26708 * config/arm/arm-generic.md (mult): Update attribute change.
26709 (mult_ldsched_strongarm): Likewise.
26710 (mult_ldsched): Likewise.
26711 (multi_cycle): Likewise.
26712 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26713 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26714 (606te_mult2): Likewise.
26715 (606te_mult3): Likewise.
26716 (606te_mult4): Likewise.
26717 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26718 (cortex_a9_mac16): Likewise.
26719 (cortex_a9_multiply): Likewise.
26720 (cortex_a9_mac): Likewise.
26721 (cortex_a9_multiply_long): Likewise.
26722 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26723 (626te_mult2): Likewise.
26724 (626te_mult3): Likewise.
26725 (626te_mult4): Likewise.
26726
26727 2013-06-18 Richard Biener <rguenther@suse.de>
26728
26729 PR lto/57334
26730 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26731
26732 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26733
26734 PR target/57609
26735 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26736 with next_active_insn.
26737
26738 2013-06-18 Alan Modra <amodra@gmail.com>
26739
26740 * config/rs6000/rs6000.h (enum data_align): New.
26741 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26742 (DATA_ABI_ALIGNMENT): Define.
26743 (CONSTANT_ALIGNMENT): Correct comment.
26744 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26745 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26746
26747 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26748
26749 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26750 ATTRIBUTE_UNUSED marking.
26751
26752 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26753
26754 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26755 alternative and update.
26756 (aarch64_dup_lanedi): Delete.
26757 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26758 * config/aarch64/aarch64-simd-builtins.def: Update.
26759
26760 2013-06-17 Richard Biener <rguenther@suse.de>
26761
26762 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26763 (lto_input_scc): Declare.
26764 (lto_input_tree_1): Likewise.
26765 (struct lto_stats_d): Add num_tree_bodies_output and
26766 num_pickle_refs_output.
26767 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26768 (lto_read_tree_1): Split out from ...
26769 (lto_read_tree): ... this.
26770 (lto_input_scc): New function.
26771 (lto_input_tree_1): Split out from ...
26772 (lto_input_tree): ... this. Handle LTO_tree_scc.
26773 (lto_data_in_create): Create the streamer cache without hashes.
26774 * lto-streamer-out.c (create_output_block): Create the streamer
26775 cache with hashes when not doing WPA.
26776 (lto_write_tree_1): Split out from ...
26777 (lto_write_tree): ... this.
26778 (get_symbol_initial_value): New function.
26779 (lto_output_tree_1): Split out from ...
26780 (lto_output_tree): ... this. Write trees as series of SCCs
26781 using a DFS walk via DFS_write_tree.
26782 (struct sccs, struct scc_entry): New types.
26783 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26784 (DFS_write_tree_body): New function.
26785 (DFS_write_tree): Likewise.
26786 (hash_tree): Likewise.
26787 (scc_entry_compare): Likewise.
26788 (hash_scc): Likewise.
26789 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26790 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26791 TREE_CHAIN as regular reference.
26792 (streamer_read_integer_cst): Remove.
26793 (streamer_get_pickled_tree): Adjust.
26794 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26795 of DECL_EXTERNALs in BLOCK_VARS for now.
26796 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26797 reference.
26798 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26799 Add hash value argument and record that if hashes are recorded
26800 in the cache.
26801 (streamer_tree_cache_insert_1): Adjust.
26802 (streamer_tree_cache_insert): Likewise.
26803 (streamer_tree_cache_insert_at): Rename to ...
26804 (streamer_tree_cache_replace_tree): ... this and adjust.
26805 (streamer_tree_cache_append): Adjust.
26806 (record_common_node): Likewise.
26807 (streamer_tree_cache_create): Add argument whether to
26808 record hash values together with trees.
26809 (streamer_tree_cache_delete): Adjust.
26810 * tree-streamer.h (struct streamer_tree_cache_d): Add
26811 vector of hashes.
26812 (streamer_read_integer_cst): Remove.
26813 (streamer_tree_cache_insert): Adjust.
26814 (streamer_tree_cache_append): Likewise.
26815 (streamer_tree_cache_insert_at): Rename to ...
26816 (streamer_tree_cache_replace_tree): ... this and adjust.
26817 (streamer_tree_cache_create): Add argument whether to record hashes.
26818 (streamer_tree_cache_get): Rename to ...
26819 (streamer_tree_cache_get_tree): ... this.
26820 (streamer_tree_cache_get_hash): New function.
26821 * tree.c (cache_integer_cst): New function.
26822 * tree.h (cache_integer_cst): Declare.
26823 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26824 * lto-symtab.c (lto_varpool_replace_node): Only release
26825 DECL_INITIAL of non-prevailing decls.
26826 * varpool.c (varpool_remove_initializer): Do not release
26827 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26828
26829 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26830
26831 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26832 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26833 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26834 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26835 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26836 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26837 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26838 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26839 instead of TARGET_64BIT.
26840 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26841 Require ISA_HAS_<D>DIV.
26842
26843 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26844
26845 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26846 (mips*-*-linux*): Move default with_llsc setting to where other
26847 defaults are set.
26848 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26849 with_arch block.
26850 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26851 Likewise. Remove default with_tune setting. Move default float
26852 setting to its own block. Handle with_llsc in the same block as above.
26853
26854 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26855
26856 PR rtl-optimization/57425
26857 PR rtl-optimization/57569
26858 * alias.c (write_dependence_p): Add new parameters mem_mode,
26859 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26860 Changed all callers.
26861 (canon_anti_dependence): New function.
26862 * cse.c (check_dependence): Use canon_anti_dependence.
26863 * cselib.c (cselib_invalidate_mem): Likewise.
26864 * rtl.h (canon_anti_dependence): Declare.
26865
26866 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26867
26868 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26869 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26870 ".set mips3" for 64-bit targets.
26871
26872 2013-06-15 Dehao Chen <dehao@google.com>
26873
26874 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26875 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26876 (gimple_check_call_args): Likewise.
26877 * value-prof.c (check_ic_target): Likewise.
26878 * ipa-inline.c (early_inliner): Likewise.
26879 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26880 * cgraph.c (cgraph_create_edge_1): Likewise.
26881 (cgraph_make_edge_direct): Likewise.
26882
26883 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26884
26885 PR target/57615
26886 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26887 rs6000_output_move_128bit to handle emitting quad memory
26888 operations. Set attribute length to 8 bytes.
26889
26890 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26891
26892 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26893 New pattern.
26894 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26895 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26896 (aarch64_<su>mlsl<mode>): Likewise.
26897
26898 2013-06-14 Mike Stump <mikestump@comcast.net>
26899
26900 * Makefile.in (TARGET_H): Add insn-codes.h.
26901
26902 2013-06-14 Alan Modra <amodra@gmail.com>
26903
26904 PR middle-end/57134
26905 PR middle-end/57586
26906 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26907 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26908 bitfield expansion when EXPAND_MEMORY.
26909 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26910
26911 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26912
26913 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26914 test for clearing quad memory on 32-bit later.
26915
26916 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26917
26918 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26919 (fold_negate_expr): Likewise.
26920 (fold_real_zero_addition_p): Handle vectors.
26921 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26922
26923 2013-06-14 Alan Modra <amodra@gmail.com>
26924
26925 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26926
26927 2013-06-13 Jan Hubicka <jh@suse.cz>
26928
26929 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26930 Local comdats are not externally visible.
26931 * symtab.c (dump_symtab_base): Dump externally visible.
26932 (verify_symtab_base): Verify back links in the symtab hash.
26933
26934 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26935
26936 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26937 CONVERT_EXPR as equal nodes.
26938
26939 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26940
26941 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26942
26943 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26944
26945 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26946 Generalize to complex and vector.
26947 * tree.c (build_all_ones_cst): New function.
26948 * tree.h (build_all_ones_cst): Declare it.
26949
26950 2013-06-13 Alan Modra <amodra@gmail.com>
26951
26952 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26953 * config/rs6000/rs6000.md (signbittf2): New insn.
26954 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26955 (abstf2_internal, cmptf_internal2): Likewise.
26956 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26957
26958 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26959 Pat Haugen <pthaugen@us.ibm.com>
26960 Peter Bergner <bergner@vnet.ibm.com>
26961
26962 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26963 power8 byte, half-word, and quad-word atomic instructions.
26964 (emit_store_conditional): Likewise.
26965 (rs6000_expand_atomic_compare_and_swap): Likewise.
26966 (rs6000_expand_atomic_op): Likewise.
26967
26968 * config/rs6000/sync.md (larx): Add new modes for power8.
26969 (stcx): Likewise.
26970 (AINT): New mode iterator to include TImode as well as normal
26971 integer modes on power8.
26972 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26973 that VSX registers are not considered. Use AINT mode iterator
26974 instead of INT1 to allow inclusion of quad word atomic operations
26975 on power8.
26976 (load_locked<mode>): Likewise.
26977 (store_conditional<mode>): Likewise.
26978 (atomic_compare_and_swap<mode>): Likewise.
26979 (atomic_exchange<mode>): Likewise.
26980 (atomic_nand<mode>): Likewise.
26981 (atomic_fetch_<fetchop_name><mode>): Likewise.
26982 (atomic_nand_fetch<mode>): Likewise.
26983 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26984 each type.
26985 (ATOMIC): On power8, add QImode, HImode modes.
26986 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26987 modes that promote to SImode.
26988 (load_lockedti): Convert TImode arguments to PTImode, so that we
26989 get a guaranteed even/odd register pair.
26990 (load_lockedpti): Likewise.
26991 (store_conditionalti): Likewise.
26992 (store_conditionalpti): Likewise.
26993
26994 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26995 atomic load/store instructions.
26996 (HSI): Likewise.
26997
26998 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26999
27000 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
27001 loads.
27002 (insn_count): New attribute, with most cases extracted from...
27003 (length): ...here. Redefine most cases in terms of insn_count.
27004 (single_insn): Delete.
27005 (can_delay): Use insn_count to check for single instructions.
27006 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
27007 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
27008 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
27009 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
27010 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
27011 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
27012 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
27013 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
27014 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
27015 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
27016 rather than "length".
27017 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
27018 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
27019 Use "insn_count" rather than "length".
27020 * config/mips/mips-dsp.md
27021 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27022 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27023 length attributes.
27024
27025 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
27026
27027 PR tree-optimization/57361
27028 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27029
27030 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
27031
27032 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27033 to split.
27034 (aarch64_simd_combine<mode>): New instruction expansion.
27035 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27036 function prototype.
27037 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27038 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27039
27040 2013-06-12 Jan Hubicka <jh@suse.cz>
27041
27042 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27043 decl has when in streaming stage.
27044 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27045 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27046
27047 2013-06-12 Roland Stigge <stigge@antcom.de>
27048
27049 PR target/57578
27050 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27051
27052 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27053
27054 PR tree-optimization/57537
27055 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27056 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27057
27058 2013-06-12 Richard Biener <rguenther@suse.de>
27059
27060 * data-streamer.h (streamer_write_char_stream): CSE
27061 obs->current_pointer.
27062 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27063 streamer_write_char_stream manually and optimize the resulting loop.
27064 (streamer_write_hwi_stream): Likewise.
27065
27066 2013-06-12 Jan Hubicka <jh@suse.cz>
27067
27068 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27069 * cgraph.h (varpool_create_empty_node): Declare.
27070 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27071 duplicated nodes.
27072 * symtab.c (symtab_unregister_node): Be lax about missin entries
27073 in node hash.
27074 (symtab_get_node): Update comment.
27075 * varpool.c (varpool_create_empty_node): Break out from ...
27076 (varpool_node_for_decl): ... here.
27077 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27078
27079 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
27080
27081 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27082 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27083 part. Use straight-line flow at the end.
27084 <COMPONENT_REF>: Remove superfluous else.
27085 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27086
27087 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27088
27089 PR target/56564
27090 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27091 target hook even for !TREE_PUBLIC decls. If no resolution info
27092 is available, return false for common and external decls.
27093
27094 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27095
27096 * config/rl78/constraints.md (U): New constraint.
27097 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27098 valloc attribute.
27099
27100 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27101
27102 PR target/57589
27103 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27104 to allow returning address to AT_PLATFORM name.
27105
27106 2013-06-11 Jan Hubicka <jh@suse.cz>
27107
27108 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27109 * cgraph.h (symtab_node_base): Add weakref flag.
27110 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27111 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27112 (output_weakrefs): Use weakref flag.
27113 * fold-const.c (simple_operand_p): Handle WEAK.
27114 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27115 * ipa.c (varpool_externally_visible_p): Drop weakref.
27116 (function_and_variable_visibility): Update comment; fix weakref
27117 sanity checks; do not clear DECL_WEAK on them.
27118 * lto-cgraph.c (lto_output_node): update.
27119 (lto_output_varpool_node): Update.
27120 (input_overwrite_node): Update.
27121 (input_node): Update.
27122 (input_varpool_node): Update.
27123 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27124 (lto_symtab_merge_symbols): Add sanity check.
27125 (lto_symtab_prevailing_decl): Do not special case weakrefs.
27126 * passes.c (rest_of_decl_compilation): Set static flag, too.
27127 * symtab.c (dump_symtab_base): Dump weakref.
27128 (verify_symtab_base): Sanity check weakrefs.
27129 (symtab_make_decl_local): Remove duplicated code.
27130 (symtab_alias_ultimate_target): Simplify.
27131 * varpool.c (varpool_create_variable_alias): Set weakref flag.
27132
27133 2013-06-11 Tom de Vries <tom@codesourcery.com>
27134
27135 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
27136 sequence_vect == NULL.
27137
27138 2013-06-11 DJ Delorie <dj@redhat.com>
27139
27140 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27141 (rl78_unwind_word_mode): New.
27142
27143 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27144
27145 * final.c (debug_prefix_maps): Make static.
27146
27147 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27148
27149 * function.c (initial_trampoline): Remove stray copy.
27150
27151 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
27152
27153 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27154
27155 2013-06-11 Martin Jambor <mjambor@suse.cz>
27156
27157 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27158 within bounds at the beginning of the function.
27159
27160 2013-06-11 Alan Modra <amodra@gmail.com>
27161
27162 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
27163 reporting.
27164 (get_named_section): Don't NULL !DECL_P decl.
27165
27166 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
27167
27168 * doc/invoke.texi (core-avx2): Document.
27169 (slm): Likewise.
27170 (atom): Updated with MOVBE.
27171
27172 2013-06-11 Richard Biener <rguenther@suse.de>
27173
27174 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27175
27176 2013-06-11 Anton Blanchard <anton@samba.org>
27177
27178 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27179 correct shift value in little-endian mode.
27180
27181 2013-06-11 Jakub Jelinek <jakub@redhat.com>
27182
27183 PR target/56564
27184 * varasm.c (get_variable_align): Move #endif to the right place.
27185
27186 2013-06-10 Cary Coutant <ccoutant@google.com>
27187
27188 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27189 for hash so that hash table traversal order is deterministic.
27190
27191 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27192 Pat Haugen <pthaugen@us.ibm.com>
27193 Peter Bergner <bergner@vnet.ibm.com>
27194
27195 * config/rs6000/vector.md (GPR move splitter): Do not split moves
27196 of vectors in GPRS if they are direct moves or quad word load or
27197 store moves.
27198
27199 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27200 declaration.
27201 (direct_move_p): Likewise.
27202 (quad_load_store_p): Likewise.
27203
27204 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27205 classes into bins based on the physical register type.
27206 (reg_class_to_reg_type): Likewise.
27207 (IS_STD_REG_TYPE): Likewise.
27208 (IS_FP_VECT_REG_TYPE): Likewise.
27209 (reload_fpr_gpr): Arrays to determine what insn to use if we can
27210 use direct move instructions.
27211 (reload_gpr_vsx): Likewise.
27212 (reload_vsx_gpr): Likewise.
27213 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27214 information that is a simplification of register classes. Also
27215 precalculate direct move reload helpers.
27216 (direct_move_p): New function to return true if the operation can
27217 be done as a direct move instruciton.
27218 (quad_load_store_p): New function to return true if the operation
27219 is a quad memory operation.
27220 (rs6000_legitimize_address): If quad memory, only allow register
27221 indirect for TImode addresses.
27222 (rs6000_legitimate_address_p): Likewise.
27223 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27224 (rs6000_reload_register_type): Likewise.
27225 (register_to_reg_type): Return register type.
27226 (rs6000_secondary_reload_simple_move): New helper function for
27227 secondary reload and secondary memory needed to identify anything
27228 that is a simple move, and does not need reloading.
27229 (rs6000_secondary_reload_direct_move): New helper function for
27230 secondary reload to identify cases that can be done with several
27231 instructions via the direct move instructions.
27232 (rs6000_secondary_reload_move): New helper function for secondary
27233 reload to identify moves between register types that can be done.
27234 (rs6000_secondary_reload): Add support for quad memory operations
27235 and for direct move.
27236 (rs6000_secondary_memory_needed): Likewise.
27237 (rs6000_debug_secondary_memory_needed): Change argument names.
27238 (rs6000_output_move_128bit): New function to return the move to
27239 use for 128-bit moves, including knowing about the various
27240 limitations of quad memory operations.
27241
27242 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27243 memory operations. call rs6000_output_move_128bit for the actual
27244 instruciton(s) to generate.
27245 (vsx_movti_64bit): Likewise.
27246
27247 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27248 (UNSPEC_P8V_MTVSRWZ): Likewise.
27249 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27250 (UNSPEC_P8V_MTVSRD): Likewise.
27251 (UNSPEC_P8V_XXPERMDI): Likewise.
27252 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27253 (UNSPEC_FUSION_GPR): Likewise.
27254 (FMOVE128_GPR): New iterator for direct move.
27255 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27256 (f32_sv): Likewise.
27257 (f32_dm): Likewise.
27258 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27259 loads and direct move instructions.
27260 (zero_extendsidi2_lfiwzx): Likewise.
27261 (extendsidi2_lfiwax): Likewise.
27262 (extendsidi2_nocell): Likewise.
27263 (floatsi<mode>2_lfiwax): Likewise.
27264 (lfiwax): Likewise.
27265 (floatunssi<mode>2_lfiwzx): Likewise.
27266 (lfiwzx): Likewise.
27267 (fix_trunc<mode>_stfiwx): Likewise.
27268 (fixuns_trunc<mode>_stfiwx): Likewise.
27269 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27270 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27271 (parity<mode>2_cmpb): Set length/type attr.
27272 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27273 for 'mr.' to fast_compare.
27274 (bpermd_<mode>): Change type attr to popcnt.
27275 (p8_fmrgow_<mode>): New insns for power8 direct move support.
27276 (p8_mtvsrwz_1): Likewise.
27277 (p8_mtvsrwz_2): Likewise.
27278 (reload_fpr_from_gpr<mode>): Likewise.
27279 (p8_mtvsrd_1): Likewise.
27280 (p8_mtvsrd_2): Likewise.
27281 (p8_xxpermdi_<mode>): Likewise.
27282 (reload_vsx_from_gpr<mode>): Likewise.
27283 (reload_vsx_from_gprsf): Likewise.
27284 (p8_mfvsrd_3_<mode>): LIkewise.
27285 (reload_gpr_from_vsx<mode>): Likewise.
27286 (reload_gpr_from_vsxsf): Likewise.
27287 (p8_mfvsrd_4_disf): Likewise.
27288 (multi-word GPR splits): Do not split direct moves or quad memory
27289 operations.
27290
27291 2013-06-10 David Malcolm <dmalcolm@redhat.com>
27292
27293 * tree-into-ssa.c (interesting_blocks): Make static.
27294
27295 2013-06-10 Jakub Jelinek <jakub@redhat.com>
27296
27297 PR target/56564
27298 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27299 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27300 Use DATA_ABI_ALIGNMENT for that case instead if defined.
27301 (get_variable_align): New function.
27302 (get_variable_section, emit_bss, emit_common,
27303 assemble_variable_contents, place_block_symbol): Use
27304 get_variable_align instead of DECL_ALIGN.
27305 (assemble_noswitch_variable): Add align argument, use it
27306 instead of DECL_ALIGN.
27307 (assemble_variable): Adjust caller. Use get_variable_align
27308 instead of DECL_ALIGN.
27309 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27310 caller.
27311 (DATA_ABI_ALIGNMENT): Define.
27312 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27313 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
27314 opt is false, only return the psABI mandated alignment increase.
27315 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27316 (DATA_ABI_ALIGNMENT): ... this.
27317 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27318 (DATA_ABI_ALIGNMENT): ... this.
27319 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27320 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27321 (DATA_ABI_ALIGNMENT): ... this.
27322 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27323 * doc/tm.texi: Regenerated.
27324
27325 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
27326
27327 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27328 cmp_code to construct REG_EQUAL note.
27329
27330 2013-06-09 Jakub Jelinek <jakub@redhat.com>
27331
27332 PR target/57568
27333 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27334 that operands[2] doesn't overlap with operands[0].
27335
27336 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
27337 Jan Hubicka <jh@suse.cz>
27338
27339 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27340 hack to mark symbols as used.
27341
27342 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
27343
27344 PR rtl-optimization/57559
27345 * lra-constraints.c (process_alt_operands): Don't discourage
27346 memory with known offset for offsetable memory constraint.
27347 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27348
27349 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
27350
27351 * varasm.c (struct oc_local_state): Reorder fields.
27352 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27353 and adjust accordingly.
27354 (output_constructor): Reorder initialization code and adjust call to
27355 output_constructor_bitfield.
27356
27357 2013-06-07 Jan Hubicka <jh@suse.cz>
27358
27359 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27360
27361 2013-06-07 David Malcolm <dmalcolm@redhat.com>
27362
27363 * tree-object-size.c (unknown): Make const.
27364
27365 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27366
27367 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27368 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27369 for last alternative in the cpu_facility attribute.
27370
27371 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27372
27373 PR target/56315
27374 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27375 (xordi3): Change operand 2 constraint to arm_xordi_operand.
27376 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27377 * config/arm/constraints.md (Dg): New constraint.
27378 * config/arm/neon.md (xordi3_neon): Remove.
27379 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27380 * config/arm/predicates.md (arm_xordi_operand): New predicate.
27381
27382 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27383
27384 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27385 Clean up alternatives.
27386
27387 2013-06-07 Alan Modra <amodra@gmail.com>
27388
27389 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27390 va_list_gpr_size.
27391
27392 2013-06-07 Alan Modra <amodra@gmail.com>
27393
27394 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27395
27396 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27397
27398 * config/arm/constraints.md (Df): New constraint.
27399 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27400 Correct length attribute for last two alternatives.
27401
27402 2013-06-07 Alan Modra <amodra@gmail.com>
27403
27404 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27405 override user -mfp-in-toc.
27406 (offsettable_ok_by_alignment): Consider just the current access
27407 rather than the whole object, unless BLKmode. Handle
27408 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27409 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27410 for -mcmodel=medium.
27411 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27412 override user -mfp-in-toc or -msum-in-toc. Default to
27413 -mno-fp-in-toc for -mcmodel=medium.
27414
27415 2013-06-06 DJ Delorie <dj@redhat.com>
27416
27417 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27418 TARGET_VALID_POINTER_MODE.
27419
27420 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27421 Pat Haugen <pthaugen@us.ibm.com>
27422 Peter Bergner <bergner@vnet.ibm.com>
27423
27424 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27425 Document new power8 builtins.
27426
27427 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27428 condition code register, to allow 128-bit logical operations to be
27429 done in the VSX or GPR registers.
27430 (nor<mode>3): Use the canonical form for nor.
27431 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27432 vclz*, and vpopcnt* vector instructions.
27433 (nand<mode>3): Likewise.
27434 (orc<mode>3): Likewise.
27435 (clz<mode>2): LIkewise.
27436 (popcount<mode>2): Likewise.
27437
27438 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27439 that only the GPRs are recognized.
27440
27441 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27442 support for new power8 builtins.
27443
27444 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27445 builtin functions.
27446 (xscvdpspn): Likewise.
27447 (vclz): Likewise.
27448 (vclzb): Likewise.
27449 (vclzh): Likewise.
27450 (vclzw): Likewise.
27451 (vclzd): Likewise.
27452 (vpopcnt): Likewise.
27453 (vpopcntb): Likewise.
27454 (vpopcnth): Likewise.
27455 (vpopcntw): Likewise.
27456 (vpopcntd): Likewise.
27457 (vgbbd): Likewise.
27458 (vmrgew): Likewise.
27459 (vmrgow): Likewise.
27460 (eqv): Likewise.
27461 (eqv_v16qi3): Likewise.
27462 (eqv_v8hi3): Likewise.
27463 (eqv_v4si3): Likewise.
27464 (eqv_v2di3): Likewise.
27465 (eqv_v4sf3): Likewise.
27466 (eqv_v2df3): Likewise.
27467 (nand): Likewise.
27468 (nand_v16qi3): Likewise.
27469 (nand_v8hi3): Likewise.
27470 (nand_v4si3): Likewise.
27471 (nand_v2di3): Likewise.
27472 (nand_v4sf3): Likewise.
27473 (nand_v2df3): Likewise.
27474 (orc): Likewise.
27475 (orc_v16qi3): Likewise.
27476 (orc_v8hi3): Likewise.
27477 (orc_v4si3): Likewise.
27478 (orc_v2di3): Likewise.
27479 (orc_v4sf3): Likewise.
27480 (orc_v2df3): Likewise.
27481
27482 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27483 allow power8 quad mode in 64-bit.
27484 (rs6000_builtin_vectorized_function): Add support to vectorize
27485 ISA 2.07 count leading zeros, population count builtins.
27486 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27487 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27488 (builtin_function_type): Add vgbbd builtin function which takes an
27489 unsigned argument.
27490 (altivec_expand_vec_perm_const): Add support for new power8 merge
27491 instructions.
27492
27493 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27494 that does not include TImdoe for use with 32-bit.
27495 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27496 instructions.
27497 (UNSPEC_VSX_CVDPSPN): Likewise.
27498 (vsx_xscvdpspn): Likewise.
27499 (vsx_xscvspdpn): Likewise.
27500 (vsx_xscvdpspn_scalar): Likewise.
27501 (vsx_xscvspdpn_directmove): Likewise.
27502 (vsx_and<mode>3): Split logical operations into 32-bit and
27503 64-bit. Add support to do logical operations on TImode as well as
27504 VSX vector types. Allow logical operations to be done in either
27505 VSX registers or in general purpose registers in 64-bit mode. Add
27506 splitters if GPRs were used. For AND, add clobber of CCmode to
27507 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27508 encoding.
27509 (vsx_and<mode>3_32bit): Likewise.
27510 (vsx_and<mode>3_64bit): Likewise.
27511 (vsx_ior<mode>3): Likewise.
27512 (vsx_ior<mode>3_32bit): Likewise.
27513 (vsx_ior<mode>3_64bit): Likewise.
27514 (vsx_xor<mode>3): Likewise.
27515 (vsx_xor<mode>3_32bit): Likewise.
27516 (vsx_xor<mode>3_64bit): Likewise.
27517 (vsx_one_cmpl<mode>2): Likewise.
27518 (vsx_one_cmpl<mode>2_32bit): Likewise.
27519 (vsx_one_cmpl<mode>2_64bit): Likewise.
27520 (vsx_nor<mode>3): Likewise.
27521 (vsx_nor<mode>3_32bit): Likewise.
27522 (vsx_nor<mode>3_64bit): Likewise.
27523 (vsx_andc<mode>3): Likewise.
27524 (vsx_andc<mode>3_32bit): Likewise.
27525 (vsx_andc<mode>3_64bit): Likewise.
27526 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27527 and xxlorc instructions.
27528 (vsx_eqv<mode>3_64bit): Likewise.
27529 (vsx_nand<mode>3_32bit): Likewise.
27530 (vsx_nand<mode>3_64bit): Likewise.
27531 (vsx_orc<mode>3_32bit): Likewise.
27532 (vsx_orc<mode>3_64bit): Likewise.
27533
27534 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27535
27536 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27537 instruction.
27538 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27539 (p8_vmrgow): Likewise.
27540 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27541 GPRs to be split under VSX.
27542 (p8v_clz<mode>2): Add power8 count leading zero support.
27543 (p8v_popcount<mode>2): Add power8 population count support.
27544 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27545 support.
27546
27547 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27548 instruction.
27549
27550 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27551 builtin functions.
27552 (vec_nand): Likewise.
27553 (vec_vclz): Likewise.
27554 (vec_vclzb): Likewise.
27555 (vec_vclzd): Likewise.
27556 (vec_vclzh): Likewise.
27557 (vec_vclzw): Likewise.
27558 (vec_vgbbd): Likewise.
27559 (vec_vmrgew): Likewise.
27560 (vec_vmrgow): Likewise.
27561 (vec_vpopcnt): Likewise.
27562 (vec_vpopcntb): Likewise.
27563 (vec_vpopcntd): Likewise.
27564 (vec_vpopcnth): Likewise.
27565 (vec_vpopcntw): Likewise.
27566
27567 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27568
27569 PR rtl-optimization/57468
27570 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27571 spilled pseudos.
27572
27573 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27574
27575 PR rtl-optimization/57459
27576 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27577 type when setting live regs.
27578
27579 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27580
27581 * config/s390/s390.opt (mlra): New option.
27582 * config/s390/s390.c (s390_decompose_address): Check displacement
27583 for all registers for LRA.
27584 (s390_secondary_reload): Don't used secondary reloads for LRA.
27585 (s390_lra_p): New function.
27586 (TARGET_LRA_P): Define.
27587 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27588 of attribute cpu_facility to zarch for the last alternative.
27589 (*cmpmem_short): Ditto.
27590
27591 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27592
27593 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27594 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27595 (arm_expand_prologue): Likewise.
27596
27597 2013-06-06 Teresa Johnson <tejohnson@google.com>
27598
27599 PR c++/53743
27600 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27601 as this is now done by redirect_edge_and_branch_force.
27602 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27603 barriers, and fix interaction with splitting.
27604 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27605 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27606 reflect changes made in the routine.
27607 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27608 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27609 since this is called in cfglayout mode, and replace partition fixup
27610 with assert as that is now done by force_nonfallthru_and_redirect.
27611 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27612 already be marked with region crossing note.
27613 (insert_section_boundary_note): Make non-static, gate on flag
27614 has_bb_partition, rewrite to also check for multiple partitions.
27615 (rest_of_handle_reorder_blocks): Remove call to
27616 insert_section_boundary_note, now done later during free_cfg.
27617 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27618 * bb-reorder.h (insert_section_boundary_note): Declare.
27619 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27620 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27621 invoke insert_section_boundary_note.
27622 (try_redirect_by_replacing_jump): Remove unnecessary
27623 check for region crossing note.
27624 (fixup_partition_crossing): New function.
27625 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27626 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27627 in non-cfglayout mode.
27628 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27629 remove old code that tried to do this. Emit barrier correctly
27630 when we are in cfglayout mode.
27631 (last_bb_in_partition): New function.
27632 (rtl_split_edge): Correctly fixup partition boundaries.
27633 (commit_one_edge_insertion): Remove old code that tried to
27634 fixup region crossing edge since this is now handled in
27635 split_block, and set up insertion point correctly since
27636 block may now end in a jump.
27637 (verify_hot_cold_block_grouping): Guard against checking when not in
27638 linearized RTL mode.
27639 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27640 notes.
27641 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27642 rtl_verify_flow_info, so not called in cfglayout mode.
27643 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27644 (fixup_reorder_chain): Remove old code that attempted to fixup region
27645 crossing note as this is now handled in force_nonfallthru_and_redirect.
27646 (duplicate_insn_chain): Don't duplicate switch section notes.
27647 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27648 note.
27649 * basic-block.h (emit_barrier_after_bb): Declare.
27650
27651 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27652
27653 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27654 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27655 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27656
27657 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27658
27659 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27660 where appropriate.
27661 * config/arm/ldmstm.md: Regenerate.
27662
27663 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27664
27665 * config/arm/sync.md (atomic_loaddi_1):
27666 Disable predication for arm_restrict_it.
27667 (arm_load_exclusive<mode>): Likewise.
27668 (arm_load_exclusivesi): Likewise.
27669 (arm_load_exclusivedi): Likewise.
27670 (arm_load_acquire_exclusive<mode>): Likewise.
27671 (arm_load_acquire_exclusivesi): Likewise.
27672 (arm_load_acquire_exclusivedi): Likewise.
27673 (arm_store_exclusive<mode>): Likewise.
27674 (arm_store_exclusive<mode>): Likewise.
27675 (arm_store_release_exclusivedi): Likewise.
27676 (arm_store_release_exclusive<mode>): Likewise.
27677
27678 2013-06-06 Richard Biener <rguenther@suse.de>
27679
27680 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27681 after LTO_null.
27682 (lto_tag_is_tree_code_p): Adjust.
27683 (lto_tag_is_gimple_code_p): Likewise.
27684 (lto_gimple_code_to_tag): Likewise.
27685 (lto_tag_to_gimple_code): Likewise.
27686 (lto_tree_code_to_tag): Likewise.
27687 (lto_tag_to_tree_code): Likewise.
27688 * data-streamer.h (streamer_write_hwi_in_range): Use
27689 uhwi streaming to stream the normalized range.
27690 (streamer_read_hwi_in_range): Likewise.
27691
27692 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27693
27694 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27695 (predicable_short_it): Likewise.
27696 (predicated): Likewise.
27697 (enabled): Handle above.
27698 (define_cond_exec): Set predicated attribute to yes.
27699
27700 2013-06-05 Mike Stump <mikestump@comcast.net>
27701
27702 * gdbinit.in (__FUNCTION__): Add.
27703
27704 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27705
27706 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27707 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27708
27709 2013-06-05 Jan Hubicka <jh@suse.cz>
27710
27711 * varasm.c (mark_decl_referenced): Revert the removal until targets
27712 are fixed.
27713
27714 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27715
27716 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27717 instead of mark_decl_referenced.
27718
27719 2013-06-05 Jan Hubicka <jh@suse.cz>
27720
27721 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27722 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27723 and symtab_used_from_object_file_p.
27724 (cgraph_make_node_local_1): Clear forced_by_abi.
27725 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27726 * cgraph.h (symtab_node_base): Add forced_by_abi.
27727 (decide_is_variable_needed): Remove.
27728 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27729 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27730 (decide_is_symbol_needed): ... this one; handle symbols in general;
27731 always analyze virtuals; honnor forced_by_abi.
27732 (cgraph_finalize_function): Update.
27733 (varpool_finalize_decl): Update.
27734 (symbol_defined_and_needed): Remove.
27735 (analyze_functions): Update.
27736 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27737 output_refs, input_overwrite_node): Handle forced_by_abi.
27738 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27739 (address_taken_from_non_vtable_p): ... this one.
27740 (comdat_can_be_unshared_p_1): New function.
27741 (cgraph_comdat_can_be_unshared_p): Rename to ...
27742 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27743 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27744 (function_and_variable_visibility): Clear forced_by_abi as needed.
27745 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27746 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27747 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27748 * varpool.c (decide_is_variable_needed): Remove.
27749
27750 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27751
27752 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27753 (arm_option_override): Override arm_restrict_it where appropriate.
27754 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27755 * config/arm/arm.opt (mrestrict-it): New command-line option.
27756 * doc/invoke.texi: Document -mrestrict-it.
27757
27758 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27759
27760 * tsan.c (tsan_atomic_table): Make const.
27761
27762 2013-06-05 Richard Biener <rguenther@suse.de>
27763
27764 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27765 index associated with the tree we are supposed to replace.
27766 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27767 TREE_ASM_WRITTEN as zero for everything but SSA names.
27768
27769 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27770
27771 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27772
27773 2013-06-04 Jan Hubicka <jh@suse.cz>
27774
27775 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27776 (input_node, input_varpool_node): Handle correctly external same
27777 body aliases.
27778 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27779 nodes at ltrans stage.
27780
27781 2013-06-04 Jan Hubicka <jh@suse.cz>
27782
27783 * ipa-inline.c (update_caller_keys): Fix availability test.
27784 (update_callee_keys): Likewise.
27785 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27786 to follow ELF standard.
27787
27788 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27789
27790 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27791 (mips64r5900el-*-elf*): New configurations.
27792 * config/mips/mips-cpus.def (r5900): New processor.
27793 * config/mips/mips-tables.opt: Regenerate.
27794 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27795 (mips_issue_rate): Handle PROCESSOR_R5900.
27796 (mips_reorg_process_insns): Force reorder mode for the R5900.
27797 * config/mips/mips.h (TARGET_MIPS5900): Define.
27798 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27799 TARGET_MIPS5900.
27800 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27801 TARGET_MIPS5900.
27802 * config/mips/mips.md (processor): Add r5900.
27803 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27804
27805 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27806
27807 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27808 into function to generate MOVI instruction.
27809 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27810 (aarch64_preferred_simd_mode): Turn into wrapper.
27811 (aarch64_output_scalar_simd_mov_immediate): New function.
27812 * config/aarch64/aarch64-protos.h: Add prototype for above.
27813
27814 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27815
27816 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27817 element_char member.
27818 (sizetochar): Return signed char.
27819 (aarch64_simd_valid_immediate): Remove elchar and other
27820 unnecessary variables.
27821 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27822 Calculate element_char as required.
27823 * config/aarch64/aarch64-protos.h: Update and move prototype
27824 for aarch64_output_simd_mov_immediate.
27825 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27826 Update arguments.
27827
27828 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27829
27830 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27831 information completed by aarch64_simd_valid_immediate.
27832 (aarch64_legitimate_constant_p): Update arguments.
27833 (aarch64_simd_valid_immediate): Work with struct rather than many
27834 pointers.
27835 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27836 (aarch64_simd_make_constant): Update arguments.
27837 (aarch64_output_simd_mov_immediate): Work with struct rather than
27838 many pointers. Output immediate directly rather than as operand.
27839 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27840 Update prototype.
27841 * config/aarch64/constraints.md (Dn): Update arguments.
27842
27843 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27844
27845 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27846 longer static.
27847 (aarch64_simd_immediate_valid_for_move): Remove.
27848 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27849 (aarch64_simd_make_constant): Update call.
27850 (aarch64_output_simd_mov_immediate): Update call.
27851 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27852 Add prototype.
27853 * config/aarch64/constraints.md (Dn): Update call.
27854
27855 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27856
27857 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27858 return type to bool for prototype.
27859 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27860 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27861 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27862
27863 2013-06-04 Catherine Moore <clm@codesourcery.com>
27864
27865 * config/mips/mips.opt (meva): New.
27866 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27867 (ASM_SPEC): Handle -meva.
27868 * doc/invoke.texi (meva): Document.
27869
27870 2013-06-04 Alan Modra <amodra@gmail.com>
27871
27872 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27873 constant output.
27874
27875 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27876
27877 * rtl.def: Add extra fourth optional field to define_cond_exec.
27878 * gensupport.c (process_one_cond_exec): Process attributes from
27879 define_cond_exec.
27880 * doc/md.texi: Document fourth field in define_cond_exec.
27881
27882 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27883
27884 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27885 out the processing order as in store_bit_field_1.
27886
27887 2013-06-04 Jan Hubicka <jh@suse.cz>
27888
27889 PR middle-end/57500
27890 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27891 non-VAR_DECL node if it does not exist yet.
27892
27893 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27894
27895 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27896 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27897 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27898 target_cpu_default setting.
27899
27900 2013-06-03 Teresa Johnson <tejohnson@google.com>
27901
27902 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27903 default to -fopt-info=optimized instead of all.
27904 * doc/invoke.texi: Ditto.
27905 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27906 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27907 (execute_vect_slp): Emit BB vectorization success under
27908 MSG_OPTIMIZED_LOCATIONS.
27909 * tree-vect-slp.c (vect_slp_transform_bb): Change
27910 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27911 * tree-vect-loop.c (vect_transform_loop): Ditto.
27912
27913 2013-06-03 Jason Merrill <jason@redhat.com>
27914
27915 PR c++/57415
27916 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27917 Use TARGET_EXPR for C++.
27918
27919 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27920
27921 PR rtl-optimization/57268
27922 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27923 if DEBUG_INSN_P (insn).
27924
27925 Reapply
27926 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27927
27928 PR rtl-optimization/57268
27929 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27930 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27931
27932 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27933
27934 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27935 (ix86_avoid_lea_for_addr): Likewise.
27936 (exact_dependency_1): Likewise.
27937 (ix86_adjust_cost): Likewise.
27938 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27939 removed.
27940 (do_reorder_for_imul): Fix typo, formatting and
27941 !reload_completed check removed.
27942 (ix86_sched_reorder): Fix typo and formatting.
27943 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27944 list.
27945
27946 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27947
27948 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27949
27950 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27951
27952 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27953 <STRING_CST>: Likewise.
27954 <VECTOR_CST>: Likewise.
27955
27956 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27957 Mikael Morin <mikael@gcc.gnu.org>
27958
27959 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27960 * config.in: Regenerated.
27961 * configure: Regenerated.
27962
27963 2013-06-01 Jan Hubicka <jh@suse.cz>
27964
27965 PR middle-end/57366
27966 * cgraphunit.c (compile): When weakref is not supported,
27967 set up transparent aliases before final output pass.
27968 * varasm.c (assemble_alias): Do not try to do it here.
27969
27970 2013-06-01 Jan Hubicka <jh@suse.cz>
27971
27972 PR middle-end/57467
27973 * passes.c (for_per_function): Skip unanalyzed functions.
27974
27975 2013-06-01 Jan Hubicka <jh@suse.cz>
27976
27977 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27978 (lto_symtab_merge_symbols_1): ... this one.
27979 (lto_symtab_merge_cgraph_nodes): Rename to ...
27980 (lto_symtab_merge_symbols): ... this one; simplify.
27981 * cgraph.c (same_body_aliases_done): Rename to ...
27982 (cpp_implicit_aliases_done): ... this one.
27983 (cgraph_create_function_alias): Update.
27984 (cgraph_same_body_alias): Update.
27985 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27986 (verify_edge_corresponds_to_fndecl): Simplify.
27987 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27988 (cgraph_node): Remove same_body_alias.
27989 (varpool_node): Remove alias_of and extra_name_alias.
27990 (same_body_aliases_done): Rename to ..
27991 (cpp_implicit_aliases_done): ... this one.
27992 (symtab_alias_ultimate_target): Add default parameter.
27993 (symtab_resolve_alias): New function.
27994 (fixup_same_cpp_alias_visibility): Declare.
27995 (cgraph_function_node): Add default parameter.
27996 (cgraph_node_asm_name): Likewise.
27997 (cgraph_function_or_thunk_node): Add default parameter; do
27998 not ICE when it is NULL.
27999 (varpool_variable_node): Likewise.
28000 * tree-emutls.c (create_emultls_var): Update.
28001 (ipa_lower_emutls): Update.
28002 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
28003 (cgraph_reset_node): Reset alias info.
28004 (cgraph_finalize_function): Update.
28005 (fixup_same_cpp_alias_visibility): Move to symtab.c.
28006 (analyze_function): Simplify.
28007 (cgraph_process_same_body_aliases): Simplify.
28008 (analyze_functions): Fixup same body aliases.
28009 (handle_alias_pairs): Simplify.
28010 (assemble_thunk): Update.
28011 (assemble_thunks_and_aliases): Update.
28012 (output_weakrefs): Rewrite.
28013 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
28014 (lto_output_varpool_node): Likewise.
28015 (compute_ltrans_boundary): Remve assert.
28016 (get_alias_symbol): New functoin.
28017 (input_node): Rewrite alias handling.
28018 (input_varpool_node): Likewise.
28019 * ipa-pure-const.c (propagate_pure_const): Fix formating.
28020 * ipa.c (process_references): Handle weakrefs correctly.
28021 (symtab_remove_unreachable_nodes): Likewise.
28022 * trans-mem.c (get_cg_data): Update.
28023 (ipa_tm_create_version_alias): Update.
28024 (ipa_tm_execute): Update.
28025 * symtab.c (dump_symtab_base): Dump aliases.
28026 (verify_symtab_base): Verify aliases.
28027 (symtab_node_availability): New function.
28028 (symtab_alias_ultimate_target): Simplify.
28029 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28030 handle all the fixup cases.
28031 (symtab_resolve_alias): New function.
28032 * passes.c (ipa_write_summaries): Handle weakrefs.
28033 * varpool.c (varpool_analyze_node): Simplify.
28034 (assemble_aliases): Update.
28035 (varpool_create_variable_alias): Simplify.
28036 (varpool_extra_name_alias): Simplify.
28037 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28038 (lto_symtab_merge_symbols): ... this one.
28039
28040 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
28041
28042 Revert
28043 PR rtl-optimization/57268
28044 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28045 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28046
28047 2013-06-01 Tobias Burnus <burnus@net-b.de>
28048
28049 Partially reverted:
28050 2013-05-31 Tobias Burnus <burnus@net-b.de>
28051
28052 PR middle-end/57073
28053 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28054 further up.
28055
28056 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28057
28058 PR rtl-optimization/57268
28059 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28060 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28061
28062 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28063
28064 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28065 unordered comparison operators when -fno-trapping-math is in effect
28066 on the e500.
28067 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28068 and implement unordered comparison operators properly on the e500.
28069
28070 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28071
28072 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28073 for constant scalar integers.
28074 (simplify_relational_operation_1): Likewise.
28075
28076 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
28077
28078 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28079 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
28080 Fix comment.
28081
28082 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28083 Igor Zamyatin <igor.zamyatin@intel.com>
28084
28085 Silvermont (SLM) architecture performance tuning.
28086 * config/i386/i386.h (enum ix86_tune_indices): Add
28087 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28088 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28089
28090 * config/i386/i386.c (initial_ix86_tune_features)
28091 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28092 (ix86_lea_outperforms): Handle Silvermont tuning.
28093 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28094 call.
28095 (ix86_use_lea_for_mov): Likewise.
28096 (ix86_avoid_lea_for_addr): Likewise.
28097 (ix86_lea_for_add_ok): Likewise.
28098 (exact_dependency_1): New function.
28099 (exact_store_load_dependency): Likewise.
28100 (ix86_adjust_cost): Handle Silvermont tuning.
28101 (do_reoder_for_imul): Likewise.
28102 (swap_top_of_ready_list): New function.
28103 (ix86_sched_reorder): Changed to handle Silvermont tuning.
28104
28105 * config/i386/i386.md (peepholes that split memory operand in fp
28106 converts): New.
28107
28108 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28109
28110 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28111 Remove un-necessary braces.
28112
28113 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28114
28115 * config/aarch64/aarch64.c (aarch64_classify_symbol):
28116 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28117
28118 2013-05-31 Tobias Burnus <burnus@net-b.de>
28119
28120 PR middle-end/57073
28121 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28122
28123 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28124
28125 PR target/56315
28126 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28127 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28128 * config/arm/neon.md (iordi3_neon): Remove.
28129 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28130 * config/arm/predicates.md (imm_for_neon_logic_operand):
28131 Move to earlier in the file.
28132 (neon_logic_op2): Likewise.
28133 (arm_iordi_operand_neon): New predicate.
28134
28135 2013-05-31 Richard Biener <rguenther@suse.de>
28136
28137 PR tree-optimization/57478
28138 PR tree-optimization/57453
28139 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28140 are life as well.
28141
28142 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28143
28144 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28145 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28146
28147 2013-05-30 Tobias Burnus <burnus@net-b.de>
28148 Thomas Koenig <tkoenig@gcc.gnu.org>
28149
28150 PR middle-end/57073
28151 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28152 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28153
28154 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
28155
28156 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28157
28158 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
28159
28160 * target.def (register_usage_leveling_p): New hook.
28161 * targhooks.c (default_register_usage_leveling_p): New.
28162 * targhooks.h (default_register_usage_leveling_p): New prototype.
28163 * lra-assigns.c (register_usage_leveling_p): Use the hook.
28164 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28165 * doc/tm.texi: Update.
28166 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28167
28168 2013-05-30 Ian Bolton <ian.bolton@arm.com>
28169
28170 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28171 (*insv_reg<mode>): New define_insn.
28172
28173 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
28174
28175 PR rtl-optimization/57439
28176 * postreload.c (move2add_valid_value_p): Check that we have
28177 a zero subreg_regno_offset when accessing the register in
28178 the requested mode.
28179
28180 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28181 Igor Zamyatin <igor.zamyatin@intel.com>
28182
28183 Silvermont (SLM) architecture pipeline model, tuning and
28184 insn selection.
28185 * config.gcc: Add slm config options and target.
28186
28187 * config/i386/slm.md: New.
28188
28189 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28190
28191 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28192 PROCESSOR_SLM.
28193 (ix86_target_macros_internal): Likewise.
28194
28195 * config/i386/i386.c (slm_cost): New cost.
28196 (m_SLM): New macro flag.
28197 (initial_ix86_tune_features): Set m_SLM.
28198 (x86_accumulate_outgoing_args): Likewise.
28199 (x86_arch_always_fancy_math_387): Likewise.
28200 (processor_target_table): Add slm cost.
28201 (cpu_names): Add slm cpu name.
28202 (x86_option_override_internal): Set SLM ISA.
28203 (ix86_issue_rate): New case PROCESSOR_SLM.
28204 (ia32_multipass_dfa_lookahead): Likewise.
28205 (fold_builtin_cpu): Add slm.
28206
28207 * config/i386/i386.h (TARGET_SLM): New target macro.
28208 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28209 (processor_type): Add PROCESSOR_SLM.
28210
28211 * config/i386/i386.md (cpu): Add new value "slm".
28212 (slm.md): Include slm.md.
28213
28214 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
28215 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28216
28217 * config/arm/arm-protos.h: Add and update function protos.
28218 * config/arm/arm.c (use_simple_return_p): New added.
28219 (thumb2_expand_return): Check simple_return flag.
28220 * config/arm/arm.md: Add simple_return and conditional simple_return.
28221 * config/arm/iterators.md: Add iterator for return and simple_return.
28222
28223 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28224
28225 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28226 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28227 (arm_emit_vfp_multi_reg_pop): Likewise.
28228 (thumb2_emit_ldrd_pop): Likewise.
28229 (arm_expand_epilogue): Add misc REG_CFA notes.
28230 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28231
28232 2013-05-29 Lawrence Crowl <crowl@google.com>
28233
28234 * config/arm/t-arm: Update for below.
28235
28236 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28237 Change type to hash_table. Update dependent calls and types.
28238
28239 * config/i386/t-cygming: Update for below.
28240
28241 * config/i386/t-interix: Update for below.
28242
28243 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28244 Change type to hash_table. Update dependent calls and types.
28245 (i386_find_on_wrapper_list::wrappers): Likewise.
28246
28247 * config/ia64/t-ia64: Update for below.
28248
28249 * config/ia64/ia64.c (bundle_state_table):
28250 Change type to hash_table. Update dependent calls and types.
28251
28252 * config/mips/mips.c (mips_reorg_process_insns::htab):
28253 Change type to hash_table. Update dependent calls and types.
28254
28255 * config/sol2.c (solaris_comdat_htab):
28256 Change type to hash_table. Update dependent calls and types.
28257
28258 * config/t-sol2: Update for above.
28259
28260 2013-05-29 Teresa Johnson <tejohnson@google.com>
28261
28262 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28263 functions are not yet marked as defined.
28264
28265 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
28266 Pat Haugen <pthaugen@us.ibm.com>
28267 Peter Bergner <bergner@vnet.ibm.com>
28268
28269 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28270 instructions.
28271 (VEC_A): Likewise.
28272 (VEC_C): Likewise.
28273 (vrotl<mode>3): Likewise.
28274 (vashl<mode>3): Likewise.
28275 (vlshr<mode>3): Likewise.
28276 (vashr<mode>3): Likewise.
28277
28278 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28279 support for power8 V2DI builtins.
28280
28281 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28282 power8 V2DI builtins.
28283 (vupkhsw): Likewise.
28284 (vupklsw): Likewise.
28285 (vaddudm): Likewise.
28286 (vminsd): Likewise.
28287 (vmaxsd): Likewise.
28288 (vminud): Likewise.
28289 (vmaxud): Likewise.
28290 (vpkudum): Likewise.
28291 (vpksdss): Likewise.
28292 (vpkudus): Likewise.
28293 (vpksdus): Likewise.
28294 (vrld): Likewise.
28295 (vsld): Likewise.
28296 (vsrd): Likewise.
28297 (vsrad): Likewise.
28298 (vsubudm): Likewise.
28299 (vcmpequd): Likewise.
28300 (vcmpgtsd): Likewise.
28301 (vcmpgtud): Likewise.
28302 (vcmpequd_p): Likewise.
28303 (vcmpgtsd_p): Likewise.
28304 (vcmpgtud_p): Likewise.
28305 (vupkhsw): Likewise.
28306 (vupklsw): Likewise.
28307 (vaddudm): Likewise.
28308 (vmaxsd): Likewise.
28309 (vmaxud): Likewise.
28310 (vminsd): Likewise.
28311 (vminud): Likewise.
28312 (vpksdss): Likewise.
28313 (vpksdus): Likewise.
28314 (vpkudum): Likewise.
28315 (vpkudus): Likewise.
28316 (vrld): Likewise.
28317 (vsld): Likewise.
28318 (vsrad): Likewise.
28319 (vsrd): Likewise.
28320 (vsubudm): Likewise.
28321
28322 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28323 support for power8 V2DI instructions.
28324
28325 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28326 power8 V2DI instructions. Combine pack and unpack insns to use an
28327 iterator for each mode. Check whether a particular mode supports
28328 Altivec instructions instead of just checking TARGET_ALTIVEC.
28329 (UNSPEC_VPKUWUM): Likewise.
28330 (UNSPEC_VPKSHSS): Likewise.
28331 (UNSPEC_VPKSWSS): Likewise.
28332 (UNSPEC_VPKUHUS): Likewise.
28333 (UNSPEC_VPKSHUS): Likewise.
28334 (UNSPEC_VPKUWUS): Likewise.
28335 (UNSPEC_VPKSWUS): Likewise.
28336 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28337 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28338 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28339 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28340 (UNSPEC_VUPKHSB): Likewise.
28341 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28342 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28343 (UNSPEC_VUPKHSH): Likewise.
28344 (UNSPEC_VUPKLSB): Likewise.
28345 (UNSPEC_VUPKLSH): Likewise.
28346 (VI2): Likewise.
28347 (VI_char): Likewise.
28348 (VI_scalar): Likewise.
28349 (VI_unit): Likewise.
28350 (VP): Likewise.
28351 (VP_small): Likewise.
28352 (VP_small_lc): Likewise.
28353 (VU_char): Likewise.
28354 (add<mode>3): Likewise.
28355 (altivec_vaddcuw): Likewise.
28356 (altivec_vaddu<VI_char>s): Likewise.
28357 (altivec_vadds<VI_char>s): Likewise.
28358 (sub<mode>3): Likewise.
28359 (altivec_vsubcuw): Likewise.
28360 (altivec_vsubu<VI_char>s): Likewise.
28361 (altivec_vsubs<VI_char>s): Likewise.
28362 (altivec_vavgs<VI_char>): Likewise.
28363 (altivec_vcmpbfp): Likewise.
28364 (altivec_eq<mode>): Likewise.
28365 (altivec_gt<mode>): Likewise.
28366 (altivec_gtu<mode>): Likewise.
28367 (umax<mode>3): Likewise.
28368 (smax<mode>3): Likewise.
28369 (umin<mode>3): Likewise.
28370 (smin<mode>3): Likewise.
28371 (altivec_vpkuhum): Likewise.
28372 (altivec_vpkuwum): Likewise.
28373 (altivec_vpkshss): Likewise.
28374 (altivec_vpkswss): Likewise.
28375 (altivec_vpkuhus): Likewise.
28376 (altivec_vpkshus): Likewise.
28377 (altivec_vpkuwus): Likewise.
28378 (altivec_vpkswus): Likewise.
28379 (altivec_vpks<VI_char>ss): Likewise.
28380 (altivec_vpks<VI_char>us): Likewise.
28381 (altivec_vpku<VI_char>us): Likewise.
28382 (altivec_vpku<VI_char>um): Likewise.
28383 (altivec_vrl<VI_char>): Likewise.
28384 (altivec_vsl<VI_char>): Likewise.
28385 (altivec_vsr<VI_char>): Likewise.
28386 (altivec_vsra<VI_char>): Likewise.
28387 (altivec_vsldoi_<mode>): Likewise.
28388 (altivec_vupkhsb): Likewise.
28389 (altivec_vupkhs<VU_char>): Likewise.
28390 (altivec_vupkls<VU_char>): Likewise.
28391 (altivec_vupkhsh): Likewise.
28392 (altivec_vupklsb): Likewise.
28393 (altivec_vupklsh): Likewise.
28394 (altivec_vcmpequ<VI_char>_p): Likewise.
28395 (altivec_vcmpgts<VI_char>_p): Likewise.
28396 (altivec_vcmpgtu<VI_char>_p): Likewise.
28397 (abs<mode>2): Likewise.
28398 (vec_unpacks_hi_v16qi): Likewise.
28399 (vec_unpacks_hi_v8hi): Likewise.
28400 (vec_unpacks_lo_v16qi): Likewise.
28401 (vec_unpacks_hi_<VP_small_lc>): Likewise.
28402 (vec_unpacks_lo_v8hi): Likewise.
28403 (vec_unpacks_lo_<VP_small_lc>): Likewise.
28404 (vec_pack_trunc_v8h): Likewise.
28405 (vec_pack_trunc_v4si): Likewise.
28406 (vec_pack_trunc_<mode>): Likewise.
28407
28408 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28409 V2DI builtins.
28410 (vec_vmaxsd): Likewise.
28411 (vec_vmaxud): Likewise.
28412 (vec_vminsd): Likewise.
28413 (vec_vminud): Likewise.
28414 (vec_vpksdss): Likewise.
28415 (vec_vpksdus): Likewise.
28416 (vec_vpkudum): Likewise.
28417 (vec_vpkudus): Likewise.
28418 (vec_vrld): Likewise.
28419 (vec_vsld): Likewise.
28420 (vec_vsrad): Likewise.
28421 (vec_vsrd): Likewise.
28422 (vec_vsubudm): Likewise.
28423 (vec_vupkhsw): Likewise.
28424 (vec_vupklsw): Likewise.
28425
28426 2013-05-29 Jan Hubicka <jh@suse.cz>
28427
28428 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28429 flags; reorder rest of fields in more consistent way.
28430 (varpool_node): Remove analyzed, finalized and alias.
28431 (cgraph_ndoe): Likewise.
28432 (symtab_alias_ultimate_target): New function.
28433 (cgraph_function_node): Move offline.
28434 (cgraph_reset_node): Declare.
28435 (cgraph_comdat_can_be_unshared_p): Remove.
28436 (varpool_remove_initializer): Declare.
28437 (varpool_first_defined_variable, varpool_next_defined_variable
28438 cgraph_first_defined_function, cgraph_next_defined_function): Update.
28439 (cgraph_function_with_gimple_body_p): Update.
28440 (varpool_all_refs_explicit_p): Update.
28441 (symtab_alias_target): New function.
28442 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28443 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28444 (cgraph_function_or_thunk_node): Simplify using
28445 symtab_alias_ultimate_target.
28446 (varpool_variable_node): Likewise.
28447 * cgraph.c (cgraph_create_function_alias): Update.
28448 (cgraph_add_thunk): Update.
28449 (cgraph_remove_node): Update.
28450 (dump_cgraph_node): Do not dump removed flags.
28451 (cgraph_function_body_availability): Update.
28452 (cgraph_propagate_frequency): Update.
28453 (verify_cgraph_node): Check sanity of local flag.
28454 (cgraph_function_node): Move here from cgraph.h; revamp for
28455 cgraph_function_or_thunk_node.
28456 * lto-symtab.c (lto_varpool_replace_node): Update.
28457 (lto_symtab_resolve_can_prevail_p): Update.
28458 (lto_symtab_merge_cgraph_nodes): Update.
28459 * ipa-cp.c (determine_versionability, initialize_node_lattices,
28460 propagate_constants_accross_call, devirtualization_time_bonus,
28461 ipcp_propagate_stage): Update.
28462 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28463 * ipa-inline-transform.c (clone_inlined_nodes,
28464 preserve_function_body_p): Update.
28465 * ipa-reference.c (propagate): Update.
28466 (write_node_summary_p): Update.
28467 * toplev.c (wrapup_global_declaration_2): Update.
28468 * cgraphunit.c (cgraph_analyze_function): Rename to ...
28469 (analyze_function) ... this one.
28470 (cgraph_process_new_functions): Update.
28471 (cgraph_reset_node): Export.
28472 (cgraph_finalize_function): Update.
28473 (cgraph_add_new_function): Update.
28474 (process_function_and_variable_attributes): Update.
28475 (varpool_finalize_decl): Update.
28476 (symbol_finalized): Remove.
28477 (symbol_finalized_and_needed): Rename to ...
28478 (symbol_defined_and_needed): ... update.
28479 (cgraph_analyze_functions): Update.
28480 (handle_alias_pairs): Update.
28481 (mark_functions_to_output): Update.
28482 (assemble_thunk): Update.
28483 (output_in_order): Update.
28484 (output_weakrefs): Update.
28485 (finalize_compilation_unit): Update.
28486 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28487 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28488 input_node, input_varpool_node): Update.
28489 * dbxout.c (dbxout_expand_expr): Update.
28490 * cgraphclones.c (cgraph_clone_node): Update.
28491 (cgraph_copy_node_for_versioning): Update.
28492 (cgraph_materialize_clone): Update.
28493 (cgraph_materialize_all_clones): Update.
28494 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28495 propagate_pure_const, propagate_nothrow): Update.
28496 * lto-streamer-out.c (lto_output, write_symbol): Update.
28497 * ipa-utils.c (ipa_reverse_postorder): Update.
28498 * ipa-inline.c (can_inline_edge_p): Update.
28499 (update_caller_keys, ipa_inline): Update.
28500 * dwarf2out.c (reference_to_unused,
28501 premark_types_used_by_global_vars_helper): Update.
28502 * tree-eh.c (tree_could_trap_p): Update.
28503 * ipa-split.c (consider_split, execute_split_functions): Update.
28504 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28505 has_addr_references_p): Update; move ahead in file for better
28506 readability.
28507 (process_references): Simplify.
28508 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28509 bodies are removed.
28510 (cgraph_comdat_can_be_unshared_p): Make static.
28511 (cgraph_externally_visible_p): Update.
28512 (varpool_externally_visible_p): Update.
28513 (function_and_variable_visibility): Update.
28514 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28515 ipa_tm_mark_force_output_node): Update.
28516 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28517 estimate_edge_devirt_benefit, inline_generate_summary,
28518 inline_write_summary): Update.
28519 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28520 * ipa-prop.c (ipa_compute_jump_functions): Update.
28521 (ipa_print_node_params, ipa_prop_read_section,
28522 ipa_update_after_lto_read, read_replacements_section): Update.
28523 * varasm.c (mark_decl_referenced): Update.
28524 (assemble_alias, dump_tm_clone_pairs): Update.
28525 * tree-inline.c (copy_bb): Update.
28526 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28527 Update.
28528 * symtab.c (dump_symtab_base): Print new flags.
28529 (verify_symtab_base): Verify new flags.
28530 (symtab_alias_ultimate_target): New function.
28531 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28532 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28533 Update.
28534 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28535 Update.
28536 * i386.c (ix86_get_function_versions_dispatcher,
28537 ix86_generate_version_dispatcher_body): Update.
28538 (fold_builtin_cpu): Use varpool_add_new_variable.
28539 * varpool.c (varpool_remove_initializer): Break out from ...
28540 (varpool_remove_node): ... this one.
28541 (dump_varpool_node, varpool_node_for_asm,
28542 cgraph_variable_initializer_availability, varpool_analyze_node,
28543 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28544 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28545 Update.
28546
28547 2013-05-29 Jan Hubicka <jh@suse.cz>
28548
28549 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28550
28551 2013-05-29 Easwaran Raman <eraman@google.com>
28552
28553 PR tree-optimization/57442
28554 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28555 when control exits the main loop.
28556
28557 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28558
28559 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28560 and RX600.
28561 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28562 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28563 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28564 option.
28565
28566 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28567
28568 PR tree-optimization/57441
28569 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28570 Don't limit size of incr_vec to number of candidates.
28571
28572 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28573
28574 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28575 and mips16 directories.
28576 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28577 (MULTILIB_DIRNAMES): Ditto.
28578 (MULTILIB_EXCEPTIONS): Add new exceptions.
28579 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28580 (MULTILIB_DIRNAMES): Ditto.
28581 (MULTILIB_EXCEPTIONS): Add new exceptions.
28582
28583 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28584 Marcus Shawcroft <marcus.shawcroft@arm.com>
28585
28586 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28587 SYMBOL_TINY_ABSOLUTE.
28588 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28589 SYMBOL_TINY_ABSOLUTE.
28590 (aarch64_expand_mov_immediate): Likewise.
28591 (aarch64_classify_symbol): Likewise.
28592 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28593 Permit SYMBOL_TINY_ABSOLUTE.
28594 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28595
28596 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28597 Marcus Shawcroft <marcus.shawcroft@arm.com>
28598
28599 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28600 Refactor if/switch. Replace gcc_assert with if.
28601
28602 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28603
28604 * config/i386/i386.c (initial_ix86_tune_features): Enable
28605 FP Reassociation for AMD bdver1 and bdver2.
28606
28607 2013-05-29 Martin Jambor <mjambor@suse.cz>
28608
28609 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28610 and IMAGPART_EXPR do not occur within other handled_components.
28611
28612 2013-05-29 Richard Biener <rguenther@suse.de>
28613
28614 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28615 access on whether the use is in the BB we currently try to
28616 vectorize.
28617 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28618 vectorize to vect_bb_slp_scalar_cost.
28619
28620 2013-05-29 Richard Biener <rguenther@suse.de>
28621
28622 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28623 computing scalar cost offsetted by stmts that are kept live
28624 by scalar uses.
28625 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28626 for computation of scalar cost.
28627
28628 2013-05-28 Steve Ellcey <sellcey@mips.com>
28629
28630 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28631
28632 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28633
28634 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28635 array notation built-in reduction functions.
28636 * doc/passes.texi (Passes): Added documentation about changes done
28637 for Cilk Plus.
28638 * doc/invoke.texi (C Dialect Options): Added documentation about
28639 the -fcilkplus flag.
28640 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28641 (BUILTINS_DEF): Depend on cilkplus.def.
28642 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28643 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28644 * cilkplus.def: New file.
28645
28646 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28647
28648 PR rtl-optimization/57439
28649 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28650
28651 2013-05-28 Easwaran Raman <eraman@google.com>
28652
28653 PR tree-optimization/57337
28654 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28655 (find_insert_point): Correctly identify the insertion point
28656 when two statements with the same UID is compared.
28657
28658 2013-05-28 Richard Biener <rguenther@suse.de>
28659
28660 PR tree-optimization/56787
28661 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28662 from the list of data references.
28663 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28664 clobbers.
28665 (vect_analyze_loop_operations): Likewise.
28666 (vect_transform_loop): Remove clobbers.
28667
28668 2013-05-28 Martin Jambor <mjambor@suse.cz>
28669
28670 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28671 and REALPART_EXPRs have scalar type.
28672
28673 2013-05-28 Richard Biener <rguenther@suse.de>
28674
28675 PR tree-optimization/57411
28676 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28677 virtual operands.
28678 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28679 virtual operand propagation.
28680
28681 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28682
28683 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28684 destination register for bmasksi_vis.
28685 (vector_init_bshuffle): Likewise.
28686 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28687
28688 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28689
28690 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28691 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28692 mode if the instruction isn't available in the original mode.
28693 * config/sparc/sparc.opt (mfix-ut699): New option.
28694 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28695 (divdf3): Turn into expander.
28696 (divdf3_nofix): New insn.
28697 (divdf3_fix): Likewise.
28698 (divsf3): Disable if -mfix-ut699.
28699 (sqrtdf2): Turn into expander.
28700 (sqrtdf2_nofix): New insn.
28701 (sqrtdf2_fix): Likewise.
28702 (sqrtsf2): Disable if -mfix-ut699.
28703
28704 2013-05-27 Richard Biener <rguenther@suse.de>
28705
28706 PR middle-end/57412
28707 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28708 block for the new loop.
28709
28710 2013-05-27 Richard Biener <rguenther@suse.de>
28711
28712 PR tree-optimization/57343
28713 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28714 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28715 (number_of_iterations_cond): Do not build the folded tree.
28716
28717 2013-05-27 Richard Biener <rguenther@suse.de>
28718
28719 Revert
28720 PR middle-end/57381
28721 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28722 OEP_CONSTANT_ADDRESS_OF retained.
28723
28724 PR tree-optimization/57417
28725 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28726 for unchanged base.
28727 (set_ssa_val_to): Compare addresses using
28728 get_addr_base_and_unit_offset.
28729
28730 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28731
28732 PR rtl-optimization/56833
28733 * postreload.c (move2add_record_mode): New function.
28734 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28735 (move2add_use_add2_insn): Use move2add_record_sym_value.
28736 (move2add_use_add3_insn): Likewise.
28737 (reload_cse_move2add): Use move2add_valid_value_p and
28738 move2add_record_mode. Invalidate call-clobbered and REG_INC
28739 affected regs by setting reg_mode to VOIDmode.
28740 (move2add_note_store): Don't pretend the inside of a SUBREG is
28741 the actual destination. Invalidate single/leading registers by
28742 setting reg_mode to VOIDmode.
28743 Use move2add_record_sym_value, move2add_valid_value_p and
28744 move2add_record_mode.
28745
28746 2013-05-27 Richard Biener <rguenther@suse.de>
28747
28748 PR tree-optimization/57396
28749 * tree-affine.c (double_int_constant_multiple_p): Properly
28750 return false for val == 0 and div != 0.
28751
28752 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28753
28754 * config/mips/mips.h: Use #elif in preprocessor conditions.
28755
28756 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28757
28758 PR target/53916
28759 * config/mips/constraints.md (kl): New constraint.
28760 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28761 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28762 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28763 from LO for MIPS16.
28764 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28765
28766 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28767
28768 PR target/55777
28769 * config/mips/mips.c (mips_can_inline_p): New function.
28770 (TARGET_CAN_INLINE_P): Define.
28771
28772 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28773
28774 * sched-int.h (ds_t, dw_t): Make unsigned int.
28775 Fix documentation that describes how all the ds_t bits are used.
28776 Reserve the last bit for delayed-branch scheduling.
28777 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28778 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28779 (gen_dep_weak_1): Remove prototype.
28780 * sched-deps.c (get_dep_weak_1): Make static.
28781 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28782 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28783 * doc/tm.texi: Regenerate.
28784 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28785
28786 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28787
28788 PR debug/56950
28789 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28790
28791 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28792 Sandra Loosemore <sandra@codesourcery.com>
28793
28794 * config.gcc (powerpc-*): Allow native for with-cpu.
28795
28796 2013-05-24 Jeff Law <law@redhat.com>
28797
28798 PR tree-optimization/57124
28799 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28800 conversion feeding a condition if the range has an overflow
28801 if -fstrict-overflow. Add warnings for when we do make the
28802 transformation.
28803
28804 2013-05-24 Dehao Chen <dehao@google.com>
28805
28806 * tree-cfg.c (locus_discrim_map): Fix the typo.
28807 (locus_discrim_hasher): Likewise.
28808 (locus_discrim_hasher::hash): Likewise.
28809 (locus_discrim_hasher::equal): Likewise.
28810
28811 2013-05-24 Martin Jambor <mjambor@suse.cz>
28812
28813 PR tree-optimization/57294
28814 * cgraph.h (ipa_record_stmt_references): Declare.
28815 * cgraphbuild.c (ipa_record_stmt_references): New function.
28816 (build_cgraph_edges): Use ipa_record_stmt_references.
28817 (rebuild_cgraph_edges): Likewise.
28818 (cgraph_rebuild_references): Likewise.
28819 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28820 associated with the old statement and build references from the
28821 newly built statements.
28822 * ipa-ref.c (ipa_remove_stmt_references): New function.
28823 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28824
28825 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28826
28827 * lra-constraints.c (emit_spill_move): Use smaller mode for
28828 mem-mem moves.
28829 (check_and_process_move): Consider mem-reg moves for secondary
28830 too.
28831 (curr_insn_transform): Don't lose insns emitted before for
28832 secondary memory moves.
28833 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28834 reg set up in the current insn.
28835
28836 2013-05-24 Dehao Chen <dehao@google.com>
28837
28838 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28839 hash function.
28840 (locus_descrim_hasher::equal): Likewise.
28841 (build_gimple_cfg): New discriminator assignment algorithm.
28842 (make_edges): Likewise.
28843 (next_discriminator_for_locus): Likewise.
28844 (same_line_p): Likewise.
28845 (assign_discriminators): Likewise.
28846 (make_cond_expr_edges): Likewise.
28847 (make_gimple_switch_edges): Likewise.
28848 (make_goto_expr_edges): Likewise.
28849 (make_gimple_asm_edges): Likewise.
28850
28851 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28852
28853 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28854 X format specifier to only display bottom 16 bits.
28855 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28856 immediate to match for operand 2, since it will be masked.
28857
28858 2013-05-24 Richard Biener <rguenther@suse.de>
28859
28860 PR tree-optimization/57287
28861 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28862 all SSA names that occur in abnormal PHIs.
28863
28864 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28865
28866 PR tree-ssa/57385
28867 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28868 that index is not negative.
28869
28870 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28871
28872 PR rtl-optimization/55177
28873 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28874 (simplify_byte_swapping_operation): New.
28875 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28876 (simplify_relational_operation_1): Deal with BSWAP.
28877
28878 2013-05-23 Richard Henderson <rth@redhat.com>
28879
28880 PR target/56742
28881 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28882 (ix86_reorg): Call it.
28883
28884 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28885
28886 PR target/57379
28887 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28888 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28889 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28890
28891 2013-05-23 Christian Bruel <christian.bruel@st.com>
28892
28893 PR debug/57351
28894 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28895
28896 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28897 Marcus Shawcroft <marcus.shawcroft@arm.com>
28898
28899 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28900 * config/aarch64/constraints.md (Usa): Remove.
28901 * doc/md.texi (AArch64 Usa): Remove.
28902
28903 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28904 Marcus Shawcroft <marcus.shawcroft@arm.com>
28905
28906 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28907 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28908 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28909 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28910
28911 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28912
28913 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28914 instruction (AdvSIMD).
28915 * config/aarch64/aarch64-builtins.c
28916 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28917 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28918
28919 2013-05-23 Martin Jambor <mjambor@suse.cz>
28920
28921 PR middle-end/57347
28922 * tree.h (contains_bitfld_component_ref_p): Declare.
28923 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28924 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28925 caller.
28926 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28927 not access a bit-field. Assert all final offsets are byte-aligned.
28928
28929 2013-05-23 Richard Biener <rguenther@suse.de>
28930
28931 PR tree-optimization/57380
28932 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28933 least one invariant or re-used load.
28934 * passes.c (init_optimization_passes): Move pass_phiprop before
28935 pass_forwprop.
28936
28937 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28938
28939 * config/aarch64/aarch64-simd.md
28940 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28941
28942 2013-05-23 Richard Biener <rguenther@suse.de>
28943
28944 PR middle-end/57381
28945 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28946 OEP_CONSTANT_ADDRESS_OF retained.
28947
28948 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28949
28950 PR middle-end/57344
28951 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28952 don't lower unit. Handle unit not being always BITS_PER_WORD.
28953
28954 2013-05-23 Richard Biener <rguenther@suse.de>
28955
28956 PR rtl-optimization/57341
28957 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28958 instead of true_dependence.
28959
28960 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28961
28962 * bb-reorder.c (branch_threshold): Make const.
28963 (exec_threshold): Ditto.
28964
28965 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28966 Pat Haugen <pthaugen@us.ibm.com>
28967 Peter Bergner <bergner@vnet.ibm.com>
28968
28969 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28970 documentation for the power8 crypto builtins.
28971
28972 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28973
28974 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28975 macros for defining power8 builtin functions.
28976 (BU_P8V_AV_2): Likewise.
28977 (BU_P8V_AV_P): Likewise.
28978 (BU_P8V_VSX_1): Likewise.
28979 (BU_P8V_OVERLOAD_1): Likewise.
28980 (BU_P8V_OVERLOAD_2): Likewise.
28981 (BU_CRYPTO_1): Likewise.
28982 (BU_CRYPTO_2): Likewise.
28983 (BU_CRYPTO_3): Likewise.
28984 (BU_CRYPTO_OVERLOAD_1): Likewise.
28985 (BU_CRYPTO_OVERLOAD_2): Likewise.
28986 (XSCVSPDP): Fix typo, point to the correct instruction.
28987 (VCIPHER): Add power8 crypto builtins.
28988 (VCIPHERLAST): Likewise.
28989 (VNCIPHER): Likewise.
28990 (VNCIPHERLAST): Likewise.
28991 (VPMSUMB): Likewise.
28992 (VPMSUMH): Likewise.
28993 (VPMSUMW): Likewise.
28994 (VPERMXOR_V2DI): Likewise.
28995 (VPERMXOR_V4SI: Likewise.
28996 (VPERMXOR_V8HI: Likewise.
28997 (VPERMXOR_V16QI: Likewise.
28998 (VSHASIGMAW): Likewise.
28999 (VSHASIGMAD): Likewise.
29000 (VPMSUM): Likewise.
29001 (VPERMXOR): Likewise.
29002 (VSHASIGMA): Likewise.
29003
29004 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
29005 __CRYPTO__ if the crypto instructions are available.
29006 (altivec_overloaded_builtins): Add support for overloaded power8
29007 builtins.
29008
29009 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
29010 support for power8 crypto builtins.
29011 (builtin_function_type): Likewise.
29012 (altivec_init_builtins): Add support for builtins that take vector
29013 long long (V2DI) arguments.
29014
29015 * config/rs6000/crypto.md: New file, define power8 crypto
29016 instructions.
29017
29018 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29019 Pat Haugen <pthaugen@us.ibm.com>
29020 Peter Bergner <bergner@vnet.ibm.com>
29021
29022 * doc/invoke.texi (Option Summary): Add power8 options.
29023 (RS/6000 and PowerPC Options): Likewise.
29024
29025 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29026 constraints.md instead of rs6000.h. Reorder w* constraints. Add
29027 wm, wn, wr documentation.
29028
29029 * config/rs6000/constraints.md (wm): New constraint for VSX
29030 registers if direct move instructions are enabled.
29031 (wn): New constraint for no registers.
29032 (wq): New constraint for quad word even GPR registers.
29033 (wr): New constraint if 64-bit instructions are enabled.
29034 (wv): New constraint if power8 vector instructions are enabled.
29035 (wQ): New constraint for quad word memory locations.
29036
29037 * config/rs6000/predicates.md (const_0_to_15_operand): New
29038 constraint for 0..15 for crypto instructions.
29039 (gpc_reg_operand): If VSX allow registers in VSX registers as well
29040 as GPR and floating point registers.
29041 (int_reg_operand): New predicate to match only GPR registers.
29042 (base_reg_operand): New predicate to match base registers.
29043 (quad_int_reg_operand): New predicate to match even GPR registers
29044 for quad memory operations.
29045 (vsx_reg_or_cint_operand): New predicate to allow vector logical
29046 operations in both GPR and VSX registers.
29047 (quad_memory_operand): New predicate for quad memory operations.
29048 (reg_or_indexed_operand): New predicate for direct move support.
29049
29050 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29051 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29052 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29053 (POWERPC_MASKS): Add power8 options.
29054 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29055 various options.
29056
29057 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29058 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29059
29060 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29061 (-mpower8-fusion): New power8 options.
29062 (-mpower8-fusion-sign): Likewise.
29063 (-mpower8-vector): Likewise.
29064 (-mcrypto): Likewise.
29065 (-mdirect-move): Likewise.
29066 (-mquad-memory): Likewise.
29067
29068 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29069 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29070 registers.
29071 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29072 (rs6000_debug_vector_unit): Add p8_vector.
29073 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29074 definitions. Also print fusion state.
29075 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29076 (rs6000_builtin_mask_calculate): Add power8 builtin support.
29077 (rs6000_option_override_internal): Add support for power8.
29078 (rs6000_common_init_builtins): Add debugging for skipped builtins
29079 if -mdebug=builtin.
29080 (rs6000_adjust_cost): Add power8 support.
29081 (rs6000_issue_rate): Likewise.
29082 (insn_must_be_first_in_group): Likewise.
29083 (insn_must_be_last_in_group): Likewise.
29084 (force_new_group): Likewise.
29085 (rs6000_register_move_cost): Likewise.
29086 (rs6000_opt_masks): Likewise.
29087
29088 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29089 power8 capable assembler, default to power7 options.
29090 (TARGET_DIRECT_MOVE): Likewise.
29091 (TARGET_CRYPTO): Likewise.
29092 (TARGET_P8_VECTOR): Likewise.
29093 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29094 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29095 (VECTOR_MEM_P8_VECTOR_P): Likewise.
29096 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29097 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29098 (TARGET_XSCVDPSPN): Likewise.
29099 (TARGET_XSCVSPDPN): Likewsie.
29100 (TARGET_SYNC_HI_QI): Likewise.
29101 (TARGET_SYNC_TI): Likewise.
29102 (MASK_CRYPTO): Likewise.
29103 (MASK_DIRECT_MOVE): Likewise.
29104 (MASK_P8_FUSION): Likewise.
29105 (MASK_P8_VECTOR): Likewise.
29106 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29107 temporary used by some of the direct move instructions to get two FP
29108 temporary registers does not force creation of a stack frame.
29109 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29110 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29111 that any VSX registers are tieable, even if they are also an
29112 Altivec vector mode.
29113 (r6000_reg_class_enum): Add wm, wr, wv constraints.
29114 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29115 (RS6000_BTM_CRYPTO): Likewise.
29116 (RS6000_BTM_COMMON): Likewise.
29117
29118 * config/rs6000/rs6000.md (cpu attribute): Add power8.
29119 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29120 (enum rs6000_vector): Add power8 vector support.
29121
29122 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29123
29124 PR target/19599
29125 PR target/57340
29126 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29127 (any_sibcall_could_use_r3): this and handle indirect calls.
29128 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29129
29130 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29131
29132 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29133
29134 2013-05-22 Richard Biener <rguenther@suse.de>
29135
29136 PR middle-end/57349
29137 * profile.c (branch_prob): Do not split blocks that are
29138 abnormally receiving from ECF_RETURNS_TWICE functions.
29139
29140 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29141
29142 * recog.c (offsettable_address_addr_space_p): Fix calculation of
29143 address mode. Move pointer mode initialization to the same place.
29144
29145 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29146
29147 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29148 while it has any effect.
29149
29150 2013-05-21 Easwaran Raman <eraman@google.com>
29151
29152 PR tree-optimization/57322
29153 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29154 UID of the statement added to the BB to be 1.
29155
29156 2013-05-21 Jakub Jelinek <jakub@redhat.com>
29157
29158 PR tree-optimization/57331
29159 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29160 of conversion from pointer type to integral type with integer.
29161
29162 2013-05-21 Martin Jambor <mjambor@suse.cz>
29163
29164 PR lto/57289
29165 * ipa-prop.c (ipa_read_node_info): Process param_used and
29166 controlled_uses in the same order as when writing.
29167
29168 2013-05-21 Magnus Granberg <baldrick@free.fr>
29169
29170 PR plugins/56754
29171 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29172
29173 2013-05-21 Richard Biener <rguenther@suse.de>
29174
29175 PR tree-optimization/57318
29176 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29177 estimate stmts with side-effects as likely eliminated.
29178
29179 2013-05-21 Richard Biener <rguenther@suse.de>
29180
29181 PR tree-optimization/57330
29182 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29183 preserve the call stmts fntype.
29184
29185 2013-05-21 Richard Biener <rguenther@suse.de>
29186
29187 PR tree-optimization/57303
29188 * tree-ssa-sink.c (statement_sink_location): Improve killing
29189 stmt detection and properly handle self-assignments.
29190
29191 2013-05-21 Christian Bruel <christian.bruel@st.com>
29192
29193 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29194 spanning registers. LEAF_REG_REMAP is supported only for contiguous
29195 registers. Set register size out of the PARALLEL loop.
29196
29197 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
29198
29199 PR target/56547
29200 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29201 (*fmasf4, *fmasf4_media): New insns.
29202
29203 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29204
29205 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29206 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29207 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29208 (mips_idiv_insns): Update the comments to say that the returned
29209 instruction counts are in units of BASE_INSN_LENGTH.
29210 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29211 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
29212 using 2 rather than 4 as the length of indirect MIPS16 and
29213 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
29214 length of a NOP. Don't divide MIPS16 lengths by 2.
29215 (mips16_split_long_branches): Assume a branch is long if the
29216 length is greater than 4 rather than 8.
29217 * config/mips/mips.md (length): Give MIPS16 lengths directly,
29218 rather than multiplying them by 2. Multiply instruction counts
29219 by BASE_INSN_LENGTH rather than 4.
29220 (*jump_mips16, tls_get_tp_mips16_<mode>)
29221 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29222
29223 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29224
29225 * config/mips/mips.md (extended_mips16): Remove branch case.
29226 (length): Remove duplicated extended_mips16 test.
29227
29228 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29229
29230 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29231
29232 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
29233
29234 * recog.h (Recog_data): Rename to...
29235 (recog_data_d): ...this.
29236 (recog_data): Update accordingly.
29237 * recog.c (recog_data): Likewise.
29238 * reload.c (save_recog_data): Likewise.
29239 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29240 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29241
29242 2013-05-17 Julian Brown <julian@codesourcery.com>
29243
29244 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29245 found in a REG_EQUAL note, invalidate it.
29246
29247 2013-05-17 Easwaran Raman <eraman@google.com>
29248
29249 * tree-ssa-reassoc.c (find_insert_point): New function.
29250 (insert_stmt_after): Likewise.
29251 (get_def_stmt): Likewise.
29252 (ensure_ops_are_available): Likewise.
29253 (not_dominated_by): Likewise.
29254 (rewrite_expr_tree): Do not move statements beyond what is
29255 necessary. Remove call to swap_ops_for_binary_stmt...
29256 (reassociate_bb): ... and move it here.
29257 (build_and_add_sum): Assign UIDs for new statements.
29258 (linearize_expr): Likewise.
29259 (do_reassoc): Renumber gimple statement UIDs.
29260
29261 2013-05-17 Jan Hubicka <jh@suse.cz>
29262
29263 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29264 weakrefs.
29265 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29266 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29267 weakrefs.
29268 (output_weakrefs): Update.
29269
29270 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
29271 Martin Jambor <mjambor@suse.cz>
29272
29273 PR middle-end/57276
29274 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29275 value that corresponds to the given aggval is found in values vector.
29276
29277 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
29278
29279 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29280 sse, sse2, sse3, ssse3 and sse4a flags to options.
29281
29282 2013-05-17 David Malcolm <dmalcolm@redhat.com>
29283
29284 * gengtype-state.c: (s_expr_writer): New class, to handle
29285 prettifying of output layout of s-expressions.
29286 (state_writer): New class, to write out gtype.state.
29287 (state_written_type_count): Move this variable into member data of
29288 state_writer.
29289 (s_expr_writer::s_expr_writer): New code: constructor for new class
29290 (state_writer::state_writer(): ditto
29291 (s_expr_writer::write_new_line): New function
29292 (s_expr_writer::write_any_indent): ditto
29293 (s_expr_writer::begin_s_expr): ditto
29294 (s_expr_writer::end_s_expr): ditto
29295 (write_state_fileloc): convert to method of state_writer...
29296 (state_writer:: write_state_fileloc): ...and use methods of
29297 s_expr_writer to write indentation into the gtype.state output file
29298 to visually represent the hierarchical structure of the list
29299 structures
29300 (write_state_fields): ditto, renaming to...
29301 (state_writer::write_state_fields)
29302 (write_state_a_string): ditto, renaming to...
29303 (state_writer::write_state_a_string)
29304 (write_state_string_option): ditto, renaming to...
29305 (state_writer::write_state_string_option)
29306 (write_state_type_option): ditto, renaming to...
29307 (state_writer::write_state_type_option)
29308 (write_state_nested_option): ditto, renaming to...
29309 (state_writer::write_state_nested_option)
29310 (write_state_option): ditto, renaming to...
29311 (state_writer::write_state_option)
29312 (write_state_options): ditto, renaming to...
29313 (state_writer::write_state_options)
29314 (write_state_lang_bitmap): ditto, renaming to...
29315 (state_writer::write_state_lang_bitmap)
29316 (write_state_version): ditto, renaming to...
29317 (state_writer::write_state_version)
29318 (write_state_scalar_type): ditto, renaming to...
29319 (state_writer::write_state_scalar_type)
29320 (write_state_string_type): ditto, renaming to...
29321 (state_writer::write_state_string_type)
29322 (write_state_undefined_type): ditto, renaming to...
29323 (state_writer::write_state_undefined_type)
29324 (write_state_struct_union_type): ditto, renaming to...
29325 (state_writer::write_state_struct_union_type)
29326 (write_state_struct_type): ditto, renaming to...
29327 (state_writer::write_state_struct_type)
29328 (write_state_user_struct_type): ditto, renaming to...
29329 (state_writer::write_state_user_struct_type)
29330 (write_state_lang_struct_type): ditto, renaming to...
29331 (state_writer::write_state_lang_struct_type)
29332 (write_state_param_struct_type): ditto, renaming to...
29333 (state_writer::write_state_param_struct_type)
29334 (write_state_pointer_type): ditto, renaming to...
29335 (state_writer::write_state_pointer_type)
29336 (write_state_array_type): ditto, renaming to...
29337 (state_writer::write_state_array_type)
29338 (write_state_gc_used): ditto, renaming to...
29339 (state_writer::write_state_gc_used)
29340 (write_state_common_type_content): ditto, renaming to...
29341 (state_writer::write_state_common_type_content)
29342 (write_state_type): ditto, renaming to...
29343 (state_writer::write_state_type)
29344 (write_state_pair_list): ditto, renaming to...
29345 (state_writer::write_state_pair_list)
29346 (write_state_pair): ditto, renaming to...
29347 (state_writer::write_state_pair)
29348 (write_state_typedefs): ditto, renaming to...
29349 (state_writer::write_state_typedefs)
29350 (write_state_structures): ditto, renaming to...
29351 (state_writer::write_state_structures)
29352 (write_state_param_structs): ditto, renaming to...
29353 (state_writer::write_state_param_structs)
29354 (write_state_variables): ditto, renaming to...
29355 (state_writer::write_state_variables)
29356 (write_state_srcdir): ditto, renaming to...
29357 (state_writer::write_state_srcdir)
29358 (write_state_files_list): ditto, renaming to...
29359 (state_writer::write_state_files_list)
29360 (write_state_languages): ditto, renaming to...
29361 (state_writer::write_state_languages)
29362 (write_state): create a state_writer instance and use it when
29363 writing out the state file
29364
29365 2013-05-17 Mike Stump <mikestump@comcast.net>
29366
29367 PR rtl-optimization/57304
29368 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29369 accessing DF_REF_REAL_LOC.
29370
29371 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29372
29373 PR rtl-optimization/57281
29374 PR rtl-optimization/57300
29375 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29376 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29377 what the other splitter did if the registers are dead.
29378
29379 2013-05-17 Richard Biener <rguenther@suse.de>
29380
29381 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29382 MEM_REF offsets.
29383
29384 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29385
29386 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29387 linking.
29388
29389 2013-05-17 Marek Polacek <polacek@redhat.com>
29390
29391 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29392 length when doing non-zero store of storing '\0' to '\0'.
29393
29394 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29395
29396 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29397 vect_external_def oprnd1 with loop_vinfo, try to emit
29398 optional cast, negation and and stmts on the loop preheader
29399 edge instead of into the pattern def seq.
29400
29401 PR tree-optimization/57051
29402 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29403 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29404
29405 2013-05-16 Nick Clifton <nickc@redhat.com>
29406
29407 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29408 (rl78_is_naked_func): New function.
29409 (rl78_expand_prologue): Skip prologue generation for naked functions.
29410 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29411 * doc/extend.texi (naked): Add RL78 to the list of processors
29412 that supports this attribute.
29413
29414 2013-05-16 Jeff Law <law@redhat.com>
29415
29416 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29417
29418 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29419
29420 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29421 cache parameters using detect_caches_amd also for CYRIX,
29422 NSC and TM2 signatures.
29423
29424 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29425 Dzianis Kahanovich <mahatma@eu.by>
29426
29427 PR target/45359
29428 PR target/46396
29429 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29430 VIA/Centaur processors and determine their cache parameters
29431 using detect_caches_amd.
29432
29433 2013-05-16 Teresa Johnson <tejohnson@google.com>
29434
29435 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29436 (rtl_verify_edges): New function.
29437 (rtl_verify_bb_insns): Ditto.
29438 (rtl_verify_bb_pointers): Ditto.
29439 (rtl_verify_bb_insn_chain): Ditto.
29440 (rtl_verify_fallthru): Ditto.
29441 (rtl_verify_bb_layout): Ditto.
29442 (rtl_verify_flow_info_1): Outline checks into new functions.
29443 (rtl_verify_flow_info): Ditto.
29444
29445 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
29446
29447 * cfghooks.c (copy_bbs): Add update_dominance argument.
29448 * cfghooks.h (copy_bbs): Update prototype.
29449 * tree-cfg.c (gimple_duplicate_sese_region):
29450 Add update_dominance argument.
29451 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29452 * tree-ssa-loop-ch.c (copy_loop_headers): Update
29453 gimple_duplicate_sese_region call.
29454 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29455 Update copy_bbs call.
29456 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29457 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29458
29459 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29460
29461 * tree-vectorizer.h (NUM_PATTERNS): Increment.
29462 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29463 vect_recog_rotate_pattern.
29464 (vect_recog_rotate_pattern): New function.
29465
29466 2013-05-16 Jason Merrill <jason@redhat.com>
29467
29468 * Makefile.in (LLINKER): New variable.
29469 (mostlyclean): Remove link mutex.
29470 * configure.ac: Handle --enable-link-mutex.
29471 * lock-and-run.sh: New script.
29472
29473 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29474
29475 PR target/19599
29476 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29477 for NULL decl.
29478
29479 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29480
29481 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29482
29483 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29484
29485 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29486 * config/arm/arm.c (next_consecutive_mem): New function.
29487 (gen_movmem_ldrd_strd): Likewise.
29488 * config/arm/arm.md (movmemqi): Update condition and code.
29489 (unaligned_loaddi, unaligned_storedi): New patterns.
29490
29491 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29492
29493 * config.gcc: Obsolete *-*-solaris2.9*.
29494 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29495
29496 2013-05-16 Richard Biener <rguenther@suse.de>
29497
29498 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29499 earlier, after GRAPHITE transforms and IV canonicalization.
29500
29501 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29502
29503 * omp-low.c (extract_omp_for_data): For collapsed loops,
29504 if at least one of the loops is known at compile time to
29505 iterate zero times, set count to 0.
29506 (expand_omp_regimplify_p): New function.
29507 (expand_omp_for_generic): For collapsed loops, if at least
29508 one of the loops isn't known to iterate at least once,
29509 add runtime check with setting count to 0.
29510 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29511 For unsigned types if it isn't known at compile time that
29512 the loop will iterate at least once, add runtime check to bypass
29513 the whole loop if initial condition isn't true.
29514
29515 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29516
29517 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29518
29519 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29520
29521 PR middle-end/57286
29522 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29523 transformations to avoid an infinite loop.
29524
29525 2013-05-16 Marek Polacek <polacek@redhat.com>
29526
29527 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29528
29529 2013-05-15 Leif Ekblad <leif@rdos.net>
29530
29531 * config/i386/i386.c (ix86_decompose_address): Use
29532 DEFAULT_TLS_SEG_REG to access TLS segment register.
29533 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29534 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29535 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29536
29537 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29538
29539 PR target/57260
29540 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29541 sibling calls to functions that would normally be lazily bound,
29542 unless $gp is call-clobbered.
29543
29544 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29545
29546 * config/i386/i386.c (ix86_option_override_internal): Update
29547 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29548 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29549 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29550 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29551 of TARGET_3DNOW.
29552 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29553
29554 2013-05-15 Andreas Schwab <schwab@suse.de>
29555
29556 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29557 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29558 third operand.
29559
29560 2013-05-15 Teresa Johnson <tejohnson@google.com>
29561
29562 * loop-unroll.c (report_unroll_peel): Check decision before
29563 emitting unroll/peel message.
29564
29565 2013-05-15 Teresa Johnson <tejohnson@google.com>
29566
29567 * function.h (has_bb_partition): New rtl_data flag.
29568 (bb_reorder_complete): Ditto.
29569 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29570 instead of flag_reorder_blocks_and_partition.
29571 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29572 with some enhancements.
29573 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29574 * bb-reorder.c (connect_traces): Check for has_bb_partition
29575 instead of flag_reorder_blocks_and_partition.
29576 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29577 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29578 verify_hot_cold_block_grouping.
29579 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29580
29581 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29582
29583 PR target/19599
29584 * config/arm/predicates.md (call_insn_operand): New predicate.
29585 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29586 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29587 if insn is not a tail call.
29588 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29589 registers.
29590 * config/arm/arm.h (enum reg_class): New caller save register class.
29591 (REG_CLASS_NAMES): Likewise.
29592 (REG_CLASS_CONTENTS): Likewise.
29593 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29594 without decls.
29595
29596 2013-05-15 Richard Biener <rguenther@suse.de>
29597
29598 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29599 of MSG_OPTIMIZED_LOCATIONS.
29600 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29601 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29602 message.
29603 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29604 of MSG_OPTIMIZED_LOCATIONS.
29605 (execute_vect_slp): Likewise.
29606 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29607 (vect_create_cond_for_alias_checks): Likewise.
29608 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29609 (vect_recog_widen_mult_pattern): Likewise.
29610 (vect_recog_widen_sum_pattern): Likewise.
29611 (vect_recog_over_widening_pattern): Likewise.
29612 (vect_recog_widen_shift_pattern): Likewise.
29613 (vect_recog_vector_vector_shift_pattern): Likewise.
29614 (vect_recog_divmod_pattern): Likewise.
29615 (vect_recog_mixed_size_cond_pattern): Likewise.
29616 (vect_recog_bool_pattern): Likewise.
29617 (vect_pattern_recog_1): Likewise.
29618
29619 2013-05-15 Martin Jambor <mjambor@suse.cz>
29620
29621 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29622 non-functions to builtin_unreachable.
29623 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29624 correct when new direct edges were discovered.
29625
29626 2013-05-15 Martin Jambor <mjambor@suse.cz>
29627
29628 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29629 header, print symbol order instead of node uid, print more information
29630 about indirect edge targets.
29631 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29632 uids.
29633 (ipa_make_edge_direct_to_target): Likewise.
29634 (remove_described_reference): Likewise.
29635 (propagate_controlled_uses): Likewise.
29636 (ipa_print_node_params): Also print symbol order.
29637 (ipcp_transform_function): Print symbol order instead of node uids.
29638 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29639 (cgraph_get_create_real_symbol_node): Likewise.
29640 * ipa-cp.c (print_lattice): Likewise.
29641 (print_all_lattices): Likewise.
29642 (determine_versionability): Likewise.
29643 (initialize_node_lattices): Likewise.
29644 (estimate_local_effects): Likewise.
29645 (update_profiling_info): Likewise.
29646 (create_specialized_node): Likewise.
29647 (perhaps_add_new_callers): Likewise.
29648 (decide_about_value): Likewise.
29649 (decide_whether_version_node): Likewise.
29650 (identify_dead_nodes): Likewise.
29651 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29652 (dump_inline_summary): Likewise.
29653 (estimate_node_size_and_time): Likewise.
29654 (inline_analyze_function): Likewise.
29655 * ipa-inline.c (report_inline_failed_reason): Likewise.
29656 (want_early_inline_function_p): Likewise.
29657 (edge_badness): Likewise.
29658 (update_edge_key): Likewise.
29659 (inline_small_functions): Likewise. Add dumping of order to two other
29660 dumps.
29661 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29662 instead of node uids.
29663 (propagate_pure_const): Likewise.
29664 (propagate_pure_const): Likewise.
29665 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29666 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29667 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29668 of node uids.
29669 * tree-pretty-print.c (dump_function_header): Likewise.
29670 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29671 Print symbol order instead of node uids.
29672
29673 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29674
29675 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29676 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29677
29678 2013-05-15 Richard Biener <rguenther@suse.de>
29679
29680 PR tree-optimization/57275
29681 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29682 return value for fail to do runtime alias checks for gather loads.
29683
29684 2013-05-15 Jan Hubicka <jh@suse.cz>
29685
29686 PR lto/57038
29687 PR lto/47375
29688 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29689 weakrefs are not external.
29690 (lto_symtab_merge_decls): Fix thinko when dealing with
29691 non-lto_symtab decls.
29692 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29693 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29694 * varpool.c (dump_varpool_node): Dump more flags.
29695
29696 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29697
29698 * config/i386/i386.c (processor_alias_table): Add instruction
29699 FSGSBASE for AMD bdver3 architecture.
29700
29701 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29702
29703 * tree.c (warn_deprecated_use): Print file:line using locus color.
29704 * diagnostic.c (diagnostic_report_current_module): Print file:line
29705 and file:line:column using locus color.
29706
29707 2013-05-14 Mike Stump <mikestump@comcast.net>
29708
29709 * gdbinit.in: Add __null.
29710
29711 2013-05-14 Mike Stump <mikestump@comcast.net>
29712
29713 * recog.h: Rename struct recog_data to Recog_data.
29714 * recog.c: Likewise.
29715 * reload.c (can_reload_into): Likewise.
29716 * config/picochip/picochip.c: Likewise.
29717
29718 2013-05-14 Mike Stump <mikestump@comcast.net>
29719
29720 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29721
29722 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29723
29724 * resource.h (struct resources): Remove unch_memory member.
29725 (CLEAR_RESOURCE): Don't clear unch_memory.
29726 * resource.c (mark_referenced_resources): Don't set it.
29727 (mark_set_resources): Likewise.
29728 (mark_target_live_regs): Don't clear it.
29729 (init_resource_info): Likewise.
29730 * reorg.c (resource_conflicts_p): Don't compare it.
29731 (redundant_insn): Don't set it.
29732
29733 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29734 Remove prototypes.
29735 * emit-rtl.c (next_label): Remove unused function.
29736 (skip_consecutive_labels, link_cc0_insns): Move to ...
29737 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29738 only place where these functions are used, and make them static.
29739
29740 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29741
29742 * fold-const.c (fold_negate_expr): Handle vectors.
29743 (fold_truth_not_expr): Make it static.
29744 (fold_invert_truthvalue): New static function.
29745 (invert_truthvalue_loc): Handle vectors. Do not call
29746 fold_truth_not_expr directly.
29747 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29748 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29749 (fold_comparison): Handle vector constants.
29750 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29751 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29752 * tree.h (fold_truth_not_expr): Remove declaration.
29753
29754 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29755
29756 * config/aarch64/aarch64-simd.md
29757 (aarch64_vcond_internal<mode>): Rename to...
29758 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29759 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29760 float modes. Clarify all iterator modes.
29761 (vcond<mode><mode>): Use new name for vcond expanders.
29762 (vcond<v_cmp_result><mode>): Likewise.
29763 (vcondu<mode><mode>: Likewise.
29764 * config/aarch64/iterators.md (VDQF_COND): New.
29765
29766 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29767
29768 PR bootstrap/57266
29769 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29770 variable for the shift amount. Check that we shift by non-negative
29771 amounts.
29772
29773 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29774
29775 PR target/42017
29776 * config/arm/arm.h (EPILOGUE_USES): Only return true
29777 for LR_REGNUM after epilogue_completed.
29778
29779 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29780
29781 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29782 is error_mark_node.
29783
29784 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29785
29786 PR target/57261
29787 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29788 and Solaris 11+/x86 with gld.
29789 * configure: Regenerate.
29790
29791 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29792
29793 * expmed.c (expand_shift_1): Canonicalize rotates by
29794 constant bitsize / 2 to bitsize - 1.
29795 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29796 case ROTATERT>: Likewise.
29797
29798 Revert:
29799 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29800
29801 * config/i386/i386.md (rotateinv): New code attr.
29802 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29803 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29804 roll $31, %eax, etc.
29805
29806 2013-05-14 Richard Biener <rguenther@suse.de>
29807
29808 PR middle-end/57235
29809 * tree-eh.c (sink_clobbers): Give up for successors with
29810 multiple predecessors and no virtual uses.
29811
29812 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29813
29814 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29815 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29816
29817 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29818
29819 PR middle-end/57251
29820 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29821 the case when both op0 and op1 have VOIDmode.
29822
29823 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29824
29825 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29826 in multiply-accumulate mode.
29827
29828 2013-05-13 Guozhi Wei <carrot@google.com>
29829
29830 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29831
29832 2013-05-13 Kai Tietz <ktietz@redhat.com>
29833
29834 PR target/56975
29835 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29836 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29837 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29838 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29839 (ix86_expand_prologue): Likewise.
29840 (ix86_expand_split_stack_prologue): Likewise.
29841 (legitimate_pic_address_disp_p): Likewise.
29842 (legitimize_pic_address): Likewise.
29843 (legitimize_tls_address): Likewise.
29844 (legitimize_pe_coff_symbol): Likewise.
29845 (output_pic_addr_const): Likewise.
29846 (construct_plt_address): Likewise.
29847 (ix86_expand_call): Likewise.
29848 (x86_output_mi_thunk): Likewise.
29849 (x86_function_profiler): Likewise.
29850
29851 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29852
29853 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29854 similar switch cases.
29855 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29856 (aarch64_simd_mov_to_<mode>low): Delete.
29857 (aarch64_simd_mov_to_<mode>high): Delete.
29858 (move_lo_quad_<mode>): Add w<-r alternative.
29859 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29860 (aarch64_simd_mov_from_*): Update type attribute.
29861 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29862 statement.
29863
29864 2013-05-13 Jan Hubicka <jh@suse.cz>
29865
29866 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29867 * config/i386/i386.c (ix86_compute_frame_layout,
29868 ix86_expand_epilogue, emit_i387_cw_initialization,
29869 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29870 ix86_local_alignment): Fix use of size/speed predicates.
29871
29872 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29873
29874 PR tree-optimization/45216
29875 PR tree-optimization/57157
29876 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29877 the (-Y) & (B - 1) variant if OP is |.
29878 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29879 return shifted. Use (-op1) & (prec - 1) as other_amount
29880 instead of prec - op1.
29881
29882 2013-05-13 Martin Jambor <mjambor@suse.cz>
29883
29884 PR middle-end/42371
29885 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29886 (ipa_constant_data): New type.
29887 (ipa_jump_func): Use ipa_constant_data to hold information about
29888 constant jump functions.
29889 (ipa_get_jf_constant): Adjust to jump function type changes.
29890 (ipa_get_jf_constant_rdesc): New function.
29891 (ipa_param_descriptor): New field controlled_uses.
29892 (ipa_get_controlled_uses): New function.
29893 (ipa_set_controlled_uses): Likewise.
29894 * ipa-ref.h (ipa_find_reference): Declare.
29895 * ipa-prop.c (ipa_cst_ref_desc): New type.
29896 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29897 changes.
29898 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29899 New parameter cs. Adjust all callers.
29900 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29901 (remove_described_reference): New function.
29902 (jfunc_rdesc_usable): Likewise.
29903 (try_make_edge_direct_simple_call): Decrement controlled use count,
29904 attempt to remove reference if it hits zero.
29905 (combine_controlled_uses_counters): New function.
29906 (propagate_controlled_uses): Likewise.
29907 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29908 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29909 (ipa_print_node_params): Print described use counter.
29910 (ipa_write_jump_function): Adjust to jump function type changes.
29911 (ipa_read_jump_function): New parameter CS, pass it to
29912 ipa_set_jf_constant. Adjust caller.
29913 (ipa_write_node_info): Stream controlled use count
29914 (ipa_read_node_info): Likewise.
29915 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29916 asserting.
29917 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29918 count. Remove cloning-added reference if it reaches zero.
29919 * ipa-ref.c (ipa_find_reference): New function.
29920
29921 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29922
29923 * config/i386/i386.c (processor_target_table): Modified default
29924 alignment values for AMD BD and BT architectures.
29925
29926 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29927
29928 * tree-vect-generic.c (uniform_vector_p): Move ...
29929 * tree.c (uniform_vector_p): ... here.
29930 * tree.h (uniform_vector_p): Declare it.
29931 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29932 into a scalar.
29933
29934 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29935
29936 PR tree-optimization/57230
29937 * tree-ssa-strlen.c (handle_char_store): Record length for
29938 array store from STRING_CST.
29939
29940 PR tree-optimization/57230
29941 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29942 check.
29943
29944 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29945
29946 * config/epiphany/epiphany.c (epiphany_init): Check size of
29947 NUM_MODES_FOR_MODE_SWITCHING.
29948 (epiphany_expand_prologue):
29949 Remove CONFIG_REGNUM initial value handling code.
29950 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29951 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29952 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29953 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29954 Don't return 1 for FP_MODE_NONE.
29955 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29956 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29957 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29958 * config/epiphany/epiphany.md (save_config): New pattern.
29959
29960 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29961
29962 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29963
29964 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29965
29966 * config/i386/i386.md (memory): Handle sseishft1.
29967 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29968 (*vec_extractv2di_1): Ditto.
29969
29970 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29971
29972 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29973 saved registers.
29974
29975 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29976
29977 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29978 Add mthumb/march=armv7-a multilib.
29979 Add mthumb/march=armv7-r multilib.
29980 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29981
29982 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29983
29984 * config/v850/t-rtems: Add more multilibs.
29985
29986 2013-05-10 Richard Biener <rguenther@suse.de>
29987
29988 PR tree-optimization/57214
29989 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29990 not propagate from SSA names that occur in abnormal PHI nodes.
29991
29992 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29993
29994 * stor-layout.c (element_precision): New function.
29995 * machmode.h (element_precision): Declare it.
29996 * tree.c (build_minus_one_cst): New function.
29997 (element_precision): Likewise.
29998 * tree.h (build_minus_one_cst): Declare new function.
29999 (element_precision): Likewise.
30000 * fold-const.c (operand_equal_p): Use element_precision.
30001 (fold_binary_loc): Handle vector types.
30002 * convert.c (convert_to_integer): Use element_precision.
30003 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
30004 separately.
30005
30006 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
30007
30008 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
30009 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
30010 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
30011 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30012 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
30013 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
30014 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
30015 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30016 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
30017 (Uuw8): New constraints.
30018 (Usb4): Move into alphabetical order.
30019 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
30020 (sd8_operand, ub8_operand, uw8_operand): New predicates.
30021 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30022 previously unnamed patterns.
30023 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30024 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30025 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30026 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30027 of set_attr_alternative/if_then_else. Use extended_mips16 instead
30028 of specific lengths.
30029
30030 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30031
30032 * config/i386/i386.md (rotateinv): New code attr.
30033 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30034 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30035 roll $31, %eax, etc.
30036
30037 PR tree-optimization/45216
30038 PR tree-optimization/57157
30039 * tree-ssa-forwprop.c (simplify_rotate): New function.
30040 (ssa_forward_propagate_and_combine): Call it.
30041
30042 2013-05-10 Richard Biener <rguenther@suse.de>
30043
30044 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30045 disable peeling when we version for aliasing.
30046 (vector_alignment_reachable_p): Honor explicit user alignment.
30047 (vect_supportable_dr_alignment): Likewise.
30048 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30049 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30050 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30051 then peeling to arrange for the cost-model check to come first.
30052
30053 2013-05-10 Alan Modra <amodra@gmail.com>
30054
30055 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30056 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30057 * configure: Regenerate.
30058
30059 2013-05-10 Alan Modra <amodra@gmail.com>
30060
30061 PR target/55033
30062 * varasm.c (default_elf_select_section): Move !DECL_P check..
30063 (get_named_section): ..to here before calling get_section_name.
30064 Adjust assertion.
30065 (default_section_type_flags): Add DECL_P check.
30066 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30067 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30068
30069 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
30070
30071 * config/epiphany/epiphany.c (epiphany_expand_prologue):
30072 When using gen_stack_adjust_str with a register offset, add a
30073 REG_FRAME_RELATED_EXPR note.
30074
30075 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
30076
30077 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30078 (*vec_extractv4si_zext_mem): Ditto.
30079 (*vec_extractv2di): Add 0->x and x->x alternatives.
30080 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30081 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30082
30083 2013-05-09 Jason Merrill <jason@redhat.com>
30084
30085 N3639 C++1y VLA support
30086 * gimplify.c (gimplify_vla_decl): Don't touch an existing
30087 DECL_VALUE_EXPR.
30088
30089 * tree.c (build_constructor_va): New.
30090 * tree.h: Declare it.
30091
30092 2013-05-09 Martin Jambor <mjambor@suse.cz>
30093
30094 PR lto/57084
30095 * gimple-fold.c (canonicalize_constructor_val): Call
30096 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30097
30098 2013-05-09 Jan Hubicka <jh@suse.cz>
30099 Richard Biener <rguenther@suse.de>
30100
30101 PR lto/54095
30102 * symtab.c (symtab_make_decl_local): Do not add private names.
30103
30104 2013-05-09 Jan Hubicka <jh@suse.cz>
30105
30106 PR lto/54095
30107 * symtab.c (insert_to_assembler_name_hash): Handle clones.
30108 (unlink_from_assembler_name_hash): Likewise.
30109 (symtab_prevail_in_asm_name_hash, symtab_register_node,
30110 symtab_unregister_node, symtab_initialize_asm_name_hash,
30111 change_decl_assembler_name): Update.
30112
30113 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
30114
30115 * config/aarch64/aarch64.md: New movtf split.
30116 (*movtf_aarch64): Update.
30117 (aarch64_movdi_tilow): Handle TF modes and rename to
30118 aarch64_movdi_<mode>low.
30119 (aarch64_movdi_tihigh): Handle TF modes and rename to
30120 aarch64_movdi_<mode>high
30121 (aarch64_movtihigh_di): Handle TF modes and rename to
30122 aarch64_mov<mode>high_di
30123 (aarch64_movtilow_di): Handle TF modes and rename to
30124 aarch64_mov<mode>low_di
30125 (aarch64_movtilow_tilow): Remove spurious whitespace.
30126 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30127 splits.
30128 (aarch64_print_operand): Update.
30129
30130 2013-05-09 Alan Modra <amodra@gmail.com>
30131
30132 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30133 powerpc64le.
30134 * configure: Regenerate.
30135
30136 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30137
30138 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30139 splitter preparation statements.
30140 * config/i386/sse.md (*vec_extract* splitters): Ditto.
30141 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30142 adjust_address_nv.
30143
30144 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30145
30146 * gimple-ssa-strength-reduction.c (count_candidates): Change
30147 return value to int.
30148 (analyze_candidates_and_replace): Change type of length to int.
30149
30150 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30151
30152 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30153 (*vec_extract<mode>): Use VI12_128 mode iterator.
30154 (*vec_extract<mode>_mem): Ditto.
30155 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30156 attribute.
30157
30158 2013-05-08 Diego Novillo <dnovillo@google.com>
30159
30160 PR bootstrap/54659
30161
30162 Revert:
30163 2012-08-17 Diego Novillo <dnovillo@google.com>
30164
30165 PR bootstrap/54281
30166 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30167 * config.in: Regenerate.
30168 * configure: Regenerate.
30169 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30170
30171 2013-05-08 Jan Hubicka <jh@suse.cz>
30172
30173 PR lto/54095
30174 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30175 * cgraph.h (symtab_node_base): Add unique_name.
30176 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30177 input_overwrite_node, input_varpool_node): Stream unique_name.
30178 * cgraphclones.c (cgraph_create_virtual_clone,
30179 cgraph_function_versioning): Set unique_name.
30180 * ipa.c (function_and_variable_visibility): Set unique_name.
30181
30182 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30183
30184 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30185 (alloc_cand_and_find_basis): Restrict conditional candidate
30186 processing to CAND_MULTs.
30187
30188 2013-05-08 Jan Hubicka <jh@suse.cz>
30189
30190 PR lto/54095
30191 lto-symtab.c (lto_symtab_symbol_p): New function.
30192 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30193 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30194 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30195 Skip static symbols.
30196
30197 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
30198
30199 PR tree-optimization/57200
30200 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30201 Only call inform if the preceding warning_at returns true.
30202
30203 2013-05-07 Han Shen <shenhan@google.com>
30204
30205 * cfgexpand.c (record_or_union_type_has_array_p): New function.
30206 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30207 * common.opt (fstack-protector-strong): New option.
30208 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30209 * doc/invoke.texi (Optimization Options): Document
30210 "-fstack-protector-strong".
30211 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30212
30213 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30214
30215 * config/mips/mips.c (mips_machine_reorg2): Return 0.
30216
30217 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
30218
30219 * ira.c (update_equiv_regs): Add insn having equiv memory even if
30220 it is not lhs of the insn.
30221 (setup_reg_equiv): Remove insn having equiv memory which it is not
30222 lhs of the insn.
30223 * lra-constraints.c (process_address): Try to improve generation
30224 code for address base + disp.
30225 (lra_constraints): Make correct the code for checking insn setting
30226 up backward equivalence. Remove insn only if it is in the init
30227 insn list.
30228 * lra-eliminations.c (update_reg_eliminate): Change return value.
30229 (lra_eliminate): Use the result.
30230
30231 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
30232
30233 * config/i386/sse.md (ssescalarnummask): New mode attribute.
30234 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30235 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30236 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30237 register target operands.
30238 (*vec_extractv8hi_sse2): New pattern.
30239 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30240 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30241 (*vec_extract<mode>_mem): New insn and split pattern.
30242
30243 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
30244
30245 * config/arm/arm.c (arm_asan_shadow_offset): New function.
30246 (TARGET_ASAN_SHADOW_OFFSET): Define.
30247 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30248 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30249
30250 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30251
30252 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30253 (incr_vec_index): Return -1 if increment not found.
30254 (create_add_on_incoming_edge): Assert if increment not found.
30255 (record_increment): Limit number of increments recorded.
30256 (all_phi_incrs_profitable): Return false if an increment not found.
30257 (replace_profitable_candidates): Don't process increments that were
30258 not recorded.
30259 (analyze_candidates_and_replace): Limit size of incr_vec.
30260
30261 2013-05-07 Richard Biener <rguenther@suse.de>
30262
30263 * calls.c (special_function_p): setjmp-like functions are leaf.
30264 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30265 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30266
30267 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
30268
30269 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30270 (aarch64_simd_mov<mode>): New expander.
30271 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30272 (aarch64_simd_mov_to_<mode>high): Likewise.
30273 (aarch64_simd_mov_from_<mode>low): Likewise.
30274 (aarch64_simd_mov_from_<mode>high): Likewise.
30275 (aarch64_dup_lane<mode>): Update.
30276 (aarch64_dup_lanedi): New instruction pattern.
30277 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30278 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30279
30280 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30281
30282 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30283 (replace_mult_candidate): Remove unnecessary argument; remove
30284 unnecessary parameter from call to introduce_cast_before_cand.
30285 (replace_unconditional_candidate): Remove unnecessary parameter
30286 from call to replace_mult_candidate.
30287 (replace_conditional_candidate): Likewise.
30288 (insert_initializers): Use make_temp_ssa_name.
30289 (introduce_cast_before_cand): Remove unnecessary argument; use
30290 make_temp_ssa_name.
30291 (replace_one_candidate): Remove unnecessary argument; remove
30292 unnecessary parameter from calls to introduce_cast_before_cand.
30293 (replace_profitable_candidates): Remove unnecessary parameters
30294 from calls to replace_one_candidate.
30295
30296 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30297
30298 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30299 phi def as possibly hiding a basis for a CAND_ADD whose operands
30300 have been commuted in the analysis.
30301 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30302
30303 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30304
30305 * config/aarch64/aarch64.md
30306 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30307 shift value between 0-4.
30308
30309 2013-05-07 Richard Biener <rguenther@suse.de>
30310
30311 * double-int.h (rshift): New overload.
30312 * double-int.c (rshift): New function.
30313 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30314 (create_reference_ops_from_ref): Remove.
30315 (vn_reference_insert): Use shared ops for constructing the
30316 reference and copy it.
30317
30318 2013-05-07 Richard Biener <rguenther@suse.de>
30319
30320 PR middle-end/57190
30321 * tree-eh.c (sink_clobbers): Properly propagate
30322 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30323
30324 2013-05-07 Jakub Jelinek <jakub@redhat.com>
30325
30326 PR tree-optimization/57149
30327 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30328 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30329 collect_phi_def_edges, execute_late_warn_uninitialized): Use
30330 uninit_undefined_value_p instead of ssa_undefined_value_p.
30331
30332 PR debug/57184
30333 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30334 for modifier == EXPAND_INITIALIZER.
30335
30336 2013-05-07 Anton Blanchard <anton@samba.org>
30337
30338 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30339 for powerpc64 little endian.
30340 * configure: Regenerate.
30341
30342 2013-05-06 Graham Stott <grahams@btinternet.com>
30343
30344 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30345 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30346 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30347 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30348
30349 2013-05-06 Graham Stott <grahams@btinternet.com>
30350
30351 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30352 codes which allow non-lvalues.
30353
30354 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
30355
30356 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30357 components are all 1s.
30358 (integer_minus_onep): New function.
30359 * tree.h (integer_minus_onep): Declare it.
30360 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30361 integer_minus_onep instead of integer_all_onesp.
30362
30363 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30364
30365 PR target/52933
30366 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30367 variations of these patterns.
30368
30369 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30370
30371 * config/i386/i386.md (isa): Add x64_sse4 member.
30372 (enabled): Handle x64_sse4.
30373 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30374 instruction for 64bit SSE4_1 targets. Update insn attributes.
30375 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30376 instruction for SSE4_1 targets. Update insn attributes.
30377 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30378 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30379 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30380 const_1 selector.
30381 (*vec_extractv4si): Rename from *sse4_1_pextrd.
30382 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30383 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30384
30385 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30386
30387 PR target/57108
30388 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30389
30390 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
30391
30392 * final.c (do_assembler_dialects): Don't handle curly braces and
30393 vertical bar escaped by % as dialect delimiters.
30394 (output_asm_insn): Print curly braces and vertical bar if escaped
30395 by % and ASSEMBLER_DIALECT defined.
30396 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30397 * doc/tm.texi: Regenerated.
30398
30399 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30400
30401 * config/mips/mips.c: Include tree-pass.h.
30402 (mips_reorg): Split in pre- and post-dbr_schedule parts.
30403 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30404 (pass_mips_machine_reorg2): New machine specific pass.
30405 (insert_pass_mips_machine_reorg2): New pass plugin definition.
30406 (mips_option_override): Register the new pass.
30407 * rtl.h (cleanup_barriers): Remove prototype.
30408 (dbr_schedule): Likewise.
30409 * jump.c (cleanup_barriers): Make static.
30410 * reorg.c (dbr_schedule): Likewise.
30411
30412 2013-05-06 Richard Biener <rguenther@suse.de>
30413
30414 PR tree-optimization/57185
30415 * tree-parloops.c (add_field_for_reduction): Handle anonymous
30416 SSA names properly.
30417
30418 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30419
30420 PR target/57106
30421 * config/i386/i386.c (add_parameter_dependencies): Add dependence
30422 between "first_arg" and "insn", not "last" and "insn".
30423
30424 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30425
30426 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30427 (find_candidates_in_block): Re-enable slsr_process_phi.
30428 (create_phi_basis): Fix double counting of candidate adjustment.
30429
30430 2013-05-06 Richard Biener <rguenther@suse.de>
30431
30432 PR middle-end/57147
30433 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30434 the edge is also fallthru, preserve it and just clear the
30435 abnormal flag.
30436 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30437 also complex, preserve that and just clear the fallthru flag.
30438 * tree-inline.c (update_ssa_across_abnormal_edges): Also
30439 update virtual operands.
30440
30441 2013-05-06 Alan Modra <amodra@gmail.com>
30442
30443 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30444 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30445 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30446 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30447 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30448 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30449
30450 2013-05-06 Alan Modra <amodra@gmail.com>
30451
30452 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30453 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
30454 (DEFAULT_ASM_ENDIAN): Define.
30455 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30456 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30457 Update -K PIC clause from sysv4.h.
30458 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30459 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30460
30461 2013-05-06 Alan Modra <amodra@gmail.com>
30462
30463 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30464 twice for little-endian.
30465 (ashrdi3_no_power, ashrdi3): Support little-endian.
30466
30467 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30468
30469 PR target/55303
30470 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30471 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30472 related expanders.
30473 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30474 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30475 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30476 New predicates.
30477
30478 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30479 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30480
30481 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30482 * config/pa/pa.opt: Make mbig-switch a no-op.
30483 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30484 (CASE_VECTOR_MODE): Always return SImode.
30485 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30486 for the !TARGET_BIG_SWITCH case.
30487 * config/pa/pa-linux.h: Likewise.
30488 * config/pa/pa-openbsd.h: Likewise.
30489 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30490 * config/pa/pa.md (short_jump): Remove define_insn.
30491 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30492 (casesi0): Remove define_insn.
30493 (type): Remove btable_branch.
30494 (pa_combine_type): Likewise.
30495 (in_nullified_branch_delay): Likewise.
30496 (in_call_delay): Likewise.
30497 (define_delay): Likewise.
30498 (define_insn_reservation "Z3"): Likewise.
30499 (define_insn_reservation "Z4"): Likewise.
30500 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30501 (pa_adjust_insn_length): Remove adjustment for btable branches.
30502 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30503 and mno-big-switch
30504
30505 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30506
30507 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30508 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30509 Add m->r,x alternatives.
30510 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30511 splitters using SWI48x mode iterator.
30512 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30513 TARGET_64BIT. Add m->x alternative.
30514 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30515 Add o->x alternative. Enable for TARGET_SSE.
30516 (sse_storeq): Remove expander.
30517 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30518 with memory input operand.
30519 (*vec_extractv2di_1 splitter): New.
30520 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30521 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30522
30523 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30524
30525 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30526 (INT_LOWPART): Delete.
30527 (extract_MB): Adjust.
30528 (extract_ME): Adjust.
30529 (print_operand): Adjust.
30530
30531 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30532
30533 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30534 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30535 (reg_or_logical_cint_operand, easy_fp_constant,
30536 logical_const_operand): Delete "CONST_DOUBLE" case.
30537 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30538 "HOST_BITS_PER_WIDE_INT == 64" test.
30539 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30540 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30541 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30542 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30543 test.
30544 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30545 CONST_DOUBLE DImode/VOIDmode case.
30546 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30547 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30548 CONST_DOUBLE VOIDmode case.
30549 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30550 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30551 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30552 Delete CONST_DOUBLE case.
30553 (splitters for mov FMOVE64 const_double): Delete
30554 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30555 "HOST_BITS_PER_WIDE_INT >= 64" test.
30556 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30557 case.
30558 (mov DI const_double): Delete.
30559
30560 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30561
30562 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30563 on op shows all bits zero in mode of a lowpart subreg, return zero.
30564
30565 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30566
30567 PR target/57150
30568 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30569 to save TFmode registers and DImode to save TImode registers for
30570 caller save operations.
30571 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30572 mark being partially clobbered since they only use the first
30573 double word.
30574
30575 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30576 and TDmode only use the upper 64-bits of each VSX register.
30577
30578 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30579
30580 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30581 (find_candidates_in_block): Disable slsr_process_phi.
30582
30583 2013-05-03 Guozhi Wei <carrot@google.com>
30584
30585 * coverage.c (coverage_obj_init): Move the construction of gcov
30586 constructor to ...
30587 (build_init_ctor): ... here.
30588
30589 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30590
30591 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30592 (slsr_cand_d): Redefine def_phi.
30593 (stride_status, phi_adjust_status, count_phis_status): New enums.
30594 (find_phi_def): New.
30595 (find_basis_for_base_expr): New.
30596 (find_basis_for_candidate): Handle hidden bases.
30597 (alloc_cand_and_find_basis): Handle phi candidates.
30598 (slsr_process_phi): New.
30599 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30600 (create_mul_imm_cand): Likewise.
30601 (create_add_ssa_cand): Exclude phi base candidates.
30602 (create_add_imm_cand): Likewise.
30603 (slsr_process_cast): Likewise.
30604 (slsr_process_copy): Likewise.
30605 (find_candidates_in_block): Handle phi candidates.
30606 (dump_candidate): Likewise.
30607 (unconditional_cands): Delete.
30608 (unconditional_cands_with_known_stride_p): Delete.
30609 (phi_dependent_cand_p): New.
30610 (cand_increment): Handle phi-dependent candidates.
30611 (replace_dependent): Delete.
30612 (replace_mult_candidate): New.
30613 (replace_unconditional_candidate): New.
30614 (incr_vec_index): Move to avoid forward reference.
30615 (create_add_on_incoming_edge): New.
30616 (create_phi_basis): New.
30617 (replace_dependents): Delete.
30618 (replace_conditional_candidate): New.
30619 (phi_add_costs): New.
30620 (replace_uncond_cands_and_profitable_phis): New.
30621 (record_increment): Handle phi adjustments.
30622 (record_phi_increments): New.
30623 (record_increments): Handle phi adjustments.
30624 (phi_incr_cost): New.
30625 (lowest_cost_path): Handle phis.
30626 (total_savings): Likewise.
30627 (analyze_increments): Likewise.
30628 (ncd_with_phi): New.
30629 (ncd_of_cand_and_phis): New.
30630 (nearest_common_dominator_for_cands): Handle phi increments.
30631 (all_phi_incrs_profitable): New.
30632 (replace_profitable_candidates): Handle phi-dependent candidates.
30633 (analyze_candidates_and_replace): Likewise.
30634
30635 2013-05-03 Teresa Johnson <tejohnson@google.com>
30636
30637 PR bootstrap/57154
30638 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30639 do not exceed REG_BR_PROB_BASE.
30640
30641 2013-05-03 Jeff Law <law@redhat.com>
30642
30643 PR tree-optimization/57144
30644 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30645 operand of the condition will bit into the new type when eliminating
30646 a cast feeding a condition.
30647
30648 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30649
30650 PR rtl-optimization/57130
30651 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30652 of COMPARE as in_code to the recursive call if needed.
30653
30654 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30655
30656 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30657 (enabled): Handle new members.
30658 * config/i386/sse.md (*vec_concatv2si): Merge from
30659 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30660 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30661
30662 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30663
30664 PR tree-optimization/57027
30665 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30666 for fnms opportunity, check we got the prerequisite kind
30667 of tree / gimple before using accessor functions.
30668
30669 2013-05-03 Richard Biener <rguenther@suse.de>
30670
30671 * double-int.h (lshift): New overload without precision
30672 and arith argument.
30673 (operator *=, operator +=, operator -=): Move ...
30674 * double-int.c (operator *=, operator +=, operator -=): ... here
30675 and implement more efficiently.
30676 (mul_double_with_sign): Remove.
30677 (lshift_double): Adjust to take unsinged shift argument, push
30678 dispatching code to callers.
30679 (mul_double_wide_with_sign): Add early out for callers that
30680 are not interested in high parts or overflow.
30681 (lshift): New function.
30682 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30683 dispatch code here.
30684 (lrotate, rrotate): Use logical shifts.
30685 * expr.c (get_inner_reference): Use lshift.
30686 * fixed-value.c (do_fixed_divide): Likewise.
30687 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30688 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30689 (indirect_refs_may_alias_p): Likewise.
30690 (stmt_kills_ref_p_1): Likewise.
30691
30692 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30693
30694 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30695
30696 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30697
30698 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30699 scalar form of FABD instruction.
30700
30701 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30702
30703 * lra-constraints.c (process_alt_operands): Add checking alt
30704 number to choose the best alternative.
30705
30706 2013-05-02 Richard Biener <rguenther@suse.de>
30707
30708 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30709 bitmap and its handling.
30710 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30711
30712 2013-05-02 Richard Biener <rguenther@suse.de>
30713
30714 PR middle-end/57140
30715 * tree-inline.c (copy_loops): Properly handle removed loops.
30716 (copy_cfg_body): Mark destination loops for fixup if source
30717 loops needed fixup.
30718
30719 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30720
30721 PR target/56732
30722 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30723 generating simple_return for naked functions.
30724
30725 2013-05-02 Martin Jambor <mjambor@suse.cz>
30726
30727 PR middle-end/56988
30728 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30729 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30730 flags match.
30731 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30732 ipa_agg_replacement_value structures.
30733 (known_aggs_to_agg_replacement_list): Likewise.
30734 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30735 (read_agg_replacement_chain): Likewise.
30736 (ipcp_transform_function): Also check that by_ref flags match.
30737
30738 2013-05-02 Richard Biener <rguenther@suse.de>
30739
30740 * graphds.h (struct graph): Add obstack member.
30741 * graphds.c (new_graph): Initialize obstack and allocate
30742 vertices from it.
30743 (add_edge): Allocate edge from the obstack.
30744 (free_graph): Free the obstack instead of all edges and vertices.
30745
30746 2013-05-02 Teresa Johnson <tejohnson@google.com>
30747
30748 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30749 divides.
30750 * cfg.c (update_bb_profile_for_threading): Ditto.
30751 * tree-inline.c (copy_bb): Ditto.
30752 (copy_edges_for_bb): Ditto.
30753 (initialize_cfun): Ditto.
30754 (copy_cfg_body): Ditto.
30755 (expand_call_inline): Ditto.
30756 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30757 (estimate_node_size_and_time): Ditto.
30758 (inline_merge_summary): Ditto.
30759 * cgraphclones.c (cgraph_clone_edge): Ditto.
30760 (cgraph_clone_node): Ditto.
30761 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30762 (compute_trg_info): Ditto.
30763
30764 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30765
30766 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30767 S reg when fp attribute set.
30768 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30769
30770 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30771
30772 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30773 New pattern.
30774 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30775 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30776 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30777
30778 2013-05-02 Richard Biener <rguenther@suse.de>
30779
30780 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30781 (struct instantiate_cache_entry): New type.
30782 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30783 (struct instantiate_cache_type): New type.
30784 (set_instantiated_value, get_instantiated_value): Remove.
30785 (get_instantiated_value_entry): New function.
30786 (instantiate_scev_name): Use the new cache and adjust.
30787 (instantiate_scev_poly): Adjust.
30788 (instantiate_scev_binary): Likewise.
30789 (instantiate_array_ref): Likewise.
30790 (instantiate_scev_convert): Likewise.
30791 (instantiate_scev_not): Likewise.
30792 (instantiate_scev_3): Likewise.
30793 (instantiate_scev_2): Likewise.
30794 (instantiate_scev_r): Likewise.
30795 (instantiate_scev): Likewise.
30796 (resolve_mixers): Likewise.
30797
30798 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30799
30800 PR target/57091
30801 * lra-constraints.c (best_small_class_operands_num): Remove.
30802 (process_alt_operands): Remove small_class_operands_num. Take
30803 small classes operands into losers and only if the operand is not
30804 matched. Modify debugging output.
30805 (curr_insn_transform): Remove best_small_class_operands_num.
30806 Print insn name.
30807
30808 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30809
30810 * config/aarch64/aarch64-builtins.c
30811 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30812 * config/aarch64/aarch64-simd-builtins.def
30813 (reduc_splus_): Add new modes.
30814 (reduc_uplus_): New.
30815 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30816 (reduc_uplus_v4sf): Likewise.
30817 (reduc_splus_v4sf): Likewise.
30818 (aarch64_addv<mode>): Likewise.
30819 (reduc_uplus_<mode>): Likewise.
30820 (reduc_splus_<mode>): Likewise.
30821 (aarch64_addvv2di): Likewise.
30822 (reduc_uplus_v2di): Likewise.
30823 (reduc_splus_v2di): Likewise.
30824 (aarch64_addvv2si): Likewise.
30825 (reduc_uplus_v2si): Likewise.
30826 (reduc_splus_v2si): Likewise.
30827 (reduc_<sur>plus_<mode>): New.
30828 (reduc_<sur>plus_v2di): Likewise.
30829 (reduc_<sur>plus_v2si): Likewise.
30830 (reduc_<sur>plus_v4sf): Likewise.
30831 (aarch64_addpv4sf): Likewise.
30832 * config/aarch64/arm_neon.h
30833 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30834 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30835 add UNSPEC_SADDV, UNSPEC_UADDV.
30836 (SUADDV): New.
30837 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30838
30839 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30840
30841 * config/aarch64/arm_neon.h
30842 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30843
30844 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30845
30846 * config/aarch64/aarch64-builtins
30847 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30848
30849 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30850
30851 * config/aarch64/aarch64-simd-builtins.def
30852 (reduc_smax_): New.
30853 (reduc_smin_): Likewise.
30854 (reduc_umax_): Likewise.
30855 (reduc_umin_): Likewise.
30856 (reduc_smax_nan_): Likewise.
30857 (reduc_smin_nan_): Likewise.
30858 (fmax): Remove.
30859 (fmin): Likewise.
30860 (smax): Update for V2SF, V4SF and V2DF modes.
30861 (smin): Likewise.
30862 (smax_nan): New.
30863 (smin_nan): Likewise.
30864 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30865 (<su><maxmin><mode>3): ...This, refactor.
30866 (s<maxmin><mode>3): New.
30867 (<maxmin_uns><mode>3): Likewise.
30868 (reduc_<maxmin_uns>_<mode>): Refactor.
30869 (reduc_<maxmin_uns>_v4sf): Likewise.
30870 (reduc_<maxmin_uns>_v2si): Likewise.
30871 (aarch64_<fmaxmin><mode>: Remove.
30872 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30873 new builtin names.
30874 (vmin<q>_f<32,64>): Likewise.
30875 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30876 (FMAXMIN): New.
30877 (su): Add mappings for smax, smin, umax, umin.
30878 (maxmin): New.
30879 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30880 (FMAXMIN): Rename as...
30881 (FMAXMIN_UNS): ...This.
30882 (maxminv): Remove.
30883 (fmaxminv): Likewise.
30884 (fmaxmin): Likewise.
30885 (maxmin_uns): New.
30886 (maxmin_uns_op): Likewise.
30887
30888 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30889
30890 * config/aarch64/arm_neon.h
30891 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30892 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30893 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30894
30895 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30896
30897 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30898 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30899
30900 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30901
30902 * config/aarch64/aarch64-simd.md
30903 (vcond<mode>_internal): Handle special cases for constant masks.
30904 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30905 (vcondu<mode><mode>): Likewise.
30906 (vcond<v_cmp_result><mode>): New.
30907
30908 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30909
30910 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30911 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30912 * config/aarch64/aarch64-simd-builtins.def
30913 (cmeq): Update to BUILTIN_VALLDI.
30914 (cmgt): Likewise.
30915 (cmge): Likewise.
30916 (cmle): Likewise.
30917 (cmlt): Likewise.
30918 * config/aarch64/arm_neon.h
30919 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30920 to builtins or C as appropriate.
30921
30922 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30923
30924 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30925 (cmgeu): ...This.
30926 (cmhi): Rename to...
30927 (cmgtu): ...This.
30928 * config/aarch64/aarch64-simd.md
30929 (simd_mode): Add SF.
30930 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30931 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30932 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30933 (cstore<mode>_neg): ...This.
30934 * config/aarch64/iterators.md
30935 (VALLF): new.
30936 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30937 (COMPARISONS): New.
30938 (UCOMPARISONS): Likewise.
30939 (optab): Add missing comparisons.
30940 (n_optab): New.
30941 (cmp_1): Likewise.
30942 (cmp_2): Likewise.
30943 (CMP): Likewise.
30944 (cmp): Remove.
30945 (VCMP_S): Likewise.
30946 (VCMP_U): Likewise.
30947 (V_cmp_result): Add DF, SF modes.
30948 (v_cmp_result): Likewise.
30949 (v): Likewise.
30950 (vmtype): Likewise.
30951 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30952
30953 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30954
30955 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30956 define_insn to define_insn_and_split.
30957 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30958 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30959 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30960 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30961 (thumb2_negscc): Likewise.
30962
30963 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30964
30965 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30966
30967 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30968
30969 * config/arm/thumb2.md: Remove trailing whitespaces.
30970
30971 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30972
30973 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30974 Use gen_int_mode rather than GEN_INT.
30975
30976 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30977
30978 * value-prof.c (stream_in_histogram_value): Remove the strayed
30979 debug_gimple_stmt.
30980
30981 2013-04-30 Richard Biener <rguenther@suse.de>
30982
30983 PR middle-end/57122
30984 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30985
30986 2013-04-30 Richard Biener <rguenther@suse.de>
30987
30988 PR middle-end/57107
30989 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30990
30991 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30992
30993 PR rtl-optimization/56957
30994 PR rtl-optimization/57105
30995 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30996 variable. Use just INSN_UID for determining whether an insn
30997 should be only disconnected from the insn stream.
30998 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30999
31000 2013-04-30 Jakub Jelinek <jakub@redhat.com>
31001
31002 PR tree-optimization/57104
31003 * tsan.c (instrument_expr): Don't instrument accesses to
31004 DECL_HARD_REGISTER VAR_DECLs.
31005
31006 2013-04-30 Richard Biener <rguenther@suse.de>
31007
31008 * function.h (loops_for_fn): New inline function.
31009 (set_loops_for_fn): Likewise.
31010 * cfgloop.h (place_new_loop): Add struct function parameter.
31011 (get_loop): Likewise.
31012 (get_loops): Likewise.
31013 (number_of_loops): Likewise.
31014 (fel_next): Adjust.
31015 (fel_init): Likewise.
31016 * cfg.c (get_loop_copy): Adjust.
31017 * cfgloop.c (flow_loops_dump): Likewise.
31018 (record_loop_exits): Likewise.
31019 (verify_loop_structure): Likewise.
31020 * cfgloopanal.c (mark_irreducible_loops): Likewise.
31021 (estimate_reg_pressure_cost): Likewise.
31022 (mark_loop_exit_edges): Likewise.
31023 * cfgloopmanip.c (place_new_loop): Likewise.
31024 (add_loop): Likewise.
31025 (duplicate_loop): Likewise.
31026 * graph.c (draw_cfg_nodes): Likewise.
31027 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31028 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31029 (extract_affine_chrec): Likewise.
31030 (build_scop_iteration_domain): Likewise.
31031 * graphite.c (graphite_initialize): Likewise.
31032 * ira-build.c (create_loop_tree_nodes): Likewise.
31033 (more_one_region_p): Likewise.
31034 (rebuild_regno_allocno_maps): Likewise.
31035 (mark_loops_for_removal): Likewise.
31036 (mark_all_loops_for_removal): Likewise.
31037 (remove_unnecessary_regions): Likewise.
31038 (ira_build): Likewise.
31039 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31040 * loop-init.c (fix_loop_structure): Likewise.
31041 (gate_rtl_move_loop_invariants): Likewise.
31042 (gate_rtl_unswitch): Likewise.
31043 (gate_rtl_unroll_and_peel_loops): Likewise.
31044 (rtl_doloop): Likewise.
31045 * lto-streamer-in.c (input_cfg): Likewise.
31046 * lto-streamer-out.c (output_cfg): Likewise.
31047 * modulo-sched.c (sms_schedule): Likewise.
31048 * predict.c (tree_estimate_probability): Likewise.
31049 (tree_estimate_probability_driver): Likewise.
31050 (estimate_loops): Likewise.
31051 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31052 (move_sese_region_to_fn): Likewise.
31053 (debug_loop_num): Likewise.
31054 * tree-chrec.c (chrec_evaluate): Likewise.
31055 (hide_evolution_in_other_loops_than_loop): Likewise.
31056 (chrec_component_in_loop_num): Likewise.
31057 (reset_evolution_in_loop): Likewise.
31058 (evolution_function_is_invariant_rec_p): Likewise.
31059 * tree-if-conv.c (main_tree_if_conversion): Likewise.
31060 * tree-inline.c (copy_loops): Likewise.
31061 (copy_cfg_body): Likewise.
31062 (tree_function_versioning): Likewise.
31063 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31064 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31065 Likewise.
31066 (add_to_evolution_1): Likewise.
31067 (scev_const_prop): Likewise.
31068 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31069 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31070 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31071 (tree_ssa_lim_initialize): Likewise.
31072 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31073 (verify_loop_closed_ssa): Likewise.
31074 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
31075 (tree_ssa_loop_im): Likewise.
31076 (tree_ssa_loop_unswitch): Likewise.
31077 (tree_vectorize): Likewise.
31078 (check_data_deps): Likewise.
31079 (tree_ssa_loop_ivcanon): Likewise.
31080 (tree_ssa_loop_bounds): Likewise.
31081 (tree_complete_unroll): Likewise.
31082 (tree_complete_unroll_inner): Likewise.
31083 (tree_parallelize_loops): Likewise.
31084 (tree_ssa_loop_prefetch): Likewise.
31085 (tree_ssa_loop_ivopts): Likewise.
31086 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31087 * tree-vectorizer.c (vectorize_loops): Likewise.
31088
31089 2013-04-29 Mike Frysinger <vapier@gentoo.org>
31090
31091 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31092 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31093 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31094 with EABI_LINK_SPEC.
31095
31096 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31097
31098 PR target/44578
31099 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31100 alternative.
31101
31102 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
31103
31104 PR target/57097
31105 * lra-constraints.c (process_alt_operands): Discourage a bit more
31106 using memory for pseudos. Print cost dump for alternatives.
31107 Modify cost values for conflicts with early clobbers.
31108 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31109
31110 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31111
31112 PR target/57098
31113 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31114
31115 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31116
31117 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31118 from/to S register.
31119 (movdi_aarch64): Support LDR/STR from/to D register.
31120
31121 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31122
31123 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31124 or higher by default.
31125
31126 2013-04-29 Richard Biener <rguenther@suse.de>
31127
31128 PR middle-end/57075
31129 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31130 even if not adding abnormal edges for calls that can make
31131 abnormal gotos.
31132
31133 2013-04-29 Richard Biener <rguenther@suse.de>
31134
31135 PR middle-end/57103
31136 * tree-cfg.c (move_stmt_op): Fix condition under which to update
31137 TREE_BLOCK.
31138 (move_stmt_r): Remove redundant checking.
31139
31140 2013-04-29 Teresa Johnson <tejohnson@google.com>
31141
31142 PR bootstrap/57077
31143 * basic-block.h (apply_scale): New function.
31144 (apply_probability): Use apply_scale.
31145 * gimple-streamer-in.c (input_bb): Ditto.
31146 * lto-streamer-in.c (input_cfg): Ditto.
31147 * lto-cgraph.c (merge_profile_summaries): Ditto.
31148 * tree-optimize.c (execute_fixup_cfg): Ditto.
31149 * tree-inline.c (copy_bb): Update comment to use apply_scale.
31150 (copy_edges_for_bb): Ditto.
31151 (copy_cfg_body): Ditto.
31152
31153 2013-04-29 Tom de Vries <tom@codesourcery.com>
31154
31155 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31156 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31157 (tail_merge_optimize): Handle current_loops == NULL.
31158
31159 2013-04-26 Jeff Law <law@redhat.com>
31160
31161 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31162 (simplify_cond_using_ranges): Generalize code to simplify
31163 COND_EXPRs where one argument is a constant and the other
31164 is an SSA_NAME created by an integral type conversion.
31165
31166 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31167
31168 * config/arm/arm.md (store_minmaxsi): Use only when
31169 optimize_insn_for_size_p.
31170
31171 2013-04-29 Christian Bruel <christian.bruel@st.com>
31172
31173 PR target/57108
31174 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31175
31176 2013-04-29 Richard Biener <rguenther@suse.de>
31177
31178 PR middle-end/57089
31179 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31180 loop tree make sure to schedule a fixup for the child as well.
31181 (expand_omp_for_generic): Properly add loops.
31182 (expand_omp_for_static_nochunk): Likewise.
31183 (expand_omp_for_static_chunk): Likewise.
31184 (expand_omp_for): For the degenerate case fixup loops.
31185 (expand_omp_sections): Fix default bb placement in loops.
31186 (expand_omp_atomic_pipeline): Properly add loops.
31187
31188 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31189
31190 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31191
31192 2013-04-29 Tom de Vries <tom@codesourcery.com>
31193
31194 * tree-ssa-tail-merge.c: Update header comment.
31195
31196 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31197
31198 * config/aarch64/arm_neon.h
31199 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31200 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31201 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31202 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31203 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31204 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31205 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31206 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31207
31208 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31209
31210 * config/aarch64/aarch64-simd.md
31211 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31212 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31213 fix_trunc, fixuns_trunc.
31214 (ftrunc<VDQF:mode>2): New.
31215 * config/aarch64/iterators.md (optab): Add fix, fixuns.
31216 (fix_trunc_optab): New.
31217
31218 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31219
31220 * config/aarch64/aarch64-builtins.c
31221 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31222 iceilf, lround, iroundf.
31223
31224 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31225
31226 PR target/54349
31227 * config/i386/i386.h (enum ix86_tune_indices)
31228 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31229 New, split from X86_TUNE_INTER_UNIT_MOVES.
31230 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31231 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31232 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31233 (TARGET_INTER_UNIT_MOVES): Remove.
31234 * config/i386/i386.c (initial_ix86_tune_features): Update.
31235 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31236 (ix86_expand_convert_uns_didf_sse): Use
31237 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31238 (ix86_expand_vector_init_one_nonzero): Ditto.
31239 (ix86_expand_vector_init_interleave): Ditto.
31240 (inline_secondary_memory_needed): Return true for moves from SSE class
31241 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31242 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31243 * config/i386/constraints.md (Yi, Ym): Depend on
31244 TARGET_INTER_UNIT_MOVES_TO_VEC.
31245 (Yj, Yn): New constraints.
31246 * config/i386/i386.md (*movdi_internal): Change constraints of
31247 operand 1 from Yi to Yj and from Ym to Yn.
31248 (*movsi_internal): Ditto.
31249 (*movdf_internal): Ditto.
31250 (*movsf_internal): Ditto.
31251 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31252 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31253 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31254 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31255 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31256 * config/i386/sse.md (movdi_to_sse): Ditto.
31257 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31258 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31259 TARGET_INTER_UNIT_MOVES.
31260 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31261 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31262 instead of TARGET_INTER_UNIT_MOVES.
31263 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31264 operand 1 from Yi to Yj and from Ym to Yn.
31265
31266 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31267
31268 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31269 (float_truncate_hi_): Likewise.
31270 (float_extend_lo_): Likewise.
31271 (float_truncate_lo_): Likewise.
31272 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31273 (aarch64_float_extend_lo_v2df): Likewise.
31274 (vec_unpacks_hi_v4sf): Likewise.
31275 (aarch64_float_truncate_lo_v2sf): Likewise.
31276 (aarch64_float_truncate_hi_v4sf): Likewise.
31277 (vec_pack_trunc_v2df): Likewise.
31278 (vec_pack_trunc_df): Likewise.
31279
31280 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31281
31282 * config/aarch64/aarch64-builtins.c
31283 (aarch64_fold_builtin): Fold float conversions.
31284 * config/aarch64/aarch64-simd-builtins.def
31285 (floatv2si, floatv4si, floatv2di): New.
31286 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31287 * config/aarch64/aarch64-simd.md
31288 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31289 * config/aarch64/iterators.md (FLOATUORS): New.
31290 (optab): Add float, floatuns.
31291 (su_optab): Likewise.
31292
31293 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31294
31295 * config/aarch64/aarch64-builtins.c
31296 (aarch64_builtin_vectorized_function): Use new names for
31297 fcvt builtins.
31298 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31299 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31300 (fcvtzu): Split as...
31301 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31302 (fcvtas): Split as...
31303 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31304 (fcvtau): Split as...
31305 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31306 (fcvtps): Split as...
31307 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31308 (fcvtpu): Split as...
31309 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31310 (fcvtms): Split as...
31311 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31312 (fcvtmu): Split as...
31313 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31314 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31315 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31316 (lfrintnusf, lfrintnudf): Likewise.
31317 * config/aarch64/aarch64-simd.md
31318 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31319 define_insn.
31320 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31321 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31322 (fcvt_pattern): Likewise.
31323
31324 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31325
31326 * config/aarch64/aarch64-simd.md
31327 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31328 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31329
31330 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31331
31332 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31333 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31334 (vrnd<a,m,n,p>_f32): Implement using builtins.
31335 (vrnd<i,x><q>_f<32, 64>): New.
31336
31337 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31338
31339 * config/aarch64/aarch64-builtins.c
31340 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31341 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31342 (frintz): Rename to...
31343 (btrunc): ...this.
31344 (frintp): Rename to...
31345 (ceil): ...this.
31346 (frintm): Rename to...
31347 (floor): ...this.
31348 (frinti): Rename to...
31349 (nearbyint): ...this.
31350 (frintx): Rename to...
31351 (rint): ...this.
31352 (frinta): Rename to...
31353 (round): ...this.
31354 * config/aarch64/aarch64-simd.md
31355 (aarch64_frint<frint_suffix><mode>): Delete.
31356 (<frint_pattern><mode>2): Convert to insn.
31357 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31358 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31359 (frint_pattern): Likewise.
31360 (frint_suffix): Likewise.
31361
31362 2013-04-29 Richard Biener <rguenther@suse.de>
31363
31364 PR tree-optimization/57081
31365 * loop-init.c: Include tree-flow.h.
31366 (loop_optimizer_finalize): Free number of iteration estimates.
31367 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31368
31369 2013-04-29 Jakub Jelinek <jakub@redhat.com>
31370
31371 PR tree-optimization/57083
31372 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31373 non-singleton shift count range, zero extend low_bound for uns case.
31374
31375 * config/i386/predicates.md (general_vector_operand): New predicate.
31376 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31377 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31378 if they aren't nonimmediate operands. If their original values
31379 satisfy const_vector_equal_evenodd_p, don't shift them.
31380 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31381 predicates. For the SSE4.1 case force operands[{1,2}] into registers
31382 if not nonimmediate_operand.
31383 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31384 instead of register_operand.
31385 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31386
31387 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
31388
31389 * stor-layout.c (finalize_size_functions): Allocate a structure and
31390 reset cfun before dumping the functions.
31391
31392 2013-04-27 Jakub Jelinek <jakub@redhat.com>
31393
31394 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31395
31396 PR target/56866
31397 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31398 use xop_pmacsdqh if uns_p.
31399 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31400 the immediate rotate count.
31401
31402 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
31403
31404 * rtl.h (struct rtx_def): Add comment for field jump.
31405 (LRA_SUBREG_P): New macro.
31406 * recog.c (register_operand): Check LRA_SUBREG_P.
31407 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31408 stack frame.
31409 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31410 (lra_final_code_change): Skip subreg change for operators.
31411 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31412 if there are no operand changes.
31413 * lra-constraints.c (curr_insn_set): New.
31414 (match_reload): Set LRA_SUBREG_P.
31415 (emit_spill_move): Ditto.
31416 (check_and_process_move): Use curr_insn_set. Process only single
31417 set insns. Don't initialize sec_mem_p and change_p.
31418 (simplify_operand_subreg): Use LRA_SUBREG_P.
31419 (reg_in_class_p): New function.
31420 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31421 of #ifdef. Add code to remove cycling.
31422 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31423 non-null disp. Reload inner instead of disp when base and index
31424 are null. Try to put lo_sum into register.
31425 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31426 (check_and_process_move): Move code for move cost check to
31427 simple_move_p. Remove equiv_substitution.
31428 (simple_move_p): New function.
31429 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31430 curr_insn_set. Call check_and_process_move only for single set
31431 insns. Use the new function. Move call of check_and_process_move
31432 after operand equiv substitution and address process.
31433
31434 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31435
31436 PR go/57045
31437 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31438 with nonlocal goto receivers or returns twice calls, ignore
31439 unininitialized values from abnormal edges to nl goto receiver
31440 or returns twice call.
31441
31442 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31443
31444 PR tree-optimization/57051
31445 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31446 and VEC_RSHIFT_EXPR if shift count is a multiple of element
31447 bitsize.
31448
31449 2013-04-26 Richard Biener <rguenther@suse.de>
31450
31451 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31452 (expand_omp_taskreg): Likewise. Mark loops for fixup.
31453 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31454 (fixup_loop_arrays_after_move): New function.
31455 (move_sese_region_to_fn): Properly outline the loop tree parts
31456 of the SESE region.
31457
31458 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
31459
31460 * config/i386/i386.md (type, unit): Fix long lines.
31461
31462 2013-04-26 Richard Biener <rguenther@suse.de>
31463
31464 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31465 (lto-streamer-out.o): Likewise.
31466 * cfgloop.c (init_loops_structure): Export, add struct function
31467 argument and adjust.
31468 (flow_loops_find): Adjust.
31469 * cfgloop.h (enum loop_estimation): Add EST_LAST.
31470 (init_loops_structure): Declare.
31471 * lto-streamer-in.c: Include cfgloop.h.
31472 (input_cfg): Input the loop tree.
31473 * lto-streamer-out.c: Include cfgloop.h.
31474 (output_cfg): Output the loop tree.
31475 (output_struct_function_base): Do not drop PROP_loops.
31476
31477 2013-03-26 Richard Biener <rguenther@suse.de>
31478
31479 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31480 (pass_build_cfg): Provide PROP_loops.
31481 (move_sese_region_to_fn): Remove loops that are outlined into fn
31482 for now.
31483 * tree-inline.c: Include cfgloop.h.
31484 (initialize_cfun): Do not drop PROP_loops.
31485 (copy_loops): New function.
31486 (copy_cfg_body): Copy loop structure.
31487 (tree_function_versioning): Initialize destination loop tree.
31488 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31489 (pass_parallelize_loops): Do IL verification.
31490 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31491 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31492 the CFG make sure we fixup loops as well.
31493 * tree-ssa-tail-merge.c: Include cfgloop.h.
31494 (replace_block_by): When merging loop latches mark loops for fixup.
31495 * lto-streamer-out.c (output_struct_function_base): Drop
31496 PROP_loops for now.
31497 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31498 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31499 * ipa-split.c: Include cfgloop.h.
31500 (split_function): Add the new return block to the loop tree root.
31501 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31502 whether we have removed the forwarder block.
31503 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31504 * cfgloop.h (place_new_loop): Declare.
31505 * cfgloopmanip.c (place_new_loop): Export.
31506 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31507 (tree-switch-conversion.o): Likewise.
31508 (tree-complex.o): Likewise.
31509 (tree-inline.o): Likewise.
31510 (tree-ssa-tailmerge.o): Likewise.
31511 (ipa-split.o): Likewise.
31512 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31513 (tree-ssa-copy.o): Likewise.
31514 * tree-switch-conversion.c: Include cfgloop.h
31515 (process_switch): If we emit a bit-test cascade, schedule loops
31516 for fixup.
31517 * tree-complex.c: Include cfgloop.h.
31518 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31519 * asan.c: Include cfgloop.h.
31520 (create_cond_insert_point): Properly add new basic-blocks to
31521 loops, schedule loop fixup.
31522 * cfgloop.c (verify_loop_structure): Check that looks are not
31523 marked for fixup.
31524 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31525 to loops.
31526 (expand_omp_for_generic): Likewise.
31527 (expand_omp_sections): Likewise.
31528 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31529 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31530 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31531 is initialized, not when loops are present.
31532 * tree-parloops.c (parallelize_loops): Remove checking here.
31533 * passes.c (init_optimization_passes): Schedule a copy-propagation
31534 pass before complete unrolling of inner loops.
31535
31536 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31537
31538 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31539 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31540 (colorize_init): Add argument to _WIN32 version.
31541 * toplev.c: Include diagnostic-color.h.
31542 (process_options): Default to -fdiagnostics-color=auto if
31543 GCC_COLORS env var is in the environment.
31544 * common.opt (fdiagnostics-color=): Add Var and Init.
31545 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31546 env var is in the environment, the default is auto rather than never.
31547
31548 * diagnostic.h (file_name_as_prefix): Add context argument.
31549 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31550 the string as locus.
31551 * langhooks.c (lhd_print_error_function): Adjust caller.
31552
31553 2013-04-25 Lawrence Crowl <crowl@google.com>
31554
31555 * var-tracking.c (shared_hash_def::htab):
31556 Change type to hash_table. Update dependent calls and types.
31557
31558 2013-04-25 Lawrence Crowl <crowl@google.com>
31559
31560 * Makefile.in: Update as needed below.
31561
31562 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31563 Move declaration to after the type's method definitons.
31564
31565 * attribs.c (htab_t scoped_attributes::attribute_hash):
31566 Change type to hash_table. Update dependent calls and types.
31567
31568 * bitmap.c (htab_t bitmap_desc_hash):
31569 Change type to hash_table. Update dependent calls and types.
31570
31571 * cselib.c (htab_t cselib_hash_table):
31572 Change type to hash_table. Update dependent calls and types.
31573
31574 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31575 (hash_string_slot_node): Move implementation into lto-streamer.h
31576 struct string_slot_hasher.
31577 (eq_string_slot_node): Likewise.
31578
31579 * data-streamer-out.c: Update output_block::string_hash_table
31580 dependent calls and types.
31581
31582 * dwarf2cfi.c (htab_t trace_index):
31583 Change type to hash_table. Update dependent calls and types.
31584
31585 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31586 Change type to hash_table. Update dependent calls and types.
31587 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31588 (htab_t optimize_external_refs::map): Likewise.
31589 (htab_t output_comp_unit::extern_map): Likewise.
31590 (htab_t output_comdat_type_unit::extern_map): Likewise.
31591 (htab_t output_macinfo::macinfo_htab): Likewise.
31592 (htab_t optimize_location_lists::htab): Likewise.
31593 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31594
31595 * except.c (htab_t ehspec_hash_type):
31596 Change type to hash_table. Update dependent calls and types.
31597 (assign_filter_values::ttypes): Likewise.
31598 (assign_filter_values::ehspec): Likewise.
31599 (sjlj_assign_call_site_values::ar_hash): Likewise.
31600 (convert_to_eh_region_ranges::ar_hash): Likewise.
31601
31602 * gcse.c (htab_t pre_ldst_table):
31603 Change type to hash_table. Update dependent calls and types.
31604
31605 * ggc-common.c (htab_t saving_htab):
31606 Change type to hash_table. Update dependent calls and types.
31607 (htab_t loc_hash): Likewise.
31608 (htab_t ptr_hash): Likewise.
31609 (call_count): Rename ggc_call_count.
31610 (call_alloc): Rename ggc_call_alloc.
31611 (loc_descriptor): Rename make_loc_descriptor.
31612 (add_statistics): Rename ggc_add_statistics.
31613
31614 * ggc-common.c (saving_htab):
31615 Change type to hash_table. Update dependent calls and types.
31616
31617 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31618 (push_gimplify_context): Likewise.
31619 (pop_gimplify_context): Likewise.
31620 (struct gimple_temp_hash_elt): Added.
31621 (struct gimplify_hasher): Likewise.
31622 (struct gimplify_ctx.temp_htab):
31623 Change type to hash_table. Update dependent calls and types.
31624
31625 * gimple-fold.c: Include gimplify-ctx.h.
31626
31627 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31628 Change type to hash_table. Update dependent calls and types.
31629 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31630 avoid potential global name collision.
31631
31632 * gimplify.c: Include gimplify-ctx.h.
31633 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31634 (htab_t gimplify_ctx::temp_htab):
31635 Update dependent calls and types for new type hash_table.
31636 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31637 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31638
31639 * gimplify-ctx.h: New.
31640 (struct gimple_temp_hash_elt): Move from gimplify.c.
31641 (class gimplify_hasher): New.
31642 (struct gimplify_ctx): Move from gimple.h.
31643 (htab_t gimplify_ctx::temp_htab):
31644 Change type to hash_table. Update dependent calls and types.
31645
31646 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31647 (htab_t ivs_params::newivs_index):
31648 Change type to hash_table. Update dependent calls and types.
31649 (htab_t ivs_params::params_index): Likewise.
31650 (htab_t print_generated_program::params_index): Likewise.
31651 (htab_t gloog::newivs_index): Likewise.
31652 (htab_t gloog::params_index): Likewise.
31653
31654 * graphite.c: Include graphite-htab.h.
31655 4htab_t graphite_transform_loops::bb_pbb_mapping):
31656 Change type to hash_table. Update dependent calls and types.
31657
31658 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31659 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31660 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31661
31662 * graphite-dependences.c: Include graphite-htab.h.
31663 (loop_is_parallel_p): Change hash table type of parameter.
31664
31665 * graphite-htab.h: New.
31666 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31667 (extern find_pbb_via_hash): Move from graphite-poly.h.
31668 (extern loop_is_parallel_p): Move from graphite-poly.h.
31669 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31670
31671 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31672 (extern loop_is_parallel_p): Move to graphite-htab.h.
31673 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31674
31675 * haifa-sched.c (htab_t delay_htab):
31676 Change type to hash_table. Update dependent calls and types.
31677 (htab_t delay_htab_i2): Likewise.
31678
31679 * ira-color.c (htab_t allocno_hard_regs_htab):
31680 Change type to hash_table. Update dependent calls and types.
31681
31682 * ira-costs.c (htab_t cost_classes_htab):
31683 Change type to hash_table. Update dependent calls and types.
31684
31685 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31686 Change type to hash_table. Update dependent calls and types.
31687
31688 * loop-iv.c (htab_t bivs):
31689 Change type to hash_table. Update dependent calls and types.
31690
31691 * loop-unroll.c (htab_t opt_info::insns_to_split):
31692 Change type to hash_table. Update dependent calls and types.
31693 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31694
31695 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31696 (struct string_slot_hasher): New.
31697 (htab_t output_block::string_hash_table):
31698 Change type to hash_table. Update dependent calls and types.
31699
31700 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31701 (htab_t file_name_hash_table):
31702 Change type to hash_table. Update dependent calls and types.
31703
31704 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31705 calls and types.
31706
31707 * lto-streamer.c (htab_t tree_htab):
31708 Change type to hash_table. Update dependent calls and types.
31709
31710 * omp-low.c: Include gimplify-ctx.h.
31711
31712 * passes.c (htab_t name_to_pass_map):
31713 Change type to hash_table. Update dependent calls and types.
31714 (pass_traverse): Rename to passes_pass_traverse.
31715
31716 * plugin.c (htab_t event_tab):
31717 Change type to hash_table. Update dependent calls and types.
31718
31719 * postreload-gcse.c (htab_t expr_table):
31720 Change type to hash_table. Update dependent calls and types.
31721 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31722
31723 * sese.c (debug_rename_map_1): Make extern.
31724 (htab_t copy_bb_and_scalar_dependences::rename_map):
31725 Change type to hash_table. Update dependent calls and types.
31726
31727 * sese.h (extern debug_rename_map): Move to .c file.
31728
31729 * store-motion.c (htab_t store_motion_mems_table):
31730 Change type to hash_table. Update dependent calls and types.
31731
31732 * trans-mem.c (htab_t tm_new_mem_hash):
31733 Change type to hash_table. Update dependent calls and types.
31734
31735 * tree-browser.c (htab_t TB_up_ht):
31736 Change type to hash_table. Update dependent calls and types.
31737
31738 * tree-cfg.c (htab_t discriminator_per_locus):
31739 Change type to hash_table. Update dependent calls and types.
31740
31741 * tree-complex.c: Include tree-hasher.h
31742 (htab_t complex_variable_components):
31743 Change type to hash_table. Update dependent calls and types.
31744
31745 * tree-eh.c (htab_t finally_tree):
31746 Change type to hash_table. Update dependent calls and types.
31747
31748 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31749 struct int_tree_hasher.
31750 (extern int_tree_map_eq): Likewise.
31751 (uid_decl_map_hash): Removed.
31752 (extern decl_tree_map_eq): Likewise.
31753
31754 * tree-hasher.h: New.
31755 (struct int_tree_hasher): New.
31756 (typedef int_tree_htab_type): New.
31757
31758 * tree-inline.c: Include gimplify-ctx.h.
31759
31760 * tree-mudflap.c: Include gimplify-ctx.h.
31761
31762 * tree-parloops.c: Include tree-hasher.h.
31763 (htab_t eliminate_local_variables_stmt::decl_address):
31764 Change type to hash_table. Update dependent calls and types.
31765 (htab_t separate_decls_in_region::decl_copies): Likewise.
31766
31767 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31768 Change type to hash_table. Update dependent calls and types.
31769
31770 * tree-sra.c (candidates):
31771 Change type to hash_table. Update dependent calls and types.
31772
31773 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31774 in tree-flow.h.
31775 (int_tree_map_hash): Likewise.
31776
31777 * tree-ssa-dom.c (htab_t avail_exprs):
31778 Change type to hash_table. Update dependent calls and types.
31779
31780 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31781 Change type to hash_table. Update dependent calls and types.
31782
31783 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31784 Change type to hash_table. Update dependent calls and types.
31785
31786 * tree-ssa-phiopt.c (seen_ssa_names):
31787 Change type to hash_table. Update dependent calls and types.
31788
31789 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31790 Change type to hash_table. Update dependent calls and types.
31791
31792 * tree-ssa-uncprop.c (equiv):
31793 Change type to hash_table. Update dependent calls and types.
31794
31795 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31796
31797 PR rtl-optimization/57003
31798 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31799 call note_stores with kill_clobbered_value callback again after
31800 killing regs_invalidated_by_call.
31801
31802 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31803
31804 * config/aarch64/aarch64-simd.md
31805 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31806 (aarch64_simd_bsl<mode>): Likewise.
31807 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31808
31809 2013-04-25 Marek Polacek <polacek@redhat.com>
31810
31811 PR tree-optimization/57066
31812 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31813
31814 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31815
31816 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31817
31818 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31819
31820 * config/aarch64/aarch64-builtins.c
31821 (aarch64_fold_builtin): New.
31822 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31823 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31824 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31825 * config/aarch64/arm_neon.h
31826 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31827
31828 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31829 Tejas Belagod <tejas.belagod@arm.com>
31830
31831 * config/aarch64/aarch64-builtins.c
31832 (aarch64_gimple_fold_builtin): New.
31833 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31834 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31835 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31836 (addvv4sf): Update.
31837 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31838
31839 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31840
31841 * config/aarch64/aarch64.md
31842 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31843
31844 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31845
31846 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31847 (*ngcsi_uxtw): New pattern.
31848
31849 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31850 Julian Brown <julian@codesourcery.com>
31851
31852 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31853 (TB_DREG): Add T_V4HF.
31854 (v4hf_UP): New macro.
31855 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31856 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31857 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31858 built-ins.
31859 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31860 (arm_vector_mode_supported_p): Handle V4HF.
31861 (arm_mangle_map): Handle V4HFmode.
31862 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31863 * config/arm/arm_neon_builtins.def: Add entries for
31864 vcvtv4hfv4sf, vcvtv4sfv4hf.
31865 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31866 (neon_vcvtv4hfv4sf): Likewise.
31867 * config/arm/neon-gen.ml: Handle half-precision floating point
31868 features.
31869 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31870 * config/arm/arm_neon.h: Regenerate.
31871 * config/arm/neon.ml (type elts): Add F16.
31872 (type vectype): Add T_float16x4, T_floatHF.
31873 (type vecmode): Add V4HF.
31874 (type features): Add Requires_FP_bit feature.
31875 (elt_width): Handle F16.
31876 (elt_class): Likewise.
31877 (elt_of_class_width): Likewise.
31878 (mode_of_elt): Refactor.
31879 (type_for_elt): Handle F16, fix error messages.
31880 (vectype_size): Handle T_float16x4.
31881 (vcvt_sh): New function.
31882 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31883 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31884 (string_of_mode): Handle V4HF.
31885 * doc/arm-neon-intrinsics.texi: Regenerate.
31886
31887 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31888
31889 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31890 format specifier in 'X' case.
31891
31892 2013-04-25 Alan Modra <amodra@gmail.com>
31893
31894 PR target/57052
31895 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31896 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31897 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31898 Repeat for many other rotate/shift and mask patterns using subregs.
31899 Name lshiftrt insns.
31900 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31901 on WORDS_BIG_ENDIAN.
31902
31903 2013-04-25 Alan Modra <amodra@gmail.com>
31904
31905 * config.gcc: Support little-endian powerpc-linux targets.
31906 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31907 (LINK_OS_LINUX_SPEC): Define.
31908 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31909 Preserve MASK_LITTLE_ENDIAN.
31910 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31911 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31912 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31913 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31914 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31915 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31916 Correct fp word order for little-endian. Don't shift toc entries
31917 smaller than a word for little-endian.
31918 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31919 (bswapdi2 splits): Correct low-part subreg for little-endian.
31920 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31921 low/high where such is correct only for be.
31922 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31923 little-endian for -mcall-aixdesc.
31924
31925 2013-04-25 Alan Modra <amodra@gmail.com>
31926
31927 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31928 replace_equiv_address_nv.
31929
31930 2013-04-25 Alan Modra <amodra@gmail.com>
31931
31932 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31933
31934 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31935
31936 Revert:
31937 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31938 * rtl.h (struct rtx_def): ...
31939
31940 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31941
31942 PR rtl-optimizations/57046
31943 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31944 for multi-reg splits.
31945
31946 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31947
31948 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31949
31950 2013-04-24 Sterling Augustine <saugustine@google.com>
31951
31952 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31953 (comp_dir_string, debug_str_dwo_section): New.
31954 (DEBUG_STR_DWO_SECTION): Rename to ...
31955 (DEBUG_DWO_STR_SECTION): ... this.
31956 (DEBUG_NORM_STR_SECTION): Delete.
31957 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31958 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31959 (find_AT_string): Move most logic to ...
31960 (find_AT_string_in_table): ... here. New.
31961 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31962 add_skeleton_AT_string. Delete logic.
31963 (output_skeleton_debug_sections): Remove call to
31964 add_top_level_skeleton_die_attrs.
31965 (add_comp_dir_attribute): Move logic to comp_dir_string.
31966 (dwarf2out_init): Initialize debug_str_dwo_section.
31967 (output_indirect_string): Call find_string_form.
31968 (output_indirect_strings): Rewrite.
31969 (prune_unused_types): Empty skeleton_debug_str_hash.
31970 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31971 (dwarf2out_finish): Call output_indirect_strings.
31972
31973 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31974
31975 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31976
31977 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31978
31979 * rtl.h (struct rtx_def): Add comment for field jump.
31980 (LRA_SUBREG_P): New macro.
31981 * recog.c (register_operand): Check LRA_SUBREG_P.
31982 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31983 stack frame.
31984 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31985 (lra_final_code_change): Skip subreg change for operators.
31986 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31987 if there are no operand changes.
31988 * lra-constraints.c (curr_insn_set): New.
31989 (match_reload): Set LRA_SUBREG_P.
31990 (emit_spill_move): Ditto.
31991 (check_and_process_move): Use curr_insn_set. Process only single
31992 set insns. Don't initialize sec_mem_p and change_p.
31993 (simplify_operand_subreg): Use LRA_SUBREG_P.
31994 (reg_in_class_p): New function.
31995 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31996 of #ifdef. Add code to remove cycling.
31997 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31998 non-null disp. Reload inner instead of disp when base and index
31999 are null. Try to put lo_sum into register.
32000 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
32001 (check_and_process_move): Move code for move cost check to
32002 simple_move_p. Remove equiv_substitution.
32003 (simple_move_p): New function.
32004 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
32005 curr_insn_set. Call check_and_process_move only for single set
32006 insns. Use the new function. Move call of check_and_process_move
32007 after operand equiv substitution and address process.
32008
32009 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
32010
32011 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
32012 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
32013 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
32014
32015 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32016
32017 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
32018
32019 2013-04-24 Marek Polacek <polacek@redhat.com>
32020
32021 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32022 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32023 (select_loops_exit_conditions): Likewise.
32024 (number_of_iterations_for_all_loops): Likewise.
32025 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32026 (scev_analysis): Likewise.
32027
32028 2013-04-02 Catherine Moore <clm@codesourcery.com>
32029 Chao-ying Fu <fu@mips.com>
32030
32031 * config/mips/micromips.md (jraddiusp): New pattern.
32032 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32033 instruction if possible.
32034
32035 2013-04-24 Alan Modra <amodra@gmail.com>
32036
32037 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32038
32039 2013-04-24 Julian Brown <julian@codesourcery.com>
32040 Chung-Lin Tang <cltang@codesourcery.com>
32041
32042 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32043 dependency behavior in enumeration type DIE generation. Add TODO note
32044 to comments about future DW_FORM_sdata/udata re-work of related code.
32045
32046 2013-04-23 Lawrence Crowl <crowl@google.com>
32047
32048 * Makefile.in: Update as needed below.
32049
32050 * hash-table.h (class hash_table):
32051 Correct many methods with parameter types compare_type to the correct
32052 value_type. (Correct code was unlikely to notice the change.)
32053 (hash_table::elements_with_deleted) New.
32054 (class hashtable::iterator): New.
32055 (hashtable::begin()): New.
32056 (hashtable::end()): New.
32057 (FOR_EACH_HASH_TABLE_ELEMENT): New.
32058
32059 * statistics.c (statistics_hashes):
32060 Change type to hash_table. Update dependent calls and types.
32061
32062 * tree-into-ssa.c (var_infos):
32063 Change type to hash_table. Update dependent calls and types.
32064
32065 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32066 Change type to hash_table. Update dependent calls and types.
32067
32068 * tree-ssa-loop-im.c (struct mem_ref.refs):
32069 Change type to hash_table. Update dependent calls and types.
32070
32071 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32072 Change type to hash_table. Update dependent calls and types.
32073
32074 * tree-ssa-sccvn.c (vn_tables_s::nary):
32075 Change type to hash_table. Update dependent calls and types.
32076 (vn_tables_s::phis): Likewise.
32077 (vn_tables_s::references): Likewise.
32078
32079 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32080 (vn_reference_eq): Update parameter and return types.
32081
32082 * tree-ssa-structalias.c (pointer_equiv_class_table):
32083 Change type to hash_table. Update dependent calls and types.
32084 (location_equiv_class_table): Likewise.
32085
32086 * tree-vect-data-refs.c: Consequential changes for making
32087 peeling a hash_table.
32088
32089 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32090 (destroy_loop_vec_info): Dependent hash_table update.
32091
32092 * tree-vectorizer.h (peeling_htab):
32093 Change type to hash_table. Update dependent calls and types.
32094
32095 2013-04-23 Shiva Chen <shiva0217@gmail.com>
32096
32097 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32098 to check the register content is equal or not.
32099 * lra-constraints.c (match_reload): Use lra_assign_reg_val
32100 to assign register content record.
32101 * lra-eliminations.c (update_reg_eliminate): Use
32102 lra_update_reg_val_offset to update register content offset.
32103 * lra-int.h (struct lra_reg): Add offset member.
32104 (lra_reg_val_equal_p): New static inline function.
32105 (lra_update_reg_val_offset): New static inline function.
32106 (lra_assign_reg_val): New static inline function.
32107 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32108 to assign register content record.
32109 (initialize_lra_reg_info_element): Initial offset to zero.
32110
32111 2013-04-23 Catherine Moore <clm@codesourcery.com>
32112
32113 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32114 operands. Record compression.
32115
32116 2013-04-23 Xinliang David Li <davidxl@google.com>
32117
32118 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32119
32120 2013-04-23 Richard Biener <rguenther@suse.de>
32121
32122 PR middle-end/57036
32123 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32124 parameter, only add abnormal goto edges from the copied body
32125 if the call could perform abnormal gotos.
32126 (copy_cfg_body): Adjust.
32127
32128 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
32129
32130 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32131
32132 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
32133
32134 * coretypes.h (gimple_stmt_iterator): Add struct to make
32135 compatible with C.
32136
32137 2013-04-23 Richard Biener <rguenther@suse.de>
32138
32139 PR tree-optimization/57026
32140 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32141 from SSA names occuring in abnormal PHI nodes.
32142
32143 2013-04-22 Andi Kleen <ak@linux.intel.com>
32144
32145 * lto/lto.c (print_lto_report_1): Fix LTO report names.
32146
32147 2013-04-22 Andi Kleen <ak@linux.intel.com>
32148
32149 * lto/lto.c (print_lto_report_1): Declare early.
32150 (read_cgraph_and_symbols): Call print_lto_report_1 early.
32151
32152 2013-04-22 Andi Kleen <ak@linux.intel.com>
32153
32154 * common.opt (-flto-report-wpa): Add.
32155 * doc/invoke.texi (-flto-report-wpa): Add.
32156 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32157 (lto_main): dito.
32158
32159 2013-04-22 Xinliang David Li <davidxl@google.com>
32160
32161 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32162 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32163 * Makefile.in: New dependency
32164
32165 David Daney <ddaney.cavm@gmail.com>
32166
32167 * configure.ac (gcc_cv_as_micromips_support): Use the
32168 --fatal-warnings option.
32169 * configure: Regenerate.
32170
32171 2013-04-22 Marek Polacek <polacek@redhat.com>
32172
32173 PR sanitizer/56990
32174 * tsan.c (instrument_expr): Don't instrument expression
32175 in case its size is zero.
32176
32177 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
32178
32179 PR target/57032
32180 Revert:
32181 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32182
32183 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32184
32185 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32186
32187 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32188 (gimple_stmt_iterator): New typedef.
32189 * gimple.h (gimple_stmt_iterator): Rename to...
32190 (gimple_stmt_iterator_d): ... This.
32191 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32192 trees be valid for GIMPLE and GENERIC.
32193 (TARGET_GIMPLE_FOLD_BUILTIN): New.
32194 * gimple-fold.c (gimple_fold_call): Call target hook
32195 gimple_fold_builtin.
32196 * hooks.c (hook_bool_gsiptr_false): New.
32197 * hooks.h (hook_bool_gsiptr_false): New.
32198 * target.def (fold_stmt): New.
32199 * doc/tm.texi: Regenerate.
32200
32201 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
32202
32203 PR target/57018
32204 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32205 a set sp if no stack realignment.
32206
32207 2013-04-22 Nick Clifton <nickc@redhat.com>
32208
32209 * config.gcc (tilegx-linux): Extend extra_objs rather than
32210 overwriting it.
32211 (tilepro-linux): Likewise.
32212
32213 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32214
32215 * config/aarch64/aarch64-builtins.c
32216 (CF): Remove.
32217 (CF0, CF1, CF2, CF3, CF4, CF10): New.
32218 (VAR<1-12>): Add MAP parameter.
32219 (BUILTIN_*): Likewise.
32220 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32221 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32222 (aarch64_ushl_n<mode>): Likewise.
32223 (aarch64_sshr_n<mode>): Likewise.
32224 (aarch64_ushr_n<mode>): Likewise.
32225 (aarch64_<maxmin><mode>): Likewise.
32226 (aarch64_sqrt<mode>): Likewise.
32227 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32228 (vshr<q>_n_*): Likewise.
32229
32230 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32231
32232 * config/aarch64/aarch64-builtins.c
32233 (aarch64_simd_builtin_type_mode): Handle SF types.
32234 (sf_UP): Define.
32235 (BUILTIN_GPF): Define.
32236 (aarch64_init_simd_builtins): Handle SF types.
32237 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32238 (frecps): Likewise.
32239 (frecpx): Likewise.
32240 * config/aarch64/aarch64-simd.md
32241 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32242 (aarch64_frecpe<mode>): New.
32243 (aarch64_frecps<mode>): Likewise.
32244 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32245 (v8type): Add frecp<esx>.
32246 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32247 (aarch64_frecps<mode>): Likewise.
32248 * config/aarch64/iterators.md (FRECP): New.
32249 (frecp_suffix): Likewise.
32250 * config/aarch64/arm_neon.h
32251 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32252
32253 2013-04-22 Christian Bruel <christian.bruel@st.com>
32254
32255 PR target/56995
32256 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32257 (REG_CLASS_NAMES): Idem.
32258 (REG_CLASS_CONTENTS): Idem.
32259 (REGCLASS_HAS_FP_REG): Idem.
32260 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32261 (sh_conditional_register_usage): Idem.
32262
32263 2013-04-21 Jeff Law <law@redhat.com>
32264
32265 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32266 (ssa_forward_propagate_and_combine): Use it.
32267
32268 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32269
32270 * lra.c: Update the flow chart diagram.
32271
32272 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32273
32274 PR rtl-optimization/56847
32275 * lra-constraints.c (process_alt_operands): Discourage alternative
32276 with non-matche doffsettable memory constraint fro memory with
32277 known offset.
32278
32279 2013-04-19 Richard Biener <rguenther@suse.de>
32280
32281 PR tree-optimization/56982
32282 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32283 function.
32284 * gimplify.c (gimplify_call_expr): Notice special calls.
32285 (gimplify_modify_expr): Likewise.
32286 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32287 abnormal control flow receivers.
32288 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32289 in the same way as cfun->has_nonlocal_labels.
32290 (gimple_purge_dead_abnormal_call_edges): Likewise.
32291 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32292 receivers start a basic-block.
32293
32294 2013-04-19 Richard Biener <rguenther@suse.de>
32295
32296 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32297 member ...
32298 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
32299 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32300 (SLP_TREE_LOAD_PERMUTATION): Add.
32301 (vect_transform_slp_perm_load): Adjust prototype.
32302 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32303 (vect_free_slp_instance): Likewise.
32304 (vect_create_new_slp_node): Likewise.
32305 (vect_supported_slp_permutation_p): Remove.
32306 (vect_slp_rearrange_stmts): Adjust.
32307 (vect_supported_load_permutation_p): Likewise. Inline
32308 vect_supported_slp_permutation_p here.
32309 (vect_analyze_slp_instance): Compute load permutations per
32310 slp node instead of per instance.
32311 (vect_get_slp_defs): Adjust.
32312 (vect_transform_slp_perm_load): Likewise.
32313 (vect_schedule_slp_instance): Remove redundant code.
32314 (vect_schedule_slp): Remove hack for PR56270, add it ...
32315 * tree-vect-stmts.c (vectorizable_load): ... here, do not
32316 CSE loads for SLP. Adjust.
32317
32318 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32319
32320 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32321 spelling in two comments.
32322
32323 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32324
32325 PR target/56797
32326 * config/arm/arm.c (load_multiple_sequence): Require SP
32327 as base register for loads if SP is in the register list.
32328
32329 2013-04-19 Martin Jambor <mjambor@suse.cz>
32330
32331 PR tree-optimization/56718
32332 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32333 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32334 and made public. Adjusted all callers.
32335 (ipa_intraprocedural_devirtualization): New function.
32336 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32337 (ipa_intraprocedural_devirtualization): Likewise.
32338 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32339
32340 2013-04-19 Richard Biener <rguenther@suse.de>
32341
32342 PR tree-optimization/57000
32343 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32344
32345 2013-04-19 Terry Guo <terry.guo@arm.com>
32346
32347 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32348 Replace with ...
32349 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
32350 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32351 (cortex_m4_fmacs): Use new reservations.
32352 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32353
32354 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
32355
32356 PR rtl-optimization/56999
32357 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32358 related code.
32359 (lra_coalesce): Remove split_origin_bitmap and related code.
32360 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
32361 ranges if necessary.
32362
32363 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
32364
32365 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32366 New array.
32367 (ix86_expand_call): Remove clobbered_registers array and use
32368 x86_64_ms_sysv_extra_clobbered_registers instead.
32369 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32370 Declare here.
32371 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32372 predicate.
32373 * config/i386/i386.md (*call_rex64_ms_sysv): Use
32374 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
32375 (*call_value_rex64_ms_sysv): Ditto.
32376
32377 2013-04-18 Cary Coutant <ccoutant@google.com>
32378
32379 * dwarf2out.c (output_pubnames): Check die_perennial_p of
32380 parent instead of die_mark.
32381
32382 2013-04-18 Diego Novillo <dnovillo@google.com>
32383
32384 * gimple.c (create_gimple_tmp): New.
32385 (get_expr_type): New.
32386 (build_assign): New.
32387 (build_type_cast): New.
32388 * gimple.h (enum ssa_mode): Define.
32389 (gimple_seq_set_location): New.
32390 * asan.c (build_check_stmt): Change some gimple_build_* calls
32391 to use build_assign and build_type_cast.
32392
32393 2013-04-18 Richard Biener <rguenther@suse.de>
32394
32395 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32396 handle negative step. Remove redundant checks.
32397 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32398 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32399 for negative step and grouped loads fail to vectorize.
32400
32401 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32402
32403 * emit-rtl.c (reset_insn_used_flags): New function.
32404 (reset_all_used_flags): Use it.
32405 (verify_insn_sharing): New function.
32406 (verify_rtl_sharing): Fix verification for SEQUENCEs.
32407
32408 2013-04-18 Jakub Jelinek <jakub@redhat.com>
32409
32410 PR tree-optimization/56984
32411 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32412 and (x >> M) >= N don't register any assertion if N << M is the
32413 minimum value.
32414
32415 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32416
32417 * lower-subreg.c (resolve_simple_move): If called self-recursive,
32418 do not delete_insn insns that have not yet been emitted, only
32419 unlink them with remove_insn.
32420 * df-scan.c (df_insn_delete): Revert r197492.
32421
32422 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
32423
32424 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32425 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32426
32427 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32428
32429 * config/arm/arm.md (movsicc_insn): Convert define_insn into
32430 define_insn_and_split.
32431 (and_scc,ior_scc,negscc): Likewise.
32432 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32433
32434 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32435
32436 * config/arm/arm.c (use_return_insn): Return 0 for targets that
32437 can benefit from using a sequence of LDRD instructions in epilogue
32438 instead of a single LDM instruction.
32439
32440 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
32441
32442 PR 45688
32443 * doc/extend.texi: Fix typo.
32444
32445 2013-04-17 Richard Biener <rguenther@suse.de>
32446
32447 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32448 (vect_build_slp_tree): ... here.
32449 (vect_build_slp_tree_1): Compute which stmts of the SLP group
32450 match. Remove special-casing of mismatched complex loads.
32451 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32452 re-try the match with swapped commutative operands.
32453 (vect_supported_load_permutation_p): Remove special-casing of
32454 mismatched complex loads.
32455 (vect_analyze_slp_instance): Adjust.
32456
32457 2013-04-17 Richard Biener <rguenther@suse.de>
32458
32459 PR rtl-optimization/56921
32460 * cfgloop.h (struct loop): Add simple_loop_desc member.
32461 (struct niter_desc): Mark with GTY(()).
32462 (simple_loop_desc): Do not use aux field but simple_loop_desc.
32463 * loop-iv.c (get_simple_loop_desc): Likewise.
32464 (free_simple_loop_desc): Likewise.
32465
32466 Revert
32467 2013-04-16 Richard Biener <rguenther@suse.de>
32468
32469 PR rtl-optimization/56921
32470 * loop-init.c (pass_rtl_move_loop_invariants): Add
32471 TODO_do_not_ggc_collect to todo_flags_finish.
32472 (pass_rtl_unswitch): Same.
32473 (pass_rtl_unroll_and_peel_loops): Same.
32474 (pass_rtl_doloop): Same.
32475
32476 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32477
32478 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32479 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32480 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32481 references.
32482 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32483 * tree-streamer.c (record_common_node): Adjust reference in comment.
32484
32485 2013-04-17 Terry Guo <terry.guo@arm.com>
32486
32487 * config/arm/cortex-m4.md: Add a new bypass.
32488
32489 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32490
32491 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32492 New pattern.
32493 (*subs_<optab><mode>_multp2): New pattern.
32494 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32495 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32496
32497 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32498
32499 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32500 (*subs_mul_imm_<mode>): New pattern.
32501
32502 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32503
32504 PR target/56948
32505 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32506 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32507 (vsx_movti_32bit): Change j->wa to O->wa.
32508
32509 2013-04-16 Richard Biener <rguenther@suse.de>
32510
32511 PR rtl-optimization/56921
32512 * loop-init.c (pass_rtl_move_loop_invariants): Add
32513 TODO_do_not_ggc_collect to todo_flags_finish.
32514 (pass_rtl_unswitch): Same.
32515 (pass_rtl_unroll_and_peel_loops): Same.
32516 (pass_rtl_doloop): Same.
32517
32518 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
32519
32520 * config/arm/arm.c (emit_multi_reg_push): New declaration
32521 for an existing function.
32522 (arm_emit_strd_push): New function.
32523 (arm_expand_prologue): Used here.
32524 (arm_emit_ldrd_pop): New function.
32525 (arm_expand_epilogue): Used here.
32526 (arm_get_frame_offsets): Update condition.
32527 (arm_emit_multi_reg_pop): Add a special case for load of a single
32528 register with writeback.
32529
32530 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32531
32532 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32533 description.
32534
32535 2013-04-16 Richard Biener <rguenther@suse.de>
32536
32537 PR tree-optimization/56756
32538 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32539 (first_mem_ref_loc): New.
32540 (execute_sm): Place the load temporarily before a previous
32541 access instead of in the latch edge to ensure its SSA dependencies
32542 are defined at points dominating the load.
32543
32544 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32545
32546 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32547 correct fix by moving header and footer insn to the footer of
32548 the merged basic block. Clear BB_END of the merged-away block.
32549
32550 PR middle-end/43631
32551 * emit-rtl.c (make_note_raw): New function.
32552 (link_insn_into_chain): New static inline function.
32553 (add_insn): Use it.
32554 (add_insn_before, add_insn_after): Factor insn chain linking code...
32555 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32556 using link_insn_into_chain.
32557 (note_outside_basic_block_p): New helper function for emit_note_after
32558 and emit_note_before.
32559 (emit_note_after): Use nobb variant of add_insn_after if the note
32560 should not be contained in a basic block.
32561 (emit_note_before): Use nobb variant of add_insn_before if the note
32562 should not be contained in a basic block.
32563 (emit_note_copy): Use make_note_raw.
32564 (emit_note): Likewise.
32565 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32566 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32567 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32568 the moved barrier the tail of the basic block it follows.
32569 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32570
32571 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32572
32573 PR tree-optimization/56962
32574 * gimple-ssa-strength-reduction.c (record_increment): Only set
32575 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32576 either rhs1 or rhs2 is equal to c->base_expr.
32577
32578 2013-04-15 Richard Biener <rguenther@suse.de>
32579
32580 PR tree-optimization/56933
32581 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32582 member.
32583 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32584 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32585 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32586 dependence check ...
32587 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32588 ... here.
32589 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32590 GROUP_READ_WRITE_DEPENDENCE.
32591
32592 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32593
32594 * emit-rtl.c (reset_all_used_flags): New function.
32595 (verify_rtl_sharing): Call reset_all_used_flags before and after
32596 performing the checks.
32597
32598 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32599
32600 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32601 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32602 * config/arm/constraints.md (De): New constraint.
32603 * config/arm/neon.md (anddi3_neon): Delete.
32604 (neon_vand<mode>): Expand to standard anddi3 pattern.
32605 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32606 Move earlier in the file.
32607 (neon_inv_logic_op2): Likewise.
32608 (arm_anddi_operand_neon): New predicate.
32609
32610 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32611
32612 * configure.ac (gcc_cv_ld_as_needed): Set
32613 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32614 Use -z ignore, -z record on *-*-solaris2*.
32615 (HAVE_LD_AS_NEEDED): Update comment.
32616 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32617 * configure: Regenerate.
32618 * config.in: Regenerate.
32619 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32620 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32621 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32622 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32623 equivalents. Fix markup.
32624 * doc/tm.texi: Regenerate.
32625
32626 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32627
32628 * config/i386/i386.opt: New option mstack-protector-guard=.
32629 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32630 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32631 TARGET_SSP_TLS_GUARD.
32632 * config/i386/i386.c (ix86_option_override_internal): Set
32633 ix86_stack_protector_guard.
32634 * config/i386/i386.md (stack_protect_set): Enable for
32635 TARGET_SSP_TLS_GUARD only.
32636 (stack_protect_set_<mode>): Ditto.
32637 (stack_protect_test): Ditto.
32638 (stack_protect_test_<mode>): Ditto.
32639 * doc/invoke.texi (i386 Option): Document.
32640
32641 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32642
32643 PR target/56890
32644 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32645 (S_MODES): Set H_MODE bit.
32646 (SF_MODES): Set only S_MODE and SF_MODE bits.
32647 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32648 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32649 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32650 <MODE_FLOAT>: Likewise.
32651
32652 2013-04-15 Joey Ye <joey.ye@arm.com>
32653
32654 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32655
32656 2013-04-15 Joey Ye <joey.ye@arm.com>
32657
32658 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32659 for real far jump.
32660 (thumb_far_jump_used_p): Count instruction size and set
32661 far_jump_used.
32662
32663 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32664
32665 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32666 * resource.c (mark_target_live_regs): Reformat conditional block.
32667
32668 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32669
32670 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32671 notes, they are emitted only just before final.
32672 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32673
32674 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32675
32676 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32677 * cfgrtl.c (delete_insn): Call it here instead.
32678 * lra-spills.c (lra_final_code_change): Use delete_insn.
32679 * haifa-sched.c (sched_remove_insn): Likewise.
32680 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32681 returning to the nop pool.
32682 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32683 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32684
32685 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32686
32687 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32688 * doc/tm.texi: Regenerated.
32689
32690 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32691
32692 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32693 QImode checks.
32694
32695 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32696
32697 * df-core.c (df_find_def): Compare register numbers.
32698 (df_find_use): Likewise.
32699
32700 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32701
32702 PR target/56903
32703 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32704 lra_in_progress for return.
32705
32706 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32707
32708 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32709 define_insn into define_insn_and_split and emit movsicc patterns.
32710
32711 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32712
32713 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32714
32715 2013-04-12 Richard Biener <rguenther@suse.de>
32716
32717 * tree-pass.h (TODO_do_not_ggc_collect): New.
32718 * passes.c (execute_one_ipa_transform_pass): Honor
32719 TODO_do_not_ggc_collect.
32720 (execute_one_pass): Likewise.
32721
32722 Revert
32723 2013-04-10 Richard Biener <rguenther@suse.de>
32724
32725 * passes.c (init_optimization_passes): Remove reload pass.
32726 * ira.c (do_reload): Merge into ...
32727 (ira): ... this.
32728 (rest_of_handle_reload): Remove.
32729 (pass_reload): Likewise.
32730 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32731 of reload for vzeroupper pass placement.
32732
32733 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32734
32735 PR tree-optimization/56918
32736 PR tree-optimization/56920
32737 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32738 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32739 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32740 use wide_mul_with_sign method.
32741
32742 2013-04-12 Richard Biener <rguenther@suse.de>
32743
32744 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32745 not be considered a gimple constant.
32746
32747 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32748
32749 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32750 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32751 operations.
32752
32753 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32754 Jakub Jelinek <jakub@redhat.com>
32755
32756 * opts.c: Include diagnostic-color.h.
32757 (common_handle_option): Handle OPT_fdiagnostics_color_.
32758 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32759 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32760 (diagnostic-color.o): New.
32761 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32762 (diagnostic_color_rule): New enum.
32763 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32764 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32765 the location string.
32766 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32767 either NULL, or color kind.
32768 * diagnostic-color.c: New file.
32769 * diagnostic-color.h: New file.
32770 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32771 arguments.
32772 * doc/invoke.texi (-fdiagnostics-color): Document.
32773 * pretty-print.h (pp_show_color): Define.
32774 (struct pretty_print_info): Add show_color field.
32775 * diagnostic.c: Include diagnostic-color.h.
32776 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32777 macros. Colorize error:, warning: etc. strings and also the location
32778 string.
32779 (diagnostic_show_locus): Colorize the caret line.
32780 * pretty-print.c: Include diagnostic-color.h.
32781 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32782 inside of %< %> quotes or quoted through q format modifier.
32783
32784 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32785
32786 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32787
32788 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32789
32790 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32791 code in CC_NZ mode.
32792 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32793 pattern.
32794
32795 2013-04-11 Marek Polacek <polacek@redhat.com>
32796
32797 PR tree-optimization/48184
32798 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32799
32800 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32801
32802 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32803 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32804 (skip_simple_arithmetic): Tidy up.
32805 * tree.h (skip_simple_constant_arithmetic): Declare.
32806
32807 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32808
32809 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32810
32811 2013-04-11 Richard Biener <rguenther@suse.de>
32812
32813 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32814 generate vector constants.
32815
32816 2013-04-11 Richard Biener <rguenther@suse.de>
32817
32818 PR tree-optimization/56878
32819 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32820 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32821 New function.
32822 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32823 Prefer to align the DR with the most invariant base address.
32824
32825 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32826
32827 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32828 comment.
32829
32830 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32831
32832 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32833 floating-point vector comparisons against 0.
32834
32835 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32836
32837 PR tree-optimization/56899
32838 * fold-const.c (extract_muldiv_1): Apply distributive law
32839 only if TYPE_OVERFLOW_WRAPS (ctype).
32840
32841 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32842
32843 PR target/56124
32844 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32845 loading has side effect.
32846
32847 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32848
32849 * config/sparc/sparc.c: Include tree-pass.h.
32850 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32851 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32852 head of file. Change return type. Split off gate function.
32853 (sparc_gate_work_around_errata): New function.
32854 (pass_work_around_errata): New pass definition.
32855 (insert_pass_work_around_errata) New pass insert definition to
32856 insert pass_work_around_errata just after delayed-branch scheduling.
32857 (sparc_option_override): Insert the pass.
32858 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32859
32860 2013-04-10 David S. Miller <davem@davemloft.net>
32861
32862 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32863 or -mcpu=hypersparc.
32864
32865 * target.def (cstore_mode): New hook.
32866 * target.h: Include insn-codes.h
32867 * targhooks.c: Likewise.
32868 (default_cstore_mode): New function.
32869 * targhooks.h: Declare it.
32870 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32871 * doc/tm.texi: Rebuild.
32872 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32873 target hook, rather than inspecting the insn_data.
32874 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32875 (TARGET_CSTORE_MODE): Redefine.
32876 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32877 result patterns.
32878 * config/sparc/predicates.md (cstore_result_operand): New special
32879 predicate.
32880 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32881 Use it for operand 0.
32882 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32883 (*snesi_special): Likewise.
32884 (*snesi_zero): Likewise.
32885 (*seqsi_zero): Likewise.
32886 (*sltu_insn): Likewise.
32887 (*sgeu_insn): Likewise.
32888 (*seqdi_special): Make operand 0 and comparison operation be of
32889 DImode.
32890 (*snedi_special): Likewise.
32891 (*snedi_special_vis3): Likewise.
32892 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32893 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32894 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32895 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32896 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32897 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32898 (*sltu_extend_sp64): Likewise.
32899 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32900 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32901 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32902 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32903 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32904
32905 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32906
32907 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32908 (aarch64_start_file): Use the new function.
32909
32910 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32911 Jason Merrill <jason@redhat.com>
32912
32913 * common.opt: Add -gdwarf.
32914 * opts.c (common_handle_option): Handle it.
32915 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32916
32917 2013-04-10 Richard Biener <rguenther@suse.de>
32918
32919 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32920 (execute_one_ipa_transform_pass): But unconditionally here.
32921 (execute_one_pass): And here.
32922 (init_optimization_passes): Remove reload pass.
32923 * tree-pass.h (TODO_ggc_collect): Remove.
32924 (pass_reload): Likewise.
32925 * ira.c (do_reload): Merge into ...
32926 (ira): ... this.
32927 (rest_of_handle_reload): Remove.
32928 (pass_reload): Likewise.
32929 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32930 of reload for vzeroupper pass placement.
32931 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32932 and todo_flags_finish of all passes.
32933
32934 2013-04-10 Richard Biener <rguenther@suse.de>
32935
32936 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32937 first_const_oprnd field, rename first_def_type to first_op_type.
32938 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32939 (vect_get_and_check_slp_defs): Always use the type of the
32940 operand. Allow mixed vect_external_def, vect_constant_def types.
32941 (vect_get_constant_vectors): Handle mixed vect_external_def,
32942 vect_constant_def types.
32943
32944 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32945
32946 PR tree-optimization/55524
32947 * tree-ssa-math-opts.c
32948 (convert_mult_to_fma): Don't use an fms construct
32949 when we don't have an fms operation, but fnma, and it looks
32950 likely that we'll be able to use the latter.
32951
32952 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32953
32954 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32955 function.
32956 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32957 inline fail caused by overwritable functions.
32958
32959 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32960
32961 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32962 unnecessary bits in the constant power of two case.
32963
32964 2013-04-10 Richard Biener <rguenther@suse.de>
32965
32966 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32967 broken code swapping operands.
32968 (vect_build_slp_tree): Do not compute load permutations here.
32969 (vect_analyze_slp_instance): Compute load permutations here,
32970 after building the SLP tree.
32971
32972 2013-04-09 Christian Bruel <christian.bruel@st.com>
32973
32974 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32975 of next/prev_real_insn.
32976
32977 2013-04-09 Jan Hubicka <jh@suse.cz>
32978
32979 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32980 Drop aliased parameter.
32981 (function_and_variable_visibility): Do not handle alias pairs.
32982 * cgraph.c (varpool_externally_visible_p): Update prototype.
32983 * varpool.c (varpool_add_new_variable): Update.
32984
32985 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32986
32987 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32988
32989 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32990
32991 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32992
32993 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32994
32995 2013-04-09 Marek Polacek <polacek@redhat.com>
32996
32997 PR tree-optimization/48762
32998 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32999
33000 2013-04-09 Richard Biener <rguenther@suse.de>
33001
33002 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
33003 dealing with cost.
33004 (vect_build_slp_tree): Likewise.
33005 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
33006 calculating the cost of a SLP instance.
33007 (vect_analyze_slp_instance): Use it from here, after building
33008 the SLP tree.
33009
33010 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33011
33012 PR middle-end/56883
33013 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
33014 expand_omp_for_static_chunk): Use simple_p = true in
33015 force_gimple_operand_gsi calls when assigning to addressable decls.
33016
33017 2013-04-09 Jeff Law <law@redhat.com>
33018
33019 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
33020 when the boolean was created by converting a wider object which
33021 had a boolean range.
33022
33023 2013-04-09 Richard Biener <rguenther@suse.de>
33024
33025 * tree-vectorizer.h (slp_void_p): Remove.
33026 (slp_tree): Typedef before _slp_tree declaration.
33027 (struct _slp_tree): Use a vector of slp_tree as children.
33028 (vect_get_place_in_interleaving_chain): Remove.
33029 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33030 Move ...
33031 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33032 and make static.
33033 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33034 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33035 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33036 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33037 Use slp_node instead of slp_void_p and adjust.
33038
33039 2013-04-09 Richard Biener <rguenther@suse.de>
33040
33041 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33042 work that is not necessary.
33043
33044 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33045
33046 PR tree-optimization/56854
33047 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33048 forward into clobber stmts if it would change MEM_REF lhs into
33049 non-MEM_REF.
33050
33051 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
33052
33053 * tree.c (type_hash_lookup, type_hash_add): Make static.
33054 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33055
33056 2013-04-09 Richard Biener <rguenther@suse.de>
33057
33058 * tree.h (unsave_expr_now): Remove.
33059 * tree-inline.c (mark_local_for_remap_r): Remove.
33060 (unsave_expr_1): Likewise.
33061 (unsave_r): Likewise.
33062 (unsave_expr_now): Likewise.
33063 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33064 (propagate_tree_value): Likewise.
33065
33066 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
33067
33068 * doc/rtl.texi (sequence): Rewrite documentation to match the
33069 current use of SEQUENCE rtl objects.
33070 * rtl.def (SEQUENCE): Likewise.
33071
33072 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33073 Update documentation.
33074 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33075 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33076
33077 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33078
33079 2013-04-08 Teresa Johnson <tejohnson@google.com>
33080
33081 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33082 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33083 methods.
33084 (estimate_edge_size_and_time): Add comment to suggest using rounding
33085 methods.
33086 (estimate_node_size_and_time): Ditto.
33087 (remap_edge_change_prob): Use helper rounding divide methods.
33088 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33089 (gimple_mod_pow2_value_transform): Ditto.
33090 (gimple_mod_subtract_transform): Ditto.
33091 (gimple_ic_transform): Ditto.
33092 (gimple_stringops_transform): Ditto.
33093 * stmt.c (conditional_probability): Ditto.
33094 (emit_case_dispatch_table): Ditto.
33095 * lto-cgraph.c (merge_profile_summaries): Ditto.
33096 * tree-optimize.c (execute_fixup_cfg): Ditto.
33097 * cfgcleanup.c (try_forward_edges): Ditto.
33098 * cfgloopmanip.c (scale_loop_profile): Ditto.
33099 (loopify): Ditto.
33100 (duplicate_loop_to_header_edge): Ditto.
33101 (lv_adjust_loop_entry_edge): Ditto.
33102 * tree-vect-loop.c (vect_transform_loop): Ditto.
33103 * profile.c (compute_branch_probabilities): Ditto.
33104 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33105 * lto-streamer-in.c (input_cfg): Ditto.
33106 * gimple-streamer-in.c (input_bb): Ditto.
33107 * ipa-cp.c (update_profiling_info): Ditto.
33108 (update_specialized_profile): Ditto.
33109 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33110 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33111 rounding methods.
33112 * sched-rgn.c (compute_dom_prob_ps): Ditto.
33113 (compute_trg_info): Ditto.
33114 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33115 (purge_dead_edges): Ditto.
33116 * loop-unswitch.c (unswitch_loop): Ditto.
33117 * cgraphclones.c (cgraph_clone_edge): Ditto.
33118 (cgraph_clone_node): Ditto.
33119 * tree-inline.c (copy_bb): Ditto.
33120 (copy_edges_for_bb): Ditto.
33121 (initialize_cfun): Ditto.
33122 (copy_cfg_body): Ditto.
33123 (expand_call_inline): Ditto.
33124
33125 2013-04-08 Kai Tietz <ktietz@redhat.com>
33126
33127 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33128 TARGET_CYGWIN64 by TARGET_64BIT.
33129
33130 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33131
33132 * config/epiphany/epiphany.md (GPR_1): New constant.
33133 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33134 * config/epiphany/epiphany.c (gen_compare_reg):
33135 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33136 is already in place.
33137 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33138 Don't require being called during rtl expansion; If y operlaps r0,
33139 return 0.
33140 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33141 (epiphany_expand_epilogue): Likewise.
33142
33143 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33144 Don't use CC_FPmode for ORDERED / UNORDERED.
33145 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33146
33147 * config/epiphany/constraints.md (CnL): New constraint.
33148 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33149 * config/epiphany/predicates.md (add_operand): Allow 1024.
33150
33151 * config/epiphany/epiphany.md (logical_op): New code iterator.
33152 (op_mnc): New code attribute.
33153 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33154 (mov_f+1, mov_f+2): New peephole2 patterns.
33155
33156 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33157 (cstoresi4): Also allow re-use of zero result when doing a NE
33158 comparison to a non-zero operand.
33159 Use (clobber (scratch)) for first insn if the gpr output is not needed.
33160
33161 * config/epiphany/epiphany.md (<insn_opname>v2si3):
33162 Use gen_addsi3_i / gen_subsi3_i.
33163
33164 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33165
33166 PR c++/34949
33167 PR c++/50243
33168 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33169 contain anything but clobbers, at most one __builtin_stack_restore,
33170 optionally debug stmts and final resx, and if it has at least one
33171 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
33172 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33173 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33174 which isn't defaut definition, remove them.
33175 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33176 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33177 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33178 with MEM_REF LHS with SSA_NAME address.
33179
33180 2013-04-08 Jeff Law <law@redhat.com>
33181
33182 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33183
33184 2013-04-08 Richard Biener <rguenther@suse.de>
33185
33186 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33187 extra newline.
33188 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33189 determined vector type.
33190 (vect_analyze_data_refs): Likewise.
33191 (vect_get_new_vect_var): Adjust.
33192 (vect_create_destination_var): Preserve SSA name versions.
33193 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33194 not dump anything here.
33195
33196 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33197
33198 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33199 Add member lr_slot_known.
33200 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33201 if necessary.
33202 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33203 Remove code that sets lr_slot_offset according to what a previous
33204 version of epiphany_emit_save_restore used to do.
33205 (epiphany_emit_save_restore): When doing an lr save or restore,
33206 set/verify lr_slot_known and lr_slot_offset.
33207
33208 2013-04-08 Xinyu Qi <xyqi@marvell.com>
33209
33210 PR target/54338
33211 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33212 in ALL_REGS.
33213
33214 2013-04-08 Richard Biener <rguenther@suse.de>
33215
33216 * alias.c (find_base_term): Fix thinko in previous change.
33217
33218 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33219
33220 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33221 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33222 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
33223 if possible to compute val.
33224 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33225 For QImode integers don't require anything about precision. Use
33226 const_with_all_bytes_same to find out if the constant doesn't have
33227 repeated bytes in it.
33228
33229 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33230
33231 * config/s390/s390.c (s390_expand_insv): Only accept insertions
33232 within mode size.
33233
33234 2013-04-08 Marek Polacek <polacek@redhat.com>
33235
33236 PR rtl-optimization/48182
33237 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33238 value to 1.
33239
33240 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33241
33242 PR target/55487
33243 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33244 nuses, make sure we have a label.
33245
33246 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33247
33248 PR target/56843
33249 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33250 (rs6000_emit_swdiv_low_precision): Remove.
33251 (rs6000_emit_swdiv): Rewrite to handle between one and four
33252 iterations of Newton-Raphson generally; modify required number of
33253 iterations for some cases.
33254 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33255
33256 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
33257
33258 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33259 set-but-unused variable.
33260
33261 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33262 basic blocks of released function bodies garbage-collectable.
33263
33264 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33265 (struct rtl_opt_pass): Add TODO_df_finish.
33266
33267 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33268
33269 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33270
33271 * config/arm/constraints.md (q): New constraint.
33272 * config/arm/ldrdstrd.md: New file.
33273 * config/arm/arm.md (ldrdstrd.md) New include.
33274 (arm_movdi): Use "q" instead of "r" constraint
33275 for double-word memory access.
33276 (movdf_soft_insn): Likewise.
33277 * config/arm/vfp.md (movdi_vfp): Likewise.
33278 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33279 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33280 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33281 (mem_ok_for_ldrd_strd): Likewise.
33282 (output_move_double): Update assertion.
33283
33284 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33285
33286 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33287
33288 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33289
33290 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33291 define_insn_and_split.
33292 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33293
33294 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33295
33296 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33297 define_insn_and_split.
33298 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33299 (shiftsi3_compare): New pattern.
33300 (rrx): New pattern.
33301 * config/arm/unspecs.md (UNSPEC_RRX): New.
33302
33303 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33304
33305 * config/arm/arm.md (negdi_extendsidi): New pattern.
33306 (negdi_zero_extendsidi): Likewise.
33307
33308 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33309
33310 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33311 define_insn_and_split.
33312 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33313 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33314
33315 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33316
33317 * config/arm/arm.md (arm_subdi3): Convert define_insn into
33318 define_insn_and_split.
33319 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33320 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33321
33322 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33323
33324 * config/arm/arm.md (subsi3_carryin): New pattern.
33325 (subsi3_carryin_const): Likewise.
33326 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33327 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33328
33329 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33330
33331 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33332
33333 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33334
33335 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33336 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33337
33338 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33339
33340 * config/arm/arm.c (arm_expand_builtin): Change fcode
33341 type to unsigned int.
33342
33343 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33344
33345 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33346
33347 2013-04-04 Ian Lance Taylor <iant@google.com>
33348
33349 * doc/standards.texi (Standards): The Go frontend supports the Go 1
33350 language standard.
33351
33352 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
33353
33354 PR middle-end/56729
33355 * df-scan.c (df_insn_delete): Disable failing assert.
33356
33357 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33358
33359 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33360 New function prototype.
33361 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33362 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33363 (arm_builtin_vectorized_function): New function.
33364
33365 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33366
33367 * config/arm/arm_neon_builtins.def: New file.
33368 * config/arm/arm.c (neon_builtin_data): Move contents to
33369 arm_neon_builtins.def.
33370 (enum arm_builtins): Include neon builtin definitions.
33371 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33372 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33373
33374 2013-04-04 Marek Polacek <polacek@redhat.com>
33375
33376 PR tree-optimization/48186
33377 * predict.c (maybe_hot_frequency_p): Return false if
33378 HOT_BB_FREQUENCY_FRACTION is 0.
33379 (cgraph_maybe_hot_edge_p): Likewise.
33380
33381 2013-04-04 Richard Biener <rguenther@suse.de>
33382
33383 PR tree-optimization/56826
33384 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33385 more accurately.
33386
33387 2013-04-04 Richard Biener <rguenther@suse.de>
33388
33389 PR tree-optimization/56213
33390 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33391 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33392
33393 2013-04-04 Richard Biener <rguenther@suse.de>
33394
33395 PR tree-optimization/56837
33396 * tree-loop-distribution.c (classify_partition): For non-zero
33397 values require that the value has the same precision as its
33398 mode to be useful as memset value.
33399
33400 2013-04-03 Nick Clifton <nickc@redhat.com>
33401
33402 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33403 (fmssf4): Use fmsf.s on E3V5 architectures.
33404 (fnmasf4): Use fnmaf.s on E3V5 architectures.
33405 (fnmssf4): Use fnmsf.s on E3V5 architectures.
33406
33407 2013-04-03 Jeff Law <law@redhat.com>
33408
33409 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33410 (lra-eliminations.o): Likewise.
33411
33412 2013-04-03 Teresa Johnson <tejohnson@google.com>
33413
33414 * gcov-io.c (compute_working_sets): Moved most of body of old
33415 compute_working_sets here from profile.c.
33416 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33417 (gcov_working_set_t): Moved typedef here from basic-block.h
33418 (compute_working_set): Declare.
33419 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33420 (get_working_sets): Renamed from compute_working_set,
33421 replace most of body with call to new compute_working_sets.
33422 (get_exec_counts): Replace call to compute_working_sets
33423 to get_working_sets.
33424 * profile.h (get_working_sets): Renamed from compute_working_set.
33425 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33426 to get_working_sets.
33427 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33428 * gcov-dump.c (dump_working_sets): New function.
33429
33430 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
33431
33432 * hwint.c (sext_hwi, zext_hwi): New functions.
33433 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33434 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33435 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33436 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33437 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33438 (sext_hwi, zext_hwi): New functions.
33439
33440 2013-04-03 Jeff Law <law@redhat.com>
33441
33442 PR tree-optimization/56799
33443 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33444 back test for widening conversion erroneously dropped in prior change.
33445
33446 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33447
33448 PR target/56809
33449 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33450 instead of next_real_insn.
33451
33452 2013-04-03 Marek Polacek <polacek@redhat.com>
33453
33454 PR sanitizer/55702
33455 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33456
33457 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33458
33459 PR target/56809
33460 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33461 next_real_insn.
33462 (thumb1_output_casesi): Likewise.
33463 (thumb2_output_casesi): Likewise.
33464
33465 2013-04-03 Richard Biener <rguenther@suse.de>
33466
33467 PR tree-optimization/56817
33468 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33469 Split out ...
33470 (tree_unroll_loops_completely_1): ... new function to manually
33471 walk the loop tree, properly defering outer loops of unrolled
33472 loops to later iterations.
33473
33474 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33475
33476 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33477 (vectorizable_load): Likewise.
33478 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33479 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33480
33481 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33482
33483 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33484 BIT_FIELD_REF.
33485
33486 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33487
33488 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33489
33490 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33491
33492 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33493
33494 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33495
33496 PR tree-optimization/56790
33497 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33498 folding.
33499
33500 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33501
33502 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33503 Handle VEC_MERGE.
33504 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33505 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33506 equal arguments.
33507
33508 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33509
33510 PR c/19449
33511 * tree.h (force_folding_builtin_constant_p): New decl.
33512 * builtins.c (force_folding_builtin_constant_p): New variable.
33513 (fold_builtin_constant_p): Fold immediately also if
33514 force_folding_builtin_constant_p.
33515
33516 2013-04-03 Richard Biener <rguenther@suse.de>
33517
33518 PR tree-optimization/56812
33519 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33520 DRs of the same interleaving chain are independent.
33521
33522 2013-04-02 Jason Merrill <jason@redhat.com>
33523
33524 * gdbinit.in (pbb): Use debug fn.
33525
33526 2013-04-02 Lawrence Crowl <crowl@google.com>
33527
33528 * sese.h (struct ivtype_map_elt_s): Remove unused.
33529 (extern debug_ivtype_map): Remove unused.
33530 (extern eq_ivtype_map_elts): Remove unused.
33531 * sese.c (debug_ivtype_map): Removed unused.
33532 (debug_ivtype_map_1): Removed unused.
33533 (debug_ivtype_elt): Remove unused.
33534 (eq_ivtype_map_elts): Remove unused.
33535
33536 2013-04-02 Kai Tietz <ktietz@redhat.com>
33537
33538 PR target/52790
33539 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33540 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33541 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33542 function.
33543 (legitimize_pe_coff_symbol): Likewise.
33544 (is_imported_p): New helper-function.
33545 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33546 for Windows x64 targets.
33547 (ix86_expand_prologue): Optimize for pe-coff targets.
33548 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33549 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33550 medium/large code-model.
33551 (legitimize_pic_address): Likewise.
33552 (legitimize_tls_address): Likewise.
33553 (ix86_expand_call): Likewise.
33554 (x86_output_mi_thunk): Likewise.
33555 (get_dllimport_decl): Add new beimport argument.
33556 (construct_plt_address): Don't assert for x64 pe-coff targets.
33557 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33558 targets.
33559 (SYMBOL_FLAG_STUBVAR): New macro.
33560 (SYMBOL_REF_STUBVAR_P): Likewise.
33561 * config/i386/winnt.c (stub_list): New structure.
33562 (stub_head): New local variable.
33563 (i386_pe_record_stub): New function.
33564 (i386_pe_file_end): Emit refptr-stubs.
33565
33566 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33567
33568 PR rtl-optimization/56745
33569 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33570 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33571
33572 PR c++/34949
33573 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33574 and both of them are MEM_REFs, just compare first argument for
33575 equality and attempt to deal even with differing offsets.
33576
33577 PR c++/34949
33578 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33579 of gimple_clobber_p to be MEM_REF.
33580 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33581 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33582 after gimplification.
33583 * asan.c (get_mem_ref_of_assignment): Don't instrument
33584 gimple_clobber_p stmts.
33585 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33586 gimple_clobber_p stmt if they have MEM_REF lhs and
33587 are dead because of another gimple_clobber_p stmt.
33588 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33589 gimple_clobber_p stmts like debug stmts.
33590 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33591 that refer to unused VAR_DECLs or uninitialized values.
33592 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33593 gimple_clobber_p stmts if they refer to removed parameters.
33594 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33595 formatting.
33596
33597 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33598
33599 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33600 using SWI48 mode attribute.
33601
33602 2013-04-02 Wei Mi <wmi@google.com>
33603
33604 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33605 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33606 *<rotate_insn><mode>3_mask in i386.md.
33607
33608 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33609
33610 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33611
33612 2013-04-02 Richard Biener <rguenther@suse.de>
33613
33614 PR tree-optimization/56778
33615 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33616 Runtime alias tests are not supported for gather loads.
33617 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33618 stmts referenced from SSA operands before updating SSA form.
33619
33620 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33621 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33622
33623 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33624 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33625 * config/arm/cortex-a53.md: New file.
33626 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33627 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33628 * config/arm/arm.c (arm_issue_rate): Likewise.
33629 * config/arm/arm-tune.md: Regenerate
33630 * config/arm/arm-tables.opt: Regenerate.
33631 * config/arm/arm-cores.def: Add cortex-a53.
33632
33633 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33634
33635 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33636 non-static link.
33637
33638 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33639
33640 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33641 scalar load/store operations using B/H registers.
33642 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33643
33644 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33645
33646 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33647 scalar move.
33648 * config/aarch64/aarch64.c
33649 (aarch64_simd_scalar_immediate_valid_for_move): New.
33650 * config/aarch64/aarch64-protos.h
33651 (aarch64_simd_scalar_immediate_valid_for_move): New.
33652 * config/aarch64/constraints.md (Dh, Dq): New.
33653 * config/aarch64/iterators.md (hq): New.
33654
33655 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33656
33657 * reorg.c (get_branch_condition): Deal with conditional returns.
33658 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33659
33660 2013-04-01 Wei Mi <wmi@google.com>
33661
33662 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33663 Truncate operand 2 using %b asm operand modifier.
33664 (*<shift_insn><mode>3_mask): Ditto.
33665 (*<rotate_insn><mode>3_mask): Ditto.
33666
33667 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33668
33669 PR middle-end/56798
33670 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33671
33672 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33673
33674 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33675 of next_real_insn.
33676 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33677
33678 2013-03-30 Lawrence Crowl <crowl@google.com>
33679
33680 * dse.c (clear_alias_sets): Remove never set.
33681 (disqualified_clear_alias_sets): Remove never set.
33682 (clear_alias_mode_pool): Remove never set.
33683 (dse_step0): Remove condition that is never true.
33684 (canon_address): Remove condition that is never true.
33685 (dse_step7): Remove condition that is never true.
33686 (rest_of_handle_dse): Remove condition that is never true.
33687 (rest_of_handle_dse::did_global): Remove never read from above.
33688 (dse_step2_spill): Remove never called from above.
33689 (dse_step5_spill): Remove never called from above.
33690
33691 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33692
33693 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33694 JUMP_TABLE_DATA changes.
33695 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33696 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33697 (Insns) <jump_table_data>: New entry.
33698 * doc/tm.texi: Regenerate.
33699
33700 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33701
33702 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33703 for table jump at the end of a basic block using tablejump_p.
33704 * targhooks.c (default_invalid_within_doloop): Likewise.
33705 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33706 target hook implementation that is identical to the default hook.
33707 (rs6000_invalid_within_doloop): Remove.
33708
33709 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33710 unused variable from tablejump_p call.
33711
33712 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33713 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33714 (INSN_DELETED_P): Likewise.
33715 (emit_jump_table_data): New prototype.
33716 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33717 after 4th as unused.
33718 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33719 * sched-vis.c (print_insn): Likewise.
33720 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33721 insn for compatibility with back ends that use next_active_insn to
33722 identify jump table data.
33723 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33724 (remove_insn): Likewise.
33725 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33726 to be emitted.
33727 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33728 (emit_jump_table_data): New function.
33729
33730 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33731 basic block, a JUMP_TABLE_DATA never is.
33732 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33733 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33734 off from code handling real insns.
33735 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33736 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33737 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33738 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33739 is not a NONDEBUG_INSN_P.
33740 * ira-costs.c (scan_one_insn): Likewise.
33741 * jump.c (mark_all_labels): Likewise.
33742 (mark_jump_label_1): Likewise.
33743 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33744 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33745 a basic block.
33746 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33747 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33748 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33749 JUMP_TABLE_DATA_P insns.
33750 (calculate_elim_costs_all_insns): Likewise.
33751 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33752 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33753 (delete_output_reload): Code style fixups.
33754 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33755 insn flags on this non-insn.
33756 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33757 as scheduling barriers, for pre-change compatibility.
33758 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33759 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33760
33761 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33762 redundant JUMP_TABLE_DATA_P test.
33763 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33764 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33765 (frv_for_each_packet): Likewise.
33766 * config/i386/i386.c (min_insn_size): Likewise.
33767 (ix86_avoid_jump_mispredicts): Likewise.
33768 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33769 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33770 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33771 (mips16_insn_length): Robustify.
33772 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33773 (mips16_split_long_branches): Likewise.
33774 * config/pa/pa.c (pa_combine_instructions): Likewise.
33775 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33776 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33777 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33778 as contributing to pool range lengths.
33779 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33780 Remove redundant JUMP_TABLE_DATA_P test.
33781 (sh_loop_align): Likewise.
33782 (split_branches): Likewise.
33783 (sh_insn_length_adjustment): Likewise.
33784 * config/spu/spu.c (get_branch_target): Likewise.
33785
33786 2013-03-29 Jan Hubicka <jh@suse.cz>
33787
33788 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33789 gcov streaming; stream hot bb threshold to ltrans.
33790 * predict.c (get_hot_bb_threshold): Break out from ....
33791 (maybe_hot_count_p): ... here.
33792 (set_hot_bb_threshold): New function.
33793 * lto-section-in.c (lto_section_name): Add profile.
33794 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33795 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33796 and data-streamer.h
33797 (histogram_entry): New structure.
33798 (histogram, histogram_pool): New global vars.
33799 (histogram_hash): New structure.
33800 (histogram_hash::hash): New method.
33801 (histogram_hash::equal): Likewise.
33802 (account_time_size): New function.
33803 (cmp_counts): New function.
33804 (dump_histogram): New function.
33805 (ipa_profile_generate_summary): New function.
33806 (ipa_profile_write_summary): New function.
33807 (ipa_profile_read_summary): New function.
33808 (ipa_profile): Decide on threshold.
33809 (pass_ipa_profile): Add ipa_profile_write_summary and
33810 ipa_profile_read_summary.
33811 * Makefile.in (ipa.o): Update dependencies.
33812 * lto-streamer.h (LTO_section_ipa_profile): New section.
33813
33814 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33815
33816 * tree.h (VAR_P): New.
33817
33818 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33819
33820 PR lto/56777
33821 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33822
33823 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33824
33825 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33826 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33827 (control_flow_insn_p): Likewise.
33828 * cfgrtl.c (duplicate_insn_chain): Likewise.
33829 * final.c (get_attr_length_1): Likewise.
33830 (shorten_branches): Likewise.
33831 (final_scan_insn): Likewise.
33832 * function.c (instantiate_virtual_regs): Likewise.
33833 * gcse.c (insert_insn_end_basic_block): Likewise.
33834 * ira-costs.c (scan_one_insn): Likewise.
33835 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33836 * lra.c (check_rtl): Likewise.
33837 * reload1.c (elimination_costs_in_insn): Likewise.
33838 * reorg.c (follow_jumps): Likewise.
33839
33840 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33841 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33842 (thumb_far_jump_used_p): Likewise.
33843 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33844 (workaround_speculation): Likewise.
33845 (add_sched_insns_for_speculation): Likewise.
33846 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33847 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33848 (frv_for_each_packet): Likewise.
33849 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33850 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33851 (final_emit_insn_group_barriers): Likewise.
33852 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33853 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33854 (mips16_insn_length): Likewise.
33855 * config/pa/pa.c (pa_reorg): Likewise.
33856 (pa_combine_instructions): Likewise.
33857 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33858 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33859 (sh_reorg): Likewise.
33860 (split_branches): Likewise.
33861 * config/spu/spu.c (get_branch_target): Likewise.
33862
33863 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33864 JUMP_TABLE_DATA_P.
33865
33866 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33867
33868 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33869 Fix declaration name.
33870
33871 2013-03-28 Lawrence Crowl <crowl@google.com>
33872
33873 * graphds.h (struct graph.indicies): Remove unused.
33874 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33875 (SCOP_ORIGINAL_PDDRS): Remove unused.
33876 * sese.h (extern insert_loop_close_phis): Removed unused.
33877 (extern insert_guard_phis): Removed unused.
33878 (extern ivtype_map_elt_info): Removed unused.
33879 (new_ivtype_map_elt): Removed unused.
33880 * sese.c (ivtype_map_elt_info): Removed unused.
33881
33882 2013-03-28 Lawrence Crowl <crowl@google.com>
33883
33884 * Makefile.in: Add several missing include dependences.
33885 (DUMPFILE_H): New.
33886 (test-dump.o): New. This object is not added to any executable,
33887 but is present for ad-hoc testing.
33888 * bitmap.c
33889 (debug (const bitmap_head_def &)): New.
33890 (debug (const bitmap_head_def *)): New.
33891 * bitmap.h
33892 (extern debug (const bitmap_head_def &)): New.
33893 (extern debug (const bitmap_head_def *)): New.
33894 * cfg.c
33895 (debug (edge_def &)): New.
33896 (debug (edge_def *)): New.
33897 * cfghooks.c
33898 (debug (basic_block_def &)): New.
33899 (debug (basic_block_def *)): New.
33900 * dumpfile.h
33901 (dump_node (const_tree, int, FILE *)): Correct source file.
33902 * dwarf2out.c
33903 (debug (die_struct &)): New.
33904 (debug (die_struct *)): New.
33905 * dwarf2out.h
33906 (extern debug (die_struct &)): New.
33907 (extern debug (die_struct *)): New.
33908 * gimple-pretty-print.c
33909 (debug (gimple_statement_d &)): New.
33910 (debug (gimple_statement_d *)): New.
33911 * gimple-pretty-print.h
33912 (extern debug (gimple_statement_d &)): New.
33913 (extern debug (gimple_statement_d *)): New.
33914 * ira-build.c
33915 (debug (ira_allocno_copy &)): New.
33916 (debug (ira_allocno_copy *)): New.
33917 (debug (ira_allocno &)): New.
33918 (debug (ira_allocno *)): New.
33919 * ira-int.h
33920 (extern debug (ira_allocno_copy &)): New.
33921 (extern debug (ira_allocno_copy *)): New.
33922 (extern debug (ira_allocno &)): New.
33923 (extern debug (ira_allocno *)): New.
33924 * ira-lives.c
33925 (debug (live_range &)): New.
33926 (debug (live_range *)): New.
33927 * lra-int.h
33928 (debug (lra_live_range &)): New.
33929 (debug (lra_live_range *)): New.
33930 * lra-lives.c
33931 (debug (lra_live_range &)): New.
33932 (debug (lra_live_range *)): New.
33933 * omega.c
33934 (debug (omega_pb_d &)): New.
33935 (debug (omega_pb_d *)): New.
33936 * omega.h
33937 (extern debug (omega_pb_d &)): New.
33938 (extern debug (omega_pb_d *)): New.
33939 * print-rtl.c
33940 (debug (const rtx_def &)): New.
33941 (debug (const rtx_def *)): New.
33942 * print-tree.c
33943 (debug_tree (tree): Move within file.
33944 (debug_raw (const tree_node &)): New.
33945 (debug_raw (const tree_node *)): New.
33946 (dump_tree_via_hooks (const tree_node *, int)): New.
33947 (debug (const tree_node &)): New.
33948 (debug (const tree_node *)): New.
33949 (debug_verbose (const tree_node &)): New.
33950 (debug_verbose (const tree_node *)): New.
33951 (debug_head (const tree_node &)): New.
33952 (debug_head (const tree_node *)): New.
33953 (debug_body (const tree_node &)): New.
33954 (debug_body (const tree_node *)): New.
33955 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33956 (debug (vec<tree, va_gc> &)): New.
33957 (debug (vec<tree, va_gc> *)): New.
33958 * rtl.h
33959 (extern debug (const rtx_def &)): New.
33960 (extern debug (const rtx_def *)): New.
33961 * sbitmap.c
33962 (debug_raw (simple_bitmap_def &)): New.
33963 (debug_raw (simple_bitmap_def *)): New.
33964 (debug (simple_bitmap_def &)): New.
33965 (debug (simple_bitmap_def *)): New.
33966 * sbitmap.h
33967 (extern debug (simple_bitmap_def &)): New.
33968 (extern debug (simple_bitmap_def *)): New.
33969 (extern debug_raw (simple_bitmap_def &)): New.
33970 (extern debug_raw (simple_bitmap_def *)): New.
33971 * sel-sched-dump.c
33972 (debug (vinsn_def &)): New.
33973 (debug (vinsn_def *)): New.
33974 (debug_verbose (vinsn_def &)): New.
33975 (debug_verbose (vinsn_def *)): New.
33976 (debug (expr_def &)): New.
33977 (debug (expr_def *)): New.
33978 (debug_verbose (expr_def &)): New.
33979 (debug_verbose (expr_def *)): New.
33980 (debug (vec<rtx> &)): New.
33981 (debug (vec<rtx> *)): New.
33982 * sel-sched-dump.h
33983 (extern debug (vinsn_def &)): New.
33984 (extern debug (vinsn_def *)): New.
33985 (extern debug_verbose (vinsn_def &)): New.
33986 (extern debug_verbose (vinsn_def *)): New.
33987 (extern debug (expr_def &)): New.
33988 (extern debug (expr_def *)): New.
33989 (extern debug_verbose (expr_def &)): New.
33990 (extern debug_verbose (expr_def *)): New.
33991 (extern debug (vec<rtx> &)): New.
33992 (extern debug (vec<rtx> *)): New.
33993 * sel-sched-ir.h
33994 (_list_iter_cond_expr): Make inline instead of static.
33995 * sreal.c
33996 (debug (sreal &)): New.
33997 (debug (sreal *)): New.
33998 * sreal.h
33999 (extern debug (sreal &)): New.
34000 (extern debug (sreal *)): New.
34001 * tree.h
34002 (extern debug_raw (const tree_node &)): New.
34003 (extern debug_raw (const tree_node *)): New.
34004 (extern debug (const tree_node &)): New.
34005 (extern debug (const tree_node *)): New.
34006 (extern debug_verbose (const tree_node &)): New.
34007 (extern debug_verbose (const tree_node *)): New.
34008 (extern debug_head (const tree_node &)): New.
34009 (extern debug_head (const tree_node *)): New.
34010 (extern debug_body (const tree_node &)): New.
34011 (extern debug_body (const tree_node *)): New.
34012 (extern debug (vec<tree, va_gc> &)): New.
34013 (extern debug (vec<tree, va_gc> *)): New.
34014 * tree-cfg.c
34015 (debug (struct loop &)): New.
34016 (debug (struct loop *)): New.
34017 (debug_verbose (struct loop &)): New.
34018 (debug_verbose (struct loop *)): New.
34019 * tree-dump.c: Add header dependence.
34020 * tree-flow.h
34021 (extern debug (struct loop &)): New.
34022 (extern debug (struct loop *)): New.
34023 (extern debug_verbose (struct loop &)): New.
34024 (extern debug_verbose (struct loop *)): New.
34025 * tree-data-ref.c
34026 (debug (data_reference &)): New.
34027 (debug (data_reference *)): New.
34028 (debug (vec<data_reference_p> &)): New.
34029 (debug (vec<data_reference_p> *)): New.
34030 (debug (vec<ddr_p> &)): New.
34031 (debug (vec<ddr_p> *)): New.
34032 * tree-data-ref.h
34033 (extern debug (data_reference &)): New.
34034 (extern debug (data_reference *)): New.
34035 (extern debug (vec<data_reference_p> &)): New.
34036 (extern debug (vec<data_reference_p> *)): New.
34037 (extern debug (vec<ddr_p> &)): New.
34038 (extern debug (vec<ddr_p> *)): New.
34039 * tree-ssa-alias.c
34040 (debug (pt_solution &)): New.
34041 (debug (pt_solution *)): New.
34042 * tree-ssa-alias.h
34043 (extern debug (pt_solution &)): New.
34044 (extern debug (pt_solution *)): New.
34045 * tree-ssa-alias.c
34046 (debug (_var_map &)): New.
34047 (debug (_var_map *)): New.
34048 (debug (tree_live_info_d &)): New.
34049 (debug (tree_live_info_d *)): New.
34050 * tree-ssa-alias.h
34051 (extern debug (_var_map &)): New.
34052 (extern debug (_var_map *)): New.
34053 (extern debug (tree_live_info_d &)): New.
34054 (extern debug (tree_live_info_d *)): New.
34055
34056 2013-03-28 Jan Hubicka <jh@suse.cz>
34057
34058 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34059
34060 2013-03-28 Ian Bolton <ian.bolton@arm.com>
34061
34062 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34063 record only when desired or required.
34064
34065 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
34066
34067 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34068 *vec_extractv2di_1_rex64. Use x64 isa attribute.
34069
34070 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34071
34072 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34073 (*andsi3_compare0_uxtw): New pattern.
34074 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34075 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34076
34077 2013-03-28 Jan Hubicka <jh@suse.cz>
34078
34079 * data-streamer-in.c (streamer_read_gcov_count): New function.
34080 * gimple-streamer-out.c: Include value-prof.h.
34081 (output_gimple_stmt): Output histogram.
34082 (output_bb): Use streamer_write_gcov_count.
34083 * value-prof.c: Include data-streamer.h
34084 (dump_histogram_value): Add HIST_TYPE_MAX.
34085 (stream_out_histogram_value): New function.
34086 (stream_in_histogram_value): New function.
34087 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34088 (stream_out_histogram_value, stream_in_histogram_value): Declare.
34089 * data-streamer-out.c (streamer_write_gcov_count): New function.
34090 (streamer_write_gcov_count_stream): New function.
34091 * lto-cgraph.c (lto_output_edge): Update counter streaming.
34092 (lto_output_node): Likewise.
34093 (input_node, input_edge): Likewise.
34094 * lto-streamer-out.c (output_cfg): Update streaming.
34095 * lto-streamer-in.c (input_cfg): Likewise.
34096 * data-streamer.h (streamer_write_gcov_count,
34097 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34098 * gimple-streamer-in.c: Include value-prof.h
34099 (input_gimple_stmt): Input histograms.
34100 (input_bb): Update profile streaming.
34101
34102 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34103
34104 * genmodes.c (emit_max_int): New function.
34105 (emit_insn_modes_h): Added call to emit_max_function.
34106 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34107 Added doc.
34108 * machmode.def: Fixed comment.
34109
34110 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34111
34112 * combine.c (try_combine): Removed useless assert.
34113 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34114
34115 2013-03-28 Marek Polacek <polacek@redhat.com>
34116 Richard Biener <rguenther@suse.de>
34117
34118 PR tree-optimization/56695
34119 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34120 build signed result of a vector comparison.
34121 * tree-cfg.c (verify_gimple_comparison): Check that a result
34122 of a vector comparison has signed type.
34123
34124 2013-03-28 Richard Biener <rguenther@suse.de>
34125
34126 PR tree-optimization/37021
34127 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34128 do not restrict gaps between groups.
34129 * tree-vect-stmts.c (vectorizable_load): Properly account for
34130 a gap between groups.
34131
34132 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
34133
34134 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34135 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34136 is not enabled.
34137
34138 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
34139
34140 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34141 * doc/extend.texi (Named Address Spaces): Ditto.
34142 (Variable Attributes): Ditto.
34143
34144 2013-03-27 Kai Tietz <ktietz@redhat.com>
34145
34146 * config.build: Add support for cygwin x64 target.
34147 * config.gcc: Likewise.
34148 * config.host: Likewise.
34149 * configure.ac: Likewise
34150 * configure: Regenerated.
34151
34152 2013-03-27 Kai Tietz <ktietz@redhat.com>
34153
34154 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34155 * config/i386/t-cygwin-w64: New file.
34156 * config/i386/cygwin-w64.h: New file.
34157 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34158 and add support for x64-cygwin target.
34159 (CPP_SPEC): Likewise.
34160 (CXX_WRAP_SPEC_LIST): Undefine before define.
34161 (LIBGCJ_SONAME): Use 15 as version.
34162
34163 2013-03-27 Richard Biener <rguenther@suse.de>
34164
34165 PR tree-optimization/56716
34166 * tree-ssa-structalias.c (perform_var_substitution): Adjust
34167 dumping for ref nodes.
34168
34169 2013-03-27 Martin Jambor <mjambor@suse.cz>
34170
34171 PR tree-optimization/55334
34172 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34173 restricted pointers to arrays.
34174
34175 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
34176
34177 * Makefile.in (.SUFFIXES): Add .cc.
34178 (.c.o): Apply same recipe for implicit rule .cc.o.
34179
34180 2013-03-27 Richard Biener <rguenther@suse.de>
34181
34182 PR tree-optimization/37021
34183 * tree-vect-data-refs.c (vect_check_strided_load): Allow
34184 REALPART/IMAGPART_EXPRs around the supported refs.
34185 * tree-ssa-structalias.c (find_func_aliases): Assume that
34186 floating-point values are not used to transfer pointers.
34187
34188 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
34189
34190 * target.def (TARGET_HAS_IFUNC_P): New target hook.
34191 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34192 * doc/tm.texi: Regenerate.
34193 * targhooks.h (default_has_ifunc_p): New.
34194 * targhooks.c (default_has_ifunc_p): Ditto.
34195 * config/linux-protos.h: New file.
34196 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34197 hook for linux which disables support of indirect functions in android.
34198 * config/linux-android.c: New file.
34199 * config/t-linux-android.c: Ditto.
34200 * config.gcc: Added new object file linux-android.o.
34201 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34202 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34203 * varasm.c (do_assemble_alias): Likewise.
34204 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34205 doesn't support indirect functions.
34206 * configure: Regenerate.
34207
34208 2013-03-27 Bin Cheng <bin.cheng@arm.com>
34209
34210 PR target/56102
34211 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34212 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34213 mult-word mode.
34214
34215 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34216
34217 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34218
34219 2013-03-27 Terry Guo <terry.guo@arm.com>
34220
34221 * config/arm/arm-cores.def: Added core cortex-r7.
34222 * config/arm/arm-tune.md: Regenerated.
34223 * config/arm/arm-tables.opt: Regenerated.
34224 * doc/invoke.texi: Added entry for core cortex-r7.
34225
34226 2013-03-27 Walter Lee <walt@tilera.com>
34227
34228 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34229 double-decrement of next_scratch_regno.
34230
34231 2013-03-27 Walter Lee <walt@tilera.com>
34232
34233 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34234 input operands.
34235 (insn_v1mulus): Ditto.
34236 (insn_v2muls): Ditto.
34237
34238 2013-03-27 Walter Lee <walt@tilera.com>
34239
34240 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34241 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34242
34243 2013-03-27 Walter Lee <walt@tilera.com>
34244
34245 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34246 (*sibcall_value): Ditto.
34247
34248 2013-03-27 Walter Lee <walt@tilera.com>
34249
34250 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34251 (insn_mnz_v8qi): ... this ...
34252 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
34253 vector equivalent.
34254 (insn_v<n>mnz): Replaced by ...
34255 (insn_v1mnz): ... this ...
34256 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
34257 equivalent.
34258 (insn_mz_<mode>): Replaced by ...
34259 (insn_mz_v8qi): ... this ...
34260 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
34261 vector equivalent.
34262 (insn_v<n>mz): Replaced by ...
34263 (insn_v1mz): ... this ...
34264 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
34265 equivalent.
34266
34267 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
34268
34269 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34270
34271 2013-03-26 Roland McGrath <mcgrathr@google.com>
34272
34273 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34274 than fprintf with a non-constant, non-format string.
34275
34276 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34277
34278 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34279 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
34280 operand 0 predicate.
34281 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34282 attribute. Use general_x64nomem_operand as operand 1 predicate.
34283 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34284 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34285 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34286 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34287 (mov<mode>_insv_1): Remove expander. Merge insn with
34288 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34289 Use general_x64nomem_operand as operand 1 predicate.
34290 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34291 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34292 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34293 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34294 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
34295 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34296 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34297 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34298 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
34299 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34300 (general_x64nomem_operand): Ditto.
34301
34302 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
34303
34304 * config/rtems.opt: Add -pthread option.
34305
34306 2013-03-26 Richard Biener <rguenther@suse.de>
34307
34308 * alias.c (find_base_term): Avoid redundant and not used recursion.
34309 (base_alias_check): Get the initial base term from the caller.
34310 (true_dependence_1): Compute and pass base terms to base_alias_check.
34311 (write_dependence_p): Likewise.
34312 (may_alias_p): Likewise.
34313
34314 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
34315
34316 * config/aarch64/aarch64.c (aarch64_classify_address): Support
34317 PC-relative load in SI modes and above only.
34318
34319 2013-03-26 Xinyu Qi <xyqi@marvell.com>
34320
34321 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34322 * config/arm/iwmmxt.md (WCGR0): Update.
34323 (WCGR1, WCGR2, WCGR3): Likewise.
34324
34325 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34326
34327 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34328 Use x64 and nox64 isa attributes.
34329
34330 2013-03-26 Richard Biener <rguenther@suse.de>
34331
34332 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34333 alignment computations and rely on get_object_alignment_1
34334 for the !TYPE_P case.
34335 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34336
34337 2013-03-26 Walter Lee <walt@tilera.com>
34338
34339 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34340 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34341
34342 2013-03-25 Jeff Law <law@redhat.com>
34343
34344 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34345 check for INTEGRAL_TYPE_P that was missing due to checking in
34346 wrong version of prior patch.
34347
34348 2013-03-25 Walter Lee <walt@tilera.com>
34349
34350 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34351 TILEGX_INSN_SHUFFLEBYTES1.
34352 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34353 shufflebytes1.
34354 (tilegx_builtins): Ditto.
34355 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34356
34357 2013-03-25 Walter Lee <walt@tilera.com>
34358
34359 * config/tilegx/tilegx.md (floatsisf2): New pattern.
34360 (floatunssisf2): New pattern.
34361 (floatsidf2): New pattern.
34362 (floatunssidf2): New pattern.
34363
34364 2013-03-25 Walter Lee <walt@tilera.com>
34365
34366 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34367 tests for constraint J, K, N, P.
34368
34369 2013-03-25 Walter Lee <walt@tilera.com>
34370
34371 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34372 Use indirect/pcrel encoding.
34373 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34374 Ditto.
34375
34376 2013-03-25 Steve Ellcey <sellcey@mips.com>
34377
34378 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34379 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34380 * config/mips/mips.c (mips_option_override): Set IMADD default.
34381 * config/mips/mips.h (PTF_AVOID_IMADD): New.
34382 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34383 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34384 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34385 * doc/invoke.texi (-mimadd/-mno-imadd): New.
34386
34387 2013-03-25 Jeff Law <law@redhat.com>
34388
34389 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34390 slightly to avoid creating and folding useless trees. Simplify
34391 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34392
34393 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
34394
34395 * config/i386/i386.md (*zero_extendsidi2): Merge with
34396 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
34397 * config/i386/predicates.md (x86_64_zext_operand): Rename from
34398 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
34399 targets. Clarify comment.
34400
34401 2013-03-25 Martin Jambor <mjambor@suse.cz>
34402
34403 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34404 pass-through jump functions differently.
34405 (ipa_read_jump_function): Likewise. Also use setter functions to set
34406 up jump functions.
34407
34408 2013-03-25 Martin Jambor <mjambor@suse.cz>
34409
34410 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34411 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34412 process it.
34413 (ipa_get_indirect_edge_target): New function.
34414 (devirtualization_time_bonus): New parameter known_aggs, pass it to
34415 ipa_get_indirect_edge_target. Update all callers.
34416 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
34417 ipa_get_indirect_edge_target_1 instead of calling
34418 ipa_get_indirect_edge_target.
34419 (create_specialized_node): Pass aggvlas to
34420 ipcp_discover_new_direct_edges.
34421
34422 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34423
34424 * config/arm/arm.md (f_sels, f_seld): New types.
34425 (*cmov<mode>): New pattern.
34426 * config/arm/predicates.md (arm_vsel_comparison_operator): New
34427 predicate.
34428
34429 2013-03-25 Kai Tietz <ktietz@redhat.com>
34430
34431 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34432 POSIX-printf for mingw-hosted builds.
34433
34434 2013-03-25 Richard Biener <rguenther@suse.de>
34435
34436 PR middle-end/56694
34437 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34438 must-not-throw stmt location.
34439
34440 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34441
34442 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34443 Emit load-acquire versions when acq is true.
34444 (arm_emit_store_exclusive): Add rel parameter.
34445 Emit store-release versions when rel is true.
34446 (arm_split_compare_and_swap): Use acquire-release instructions
34447 instead.
34448 of barriers when appropriate.
34449 (arm_split_atomic_op): Likewise.
34450 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34451 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34452 (VUNSPEC_SLX): Likewise.
34453 (VUNSPEC_LDA): Likewise.
34454 (VUNSPEC_STL): Likewise.
34455 * config/arm/sync.md (atomic_load<mode>): New pattern.
34456 (atomic_store<mode>): Likewise.
34457 (arm_load_acquire_exclusive<mode>): Likewise.
34458 (arm_load_acquire_exclusivesi): Likewise.
34459 (arm_load_acquire_exclusivedi): Likewise.
34460 (arm_store_release_exclusive<mode>): Likewise.
34461
34462 2013-03-25 Catherine Moore <clm@codesourcery.com>
34463
34464 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34465 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34466 * config/mip/predicates.md (lwsp_swsp_operand,
34467 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34468 sb16_operand, db4_operand, db7_operand, ib3_operand,
34469 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34470 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34471 andi16_operand): New predicates.
34472 * config/mips/mips.md (compression): New attribute.
34473 (enabled): New attribute.
34474 (length): Consider compression in computing length.
34475 (shift_compression): New code attribute.
34476 (*add<mode>3): New operands. Record compression.
34477 (sub<mode>3): Likewise.
34478 (one_cmpl<mode>2): Likewise.
34479 (*and<mode>3): Likewise.
34480 (*ior<mode>3): Likewise.
34481 (unnamed pattern for xor): Likewise.
34482 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34483 (*<optab><mode>3): Likewise.
34484 (*mov<mode>_internal: Likewise.
34485 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34486 (mips_unsigned_immediate_p): New.
34487 (umips_lwsp_swsp_address_p): New.
34488 (m16_based_address_p): New.
34489 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34490 (mips_unsigned_immediate_p): New prototype.
34491 (lwsp_swsp_address_p): New prototype.
34492 (m16_based_address_p): New prototype.
34493 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34494 (mips_signed_immediate_p): New function.
34495 (m16_based_address_p): New function.
34496 (lwsp_swsp_address_p): New function.
34497 (mips_print_operand_punctuation): Recognize short delay slot insns
34498 for microMIPS.add<mode>3"
34499
34500 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34501
34502 PR target/56720
34503 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34504 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34505
34506 2013-03-25 Richard Biener <rguenther@suse.de>
34507
34508 PR tree-optimization/56689
34509 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34510 any edge.
34511
34512 2013-03-25 Richard Biener <rguenther@suse.de>
34513
34514 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34515 of bitmap.
34516 (memory_references): Likewise.
34517 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34518 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34519 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34520 (gather_mem_refs_in_loops): Fold into ...
34521 (analyze_memory_references): ... this. Move initialization
34522 to tree_ssa_lim_initialize.
34523 (fill_always_executed_in): Rename to ...
34524 (fill_always_executed_in_1): ... this.
34525 (fill_always_executed_in): Move contains_call computation to
34526 this new function from ...
34527 (tree_ssa_lim_initialize): ... here.
34528 (tree_ssa_lim): Call fill_always_executed_in.
34529
34530 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34531
34532 * postreload.c (reload_combine): Fix code detecting returns.
34533
34534 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34535
34536 * function.c (emit_use_return_register_into_block): On cc0 targets,
34537 do not emit the sequence between cc0 setter and user.
34538
34539 2013-03-25 Kai Tietz <ktietz@redhat.com>
34540
34541 * config/i386/predicates.md (local_symbolic_operand): Interpret
34542 dll-imported symbols as none-local.
34543
34544 2013-03-25 Richard Biener <rguenther@suse.de>
34545
34546 * tree-ssa-loop-im.c (struct depend): Remove.
34547 (struct lim_aux_data): Make depends a vec of gimples.
34548 (free_lim_aux_data): Adjust.
34549 (add_dependency): Likewise.
34550 (set_level): Likewise.
34551
34552 2013-03-25 Richard Biener <rguenther@suse.de>
34553
34554 PR middle-end/56434
34555 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34556 the pointer returned by calls with ECF_MALLOC set.
34557
34558 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34559
34560 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34561
34562 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34563
34564 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34565 using MMXMODE mode iterator.
34566 (*move<mode>_internal): Merge with *movv2sf_internal and
34567 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34568
34569 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34570
34571 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34572 (record_last_mem_set_info): Likewise.
34573
34574 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34575 of XNEWVEC followed by memset.
34576 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34577
34578 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34579
34580 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34581 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34582 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34583 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34584 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34585 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34586 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34587 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34588 BARRIER_P instead of GET_CODE.
34589
34590 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34591
34592 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34593 inaccuracy in the probing code.
34594
34595 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34596 (ctrapdi4): Likewise.
34597
34598 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34599
34600 * calls.c (expand_call): Add missing guard to code handling return
34601 of non-BLKmode structures in MSB.
34602 * function.c (expand_function_end): Likewise.
34603
34604 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34605
34606 * combine.c (try_combine): Adjust comment. Do not add the set of
34607 insn #0 if the destination indirectly is set or dies in insn #2.
34608 Tidy up code to distribute a new note.
34609
34610 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34611
34612 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34613 also for alternatives 16 and 17.
34614
34615 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34616
34617 * config/i386/sse.md (*mov<mode>_internal): Merge with
34618 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34619 Emit insn template depending on type attribute. Use
34620 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34621 movd instead of movq mnemonic for interunit moves. Rewrite mode
34622 attribute calculation. Remove unit attribute calculation.
34623 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34624 Set prefix_data16 attribute for DImode ssemov types.
34625 Use Ym instead of y for SSE-MMX conversion alternatives.
34626 Reorder operand constraints.
34627
34628 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34629
34630 * df.h (df_insn_delete): Adjust prototype.
34631 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34632 and let it decide whether mark the basic block dirty.
34633 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34634 * df-scan.c (df_insn_info_delete): New helper function, split
34635 off from df_insn_delete.
34636 (df_scan_free_bb_info): Use it.
34637 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34638 Likewise.
34639 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34640 that the insn is actually an insn and it has a non-NULL basic block.
34641 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34642
34643 2013-03-22 Richard Biener <rguenther@suse.de>
34644
34645 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34646 dep_ref members.
34647 (mem_ref_alloc): Do not allocate them.
34648 (refs_independent_p): Do not query or maintain a cache.
34649
34650 2013-03-22 Richard Biener <rguenther@suse.de>
34651
34652 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34653 (gather_mem_refs_in_loops): Do not compute it.
34654 (analyze_memory_references): Do not allocate it.
34655 (tree_ssa_lim_finalize): Do not free it.
34656 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34657
34658 2013-03-22 Richard Biener <rguenther@suse.de>
34659
34660 * is-a.h (as_a): Use gcc_checking_assert.
34661
34662 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34663
34664 * config/aarch64/aarch64.c (aarch64_print_operand): New
34665 format specifier for printing a constant in hex.
34666 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34667 format specifier for printing second operand.
34668
34669 2013-03-22 Richard Biener <rguenther@suse.de>
34670
34671 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34672 bitmaps.
34673 (gather_mem_refs_in_loops): Perform store accumulation here.
34674 (create_vop_ref_mapping_loop): Remove.
34675 (create_vop_ref_mapping): Likewise.
34676 (analyze_memory_references): Initialize refs_stored_in_loop.
34677 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34678 (record_indep_loop): Remove.
34679 (record_dep_loop): New function.
34680 (ref_indep_loop_p_1): Adjust to only walk over references
34681 in the loop, not its subloops.
34682 (ref_indep_loop_p): Rename to ...
34683 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34684 maintaining a more fine-grained cache.
34685 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34686 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34687
34688 2013-03-22 Richard Biener <rguenther@suse.de>
34689
34690 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34691 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34692 aggregate mem_ref_loc.
34693 (free_mem_ref_locs): Inline into ...
34694 (memref_free): ... this and adjust.
34695 (mem_ref_alloc): Adjust.
34696 (mem_ref_locs_alloc): Remove.
34697 (record_mem_ref_loc): Adjust.
34698 (get_all_locs_in_loop): Rewrite into ...
34699 (for_all_locs_in_loop): ... this iterator.
34700 (rewrite_mem_ref_loc): New functor.
34701 (rewrite_mem_refs): Use for_all_locs_in_loop.
34702 (sm_set_flag_if_changed): New functor.
34703 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34704 (ref_always_accessed): New functor.
34705 (ref_always_accessed_p): Use for_all_locs_in_loop.
34706
34707 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34708
34709 * tree-pass.h (PROP_gimple_lvec): New.
34710 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34711 (init_optimization_passes): Move pass_lower_vector.
34712 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34713 PROP_gimple_lvec.
34714 (pass_lower_vector): Provide PROP_gimple_lvec.
34715 (pass_lower_vector_ssa): Likewise.
34716 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34717
34718 2013-03-21 Mark Wielaard <mjw@redhat.com>
34719
34720 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34721
34722 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34723
34724 * config/i386/i386.md (*movdi_internal): Disparage slightly
34725 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34726 conversion alternatives.
34727
34728 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34729
34730 PR middle-end/48087
34731 * diagnostic.def (DK_WERROR): New kind.
34732 * diagnostic.h (werrorcount): Define.
34733 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34734 promoted to DK_ERROR, increment DK_WERROR counter instead of
34735 DK_ERROR counter.
34736 * toplev.c (toplev_main): Call print_ignored_options even if
34737 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34738 even if just werrorcount is non-zero.
34739
34740 PR debug/55608
34741 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34742 on failure.
34743 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34744 (string_cst_pool_decl): New function.
34745 (optimize_one_addr_into_implicit_ptr): New function.
34746 (resolve_addr_in_expr): Optimize DWARF location expression
34747 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34748 which doesn't live in memory, but has DW_AT_location or
34749 DW_AT_const_value, or refers to a string literal, into
34750 DW_OP_GNU_implicit_pointer.
34751 (optimize_location_into_implicit_ptr): New function.
34752 (resolve_addr): If removing DW_AT_location of a variable because
34753 it was DW_OP_addr of address of the variable, but the variable doesn't
34754 live in memory, try to emit const value attribute for the initializer.
34755
34756 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34757
34758 * tree.h (VECTOR_TYPE_P): New macro.
34759 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34760 TYPE_MODE): Use it.
34761 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34762 VEC_COND_EXPR cannot be lvalues.
34763 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34764
34765 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34766
34767 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34768 Restrict the transformation to equal modes.
34769
34770 2013-03-21 Richard Biener <rguenther@suse.de>
34771
34772 PR tree-optimization/39326
34773 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34774 (MEM_ANALYZABLE): Adjust.
34775 (record_mem_ref_loc): Move bitmap ops ...
34776 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34777 unanalyzable refs, do not record locations for it.
34778 (analyze_memory_references): Allocate ref zero as shared
34779 unanalyzable ref.
34780 (refs_independent_p): Do not test for unanalyzed mems here.
34781 (ref_indep_loop_p_1): Special-case disambiguation against
34782 the unanalyzed ref.
34783 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34784
34785 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34786
34787 * config/arm/arm-protos.h (tune_params): Add
34788 prefer_neon_for_64bits field.
34789 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34790 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34791 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34792 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34793 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34794 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34795 (arm_option_override): Handle -mneon-for-64bits new option.
34796 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34797 (prefer_neon_for_64bits): Declare new variable.
34798 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34799 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34800 (arch_enabled): Handle new arch types. Remove support for onlya8
34801 and nota8.
34802 (one_cmpldi2): Use new arch names.
34803 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34804 * config/arm/arm.opt (mneon-for-64bits): Add option.
34805 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34806 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34807 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34808 of onlya8.
34809 * doc/invoke.texi (-mneon-for-64bits): Document.
34810
34811 2013-03-21 Richard Biener <rguenther@suse.de>
34812
34813 PR tree-optimization/39326
34814 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34815 (sort_bbs_in_loop_postorder_cmp): New function.
34816 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34817
34818 2013-03-21 Richard Biener <rguenther@suse.de>
34819
34820 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34821 (vect_insert_into_interleaving_chain): Likewise.
34822 (vect_drs_dependent_in_basic_block): Inline ...
34823 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34824 split out from ...
34825 (vect_analyze_data_ref_dependence): ... here. Simplify.
34826 (vect_check_interleaving): Simplify.
34827 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34828 (vect_slp_analyze_data_ref_dependences): ... this new function.
34829 (dr_group_sort_cmp): New function.
34830 (vect_analyze_data_ref_accesses): Compute data-reference groups
34831 here instead of in vect_analyze_data_ref_dependence. Use
34832 a more efficient algorithm.
34833 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34834 vect_slp_analyze_data_ref_dependences. Call
34835 vect_analyze_data_ref_accesses earlier.
34836 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34837 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34838 (vect_slp_analyze_data_ref_dependences): New prototype.
34839
34840 2013-03-21 Richard Biener <rguenther@suse.de>
34841
34842 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34843 ref is stored in the loop.
34844 (find_refs_for_sm): Walk only over all stores.
34845 (store_motion_loop): Allocate from lim_bitmap_obstack.
34846 (store_motion): Likewise.
34847
34848 2013-03-21 Richard Biener <rguenther@suse.de>
34849
34850 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34851 Update virtual SSA form.
34852
34853 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34854
34855 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34856 * configure: Regenerate.
34857 * config.in: Regenerate.
34858 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34859 if !HAVE_LD_EH_FRAME_CIEV3.
34860
34861 2013-03-21 Richard Biener <rguenther@suse.de>
34862
34863 * tree-cfg.c (verify_expr_no_block): New function.
34864 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34865 nor DECL_VALUE_EXPR have locations with associated blocks.
34866 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34867 (clear_unused_block_pointer): Remove code dealing with
34868 blocks in DECL_DEBUG_EXPR locations.
34869
34870 2013-03-21 Richard Biener <rguenther@suse.de>
34871
34872 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34873 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34874 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34875 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34876 instead of DECL_DEBUG_EXPR_IS_FROM.
34877 * gimplify.c (gimplify_modify_expr): Likewise.
34878 * tree-cfg.c (verify_expr_location_1): Likewise.
34879 * tree-complex.c (create_one_component_var): Likewise.
34880 * tree-sra.c (create_access_replacement): Likewise.
34881 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34882 (clear_unused_block_pointer): Likewise.
34883 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34884 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34885 * var-tracking.c (var_debug_decl): Likewise.
34886 (track_expr_p): Likewise.
34887 * tree-inline.c (add_local_variables): Likewise. Set
34888 DECL_HAS_DEBUG_EXPR_P after copying it.
34889 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34890 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34891
34892 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34893
34894 PR bootstrap/56656
34895 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34896 * configure: Regenerate.
34897 * config.in: Regenerate.
34898 * config/i386/i386.md (*movdf_internal): Use
34899 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34900 movd instead of movq mnemonic for interunit moves.
34901 (*movdi_internal): Ditto.
34902
34903 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34904
34905 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34906 (abd<mode>_3): New pattern.
34907 (aba<mode>_3): New pattern.
34908 (fabd<mode>_3): New pattern.
34909
34910 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34911
34912 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34913 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34914 occurrence of REGISTER_PREFIX as its empty string.
34915
34916 2013-03-20 Jeff Law <law@redhat.com>
34917
34918 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34919 addititional equivalences for equality comparisons between an SSA_NAME
34920 and a constant where the SSA_NAME was set from a widening conversion.
34921
34922 2013-03-20 Walter Lee <walt@tilera.com>
34923
34924 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34925
34926 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34927
34928 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34929 depending on type attribute.
34930 (*movti_internal): Ditto.
34931 (*movtf_internal): Ditto.
34932 (*movxf_internal): Ditto.
34933 (*movdf_internal): Ditto.
34934 (*movsf_internal): Ditto.
34935
34936 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34937
34938 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34939 maybe_vex for sselog1 and ssemov types.
34940 (*movdi_internal): Reorder operand constraints.
34941 (*movsi_internal): Ditto. Set prefix attribute to
34942 maybe_vex for sselog1 and ssemov types.
34943 (*movtf_internal): Set prefix attribute to maybe_vex
34944 for sselog1 and ssemov types.
34945 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34946 DImode ssemov types. Reorder operand constraints.
34947 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34948 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34949 attribute for SImode ssemov types. Reorder operand constraints.
34950
34951 2013-03-20 Martin Jambor <mjambor@suse.cz>
34952
34953 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34954 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34955
34956 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34957
34958 * config/rs6000/predicates.md (indexed_address, update_address_mem
34959 update_indexed_address_mem): New predicates.
34960 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34961 attribute for load/store instructions.
34962 * config/rs6000/dfp.md (movsd_store): Likewise.
34963 (movsd_load): Likewise.
34964 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34965 (unnamed HI->DI extend define_insn): Likewise.
34966 (unnamed SI->DI extend define_insn): Likewise.
34967 (unnamed QI->SI extend define_insn): Likewise.
34968 (unnamed QI->HI extend define_insn): Likewise.
34969 (unnamed HI->SI extend define_insn): Likewise.
34970 (unnamed HI->SI extend define_insn): Likewise.
34971 (extendsfdf2_fpr): Likewise.
34972 (movsi_internal1): Likewise.
34973 (movsi_internal1_single): Likewise.
34974 (movhi_internal): Likewise.
34975 (movqi_internal): Likewise.
34976 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34977 attribute for load/store instructions.
34978 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34979 instructions.
34980 (mov<mode>_softfloat): Likewise.
34981 (mov<mode>_hardfloat32): Likewise.
34982 (mov<mode>_hardfloat64): Likewise.
34983 (mov<mode>_softfloat64): Likewise.
34984 (movdi_internal32): Likewise.
34985 (movdi_internal64): Likewise.
34986 (probe_stack_<mode>): Likewise.
34987
34988 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34989
34990 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34991 floating point, and decimal floating point to reload iterator.
34992
34993 * config/rs6000/constraints.md (wl constraint): New constraints to
34994 return FLOAT_REGS if certain options are used to reduce the number
34995 of separate patterns that exist in the file.
34996 (wx constraint): Likewise.
34997 (wz constraint): Likewise.
34998
34999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35000 -mdebug=reg, print wg, wl, wx, and wz constraints.
35001 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35002 Initialize the reload functions for 64-bit binary/decimal floating
35003 point types.
35004 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35005 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35006 create the buffer on the stack to overcome not having a 32-bit
35007 load and store.
35008 (rs6000_emit_move): Likewise.
35009 (rs6000_secondary_memory_needed_rtx): Likewise.
35010 (rs6000_alloc_sdmode_stack_slot): Likewise.
35011 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35012 via xxlxor, just like DFmode 0.0.
35013
35014 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
35015 define as 1 if we are running on a power7 or newer.
35016 (enum r6000_reg_class_enum): Add new constraints.
35017
35018 * config/rs6000/dfp.md (movsd): Delete, combine with binary
35019 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35020 with other moves by using conditional constraits (wg). Use LFIWZX
35021 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
35022 (movsd splitter): Likewise.
35023 (movsd_hardfloat): Likewise.
35024 (movsd_softfloat): Likewise.
35025
35026 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35027 binary and decimal floating point moves.
35028 (fmove_ok): New attributes to combine binary and decimal floating
35029 point moves, and to combine power6x (mfpgpr) moves along normal
35030 floating moves.
35031 (real_value_to_target): Likewise.
35032 (f32_lr): Likewise.
35033 (f32_lm): Likewise.
35034 (f32_li): Likewise.
35035 (f32_sr): Likewise.
35036 (f32_sm): Likewise.
35037 (f32_si): Likewise.
35038 (movsf): Combine binary and decimal floating point moves. Combine
35039 power6x (mfpgpr) moves with other moves by using conditional
35040 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
35041 (mov<mode> for SFmode/SDmode); Likewise.
35042 (SFmode/SDmode splitters): Likewise.
35043 (movsf_hardfloat): Likewise.
35044 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35045 (movsf_softfloat): Likewise.
35046 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35047
35048 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35049 wx and wz constraints.
35050
35051 * config/rs6000/constraints.md (wg constraint): New constraint to
35052 return FLOAT_REGS if -mmfpgpr (power6x) was used.
35053
35054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35055 constraint.
35056
35057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35058 -mdebug=reg, print wg, wl, wx, and wz constraints.
35059 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35060 Initialize the reload functions for 64-bit binary/decimal floating
35061 point types.
35062 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35063 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35064 create the buffer on the stack to overcome not having a 32-bit
35065 load and store.
35066 (rs6000_emit_move): Likewise.
35067 (rs6000_secondary_memory_needed_rtx): Likewise.
35068 (rs6000_alloc_sdmode_stack_slot): Likewise.
35069 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35070 via xxlxor, just like DFmode 0.0.
35071
35072 * config/rs6000/dfp.md (movdd): Delete, combine with binary
35073 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35074 with other moves by using conditional constraits (wg). Use LFIWZX
35075 and STFIWX for loading SDmode on power7.
35076 (movdd splitters): Likewise.
35077 (movdd_hardfloat32): Likewise.
35078 (movdd_softfloat32): Likewise.
35079 (movdd_hardfloat64_mfpgpr): Likewise.
35080 (movdd_hardfloat64): Likewise.
35081 (movdd_softfloat64): Likewise.
35082
35083 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35084 64-bit binary and decimal floating point moves.
35085 (FMOVE64X): Likewise.
35086 (movdf): Combine 64-bit binary and decimal floating point moves.
35087 Combine power6x (mfpgpr) moves with other moves by using
35088 conditional constraits (wg).
35089 (mov<mode> for DFmode/DDmode): Likewise.
35090 (DFmode/DDmode splitters): Likewise.
35091 (movdf_hardfloat32): Likewise.
35092 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35093 (movdf_softfloat32): Likewise.
35094 (movdf_hardfloat64_mfpgpr): Likewise.
35095 (movdf_hardfloat64): Likewise.
35096 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35097 (movdf_softfloat64): Likewise.
35098 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35099 (reload_<mode>_load): Move to later in the file so they aren't in
35100 the middle of the floating point move insns.
35101 (reload_<mode>_store): Likewise.
35102
35103 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35104 constraint.
35105
35106 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35107 constraint if -mdebug=reg.
35108 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35109 Enable using dd reload support if needed.
35110
35111 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35112 binary and decimal floating point moves in rs6000.md.
35113 (movtd_internal): Likewise.
35114
35115 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35116 decimal floating point moves.
35117 (movtf): Likewise.
35118 (movtf_internal): Likewise.
35119 (mov<mode>_internal, TDmode/TFmode): Likewise.
35120 (movtf_softfloat): Likewise.
35121 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35122
35123 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35124 movdi_internal64, using wg constraint for move direct operations.
35125 (movdi_internal64): Likewise.
35126
35127 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35128 MODES_TIEABLE_P for selected modes. Print the numerical value of
35129 the various virtual registers. Use GPR/FPR first/last values,
35130 instead of hard coding the register numbers. Print which modes
35131 have reload functions registered.
35132 (rs6000_option_override_internal): If -mdebug=reg, trace the options
35133 settings before/after setting cpu, target and subtarget settings.
35134 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35135 and for secondary reload failures in rs6000_secondary_reload_inner.
35136 (rs6000_secondary_reload_fail): Likewise.
35137 (rs6000_secondary_reload_inner): Likewise.
35138
35139 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35140 macros for first/last GPR and FPR registers.
35141 (LAST_GPR_REGNO): Likewise.
35142 (FIRST_FPR_REGNO): Likewise.
35143 (LAST_FPR_REGNO): Likewise.
35144
35145 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35146 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35147 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35148 (vcond<mode><mode>): Likewise.
35149 (vcondu<mode><mode>): Likewise.
35150 (vector_gtu<mode>): Likewise.
35151 (vector_gte<mode>): Likewise.
35152 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35153 to prevent the compiler from converting DImode operations to TImode.
35154 (ior<mode>3): Likewise.
35155 (and<mode>3): Likewise.
35156 (one_cmpl<mode>2): Likewise.
35157 (nor<mode>3): Likewise.
35158 (andc<mode>3): Likewise.
35159
35160 * config/rs6000/constraints.md (wt constraint): New constraint
35161 that returns VSX_REGS if TImode is allowed in VSX registers.
35162
35163 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35164 constant under VSX.
35165
35166 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35167 similar to TImode, but it is restricted to being in the GPRs.
35168
35169 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35170 TImode to occupy a single VSX register.
35171
35172 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35173 -mvsx-timode for power7/power8.
35174 (power7 cpu): Likewise.
35175 (power8 cpu): Likewise.
35176
35177 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35178 sure that TFmode/TDmode take up two registers if they are ever
35179 allowed in the upper VSX registers.
35180 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35181 registers.
35182 (rs6000_init_hard_regno_mode_ok): Likewise.
35183 (rs6000_debug_reg_global): Add debugging for PTImode and wt
35184 constraint. Print if LRA is turned on.
35185 (rs6000_option_override_internal): Give an error if -mvsx-timode
35186 and VSX is not enabled.
35187 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
35188 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35189 to reg+offset addressing. Use PTImode when checking offset
35190 addresses for validity.
35191 (reg_offset_addressing_ok_p): Likewise.
35192 (rs6000_legitimate_offset_address_p): Likewise.
35193 (rs6000_legitimize_address): Likewise.
35194 (rs6000_legitimize_reload_address): Likewise.
35195 (rs6000_legitimate_address_p): Likewise.
35196 (rs6000_eliminate_indexed_memrefs): Likewise.
35197 (rs6000_emit_move): Likewise.
35198 (rs6000_secondary_reload): Likewise.
35199 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
35200 reloads to fpr registers to continue to use reg+offset addressing,
35201 but 64-bit reloads to altivec registers need reg+reg addressing.
35202 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35203 it. Treat LO_SUM like a PLUS operation.
35204 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35205 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35206 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35207 registers to share a register with a smaller sized type, since VSX
35208 puts scalars in the upper 64-bits.
35209 (print_operand): Add support for PTImode.
35210 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35211 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35212 registers, but don't have arithmetic support.
35213 (rs6000_memory_move_cost): Add test for VSX.
35214 (rs6000_opt_masks): Add -mvsx-timode.
35215
35216 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35217 for TImode.
35218 (VSs): Likewise.
35219 (VSr): Use wt constraint for TImode.
35220 (VSv): Drop TImode support.
35221 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35222 (vsx_movti_64bit): Likewise.
35223 (vsx_movti_32bit): Likewise.
35224 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35225 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35226 one '?' on the appropriate output constraint. Do not allow TImode
35227 logical operations on 32-bit systems.
35228 (vsx_ior<mode>3): Likewise.
35229 (vsx_xor<mode>3): Likewise.
35230 (vsx_one_cmpl<mode>2): Likewise.
35231 (vsx_nor<mode>3): Likewise.
35232 (vsx_andc<mode>3): Likewise.
35233 (vsx_concat_<mode>): Likewise.
35234 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35235
35236 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35237 OPTION_MASK_VSX_TIMODE.
35238 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35239 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35240
35241 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35242 (TI2 iterator): New iterator for TImode, PTImode.
35243 (wd mode attribute): Add values for vector types.
35244 (movti_string): Replace TI move operations with operations for TImode
35245 and PTImode. Add support for TImode being allowed in VSX registers.
35246 (mov<mode>_string, TImode/PTImode): Likewise.
35247 (movti_ppc64): Likewise.
35248 (mov<mode>_ppc64, TImode/PTImode): Likewise.
35249 (TI mode splitters): Likewise.
35250
35251 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35252 constraint.
35253
35254 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
35255
35256 PR tree-optimization/56355
35257 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35258 Also handle integers with undefined overflow.
35259
35260 2013-03-20 Catherine Moore <clm@codesourcery.com>
35261 Maciej W. Rozycki <macro@codesourcery.com>
35262 Tom de Vries <tom@codesourcery.com>
35263 Nathan Sidwell <nathan@codesourcery.com>
35264 Iain Sandoe <iain@codesourcery.com>
35265 Nathan Froyd <froydnj@codesourcery.com>
35266 Chao-ying Fu <fu@mips.com>
35267
35268 * doc/extend.texi: (micromips, nomicromips, nocompression):
35269 Document new function attributes.
35270 * doc/invoke.texi (minterlink-compressed, mmicromips,
35271 m14k, m14ke, m14kec): Document new options.
35272 (minterlink-mips16): Update documentation.
35273 * doc/md.texi (ZC, ZD): Document new constraints.
35274 * configure.ac (gcc_cv_as_micromips): Check if linker
35275 supports the .set micromips directive.
35276 * configure: Regenerate.
35277 * config.in: Regenerate.
35278 * config/mips/mips-tables.opt: Regenerate.
35279 * config/mips/micromips.md: New file.
35280 * constraints.md (ZC, ZD): New constraints.
35281 * config/mips/predicates.md (movep_src_register): New predicate.
35282 (movep_src_operand): New predicate.
35283 (non_volatile_mem_operand): New predicate.
35284 * config/mips/mips.md (multimem): New type.
35285 (length): Differentiate between 17-bit and 18-bit branch offsets.
35286 (MOVEP1, MOVEP2): New mode iterator.
35287 (mov_<load>l): Use ZC constraint.
35288 (mov_<load>r): Likewise.
35289 (mov_<store>l): Likewise.
35290 (mov_<store>r): Likewise.
35291 (*branch_equality<mode>_inverted): Add microMIPS support.
35292 (*branch_equality<mode>): Likewise.
35293 (*jump_absolute): Likewise.
35294 (indirect_jump_<mode>): Likewise.
35295 (tablejump_<mode>): Likewise.
35296 (<optab>_internal): Likewise.
35297 (sibcall_internal): Likewise.
35298 (sibcall_value_internal): Likewise.
35299 (prefetch): Use constraint ZD.
35300 * config/mips/mips.opt (minterlink-compressed): New option.
35301 (minterlink-mips16): Now an alias for minterlink-compressed.
35302 (mmicromips): New option.
35303 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35304 (compare_and_swap_12): Likewise.
35305 (sync_add<mode>): Likewise.
35306 (sync_<optab>_12): Likewise.
35307 (sync_old_<optab>_12): Likewise.
35308 (sync_new_<optab>_12): Likewise.
35309 (sync_nand_12): Likewise.
35310 (sync_old_nand_12): Likewise.
35311 (sync_new_nand_12): Likewise.
35312 (sync_sub<mode>): Likewise.
35313 (sync_old_add<mode>): Likewise.
35314 (sync_old_sub<mode>): Likewise.
35315 (sync_new_add<mode>): Likewise.
35316 (sync_new_sub<mode>): Likewise.
35317 (sync_<optab><mode>): Likewise.
35318 (sync_old_<optab><mode>): Likewise.
35319 (sync_new_<optab><mode>): Likewise.
35320 (sync_nand<mode>): Likewise.
35321 (sync_old_nand<mode>): Likewise.
35322 (sync_new_nand<mode>): Likewise.
35323 (sync_lock_test_and_set<mode>): Likewise.
35324 (test_and_set_12): Likewise.
35325 (atomic_compare_and_swap<mode>): Likewise.
35326 (atomic_exchange<mode>_llsc): Likewise.
35327 (atomic_fetch_add<mode>_llsc): Likewise.
35328 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35329 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35330 (umips_save_restore_pattern_p): Likewise.
35331 (umips_load_store_pair_p): Likewise.
35332 (umips_output_load_store_pair): Likewise.
35333 (umips_movep_target_p): Likewise.
35334 (umips_12bit_offset_address_p): Likewise.
35335 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35336 (mips_base_mips16): Rename this...
35337 (mips_base_compression_flags): ...to this. Update all uses.
35338 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35339 (mips_mips16_decl_p): Delete.
35340 (mips_nomips16_decl_p): Delete.
35341 (mips_get_compress_on_flags): New function.
35342 (mips_get_compress_off_flags): New function.
35343 (mips_get_compress_mode): New function.
35344 (mips_get_compress_on_name): New function.
35345 (mips_get_compress_off_name): New function.
35346 (mips_insert_attributes): Support multiple compression types.
35347 (mips_merge_decl_attributes): Likewise.
35348 (umips_12bit_offset_address_p): New function.
35349 (mips_start_function_definition): Emit .set micromips directive.
35350 (mips_call_may_need_jalx_p): New function.
35351 (mips_function_ok_for_sibcall): Add microMIPS support.
35352 (mips_print_operand_punctuation): Support short delay slots and
35353 compact jumps.
35354 (umips_swm_mask, umips_swm_encoding): New.
35355 (umips_build_save_restore): New function.
35356 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35357 (was_mips16_p): Remove.
35358 (old_compression_mode): New.
35359 (mips_set_compression_mode): New function.
35360 (mips_set_current_function): Add microMIPS support.
35361 (mips_option_override): Likewise.
35362 (umips_save_restore_pattern_p): New function.
35363 (umips_output_save_restore): New function.
35364 (umips_load_store_pair_p_1): New function.
35365 (umips_load_store_pair_p): New function.
35366 (umips_output_load_store_pair_1): New function.
35367 (umips_output_load_store_pair): New function.
35368 (umips_movep_target_p) New function.
35369 (mips_prepare_pch_save): Add microMIPS support.
35370 * config/mips/mips.h (TARGET_COMPRESSION): New.
35371 (TARGET_CPU_CPP_BUILTINS): Update macro
35372 to use new compression flags and to support microMIPS.
35373 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35374 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35375 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35376 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35377 (ASM_SPEC): Support mmicromips and mno-micromips.
35378 (M16STORE_REG_P): New macro.
35379 (MIPS_CALL): Support TARGET_MICROMIPS.
35380 (MICROMIPS_J): New macro.
35381 (mips_base_mips16): Rename this...
35382 (mips_base_compression_flags): ...to this.
35383 (UMIPS_12BIT_OFFSET_P): New macro.
35384 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35385 (MULTILIB_DIRNAMES): Likewise.
35386 2013-03-20 Richard Biener <rguenther@suse.de>
35387
35388 PR tree-optimization/56661
35389 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35390 the result does not have to be distinct.
35391
35392 2013-03-20 Richard Biener <rguenther@suse.de>
35393
35394 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35395 remap_gimple_op_r.
35396
35397 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35398 Steven Bosscher <steven@gcc.gnu.org>
35399
35400 PR rtl-optimization/56605
35401 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35402
35403 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35404
35405 PR bootstrap/56656
35406 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35407 that require movd instead of movq.
35408
35409 2013-03-20 Richard Biener <rguenther@suse.de>
35410
35411 * tree-ssa-structalias.c (struct variable_info): Add pointer
35412 to the first field of an aggregate with sub-vars. Make
35413 this and the pointer to the next subfield its ID.
35414 (vi_next): New function.
35415 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35416 storedanything_id, integer_id): Increment by one.
35417 (new_var_info, get_call_vi, lookup_call_clobber_vi,
35418 get_call_clobber_vi): Adjust.
35419 (solution_set_expand): Simplify and speedup.
35420 (solution_set_add): Inline into ...
35421 (set_union_with_increment): ... this. Adjust accordingly.
35422 (do_sd_constraint): Likewise.
35423 (do_ds_constraint): Likewise.
35424 (do_complex_constraint): Simplify.
35425 (build_pred_graph): Adjust.
35426 (solve_graph): Likewise. Simplify and speedup.
35427 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35428 get_constraint_for_component_ref, get_constraint_for_1,
35429 first_vi_for_offset, first_or_preceding_vi_for_offset,
35430 create_function_info_for, create_variable_info_for_1,
35431 create_variable_info_for, intra_create_variable_infos): Adjust.
35432 (init_base_vars): Push NULL for ID zero.
35433 (compute_points_to_sets): Adjust.
35434
35435 2013-03-20 Richard Biener <rguenther@suse.de>
35436
35437 * cfgloop.c (verify_loop_structure): Streamline and avoid
35438 ICEing on corrupt loop tree.
35439 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35440 loop tree.
35441
35442 2013-03-20 Richard Biener <rguenther@suse.de>
35443
35444 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35445 check whether an SSA update is needed.
35446
35447 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
35448
35449 * config/mips/constraints.md (T): Rename to...
35450 (Yf): ...this.
35451 (U): Rename to...
35452 (Yd): ...this.
35453 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35454 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35455
35456 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35457
35458 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35459 (*subsi3_carryin_uxtw): Likewise.
35460
35461 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35462
35463 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35464 (*rorsi3_insn_uxtw): Likewise.
35465
35466 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35467
35468 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35469 (*extrsi5_insn_uxtw): Likewise.
35470
35471 2013-03-19 Richard Biener <rguenther@suse.de>
35472
35473 PR tree-optimization/56273
35474 * passes.c (init_optimization_passes): Move second VRP after DOM.
35475
35476 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35477
35478 * config/i386/i386.md (*movti_internal): Merge from
35479 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35480 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35481 nox64 isa attributes.
35482
35483 2013-03-18 Richard Biener <rguenther@suse.de>
35484
35485 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35486 (unite): Likewise.
35487 (merge_node_constraints): Likewise.
35488 (build_succ_graph): Likewise.
35489 (valid_graph_edge): Inline into single caller.
35490 (unify_nodes): Likewise. Use bitmap_set_bit return value
35491 and cache varinfo.
35492 (scc_visit): Fix formatting and variable use.
35493 (do_sd_constraint): Use gcc_checking_assert.
35494 (do_ds_constraint): Likewise.
35495 (do_complex_constraint): Likewise.
35496 (condense_visit): Likewise. Cleanup.
35497 (dump_pred_graph): New function.
35498 (perform_var_substitution): Dump the pred-graph before
35499 variable substitution.
35500 (find_equivalent_node): Use gcc_checking_assert.
35501 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35502
35503 2013-03-18 Richard Biener <rguenther@suse.de>
35504
35505 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35506 Remove cond_expr_stmt_list argument and do not gimplify the
35507 built expression.
35508 (vect_loop_versioning): Adjust.
35509 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35510 Cleanup to use less temporaries.
35511 (vect_create_data_ref_ptr): Cleanup.
35512
35513 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35514
35515 PR tree-optimization/56635
35516 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35517 require types_compatible_p types.
35518
35519 2013-03-18 Nick Clifton <nickc@redhat.com>
35520
35521 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35522 spurious backslash.
35523
35524 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35525 Add missing line to comment describing function.
35526
35527 2013-03-18 Richard Biener <rguenther@suse.de>
35528
35529 PR tree-optimization/56210
35530 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35531 Handle string / character search functions.
35532 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35533
35534 2013-03-18 Richard Biener <rguenther@suse.de>
35535
35536 PR middle-end/56483
35537 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35538 and implement properly.
35539 * gimple.h (gimple_cond_single_var_p): Remove.
35540
35541 2013-03-18 Richard Biener <rguenther@suse.de>
35542
35543 * tree-data-ref.h (find_data_references_in_loop): Declare.
35544 * tree-data-ref.c (get_references_in_stmt): Use a stack
35545 vector pre-allocated in the callers.
35546 (find_data_references_in_stmt): Adjust.
35547 (graphite_find_data_references_in_stmt): Likewise.
35548 (create_rdg_vertices): Likewise.
35549 (find_data_references_in_loop): Export.
35550 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35551 Compute dependences here...
35552 (vect_analyze_data_refs): ...not here. When we encounter
35553 a non-vectorizable data reference in basic-block vectorization
35554 truncate the data reference vector. Do not bother to
35555 fixup data-dependence information for gather loads.
35556 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35557 of data references, as reported.
35558
35559 2013-03-18 Richard Biener <rguenther@suse.de>
35560
35561 PR tree-optimization/3713
35562 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35563 has_constants and expr.
35564 (stmt_has_constants): Properly valueize SSA names when deciding
35565 whether the stmt has constants.
35566
35567 2013-03-18 Richard Biener <rguenther@suse.de>
35568
35569 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35570 whole function when there is nothing to do.
35571 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35572 * tree-vectorizer.c (vectorize_loops): Update virtual and
35573 loop-closed SSA once.
35574 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35575
35576 2013-03-18 Richard Biener <rguenther@suse.de>
35577
35578 PR middle-end/56113
35579 * domwalk.c (bb_postorder): New global static.
35580 (cmp_bb_postorder): New function.
35581 (walk_dominator_tree): Replace scheme imposing an order for
35582 visiting dominator sons by one sorting them at the time they
35583 are pushed on the stack.
35584
35585 2013-03-18 Richard Biener <rguenther@suse.de>
35586
35587 PR tree-optimization/39326
35588 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35589 (struct mem_ref): Replace mem member with ao_ref typed member.
35590 (MEM_ANALYZABLE): Adjust.
35591 (memref_eq): Likewise.
35592 (mem_ref_alloc): Likewise.
35593 (gather_mem_refs_stmt): Likewise.
35594 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35595 (execute_sm_if_changed_flag_set): Adjust.
35596 (execute_sm): Likewise.
35597 (ref_always_accessed_p): Likewise.
35598 (refs_independent_p): Likewise.
35599 (can_sm_ref_p): Likewise.
35600
35601 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35602
35603 PR c/56566
35604 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35605 return 1 even for !unsignedp.
35606
35607 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35608
35609 * config/i386/i386.md (isa): Add x64 and nox64.
35610 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35611 (*pushtf): Enable *roF alternative for x64 isa only.
35612 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35613 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35614 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35615 (*movtf_internal): Merge from *movtf_internal_rex64 and
35616 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35617 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35618 nox64 isa attributes.
35619 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35620 nox64 isa attributes.
35621 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35622
35623 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35624
35625 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35626
35627 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35628
35629 PR target/56640
35630 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35631 class names. Remove trailing comma after "ALL_REGS".
35632
35633 2013-03-16 Jan Hubicka <jh@suse.cz>
35634
35635 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35636 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35637 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35638 of cgraph_get_create_node.
35639 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35640
35641 2013-03-16 Jason Merrill <jason@redhat.com>
35642
35643 PR debug/49090
35644 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35645 with DW_AT_default_value.
35646
35647 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35648
35649 * BASE-VER: Set to 4.9.0.
35650
35651 2013-03-14 Andi Kleen <ak@linux.intel.com>
35652
35653 PR target/56619
35654 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35655 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35656 Document _x* TSX intrinsics.
35657
35658 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35659 David Holsgrove <david.holsgrove@xilinx.com>
35660
35661 * configure.ac: Add MicroBlaze TLS support detection.
35662 * configure: Regenerate.
35663 * config/microblaze/microblaze-protos.h
35664 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35665 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35666 * config/microblaze/microblaze.c (microblaze_address_type): Add
35667 ADDRESS_TLS and tls_reloc address types.
35668 (microblaze_address_info): Add tls_reloc.
35669 (TARGET_HAVE_TLS): Define.
35670 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35671 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35672 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35673 load_tls_operand, microblaze_call_tls_get_addr,
35674 microblaze_legitimize_tls_address): New functions.
35675 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35676 (get_base_reg): Use microblaze_tls_symbol_p.
35677 (microblaze_classify_address): Handle TLS.
35678 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35679 label_mentioned_p and microblaze_tls_referenced_p.
35680 (microblaze_legitimize_address): Handle TLS.
35681 (microblaze_address_insns): Handle ADDRESS_TLS.
35682 (pic_address_needs_scratch): Handle TLS.
35683 (print_operand_address): Handle TLS.
35684 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35685 (microblaze_expand_move): Handle TLS.
35686 (microblaze_legitimate_constant_p): Check
35687 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35688 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35689 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35690 (PIC_OFFSET_TABLE_REGNUM): Set.
35691 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35692 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35693 (addsi3, movsi_internal2, movdf_internal): Update constraints
35694 * config/microblaze/predicates.md (arith_plus_operand): Define
35695 (move_operand): Redefine as move_src_operand,
35696 check microblaze_tls_referenced_p.
35697
35698 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35699
35700 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35701 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35702
35703 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35704
35705 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35706 CC mode for AND.
35707
35708 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35709
35710 PR tree-optimization/53265
35711 * common.opt (Waggressive-loop-optimizations): New option.
35712 * tree-ssa-loop-niter.c: Include tree-pass.h.
35713 (do_warn_aggressive_loop_optimizations): New function.
35714 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35715 if number_of_latch_executions returned constant.
35716 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35717 early. If number_of_latch_executions returned constant, set
35718 nb_iterations_upper_bound back to it.
35719 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35720 field.
35721 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35722 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35723
35724 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35725 (MULTILIB_OSDIRNAMES): Set.
35726 * genmultilib: If defaultosdirname doesn't start with :: , set
35727 defaultosdirname2 instead, clear it and emit two . multilib_raw
35728 entries instead of just one.
35729
35730 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35731
35732 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35733 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35734 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35735 (SUBTARGET_OVERRIDE_OPTIONS): New.
35736
35737 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35738
35739 PR target/49880
35740 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35741 (musermode): Convert to Var(TARGET_USERMODE).
35742 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35743 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35744 * config/sh/sh.c (sh_option_override): Use
35745 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35746 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35747 condition.
35748 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35749 TARGET_SH4.
35750 (udivsi3_i4_single, divsi3_i4_single): Use
35751 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35752
35753 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35754
35755 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35756 default setting.
35757
35758 2013-03-13 Richard Biener <rguenther@suse.de>
35759
35760 PR tree-optimization/56608
35761 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35762 calls when vectorizing basic-blocks.
35763
35764 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35765
35766 PR plugins/45078
35767 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35768 tm_file.
35769
35770 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35771
35772 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35773
35774 2013-03-11 Jan Hubicka <jh@suse.cz>
35775
35776 PR lto/56557
35777 * lto-streamer-out.c (output_symbol_p): Skip references from
35778 constructors of external variables.
35779
35780 2013-03-11 Jan Hubicka <jh@suse.cz>
35781
35782 PR middle-end/56571
35783 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35784 from pseudos.
35785 * emit-rtl.c (verify_rtx_sharing): Likewise.
35786 (copy_insn_1): Likewise.
35787 * rtl.c (copy_rtx): Likewise.
35788
35789 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35790
35791 PR target/56591
35792 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35793 output_operand_lossage message.
35794
35795 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35796
35797 PR target/56470
35798 * arm.c (shift_op): Validate RTL pattern on the fly.
35799 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35800 the RTL.
35801
35802 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35803
35804 PR target/56347
35805 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35806 new call patterns that clobber %fr12.
35807 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35808 split and postreload patterns.
35809 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35810 registers %fr12 and %fr12R as call used.
35811
35812 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35813
35814 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35815 (canon_address, record_store, replace_read, check_mem_read_rtx,
35816 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35817 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35818 rest_of_handle_dse): Likewise.
35819
35820 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35821
35822 PR middle-end/56524
35823 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35824 Add base_optabs.
35825 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35826 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35827 (save_optabs_if_changed): Replace with...
35828 (init_tree_optimization_optabs): ...this.
35829 * optabs.c (save_optabs_if_changed): Rename to...
35830 (init_tree_optimization_optabs): ...this. Take the optimization node
35831 as argument. Do nothing if the base optabs are already correct.
35832 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35833 to recompute optabs.
35834 * function.h (function): Remove optabs field.
35835 * function.c (invoke_set_current_function_hook): Call
35836 init_tree_optimization_optabs. Use the result to initialize
35837 this_fn_optabs.
35838
35839 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35840
35841 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35842 if GTMA_HAS_NO_INSTRUMENTATION.
35843 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35844 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35845 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35846 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35847 GTMA_HAS_NO_INSTRUMENTATION.
35848
35849 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35850
35851 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35852 libasan_preinit.o.
35853
35854 2013-03-08 Marek Polacek <polacek@redhat.com>
35855 Jakub Jelinek <jakub@redhat.com>
35856
35857 PR tree-optimization/56478
35858 * predict.c (is_comparison_with_loop_invariant_p): Change the
35859 type of loop_step to tree.
35860 (predict_loops): Adjust.
35861 (predict_iv_comparison): Perform the computations on double_ints.
35862
35863 2013-03-08 Richard Biener <rguenther@suse.de>
35864
35865 PR tree-optimization/56570
35866 * tree-cfg.c (verify_expr_location_1): Verify locations for
35867 DECL_DEBUG_EXPR.
35868 * tree-sra.c (create_access_replacement): Strip locations
35869 from DECL_DEBUG_EXPRs.
35870
35871 2013-03-08 Richard Biener <rguenther@suse.de>
35872
35873 * tree-inline.c (expand_call_inline): Do not associate
35874 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35875 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35876
35877 2013-03-08 Richard Biener <rguenther@suse.de>
35878
35879 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35880 or block changes with -Og. Fix for location / block encoding
35881 changes and PHI arguments with locations.
35882
35883 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35884
35885 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35886 for all counters.
35887 (struct output_info): Likewise.
35888 (register_overhead): Remove bad gcc_assert.
35889 (bitmap_find_bit): If there is only a single bitmap element, do not
35890 count a miss as a search.
35891 (print_statistics): Update for counter type changes.
35892 (dump_bitmap_statistics): Likewise. Print headers such that they
35893 are properly lined up with the printed counters.
35894
35895 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35896
35897 PR tree-optimization/56559
35898 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35899 check that it has only a single use.
35900
35901 2013-03-07 Richard Biener <rguenther@suse.de>
35902
35903 * doc/invoke.texi (fwhole-program): Discourage use in combination
35904 with -flto.
35905
35906 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35907
35908 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35909
35910 PR tree-optimization/56539
35911 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35912 instead of GSI_CONTINUE_LINKING as last argument to
35913 force_gimple_operand_gsi. Adjust function comment.
35914
35915 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35916 aarch64-cores.def.
35917
35918 PR middle-end/56548
35919 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35920 promoted mode, convert the result back to the original mode.
35921
35922 2013-03-06 Richard Biener <rguenther@suse.de>
35923
35924 PR middle-end/56294
35925 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35926 (insert_updated_phi_nodes_compare_uids): New function.
35927 (update_ssa): Sort symbols_to_rename after UID before
35928 traversing it to insert PHI nodes.
35929
35930 2013-03-06 Richard Biener <rguenther@suse.de>
35931
35932 PR middle-end/50494
35933 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35934 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35935
35936 Revert
35937 2013-02-13 Richard Biener <rguenther@suse.de>
35938
35939 PR lto/50494
35940 * varasm.c (output_constant_def_1): Get the decl representing
35941 the constant as argument.
35942 (output_constant_def): Wrap output_constant_def_1.
35943 (make_decl_rtl): Use output_constant_def_1 with the decl
35944 representing the constant.
35945 (build_constant_desc): Optionally re-use a decl already
35946 representing the constant.
35947 (tree_output_constant_def): Adjust.
35948
35949 2013-03-06 Joey Ye <joey.ye@arm.com>
35950
35951 PR lto/50293
35952 * gcc.c (convert_white_space): New function.
35953 (main): Handles white space in function name.
35954
35955 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35956
35957 PR target/56529
35958 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35959 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35960 to SH_DIV_CALL_TABLE for TARGET_SH2.
35961 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35962 list.
35963 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35964 call-table options.
35965
35966 2013-03-05 Sterling Augustine <saugustine@google.com>
35967 Cary Coutant <ccoutant@google.com>
35968
35969 PR debug/55364
35970 * dwarf2out.c (resolve_addr): Don't call
35971 remove_loc_list_addr_table_entries a second time for the same
35972 expression.
35973
35974 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35975
35976 PR debug/56510
35977 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35978 (avoid_complex_debug_insns): New function.
35979 (expand_debug_locations): Call it.
35980
35981 PR rtl-optimization/56484
35982 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35983 lifetimes of hard registers on small register class machines.
35984
35985 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35986
35987 * config/microblaze/microblaze-protos.h: Rename
35988 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35989 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35990 fast_interrupt.
35991 (microblaze_fast_interrupt_function_p): New function.
35992 (microblaze_is_interrupt_handler): Rename to
35993 microblaze_is_interrupt_variant and add fast_interrupt check.
35994 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35995 (save_restore_insns): Likewise.
35996 (compute_frame_size): Likewise.
35997 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35998 (microblaze_globalize_label): Likewise.
35999 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
36000 * config/microblaze/microblaze.md: Use wrapper
36001 microblaze_is_interrupt_variant.
36002
36003 2013-03-05 Kai Tietz <ktietz@redhat.com>
36004
36005 * sdbout.c (sdbout_one_type): Switch to current function's section
36006 supporting cold/hot.
36007
36008 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36009
36010 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
36011 -mxl-reorder.
36012
36013 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36014
36015 PR middle-end/56461
36016 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
36017 if VALGRIND_GET_VBITS is defined, temporarily make object
36018 memory all defined, and restore previous valgrind addressability
36019 and definability afterwards. Free this_object at the end.
36020
36021 PR middle-end/56461
36022 * lra.c (lra): Call lra_clear_live_ranges if live_p,
36023 right before calling lra_create_live_ranges, also call it
36024 when clearing live_p. Only call lra_clear_live_ranges
36025 at the end if live_p.
36026
36027 PR middle-end/56461
36028 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36029
36030 2013-03-05 Richard Biener <rguenther@suse.de>
36031
36032 PR tree-optimization/56521
36033 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36034 value-id.
36035
36036 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
36037
36038 PR c++/55135
36039 * except.h (remove_unreachable_eh_regions): New prototype.
36040 * except.c (remove_eh_handler_splicer): New function, split out
36041 of remove_eh_handler.
36042 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
36043 warning about running it on many EH regions one at a time.
36044 (remove_unreachable_eh_regions_worker): New function, walk the
36045 EH tree in depth-first order and remove non-marked regions.
36046 (remove_unreachable_eh_regions): New function.
36047 * tree-eh.c (mark_reachable_handlers): New function, split out
36048 from remove_unreachable_handlers.
36049 (remove_unreachable_handlers): Use mark_reachable_handlers and
36050 remove_unreachable_eh_regions.
36051 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36052 and remove_unreachable_eh_regions.
36053
36054 2013-03-05 Richard Biener <rguenther@suse.de>
36055
36056 PR middle-end/56525
36057 * loop-init.c (fix_loop_structure): Remove loops in two stages,
36058 not freeing them until the end.
36059
36060 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36061
36062 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36063
36064 2013-03-05 Richard Biener <rguenther@suse.de>
36065
36066 PR tree-optimization/56270
36067 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36068 of loads after scheduling an SLP instance.
36069
36070 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36071
36072 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36073 tic6x.exp.
36074 (check_gcc_parallelize): Run guality.exp as a separate job from
36075 vect.exp with unsorted.exp and $(dg_target_exps) separately from
36076 struct-layout-1.exp with stackalign.exp.
36077
36078 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36079
36080 PR middle-end/56461
36081 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36082 load_index sbitmap even if some bit in it isn't set.
36083
36084 PR middle-end/56461
36085 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36086 (discover_iteration_bound_by_body_walk): Change queues to
36087 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
36088 spelling in comment. Call safe_push on queues[bound_index] directly.
36089 Release queues[queue_index] in every iteration unconditionally.
36090 Release bounds vector.
36091
36092 PR middle-end/56461
36093 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36094 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36095 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36096 inner_phis vector.
36097
36098 2013-03-05 Richard Biener <rguenther@suse.de>
36099
36100 PR lto/56515
36101 * tree-inline.c (remap_blocks_to_null): New function.
36102 (expand_call_inline): When expanding a call stmt without
36103 an associated block inline remap all callee blocks to NULL.
36104
36105 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36106
36107 PR rtl-optimization/56494
36108 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36109 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36110 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36111
36112 PR middle-end/56461
36113 * sel-sched-ir.c (free_sched_pools): Release
36114 succs_info_pool.stack[succs_info_pool.max_top] vectors too
36115 if succs_info_pool.max_top isn't -1.
36116
36117 PR bootstrap/56509
36118 * opts.c (opts_obstack, opts_concat): Moved to...
36119 * opts-common.c (opts_obstack, opts_concat): ... here.
36120
36121 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36122
36123 PR middle-end/56461
36124 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36125
36126 2013-03-04 Martin Jambor <mjambor@suse.cz>
36127
36128 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36129 all appropriate places.
36130
36131 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
36132
36133 PR tree-optimization/56424
36134 * ipa-split.c (split_function): Do not set the RSO flag if result is
36135 not by reference and its type is a register type.
36136
36137 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
36138
36139 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36140 (microblaze_legitimate_pic_operand): Likewise
36141 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36142 new function microblaze_legitimate_pic_operand
36143 * config/microblaze/microblaze-protos.h
36144 (microblaze_legitimate_pic_operand): Declare.
36145
36146 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36147
36148 * config/microblaze/predicates.md (call_insn_simple_operand):
36149 New predicate for supported rtx code types.
36150 * config/microblaze/microblaze.md (call_internal1): Use
36151 call_insn_simple_operand predicate.
36152
36153 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36154
36155 PR middle-end/56461
36156 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36157 partitions.ordered_remove.
36158
36159 PR middle-end/56461
36160 * tree-vect-stmts.c (vectorizable_conversion): Don't call
36161 vec_oprnds0.create (1) for modifier == NONE.
36162
36163 PR middle-end/56461
36164 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36165 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36166 vec_oprnds1 right before pushing anything to it for
36167 scalar_shift_arg.
36168
36169 PR middle-end/56461
36170 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36171 set nbbs to 0 instead of having separate code path.
36172 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36173 instead of false as last argument if returning NULL.
36174
36175 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
36176
36177 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36178 the attribute is now called "target" instead of "option".
36179 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36180 * doc/tm.texi.in (Target Attributes): Likewise document the correct
36181 attribute/pragma name for TARGET_OPTION_VALID_P and
36182 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
36183 * doc/tm.texi: Regenerated.
36184
36185 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
36186
36187 * config/microblaze/microblaze.c:
36188 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36189 * config/microblaze/microblaze.h: Add -mxl-reorder to
36190 DRIVER_SELF_SPECS.
36191 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36192 instructions emitted if TARGET_REORDER.
36193 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36194 or 0 for -m/-mno case, but initialises as 2 to detect default use case
36195 separately.
36196
36197 2013-03-01 Xinliang David Li <davidxl@google.com>
36198
36199 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36200 walk length.
36201
36202 2013-03-01 Jakub Jelinek <jakub@redhat.com>
36203
36204 PR middle-end/56461
36205 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36206 vector even when returning true. Fix up function comment formatting.
36207
36208 PR middle-end/56461
36209 * ira-build.c (ira_loop_nodes_count): New variable.
36210 (create_loop_tree_nodes): Initialize it.
36211 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36212
36213 PR middle-end/56461
36214 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36215 method on dr_chain and result_chain.
36216 * tree-vect-stmts.c (vectorizable_store): Only call
36217 result_chain.create if j == 0.
36218
36219 PR middle-end/56461
36220 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36221 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36222 before overwriting it.
36223
36224 2013-03-01 Tobias Burnus <burnus@net-b.de>
36225
36226 * doc/extended.texi (C Extensions): Change order in @menu
36227 to match @node.
36228 (Other MIPS Built-in Functions): Move last MIPS entry before
36229 "picoChip Built-in Functions".
36230 (SH Built-in Functions): Move after RX Built-in Functions.
36231 * doc/gcc.texi (Introduction): Change order in @menu
36232 to match @node.
36233 * doc/md.texi (Constraints): Ditto.
36234 * gty.texi (Type Information): Ditto.
36235 (User-provided marking routines for template types): Make
36236 subsection.
36237 * doc/invoke.texi (AArch64 Options): Move before
36238 "Adapteva Epiphany Options".
36239
36240 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
36241 Jakub Jelinek <jakub@redhat.com>
36242
36243 PR sanitizer/56454
36244 * asan.c (gate_asan): Lookup no_sanitize_address instead of
36245 no_address_safety_analysis attribute.
36246 * doc/extend.texi (no_address_safety_attribute): Rename to
36247 no_sanitize_address attribute, mention no_address_safety_analysis
36248 attribute as deprecated alias.
36249
36250 2013-02-28 Jakub Jelinek <jakub@redhat.com>
36251
36252 PR middle-end/56461
36253 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36254 type to vec<vec<tree> > *.
36255 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
36256 to be vec<tree> instead of vec<tree> *, set vec_defs
36257 to vNULL and call vec_defs.create (number_of_vects), adjust other
36258 uses of vec_defs.
36259 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36260 vectorizable_condition): Adjust vect_get_slp_defs callers.
36261
36262 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36263
36264 * config/aarch64/aarch64.c
36265 (aarch64_float_const_representable): Remove unused variable.
36266
36267 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36268
36269 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36270
36271 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36272
36273 * config/aarch64/aarch64-builtins.c
36274 (aarch64_init_simd_builtins): Make static.
36275
36276 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36277
36278 * config/aarch64/aarch64.c
36279 (aarch64_simd_make_constant): Make static.
36280
36281 2013-02-28 Martin Jambor <mjambor@suse.cz>
36282
36283 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36284 with no initialization to the RHS of debug statements.
36285
36286 2013-02-28 Martin Jambor <mjambor@suse.cz>
36287
36288 PR tree-optimization/56294
36289 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36290 Adjust dumping.
36291 (get_access_replacement): Do not call create_access_replacement.
36292 Assert a replacement exists.
36293 (get_repl_default_def_ssa_name): Create the replacement declaration
36294 itself.
36295
36296 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36297
36298 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36299 final_end_function.
36300
36301 2013-02-28 Marek Polacek <polacek@redhat.com>
36302
36303 PR rtl-optimization/56466
36304 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36305 if we're changing a loop.
36306 (peel_loops_completely): Likewise.
36307
36308 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
36309
36310 PR c++/55813
36311 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36312
36313 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36314
36315 PR target/56445
36316 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36317 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36318 INTX_FTYPE_FX, FX_FTYPE_INTX.
36319 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36320
36321 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36322
36323 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36324 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36325 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36326 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36327 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36328 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36329 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36330 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36331 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36332 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36333 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36334 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36335 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36336 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36337 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36338 (avrxmega6): Increase max flash segments from 5 to 6.
36339 * config/avr/t-multilib: Regenerate.
36340 * config/avr/avr-tables.opt: Regenerate.
36341 * doc/avr-mmcu.texi: Regenerate.
36342
36343 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36344
36345 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36346 (avr_device_to_arch): Rename to avr_device_to_ld.
36347 (avr_device_to_as): New prototype.
36348 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36349 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36350 * config/avr/driver-avr.c (avr_device_to_as): New.
36351 (avr_device_to_arch): Rename to avr_device_to_ld.
36352
36353 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36354
36355 PR middle-end/56461
36356 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36357 method on dr_chain and result_chain.
36358
36359 PR middle-end/56461
36360 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36361 pointer_set_destroy on not_executed_last_iteration.
36362
36363 PR middle-end/56461
36364 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36365
36366 PR middle-end/56461
36367 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36368 FOR_EACH_DEFINED_FUNCTION when freeing state.
36369
36370 PR middle-end/56461
36371 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36372 pool_free.
36373 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36374 overwriting it.
36375
36376 PR middle-end/56461
36377 * ipa-cp.c (decide_whether_version_node): Call vec_free on
36378 known_aggs[i].items and release known_aggs vector.
36379
36380 PR middle-end/56461
36381 * ipa-reference.c (propagate): Free node_info even for alias nodes.
36382
36383 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36384
36385 * config/microblaze/microblaze.c (microblaze_emit_compare):
36386 Use xor for EQ/NE comparisions.
36387 * config/microblaze/microblaze.md (cstoresf4): Add constraints
36388 (cbranchsf4): Adjust operator to comparison_operator.
36389
36390 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36391
36392 PR middle-end/56461
36393 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36394 vector.
36395 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36396 vec_safe_push, always update *slot.
36397 (redirect_edge_var_map_clear): Use vec_free.
36398 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36399 (free_var_map_entry): Use vec_free.
36400 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36401 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36402
36403 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
36404
36405 PR middle-end/45472
36406 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36407 when the may_trap_p bit of the exprs being merged differs.
36408 Reorder tests for speculativeness in the logical and operator.
36409
36410 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36411
36412 * incpath.c (add_standard_paths): Use reconcat instead of concat
36413 where appropriate and avoid leaking memory.
36414
36415 * opts.h: Include obstack.h.
36416 (opts_concat): New prototype.
36417 (opts_obstack): New declaration.
36418 * opts.c (opts_concat): New function.
36419 (opts_obstack): New variable.
36420 (init_options_struct): Call gcc_init_obstack on opts_obstack.
36421 (finish_options): Use opts_concat instead of concat
36422 and XOBNEWVEC instead of XNEWVEC.
36423 * opts-common.c (generate_canonical_option, decode_cmdline_option,
36424 generate_option): Likewise.
36425 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36426 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36427
36428 PR target/56455
36429 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36430 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36431
36432 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36433
36434 PR middle-end/56461
36435 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36436
36437 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36438
36439 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36440 (arm_block_move_unaligned_straight): Likewise.
36441 (arm_adjust_block_mem): Likewise.
36442
36443 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36444
36445 PR target/48901
36446 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36447 temp, cond and label.
36448 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36449
36450 PR target/52500
36451 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36452 * config/c6x/c6x.h (dbx_register_map): Update declaration.
36453
36454 PR target/52501
36455 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36456 of prologue/epilogue functions.
36457
36458 PR target/52550
36459 * config/tilegx/tilegx.c (tilegx_expand_prologue):
36460 Remove unused variable cfa_offset.
36461 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36462
36463 PR target/54639
36464 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36465 type promotion to unsigned.
36466
36467 PR target/54640
36468 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36469 for HOST_WIDE_INT of 32 bit / same size as int.
36470 (arm_block_move_unaligned_straight): Likewise.
36471 (arm_adjust_block_mem): Likewise.
36472
36473 PR target/54662
36474 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36475 ALL_CFLAGS.
36476
36477 2013-02-26 Marek Polacek <polacek@redhat.com>
36478
36479 PR tree-optimization/56426
36480 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36481
36482 2013-02-26 Richard Biener <rguenther@suse.de>
36483
36484 PR target/56444
36485 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36486 unused variable loops.
36487
36488 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36489
36490 PR tree-optimization/56448
36491 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36492 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36493 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36494 later operands of the references, or even first operand for
36495 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36496
36497 PR tree-optimization/56443
36498 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36499 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36500 to type_for_mode langhook.
36501
36502 2013-02-25 Matt Turner <mattst88@gmail.com>
36503
36504 * doc/invoke.texi: Document r4700.
36505
36506 2013-02-25 Richard Biener <rguenther@suse.de>
36507
36508 PR tree-optimization/56175
36509 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36510 split out from ...
36511 (simplify_bitwise_binary): ... here. Also guard the conversion
36512 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36513
36514 2013-02-25 Catherine Moore <clm@codesourcery.com>
36515
36516 Revert:
36517 2013-02-24 Catherine Moore <clm@codesourcery.com>
36518 Maciej W. Rozycki <macro@codesourcery.com>
36519 Tom de Vries <tom@codesourcery.com>
36520 Nathan Sidwell <nathan@codesourcery.com>
36521 Iain Sandoe <iain@codesourcery.com>
36522 Nathan Froyd <froydnj@codesourcery.com>
36523 Chao-ying Fu <fu@mips.com>
36524
36525 * doc/extend.texi: (micromips, nomicromips, nocompression):
36526 Document new function attributes.
36527 * doc/invoke.texi (minterlink-compressed, mmicromips,
36528 m14k, m14ke, m14kec): Document new options.
36529 (minterlink-mips16): Update documentation.
36530 * doc/md.texi (ZC, ZD): Document new constraints.
36531 * configure.ac (gcc_cv_as_micromips): Check if linker
36532 supports the .set micromips directive.
36533 * configure: Regenerate.
36534 * config.in: Regenerate.
36535 * config/mips/mips-tables.opt: Regenerate.
36536 * config/mips/micromips.md: New file.
36537 * constraints.md (ZC, AD): New constraints.
36538 * config/mips/predicates.md (movep_src_register): New predicate.
36539 (movep_src_operand): New predicate.
36540 (non_volatile_mem_operand): New predicate.
36541 * config/mips/mips.md (multimem): New type.
36542 (length): Differentiate between 17-bit and 18-bit branch offsets.
36543 (MOVEP1, MOVEP2): New mode iterator.
36544 (mov_<load>l): Use ZC constraint.
36545 (mov_<load>r): Likewise.
36546 (mov_<store>l): Likewise.
36547 (mov_<store>r): Likewise.
36548 (*branch_equality<mode>_inverted): Add microMIPS support.
36549 (*branch_equality<mode>): Likewise.
36550 (*jump_absolute): Likewise.
36551 (indirect_jump_<mode>): Likewise.
36552 (tablejump_<mode>): Likewise.
36553 (<optab>_internal): Likewise.
36554 (sibcall_internal): Likewise.
36555 (sibcall_value_internal): Likewise.
36556 (prefetch): Use constraint ZD.
36557 * config/mips/mips.opt (minterlink-compressed): New option.
36558 (minterlink-mips16): Now an alias for minterlink-compressed.
36559 (mmicromips): New option.
36560 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36561 (compare_and_swap_12): Likewise.
36562 (sync_add<mode>): Likewise.
36563 (sync_<optab>_12): Likewise.
36564 (sync_old_<optab>_12): Likewise.
36565 (sync_new_<optab>_12): Likewise.
36566 (sync_nand_12): Likewise.
36567 (sync_old_nand_12): Likewise.
36568 (sync_new_nand_12): Likewise.
36569 (sync_sub<mode>): Likewise.
36570 (sync_old_add<mode>): Likewise.
36571 (sync_old_sub<mode>): Likewise.
36572 (sync_new_add<mode>): Likewise.
36573 (sync_new_sub<mode>): Likewise.
36574 (sync_<optab><mode>): Likewise.
36575 (sync_old_<optab><mode>): Likewise.
36576 (sync_new_<optab><mode>): Likewise.
36577 (sync_nand<mode>): Likewise.
36578 (sync_old_nand<mode>): Likewise.
36579 (sync_new_nand<mode>): Likewise.
36580 (sync_lock_test_and_set<mode>): Likewise.
36581 (test_and_set_12): Likewise.
36582 (atomic_compare_and_swap<mode>): Likewise.
36583 (atomic_exchange<mode>_llsc): Likewise.
36584 (atomic_fetch_add<mode>_llsc): Likewise.
36585 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36586 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36587 (umips_save_restore_pattern_p): Likewise.
36588 (umips_load_store_pair_p): Likewise.
36589 (umips_output_load_store_pair): Likewise.
36590 (umips_movep_target_p): Likewise.
36591 (umips_12bit_offset_address_p): Likewise.
36592 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36593 (mips_base_mips16): Rename this...
36594 (mips_base_compression_flags): ...to this. Update all uses.
36595 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36596 (mips_mips16_decl_p): Delete.
36597 (mips_nomips16_decl_p): Delete.
36598 (mips_get_compress_on_flags): New function.
36599 (mips_get_compress_off_flags): New function.
36600 (mips_get_compress_mode): New function.
36601 (mips_get_compress_on_name): New function.
36602 (mips_get_compress_off_name): New function.
36603 (mips_insert_attributes): Support multiple compression types.
36604 (mips_merge_decl_attributes): Likewise.
36605 (umips_12bit_offset_address_p): New function.
36606 (mips_start_function_definition): Emit .set micromips directive.
36607 (mips_call_may_need_jalx_p): New function.
36608 (mips_function_ok_for_sibcall): Add microMIPS support.
36609 (mips_print_operand_punctuation): Support short delay slots and
36610 compact jumps.
36611 (umips_swm_mask, umips_swm_encoding): New.
36612 (umips_build_save_restore): New function.
36613 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36614 (was_mips16_p): Remove.
36615 (old_compression_mode): New.
36616 (mips_set_compression_mode): New function.
36617 (mips_set_current_function): Add microMIPS support.
36618 (mips_option_override): Likewise.
36619 (umips_save_restore_pattern_p): New function.
36620 (umips_output_save_restore): New function.
36621 (umips_load_store_pair_p_1): New function.
36622 (umips_load_store_pair_p): New function.
36623 (umips_output_load_store_pair_1): New function.
36624 (umips_output_load_store_pair): New function.
36625 (umips_movep_target_p) New function.
36626 (mips_prepare_pch_save): Add microMIPS support.
36627 * config/mips/mips.h (TARGET_COMPRESSION): New.
36628 (TARGET_CPU_CPP_BUILTINS): Update macro
36629 to use new compression flags and to support microMIPS.
36630 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36631 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36632 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36633 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36634 (ASM_SPEC): Support mmicromips and mno-micromips.
36635 (M16STORE_REG_P): New macro.
36636 (MIPS_CALL): Support TARGET_MICROMIPS.
36637 (MICROMIPS_J): New macro.
36638 (mips_base_mips16): Rename this...
36639 (mips_base_compression_flags): ...to this.
36640 (UMIPS_12BIT_OFFSET_P): New macro.
36641 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36642 (MULTILIB_DIRNAMES): Likewise.
36643
36644 2013-02-25 Tom de Vries <tom@codesourcery.com>
36645
36646 PR rtl-optimization/56131
36647 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36648 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36649 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36650
36651 2013-02-25 Tobias Burnus <burnus@net-b.de>
36652
36653 * doc/invoke.texi (-fsanitize=): Move from optimization
36654 to debugging options.
36655
36656 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36657
36658 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36659
36660 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36661 Alexander Monakov <amonakov@ispras.ru>
36662
36663 PR middle-end/56077
36664 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36665 flush pending lists also on non-jumps. Adjust comment.
36666
36667 2013-02-24 Catherine Moore <clm@codesourcery.com>
36668 Maciej W. Rozycki <macro@codesourcery.com>
36669 Tom de Vries <tom@codesourcery.com>
36670 Nathan Sidwell <nathan@codesourcery.com>
36671 Iain Sandoe <iain@codesourcery.com>
36672 Nathan Froyd <froydnj@codesourcery.com>
36673 Chao-ying Fu <fu@mips.com>
36674
36675 * doc/extend.texi: (micromips, nomicromips, nocompression):
36676 Document new function attributes.
36677 * doc/invoke.texi (minterlink-compressed, mmicromips,
36678 m14k, m14ke, m14kec): Document new options.
36679 (minterlink-mips16): Update documentation.
36680 * doc/md.texi (ZC, ZD): Document new constraints.
36681 * configure.ac (gcc_cv_as_micromips): Check if linker
36682 supports the .set micromips directive.
36683 * configure: Regenerate.
36684 * config.in: Regenerate.
36685 * config/mips/mips-tables.opt: Regenerate.
36686 * config/mips/micromips.md: New file.
36687 * constraints.md (ZC, AD): New constraints.
36688 * config/mips/predicates.md (movep_src_register): New predicate.
36689 (movep_src_operand): New predicate.
36690 (non_volatile_mem_operand): New predicate.
36691 * config/mips/mips.md (multimem): New type.
36692 (length): Differentiate between 17-bit and 18-bit branch offsets.
36693 (MOVEP1, MOVEP2): New mode iterator.
36694 (mov_<load>l): Use ZC constraint.
36695 (mov_<load>r): Likewise.
36696 (mov_<store>l): Likewise.
36697 (mov_<store>r): Likewise.
36698 (*branch_equality<mode>_inverted): Add microMIPS support.
36699 (*branch_equality<mode>): Likewise.
36700 (*jump_absolute): Likewise.
36701 (indirect_jump_<mode>): Likewise.
36702 (tablejump_<mode>): Likewise.
36703 (<optab>_internal): Likewise.
36704 (sibcall_internal): Likewise.
36705 (sibcall_value_internal): Likewise.
36706 (prefetch): Use constraint ZD.
36707 * config/mips/mips.opt (minterlink-compressed): New option.
36708 (minterlink-mips16): Now an alias for minterlink-compressed.
36709 (mmicromips): New option.
36710 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36711 (compare_and_swap_12): Likewise.
36712 (sync_add<mode>): Likewise.
36713 (sync_<optab>_12): Likewise.
36714 (sync_old_<optab>_12): Likewise.
36715 (sync_new_<optab>_12): Likewise.
36716 (sync_nand_12): Likewise.
36717 (sync_old_nand_12): Likewise.
36718 (sync_new_nand_12): Likewise.
36719 (sync_sub<mode>): Likewise.
36720 (sync_old_add<mode>): Likewise.
36721 (sync_old_sub<mode>): Likewise.
36722 (sync_new_add<mode>): Likewise.
36723 (sync_new_sub<mode>): Likewise.
36724 (sync_<optab><mode>): Likewise.
36725 (sync_old_<optab><mode>): Likewise.
36726 (sync_new_<optab><mode>): Likewise.
36727 (sync_nand<mode>): Likewise.
36728 (sync_old_nand<mode>): Likewise.
36729 (sync_new_nand<mode>): Likewise.
36730 (sync_lock_test_and_set<mode>): Likewise.
36731 (test_and_set_12): Likewise.
36732 (atomic_compare_and_swap<mode>): Likewise.
36733 (atomic_exchange<mode>_llsc): Likewise.
36734 (atomic_fetch_add<mode>_llsc): Likewise.
36735 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36736 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36737 (umips_save_restore_pattern_p): Likewise.
36738 (umips_load_store_pair_p): Likewise.
36739 (umips_output_load_store_pair): Likewise.
36740 (umips_movep_target_p): Likewise.
36741 (umips_12bit_offset_address_p): Likewise.
36742 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36743 (mips_base_mips16): Rename this...
36744 (mips_base_compression_flags): ...to this. Update all uses.
36745 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36746 (mips_mips16_decl_p): Delete.
36747 (mips_nomips16_decl_p): Delete.
36748 (mips_get_compress_on_flags): New function.
36749 (mips_get_compress_off_flags): New function.
36750 (mips_get_compress_mode): New function.
36751 (mips_get_compress_on_name): New function.
36752 (mips_get_compress_off_name): New function.
36753 (mips_insert_attributes): Support multiple compression types.
36754 (mips_merge_decl_attributes): Likewise.
36755 (umips_12bit_offset_address_p): New function.
36756 (mips_start_function_definition): Emit .set micromips directive.
36757 (mips_call_may_need_jalx_p): New function.
36758 (mips_function_ok_for_sibcall): Add microMIPS support.
36759 (mips_print_operand_punctuation): Support short delay slots and
36760 compact jumps.
36761 (umips_swm_mask, umips_swm_encoding): New.
36762 (umips_build_save_restore): New function.
36763 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36764 (was_mips16_p): Remove.
36765 (old_compression_mode): New.
36766 (mips_set_compression_mode): New function.
36767 (mips_set_current_function): Add microMIPS support.
36768 (mips_option_override): Likewise.
36769 (umips_save_restore_pattern_p): New function.
36770 (umips_output_save_restore): New function.
36771 (umips_load_store_pair_p_1): New function.
36772 (umips_load_store_pair_p): New function.
36773 (umips_output_load_store_pair_1): New function.
36774 (umips_output_load_store_pair): New function.
36775 (umips_movep_target_p) New function.
36776 (mips_prepare_pch_save): Add microMIPS support.
36777 * config/mips/mips.h (TARGET_COMPRESSION): New.
36778 (TARGET_CPU_CPP_BUILTINS): Update macro
36779 to use new compression flags and to support microMIPS.
36780 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36781 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36782 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36783 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36784 (ASM_SPEC): Support mmicromips and mno-micromips.
36785 (M16STORE_REG_P): New macro.
36786 (MIPS_CALL): Support TARGET_MICROMIPS.
36787 (MICROMIPS_J): New macro.
36788 (mips_base_mips16): Rename this...
36789 (mips_base_compression_flags): ...to this.
36790 (UMIPS_12BIT_OFFSET_P): New macro.
36791 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36792 (MULTILIB_DIRNAMES): Likewise.
36793
36794 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36795
36796 PR target/52555
36797 * target-globals.c (save_target_globals): For init_reg_sets and
36798 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36799
36800 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36801
36802 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36803 * config/aarch64/t-aarch64
36804 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36805
36806 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36807
36808 PR inline-asm/56148
36809 * lra-constraints.c (process_alt_operands): Reload operand
36810 conflicting with earlier clobber only if no more other conflicting
36811 operands.
36812
36813 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36814
36815 PR sanitizer/56393
36816 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36817 if not linking a shared library.
36818
36819 2013-02-22 Seth LaForge <sethml@google.com>
36820
36821 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36822
36823 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36824
36825 * config/arm/arm.md (split for extendsidi): Update condition.
36826 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36827 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36828 (qhs_zextenddi_cstr): Likewise.
36829
36830 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36831
36832 PR middle-end/56420
36833 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36834 avoid signed wrapping.
36835 (expand_mult): Handle properly multiplication by
36836 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36837 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36838 in the compiler if coeff is HOST_WIDE_INT_MIN.
36839 (expand_divmod): Don't make ext_op1 static, change it's type to
36840 uhwi. Avoid undefined behavior in -INTVAL (op1).
36841
36842 PR rtl-optimization/50339
36843 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36844 field.
36845 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36846 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36847 into splitting_ashiftrt field.
36848 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36849 ASHIFTRT.
36850 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36851 choices.
36852
36853 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36854
36855 PR middle-end/56108
36856 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36857 are sure to go irrevocable.
36858
36859 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36860
36861 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36862 scalars are valid operands.
36863
36864 2013-02-21 Martin Jambor <mjambor@suse.cz>
36865
36866 PR tree-optimization/56310
36867 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36868 only matching indices and non-negative final offsets.
36869 (intersect_aggregates_with_edge): Pass src_idx to
36870 agg_replacements_to_vector. Pass src_idx insstead of index to
36871 intersect_with_agg_replacements.
36872
36873 2013-02-21 Martin Jambor <mjambor@suse.cz>
36874
36875 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36876 instead of hard-wired defaults.
36877
36878 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36879
36880 * doc/invoke.texi (MIPS Options): Update documentation of the
36881 floating-point multiply-accumulate instruction restrictions.
36882
36883 2013-02-21 Kostya Serebryany <kcc@google.com>
36884
36885 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36886 asan_shadow_offset on x86_64 linux.
36887
36888 2013-02-21 Richard Biener <rguenther@suse.de>
36889
36890 PR tree-optimization/56415
36891 Revert
36892 2013-02-11 Richard Biener <rguenther@suse.de>
36893
36894 PR tree-optimization/56273
36895 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36896 first VRP run.
36897
36898 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36899
36900 PR bootstrap/56258
36901 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36902 instead of @itemx.
36903
36904 PR inline-asm/56405
36905 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36906 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36907
36908 2013-02-20 Jan Hubicka <jh@suse.cz>
36909
36910 PR tree-optimization/56265
36911 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36912 when target is referenced for first time.
36913
36914 2013-02-20 Richard Biener <rguenther@suse.de>
36915
36916 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36917 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36918 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36919 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36920 not return anything.
36921 (rename_ssa_copies): Do not remove unused locals.
36922 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36923 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36924 * passes.c (execute_function_todo): Do not schedule unused locals
36925 removal if cleanup_tree_cfg did something.
36926 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36927 about the number of removed locals.
36928
36929 2013-02-20 Richard Biener <rguenther@suse.de>
36930
36931 PR tree-optimization/56398
36932 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36933
36934 2013-02-20 Martin Jambor <mjambor@suse.cz>
36935
36936 PR tree-optimization/55334
36937 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36938 restricted pointers to arrays.
36939
36940 2013-02-20 Richard Biener <rguenther@suse.de>
36941 Jakub Jelinek <jakub@redhat.com>
36942
36943 PR tree-optimization/56396
36944 * tree-ssa-ccp.c (n_const_val): New static variable.
36945 (get_value): Return NULL for SSA names we don't have a lattice
36946 entry for.
36947 (ccp_initialize): Initialize n_const_val.
36948 * tree-ssa-copy.c (n_copy_of): New static variable.
36949 (init_copy_prop): Initialize n_copy_of.
36950 (get_value): Return NULL_TREE for SSA names we don't have a
36951 lattice entry for.
36952
36953 2013-02-20 Martin Jambor <mjambor@suse.cz>
36954
36955 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36956
36957 2013-02-20 Richard Biener <rguenther@suse.de>
36958
36959 * genpreds.c (write_lookup_constraint): Do not compare first
36960 letter of the constraint again.
36961
36962 2013-02-20 Richard Biener <rguenther@suse.de>
36963
36964 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36965 and ceil_log2.
36966 (get_use_iv_cost): Terminate hashtable walk when coming across
36967 an empty entry.
36968
36969 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36970
36971 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36972 reassociation for avx2 targets.
36973
36974 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36975
36976 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36977 Add version check for v8.10.a to enable microblaze_has_clz
36978 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36979 version and TARGET_PATTERN_COMPARE check
36980 * config/microblaze/microblaze.md: New clzsi2 instruction
36981
36982 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36983
36984 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36985 function before branching.
36986
36987 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36988
36989 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36990 DUMP_INSN_RTX_UID.
36991 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36992
36993 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36994
36995 PR middle-end/55889
36996 * sel-sched.c: Include ira.h.
36997 (implicit_clobber_conflict_p): New function.
36998 (moveup_expr): Use it.
36999 * Makefile.in (sel-sched.o): Depend on ira.h.
37000
37001 2013-02-19 Richard Biener <rguenther@suse.de>
37002
37003 PR tree-optimization/56384
37004 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
37005 (vn_hash_type): Split out from ...
37006 (vn_hash_constant_with_type): ... here.
37007 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
37008 (vn_phi_eq): Compare types from vn_phi_s structure.
37009 (vn_phi_lookup): Populate vn_phi_s type.
37010 (vn_phi_insert): Likewise.
37011
37012 2013-02-19 Jakub Jelinek <jakub@redhat.com>
37013
37014 PR tree-optimization/56350
37015 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
37016 if haven't found reduction or nested cycle operand, rather than
37017 asserting we must find it.
37018
37019 PR tree-optimization/56381
37020 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37021 to fold_build3.
37022
37023 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
37024 Jakub Jelinek <jakub@redhat.com>
37025
37026 PR target/52555
37027 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37028 (swap_optab_enable): Same.
37029 (init_all_optabs): Use argument instead of global.
37030 * tree.h (struct tree_optimization_option): New field target_optabs.
37031 * expr.h (init_all_optabs): Add argument to prototype.
37032 (TREE_OPTIMIZATION_OPTABS): New.
37033 (save_optabs_if_changed): Protoize.
37034 * optabs.h: Declare this_fn_optabs.
37035 * optabs.c (save_optabs_if_changed): New.
37036 Declare this_fn_optabs.
37037 (init_optabs): Add argument to init_all_optabs() call.
37038 * function.c (invoke_set_current_function_hook): Handle per
37039 function optabs.
37040 * function.h (struct function): New field optabs.
37041 * config/mips/mips.c (mips_set_mips16_mode): Handle when
37042 optimization_current_node has changed.
37043 * target-globals.h (save_target_globals_default_opts): Protoize.
37044 * target-globals.c (save_target_globals_default_opts): New.
37045
37046 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37047
37048 PR target/56347
37049 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37050 registers %fr12 and %fr12R as call used.
37051
37052 PR target/56214
37053 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37054 and HImode, require all displacements to be an integer multiple of
37055 their mode size.
37056 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37057 only allow QImode and HImode when reload is in progress and strict is
37058 true. Likewise for symbolic addresses. Use base14_operand to check
37059 displacements in REG+BASE addresses.
37060
37061 2013-02-18 Richard Biener <rguenther@suse.de>
37062
37063 PR tree-optimization/56366
37064 * tree-vect-loop.c (get_initial_def_for_induction): Properly
37065 handle sign-conversion of outer-loop initial induction value.
37066
37067 2013-02-18 Richard Biener <rguenther@suse.de>
37068
37069 PR middle-end/56349
37070 * cfghooks.c (merge_blocks): If we merge a latch into another
37071 block adjust references to it.
37072 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37073 (verify_loop_structure): Verify that a recorded latch is in fact
37074 a latch.
37075
37076 2013-02-18 Richard Biener <rguenther@suse.de>
37077
37078 PR tree-optimization/56321
37079 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37080 order SSA name release and virtual operand unlinking.
37081
37082 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37083
37084 * config/microblaze/microblaze.md (save_stack_block): Define.
37085 (restore_stack_block): Likewise.
37086
37087 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37088
37089 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37090 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37091 * config/microblaze/microblaze.c (microblaze_option_override):
37092 Bail out early for PIC modes when target does not support PIC.
37093
37094 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37095
37096 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37097 Replace with a microblaze version.
37098 (microblaze_trampoline_init): Adapt for microblaze.
37099 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37100 microblaze.
37101
37102 2013-02-16 Jakub Jelinek <jakub@redhat.com>
37103 Dodji Seketeli <dodji@redhat.com>
37104
37105 PR asan/56330
37106 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37107 (instrument_mem_region_access): Do not forget to always put
37108 instrumentation of the of 'base' and 'base + len' in a "if (len !=
37109 0) statement, even for cases where either 'base' or 'base + len'
37110 are not instrumented -- because they have been previously
37111 instrumented. Simplify the logic by putting all the statements
37112 instrument 'base + len' inside a sequence, and then insert that
37113 sequence right before the current insertion point. Then, to
37114 instrument 'base + len', just get an iterator on that statement.
37115 And do not forget to update the pointer to iterator the function
37116 received as argument.
37117
37118 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
37119
37120 PR rtl-optimization/56348
37121 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37122
37123 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
37124
37125 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37126 (clean_graph_dump_file): Pass base to start_graph_dump.
37127
37128 2013-02-14 Richard Henderson <rth@redhat.com>
37129
37130 PR target/55941
37131 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37132
37133 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
37134
37135 * collect2-aix.h: Define F_LOADONLY.
37136
37137 2013-02-14 Richard Biener <rguenther@suse.de>
37138
37139 PR lto/50494
37140 * varasm.c (output_constant_def_1): Get the decl representing
37141 the constant as argument.
37142 (output_constant_def): Wrap output_constant_def_1.
37143 (make_decl_rtl): Use output_constant_def_1 with the decl
37144 representing the constant.
37145 (build_constant_desc): Optionally re-use a decl already
37146 representing the constant.
37147 (tree_output_constant_def): Adjust.
37148
37149 2013-02-14 Dodji Seketeli <dodji@redhat.com>
37150
37151 Fix an asan crash
37152 * asan.c (instrument_builtin_call): Really put the length of the
37153 second source argument into src1_len.
37154
37155 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37156
37157 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37158 argument. If it is false, don't create edge from then_bb to
37159 fallthru_bb.
37160 (insert_if_then_before_iter): Pass true to it.
37161 (build_check_stmt): Pass false to it.
37162 (transform_statements): Flush hash table only on extended basic
37163 block boundaries, rather than at the beginning of every bb.
37164 Don't flush hash table on nonfreeing_call_p calls.
37165 * tree-flow.h (nonfreeing_call_p): New prototype.
37166 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37167
37168 2013-02-13 David S. Miller <davem@davemloft.net>
37169
37170 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37171
37172 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
37173
37174 PR target/56184
37175 * ira.c (max_regno_before_ira): Move from ...
37176 (ira): ... here.
37177 (fix_reg_equiv_init): Use max_regno_before_ira instead of
37178 vec_safe_length.
37179
37180 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37181
37182 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37183
37184 2013-02-13 Richard Biener <rguenther@suse.de>
37185
37186 PR lto/56295
37187 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37188 globals in MEM_REFs.
37189
37190 2013-02-13 Richard Biener <rguenther@suse.de>
37191
37192 * loop-init.c (loop_optimizer_init): Clear loop state when
37193 re-initializing preserved loops.
37194 * loop-unswitch.c (unswitch_single_loop): Return whether
37195 we unswitched the loop. Do not verify loop state here.
37196 (unswitch_loops): When we unswitched a loop discover new loops.
37197
37198 2013-02-13 Kostya Serebryany <kcc@google.com>
37199
37200 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37201 on x86_64 linux.
37202 * sanitizer.def: Rename __asan_init to __asan_init_v1.
37203
37204 2013-02-12 Dodji Seketeli <dodji@redhat.com>
37205
37206 Avoid instrumenting duplicated memory access in the same basic block
37207 * Makefile.in (asan.o): Add new dependency on hash-table.h
37208 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37209 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37210 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37211 (free_mem_ref_resources, has_mem_ref_been_instrumented)
37212 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37213 (get_mem_ref_of_assignment): New functions.
37214 (get_mem_refs_of_builtin_call): Extract from
37215 instrument_builtin_call and tweak a little bit to make it fit with
37216 the new signature.
37217 (instrument_builtin_call): Use the new
37218 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
37219 of is_gimple_builtin_call.
37220 (instrument_derefs, instrument_mem_region_access): Insert the
37221 instrumented memory reference into the hash table.
37222 (maybe_instrument_assignment): Renamed instrument_assignment into
37223 this, and change it to advance the iterator when instrumentation
37224 actually happened and return true in that case. This makes it
37225 homogeneous with maybe_instrument_assignment, and thus give a
37226 chance to callers to be more 'regular'.
37227 (transform_statements): Clear the memory reference hash table
37228 whenever we enter a new BB, when we cross a function call, or when
37229 we are done transforming statements. Use
37230 maybe_instrument_assignment instead of instrumentation. No more
37231 need to special case maybe_instrument_assignment and advance the
37232 iterator after calling it; it's now handled just like
37233 maybe_instrument_call. Update comment.
37234
37235 2013-02-13 Richard Biener <rguenther@suse.de>
37236
37237 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37238 Fix loop discovery code.
37239
37240 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
37241
37242 PR inline-asm/56148
37243 * lra-constraints.c (process_alt_operands): Match early clobber
37244 operand with itself. Check conflicts with earlyclobber only if
37245 the operand is not reloaded. Prefer to reload conflicting operand
37246 if earlyclobber and matching operands are the same.
37247
37248 2013-02-12 Richard Biener <rguenther@suse.de>
37249
37250 PR lto/56297
37251 * lto-streamer-out.c (write_symbol): Do not output symbols
37252 for hard register variables.
37253
37254 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
37255
37256 PR target/54222
37257 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37258 (umulsidi3_insn, mulsidi3_insn): New insns.
37259
37260 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
37261
37262 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37263 (struct tune_params): Add vec_costs field.
37264 * config/arm/arm.c (arm_builtin_vectorization_cost)
37265 (arm_add_stmt_cost): New functions.
37266 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37267 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37268 (arm_default_vec_cost): New struct of type cpu_vec_costs.
37269 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37270 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37271 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37272 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37273
37274 2013-02-12 Richard Biener <rguenther@suse.de>
37275
37276 PR lto/56295
37277 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37278 decls again if possible.
37279
37280 2013-02-12 Richard Biener <rguenther@suse.de>
37281
37282 PR middle-end/56288
37283 * tree-ssa.c (verify_ssa_name): Fix check, move
37284 SSA_NAME_IN_FREE_LIST check up.
37285
37286 2013-02-12 Jakub Jelinek <jakub@redhat.com>
37287 Steven Bosscher <steven@gcc.gnu.org>
37288
37289 PR rtl-optimization/56151
37290 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37291 equal to op0 or op1, and last_insn pattern is CODE operation
37292 with MEM dest and one of the operands matches that MEM.
37293
37294 2013-02-11 Sriraman Tallam <tmsriram@google.com>
37295
37296 * doc/extend.texi: Document Function Multiversioning and "default"
37297 parameter string to target attribute.
37298 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37299 target attribute parameter is "default".
37300 (ix86_compare_version_priority): Remove checks for target attribute.
37301 (ix86_mangle_function_version_assembler_name): Change error to sorry.
37302 Remove check for target attribute equal to NULL. Add assert.
37303 (ix86_generate_version_dispatcher_body): Change error to sorry.
37304
37305 2013-02-11 Iain Sandoe <iain@codesourcery.com>
37306 Jack Howarth <howarth@bromo.med.uc.edu>
37307 Patrick Marlier <patrick.marlier@gmail.com>
37308
37309 PR libitm/55693
37310 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37311 define ENDFILE_SPEC as TM_DESTRUCTOR.
37312 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37313
37314 2013-02-11 Alexander Potapenko <glider@google.com>
37315 Jack Howarth <howarth@bromo.med.uc.edu>
37316 Jakub Jelinek <jakub@redhat.com>
37317
37318 PR sanitizer/55617
37319 * config/darwin.c (cdtor_record): Rename ctor_record.
37320 (sort_cdtor_records): Rename sort_ctor_records.
37321 (finalize_dtors): New routine to sort destructors by
37322 priority before use in assemble_integer.
37323 (machopic_asm_out_destructor): Use finalize_dtors if needed.
37324
37325 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
37326
37327 PR rtl-optimization/56275
37328 * simplify-rtx.c (avoid_constant_pool_reference): Check that
37329 offset is non-negative and less than cmode size before
37330 calling simplify_subreg.
37331
37332 2013-02-11 Richard Biener <rguenther@suse.de>
37333
37334 PR tree-optimization/56264
37335 * cfgloop.h (fix_loop_structure): Adjust prototype.
37336 * loop-init.c (fix_loop_structure): Return the number of
37337 newly discovered loops.
37338 * tree-cfgcleanup.c (repair_loop_structures): When new loops
37339 are discovered, do a full loop-closed SSA rewrite.
37340
37341 2013-02-11 Richard Biener <rguenther@suse.de>
37342
37343 PR tree-optimization/56273
37344 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37345 first VRP run.
37346 (check_array_ref): Fix missing newline in dumps.
37347 (search_for_addr_array): Likewise.
37348
37349 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
37350
37351 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37352
37353 2013-02-09 Jakub Jelinek <jakub@redhat.com>
37354
37355 PR target/56256
37356 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37357
37358 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
37359
37360 PR rtl-optimization/56246
37361 * lra-constraints.c (simplify_operand_subreg): Try to reuse
37362 reload pseudo.
37363 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37364 constraints are satisfied.
37365
37366 2013-02-08 Jeff Law <law@redhat.com>
37367
37368 PR debug/53948
37369 * emit-rtl.c (reg_is_parm_p): New function.
37370 * regs.h (reg_is_parm_p): New prototype.
37371 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37372 callee-clobbered registers.
37373
37374 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
37375
37376 PR target/56043
37377 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37378 If there is no implicit builtin declaration, just return NULL.
37379
37380 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37381
37382 * config/i386/sse.md (FMAMODEM): New mode iterator.
37383 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37384 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37385
37386 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37387
37388 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37389 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37390 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37391
37392 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37393
37394 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37395 (microblaze*-*-elf): Likewise.
37396 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37397 LINK_SPEC.
37398 * config/microblaze/microblaze-c.c: Add builtin defines for
37399 _LITTLE_ENDIAN and _BIG_ENDIAN.
37400 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37401 add to TARGET_DEFAULT flags.
37402 Expand ASM_SPEC and LINK_SPEC.
37403 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37404 * config/microblaze/microblaze.md: Update extendsidi2 and
37405 movdi_internal instructions to use low-order / high-order reg
37406 print_operands.
37407 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37408 options and inversemask / mask of LITTLE_ENDIAN.
37409 * config/microblaze/t-microblaze: Expand multilib options to
37410 include mlittle-endian (le) and update exceptions patterns.
37411
37412 2013-02-08 Jakub Jelinek <jakub@redhat.com>
37413
37414 PR rtl-optimization/56195
37415 * lra-constraints.c (get_reload_reg): Don't reuse regs
37416 if they have smaller mode than requested, if they have
37417 wider mode than requested, try to return a SUBREG.
37418
37419 PR tree-optimization/56250
37420 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37421 if type is unsigned and code isn't MULT_EXPR.
37422
37423 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37424
37425 PR tree-optimization/56064
37426 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37427 bits according to mode.
37428 * fixed-value.h (fixed_from_double_int)
37429 (const_fixed_from_double_int): Adjust comments.
37430
37431 2013-02-08 Richard Biener <rguenther@suse.de>
37432
37433 PR lto/56231
37434 * lto-streamer.h (struct data_in): Remove current_file, current_line
37435 and current_col members.
37436 * lto-streamer-out.c (lto_output_location): Stream changed bits
37437 en-block for efficiency.
37438 * lto-streamer-in.c (clear_line_info): Remove.
37439 (lto_input_location): Cache current file, line and column
37440 globally via local statics. Read changed bits en-block.
37441 (input_function): Do not call clear_line_info.
37442 (lto_read_body): Likewise.
37443 (lto_input_toplevel_asms): Likewise.
37444
37445 2013-02-08 Michael Matz <matz@suse.de>
37446
37447 PR tree-optimization/52448
37448 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37449 (nt_call_phase): New static.
37450 (add_or_mark_expr): Only mark accesses with newer phase than any
37451 call seen.
37452 (nonfreeing_call_p): New.
37453 (nt_init_block): Update nt_call_phase, mark blocks as visited.
37454 (nt_fini_block): Keep blocks marked as visited.
37455 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37456
37457 2013-02-08 Richard Biener <rguenther@suse.de>
37458
37459 * ira.c (ira): Free broken dominator information.
37460
37461 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37462
37463 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37464
37465 2013-02-08 Marek Polacek <polacek@redhat.com>
37466
37467 * cfgloop.c (verify_loop_structure): Add more checking of headers.
37468
37469 2013-02-08 Richard Biener <rguenther@suse.de>
37470
37471 PR middle-end/56181
37472 * cfgloop.h (flow_loops_find): Adjust.
37473 (bb_loop_header_p): Declare.
37474 * cfgloop.c (bb_loop_header_p): New function split out from ...
37475 (flow_loops_find): ... here. Adjust function signature,
37476 support incremental loop structure update.
37477 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37478 * cfgloopmanip.c (fix_loop_structure): Move ...
37479 * loop-init.c (fix_loop_structure): ... here.
37480 (apply_loop_flags): Split out from ...
37481 (loop_optimizer_init): ... here.
37482 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37483 in incremental mode, only remove dead loops here.
37484
37485 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37486
37487 PR target/54222
37488 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37489 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37490 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37491 (*round<mode>3.libgcc): New insns for fixed-modes.
37492 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37493 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37494 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37495 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37496 implementations. Define to __builtin_avr_absFX,
37497 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37498 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37499 __builtin_avr_countlsFX, respectively.
37500 * config/avr/avr-c.c (target.h): Include it.
37501 (enum avr_builtin_id): New enum.
37502 (avr_resolve_overloaded_builtin): New static function.
37503 (avr_register_target_pragmas): Use it to set
37504 targetm.resolve_overloaded_builtin.
37505 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37506 tree nodes used by DEF_BUILTIN.
37507 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37508 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37509 <AVR_BUILTIN_xxBITS>: Same.
37510
37511 2013-02-08 Richard Biener <rguenther@suse.de>
37512
37513 * cfgloop.c (verify_loop_structure): Properly handle
37514 a loop exiting to another loop header.
37515 * ira-int.h (ira_loops): Remove.
37516 * ira.c (ira_loops): Remove.
37517 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37518 (do_reload): Use loop_optimizer_finalize.
37519 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37520 number_of_loops to access the loop tree.
37521 (more_one_region_p): Likewise.
37522 (finish_loop_tree_nodes): Likewise.
37523 (rebuild_regno_allocno_maps): Likewise.
37524 (mark_loops_for_removal): Likewise.
37525 (mark_all_loops_for_removal): Likewise.
37526 (remove_unnecessary_regions): Likewise.
37527 (ira_build): Likewise.
37528 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37529
37530 2013-02-08 Richard Biener <rguenther@suse.de>
37531
37532 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37533 * ipa-pure-const.c (analyze_function): Avoid calling
37534 mark_irreducible_loops twice.
37535 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37536
37537 2013-02-07 David S. Miller <davem@davemloft.net>
37538
37539 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37540 on 'reg'.
37541 * var-tracking.c (vt_add_function_parameter): Test the presence of
37542 HAVE_window_save properly and do not remap argument registers when
37543 we have a leaf function.
37544
37545 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37546
37547 PR bootstrap/56227
37548 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37549 instead of "ll".
37550 * config/i386/i386.c (ix86_print_operand): Ditto.
37551
37552 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37553
37554 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37555
37556 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37557
37558 PR rtl-optimization/56225
37559 * lra-constraints.c (process_alt_operands): Check that reload hard
37560 reg can hold value for strict_low_part.
37561
37562 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37563
37564 PR debug/56154
37565 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37566 dwarf2out_end_function.
37567 (in_first_function_p, maybe_at_text_label_p,
37568 first_loclabel_num_not_at_text_label): New variables.
37569 (dwarf2out_var_location): In the first function find out
37570 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37571 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37572 functions.
37573
37574 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37575
37576 PR rtl-optimization/56178
37577 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37578 SUBREG of a register. Tidy up related block of code.
37579 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37580 note if the source is a register or a SUBREG of a register.
37581
37582 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37583
37584 PR target/56228
37585 * config/rs6000/rs6000.md (ptrm): New mode attr.
37586 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37587 call_value_indirect_aix<pttrsize>,
37588 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37589 m in constraints.
37590
37591 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37592
37593 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37594 if -bnortl. Convert to strcmp and strncmp.
37595
37596 2013-02-07 Alan Modra <amodra@gmail.com>
37597
37598 PR target/54009
37599 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37600 addresses won't wrap when offsetting.
37601 (rs6000_secondary_reload): Provide secondary reloads needed for
37602 wrapping LO_SUM addresses.
37603
37604 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37605
37606 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37607 MACH, just __MACH__.
37608
37609 2013-02-06 Richard Biener <rguenther@suse.de>
37610
37611 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37612 instead of calling fix_loop_structure.
37613
37614 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37615
37616 PR middle-end/56217
37617 * omp-low.c (use_pointer_for_field): Return false if
37618 lower_send_shared_vars doesn't generate any copy-out code.
37619
37620 2013-02-06 Tom de Vries <tom@codesourcery.com>
37621
37622 PR rtl-optimization/56131
37623 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37624 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37625 of the label is NULL. Add comment.
37626
37627 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37628
37629 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37630
37631 PR sanitizer/55374
37632 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37633 (STATIC_LIBTSAN_LIBS): Likewise.
37634 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37635 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37636 is defined, don't add anything else beyond that.
37637 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37638 (LINK_COMMAND_SPEC): Use them.
37639
37640 PR tree-optimization/56205
37641 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37642 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37643 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37644
37645 2013-02-05 Richard Biener <rguenther@suse.de>
37646
37647 PR tree-optimization/53342
37648 PR tree-optimization/53185
37649 * tree-vectorizer.h (vect_check_strided_load): Remove.
37650 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37651 not disallow peeling for vectorized strided loads.
37652 (vect_check_strided_load): Make static and simplify.
37653 (vect_analyze_data_refs): Adjust.
37654 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37655 correctly when vectorizing strided loads.
37656
37657 2013-02-05 Richard Biener <rguenther@suse.de>
37658
37659 * doc/install.texi: Refer to ISL, not PPL.
37660
37661 2013-02-05 Jan Hubicka <jh@suse.cz>
37662
37663 PR tree-optimization/55789
37664 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37665
37666 2013-02-05 Jan Hubicka <jh@suse.cz>
37667
37668 PR tree-optimization/55789
37669 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37670 the dead call anyway.
37671
37672 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37673
37674 PR sanitizer/55374
37675 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37676
37677 2013-02-04 Alexander Potapenko <glider@google.com>
37678 Jack Howarth <howarth@bromo.med.uc.edu>
37679 Jakub Jelinek <jakub@redhat.com>
37680
37681 PR sanitizer/55617
37682 * config/darwin.c (sort_ctor_records): Stabilized qsort
37683 on constructor priority by using original position.
37684 (finalize_ctors): New routine to sort constructors by
37685 priority before use in assemble_integer.
37686 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37687
37688 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37689
37690 PR libstdc++/54314
37691 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37692 about visibility on artificial decls.
37693 * config/sol2.c (solaris_assemble_visibility): Likewise.
37694
37695 2013-02-04 Kai Tietz <ktietz@redhat.com>
37696
37697 PR target/56186
37698 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37699 argument and improve checking of return-argument types for 16-byte
37700 modes.
37701 (ix86_function_value_1): Add additional valtype argument on call
37702 of function_value_64.
37703 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37704 handling infunction_value_64 function.
37705
37706 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37707
37708 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37709
37710 2013-02-04 Richard Biener <rguenther@suse.de>
37711
37712 PR tree-optimization/56188
37713 * tree-ssa-structalias.c (label_visit): Consider case with
37714 initially non-empty points-to set.
37715 (perform_var_substitution): Dump node mapping and clean up.
37716
37717 2013-02-04 Richard Guenther <rguenther@suse.de>
37718
37719 PR lto/56168
37720 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37721 node prevail as last resort.
37722 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37723 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37724
37725 2013-02-04 Richard Biener <rguenther@suse.de>
37726
37727 PR tree-optimization/56113
37728 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37729 Merge into ...
37730 (equiv_class_lookup_or_add): ... this.
37731 (label_visit): Adjust and fix error in previous patch.
37732 (perform_var_substitution): Adjust.
37733
37734 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37735
37736 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37737 * config/sh/sh4-300.md: Likewise.
37738 * config/sh/sh4a.md: Likewise.
37739 * config/sh/constraints.md: Likewise.
37740 * config/sh/sh.md: Likewise.
37741 * config/sh/netbsd-elf.h: Likewise.
37742 * config/sh/predicates.md: Likewise.
37743 * config/sh/sh-protos.h: Likewise.
37744 * config/sh/ushmedia.h: Likewise.
37745 * config/sh/linux.h: Likewise.
37746 * config/sh/sh.c: Likewise.
37747 * config/sh/superh.h: Likewise.
37748 * config/sh/elf.h: Likewise.
37749 * config/sh/sh4.md: Likewise.
37750 * config/sh/sh.h: Likewise.
37751
37752 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37753
37754 * config/pa/constraints.md: Adjust unused letters. Change "T"
37755 constraint to match_test floating_point_store_memory_operand().
37756 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37757 (base14_operand): New.
37758 (floating_point_store_memory_operand): New.
37759 (integer_store_memory_operand): Revise to use base14_operand and
37760 reg_plus_base_memory_operand.
37761 (move_dest_operand): Allow symbolic_memory_operands.
37762 (symbolic_memory_operand): Check for LO_SOM.
37763 (symbolic_operand): Change default case to break.
37764 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37765 CONST_DOUBLE values to be reloaded by putting them into memory when
37766 the destination is a floating point register.
37767 (movdf): Remove code to handle CONST_DOUBLE.
37768 (movsf): Likewise.
37769 (reload_indf_r1): New.
37770 (reload_insf_r1): New.
37771 Consistently use "Q" and "T" constraints with integer and floating
37772 point move instructions, respectively.
37773 (movdi): Remove FAIL.
37774 Change predicate for source operand unamed DImode move from
37775 general_operand to move_src_operand.
37776 (umulsidi3): Change predicate for destination operand to
37777 register_operand.
37778 Likewise for similar unamed patterns.
37779 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37780 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37781 (hppa_legitimize_address): Simplify mask calculation.
37782 (pa_emit_move_sequence): Revised handling of secondary reloads from
37783 REG+D addresses for floating point loads and stores. Directly handle
37784 loading CONST0_RTX (mode) to a floating point register.
37785 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37786 to floating point registers. Don't restrict secondary reloads to
37787 floating point registers to integer modes. Revise some comments and
37788 cleanup some code.
37789 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37790 (pa_legitimate_address_p): New.
37791 (pa_legitimize_reload_address): New.
37792 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37793 (STRICT_REG_OK_FOR_BASE_P): New.
37794 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37795 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37796
37797 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37798 Andrew Dixie <andrewd@gentrack.com>
37799
37800 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37801 flag set.
37802
37803 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37804
37805 * expmed.c (extract_bit_field_1): Pass the full width of the
37806 structure to get_best_reg_extraction_insn.
37807
37808 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37809
37810 PR target/54601
37811 * configure.ac (use_cxa_atexit): Add AIX.
37812 * configure: Regenerate.
37813
37814 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37815
37816 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37817
37818 PR debug/54793
37819 * final.c (need_profile_function): New variable.
37820 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37821 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37822 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37823 notes, targetm.asm_out.function_prologue doesn't emit anything,
37824 HAVE_prologue and profiler should be emitted before prologue,
37825 set need_profile_function instead of emitting it.
37826 (final_scan_insn): If need_profile_function, emit
37827 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37828 NOTE_INSN_FUNCTION_BEG note.
37829
37830 2013-02-01 Richard Henderson <rth@redhat.com>
37831
37832 * config/rs6000/rs6000.md (smulditi3): New.
37833 (umulditi3): New.
37834
37835 * config/alpha/alpha.md (umulditi3): New.
37836
37837 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37838
37839 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37840 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37841
37842 2013-02-01 Richard Biener <rguenther@suse.de>
37843
37844 PR tree-optimization/56113
37845 * tree-ssa-structalias.c (label_visit): Reduce work for
37846 single-predecessor nodes.
37847
37848 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37849
37850 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37851 range isn't testing for zero.
37852
37853 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37854
37855 PR middle-end/56113
37856 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37857
37858 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37859 Nick Clifton <nickc@redhat.com>
37860
37861 * config/v850/constraints.md (Q): Define as a memory constraint.
37862 * config/v850/predicates.md (label_ref_operand): New predicate.
37863 (e3v5_shift_operand): New predicate.
37864 (ior_operator): New predicate.
37865 * config/v850/t-v850: Add e3v5 multilib.
37866 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37867 (v850_gen_movdi): Prototype.
37868 * config/v850/v850.c: Add support for e3v5 architecture.
37869 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37870 TARGET_V850E_UP.
37871 (construct_save_jarl): Add e3v5 long JARL support.
37872 (v850_adjust_insn_length): New function. Adjust length of call
37873 insns when using e3v5 instructions.
37874 (v850_gen_movdi): New function: Generate instructions to move a
37875 DImode value.
37876 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37877 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37878 (TARGET_USE_FPU): Enable for e3v5.
37879 (CONST_OK_FOR_W): New macro.
37880 (ADJUST_INSN_LENGTH): Define.
37881 * config/v850/v850.md (UNSPEC_LOOP): Define.
37882 (attr cpu): Add v850e3v5.
37883 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37884 (movdi): New pattern.
37885 (movdi_internal): New pattern.
37886 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37887 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37888 (cstoresf4): Likewise.
37889 (cstoredf4): Likewise.
37890 (insv): New pattern.
37891 (rotlso3_a): New pattern.
37892 (rotlsi3_b): New pattern
37893 (rotlsi3_v850e3v5): New pattern.
37894 (doloop_begin): New pattern.
37895 (fix_loop_counter): New pattern.
37896 (doloop_end): New pattern.
37897 (branch_normal): Add e3v5 long branch support.
37898 (branch_invert): Likewise.
37899 (branch_z_normal): Likewise.
37900 (branch_z_invert): Likewise.
37901 (branch_nz_normal): Likewise.
37902 (branch_nz_invert): Likewise.
37903 (call_internal_short): Add e3v5 register-indirect JARL support.
37904 (call_internal_long): Likewise.
37905 (call_value_internal_short): Likewise.
37906 (call_value_internal_long): Likewise.
37907 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37908 (mloop): New option.
37909 * config.gcc: Add support for configuring v840e3v5 target.
37910 * doc/invoke.texi: Document new v850 specific command line options.
37911
37912 2013-01-31 Paul Koning <ni1d@arrl.net>
37913
37914 PR debug/55059
37915 PR debug/54508
37916 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37917 children if parent is a class.
37918 (prune_unused_types_prune): Don't add DW_AT_declaration.
37919
37920 2013-01-31 Richard Biener <rguenther@suse.de>
37921
37922 PR tree-optimization/56157
37923 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37924 match up operand with SLP child.
37925
37926 2013-01-31 Jason Merrill <jason@redhat.com>
37927
37928 PR debug/54410
37929 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37930 parameters the first time.
37931 (gen_scheduled_generic_parms_dies): Check completeness here.
37932
37933 2013-01-31 Richard Biener <rguenther@suse.de>
37934
37935 PR middle-end/53073
37936 * common.opt (faggressive-loop-optimizations): New flag,
37937 enabled by default.
37938 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37939 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37940 infer_loop_bounds_from_undefined by it.
37941
37942 2013-01-31 Richard Biener <rguenther@suse.de>
37943
37944 PR tree-optimization/56150
37945 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37946 visit virtual operands.
37947 (find_uses_to_rename_bb): Likewise.
37948
37949 2013-01-31 Richard Biener <rguenther@suse.de>
37950
37951 PR tree-optimization/56150
37952 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37953 mixed store non-store stmts.
37954
37955 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37956
37957 PR sanitizer/55374
37958 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37959 LIBASAN_EARLY_SPEC is defined.
37960 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37961 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37962 before %o.
37963 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37964
37965 PR c++/55742
37966 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37967 invalid args instead of ICEing on it.
37968 (ix86_valid_target_attribute_tree): Return error_mark_node if
37969 ix86_valid_target_attribute_inner_p failed.
37970 (ix86_valid_target_attribute_p): Return false only if
37971 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37972 target("default") attribute.
37973 (sorted_attr_string): Change argument from const char * to tree,
37974 merge in all target attribute arguments rather than just one.
37975 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37976 instead of free. Avoid using strcat.
37977 (ix86_mangle_function_version_assembler_name): Mangle
37978 target("default") as if no target attribute is present. Adjust
37979 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37980 instead of xmalloc and XDELETEVEC instead of free.
37981 (ix86_function_versions): Don't return true if one of the decls
37982 doesn't have target attribute. If they don't and one of the decls
37983 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37984 sorted_attr_string caller. Use XDELETEVEC instead of free.
37985 (ix86_supports_function_versions): Remove.
37986 (make_name): Fix up formatting.
37987 (make_dispatcher_decl): Remove resolver_name and its initialization.
37988 Avoid leaking memory.
37989 (is_function_default_version): Return true if there is
37990 target("default") attribute rather than no target attribute at all.
37991 (make_resolver_func): Avoid leaking memory.
37992 (ix86_generate_version_dispatcher_body): Likewise.
37993 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37994 * target.def (supports_function_versions): Remove.
37995 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37996 * doc/tm.texi: Regenerated.
37997
37998 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37999
38000 PR rtl-optimization/56144
38001 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
38002 for values with side effects.
38003
38004 2013-01-30 Richard Biener <rguenther@suse.de>
38005
38006 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
38007 (sparseset_pop): Likewise.
38008 * cfganal.c (compute_idf): Likewise. Increase work-stack size
38009 to be able to use quick_push in the worker loop.
38010
38011 2013-01-30 Marek Polacek <polacek@redhat.com>
38012
38013 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
38014
38015 2013-01-30 Richard Biener <rguenther@suse.de>
38016
38017 PR lto/56147
38018 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
38019
38020 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
38021
38022 PR tree-optimization/56064
38023 * fixed-value.c (fixed_from_double_int): New function.
38024 * fixed-value.h (fixed_from_double_int): New prototype.
38025 (const_fixed_from_double_int): New static inline function.
38026 * fold-const.c (native_interpret_fixed): New static function.
38027 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38028 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38029 (native_encode_fixed): New static function.
38030 (native_encode_expr) <FIXED_CST>: Use it.
38031 (native_interpret_int): Move double_int worker code to...
38032 * double-int.c (double_int::from_buffer): ...this new static method.
38033 * double-int.h (double_int::from_buffer): Prototype it.
38034
38035 2013-01-30 Richard Biener <rguenther@suse.de>
38036
38037 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38038 New pointer-map and obstack.
38039 (init_alias_vars): Allocate pointer-map and obstack.
38040 (delete_points_to_sets): Free them.
38041 (find_what_var_points_to): Cache result.
38042 (find_what_p_points_to): Adjust for changed interface of
38043 find_what_var_points_to.
38044 (compute_points_to_sets): Likewise.
38045 (ipa_pta_execute): Likewise.
38046
38047 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38048
38049 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38050 * configure: Regenerate.
38051 * config.in: Regenerate.
38052 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38053 #nobits/#progbits if supported.
38054
38055 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
38056
38057 PR target/56121
38058 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38059 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38060 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38061
38062 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38063
38064 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38065 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38066
38067 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38068
38069 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38070 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38071
38072 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38073
38074 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38075 declaration.
38076 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38077 * config/arm/cortex-a7.md: New bypasses using
38078 arm_mac_accumulator_is_result.
38079
38080 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38081
38082 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
38083 (cortex_a7_neon_mla): Likewise.
38084 (cortex_a7_fpfmad): New reservation.
38085 (cortex_a7_fpmacs): Use ffmas and update required units.
38086 (cortex_a7_fpmuld): Update required units and latency.
38087 (cortex_a7_fpmacd): Likewise.
38088 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38089 (cortex_a7_neon). Likewise.
38090 (bypass) Update participating units.
38091
38092 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38093
38094 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38095 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38096 from fmac to ffma.
38097 * config/arm/vfp11.md (vfp_farith): Use ffmas.
38098 (vfp_fmul): Use ffmad.
38099 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38100 (cortex_r4_fmacd): Use ffmad.
38101 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38102 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
38103 (cortex_a9_fmacd): Use ffmad.
38104 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38105 (cortex_a8_vfp_macd): Use ffmad.
38106 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38107 (cortex_a5_fpmacd): Use ffmad.
38108 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38109 (cortex_a15_vfp_macd): Use ffmad.
38110 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38111
38112 2013-01-29 Jason Merrill <jason@redhat.com>
38113
38114 PR libstdc++/54314
38115 * varasm.c (default_assemble_visibility): Don't warn about
38116 visibility on artificial decls.
38117
38118 2013-01-29 Richard Biener <rguenther@suse.de>
38119
38120 PR tree-optimization/56113
38121 * tree-ssa-structalias.c (equiv_class_lookup): Also return
38122 the bitmap leader.
38123 (label_visit): Free duplicate bitmaps and record the leader instead.
38124 (perform_var_substitution): Adjust.
38125
38126 2013-01-29 Richard Biener <rguenther@suse.de>
38127
38128 PR tree-optimization/55270
38129 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38130 the CFG, schedule loops for fixup.
38131
38132 2013-01-29 Nick Clifton <nickc@redhat.com>
38133
38134 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38135 SP_REG.
38136
38137 2013-01-28 Leif Ekblad <leif@rdos.net>
38138
38139 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38140 * config/i386/i386.h (TARGET_RDOS): New macro.
38141 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38142 * config/i386/i386.c (ix86_option_override_internal): For 64bit
38143 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38144 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38145 DEFAULT_LARGE_SECTION_THRESHOLD.
38146 * config/i386/i386.md (R14_REG, R15_REG): New constants.
38147 * config/i386/rdos.h: New file.
38148 * config/i386/rdos64.h: New file.
38149
38150 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
38151
38152 PR other/54814
38153 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38154 TEST_HARD_REG_BIT.
38155
38156 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38157
38158 PR rtl-optimization/56117
38159 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38160 call cselib_lookup_from_insn on the MEM before calling
38161 add_insn_mem_dependence.
38162
38163 2013-01-28 Richard Biener <rguenther@suse.de>
38164
38165 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38166 to a stmt that didn't have one.
38167 (copy_phis_for_bb): Likewise for PHI arguments.
38168 (copy_debug_stmt): Likewise for debug stmts.
38169
38170 2013-01-28 Richard Biener <rguenther@suse.de>
38171
38172 PR tree-optimization/56034
38173 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38174 (partition_builtin_p): Adjust.
38175 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
38176 it is the last partition.
38177 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38178 up the vertex for the definition.
38179 (classify_partition): Classify whether a partition is a
38180 PKIND_REDUCTION, thus has uses outside of the loop.
38181 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38182 Merge all PKIND_REDUCTION partitions into the last partition.
38183 (tree_loop_distribution): Seed partitions from reductions as well.
38184
38185 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38186
38187 PR tree-optimization/56125
38188 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38189 pow(x,c) into sqrt(x) * powi(x, n/2) or
38190 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38191 optimizing for size.
38192 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38193 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38194 integer.
38195
38196 PR tree-optimization/56094
38197 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38198 to UNKNOWN_LOCATION while gimplifying expr.
38199
38200 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
38201
38202 PR target/56114
38203 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38204 operand 0 in movabs insn template for -masm=intel asm alternative.
38205 (*movabs<mode>_2): Ditto for operand 1.
38206
38207 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
38208
38209 PR target/54663
38210 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38211 of microblaze-c.o
38212
38213 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38214
38215 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38216 tm_file.
38217
38218 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38219
38220 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38221 Undef to avoid warning.
38222
38223 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38224
38225 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38226 * configure: Regenerate.
38227
38228 2013-01-25 Jakub Jelinek <jakub@redhat.com>
38229
38230 PR tree-optimization/56098
38231 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38232 for stmts with volatile ops.
38233 (cond_store_replacement): Don't optimize if assign has volatile ops.
38234 (cond_if_else_store_replacement_1): Don't optimize if either
38235 then_assign or else_assign have volatile ops.
38236 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38237 volatile ops.
38238
38239 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38240
38241 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38242
38243 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38244
38245 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38246 missing ':' in asm example.
38247
38248 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
38249
38250 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38251 entries into lane and laneq entries.
38252 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38253 Remove AdvSIMD scalar modes.
38254 (aarch64_sq<r>dmulh_laneq<mode>): New.
38255 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38256 modes.
38257 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38258 builtin implementations to relfect changes in RTL in aarch64-simd.md.
38259 * config/aarch64/iterators.md (VCOND): New.
38260 (VCONQ): New.
38261
38262 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38263
38264 PR target/54222
38265 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38266 Add NULL LIBNAME argument to existing definitions.
38267 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38268 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38269 * config/avr/avr.c (DEF_BUILTIN): Same.
38270 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38271 (avr_expand_builtin): Expand to a vanilla call if a libgcc
38272 implementation is available (DECL_ASSEMBLER_NAME is set).
38273 (avr_fold_absfx): New static function.
38274 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38275 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38276 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38277 AVR_BUILTIN_ABSLLK.
38278 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38279 (abshk, absk, abslk, absllk): Provide as static inline functions.
38280
38281 2013-01-25 Marek Polacek <polacek@redhat.com>
38282
38283 PR tree-optimization/56035
38284 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38285
38286 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
38287
38288 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38289 (*movtf_internal_rex64): Add (!o,C) alternative
38290 (*movxf_internal_rex64): Ditto.
38291 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38292
38293 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
38294
38295 * doc/invoke.texi: fix typo.
38296 * doc/objc.texi: fix typo.
38297
38298 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
38299
38300 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38301 for the first two alternatives.
38302
38303 2013-01-24 Diego Novillo <dnovillo@google.com>
38304
38305 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
38306 (ggc-zone.o): Remove.
38307 * configure.ac: Remove option --with-gc.
38308 * configure: Re-generate.
38309 * doc/install.texi: Remove documentation for --with-gc.
38310 * gengtype.c (write_enum_defn): Remove. Update all users.
38311 (write_Types_process_field): Remove generation of gt_e_* argument.
38312 (output_type_enum): Remove. Update all users.
38313 (write_enum_defn): Remove. Update all users.
38314 (enum alloc_zone): Remove. Update all users.
38315 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38316 * ggc-common.c (ggc_splay_alloc): Remove first argument.
38317 Update all callers.
38318 (struct ptr_data): Remove field TYPE. Update all users.
38319 (gt_pch_note_object): Remove argument TYPE. Update all users.
38320 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38321 Update all users.
38322 * ggc-none.c (ggc_alloc_typed_stat): Remove.
38323 (struct alloc_zone): Remove.
38324 (ggc_internal_alloc_zone_stat): Remove.
38325 (ggc_internal_cleared_alloc_zone_stat): Remove.
38326 * ggc-page.c (ggc_alloc_typed_stat): Remove.
38327 (ggc_pch_count_object): Remove last argument. Update all users.
38328 (ggc_pch_alloc_object): Remove last argument. Update all users.
38329 (struct alloc_zone): Remove.
38330 * ggc-zone.c: Remove.
38331 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
38332 (struct alloc_zone): Remove.
38333 (ggc_alloc_typed_stat): Remove.
38334 (ggc_alloc_typed): Remove.
38335 (ggc_splay_alloc): Remove first argument.
38336 (rtl_zone): Remove. Update all users.
38337 (tree_zone): Remove. Update all users.
38338 (tree_id_zone): Remove. Update all users.
38339 (ggc_internal_zone_alloc_stat): Remove. Update all users.
38340 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
38341 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
38342 * tree-ssanames.c: Remove references to zone allocator in comments.
38343
38344 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
38345
38346 * config/avr/avr.c (avr_out_fract): Make register numbers that
38347 might be outside of source operand signed.
38348
38349 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
38350
38351 * config/i386/constraints.md (Yf): New constraint.
38352 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38353 of f constraint to conditionaly disable x87 register preferences.
38354 (*movdf_internal): Ditto.
38355 (*movsf_internal): Ditto.
38356
38357 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
38358
38359 PR inline-asm/55934
38360 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38361 that have operands with impossible constraints.
38362 Add a FIXME for a speed-up opportunity.
38363 * lra-constraints.c (process_alt_operands): Verify that a class
38364 selected from constraints on asms is valid for the operand mode.
38365 (curr_insn_transform): Remove incorrect comment.
38366
38367 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
38368
38369 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38370 TOC operand is a valid symbol ref in the constant pool.
38371
38372 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38373
38374 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38375
38376 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
38377
38378 PR target/54222
38379 * config/avr/stdfix.h: New file.
38380 * t-avr (stdfix-gcc.h): New rule to build it.
38381 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38382
38383 2013-01-23 Kostya Serebryany <kcc@google.com>
38384
38385 * config/darwin.h: remove dependency on
38386 CoreFoundation (asan on Mac OS).
38387
38388 2013-01-23 Jakub Jelinek <jakub@redhat.com>
38389
38390 PR target/49069
38391 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38392 instead of cmpdi_operand for first comparison operand.
38393 Don't assert that comparison operands aren't both constants.
38394
38395 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38396
38397 * doc/install.texi (Downloading the Source): Update references to
38398 downloading separate components.
38399
38400 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38401
38402 * doc/extend.texi (__int128): Improve grammar.
38403
38404 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
38405
38406 PR target/56028
38407 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38408 alternative to (o,r).
38409 (*movdi_internal_rex64): Remove (!o,n) alternative.
38410 (DImode immediate->memory splitter): Remove.
38411 (DImode immediate->memory peephole2): Remove.
38412 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38413 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38414 alternative to (!o,*r).
38415 (*movtf_internal_sse): New pattern.
38416 (*movxf_internal_rex64): New pattern.
38417 (*movxf_internal): Disable for TARGET_64BIT.
38418 (*movdf_internal_rex64): Remove (!o,F) alternative.
38419
38420 2013-01-22 Jakub Jelinek <jakub@redhat.com>
38421
38422 PR middle-end/56074
38423 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38424 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38425 * tree-vect-loop-manip.c (find_loop_location): Also ignore
38426 stmt locations where LOCATION_LOCUS of the stmt location is
38427 UNKNOWN_LOCATION or BUILTINS_LOCATION.
38428
38429 PR target/55686
38430 * config/i386/i386.md (UNSPEC_STOS): New.
38431 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38432 *strsetqi_1): Add UNSPEC_STOS.
38433
38434 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
38435
38436 PR c++/56067
38437 * doc/invoke.texi: Remove left over -Wsynth example.
38438
38439 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38440
38441 PR tree-optimization/56051
38442 * fold-const.c (fold_binary_loc): Don't fold
38443 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38444 a narrowing conversion, or widening conversion from signed
38445 to unsigned.
38446
38447 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38448
38449 PR rtl-optimization/56023
38450 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38451 dependent on debug instruction.
38452
38453 2013-01-21 Martin Jambor <mjambor@suse.cz>
38454
38455 PR middle-end/56022
38456 * function.c (allocate_struct_function): Call
38457 invoke_set_current_function_hook earlier.
38458
38459 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38460
38461 * reload1.c (init_reload): Only initialize reload_obstack
38462 during the first call.
38463
38464 2013-01-21 Marek Polacek <polacek@redhat.com>
38465
38466 * cfgloop.c (verify_loop_structure): Fix up grammar.
38467
38468 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
38469
38470 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38471 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38472
38473 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38474
38475 PR target/56058
38476 * config/arm/marvell-pj4.md: Update copyright year.
38477 Fix up use of alu to alu_reg and simple_alu_imm.
38478
38479 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38480
38481 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38482
38483 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38484
38485 PR target/55433
38486 * lra-constraints.c (curr_insn_transform): Don't reuse original
38487 insn for secondary memory move when memory mode should be different.
38488
38489 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38490
38491 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38492 atomic_storedi_1): New patterns.
38493
38494 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38495
38496 btver2 pipeline descriptions.
38497 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38498 descriptions.
38499 * config/i386/i386.md (btver2_decode): New type attributes.
38500 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38501 type attributes.
38502 * config/i386/btver2.md: New file describing btver2 pipelines.
38503
38504 2013-01-19 Andrew Pinski <apinski@cavium.com>
38505
38506 PR tree-optimization/52631
38507 * tree-ssa-sccvn (visit_use): Before looking up the original
38508 statement, try looking up the simplified expression.
38509
38510 2013-01-19 Anthony Green <green@moxielogic.com>
38511
38512 * config/moxie/moxie.c (moxie_expand_prologue): Set
38513 current_function_static_stack_size.
38514
38515 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38516
38517 PR tree-optimization/56029
38518 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38519 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38520
38521 2013-01-18 Sharad Singhai <singhai@google.com>
38522
38523 PR tree-optimization/55995
38524 * dumpfile.c (dump_loc): Print location only if available.
38525 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38526
38527 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38528
38529 PR target/55433
38530 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38531 secondary memory move.
38532 (inherit_reload_reg): Use rclass instead of cl for
38533 check_secondary_memory_needed_p.
38534
38535 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38536
38537 PR middle-end/56015
38538 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38539 the case where writing real complex part of target modifies op1.
38540
38541 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38542
38543 * config/aarch64/aarch64-simd.md
38544 (aarch64_vcond_internal<mode>): Handle unordered cases.
38545 * config/aarch64/iterators.md (v_cmp_result): New.
38546
38547 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38548 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38549
38550 * config/arm/marvell-pj4.md: New file.
38551 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38552 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38553 (generic_vfp): Likewise.
38554 * config/arm/arm-cores.def: Add marvell-pj4.
38555 * config/arm/arm-tune.md: Regenerate.
38556 * config/arm/arm-tables.opt: Regenerate.
38557 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38558 * doc/invoke.texi: Document marvell-pj4.
38559
38560 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38561
38562 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38563
38564 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38565
38566 PR debug/54114
38567 PR debug/54402
38568 PR debug/49888
38569 * var-tracking.c (negative_power_of_two_p): New.
38570 (global_get_addr_cache, local_get_addr_cache): New.
38571 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38572 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38573 heading comment.
38574 (vt_stack_offset_p): Remove.
38575 (vt_canon_true_dep): Always canonicalize loc's address.
38576 (clobber_overlapping_mems): Make sure we have a MEM.
38577 (local_get_addr_clear_given_value): New.
38578 (val_reset): Clear local cached entries.
38579 (compute_bb_dataflow): Create and release the local cache.
38580 Disable duplicate MEMs clobbering.
38581 (emit_notes_in_bb): Clobber MEMs likewise.
38582 (vt_emit_notes): Create and release the local cache.
38583 (vt_initialize, vt_finalize): Create and release the global
38584 cache, respectively.
38585 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38586
38587 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38588
38589 PR libmudflap/53359
38590 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38591 not found in the symtab.
38592
38593 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38594
38595 PR debug/56006
38596 PR rtl-optimization/55547
38597 PR rtl-optimization/53827
38598 PR debug/53671
38599 PR debug/49888
38600 * alias.c (offset_overlap_p): New, factored out of...
38601 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38602 the conservative special case for symbolic constants. Don't
38603 adjust zero sizes on alignment.
38604
38605 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38606
38607 PR rtl-optimization/52573
38608 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38609 REG_UNUSED for the same register.
38610
38611 2013-01-17 Richard Biener <rguenther@suse.de>
38612 Marek Polacek <polacek@redhat.com>
38613
38614 PR rtl-optimization/55833
38615 * loop-unswitch.c (unswitch_loops): Move loop verification...
38616 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38617 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38618 Set it to true when we're removing a loop from hierarchy tree in
38619 an irreducible region.
38620 (fix_bb_placements): Adjust caller.
38621 (fix_loop_placements): Likewise.
38622
38623 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38624
38625 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38626 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38627 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38628 Remove ID. Adjust comments.
38629 * config/avr/avr-c.c (avr_builtin_name): Remove.
38630 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38631 * config/avr/avr.c (avr_tolower): New static function.
38632 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38633 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38634 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38635 default expansion.
38636
38637 2013-01-17 Jan Hubicka <jh@suse.cz>
38638
38639 PR tree-optimization/55273
38640 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38641
38642 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38643
38644 PR target/55981
38645 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38646 store through atomic_store<mode>_1.
38647 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38648
38649 2013-01-17 Martin Jambor <mjambor@suse.cz>
38650
38651 PR tree-optimizations/55264
38652 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38653 for virtual methods.
38654 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38655 virtual methods before inlining is over.
38656 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38657 virtual functions.
38658 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38659 non-virtual.
38660
38661 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38662
38663 PR rtl-optimization/56005
38664 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38665 pending reads for prefetch.
38666
38667 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38668
38669 * config/aarch64/aarch64.md
38670 (*cstoresi_neg_uxtw): New pattern.
38671 (*cmovsi_insn_uxtw): New pattern.
38672 (*<optab>si3_uxtw): New pattern.
38673 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38674 (*<optab>si3_insn_uxtw): New pattern.
38675 (*bswapsi2_uxtw): New pattern.
38676
38677 2013-01-16 Richard Biener <rguenther@suse.de>
38678
38679 * tree-inline.c (tree_function_versioning): Remove set but
38680 never used variable.
38681
38682 2013-01-16 Richard Biener <rguenther@suse.de>
38683
38684 PR tree-optimization/55964
38685 * tree-flow.h (rename_variables_in_loop): Remove.
38686 (rename_variables_in_bb): Likewise.
38687 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38688 (copy_loop_before): Adjust and delete update-ssa status.
38689 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38690 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38691 (rename_variables_in_loop): Remove.
38692 (slpeel_update_phis_for_duplicate_loop): Likewise.
38693 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38694 use available cfg machinery instead of duplicating it.
38695 Update PHI nodes and perform poor-mans SSA update here.
38696 (slpeel_tree_peel_loop_to_edge): Adjust.
38697
38698 2013-01-16 Richard Biener <rguenther@suse.de>
38699
38700 PR tree-optimization/54767
38701 PR tree-optimization/53465
38702 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38703 (vrp_visit_phi_node): For PHI arguments coming via backedges
38704 drop all symbolical range information.
38705 (execute_vrp): Compute backedges.
38706
38707 2013-01-16 Richard Biener <rguenther@suse.de>
38708
38709 * doc/install.texi: Update CLooG and ISL requirements to
38710 0.18.0 and 0.11.1.
38711
38712 2013-01-16 Christian Bruel <christian.bruel@st.com>
38713
38714 PR target/55301
38715 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38716 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38717 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38718
38719 2013-01-16 DJ Delorie <dj@redhat.com>
38720
38721 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38722 (UNSPECV_SP_SWITCH_E): New.
38723 (sp_switch_1): Change to an unspec.
38724 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38725 replace $r15.
38726
38727 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38728
38729 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38730 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38731 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38732 (expand_mem_thread_fence): Ditto.
38733 (expand_mem_signal_fence): Ditto.
38734 (expand_atomic_load): Ditto.
38735 (expand_atomic_store): Ditto.
38736
38737 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38738
38739 PR rtl-optimization/55547
38740 PR rtl-optimization/53827
38741 PR debug/53671
38742 PR debug/49888
38743 * alias.c (memrefs_conflict_p): Set sizes to negative after
38744 AND adjustments.
38745
38746 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38747
38748 PR target/55940
38749 * function.c (thread_prologue_and_epilogue_insns): Always
38750 add crtl->drap_reg to set_up_by_prologue.set, even if
38751 stack_realign_drap is false.
38752
38753 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38754
38755 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38756 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38757 *call): Fix indention.
38758
38759 2013-01-15 Tom de Vries <tom@codesourcery.com>
38760
38761 PR target/55876
38762 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38763 Update comment.
38764
38765 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38766
38767 PR rtl-optimization/55153
38768 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38769
38770 2013-01-15 Martin Jambor <mjambor@suse.cz>
38771
38772 PR tree-optimization/55920
38773 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38774 accesses as grp_to_be_debug_replaced.
38775
38776 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38777
38778 PR tree-optimization/55920
38779 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38780 there is non-useless type conversion needed from debug rhs to lhs,
38781 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38782
38783 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38784 Mikael Pettersson <mikpe@it.uu.se>
38785
38786 PR target/43961
38787 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38788 Thumb.
38789 (ASM_OUTPUT_CASE_LABEL): Remove.
38790 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38791 * final.c (shorten_branches): Update alignment of labels before
38792 jump tables if CASE_VECTOR_SHORTEN_MODE.
38793
38794 2013-01-15 Richard Biener <rguenther@suse.de>
38795
38796 PR bootstrap/55961
38797 * system.h: Do not include gmp.h for building host tools.
38798
38799 2013-01-15 Richard Biener <rguenther@suse.de>
38800
38801 PR middle-end/55882
38802 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38803 account for bitpos when computing alignment.
38804
38805 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38806
38807 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38808 (ix86_target_macros_internal): Likewise.
38809
38810 * config/i386/i386.c (m_CORE2I7): Removed.
38811 (m_CORE_HASWELL): New macro.
38812 (m_CORE_ALL): Likewise.
38813 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38814 (initial_ix86_arch_features): Likewise.
38815 (processor_target_table): Initializations for Core avx2.
38816 (cpu_names): New names "core-avx2".
38817 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38818 PROCESSOR_CORE_HASWELL.
38819 (ix86_issue_rate): New case.
38820 (ia32_multipass_dfa_lookahead): Likewise.
38821 (ix86_sched_init_global): Likewise.
38822
38823 * config/i386/i386.h (TARGET_HASWELL): New macro.
38824 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38825 (processor_type): New PROCESSOR_HASWELL.
38826
38827 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38828
38829 PR tree-optimization/55955
38830 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38831 *SHIFT_EXPR and *ROTATE_EXPR codes.
38832
38833 PR tree-optimization/48766
38834 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38835 -ftrapv disable -fwrapv.
38836
38837 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38838
38839 PR target/55974
38840 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38841 etc. to 1 and not to __flash.
38842 Use LL suffix for __INT24_MAX__ with -mint8.
38843 Use ULL suffix for __UINT24_MAX__ with -mint8.
38844
38845 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38846
38847 * config/avr/avr-arch.h
38848 (struct base_arch_s): Use typedef avr_arch_t instead.
38849 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38850 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38851 * config/avr/avr.c: Same.
38852 * config/avr/avr-devices.c: Same.
38853 * config/avr/driver-avr.c: Same.
38854 * config/avr/gen-avr-mmcu-texi.c: Same.
38855 * config/avr/avr-mcus.def: Adjust comment.
38856
38857 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38858
38859 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38860 * config/aarch64/iterators.md (VALLDI): New.
38861
38862 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38863 Andi Kleen <ak@linux.intel.com>
38864
38865 PR target/55948
38866 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38867 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38868 memmodel flag.
38869
38870 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38871
38872 * config/avr/avr-stdint.h: Remove trailing blanks.
38873 * config/avr/avr-log.h: Same.
38874 * config/avr/avr-arch.h: Same.
38875 * config/avr/avr-devices.c: Same.
38876 * config/avr/avr-dimode.md: Same.
38877 * config/avr/predicates.md: Same.
38878 * config/avr/avr-c.c: Same. And fix typo.
38879
38880 * config/avr/avr-protos.h: Same. And:
38881 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38882 (init_cumulative_args): Rename to avr_init_cumulative_args.
38883 (expand_prologue): Rename to avr_expand_prologue.
38884 (expand_epilogue): Rename to avr_expand_epilogue.
38885 (adjust_insn_length): Rename to avr_adjust_insn_length.
38886 (notice_update_cc): Rename to avr_notice_update_cc.
38887 (final_prescan_insn): Rename to avr_final_prescan_insn.
38888 * config/avr/avr.c: Same.
38889 * config/avr/avr.h: Same.
38890 * config/avr/avr.md: Remove trailing blanks.
38891 (prologue): Use avr_expand_prologue.
38892 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38893
38894 2013-01-14 Richard Biener <rguenther@suse.de>
38895
38896 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38897 verify_location, collect_subblocks): New functions.
38898 (verify_gimple_in_cfg): Verify that locations only reference
38899 BLOCKs in the functions BLOCK tree.
38900
38901 2013-01-14 Richard Biener <rguenther@suse.de>
38902
38903 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38904 PHI argument.
38905 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38906 unshare reference.
38907 (insert_out_of_ssa_copy_on_edge): Likewise.
38908 (rewrite_close_phi_out_of_ssa): Likewise.
38909 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38910 debug expressions.
38911 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38912 propagated constants.
38913 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38914 can not be shared.
38915
38916 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38917
38918 * config/avr/avr-modes.def: Add GPL copyright notice.
38919
38920 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38921
38922 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38923 MEMMODEL_MASK to determine memory model.
38924 (atomic_store<mode>): Ditto from operands[2].
38925 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38926
38927 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38928
38929 PR fortran/55935
38930 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38931 (fold_gimple_assign): Don't call unshare_expr here.
38932 (fold_ctor_reference): Call unshare_expr.
38933
38934 2013-01-13 Terry Guo <terry.guo@arm.com>
38935
38936 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38937 * doc/fragments.texi: Document MULTILIB_REUSE.
38938 * gcc.c (multilib_reuse): New internal spec.
38939 (set_multilib_dir): Also search multilib from multilib_reuse.
38940 * genmultilib (tmpmultilib3): Refactor code.
38941 (tmpmultilib4): Ditto.
38942 (multilib_reuse): New multilib argument.
38943
38944 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38945
38946 * Makefile.in: Update copyright.
38947
38948 2013-01-12 Tom de Vries <tom@codesourcery.com>
38949
38950 PR middle-end/55890
38951 * calls.c (expand_call): Check if arg_nr is valid.
38952
38953 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38954
38955 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38956 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38957 documentation. Add missing '__' in front of
38958 __builtin_ia32_packssdw256.
38959
38960 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38961
38962 PR target/55719
38963 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38964 NO_REGS for larl operands.
38965 (s390_reload_larl_operand): Use s390_load_address instead of
38966 emit_move_insn.
38967
38968 2013-01-11 Richard Biener <rguenther@suse.de>
38969
38970 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38971 (verify_node_sharing): ... here.
38972 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38973
38974 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38975
38976 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38977 Substitute TREECHECKING.
38978 * configure: Regenerate.
38979 * Makefile.in (TREECHECKING): New.
38980
38981 2013-01-11 Richard Guenther <rguenther@suse.de>
38982
38983 PR tree-optimization/44061
38984 * tree-vrp.c (extract_range_basic): Compute zero as
38985 value-range for __builtin_constant_p of function parameters.
38986
38987 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38988
38989 Update copyright years.
38990
38991 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38992
38993 PR rtl-optimization/55672
38994 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38995 const to be eliminable.
38996
38997 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38998
38999 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
39000 * configure: Regenerate.
39001
39002 2013-01-10 Richard Biener <rguenther@suse.de>
39003
39004 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
39005
39006 2013-01-10 Richard Biener <rguenther@suse.de>
39007
39008 PR bootstrap/55792
39009 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
39010 locations for virtual PHI arguments.
39011 (rewrite_update_phi_arguments): Likewise.
39012
39013 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
39014
39015 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
39016 on to assembler.
39017
39018 2013-01-10 Jakub Jelinek <jakub@redhat.com>
39019
39020 PR tree-optimization/55921
39021 * tree-complex.c (expand_complex_asm): New function.
39022 (expand_complex_operations_1): Call it for GIMPLE_ASM.
39023
39024 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39025
39026 PR target/55718
39027 * config/s390/s390.c (s390_symref_operand_p)
39028 (s390_loadrelative_operand_p): Merge the two functions.
39029 (s390_check_qrst_address, print_operand_address): Add parameters
39030 to s390_loadrelative_operand_p invokation.
39031 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39032 (s390_reload_larl_operand, s390_secondary_reload): Use
39033 s390_loadrelative_operand_p instead of s390_symref_operand_p.
39034 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39035
39036 2013-01-09 Mike Stump <mikestump@comcast.net>
39037
39038 * dse.c (record_store): Remove unnecessary assert.
39039
39040 2013-01-09 Jan Hubicka <jh@suse.cz>
39041
39042 PR tree-optimization/55569
39043 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39044 * cfgloop.h (scale_loop_profile): Likewise.
39045
39046 2013-01-09 Jan Hubicka <jh@suse.cz>
39047
39048 PR lto/45375
39049 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39050 functions.
39051 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39052
39053 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
39054
39055 PR middle-end/55114
39056 * expr.h (maybe_emit_group_store): Declare.
39057 * expr.c (maybe_emit_group_store): New function.
39058 * builtins.c (expand_builtin_int_roundingfn): Call it.
39059 (expand_builtin_int_roundingfn_2): Likewise.
39060
39061 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
39062
39063 PR rtl-optimization/55829
39064 * lra-constraints.c (match_reload): Add code for absent output.
39065 (curr_insn_transform): Add code for reloads of matched inputs
39066 without output.
39067
39068 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
39069
39070 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39071 attribute of movddup insn to DF.
39072 (*vec_interleave_lowv2df): Ditto.
39073 (vec_dupv2df): Ditto.
39074
39075 2013-01-09 Jan Hubicka <jh@suse.cz>
39076
39077 PR tree-optimiation/55875
39078 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39079 EVERY_ITERATION parameter.
39080 (number_of_iterations_exit): Check if exit is executed every iteration.
39081 (idx_infer_loop_bounds): Similarly here.
39082 (n_of_executions_at_most): Simplify
39083 to only test for cases where statement is dominated by the
39084 particular bound; handle correctly the "postdominance" test.
39085 (scev_probably_wraps_p): Use max loop iterations info
39086 as a global bound first.
39087
39088 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
39089 Nick Clifton <nickc@redhat.com>
39090
39091 * config/v850/v850.md (cbranchsf4): New pattern.
39092 (cstoresf4): New pattern.
39093 (cbranchdf4): New pattern.
39094 (cstoredf4): New pattern.
39095 (movsicc): Disallow floating point comparisons.
39096 (cmpsf_le_insn): Fix order of operators.
39097 (cmpsf_lt_insn): Likewise.
39098 (cmpsf_eq_insn): Likewise.
39099 (cmpdf_le_insn): Likewise.
39100 (cmpdf_lt_insn): Likewise.
39101 (cmpdf_eq_insn): Likewise.
39102 (cmpsf_ge_insn): Use LE comparison.
39103 (cmpdf_ge_insn): Likewise.
39104 (cmpsf_gt_insn): Use LT comparison.
39105 (cmpdf_gt_insn): Likewise.
39106 (cmpsf_ne_insn): Delete pattern.
39107 (cmpdf_ne_insn): Delete pattern.
39108 * config/v850/v850.c (v850_gen_float_compare): Use
39109 gen_cmpdf_eq_insn for NE comparison.
39110 (v850_float_z_comparison_operator)
39111 (v850_float_nz_comparison_operator): Move from here ...
39112 * config/v850/predicates.md: ... to here. Move GT and GE
39113 comparisons into v850_float_z_comparison_operator.
39114 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39115 Delete prototype.
39116 (v850_float_nz_comparison_operator): Likewise.
39117
39118 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39119
39120 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39121 with calls to gen_insvsi/gen_insvdi.
39122
39123 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39124
39125 * config/i386/i386.c (initial_ix86_tune_features): Set up
39126 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39127
39128 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
39129 Jakub Jelinek <jakub@redhat.com>
39130
39131 PR tree-optimization/48189
39132 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39133 If nitercst is 0, don't predict the exit edge.
39134
39135 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39136
39137 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39138 in asm_fprintf with reg_names.
39139 (aarch64_print_operand_address): Likewise.
39140 (aarch64_return_addr): Likewise.
39141 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39142
39143 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39144
39145 * config/pa/pa.h (VAL_U6_BITS_P): Define.
39146 (INT_U6_BITS): Likewise.
39147 * config/pa/predicates.md (uint6_operand): New predicate.
39148 (shift5_operand, shift6_operand): Likewise.
39149 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39150 arith32_operand.
39151 (lshrdi3): Use shift6_operand.
39152 (shrpsi4, shrpdi4): New insn patterns.
39153 (extzv): Delete expander.
39154 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
39155 predicates in unamed zero extract patterns. Tighten common constraint.
39156 (extv): Delete expander.
39157 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
39158 predicates in unamed sign extract patterns. Tighten common constraint.
39159 (insv): Delete expander.
39160 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
39161 predicates in unamed insert patterns. Tighten common constraint.
39162 Change uint32_operand predicate to uint6_operand predicate in unamed
39163 DImode pattern to insert constant values of type 1...1xxxx.
39164
39165 2013-01-04 Jan Hubicka <jh@suse.cz>
39166
39167 PR tree-optimization/55823
39168 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39169 issue.
39170
39171 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39172 Uros Bizjak <ubizjak@gmail.com>
39173
39174 PR rtl-optimization/55845
39175 * df-problems.c (can_move_insns_across): Stop scanning at
39176 volatile_insn_p source instruction or give up if
39177 across_from .. across_to range contains any volatile_insn_p
39178 instructions.
39179
39180 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39181
39182 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39183 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39184 Declare.
39185 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39186 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39187
39188 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39189
39190 PR fortran/55341
39191 * asan.c (asan_clear_shadow): New function.
39192 (asan_emit_stack_protection): Use it.
39193
39194 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39195
39196 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39197 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39198 with tab instead of space.
39199
39200 2013-01-08 Nick Clifton <nickc@redhat.com>
39201
39202 * config/rl78/rl78.c (rl78_expand_prologue): Always select
39203 register bank 0 at the start of an interrupt handler.
39204 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39205 MDBH registers.
39206
39207 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39208
39209 * config/aarch64/aarch64-simd.md
39210 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39211 (aarch64_simd_bsl): Likewise.
39212 (aarch64_vcond_internal<mode>): Likewise.
39213 (vcond<mode><mode>): Likewise.
39214 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39215 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39216
39217 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39218
39219 * config/aarch64/aarch64-builtins.c
39220 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39221
39222 2013-01-08 Martin Jambor <mjambor@suse.cz>
39223
39224 PR debug/55579
39225 * tree-sra.c (analyze_access_subtree): Return true also after
39226 potentially creating a debug-only replacement.
39227
39228 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39229
39230 PR middle-end/55890
39231 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39232
39233 PR tree-optimization/54120
39234 * tree-vrp.c (range_fits_type_p): Don't allow
39235 src_precision < precision from signed vr to unsigned_p
39236 if vr->min or vr->max is negative.
39237 (simplify_float_conversion_using_ranges): Test can_float_p
39238 against CODE_FOR_nothing.
39239
39240 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39241 Richard Biener <rguenther@suse.de>
39242
39243 PR middle-end/55851
39244 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39245 types instead of just INTEGER_TYPE types.
39246
39247 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
39248
39249 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39250 TF_SIZE): Define.
39251
39252 2013-01-07 Steve Ellcey <sellcey@mips.com>
39253
39254 PR target/42661
39255 * config/mips/mips.opt: Change mad to mmad to match documentation.
39256
39257 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39258
39259 PR target/55897
39260 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39261 .progmemx.data now.
39262
39263 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39264
39265 PR target/55897
39266 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39267 (avr_addrspace_t): Add .section_name field.
39268 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39269 array size.
39270 (avr_addrspace): Same. Initialize .section_name. Remove last
39271 NULL entry. Put __memx into .progmemx.data.
39272 (progmem_section_prefix): Remove.
39273 (avr_asm_init_sections): No need to initialize progmem_section.
39274 (avr_asm_named_section): Use avr_addrspace[].section_name to get
39275 section name prefix.
39276 (avr_asm_select_section): Ditto. And use get_unnamed_section to
39277 retrieve the progmem section.
39278 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39279 boundary to run over avr_addrspace[].
39280 (avr_register_target_pragmas): Ditto.
39281
39282 2013-01-06 Jakub Jelinek <jakub@redhat.com>
39283
39284 * varasm.c (output_constant_def_contents): For asan_protect_global
39285 protected strings, adjust DECL_ALIGN if needed, before testing for
39286 anchored symbols.
39287 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39288 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
39289 normal decls.
39290 (output_object_block): For asan protected decls, emit asan padding
39291 after their contents.
39292 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39293 (asan_finish_file): Test it here instead.
39294
39295 2013-01-07 Nick Clifton <nickc@redhat.com>
39296 Matthias Klose <doko@debian.org>
39297 Doug Kwan <dougkwan@google.com>
39298 H.J. Lu <hongjiu.lu@intel.com>
39299
39300 PR driver/55470
39301 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39302
39303 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39304
39305 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39306
39307 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39308
39309 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39310
39311 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39312
39313 PR target/54461
39314 * doc/install.texi (Cross-Compiler-Specific Options): Document
39315 --with-avrlibc.
39316
39317 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
39318
39319 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39320 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39321 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39322 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39323 vqmovun_high_s64): Fix source operand number and update copyright.
39324
39325 2013-01-07 Richard Biener <rguenther@suse.de>
39326
39327 PR middle-end/55890
39328 * gimple.h (gimple_call_builtin_p): New overload.
39329 * gimple.c (validate_call): New function.
39330 (gimple_call_builtin_p): Likewise.
39331 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39332 Use gimple_call_builtin_p.
39333 (find_func_clobbers): Likewise.
39334 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39335 (strlen_optimize_stmt): Likewise.
39336
39337 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39338
39339 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39340 (vld1q_dup_*): Likewise.
39341 (vld1_*): Likewise.
39342 (vld1q_*): Likewise.
39343 (vld1_lane_*): Likewise.
39344 (vld1q_lane_*): Likewise.
39345
39346 2013-01-07 Richard Biener <rguenther@suse.de>
39347
39348 * lto-streamer.h (LTO_minor_version): Bump to 2.
39349
39350 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39351
39352 * config/aarch64/aarch64-protos.h
39353 (aarch64_const_double_zero_rtx_p): Rename to...
39354 (aarch64_float_const_zero_rtx_p): ...this.
39355 (aarch64_float_const_representable_p): New.
39356 (aarch64_output_simd_mov_immediate): Likewise.
39357 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39358 move immediate case.
39359 * config/aarch64/aarch64.c
39360 (aarch64_const_double_zero_rtx_p): Rename to...
39361 (aarch64_float_const_zero_rtx_p): ...this.
39362 (aarch64_print_operand): Allow printing of new constants.
39363 (aarch64_valid_floating_const): New.
39364 (aarch64_legitimate_constant_p): Check for valid floating-point
39365 constants.
39366 (aarch64_simd_valid_immediate): Likewise.
39367 (aarch64_vect_float_const_representable_p): New.
39368 (aarch64_float_const_representable_p): Likewise.
39369 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39370 (aarch64_output_simd_mov_immediate): New.
39371 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39372 (*movdf_aarch64): Likewise.
39373 * config/aarch64/constraints.md (Ufc): New.
39374 (Y): call aarch64_float_const_zero_rtx.
39375 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39376
39377 2013-01-07 Richard Biener <rguenther@suse.de>
39378
39379 PR tree-optimization/55888
39380 PR tree-optimization/55862
39381 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39382 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39383 not if it is contained therein.
39384
39385 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39386
39387 * config/avr/t-avr: Typo.
39388
39389 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39390
39391 PR55243
39392 * config/avr/t-avr: Don't automatically rebuild
39393 $(srcdir)/config/avr/t-multilib
39394 $(srcdir)/config/avr/avr-tables.opt
39395 $(srcdir)/doc/avr-mmcu.texi
39396 (avr-mcus): New phony target to build them on request.
39397 (s-avr-mlib, s-avr-mmcu-texi): Remove.
39398 * avr/avr-mcus.def: Adjust comments.
39399
39400 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
39401
39402 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39403
39404 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39405
39406 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39407
39408 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39409
39410 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39411
39412 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
39413
39414 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39415 to generate profiling.
39416 * config/rs6000/aix64.h (LIB_SPEC): Same.
39417
39418 2013-01-04 Andrew Pinski <apinski@cavium.com>
39419
39420 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39421 New function.
39422 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39423
39424 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
39425
39426 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39427 unconditionally.
39428 (ix86_expand_move): Ditto.
39429 (ix86_zero_extend_to_Pmode): Ditto.
39430 (ix86_expand_call): Ditto.
39431 (ix86_expand_special_args_builtin): Ditto.
39432 (ix86_expand_builtin): Ditto.
39433
39434 2013-01-04 Richard Biener <rguenther@suse.de>
39435
39436 PR tree-optimization/55862
39437 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39438 translating them through PHI nodes.
39439
39440 2013-01-04 Martin Jambor <mjambor@suse.cz>
39441
39442 PR tree-optimization/55755
39443 * tree-sra.c (sra_modify_assign): Do not check that an access has no
39444 children when trying to avoid producing a VIEW_CONVERT_EXPR.
39445
39446 2013-01-04 Marek Polacek <polacek@redhat.com>
39447
39448 PR middle-end/55859
39449 * opts.c (default_options_optimization): Clarify error message.
39450
39451 2013-01-04 Richard Biener <rguenther@suse.de>
39452
39453 PR middle-end/55863
39454 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39455 reassociation.
39456
39457 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39458
39459 PR target/53789
39460 * config/pa/pa.md (movsi): Revert previous change.
39461 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39462 references.
39463
39464 2013-01-03 Richard Henderson <rth@redhat.com>
39465
39466 * config/i386/i386.c (ix86_expand_move): Always assign to op1
39467 after eliminating TLS symbols.
39468
39469 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39470
39471 PR bootstrap/50167
39472 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39473 * graphite-poly.c (debug_gmp_value): Likewise.
39474
39475 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39476
39477 PR target/55712
39478 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39479 selected code model, define __code_mode_small__, __code_model_medium__,
39480 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39481 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39482 xchg temporary register with %k. Declare temporary register as
39483 early clobbered.
39484 [__x86_64__]: For medium and large code models, preserve %rbx register.
39485
39486 2013-01-03 Richard Biener <rguenther@suse.de>
39487
39488 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39489 (dump_subscript): Adjust.
39490 (finalize_ddr_dependent): Do not dump redundant info.
39491 (analyze_siv_subscript): Adjust.
39492 (subscript_dependence_tester): Likewise.
39493 (compute_affine_dependence): Likewise.
39494
39495 2013-01-03 Richard Biener <rguenther@suse.de>
39496
39497 Revert
39498 2013-01-03 Richard Biener <rguenther@suse.de>
39499
39500 PR tree-optimization/55857
39501 * tree-vect-stmts.c (vectorizable_load): Do not setup
39502 re-alignment for invariant loads.
39503
39504 2013-01-02 Richard Biener <rguenther@suse.de>
39505
39506 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39507 invariant load do not generate a vector load from the scalar location.
39508
39509 2013-01-03 Richard Biener <rguenther@suse.de>
39510
39511 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39512 for not vectorizing.
39513 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39514 not build INDIRECT_REFs, call get_name once only.
39515 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39516 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39517
39518 2013-01-03 Richard Biener <rguenther@suse.de>
39519
39520 PR tree-optimization/55857
39521 * tree-vect-stmts.c (vectorizable_load): Do not setup
39522 re-alignment for invariant loads.
39523
39524 2013-01-03 Richard Biener <rguenther@suse.de>
39525
39526 PR lto/55848
39527 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39528 prefer a built-in decl.
39529
39530 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39531
39532 * gcc.c (process_command): Update copyright notice dates.
39533 * gcov.c (print_version): Likewise.
39534 * gcov-dump.c (print_version): Likewise.
39535
39536 PR rtl-optimization/55838
39537 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39538 iv0.step, iv1.step and step.
39539
39540 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39541 Marc Glisse <marc.glisse@inria.fr>
39542
39543 PR tree-optimization/55832
39544 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39545 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39546 integer_{one,zero}_node.
39547
39548 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39549
39550 PR debug/54402
39551 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39552 * var-tracking.c (reverse_op): Don't add reverse ops to
39553 VALUEs that have already
39554 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39555
39556 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39557
39558 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39559
39560 2013-01-02 Teresa Johnson <tejohnson@google.com>
39561
39562 * dumpfile.c (dump_loc): Print filename with location.
39563 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39564 new location_t parameter to emit complete unroll message with
39565 new dump framework.
39566 (canonicalize_loop_induction_variables): Compute loops location
39567 and pass to try_unroll_loop_completely.
39568 * loop-unroll.c (report_unroll_peel): New function.
39569 (peel_loops_completely): Use new dump format with location
39570 for main dumpfile message, and invoke report_unroll_peel on success.
39571 (decide_unrolling_and_peeling): Ditto.
39572 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39573 by report_unroll_peel.
39574 (decide_peel_completely): Ditto.
39575 (decide_unroll_constant_iterations): Ditto.
39576 (decide_unroll_runtime_iterations): Ditto.
39577 (decide_peel_simple): Ditto.
39578 (decide_unroll_stupid): Ditto.
39579 * cfgloop.c (get_loop_location): New function.
39580 * cfgloop.h (get_loop_location): Declare.
39581
39582 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39583
39584 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39585 NULL.
39586
39587 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39588
39589 PR middle-end/55198
39590 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39591 BLKmode objects when EXPAND_MEMORY is specified.
39592
39593 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39594
39595 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39596 in loop predicate.
39597 (fold_builtin_cpu): Do not share cpu model decls across statements.
39598
39599 2013-01-02 Jason Merrill <jason@redhat.com>
39600
39601 PR c++/55804
39602 * tree.c (build_array_type_1): Revert earlier change.
39603
39604 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39605
39606 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39607 "cortex-a57".
39608 * config/aarch64/aarch64-tune.md: Re-generate.
39609
39610 2013-01-02 Richard Biener <rguenther@suse.de>
39611
39612 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39613 invariant load do not generate a vector load from the scalar location.
39614
39615 2013-01-02 Richard Biener <rguenther@suse.de>
39616
39617 PR bootstrap/55784
39618 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39619 * configure: Regenerate.
39620
39621 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39622
39623 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39624 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39625 (expand_builtin_int_roundingfn_2): Keep the original target around
39626 for the fallback case.
39627
39628 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39629
39630 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39631 to be clear for sign changes.
39632
39633 2013-01-01 Jan Hubicka <jh@suse.cz>
39634
39635 * ipa-inline-analysis.c: Fix formatting.
39636
39637 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39638
39639 PR tree-optimization/55831
39640 * tree-vect-loop.c (get_initial_def_for_induction): Use
39641 gsi_after_labels instead of gsi_start_bb.
39642 \f
39643 Copyright (C) 2013 Free Software Foundation, Inc.
39644
39645 Copying and distribution of this file, with or without modification,
39646 are permitted in any medium without royalty provided the copyright
39647 notice and this notice are preserved.