msp430.c (msp430_print_operand): Rename %B to %b and %A to %Q.
[gcc.git] / gcc / ChangeLog
1 2013-12-30 Nick Clifton <nickc@redhat.com>
2
3 * config/msp430/msp430.c (msp430_print_operand): Rename %B to %b
4 and %A to %Q. Add %A, %B, %C and %D as selectors for 16-bit parts
5 of a 64-bit operand.
6 * config/msp430/msp430.md: Replace uses of %B with %b and uses of
7 %A with %q.
8
9 2013-12-30 Felix Yang <felix.yang@huawei.com>
10
11 * ira-costs.c (cost_classes_hasher::equal): Check equality of
12 memcmp and 0 if no difference exists for HV1 and HV2.
13
14 2013-12-30 Jakub Jelinek <jakub@redhat.com>
15
16 PR target/59501
17 * config/i386/i386.c (ix86_save_reg): Don't return true for drap_reg
18 if !crtl->stack_realign_needed.
19 (ix86_finalize_stack_realign_flags): If drap_reg isn't live on entry
20 and stack_realign_needed will be false, clear drap_reg and need_drap.
21 Optimize leaf functions that don't need stack frame even if
22 crtl->need_drap.
23
24 2013-12-30 H.J. Lu <hongjiu.lu@intel.com>
25
26 PR target/59605
27 * config/i386/i386.c (ix86_expand_set_or_movmem): Create
28 jump_around_label only if it doesn't exist.
29
30 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
31
32 * doc/invoke.texi (output file options): Document -fada-spec-parent.
33
34 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
35 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
36 Sergey Lega <sergey.s.lega@intel.com>
37 Anna Tikhonova <anna.tikhonova@intel.com>
38 Ilya Tocar <ilya.tocar@intel.com>
39 Andrey Turetskiy <andrey.turetskiy@intel.com>
40 Ilya Verbin <ilya.verbin@intel.com>
41 Kirill Yukhin <kirill.yukhin@intel.com>
42 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
43
44 * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
45 EVEX's RC.
46 (avx512f_sfixupimm<mode>_maskz): Ditto.
47 * config/i386/subst.md (round_saeonly_expand_name): New.
48 (round_saeonly_expand_nimm_predicate): Ditto.
49 (round_saeonly_expand_operand6): Ditto.
50 (round_saeonly_expand): Ditto.
51
52 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
53 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
54 Sergey Lega <sergey.s.lega@intel.com>
55 Anna Tikhonova <anna.tikhonova@intel.com>
56 Ilya Tocar <ilya.tocar@intel.com>
57 Andrey Turetskiy <andrey.turetskiy@intel.com>
58 Ilya Verbin <ilya.verbin@intel.com>
59 Kirill Yukhin <kirill.yukhin@intel.com>
60 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
61
62 * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
63 EVEX's RC.
64 (avx512f_fmaddsub_<mode>_maskz): Ditto.
65 * config/i386/subst.md (round_expand_name): New.
66 (round_expand_nimm_predicate): Ditto.
67 (round_expand_operand): Ditto.
68 (round_expand): Ditto.
69
70 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
71 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
72 Sergey Lega <sergey.s.lega@intel.com>
73 Anna Tikhonova <anna.tikhonova@intel.com>
74 Ilya Tocar <ilya.tocar@intel.com>
75 Andrey Turetskiy <andrey.turetskiy@intel.com>
76 Ilya Verbin <ilya.verbin@intel.com>
77 Kirill Yukhin <kirill.yukhin@intel.com>
78 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
79
80 * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
81 EVEX's SAE mode.
82 (*<code><mode>3_finite<mask_name>): Ditto.
83 (*<code><mode>3<mask_name>): Ditto.
84 (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
85 (avx512f_vmcmp<mode>3): Ditto.
86 (avx512f_vmcmp<mode>3_mask): Ditto.
87 (<sse>_comi): Ditto.
88 (<sse>_ucomi): Ditto.
89 (sse_cvttss2si): Ditto.
90 (sse_cvttss2siq): Ditto.
91 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
92 (avx512f_vcvttss2usi): Ditto.
93 (avx512f_vcvttss2usiq): Ditto.
94 (avx512f_vcvttsd2usi): Ditto.
95 (avx512f_vcvttsd2usiq): Ditto.
96 (sse2_cvttsd2si): Ditto.
97 (sse2_cvttsd2siq): Ditto.
98 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
99 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
100 (avx512f_getexp<mode><mask_name>): Ditto.
101 (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
102 (avx512f_fixupimm<mode>_mask): Ditto.
103 (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
104 (avx512f_sfixupimm<mode>_mask): Ditto.
105 (avx512f_rndscale<mode><mask_name>): Ditto.
106 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
107 (avx512f_getmant<mode><mask_name>): Ditto.
108 * config/i386/subst.md (round_saeonly_name): New.
109 (round_saeonly_mask_operand2): Ditto.
110 (round_saeonly_mask_operand3): Ditto.
111 (round_saeonly_mask_scalar_operand3): Ditto.
112 (round_saeonly_mask_scalar_operand4): Ditto.
113 (round_saeonly_mask_scalar_merge_operand4): Ditto.
114 (round_saeonly_sd_mask_operand5): Ditto.
115 (round_saeonly_op2): Ditto.
116 (round_saeonly_op4): Ditto.
117 (round_saeonly_op5): Ditto.
118 (round_saeonly_op6): Ditto.
119 (round_saeonly_mask_op2): Ditto.
120 (round_saeonly_mask_op3): Ditto.
121 (round_saeonly_mask_scalar_op3): Ditto.
122 (round_saeonly_mask_scalar_op4): Ditto.
123 (round_saeonly_mask_scalar_merge_op4): Ditto.
124 (round_saeonly_sd_mask_op5): Ditto.
125 (round_saeonly_constraint): Ditto.
126 (round_saeonly_constraint2): Ditto.
127 (round_saeonly_nimm_predicate): Ditto.
128 (round_saeonly_mode512bit_condition): Ditto.
129 (round_saeonly): Ditto.
130
131 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
132 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
133 Sergey Lega <sergey.s.lega@intel.com>
134 Anna Tikhonova <anna.tikhonova@intel.com>
135 Ilya Tocar <ilya.tocar@intel.com>
136 Andrey Turetskiy <andrey.turetskiy@intel.com>
137 Ilya Verbin <ilya.verbin@intel.com>
138 Kirill Yukhin <kirill.yukhin@intel.com>
139 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
140
141 * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
142 * config/i386/i386.md (define_constants): Define EVEx's RC constants.
143 * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
144 to support EVEX's rounding control.
145 (*<plusminus_insn><mode>3<mask_name>): Ditto.
146 (mul<mode>3<mask_name>): Ditto.
147 (*mul<mode>3<mask_name>): Ditto.
148 (<sse>_div<mode>3<mask_name>): Ditto.
149 (<sse>_sqrt<mode>2<mask_name>): Ditto.
150 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
151 (avx512f_fmadd_<mode>_mask): Ditto.
152 (avx512f_fmadd_<mode>_mask3): Ditto.
153 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
154 (avx512f_fmsub_<mode>_mask): Ditto.
155 (avx512f_fmsub_<mode>_mask3): Ditto.
156 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
157 (avx512f_fnmadd_<mode>_mask): Ditto.
158 (avx512f_fnmadd_<mode>_mask3): Ditto.
159 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
160 (avx512f_fnmsub_<mode>_mask): Ditto.
161 (avx512f_fnmsub_<mode>_mask3): Ditto.
162 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
163 (avx512f_fmaddsub_<mode>_mask): Ditto.
164 (avx512f_fmaddsub_<mode>_mask3): Ditto.
165 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
166 (avx512f_fmsubadd_<mode>_mask): Ditto.
167 (avx512f_fmsubadd_<mode>_mask3): Ditto.
168 (fmai_vmfmadd_<mode>): Ditto.
169 (*fmai_fmadd_<mode>): Ditto.
170 (*fmai_fmsub_<mode>): Ditto.
171 (*fmai_fnmadd_<mode>): Ditto.
172 (*fmai_fnmsub_<mode>): Ditto.
173 (sse_cvtsi2ss): Ditto.
174 (sse_cvtsi2ssq): Ditto.
175 (sse_cvtss2si): Ditto.
176 (sse_cvtss2siq): Ditto.
177 (cvtusi2<ssescalarmodesuffix>32): Ditto.
178 (cvtusi2<ssescalarmodesuffix>64): Ditto.
179 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
180 (ufloatv16siv16sf2<mask_name>): Ditto.
181 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
182 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
183 (sse2_cvtsi2sdq): Ditto.
184 (avx512f_vcvtss2usi): Ditto.
185 (avx512f_vcvtss2usiq): Ditto.
186 (avx512f_vcvtsd2usi): Ditto.
187 (avx512f_vcvtsd2usiq): Ditto.
188 (sse2_cvtsd2si): Ditto.
189 (sse2_cvtsd2siq): Ditto.
190 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
191 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
192 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
193 (avx512f_scalef<mode><mask_name>): Ditto.
194 (<code><mode>3<mask_name>): Ditto.
195 (*avx2_<code><mode>3<mask_name>): Ditto.
196 (avx512er_exp2<mode><mask_name): Ditto.
197 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
198 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
199 (avx512f_fmadd_<mode>_maskz): New.
200 * config/i386/subst.md (SUBST_A): New.
201 (round_name): Ditto.
202 (round_mask_operand2): Ditto.
203 (round_mask_operand3): Ditto.
204 (round_mask_scalar_operand3): Ditto.
205 (round_sd_mask_operand4): Ditto.
206 (round_op2): Ditto.
207 (round_op3): Ditto.
208 (round_op4): Ditto.
209 (round_op5): Ditto.
210 (round_op6): Ditto.
211 (round_mask_op2): Ditto.
212 (round_mask_op3): Ditto.
213 (round_mask_scalar_op3): Ditto.
214 (round_sd_mask_op4): Ditto.
215 (round_constraint): Ditto.
216 (round_constraint2): Ditto.
217 (round_constraint3): Ditto.
218 (round_nimm_predicate): Ditto.
219 (round_mode512bit_condition): Ditto.
220 (round_modev4sf_condition): Ditto.
221 (round_codefor): Ditto.
222 (round_opnum): Ditto.
223 (round): Ditto.
224
225 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
226
227 PR target/59588
228 * config/i386/i386.c (ix86_option_override_internal): Don't
229 check generic tuning. Don't change i686 tuning.
230
231 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
232
233 PR target/59601
234 * config/i386/i386.c (get_builtin_code_for_version): Map
235 PROCESSOR_NEHALEM to "corei7".
236
237 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
238
239 * config/i386/i386.c (get_builtin_code_for_version): Rename AMD
240 CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR
241 to M_AMD_BTVER2.
242 (processor_model): Likewise.
243 (arch_names_table): Likewise.
244
245 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
246
247 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
248
249 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
250
251 PR target/59587
252 * config/i386/i386.c (struct ptt): Add a field for processor name.
253 (processor_target_table): Sync with processor_type.
254 Add processor names.
255 (cpu_names): Removed.
256 (ix86_option_override_internal): Default x_ix86_tune_string
257 to processor_target_table[TARGET_CPU_DEFAULT].name.
258 (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
259 Use processor_target_table to print arch and tune names.
260 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
261 PROCESSOR_GENERIC.
262 (target_cpu_default): Removed.
263 (processor_type): Reordered.
264
265 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org>
266 H.J. Lu <hongjiu.lu@intel.com>
267
268 PR target/59422
269 * config/i386/i386.c (get_builtin_code_for_version): Handle
270 PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
271 PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
272 Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
273 (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
274 "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a",
275 "fma4", "xop" and "fma" ISA names.
276
277 2013-12-24 H.J. Lu <hongjiu.lu@intel.com>
278
279 * config/i386/i386.c (ix86_option_override_internal): Check
280 opts->x_ix86_arch_string instead of ix86_arch_string.
281
282 2013-12-24 Renlin Li <Renlin.Li@arm.com>
283
284 * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
285 * config/arm/constraints.md (Dp): Define new constraint.
286 * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
287 new predicate.
288 * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
289 (vfp3_const_double_for_bits): New function.
290 * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
291
292 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
293
294 PR target/59203
295 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
296 checking t1 twice instead of t1 and t2 respectively.
297
298 PR middle-end/59584
299 * config/cris/predicates.md (cris_nonsp_register_operand):
300 New define_predicate.
301 * config/cris/cris.md: Replace register_operand with
302 cris_nonsp_register_operand for destinations in all
303 define_splits where a register is set more than once.
304
305 2013-12-23 Jason Merrill <jason@redhat.com>
306
307 * gdbinit.in (input_line, input_filename): Define.
308
309 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
310 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
311 * cif-code.def: Add USES_COMDAT_LOCAL.
312 * symtab.c (verify_symtab_base): Make sure we don't refer to a
313 comdat-local symbol from outside its comdat.
314 * cgraph.c (verify_cgraph_node): Likewise.
315 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
316 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
317 (function_and_variable_visibility): Handle comdat-local fns.
318 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
319 * ipa-inline-analysis.c (compute_inline_parameters): Update
320 calls_comdat_local.
321 * ipa-inline-transform.c (inline_call): Likewise.
322 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
323 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
324 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
325 (lto_output_node): Write it.
326 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
327 DECL_COMDAT_GROUP for comdat-locals.
328
329 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
330
331 * config/i386/i386.c (processor_target_table): Move Bonnell and
332 Silvermont entries before generic.
333
334 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
335
336 PR middle-end/59569
337 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
338 consant/external operand, and add a few missing \n.
339
340 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
341 Tocar Ilya <ilya.tocar@intel.com>
342
343 * config/i386/core2.md: Replace corei7 with nehalem.
344
345 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
346 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
347 for cpu names.
348
349 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
350 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
351 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
352 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
353 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
354 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
355 __tune_haswell__, __bonnell/__bonnell__,
356 __silvermont/__silvermont__, __tune_bonnell__,
357 __tune_silvermont__.
358
359 * config/i386/i386.c (m_COREI7): Renamed to ...
360 (m_NEHALEM): This.
361 (m_COREI7_AVX): Renamed to ...
362 (m_SANDYBRIDGE): This.
363 (m_ATOM): Renamed to ...
364 (m_BONNELL): This.
365 (m_SLM): Renamed to ...
366 (m_SILVERMONT): This.
367 (m_CORE_ALL): Updated.
368 (cpu_names): Add "nehalem", "westmere", "sandybridge",
369 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
370 (PTA_CORE2): New.
371 (PTA_NEHALEM): Likewise.
372 (PTA_WESTMERE): Likewise.
373 (PTA_SANDYBRIDGE): Likewise.
374 (PTA_IVYBRIDGE): Likewise.
375 (PTA_HASWELL): Likewise.
376 (PTA_BROADWELL): Likewise.
377 (PTA_BONNELL): Likewise.
378 (PTA_SILVERMONT): Likewise.
379 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
380 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
381 (ix86_lea_outperforms): Updated.
382 (ix86_issue_rate): Likewise.
383 (ix86_adjust_cost): Likewise.
384 (ia32_multipass_dfa_lookahead): Likewise.
385 (do_reorder_for_imul): Likewise.
386 (swap_top_of_ready_list): Likewise.
387 (ix86_sched_reorder): Likewise.
388 (ix86_sched_init_global): Likewise.
389 (get_builtin_code_for_version): Likewise.
390 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
391 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
392 (arch_names_table): Updated.
393
394 * config/i386/i386.h (TARGET_COREI7): Removed.
395 (TARGET_COREI7_AVX): Likewise.
396 (TARGET_ATOM): Likewise.
397 (TARGET_SLM): Likewise.
398 (TARGET_NEHALEM): New.
399 (TARGET_SANDYBRIDGE): Likewise.
400 (TARGET_BONNELL): Likewise.
401 (TARGET_SILVERMONT): Likewise.
402 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
403 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
404 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
405 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
406 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
407 before TARGET_CPU_DEFAULT_broadwell.
408 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
409 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
410 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
411
412 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
413
414 * config/i386/x86-tune.def: Updated.
415
416 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
417 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
418 haswell, bonnel, silvermont. Add westmere.
419
420 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
421
422 PR rtl-optimization/57422
423 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
424 can always be scheduled in its current form.
425
426 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
427
428 PR rtl-optimization/57422
429 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
430 add_to_hard_reg_set.
431
432 2013-12-20 Sharad Singhai <singhai@google.com>
433
434 * Makefile.in: Add optinfo.texi.
435 * doc/invoke.texi: Fix typo.
436 * doc/optinfo.texi: New documentation for optimization info.
437 * doc/passes.texi: Add new node.
438
439 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
440
441 * vec.h (stack_vec): Convert to a templaate specialization of
442 auto_vec.
443 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
444 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
445 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
446 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
447 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
448 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
449 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
450 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
451 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
452
453 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
454
455 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
456 arguments to push onto the stack and no varargs, save ip into the last
457 stack slot if r3 isn't available on entry.
458
459 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
460
461 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
462 * config/arm/arm_neon.h: Regenerate.
463 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
464 * doc/arm-neon-intrinsics.texi: Regenerate.
465
466 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
467
468 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
469 NO_REGS for LRA.
470
471 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
472
473 * config/arm/arm_acle.h: Add underscores before variables.
474
475 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
476
477 PR tree-optimization/59544
478 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
479 vectorizable_store.
480 (vectorizable_store): Handle negative step.
481
482 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
483
484 * config.gcc: Support march=broadwell.
485 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
486 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
487 * doc/invoke.texi: Document march=broadwell.
488
489 2013-12-20 Jakub Jelinek <jakub@redhat.com>
490
491 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
492 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
493 like INTEGER_TYPE.
494 (instrument_bool_enum_load): New function.
495 (ubsan_pass): Call it.
496 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
497 * asan.c (create_cond_insert_point): No longer static.
498 * asan.h (create_cond_insert_point): Declare.
499 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
500 built-in.
501 * opts.c (common_handle_option): Handle -fsanitize=bool and
502 -fsanitize=enum.
503 * builtins.c (fold_builtin_memory_op): When sanitizing bool
504 and enum loads, don't use enum or bool types for memcpy folding.
505 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
506 (SANITIZE_UNDEFINED): Or these in.
507
508 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
509
510 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
511 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
512 to determine available register number.
513 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
514 macro NDS32_MODE_TYPE_ALIGN.
515 (nds32_function_arg): Refine code layout.
516
517 2013-12-19 Jeff Law <law@redhat.com>
518
519 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
520 handles both zero and sign extension.
521
522 2013-12-19 Teresa Johnson <tejohnson@google.com>
523
524 PR gcov-profile/59542
525 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
526 if we have made any changes.
527
528 2013-12-19 Jakub Jelinek <jakub@redhat.com>
529
530 PR other/59545
531 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
532 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
533 to unsigned.
534 (attr_rtx_1): Change hashcode variable to unsigned.
535 (attr_string): Likewise. Perform first multiplication in
536 unsigned type.
537 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
538 overflows.
539 * double-int.c (neg_double): Likewise.
540 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
541 * combine.c (force_to_mode): Likewise.
542 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
543 reload_cse_move2add, move2add_note_store): Likewise.
544 * simplify-rtx.c (simplify_const_unary_operation,
545 simplify_const_binary_operation): Likewise.
546 * ipa-split.c (find_split_points): Initialize first.can_split
547 and first.non_ssa_vars.
548 * gengtype-state.c (read_state_files_list): Fix up check.
549 * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
550
551 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
552
553 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
554 * doc/arm-neon-intrinsics.texi: Regenerate.
555
556 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
557
558 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
559
560 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
561
562 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
563 (arm_init_neon_builtins): Handle crypto builtins.
564 (bdesc_2arg): Likewise.
565 (bdesc_1arg): Likewise.
566 (bdesc_3arg): New table.
567 (arm_expand_ternop_builtin): New function.
568 (arm_expand_unop_builtin): Handle sha1h explicitly.
569 (arm_expand_builtin): Handle ternary builtins.
570 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
571 Define __ARM_FEATURE_CRYPTO.
572 * config/arm/arm.md: Include crypto.md.
573 (is_neon_type): Add crypto types.
574 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
575 * config/arm/crypto.def: New.
576 * config/arm/crypto.md: Likewise.
577 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
578 (CRYPTO_BINARY): Likewise.
579 (CRYPTO_TERNARY): Likewise.
580 (CRYPTO_SELECTING): Likewise.
581 (crypto_pattern): New int attribute.
582 (crypto_size_sfx): Likewise.
583 (crypto_mode): Likewise.
584 (crypto_type): Likewise.
585 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
586 Handle crypto intrinsics.
587 * config/arm/neon.ml: Add support for poly64 and polt128 types
588 and intrinsics. Define crypto intrinsics.
589 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
590 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
591 (neon_vreinterpretv8hi<mode>): Likewise.
592 (neon_vreinterpretv4si<mode>): Likewise.
593 (neon_vreinterpretv4sf<mode>): Likewise.
594 (neon_vreinterpretv2di<mode>): Likewise.
595 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
596 (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
597 (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
598 (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
599 * config/arm/arm_neon.h: Regenerate.
600
601 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
602
603 PR driver/59321
604 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
605 DEFAULT_LINKER is defined.
606 * common.opt (fuse-ld=bfd): Add Driver.
607 (fuse-ld=gold): Likewise.
608 * gcc.c (use_ld): New variable.
609 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
610 OPT_fuse_ld_gold.
611 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
612
613 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
614
615 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
616 * config.gcc (extra_headers): Add arm_acle.h.
617 * config/arm/arm.c (FL_CRC32): Define.
618 (arm_have_crc): Likewise.
619 (arm_option_override): Set arm_have_crc.
620 (arm_builtins): Add CRC32 builtins.
621 (bdesc_2arg): Likewise.
622 (arm_init_crc32_builtins): New function.
623 (arm_init_builtins): Initialise CRC32 builtins.
624 (arm_file_start): Handle architecture extensions.
625 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
626 __ARM_FEATURE_CRC32. Define __ARM_32BIT_STATE.
627 (TARGET_CRC32): Define.
628 * config/arm/arm-arches.def: Add armv8-a+crc.
629 * config/arm/arm-tables.opt: Regenerate.
630 * config/arm/arm.md (type): Add crc.
631 (<crc_variant>): New insn.
632 * config/arm/arm_acle.h: New file.
633 * config/arm/iterators.md (CRC): New int iterator.
634 (crc_variant, crc_mode): New int attributes.
635 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
636 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
637 * doc/invoke.texi: Document -march=armv8-a+crc option.
638 * doc/extend.texi: Document ACLE intrinsics.
639
640 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
641
642 PR target/59142
643 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
644 patterns.
645 * config/arm/ldmstm.md: Regenerate.
646
647 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
648
649 PR target/59142
650 * config/arm/predicates.md (arm_hard_general_register_operand):
651 New predicate.
652 (arm_hard_register_operand): Remove.
653 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
654 for all patterns.
655 * config/arm/ldmstm.md: Regenerate.
656
657 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
658
659 PR target/59142
660 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
661 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
662 vfp_hard_register_operand.
663
664 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
665
666 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
667 Define builtin types for poly64_t poly128_t.
668 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
669 * aarch64/aarch64-simd-builtins.def: Update builtins table.
670 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
671 aarch64_crypto_pmullv2di): New.
672 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
673 poly64x2_t mangler.
674 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
675 (vmull_p64, vmull_high_p64): New.
676 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
677
678 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
679
680 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
681 * config/aarch64/aarch64-simd.md
682 (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
683 aarch64_crypto_sha256su1v4si): New.
684 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
685 vsha256su0q_u32, vsha256su1q_u32): New.
686 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
687 New.
688 (CRYPTO_SHA256): New int iterator.
689 (sha256_op): New int attribute.
690
691 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
692
693 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
694 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
695 TYPES_TERNOPU): New.
696 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
697 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
698 aarch64_crypto_sha1su0v4si): New.
699 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
700 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
701 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
702 New.
703 (CRYPTO_SHA1): New int iterator.
704 (sha1_op): New int attribute.
705
706 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
707
708 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
709 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
710 TYPES_BINOPU): New.
711 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
712 aarch64_crypto_aes<aesmc_op>v16qi): New.
713 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
714 vaesimcq_u8): New.
715 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
716 UNSPEC_AESIMC): New.
717 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
718 (aes_op, aesmc_op): New int attributes.
719
720 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
721
722 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
723 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
724 crypto_sha256_slow): New.
725
726 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
727
728 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
729 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
730
731 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
732 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
733
734 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
735 constant.
736 (s390_hotpatch_trampoline_halfwords_max): New constant.
737 (s390_hotpatch_trampoline_halfwords): New static variable.
738 (get_hotpatch_attribute): New function.
739 (s390_handle_hotpatch_attribute): New function.
740 (s390_attribute_table): New target specific attribute table to
741 implement the hotpatch attribute.
742 (s390_option_override): Parse hotpatch options.
743 (s390_function_num_hotpatch_trampoline_halfwords): New function.
744 (s390_can_inline_p): Implement target hook to
745 suppress hotpatching for explicitly inlined functions.
746 (s390_asm_output_function_label): Generate hotpatch prologue.
747 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
748 (TARGET_CAN_INLINE_P): Define to implement target hook.
749 * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
750 -mhotpatch=.
751 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
752 prototype.
753 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
754 function label generation for hotpatching.
755 (FUNCTION_BOUNDARY): Align functions to eight bytes.
756 * doc/extend.texi: Document hotpatch attribute.
757 * doc/invoke.texi: Document -mhotpatch option.
758
759 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
760
761 * config/i386/i386.c: Include cfgloop.h.
762 (ix86_loop_memcount): New function.
763 (ix86_loop_unroll_adjust): New function.
764 (TARGET_LOOP_UNROLL_ADJUST): Define.
765 * config/i386/i386.h
766 (TARGET_ADJUST_UNROLL): Define.
767 * config/i386/x86-tune.def
768 (X86_TUNE_ADJUST_UNROLL): Define.
769
770 2013-12-19 Marek Polacek <polacek@redhat.com>
771
772 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
773 variable alg. Use index variable i directly.
774
775 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
776
777 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
778 for all types.
779
780 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
781
782 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
783 Consider TARGET_CPU_DEFAULT settings.
784
785 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
786
787 * config/aarch64/aarch64-cores.def: Add support for
788 -mcpu=cortex-a57.cortex-a53.
789 * config/aarch64/aarch64-tune.md: Regenerate.
790 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
791
792 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
793
794 * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
795 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
796 * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
797 (aarch64_parse_cpu): mcpu implies a default value for mtune.
798 * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
799
800 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
801
802 * common/config/aarch64/aarch64-common.c
803 (aarch64_rewrite_selected_cpu): New.
804 (aarch64_rewrite_mcpu): New.
805 * config/aarch64/aarch64-protos.h
806 (aarch64_rewrite_selected_cpu): New.
807 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
808 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
809 (ASM_CPU_SPEC): Likewise.
810 (EXTRA_SPEC_FUNCTIONS): Likewise.
811 (EXTRA_SPECS): Likewise.
812 (ASM_SPEC): Likewise.
813 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
814 CPU name.
815
816 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
817
818 * omp-low.c (simd_clone_clauses_extract): Replaced the string
819 "cilk simd elemental" with "cilk simd function."
820 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
821 Removed a carriage-return from a warning string.
822
823 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
824
825 * passes.c (execute_function_dump): Set graph_dump_initialized
826 appropriately.
827 (pass_init_dump_file): Similarly.
828 (execute_one_pass): Pass new argument to do_per_function.
829 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
830
831 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
832
833 * doc/tree-ssa.texi (SSA Operands): Remove reference to
834 SSA_OP_VMAYUSE.
835 Synchronize SSA_OP* definitions with source.
836 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
837 Add not to SSA_OP* macro definitions.
838
839 2013-12-18 Jakub Jelinek <jakub@redhat.com>
840
841 PR target/59539
842 * config/i386/sse.md
843 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
844 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
845 prefix existing define_insn names with *.
846
847 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
848
849 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
850
851 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
852 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
853
854 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
855 cortex-a57, cortex-a57.cortex-a53.
856
857 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
858
859 PR debug/59418
860 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
861 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
862 (dwarf2out_frame_debug_expr): Tidy.
863
864 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
865 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
866 Sergey Lega <sergey.s.lega@intel.com>
867 Anna Tikhonova <anna.tikhonova@intel.com>
868 Ilya Tocar <ilya.tocar@intel.com>
869 Andrey Turetskiy <andrey.turetskiy@intel.com>
870 Ilya Verbin <ilya.verbin@intel.com>
871 Kirill Yukhin <kirill.yukhin@intel.com>
872 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
873
874 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
875 (*fma_fmsub_<mode>): Ditto.
876 (*fma_fnmadd_<mode>): Ditto.
877 (*fma_fnmsub_<mode>): Ditto.
878 (*fma_fmaddsub_<mode>): Ditto.
879 (*fma_fmsubadd_<mode>): Ditto.
880 (avx512f_vternlog<mode>): Ditto.
881 (avx512f_fixupimm<mode>): Ditto.
882 (avx512f_sfixupimm<mode>): Ditto.
883 (avx512f_vpermi2var<mode>3): Ditto.
884 (avx512f_vpermt2var<mode>3): Ditto.
885 (avx512f_fmaddsub_<mode>_maskz): New.
886 (avx512f_vternlog<mode>_maskz): Ditto.
887 (avx512f_fixupimm<mode>_maskz): Ditto.
888 (avx512f_sfixupimm<mode>_maskz): Ditto.
889 (avx512f_vpermi2var<mode>3_maskz): Ditto.
890 (avx512f_vpermt2var<mode>3_maskz): Ditto.
891 (avx512f_expand<mode>_maskz): Ditto.
892 * config/i386/subst.md (sd_maskz_name): Ditto.
893 (sd_mask_op4): Ditto.
894 (sd_mask_op5): Ditto.
895 (sd_mask_codefor): Ditto.
896 (sd_mask_mode512bit_condition): Ditto.
897 (sd): Ditto.
898
899 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
900 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
901 Sergey Lega <sergey.s.lega@intel.com>
902 Anna Tikhonova <anna.tikhonova@intel.com>
903 Ilya Tocar <ilya.tocar@intel.com>
904 Andrey Turetskiy <andrey.turetskiy@intel.com>
905 Ilya Verbin <ilya.verbin@intel.com>
906 Kirill Yukhin <kirill.yukhin@intel.com>
907 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
908
909 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
910 (avx512f_ucmp<mode>3): Ditto.
911 (avx512f_eq<mode>3): Ditto.
912 (avx512f_gt<mode>3): Ditto.
913 (avx512f_testm<mode>3): Ditto.
914 (avx512f_testnm<mode>3): Ditto.
915 * config/i386/subst.md (SUBST_S): New.
916 (mask_scalar_merge_name): Ditto.
917 (mask_scalar_merge_operand3): Ditto.
918 (mask_scalar_merge_operand4): Ditto.
919 (mask_scalar_merge): Ditto.
920
921 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
922
923 PR middle-end/35545
924 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
925 OBJ_TYPE_REF.
926 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
927
928 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
929
930 PR middle-end/35545
931 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
932
933 2013-12-17 Teresa Johnson <tejohnson@google.com>
934
935 PR gcov-profile/59527
936 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
937 branch, which can't be eliminated.
938
939 2013-12-18 Martin Liska <marxin.liska@gmail.com>
940 Jan Hubicka <jh@suse.cz>
941
942 * cgraphunit.c (node_cmp): New function.
943 (expand_all_functions): Function ordering added.
944 * common.opt: New profile based function reordering flag introduced.
945 * lto-partition.c: Support for time profile added.
946 * lto.c: Likewise.
947 * predict.c (handle_missing_profiles): Time profile handled in
948 missing profiles.
949
950 2013-12-17 Jakub Jelinek <jakub@redhat.com>
951
952 PR tree-optimization/59523
953 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
954 on updated stmts.
955
956 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
957
958 * ipa-inline.c (gate_ipa_inline): Remove.
959 (const pass_data pass_data_ipa_inline): Unset has_gate.
960 (class pass_ipa_inline): Remove gate() method.
961
962 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
963
964 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
965 in contains_type_p query.
966
967 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
968
969 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
970
971 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
972 declaration.
973
974 * omp-low.c: Remove leftover comment.
975
976 * omp-low.c (check_combined_parallel): Reflect reality in comment.
977
978 * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
979 * doc/passes.texi (Pass manager): Refer to passes.def.
980
981 * doc/gccint.texi (Top): Fix inclusion order.
982
983 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
984
985 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
986 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
987 * config/arm/arm.md (generic_vfp): Remove cortexa12.
988
989 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
990
991 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
992 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
993 * config/arm/arm-tables.opt: Regenerate.
994 * config/arm/arm-tune.md: Regenerate.
995 * config/arm/bpabi.h
996 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
997
998 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
999
1000 * config/arm/arm-cores.def (cortex-a57): New.
1001 * doc/invoke.texi: Document -mcpu=cortex-a57.
1002 * config/arm/arm-tables.opt: Regenerate.
1003 * config/arm/arm-tune.md: Regenerate.
1004 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
1005
1006 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1007
1008 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
1009 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
1010 * config/arm/arm-tables.opt: Regenerate.
1011 * config/arm/arm-tune.md: Regenerate.
1012 * config/arm/bpabi.h
1013 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
1014
1015 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1016
1017 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
1018 * config/arm/genopt.sh: Improve layout.
1019 * config/arm/arm-tune.md: Regenerate.
1020 * config/arm/arm-tables.opt: Regenerate.
1021 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
1022 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
1023 (arm_option_override): When a CPU is chosen, that should also
1024 form the tune target.
1025 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
1026
1027 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1028
1029 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1030 (arm_rewrite_mcpu): Likewise.
1031 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1032 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1033 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1034 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1035 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1036 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1037
1038 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
1039
1040 * expmed.c (lowpart_bit_field_p): Fix comment.
1041 (store_bit_field_using_insv): Fix formatting.
1042 (store_bit_field): Likewise.
1043 (store_fixed_bit_field): More declaration and remove return.
1044 (store_fixed_bit_field_1): Fix formatting.
1045 (extract_fixed_bit_field): Move declaration.
1046 (extract_fixed_bit_field_1): Simplify.
1047
1048 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1049
1050 * ipa-utils.h (possible_polymorphic_call_targets): Determine
1051 context of the call.
1052 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1053
1054 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1055
1056 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1057 instead of x as last gen_lowpart argument.
1058
1059 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1060
1061 * predict.h (PROB_LIKELY): Fix the value.
1062 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1063 for overflow checking for modes without 2xwider supported mode,
1064 if the mode has 2xnarrower mode.
1065
1066 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1067 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1068 try to improve generated code if one of the arguments is constant
1069 or get_range_info says that one of the argument is always
1070 negative or always non-negative.
1071 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1072 (simplify_stmt_using_ranges): Call it.
1073
1074 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
1075
1076 PR rtl-optimization/59466
1077 * emit-rtl.c (change_address_1): Don't validate address for LRA.
1078 * recog.c (general_operand): Accept any memory for LRA.
1079 * lra.c (lra_set_insn_recog_data): Add an assert.
1080
1081 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1082
1083 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1084
1085 2013-12-14 Jan Hubicka <jh@suse.cz>
1086 Markus Trippelsdorf <octoploid@yandex.com>
1087
1088 PR ipa/59265
1089 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1090 call is already devirtualized.
1091
1092 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1093
1094 * Makefile.in (version.o): Restore dependencies on
1095 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1096
1097 2013-12-14 Jan Hubicka <jh@suse.cz>
1098
1099 PR ipa/59473
1100 * ipa-devirt.c (get_class_context): Do not ICE when type is found
1101 at wrong offset.
1102
1103 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR libgomp/58756
1106 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1107 reductions without placeholder if is_simd, but when not using
1108 GOMP_SIMD* internal calls, also perform the reduction operation
1109 on the outer var rather than simple assignment.
1110
1111 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1112
1113 PR middle-end/58956
1114 PR middle-end/59470
1115 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1116 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1117 for callback params.
1118 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1119 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
1120 calls to supply the gimple operand containing the base tree
1121 as an extra argument.
1122 * tree-ssa-ter.c: Include gimple-walk.h.
1123 (find_ssaname, find_ssaname_in_store): New helper functions.
1124 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1125 same_root_var if USE is used somewhere in the stores of the stmt.
1126 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1127 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1128 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1129 check_ipa_store): Likewise.
1130 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1131 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1132 (verify_non_ssa_vars, visit_bb): Adjust their callers.
1133 * cfgexpand.c (add_scope_conflicts_1): Use
1134 walk_stmt_load_store_addr_fn type for visit variable.
1135 (visit_op, visit_conflict): Remove name of the stmt
1136 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1137 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
1138 argument and ATTRIBUTE_UNUSED.
1139 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1140 unnamed tree argument.
1141 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
1142 ATTRIBUTE_UNUSED from stmt parameter.
1143
1144 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
1145
1146 * opts-common.c (integral_argument): Add support for
1147 hexadecimal command option integer arguments. Update comments.
1148
1149 2013-12-14 Jan Hubicka <jh@suse.cz>
1150
1151 PR ipa/59265
1152 * ipa-prop.c (ipa_analyze_call_uses): Skip already
1153 devirtualized calls.
1154
1155 2013-12-14 Jan Hubicka <jh@suse.cz>
1156
1157 PR middle-end/58477
1158 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1159
1160 2013-12-14 Jan Hubicka <jh@suse.cz>
1161
1162 PR middle-end/58477
1163 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1164
1165 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
1166
1167 PR target/59492
1168 * config/i386/i386.c (ix86_function_specific_restore): Don't
1169 change -fPIC.
1170
1171 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
1172
1173 * var-tracking.c (add_stores): Fix oversight in latest commit.
1174
1175 2013-12-14 Marek Polacek <polacek@redhat.com>
1176
1177 PR sanitizer/59503
1178 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1179 expand_binop with correct optab depending on code.
1180
1181 2013-12-14 Tom de Vries <tom@codesourcery.com>
1182
1183 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1184
1185 2013-12-13 DJ Delorie <dj@redhat.com>
1186
1187 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1188
1189 * config/msp430/msp430.md (movqi): replace general_operand with
1190 msp_general_operand and nonimmediate_operand with
1191 msp_nonimmediate_operand to allow volatile operands.
1192 (movhi): Likewise.
1193 (movpsi): Likewise.
1194 (addpsi3): Likewise.
1195 (addhi3): Likewise.
1196 (addhi3_cy): Likewise.
1197 (addchi4_cy): Likewise.
1198 (xor<mode>3): Likewise.
1199 (ome_cmpl<mode>2): Likewise.
1200 (extendqihi2): Likewise.
1201 (zero_extendqihi2): Likewise.
1202 (zero_extendhipsi2): Likewise.
1203 (truncpsihi2): Likewise.
1204 (srai_1): Likewise.
1205
1206 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
1207
1208 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1209 * ira.c: Ditto.
1210 * lra-int.h (lra_init_equiv): New prototype.
1211 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1212 (loc_equivalence_callback): Use the 3rd arg.
1213 (lra_constraints): Update equivalences. Pass curr_insn to
1214 simplify_replace_fn_rtx.
1215 * lra.c (lra): Call lra_init_equiv.
1216
1217 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1218
1219 * genmodes.c (emit_max_int): Fixed missing parens.
1220
1221 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
1222
1223 PR tree-optimization/59149
1224 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1225 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1226 if no type or decl.
1227
1228 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1229
1230 * config/arc/arc.h (BITS_PER_UNIT): Removed.
1231 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1232 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1233 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1234 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1235 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1236 * config/spu/spu.h (BITS_PER_UNIT): Removed.
1237 * defaults.h (BITS_PER_UNIT): Removed.
1238 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1239 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1240 (MAX_BITSIZE_MODE_ANY_INT): Updated.
1241 * doc/tm.texi (BITS_PER_UNIT): Removed.
1242 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1243 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1244 (create_modes): Added code to set bits_per_unit and
1245 max_bitsize_mode_any_int.
1246 (emit_max_int): Changed code generation.
1247 * mkconfig.sh: Added insn-modes.h.
1248
1249 2013-12-13 Jeff Law <law@redhat.com>
1250
1251 PR tree-optimization/45685
1252 * tree-ssa-phiopt.c (neg_replacement): New function.
1253 (tree_ssa_phiopt_worker): Call it.
1254
1255 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1256
1257 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1258
1259 2013-12-13 Bin Cheng <bin.cheng@arm.com>
1260
1261 PR tree-optimization/58296
1262 PR tree-optimization/41488
1263 * tree-scalar-evolution.c: Include necessary header files.
1264 (simplify_peeled_chrec): New function.
1265 (analyze_evolution_in_loop): New static variable.
1266 Call simplify_peeled_chrec.
1267 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1268 (add_old_iv_candidates): Don't add candidate for peeled IV.
1269 * tree-affine.h (aff_combination_zero_p): New function.
1270
1271 2013-12-13 Nick Clifton <nickc@redhat.com>
1272
1273 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
1274 true if the current function has the wakeup attribute.
1275 (msp430_start_function): Note if the function has the wakeup
1276 attribute.
1277 (msp430_attribute_table): Add wakeup attribute.
1278 (msp430_expand_epilogue): Add support for wakeup functions.
1279 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1280 the DINT instruction.
1281 * doc/extend.texi: Document the wakeup attribute.
1282
1283 2013-12-13 Kai Tietz <kitetz@redhat.com>
1284
1285 PR c++/57897
1286 * config/i386/i386.c (ix86_option_override_internal): Set for
1287 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1288 was explicit set.
1289
1290 2013-12-12 Jeff Law <law@redhat.com>
1291
1292 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1293 for zero-extended MULT simple LEA pattern.
1294
1295 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
1296
1297 PR middle-end/59470
1298 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1299 values if necessary.
1300
1301 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1302
1303 PR libgomp/59467
1304 * gimplify.c (omp_check_private): Add copyprivate argument, if it
1305 is true, don't check omp_privatize_by_reference.
1306 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1307 decl is private in outer context. Adjust omp_check_private caller.
1308
1309 2013-12-11 Jeff Law <law@redhat.com>
1310
1311 PR rtl-optimization/59446
1312 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1313 test for crossing a loop header.
1314
1315 2013-12-11 Sriraman Tallam <tmsriram@google.com>
1316
1317 PR target/59390
1318 * config/i386/i386.c (get_builtin): New function.
1319 (ix86_builtin_vectorized_function): Replace all instances of
1320 ix86_builtins[...] with get_builtin(...).
1321 (ix86_builtin_reciprocal): Ditto.
1322
1323 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1324
1325 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1326 (lang_hooks_for_cilkplus): Remove.
1327 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1328 (lhd_install_body_with_frame_cleanup): Likewise.
1329 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1330 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1331 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1332 (LANG_HOOKS_CILKPLUS): Likewise.
1333 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1334 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1335 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1336 (gimplify_call_expr): Likewise.
1337
1338 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1339
1340 * expr.c (expand_assignment): Remove dependency on
1341 flag_strict_volatile_bitfields. Always set the memory access mode.
1342 (expand_expr_real_1): Likewise.
1343
1344 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1345
1346 PR middle-end/59134
1347 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1348 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1349 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
1350 to do the real work.
1351 (store_fixed_bit_field_1): New function.
1352 (store_split_bit_field): Limit the unit size to the memory mode size,
1353 to prevent recursion.
1354
1355 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1356 Sandra Loosemore <sandra@codesourcery.com>
1357
1358 PR middle-end/23623
1359 PR middle-end/48784
1360 PR middle-end/56341
1361 PR middle-end/56997
1362 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1363 and bitregion_end parameters. Test for compliance with C++
1364 memory model.
1365 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1366 Add fallback logic for cases where -fstrict-volatile-bitfields
1367 is supposed to apply, but cannot.
1368 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1369 extract_fixed_bit_field_1 to do the extraction.
1370 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1371 Call extract_fixed_bit_field_1 to do the real work.
1372 (extract_fixed_bit_field_1): New function.
1373
1374 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
1375
1376 PR middle-end/23623
1377 PR middle-end/48784
1378 PR middle-end/56341
1379 PR middle-end/56997
1380 * expmed.c (strict_volatile_bitfield_p): New function.
1381 (store_bit_field_1): Don't special-case strict volatile
1382 bitfields here.
1383 (store_bit_field): Handle strict volatile bitfields here instead.
1384 (store_fixed_bit_field): Don't special-case strict volatile
1385 bitfields here.
1386 (extract_bit_field_1): Don't special-case strict volatile
1387 bitfields here.
1388 (extract_bit_field): Handle strict volatile bitfields here instead.
1389 (extract_fixed_bit_field): Don't special-case strict volatile
1390 bitfields here. Simplify surrounding code to resemble that in
1391 store_fixed_bit_field.
1392 * doc/invoke.texi (Code Gen Options): Update
1393 -fstrict-volatile-bitfields description.
1394
1395 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1396
1397 * configure.ac: Add check for aarch64 assembler -mabi support.
1398 * configure: Regenerate.
1399 * config.in: Regenerate.
1400 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1401 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1402 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1403 if assembler does not support -mabi and option ilp32 is selected.
1404 * doc/install.texi: Added note that building gcc 4.9 and after
1405 with pre 2.24 binutils will not support -mabi=ilp32.
1406
1407 2013-12-11 Marek Polacek <polacek@redhat.com>
1408
1409 PR sanitizer/59399
1410 * expr.c (expand_expr_real_1): Remove assert dealing with
1411 internal calls and turn that into a condition instead.
1412
1413 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
1414
1415 * config/arm/arm.opt (mlra): Enable LRA by default.
1416
1417 2013-12-11 Jakub Jelinek <jakub@redhat.com>
1418
1419 PR tree-optimization/59417
1420 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1421 in a different bb rhan var, only duplicate points-to info and
1422 not alignment info and don't duplicate range info.
1423 * tree-ssa-loop-niter.c (determine_value_range): Instead of
1424 assertion failure handle inconsistencies in range info by only
1425 using var's range info and not PHI result range infos.
1426
1427 PR tree-optimization/59386
1428 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1429 unshare_expr (id->retval) before passing it to gimple_build_assign.
1430
1431 2013-12-11 Bin Cheng <bin.cheng@arm.com>
1432
1433 Reverted:
1434 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1435 PR tree-optimization/41488
1436 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1437 for PEELED_CHREC kind IV.
1438 * tree-scalar-evolution.c: Include necessary header files.
1439 (peeled_chrec_map, simplify_peeled_chrec): New.
1440 (analyze_evolution_in_loop): New static variable.
1441 Call simplify_peeled_chrec.
1442 (scev_initialize): Initialize peeled_chrec_map.
1443 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1444
1445 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1446
1447 PR target/59458
1448 * config/i386/i386.md (*movsf_internal): Set mode to SI for
1449 alternative 13.
1450
1451 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1452
1453 PR rtl-optimization/58295
1454 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1455 WORD_REGISTER_OPERATIONS targets.
1456
1457 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1458
1459 * genrecog.c (validate_pattern): Treat all messages except missing
1460 modes as errors.
1461 * config/epiphany/epiphany.md: Remove constraints from
1462 define_peephole2s.
1463 * config/h8300/h8300.md: Remove constraints from define_splits.
1464 * config/msp430/msp430.md: Likewise.
1465 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1466 nonimmediate_operand rather than general_operand for operand 0.
1467 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1468 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1469 Use match_operator rather than match_test to invoke general_operand.
1470 * config/v850/v850.md (*movqi_internal, *movhi_internal)
1471 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1472
1473 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1474
1475 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1476 register_operand rather than pointer_operand. Add modes to the
1477 operands.
1478 (insn_ldna_add<bitsuffix>): Likewise.
1479 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1480 (insn_ldnt_add<bitsuffix>): Likewise.
1481 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1482 (insn_ld_add_L2<bitsuffix>): Likewise.
1483 (insn_ldna_add_L2<bitsuffix>): Likewise.
1484 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1485 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1486 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1487 (insn_ld_add_miss<bitsuffix>): Likewise.
1488 (insn_ldna_add_miss<bitsuffix>): Likewise.
1489 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1490 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1491 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1492 (insn_st_add<bitsuffix>): Likewise.
1493 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1494 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1495 (insn_stnt_add<bitsuffix>): Likewise.
1496 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1497 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1498 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1499 reg_or_0_operand for operand 0.
1500 (insn_v2<pack_insn>): Likewise.
1501 (vec_pack_hipart_v4hi): Likewise.
1502 (insn_v2packh): Likewise.
1503 (vec_pack_ssat_v2si): Likewise.
1504 (insn_v4packsc): Likewise.
1505
1506 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1507
1508 * basic-block.h (gcov_working_set_t): Put back typedef.
1509 * gcov-io.h (gcov_bucket_type): Likewise.
1510 (gcov_working_set_info, gcov_working_set_t): Likewise.
1511
1512 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1513
1514 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1515 Remove typedef.
1516 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1517 rename to cgraph_inline_failed_t.
1518 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1519 to ao_ref.
1520 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1521 to reg_equivs_t.
1522 * conditions.h (CC_STATUS): Remove typedef.
1523 * bitmap.h (bitmap_obstack): Remove typedef.
1524 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1525 bitmap_element.
1526 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1527 bitmap_head.
1528 (bitmap_iterator): Remove typedef.
1529 * target.h (cumulative_args_t, print_switch_type,
1530 secondary_reload_info): Remove typedef.
1531 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1532 dw_cfi_oprnd_struct alias.
1533 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1534 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1535 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1536 dw_cfa_location.
1537 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1538 dw_vec_const.
1539 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1540 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1541 dw_loc_descr_node.
1542 * params.h (param_info, compiler_param): Remove typedef.
1543 * opts.h (cl_deferred_param): Remove typedef.
1544 * sreal.h (sreal): Remove typedef.
1545 * ddg.h (dep_type, dep_data_type): Remove typedef.
1546 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1547 typedef.
1548 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1549 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1550 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1551 and rename to aff_tree.
1552 * sched-int.h (region): Remove typedef.
1553 * diagnostic.h (diagnostic_info,
1554 diagnostic_classification_change_t): Remove typedef.
1555 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1556 affine_iv.
1557 * sbitmap.h (sbitmap_iterator): Remove typedef.
1558 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1559 Remove typedef and rename to imm_use_iterator.
1560 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1561 ssa_op_iter.
1562 * ggc-internal.h (ggc_statistics): Remove typedef.
1563 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1564 rename to cselib_val.
1565 * tree-core.h (alias_pair): Remove typedef.
1566 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1567 constructor_elt.
1568 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1569 ssa_use_operand_t.
1570 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1571 * tree-data-ref.h (conflict_function): Remove typedef.
1572 * tree-inline.h (copy_body_data): Remove typedef.
1573 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1574 edge_growth_cache_entry): Remove typedef.
1575 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1576 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1577 Remove typedef and rename to gimple_stmt_iterator.
1578 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1579 rename to ce_if_block.
1580 (edge_iterator): Remove typedef.
1581 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1582 and rename to ipa_agg_jf_item.
1583 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1584 ipa_parm_adjustment_t): Remove typedef.
1585 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1586 ipa_jump_func.
1587 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1588 ipa_edge_args.
1589 * gcov-io.h (gcov_bucket_type): Remove typedef.
1590 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1591 to gcov_working_set_t.
1592 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1593 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1594 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1595 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1596 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1597 replace_label_data): Remove typedef.
1598 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1599 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1600 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1601 sel_region_bb_info_def, succ_iterator): Remove typedef.
1602 (deps_where_def, deps_where_t): Remove typedef and rename to
1603 deps_where_t.
1604 * coretypes.h: Adapt forward declarations.
1605 * tree-scalar-evolution.h: Likewise.
1606 * tree-ssa-address.h: Likewise.
1607 * tree-ssa-operands.h: Likewise.
1608 * function.h: Likewise.
1609 * config/frv/frv-protos.h: Likewise.
1610 * targhooks.h: Likewise.
1611 * basic_block.h: Likewise.
1612 * rtl.def: Adapt documentation.
1613 * doc/tm.texi: Likewise.
1614 * ipa-cp.c: Adapt uses.
1615 * bitmap.c: Likewise.
1616 * dwarf2out.c: Likewise.
1617 * target.def: Likewise.
1618 * ipa-inline-analysis.c: Likewise.
1619 * dwarf2cfi.c: Likewise.
1620 * tree-ssa-loop-ivopts.c: Likewise.
1621 * lto-cgraph.c: Likewise.
1622 * config/frv/frv.c: Likewise.
1623 * ifcvt.c: Likewise.
1624 * ipa-prop.c: Likewise.
1625
1626 2013-12-10 Kai Tietz <ktietz@redhat.com>
1627
1628 PR target/56807
1629 * config/i386/i386.c (ix86_expand_prologue): Address saved
1630 registers stack-relative, not via frame-pointer.
1631
1632 2013-12-10 Richard Biener <rguenther@suse.de>
1633
1634 PR middle-end/38474
1635 * tree-ssa-structalias.c (solution_set_expand): Expand into
1636 a different possibly cached bitmap and return the result.
1637 (set_union_with_increment): Pass in a shared expanded bitmap
1638 and adjust.
1639 (do_sd_constraint): Likewise.
1640 (do_ds_constraint): Likewise.
1641 (do_complex_constraint): Likewise.
1642 (solve_graph): Manage the shared expanded bitmap.
1643
1644 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1645
1646 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1647 (LOOP_VINFO_SCALAR_LOOP): Define.
1648 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1649 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1650 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1651 MASK_STORE.
1652 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1653 internal fns.
1654 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1655 tree-ssa-address.h.
1656 (release_bb_predicate): New function.
1657 (free_bb_predicate): Use it.
1658 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1659 just to immediately allocate it again.
1660 (add_to_predicate_list): Add loop argument. If basic blocks that
1661 dominate loop->latch don't insert any predicate.
1662 (add_to_dst_predicate_list): Adjust caller.
1663 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1664 handle it like flag_tree_loop_if_convert_stores.
1665 (insert_gimplified_predicates): Likewise.
1666 (ifcvt_can_use_mask_load_store): New function.
1667 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1668 argument, check if some conditional loads or stores can't be
1669 converted into MASK_LOAD or MASK_STORE.
1670 (if_convertible_stmt_p): Add any_mask_load_store argument,
1671 pass it down to if_convertible_gimple_assign_stmt_p.
1672 (predicate_bbs): Don't return bool, only check if the last stmt
1673 of a basic block is GIMPLE_COND and handle that. Adjust
1674 add_to_predicate_list caller.
1675 (if_convertible_loop_p_1): Only call predicate_bbs if
1676 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1677 afterwards, check gimple_code of stmts here. Replace is_predicated
1678 check with dominance check. Add any_mask_load_store argument,
1679 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1680 call if_convertible_phi_p only after all if_convertible_stmt_p calls.
1681 (if_convertible_loop_p): Add any_mask_load_store argument,
1682 pass it down to if_convertible_loop_p_1.
1683 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1684 (combine_blocks): Add any_mask_load_store argument, pass
1685 it down to insert_gimplified_predicates and call predicate_mem_writes
1686 if it is set. Call predicate_bbs.
1687 (version_loop_for_if_conversion): New function.
1688 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1689 calls. Return todo flags instead of bool, call
1690 version_loop_for_if_conversion if if-conversion should be just
1691 for the vectorized loops and nothing else.
1692 (main_tree_if_conversion): Adjust caller. Don't call
1693 tree_if_conversion for dont_vectorize loops if if-conversion
1694 isn't explicitly enabled.
1695 * tree-vect-data-refs.c (vect_check_gather): Handle
1696 MASK_LOAD/MASK_STORE.
1697 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1698 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1699 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1700 expand_MASK_STORE): New functions.
1701 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1702 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1703 (vectorize_loops): Don't try to vectorize loops with
1704 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1705 loops, fold LOOP_VECTORIZED internal call depending on if loop
1706 has been vectorized or not.
1707 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1708 New function.
1709 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1710 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1711 still to loop's entry or exit edge.
1712 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1713 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1714 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1715 Adjust callers.
1716 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1717 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1718 right place in the CFG afterwards.
1719 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1720 MASK_STORE.
1721 * cfgloop.h (struct loop): Add dont_vectorize field.
1722 * tree-loop-distribution.c (copy_loop_before): Adjust
1723 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1724 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1725 * passes.def: Add a note that pass_vectorize must immediately follow
1726 pass_if_conversion.
1727 * tree-predcom.c (split_data_refs_to_components): Give up if
1728 DR_STMT is a call.
1729 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
1730 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1731 and MASK_STORE.
1732 (vectorizable_mask_load_store): New function.
1733 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1734 (vect_transform_stmt): Handle MASK_STORE.
1735 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1736 DR_STMT where lhs is NULL.
1737 * optabs.h (can_vec_perm_p): Fix up comment typo.
1738 (can_vec_mask_load_store_p): New prototype.
1739 * optabs.c (can_vec_mask_load_store_p): New function.
1740
1741 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1742
1743 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1744 the extraction of a bit-field of null size.
1745
1746 2013-12-10 Marek Polacek <polacek@redhat.com>
1747
1748 PR sanitizer/59437
1749 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1750 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1751 instead of gimple_code.
1752
1753 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1754
1755 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1756 Add android definitions.
1757 (s390x-*-linux*): Use linux-protos.h.
1758
1759 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1760
1761 PR tree-optimization/41488
1762 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1763 for PEELED_CHREC kind IV.
1764 * tree-scalar-evolution.c: Include necessary header files.
1765 (peeled_chrec_map, simplify_peeled_chrec): New.
1766 (analyze_evolution_in_loop): New static variable.
1767 Call simplify_peeled_chrec.
1768 (scev_initialize): Initialize peeled_chrec_map.
1769 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1770
1771 2013-12-09 Andrew Pinski <apinski@cavium.com>
1772
1773 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1774 that options are conflicting ones.
1775
1776 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1777
1778 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1779
1780 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1781
1782 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1783
1784 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1785 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1786
1787 * cfganal.c (inverted_post_order_compute): Likewise.
1788 * cfgcleanup.c (try_optimize_cfg): Likewise.
1789 * cfgexpand.c (add_scope_conflicts): Likewise.
1790 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1791 * cfgrtl.c (relink_block_chain): Likewise.
1792 * dce.c (mark_artificial_uses): Likewise.
1793 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1794 * df-problems.c (df_lr_verify_solution_start,
1795 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1796 df_live_verify_solution_start, df_live_verify_solution_end,
1797 df_live_set_all_dirty, df_live_verify_transfer_functions,
1798 df_md_local_comput): Likewise.
1799 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1800 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1801 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1802 free_dominance_info): Likewise.
1803 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1804 * graph.c (draw_cfg_edges): Likewise.
1805 * graphite-scop-detection.c (print_graphite_scop_statistics,
1806 dot_all_scops_1): Likewise.
1807 * graphite.c (print_global_statistics,
1808 print_graphite_scop_statistics): Likewise.
1809 * ira.c (do_reload): Likewise.
1810 * loop-init.c (loop_optimizer_finalize): Likewise.
1811 * lto-streamer-in.c (input_function): Likewise.
1812 * lto-streamer-out.c (output_function): Likewise.
1813 * mcf.c (adjust_cfg_counts): Likewise.
1814 * predict.c (estimate_loops): Likewise.
1815 * sched-rgn.c (haifa_find_rgns): Likewise.
1816 * tree-cfg.c (split_critical_edges): Likewise.
1817 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1818 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1819 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1820 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1821 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1822 * vtable-verify.c (vtable_verify_main): Likewise.
1823 * web.c (web_main): Likewise.
1824
1825 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1826
1827 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1828
1829 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1830 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1831 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1832 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1833 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1834 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1835 * config/sh/sh.c (sh_md_init_global): Likewise.
1836 * config/sh/sh_optimize_sett_clrt.cc
1837 (sh_optimize_sett_clrt::execute): Likewise.
1838 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1839 Likewise.
1840 * dominance.c (calc_dfs_tree): Likewise.
1841 * final.c (final): Likewise.
1842 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1843 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1844 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1845 * lcm.c (compute_antinout_edge): Likewise.
1846 * mode-switching.c (optimize_mode_switching): Likewise.
1847 * postreload.c (reload_combine): Likewise.
1848 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1849 * tree-ssa-live.c (live_worklist): Likewise.
1850
1851 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1852
1853 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1854
1855 * asan.c (transform_statements, execute_sanopt): Eliminate
1856 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1857 explicit.
1858 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1859 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1860 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1861 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1862 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1863 duplicate_computed_gotos): Likewise.
1864 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1865 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1866 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1867 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1868 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1869 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1870 Likewise.
1871 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1872 verify_loop_structure): Likewise.
1873 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1874 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1875 verify_hot_cold_block_grouping, purge_all_dead_edges,
1876 fixup_abnormal_edges, record_effective_endpoints,
1877 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1878 break_superblocks): Likewise.
1879 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1880 cgraph_rebuild_references): Likewise.
1881 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1882 * combine.c (delete_noop_moves, create_log_links,
1883 combine_instructions): Likewise.
1884 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1885 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1886 Likewise.
1887 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1888 c6x_reorg): Likewise.
1889 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1890 * config/frv/frv.c (frv_optimize_membar): Likewise.
1891 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1892 * config/ia64/ia64.c (ia64_reorg): Likewise.
1893 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1894 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1895 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1896 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1897 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1898 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1899 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1900 reorder_var_tracking_notes): Likewise.
1901 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1902 reorder_var_tracking_notes): Likewise.
1903 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1904 * cprop.c (compute_hash_table_work, compute_cprop_data,
1905 local_cprop_pass, find_implicit_sets): Likewise.
1906 * cse.c (cse_condition_code_reg): Likewise.
1907 * dce.c (prescan_insns_for_dce): Likewise.
1908 * df-core.c (df_compact_blocks): Likewise.
1909 * df-problems.c (df_word_lr_alloc): Likewise.
1910 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1911 df_update_entry_exit_and_calls): Likewise.
1912 * dominance.c (calculate_dominance_info, verify_dominators,
1913 debug_dominance_info): Likewise.
1914 * dse.c (dse_step5_nospill): Likewise.
1915 * except.c (finish_eh_generation): Likewise.
1916 * final.c (compute_alignments): Likewise.
1917 * function.c (thread_prologue_and_epilogue_insns,
1918 rest_of_match_asm_constraints): Likewise.
1919 * gcse.c (compute_hash_table_work, prune_expressions,
1920 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1921 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1922 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1923 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1924 find_explicit_erroneous_behaviour): Likewise.
1925 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1926 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1927 * haifa-sched.c (haifa_sched_init): Likewise.
1928 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1929 Likewise.
1930 * ifcvt.c (if_convert): Likewise.
1931 * init-regs.c (initialize_uninitialized_regs): Likewise.
1932 * ipa-prop.c (ipcp_transform_function): Likewise.
1933 * ipa-pure-const.c (analyze_function): Likewise.
1934 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1935 * ira-build.c (form_loop_tree): Likewise.
1936 * ira-costs.c (find_costs_and_classes): Likewise.
1937 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1938 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1939 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1940 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1941 * jump.c (mark_all_labels): Likewise.
1942 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1943 compute_nearerout, compute_rev_insert_delete): Likewise.
1944 * loop-init.c (fix_loop_structure): Likewise.
1945 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1946 * lower-subreg.c (decompose_multiword_subregs,
1947 decompose_multiword_subregs): Likewise.
1948 * lra-assigns.c (assign_by_spills): Likewise.
1949 * lra-coalesce.c (lra_coalesce): Likewise.
1950 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1951 Likewise.
1952 * lra-eliminations.c (lra_init_elimination): Likewise.
1953 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1954 lra_final_code_change): Likewise.
1955 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1956 update_inc_notes): Likewise.
1957 * mcf.c (adjust_cfg_counts): Likewise.
1958 * mode-switching.c (optimize_mode_switching): Likewise.
1959 * modulo-sched.c (rest_of_handle_sms): Likewise.
1960 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1961 expand_omp_target): Likewise.
1962 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1963 * postreload.c (reload_cse_regs_1): Likewise.
1964 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1965 tree_estimate_probability, expensive_function_p,
1966 estimate_bb_frequencies, compute_function_frequency): Likewise.
1967 * profile.c (is_inconsistent, compute_branch_probabilities,
1968 branch_prob): Likewise.
1969 * ree.c (find_removable_extensions): Likewise.
1970 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1971 * regcprop.c (copyprop_hardreg_forward): Likewise.
1972 * reginfo.c (init_subregs_of_mode): Likewise.
1973 * regrename.c (regrename_analyze): Likewise.
1974 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1975 Likewise.
1976 * reload1.c (has_nonexceptional_receiver, reload,
1977 calculate_elim_costs_all_insns): Likewise.
1978 * resource.c (init_resource_info, free_resource_info): Likewise.
1979 * sched-ebb.c (schedule_ebbs): Likewise.
1980 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1981 haifa_find_rgns, sched_rgn_local_init): Likewise.
1982 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1983 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1984 make_regions_from_the_rest): Likewise.
1985 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1986 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1987 * store-motion.c (compute_store_table, build_store_vectors,
1988 one_store_motion_pass): Likewise.
1989 * tracer.c (tail_duplicate): Likewise.
1990 * trans-mem.c (compute_transaction_bits): Likewise.
1991 * tree-call-cdce.c (tree_call_cdce): Likewise.
1992 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1993 fold_cond_expr_cond, make_edges, assign_discriminators,
1994 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1995 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1996 execute_fixup_cfg): Likewise.
1997 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1998 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1999 Likewise.
2000 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
2001 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
2002 mark_reachable_handlers): Likewise.
2003 * tree-emutls.c (lower_emutls_function_body): Likewise.
2004 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2005 * tree-inline.c (optimize_inline_calls): Likewise.
2006 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
2007 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
2008 * tree-object-size.c (compute_object_sizes): Likewise.
2009 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
2010 insert_backedge_copies, tree_profiling): Likewise.
2011 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2012 * tree-sra.c (scan_function, sra_modify_function_body,
2013 propagate_dereference_distances, ipa_sra_modify_function_body,
2014 convert_callers): Likewise.
2015 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
2016 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2017 create_outofssa_var_map, coalesce_partitions): Likewise.
2018 * tree-ssa-copy.c (init_copy_prop): Likewise.
2019 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2020 * tree-ssa-dce.c (find_obviously_necessary_stmts,
2021 eliminate_unnecessary_stmts): Likewise.
2022 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
2023 Likewise.
2024 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2025 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
2026 new_tree_live_info, calculate_live_on_exit, dump_live_info,
2027 analyze_memory_references, fill_always_executed_in,
2028 tree_ssa_lim_finalize): Likewise.
2029 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2030 Likewise.
2031 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2032 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2033 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2034 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2035 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2036 Likewise.
2037 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2038 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2039 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2040 tree_ssa_uncprop): Likewise.
2041 * tree-ssa-uninit.c (warn_uninitialized_vars,
2042 execute_late_warn_uninitialized): Likewise.
2043 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2044 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2045 Likewise.
2046 * tree-switch-conversion.c (do_switchconv): Likewise.
2047 * tree-vect-generic.c (expand_vector_operations): Likewise.
2048 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2049 execute_vect_slp): Likewise.
2050 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2051 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2052 Likewise.
2053 * ubsan.c (ubsan_pass): Likewise.
2054 * value-prof.c (verify_histograms,
2055 gimple_value_profile_transformations, gimple_find_values_to_profile):
2056 Likewise.
2057 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2058 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2059
2060 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2061
2062 * basic-block.h (last_basic_block): Eliminate macro.
2063
2064 * asan.c (transform_statements): Eliminate use of last_basic_block
2065 in favor of last_basic_block_for_fn, in order to make use of cfun
2066 explicit.
2067 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2068 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2069 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2070 * cfg.c (compact_blocks): Likewise.
2071 * cfganal.c (mark_dfs_back_edges,
2072 control_dependences::control_dependences, post_order_compute,
2073 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2074 single_pred_before_succ_order): Likewise.
2075 * cfgbuild.c (make_edges): Likewise.
2076 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2077 * cfghooks.c (verify_flow_info): Likewise.
2078 * cfgloop.c (verify_loop_structure): Likewise.
2079 * cfgloopanal.c (just_once_each_iteration_p,
2080 mark_irreducible_loops): Likewise.
2081 * cfgloopmanip.c (fix_bb_placements, remove_path,
2082 update_dominators_in_loop): Likewise.
2083 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2084 break_superblocks, rtl_flow_call_edges_add): Likewise.
2085 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2086 * config/frv/frv.c (frv_optimize_membar): Likewise.
2087 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2088 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2089 * cprop.c (compute_local_properties, find_implicit_sets,
2090 bypass_conditional_jumps, one_cprop_pass): Likewise.
2091 * cse.c (cse_main): Likewise.
2092 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2093 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2094 * df-problems.c (df_lr_verify_solution_start,
2095 df_live_verify_solution_start, df_md_local_compute): Likewise.
2096 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2097 calc_idoms): Likewise.
2098 * domwalk.c (dom_walker::walk): Likewise.
2099 * dse.c (dse_step0, dse_step3): Likewise.
2100 * function.c (epilogue_done): Likewise.
2101 * gcse.c (alloc_gcse_mem, compute_local_properties,
2102 prune_insertions_deletions, compute_pre_data,
2103 pre_expr_reaches_here_p, one_pre_gcse_pass,
2104 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2105 one_code_hoisting_pass): Likewise.
2106 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2107 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2108 * haifa-sched.c (unlink_bb_notes): Likewise.
2109 * ipa-split.c (execute_split_functions): Likewise.
2110 * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2111 Likewise.
2112 * ira-emit.c (ira_emit): Likewise.
2113 * ira.c (find_moveable_pseudos, ira): Likewise.
2114 * lcm.c (compute_antinout_edge, compute_laterin,
2115 compute_insert_delete, pre_edge_lcm, compute_available,
2116 compute_nearerout, compute_rev_insert_delete,
2117 pre_edge_rev_lcm): Likewise.
2118 * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2119 Likewise.
2120 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2121 * lra-lives.c (lra_create_live_ranges): Likewise.
2122 * lra.c (lra): Likewise.
2123 * mode-switching.c (optimize_mode_switching): Likewise.
2124 * recog.c (split_all_insns): Likewise.
2125 * regcprop.c (copyprop_hardreg_forward): Likewise.
2126 * regrename.c (regrename_analyze): Likewise.
2127 * reload1.c (reload): Likewise.
2128 * resource.c (init_resource_info): Likewise.
2129 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2130 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2131 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2132 recompute_rev_top_order, sel_init_pipelining,
2133 make_regions_from_the_rest): Likewise.
2134 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2135 Likewise.
2136 * tracer.c (tail_duplicate): Likewise.
2137 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2138 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2139 gimple_flow_call_edges_add): Likewise.
2140 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2141 cleanup_tree_cfg_1): Likewise.
2142 * tree-complex.c (tree_lower_complex): Likewise.
2143 * tree-inline.c (copy_cfg_body): Likewise.
2144 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2145 prepare_def_site_for, update_ssa): Likewise.
2146 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2147 * tree-ssa-dom.c (record_edge_info): Likewise.
2148 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2149 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2150 * tree-ssa-loop-manip.c (copy_phi_node_args
2151 gimple_duplicate_loop_to_header_edge): Likewise.
2152 * tree-ssa-pre.c (compute_antic): Likewise.
2153 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2154 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2155 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2156 * tree-ssa-tail-merge.c (init_worklist): Likewise.
2157 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2158 * tree-stdarg.c (reachable_at_most_once): Likewise.
2159 * tree-vrp.c (find_assert_locations): Likewise.
2160 * var-tracking.c (vt_find_locations): Likewise.
2161
2162 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2163
2164 * basic-block.h (profile_status): Eliminate macro.
2165
2166 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2167 profile_status macro in favor of profile_status_for_fn, making
2168 use of cfun explicit.
2169 * cfghooks.c (account_profile_record): Likewise.
2170 * cfgloopanal.c (single_likely_exit):
2171 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2172 * graphite.c (graphite_finalize):
2173 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2174 ubsan_expand_si_overflow_neg_check,
2175 ubsan_expand_si_overflow_mul_check): Likewise.
2176 * ipa-split.c (consider_split, execute_split_functions):
2177 * loop-unroll.c (decide_peel_simple):
2178 * optabs.c (emit_cmp_and_jump_insn_1):
2179 * predict.c (maybe_hot_edge_p, probably_never_executed,
2180 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2181 tree_estimate_probability_driver, estimate_bb_frequencies,
2182 compute_function_frequency, rebuild_frequencies): Likewise.
2183 * profile.c (compute_branch_probabilities): Likewise.
2184 * tree-cfg.c (gimple_account_profile_record): Likewise.
2185 * tree-inline.c (optimize_inline_calls): Likewise.
2186
2187 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2188
2189 * basic-block.h (label_to_block_map): Eliminate macro.
2190
2191 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2192 uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2193 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2194 (verify_gimple_label): Likewise.
2195
2196 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2197
2198 * basic-block.h (basic_block_info): Eliminate macro.
2199
2200 * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2201 with basic_block_info_for_fn, making uses of cfun be explicit.
2202 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2203
2204 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2205
2206 * basic-block.h (BASIC_BLOCK): Eliminate macro.
2207
2208 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2209 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2210 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2211 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2212 * caller-save.c (insert_one_insn): Likewise.
2213 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2214 * cfgexpand.c (add_scope_conflicts): Likewise.
2215 * cfghooks.c (verify_flow_info): Likewise.
2216 * cfgloop.c (flow_loops_find): Likewise.
2217 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2218 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2219 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2220 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2221 * cse.c (cse_main): Likewise.
2222 * dce.c (fast_dce): Likewise.
2223 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2224 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2225 df_bb_replace, df_dump_region): Likewise.
2226 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2227 df_live_bb_local_compute, df_chain_remove_problem)
2228 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2229 df_md_bb_local_compute, df_md_local_compute,
2230 df_md_transfer_function): Likewise.
2231 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2232 df_reorganize_refs_by_insn, df_bb_refs_collect,
2233 df_record_entry_block_defs, df_update_entry_block_defs,
2234 df_record_exit_block_uses): Likewise.
2235 * dominance.c (nearest_common_dominator_for_set): Likewise.
2236 * gcse.c (hoist_code): Likewise.
2237 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2238 * ipa-inline-analysis.c (param_change_prob,
2239 estimate_function_body_sizes): Likewise.
2240 * ipa-split.c (dominated_by_forbidden): Likewise.
2241 * loop-unroll.c (apply_opt_in_copies): Likewise.
2242 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2243 * lra-lives.c (lra_create_live_ranges): Likewise.
2244 * predict.c (propagate_freq): Likewise.
2245 * regrename.c (regrename_analyze): Likewise.
2246 * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2247 Likewise.
2248 * resource.c (mark_target_live_regs): Likewise.
2249 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2250 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2251 * sched-rgn.c (debug_region, dump_region_dot, too_large,
2252 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2253 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2254 * sched-vis.c (debug_bb_n_slim): Likewise.
2255 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2256 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2257 * sel-sched.c (remove_insns_that_need_bookkeeping)
2258 (current_region_empty_p, sel_region_init, simplify_changed_insns):
2259 Likewise.
2260 * trans-mem.c (execute_tm_mark, execute_tm_edges,
2261 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2262 * tree-cfg.c (make_edges, end_recording_case_labels,
2263 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2264 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2265 gimple_purge_all_dead_eh_edges,
2266 gimple_purge_all_dead_abnormal_call_edges): Likewise.
2267 * tree-cfgcleanup.c (fixup_noreturn_call,
2268 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2269 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2270 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2271 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2272 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2273 * tree-ssa-live.c (live_worklist): Likewise.
2274 * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2275 find_uses_to_rename, copy_phi_node_args): Likewise.
2276 * tree-ssa-pre.c (compute_antic): Likewise.
2277 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2278 Likewise.
2279 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2280 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2281 same_succ_flush_bbs, update_worklist, set_cluster,
2282 same_phi_alternatives, find_clusters_1, apply_clusters,
2283 update_debug_stmts): Likewise.
2284 * tree-ssa-threadupdate.c (mark_threaded_blocks,
2285 thread_through_all_blocks): Likewise.
2286 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2287 * tree-vrp.c (find_assert_locations): Likewise.
2288
2289 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2290
2291 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2292
2293 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2294 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2295 (expunge_block): Likewise.
2296 * cfgrtl.c (create_basic_block_structure): Likewise.
2297 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2298 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2299 * tree-cfg.c (create_bb): Likewise.
2300
2301 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2302
2303 * basic-block.h (profile_status_for_function): Rename to...
2304 (profile_status_for_fn): ...this.
2305
2306 * cfg.c (check_bb_profile): Update for renaming.
2307 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2308 * lto-streamer-in.c (input_cfg): Likewise.
2309 * lto-streamer-out.c (output_cfg): Likewise.
2310 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2311 maybe_hot_bb_p, probably_never_executed)
2312 (handle_missing_profiles): Likewise.
2313 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2314 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2315
2316 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2317
2318 * basic-block.h (label_to_block_map_for_function): Rename to...
2319 (label_to_block_map_for_fn): ...this.
2320
2321 * lto-streamer-in.c (input_cfg): Update for renaming.
2322 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2323
2324 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2325
2326 * basic-block.h (last_basic_block_for_function): Rename to...
2327 (last_basic_block_for_fn): ...this.
2328
2329 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2330 last_basic_block_for_function to last_basic_block_for_fn.
2331 * lto-streamer-in.c (input_cfg): Likewise.
2332 * lto-streamer-out.c (output_cfg): Likewise.
2333 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2334 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2335 Likewise.
2336
2337 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2338
2339 * basic-block.h (basic_block_info_for_function): Rename to...
2340 (basic_block_info_for_fn): ...this.
2341 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2342 (BASIC_BLOCK_FOR_FN): ...this.
2343 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2344 (SET_BASIC_BLOCK_FOR_FN): ...this.
2345
2346 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2347 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2348 * ipa-utils.c (ipa_merge_profiles): Likewise.
2349 * lto-streamer-in.c (make_new_block): Update for renaming of
2350 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2351 (input_cfg): Update for renamings.
2352 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2353 (dump_function_to_file): Update for renaming of
2354 basic_block_info_for_function to basic_block_info_for_fn.
2355
2356 2013-12-09 Richard Biener <rguenther@suse.de>
2357
2358 PR middle-end/38474
2359 * tree-ssa-structalias.c (set_union_with_increment): Remove
2360 unreachable code.
2361 (do_complex_constraint): Call set_union_with_increment with
2362 the solution delta, not the full solution.
2363 (make_transitive_closure_constraints): Merge the two constraints.
2364
2365 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
2366
2367 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
2368 more address validation checks.
2369
2370 2013-12-09 Marek Polacek <polacek@redhat.com>
2371
2372 PR sanitizer/59415
2373 * vtable-verify.c (verify_bb_vtables): Check the return value
2374 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
2375
2376 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2377
2378 * config/arm/arm.md (generic_sched): Add cortexa12.
2379 (generic_vfp): Likewise.
2380 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2381 (arm_cortex_a12_tune): New tuning struct.
2382 * config/arm/arm-cores.def: Add cortex-a12.
2383 * config/arm/arm-tables.opt: Regenerate.
2384 * config/arm/arm-tune.md: Likewise.
2385 * config/arm/bpabi.h: Add cortex-a12.
2386 * doc/invoke.texi: Document -mcpu=cortex-a12.
2387
2388 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2389
2390 * doc/install.texi (Prerequisites): Explicitly mention C library
2391 and its headers for multilib builds.
2392
2393 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
2394
2395 PR target/52898
2396 PR target/51697
2397 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2398 OPT_mcbranchdi entry.
2399 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2400 emit a warning.
2401 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2402 and TARGET_CMPEQDI_T variables.
2403 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2404
2405 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2406
2407 * config/linux.h: Fix typo in a comment.
2408
2409 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2410
2411 * config.gcc (*linux*): Split libc selection from Android support.
2412 Add libc selection to all *linux* targets. Add Android support to
2413 architectures that support it.
2414 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2415 (mips*-*-linux*): Add Android support.
2416
2417 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
2418 Maxim Kuvyrkov <maxim@kugelworks.com>
2419
2420 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2421 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2422 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2423 to linux.h.
2424 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2425 to linux.h.
2426 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2427 Define appropriately for Linux and uClinux targets.
2428
2429 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2430
2431 * config/linux.c (linux_has_ifunc_p): Use correct test.
2432
2433 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2434
2435 * config/linux.c (linux_android_has_ifunc_p): Rename to
2436 linux_has_ifunc_p.
2437 (linux_android_libc_has_function): Rename to linux_libc_has_function.
2438 * config/linux-protos.h (linux_android_has_ifunc_p,)
2439 (linux_android_libc_has_function): Update declarations.
2440 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2441 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2442
2443 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2444
2445 * linux-android.c: Rename to linux.c.
2446 * t-linux-android: Rename to t-linux. Update references
2447 to linux-android.c
2448 * config.gcc: Update references to t-linux-android and linux-android.o.
2449
2450 2013-12-07 Alan Modra <amodra@gmail.com>
2451
2452 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2453 alternative.
2454
2455 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2456
2457 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2458
2459 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
2460
2461 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2462 constraint.
2463
2464 2013-12-06 Caroline Tice <cmtice@google.com>
2465
2466 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2467 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2468 vtable pointer with the results of the verification call, rather than
2469 only the uses in the next statement.
2470
2471 2013-12-06 Andrew Pinski <apinski@cavium.com>
2472
2473 PR target/59092
2474 * config/aarch64/aarch64.md (trap): New pattern.
2475
2476 2013-12-06 Jakub Jelinek <jakub@redhat.com>
2477
2478 PR tree-optimization/59388
2479 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2480 gimplify tem after stmt rather than before it.
2481
2482 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2483 (get_references_in_stmt): Don't record operand addresses, but
2484 operands themselves.
2485 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2486 Adjust for the pos -> ref change.
2487
2488 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2489
2490 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2491
2492 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2493 (processor_alias_table): Likewise.
2494 (ix86_option_override_internal): Likewise.
2495 * config/i386/i386.h (target_cpu_default): Replace
2496 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2497
2498 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2499
2500 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2501
2502 PR target/59405
2503 * config/i386/i386.c (type_natural_mode): Properly handle
2504 size 8 for !TARGET_64BIT.
2505
2506 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2507
2508 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2509 vec::release.
2510
2511 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2512 Mark Mitchell <mark@codesourcery.com>
2513
2514 PR target/59091
2515 * config/arm/arm.md (trap): New pattern.
2516 * config/arm/types.md: Added a type for trap.
2517
2518 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2519
2520 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2521
2522 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2523
2524 PR target/59316
2525 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2526 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2527 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2528 (TARGET_BUILTIN_DECL): Define.
2529 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2530 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2531 (enum sparc_builtins): New enumeral type.
2532 (sparc_builtins): New static array.
2533 (sparc_builtins_icode): Likewise.
2534 (def_builtin): Accept a separate icode and save the result.
2535 (def_builtin_const): Likewise.
2536 (sparc_fpu_init_builtins): New function.
2537 (sparc_vis_init_builtins): Pass the builtin code.
2538 (sparc_init_builtins): Call it if TARGET_FPU.
2539 (sparc_builtin_decl): New function.
2540 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2541 (sparc_handle_vis_mul8x16): Use the builtin code.
2542 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2543 and SPARC_BUILTIN_PDISTN.
2544 (compound_expr): New helper function.
2545 (sparc_atomic_assign_expand_fenv): New function.
2546 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2547 and UNSPECV_STFSR.
2548 (flush, flushdi): Merge into single pattern.
2549 (ldfsr): New instruction.
2550 (stfsr): Likewise.
2551
2552 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2553
2554 * asan.c: Remove struct tags when referring to class varpool_node.
2555 * cgraph.h: Likewise.
2556 * cgraphbuild.c: Likewise.
2557 * cgraphunit.c: Likewise.
2558 * dbxout.c: Likewise.
2559 * dwarf2out.c: Likewise.
2560 * gimple-fold.c: Likewise.
2561 * ipa-devirt.c: Likewise.
2562 * ipa-ref-inline.h: Likewise.
2563 * ipa-ref.h: Likewise.
2564 * ipa-reference.c: Likewise.
2565 * ipa-utils.c: Likewise.
2566 * ipa.c: Likewise.
2567 * lto-cgraph.c: Likewise.
2568 * lto-streamer-out.c: Likewise.
2569 * lto-streamer.h: Likewise.
2570 * passes.c: Likewise.
2571 * toplev.c: Likewise.
2572 * tree-eh.c: Likewise.
2573 * tree-emutls.c: Likewise.
2574 * tree-pass.h: Likewise.
2575 * tree-ssa-structalias.c: Likewise.
2576 * tree-vectorizer.c: Likewise.
2577 * tree.c: Likewise.
2578 * varasm.c: Likewise.
2579 * varpool.c: Likewise.
2580
2581 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2582
2583 * cgraphunit.c: Remove struct tags when referring to class
2584 ipa_opt_pass_d or class opt_pass.
2585 * function.h: Likewise.
2586 * lto-cgraph.c: Likewise.
2587 * pass_manager.h: Likewise.
2588 * passes.c: Likewise.
2589 * tree-pass.h: Likewise.
2590
2591 2013-12-06 Richard Biener <rguenther@suse.de>
2592
2593 PR tree-optimization/59058
2594 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2595 (LOOP_VINFO_NITERSM1): New macro.
2596 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2597 the vector loop entry test in terms of scalar latch executions.
2598 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2599 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2600 number of latch executions.
2601 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2602 (vect_analyze_loop_form): Likewise.
2603 (vect_generate_tmps_on_preheader): Compute the number of
2604 vectorized iterations differently.
2605
2606 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2607
2608 * config/score/score.c (score_force_temporary): Delete function.
2609 (score_split_symbol): Ditto.
2610 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2611 parentheses to silence ambiguity warning and reindent.
2612
2613 2013-12-05 Marek Polacek <polacek@redhat.com>
2614
2615 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2616
2617 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2618
2619 * config.gcc: Support --with-cpu=ia.
2620
2621 * config/i386/i386.c (cpu_names): Add "ia".
2622 (processor_alias_table): Likewise.
2623 (ix86_option_override_internal): Disallow -march=ia.
2624 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2625
2626 * doc/invoke.texi: Document -mtune=ia.
2627
2628 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2629
2630 PR rtl-optimization/59317
2631 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2632 as a source.
2633
2634 2013-12-05 Martin Jambor <mjambor@suse.cz>
2635
2636 PR ipa/58253
2637 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2638 non-BLKmode in their naturally aligned type.
2639
2640 2013-12-05 Marek Polacek <polacek@redhat.com>
2641
2642 PR sanitizer/59333
2643 PR sanitizer/59397
2644 * ubsan.c: Include rtl.h and expr.h.
2645 (ubsan_encode_value): Add new parameter. If expanding, assign
2646 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2647 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2648 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2649 * ubsan.h (ubsan_encode_value): Adjust declaration.
2650 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2651 ubsan_build_overflow_builtin above expand_normal call. Surround
2652 this call with push_temp_slots and pop_temp_slots.
2653 (ubsan_expand_si_overflow_neg_check): Likewise.
2654 (ubsan_expand_si_overflow_mul_check): Likewise.
2655
2656 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2657
2658 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2659 the get_alternative_base call with flag_expensive_optimizations.
2660 (alloc_cand_and_find_basis): Likewise.
2661
2662 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2663
2664 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2665 vec_select for overlapping register lanes.
2666
2667 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2668
2669 * config/i386/i386.c (ix86_expand_builtin): Generate
2670 reg for readflags built-in when optimizing.
2671 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2672 (pushfl<mode>2): This. Fix iterator.
2673 (*popfl<mode>): Rename to ...
2674 (*popfl<mode>1): This. Fix iterator.
2675
2676 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2677
2678 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2679 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2680 (ix86_init_mmx_sse_builtins): Define
2681 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2682 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2683 (ix86_expand_builtin): Expand them.
2684 * config/i386/ia32intrin.h (__readeflags): New.
2685 (__writeeflags): Ditto.
2686 * config/i386/i386.md (*pushfl<mode>): Ditto.
2687 (*popfl<mode>1): Ditto.
2688
2689 2013-12-05 Richard Biener <rguenther@suse.de>
2690
2691 PR tree-optimization/59374
2692 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2693 Commonize known and unknown dependence case fixing the allowed
2694 read-write dependence case and dropping code that should not matter.
2695
2696 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2697
2698 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2699 generation of predicated version.
2700 (epilogue_deallocate_stack): Ditto.
2701 (prologue_allocate_stack_pr): Add explicit predicated version.
2702 (epilogue_deallocate_stack_pr): Ditto.
2703 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2704
2705 2013-12-05 Alan Modra <amodra@gmail.com>
2706
2707 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2708 build != host.
2709 <recursive call for build != host>: Clear GMPINC. Don't bother
2710 saving CFLAGS.
2711
2712 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2713 Marek Polacek <polacek@redhat.com>
2714
2715 * opts.c (common_handle_option): Handle
2716 -fsanitize=signed-integer-overflow.
2717 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2718 negv<mode>3, negv<mode>3_1): Define expands.
2719 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2720 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2721 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2722 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2723 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2724 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2725 PROB_ALWAYS): Define.
2726 (ubsan_build_overflow_builtin): Declare.
2727 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2728 internal functions.
2729 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2730 (ubsan_build_overflow_builtin): New function.
2731 (instrument_si_overflow): Likewise.
2732 (ubsan_pass): Add signed integer overflow checking.
2733 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2734 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2735 * internal-fn.c: Include ubsan.h and target.h.
2736 (ubsan_expand_si_overflow_addsub_check): New function.
2737 (ubsan_expand_si_overflow_neg_check): Likewise.
2738 (ubsan_expand_si_overflow_mul_check): Likewise.
2739 (expand_UBSAN_CHECK_ADD): Likewise.
2740 (expand_UBSAN_CHECK_SUB): Likewise.
2741 (expand_UBSAN_CHECK_MUL): Likewise.
2742 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2743 (-A) + B -> B - A when doing the signed integer overflow checking.
2744 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2745 Define.
2746 * tree-vrp.c (extract_range_basic): Handle internal calls.
2747 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2748 optabs.
2749 * asan.c: Include predict.h.
2750 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2751 * predict.c: Move the PROB_* macros...
2752 * predict.h (enum br_predictor): ...here.
2753 (PROB_LIKELY, PROB_UNLIKELY): Define.
2754 * trans-mem.c: Include predict.h.
2755 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2756 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2757
2758 2013-12-04 Jeff Law <law@redhat.com>
2759
2760 * common.opt: Split up -fisolate-erroneous-paths into
2761 -fisolate-erroneous-paths-dereference and
2762 -fisolate-erroneous-paths-attribute.
2763 * invoke.texi: Corresponding changes.
2764 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2765 what kind of statements can be used to infer a non-null range.
2766 * gimple.h (infer_nonnull_range): Update prototype.
2767 * tree-vrp.c (infer_value_range): Corresponding changes.
2768 * opts.c (default_options_table): Update due to option split.
2769 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2770 (find_implicit_erroneous_behaviour): Pass additional arguments
2771 to infer_nonnull_range.
2772 (find_explicit_erroneous_behaviour): Similarly.
2773 (gate_isolate_erroneous_paths): Check both of the new options.
2774
2775 2013-12-04 Jeff Law <law@redhat.com>
2776
2777 * expr.c (expand_assignment): Update comments.
2778
2779 2013-12-04 Tobias Burnus <burnus@net-b.de>
2780
2781 PR debug/37132
2782 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2783 * tree.def (NAMELIST_DECL): Add.
2784 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2785 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2786 * dwarf2out.c (gen_namelist_decl): New function.
2787 (gen_decl_die, dwarf2out_decl): Call it.
2788 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2789 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2790 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2791 call.
2792 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2793
2794 2013-12-03 Xinliang David Li <davidxl@google.com>
2795
2796 * tree-ssa-structalias.c (constraint_set_union): Change return type
2797 from void to bool.
2798 (merge_node_constraints): Ditto.
2799 (unify_nodes): Update changed set when constraints set changes.
2800
2801 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2802
2803 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2804 -fsanitize=address.
2805 * configure: Regenerated.
2806
2807 * gdbasan.in: New file.
2808
2809 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2810
2811 PR rtl-optimization/58726
2812 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2813 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2814
2815 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2816 Uros Bizjak <ubizjak@gmail.com>
2817
2818 PR target/59163
2819 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2820 !TARGET_AVX there is misaligned MEM operand with vector mode
2821 and get_attr_ssememalign is 0, return false.
2822 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2823 computed alignment and for non-temporal loads/stores also
2824 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2825 * config/i386/sse.md
2826 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2827 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2828 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2829 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2830 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2831 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2832 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2833 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2834 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2835 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2836 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2837 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2838 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2839 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2840 * config/i386/i386.md (ssememalign): New define_attr.
2841
2842 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2843
2844 PR tree-optimization/59355
2845 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2846 * opts.c (common_handle_option): Fix comment spelling.
2847
2848 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2849
2850 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2851 (name_expansions): New static variable.
2852 (alt_base_map): Ditto.
2853 (get_alternative_base): New function.
2854 (find_basis_for_candidate): For CAND_REF, optionally call
2855 find_basis_for_base_expr with the returned value from
2856 get_alternative_base.
2857 (record_potential_basis): Add new parameter 'base' of type 'tree';
2858 add an assertion of non-NULL base; use base to set node->base_expr.
2859 (alloc_cand_and_find_basis): Update; call record_potential_basis
2860 for CAND_REF with the returned value from get_alternative_base.
2861 (replace_refs): Dump details on the replacing.
2862 (execute_strength_reduction): Call pointer_map_create for
2863 alt_base_map; call free_affine_expand_cache with &name_expansions.
2864
2865 2013-12-03 Wei Mi <wmi@google.com>
2866
2867 PR rtl-optimization/59020
2868 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2869 (sched_analyze_insn): Call try_group_insn.
2870 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2871 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2872 (group_insns_for_macro_fusion): Removed.
2873 (sched_init): Remove calling group_insns_for_macro_fusion.
2874
2875 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2876
2877 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2878 typo in macro name.
2879 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2880
2881 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2882
2883 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2884 LR_REGNUM.
2885 (aarch64_can_eliminate): Don't check elimination source when
2886 frame_pointer_required is false.
2887
2888 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2889
2890 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2891 position independent code.
2892 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2893
2894 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2895
2896 PR target/59363
2897 * config/i386/i386.c (emit_memset): Adjust destination address
2898 after gen_strset.
2899 (expand_setmem_epilogue): Likewise.
2900
2901 2013-12-03 Marek Polacek <polacek@redhat.com>
2902
2903 PR middle-end/56344
2904 * calls.c (expand_call): Disallow passing huge arguments by value.
2905
2906 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2907
2908 PR tree-optimization/59362
2909 * tree-object-size.c (object_sizes): Change into array of
2910 vec<unsigned HOST_WIDE_INT>.
2911 (compute_builtin_object_size): Check computed bitmap for
2912 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2913 vector if new SSA_NAMEs appeared.
2914 (init_object_sizes): Check computed bitmap for non-NULL.
2915 Call safe_grow on object_sizes elements instead of initializing
2916 it with XNEWVEC.
2917 (fini_object_sizes): Call release on object_sizes elements, don't
2918 set it to NULL.
2919
2920 PR middle-end/59011
2921 * gimplify.c (nonlocal_vla_vars): New variable.
2922 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2923 nonlocal_vla_vars chain.
2924 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2925 if outer_bind has DECL_INITIAL (current_function_decl) block.
2926
2927 PR target/58864
2928 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2929 New functions.
2930 * expr.h (struct saved_pending_stack_adjust): New type.
2931 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2932 prototypes.
2933 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2934 and get_last_insn before do_pending_stack_adjust, call
2935 restore_pending_stack_adjust after delete_insns_since.
2936 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2937 before calling emit_conditional_move.
2938 * expmed.c (expand_sdiv_pow2): Likewise.
2939 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2940
2941 2013-12-02 Jeff Law <law@redhat.com>
2942
2943 PR tree-optimization/59322
2944 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2945 Remove code which copied jump threading paths.
2946
2947 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2948
2949 PR target/58944
2950 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2951 for saving in cl_target_option.
2952 (ix86_tune_string): Ditto.
2953 (ix86_cmodel): Ditto.
2954 (ix86_abi): Ditto.
2955 (ix86_asm_dialect): Ditto.
2956 (ix86_branch_cost): Ditto.
2957 (ix86_dump_tunes): Ditto.
2958 (ix86_force_align_arg_pointer): Ditto.
2959 (ix86_force_drap): Ditto.
2960 (ix86_incoming_stack_boundary_arg): Ditto.
2961 (ix86_pmode): Ditto.
2962 (ix86_preferred_stack_boundary_arg): Ditto.
2963 (ix86_recip_name): Ditto.
2964 (ix86_regparm): Ditto.
2965 (ix86_section_threshold): Ditto.
2966 (ix86_sse2avx): Ditto.
2967 (ix86_stack_protector_guard): Ditto.
2968 (ix86_stringop_alg): Ditto.
2969 (ix86_tls_dialect): Ditto.
2970 (ix86_tune_ctrl_string): Ditto.
2971 (ix86_tune_memcpy_strategy): Ditto.
2972 (ix86_tune_memset_strategy): Ditto.
2973 (ix86_tune_no_default): Ditto.
2974 (ix86_veclibabi_type): Ditto.
2975 * config/i386/i386.c (function_specific_save): Save the above
2976 variables in gcc_options to cl_target_option.
2977 (function_specific_restore): Do the reverse done in
2978 function_specific_save.
2979 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2980 and ix86_tune_string to use the opts structure.
2981 (ix86_option_override_internal):Change
2982 ix86_incoming_stack_boundary_arg to
2983 opts->x_ix86_incoming_stack_boundary_arg
2984
2985 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2986
2987 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2988 in #ifndef IN_LIBGCC2 / #endif.
2989
2990 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2991
2992 PR tree-optimization/59358
2993 * tree-vrp.c (union_ranges): To check for the partially overlapping
2994 ranges or adjacent ranges, also compare *vr0max with vr1max.
2995
2996 2013-12-02 Sterling Augustine  <saugustine@google.com>
2997
2998 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2999 when there isn't a skeleton die.
3000
3001 2013-12-02 Marek Polacek <polacek@redhat.com>
3002
3003 PR sanitizer/59353
3004 * doc/invoke.texi: Document -fsanitize=return.
3005
3006 2013-12-02 Tobias Burnus <burnus@net-b.de>
3007 Manuel López-Ibáñez <manu@gcc.gnu.org>
3008
3009 PR middle-end/59257
3010 * doc/invoke.texi: Add missing @opindex.
3011 (-fsanitize=): Use @gcctabopt instead of @itemize.
3012
3013 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3014
3015 Fix C++0x memory model for unaligned fields in packed, aligned(4)
3016 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
3017 targets like arm-none-eabi.
3018 * expr.c (expand_assignment): Handle normal fields like bit regions.
3019
3020 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3021
3022 PR target/58115
3023 * function.c (invoke_set_current_function_hook): Call
3024 targetm.set_current_function after setting this_fn_optabs.
3025
3026 2013-12-02 Richard Biener <rguenther@suse.de>
3027
3028 PR tree-optimization/59139
3029 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3030 code in get_val_for.
3031 (get_val_for): Use gcc_checking_asserts.
3032
3033 2013-12-02 Richard Biener <rguenther@suse.de>
3034
3035 PR middle-end/59199
3036 * tree-ssa-operands.c (opf_implicit): Remove.
3037 (opf_address_taken): New flag.
3038 (get_expr_operands): Remove early out, pass down opf_address_taken for
3039 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3040 (get_indirect_ref_operands): Rename to ...
3041 (get_mem_ref_operands): ... this.
3042 (get_asm_expr_operands): Rename to ...
3043 (get_asm_stmt_operands): ... this.
3044
3045 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3046
3047 * ipa-inline.c (check_callers): Add missed pointer de-reference.
3048
3049 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
3050
3051 PR tree-optimization/59356
3052 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3053 offset computation using the precision of the index type.
3054
3055 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
3056
3057 PR target/58785
3058 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3059 when rclass is GENERAL_REGS.
3060
3061 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3062
3063 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3064 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3065
3066 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
3067
3068 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3069 identifier node.
3070
3071 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3072
3073 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3074
3075 2013-11-30 Paulo Matos <pmatos@broadcom.com>
3076 Eric Botcazou <ebotcazou@adacore.com>
3077
3078 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3079 as applied to nonzero_sign_valid when last_set_mode has less precision
3080 than mode.
3081
3082 2013-11-30 Tobias Burnus <burnus@net-b.de>
3083
3084 PR sanitizer/59275
3085 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3086 environment variable and link to a list with flags.
3087 (-fsanitize=thread): Ditto and update link.
3088
3089 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
3090
3091 PR rtl-optimization/59340
3092 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3093
3094 Revert
3095 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3096
3097 * lra.c (lra): Set lra_in_progress before check_rtl call.
3098 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3099 adding clobber regs when LRA is running.
3100
3101 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3102
3103 PR target/59289
3104 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3105
3106 2013-11-29 Richard Biener <rguenther@suse.de>
3107
3108 PR middle-end/59208
3109 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3110 free_stmt_operands, update_stmt_operands): Add struct function
3111 argument.
3112 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3113 function argument from fini_ssa_operands, verify_ssa_operands,
3114 free_stmt_operands and update_stmt_operands everywhere.
3115 * tree-ssanames.h (release_ssa_name_fn): New.
3116 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3117 * tree-ssanames.c (release_ssa_name): Rename to ...
3118 (release_ssa_name_fn): ... this and add struct function argument.
3119 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3120 (update_stmt_fn): New function.
3121 * tree-cfg.c (move_block_to_fn): Adjust.
3122 * tree-if-conv.c (free_bb_predicate): Likewise.
3123 * tree-ssa.c (verify_ssa): Likewise.
3124 (delete_tree_ssa): Likewise.
3125 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3126 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3127 update_stmt_fn instead of update_stmt.
3128
3129 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3130
3131 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3132 for LRA.
3133
3134 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3135
3136 * config/arm/arm.md (store_minmaxsi): Use only when
3137 optimize_function_for_size_p.
3138
3139 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3140 Yury Gribov <y.gribov@samsung.com>
3141
3142 PR sanitizer/59063
3143 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3144 * gcc.c: Using libsanitizer spec instead of explicit libs.
3145
3146 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
3147
3148 Reverted:
3149 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3150 * cgraph.h (varpool_node): Add need_bounds_init field.
3151 * lto-cgraph.c (lto_output_varpool_node): Output
3152 need_bounds_init value.
3153 (input_varpool_node): Read need_bounds_init value.
3154 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3155
3156 Reverted:
3157 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3158 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3159 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3160 (gen_type_die_with_usage): Skip pointer bounds.
3161 (dwarf2out_global_decl): Likewise.
3162
3163 Reverted:
3164 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3165 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3166 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3167 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3168 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3169 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3170 (gimple_call_with_bounds_p): New.
3171 (gimple_call_set_with_bounds): New.
3172 (gimple_call_num_nobnd_args): Remove.
3173 (gimple_call_nobnd_arg): Remove.
3174 * tree.h (CALL_WITH_BOUNDS_P): New.
3175 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3176
3177 Reverted:
3178 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3179 * common.opt (fcheck-pointer-bounds): Move to ...
3180 * c-family/c.opt: ... here.
3181 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3182 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3183 * langhooks.h (lang_hooks): Remove chkp_supported field.
3184 * toplev.c (process_options): Remove chkp_supported check.
3185
3186 Reverted:
3187 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3188 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3189 * tree.h (POINTER_BOUNDS_P): New.
3190 (BOUNDED_TYPE_P): New.
3191 (BOUNDED_P): New.
3192 (pointer_bounds_type_node): New.
3193 * tree.c (build_common_tree_nodes): Initialize
3194 pointer_bounds_type_node.
3195 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3196 (gimple_call_num_nobnd_args): New.
3197 (gimple_call_nobnd_arg): New.
3198 (gimple_return_retbnd): New.
3199 (gimple_return_set_retbnd): New
3200 * gimple.c (gimple_build_return): Increase number of ops
3201 for return statement.
3202 (gimple_call_get_nobnd_arg_index): New.
3203 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3204
3205 Reverted:
3206 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3207 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3208 with "chkp ctor" and "bnd_legacy" attributes.
3209 * gimplify.c (gimplify_init_constructor): Avoid infinite
3210 loop during gimplification of bounds initializer.
3211
3212 Reverted:
3213 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3214 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3215 (handle_bnd_legacy): New.
3216 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3217 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3218 attributes.
3219
3220 Reverted:
3221 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3222 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3223 (BT_FN_PTR_CONST_PTR): New.
3224 (BT_FN_CONST_PTR_CONST_PTR): New.
3225 (BT_FN_PTR_CONST_PTR_SIZE): New.
3226 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3227 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3228 (BT_FN_VOID_CONST_PTR_SIZE): New.
3229 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3230 * chkp-builtins.def: New.
3231 * builtins.def: include chkp-builtins.def.
3232 (DEF_CHKP_BUILTIN): New.
3233 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3234 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3235 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3236 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3237 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3238 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3239 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3240 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3241 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3242 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3243 * common.opt (fcheck-pointer-bounds): New.
3244 * toplev.c (process_options): Check Pointer Bounds Checker is
3245 supported.
3246 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3247
3248 Reverted:
3249 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3250 * target.def (builtin_chkp_function): New.
3251 (chkp_bound_type): New.
3252 (chkp_bound_mode): New.
3253 (fn_abi_va_list_bounds_size): New.
3254 (load_bounds_for_arg): New.
3255 (store_bounds_for_arg): New.
3256 * targhooks.h (default_load_bounds_for_arg): New.
3257 (default_store_bounds_for_arg): New.
3258 (default_fn_abi_va_list_bounds_size): New.
3259 (default_chkp_bound_type): New.
3260 (default_chkp_bound_mode): New.
3261 (default_builtin_chkp_function): New.
3262 * targhooks.c (default_load_bounds_for_arg): New.
3263 (default_store_bounds_for_arg): New.
3264 (default_fn_abi_va_list_bounds_size): New.
3265 (default_chkp_bound_type): New.
3266 (default_chkp_bound_mode); New.
3267 (default_builtin_chkp_function): New.
3268 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3269 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3270 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3271 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3272 (TARGET_CHKP_BOUND_TYPE): New.
3273 (TARGET_CHKP_BOUND_MODE): New.
3274 * doc/tm.texi: Regenerated.
3275 * langhooks.h (lang_hooks): Add chkp_supported field.
3276 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3277 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3278
3279 Reverted:
3280 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3281 * config/i386/constraints.md (B): New.
3282 (Ti): New.
3283 (Tb): New.
3284 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3285 * config/i386/i386-modes.def (BND32): New.
3286 (BND64): New.
3287 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3288 * config/i386/i386.c (isa_opts): Add mmpx.
3289 (regclass_map): Add bound registers.
3290 (dbx_register_map): Likewise.
3291 (dbx64_register_map): Likewise.
3292 (svr4_dbx_register_map): Likewise.
3293 (PTA_MPX): New.
3294 (ix86_option_override_internal): Support MPX ISA.
3295 (ix86_conditional_register_usage): Support bound registers.
3296 (print_reg): Likewise.
3297 (ix86_code_end): Add MPX bnd prefix.
3298 (output_set_got): Likewise.
3299 (ix86_output_call_insn): Likewise.
3300 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3301 (ix86_print_operand_punct_valid_p): Likewise.
3302 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3303 UNSPEC_BNDMK_ADDR.
3304 (ix86_class_likely_spilled_p): Add bound regs support.
3305 (ix86_hard_regno_mode_ok): Likewise.
3306 (x86_order_regs_for_local_alloc): Likewise.
3307 (ix86_bnd_prefixed_insn_p): New.
3308 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3309 (FIXED_REGISTERS): Add bound registers.
3310 (CALL_USED_REGISTERS): Likewise.
3311 (REG_ALLOC_ORDER): Likewise.
3312 (HARD_REGNO_NREGS): Likewise.
3313 (TARGET_MPX): New.
3314 (VALID_BND_REG_MODE): New.
3315 (FIRST_BND_REG): New.
3316 (LAST_BND_REG): New.
3317 (reg_class): Add BND_REGS.
3318 (REG_CLASS_NAMES): Likewise.
3319 (REG_CLASS_CONTENTS): Likewise.
3320 (BND_REGNO_P): New.
3321 (ANY_BND_REG_P): New.
3322 (BNDmode): New.
3323 (HI_REGISTER_NAMES): Add bound registers.
3324 * config/i386/i386.md (UNSPEC_BNDMK): New.
3325 (UNSPEC_BNDMK_ADDR): New.
3326 (UNSPEC_BNDSTX): New.
3327 (UNSPEC_BNDLDX): New.
3328 (UNSPEC_BNDLDX_ADDR): New.
3329 (UNSPEC_BNDCL): New.
3330 (UNSPEC_BNDCU): New.
3331 (UNSPEC_BNDCN): New.
3332 (UNSPEC_MPX_FENCE): New.
3333 (BND0_REG): New.
3334 (BND1_REG): New.
3335 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3336 (length_immediate): Likewise.
3337 (prefix_0f): Likewise.
3338 (memory): Likewise.
3339 (prefix_rep): Check for bnd prefix.
3340 (length_nobnd): New.
3341 (length): Use length_nobnd if specified.
3342 (BND): New.
3343 (bnd_ptr): New.
3344 (BNDCHECK): New.
3345 (bndcheck): New.
3346 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3347 (*jcc_2): Likewise.
3348 (jump): Likewise.
3349 (simple_return_internal): Likewise.
3350 (simple_return_pop_internal): Likewise.
3351 (*indirect_jump): Add MPX bnd prefix.
3352 (*tablejump_1): Likewise.
3353 (simple_return_internal_long): Likewise.
3354 (simple_return_indirect_internal): Likewise.
3355 (<mode>_mk): New.
3356 (*<mode>_mk): New.
3357 (mov<mode>): New.
3358 (*mov<mode>_internal_mpx): New.
3359 (<mode>_<bndcheck>): New.
3360 (*<mode>_<bndcheck>): New.
3361 (<mode>_ldx): New.
3362 (*<mode>_ldx): New.
3363 (<mode>_stx): New.
3364 (*<mode>_stx): New.
3365 * config/i386/predicates.md (lea_address_operand): Rename to...
3366 (address_no_seg_operand): ... this.
3367 (address_mpx_no_base_operand): New.
3368 (address_mpx_no_index_operand): New.
3369 (bnd_mem_operator): New.
3370 * config/i386/i386.opt (mmpx): New.
3371 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3372 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3373
3374 Reverted:
3375 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3376 * mode-classes.def (MODE_POINTER_BOUNDS): New.
3377 * tree.def (POINTER_BOUNDS_TYPE): New.
3378 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3379 (POINTER_BOUNDS_MODE): New.
3380 (make_pointer_bounds_mode): New.
3381 * machmode.h (POINTER_BOUNDS_MODE_P): New.
3382 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3383 (layout_type): Support POINTER_BOUNDS_TYPE.
3384 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3385 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3386 (type_contains_placeholder_1): Likewise.
3387 * tree.h (POINTER_BOUNDS_TYPE_P): New.
3388 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3389 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3390
3391 2013-11-29 Richard Biener <rguenther@suse.de>
3392
3393 PR middle-end/59338
3394 * tree-cfg.c (verify_expr): Restrict bounds verification of
3395 BIT_FIELD_REF arguments to non-aggregate typed base objects.
3396
3397 2013-11-29 Richard Biener <rguenther@suse.de>
3398
3399 PR tree-optimization/59334
3400 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3401 in previous commit.
3402
3403 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3404 Richard Biener <rguenther@suse.de>
3405
3406 PR lto/59326
3407 * omp-low.c (simd_clone_create): Return NULL if for definition
3408 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
3409 before calling cgraph_function_versioning.
3410 (expand_simd_clones): Look for "omp declare simd" attribute first.
3411 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3412 Punt if node->global.inlined_to.
3413 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3414 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3415 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3416
3417 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3418
3419 PR lto/59326
3420 * tree-core.h (enum omp_clause_schedule_kind): Add
3421 OMP_CLAUSE_SCHEDULE_LAST.
3422 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3423 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3424 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3425 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3426 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3427 (DFS_write_tree_body): Handle OMP_CLAUSE.
3428 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3429 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3430 (write_ts_omp_clause_tree_pointers): New function.
3431 (streamer_write_tree_body): Call it for OMP_CLAUSE.
3432 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3433 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3434 (unpack_value_fields): Call it for OMP_CLAUSE.
3435 (streamer_alloc_tree): Handle OMP_CLAUSE.
3436 (lto_input_ts_omp_clause_tree_pointers): New function.
3437 (streamer_read_tree_body): Call it for OMP_CLAUSE.
3438
3439 2013-11-29 Joseph Myers <joseph@codesourcery.com>
3440
3441 * doc/implement-c.texi: Document C11 implementation-defined
3442 behavior. Refer to -ffp-contract=fast for contraction behavior.
3443 * doc/invoke.texi (-std=c99, std=c11): Update description of
3444 completeness.
3445 (-std=gnu99): Don't mention as future default.
3446 (-std=gnu11): Mention as intended future default.
3447 * doc/standards.texi: Update descriptions of C99 and C11 support.
3448 Limit statement about C99 facilities for freestanding
3449 implementations to some platforms only.
3450
3451 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3452
3453 PR middle-end/59327
3454 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3455
3456 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
3457
3458 PR target/57293
3459 * ira.h (ira_setup_eliminable_regset): Remove parameter.
3460 * ira.c (ira_setup_eliminable_regset): Ditto. Add
3461 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3462 Don't call lra_init_elimination.
3463 (ira): Call ira_setup_eliminable_regset without arguments.
3464 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3465 from ira_setup_eliminable_regset call.
3466 * gcse.c (calculate_bb_reg_pressure): Ditto.
3467 * haifa-sched.c (sched_init): Ditto.
3468 * lra.h (lra_init_elimination): Remove the prototype.
3469 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
3470 used_insn_alternative upper.
3471 (lra_eliminate_regs_1): Add one more parameter.
3472 (lra-eliminate): Ditto.
3473 * lra.c (lra_invalidate_insn_data): Set sp_offset.
3474 (setup_sp_offset): New.
3475 (lra_process_new_insns): Call setup_sp_offset.
3476 (lra): Add argument to lra_eliminate calls.
3477 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3478 (get_equiv_with_elimination): New.
3479 (process_addr_reg): Call get_equiv_with_elimination instead of
3480 get_equiv_substitution.
3481 (equiv_address_substitution): Ditto.
3482 (loc_equivalence_change_p): Ditto.
3483 (loc_equivalence_callback, lra_constraints): Ditto.
3484 (curr_insn_transform): Ditto. Print the sp offset
3485 (process_alt_operands): Prevent stack pointer reloads.
3486 (lra_constraints): Remove one argument from lra_eliminate call.
3487 Move it up. Mark used hard regs bfore it. Use
3488 get_equiv_with_elimination instead of get_equiv_substitution.
3489 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3490 assert for param values combination. Use sp offset. Add argument
3491 to lra_eliminate_regs_1 calls.
3492 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3493 (curr_sp_change): New static var.
3494 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3495 Don't prevent elimination to sp if we can calculate its change.
3496 Pass the argument to mark_not_eliminable calls.
3497 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3498 argument to lra_eliminate_regs_1 call.
3499 (update_reg_eliminate): Move calculation of hard regs for spill
3500 lower. Switch off lra_in_progress temporarily to generate regs
3501 involved into elimination.
3502 (lra_init_elimination): Rename to init_elimination. Make it
3503 static. Set up insn sp offset, check the offsets at the end of BBs.
3504 (process_insn_for_elimination): Add parameter. Pass its value to
3505 eliminate_regs_in_insn.
3506 (lra_eliminate): : Add parameter. Pass its value to
3507 process_insn_for_elimination. Add assert for param values
3508 combination. Call init_elimination. Don't update offsets in
3509 equivalence substitutions.
3510 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3511 for created stack slot.
3512 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3513 onto stack slot.
3514
3515 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3516
3517 * config/arm/iterators.md (vrint_conds): New int attribute.
3518 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3519 (smax<mode>3): Likewise.
3520 (smin<mode>3): Likewise.
3521
3522 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3523
3524 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3525 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3526 * tree-ssanames.h (set_range_info): Add range_type argument.
3527 (duplicate_ssa_name_range_info): Likewise.
3528 * tree-ssanames.c (set_range_info): Take the range type as argument
3529 and store it in SSA_NAME_ANTI_RANGE_P.
3530 (duplicate_ssa_name_range_info): Likewise.
3531 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3532 (set_nonzero_bits): Update call to set_range_info.
3533 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3534 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3535 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3536 (vrp_finalize): Likewise, passing anti-ranges directly.
3537
3538 2013-11-28 Richard Biener <rguenther@suse.de>
3539
3540 PR tree-optimization/59330
3541 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3542 and fix delayed marking of free calls not necessary.
3543
3544 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3545
3546 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3547 is_gimple_reg_type.
3548 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3549
3550 2013-11-28 Terry Guo <terry.guo@arm.com>
3551
3552 * config/arm/arm.c (v7m_extra_costs): New table.
3553 (arm_v7m_tune): Use it.
3554
3555 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3556
3557 * config/sol2.h (TIME_LIBRARY): Define.
3558
3559 2013-11-28 Richard Biener <rguenther@suse.de>
3560
3561 PR lto/59323
3562 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3563 CONST_DECLs in function context are not indexable.
3564
3565 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3566
3567 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3568 not optimized for size.
3569
3570 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3571
3572 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3573 fields.
3574 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3575 data->asan_base as base for vars and update asan_alignb.
3576 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3577 Pass them to asan_emit_stack_protection.
3578 * asan.c (asan_detect_stack_use_after_return): New variable.
3579 (asan_emit_stack_protection): Add pbase and alignb arguments.
3580 Implement use after return sanitization.
3581 * asan.h (asan_emit_stack_protection): Adjust prototype.
3582 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3583
3584 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3585
3586 * common.opt: Introduced a new option -fsimd-cost-model.
3587 * doc/invoke.texi: Introduced a new openmp-simd warning and
3588 a new -fsimd-cost-model option.
3589 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3590 to rely on the particular loop info.
3591 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3592 (vect_peeling_hash_choose_best_peeling): Ditto.
3593 (vect_enhance_data_refs_alignment): Ditto.
3594 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3595 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3596 plus added openmp-simd warining.
3597
3598 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3599
3600 PR rtl-optimization/59311
3601 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3602 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3603
3604 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3605
3606 * var-tracking.c (track_expr_p): Do not track declarations for parts
3607 of tracked parameters.
3608 (add_stores): Do not track values for tracked parameters passed in
3609 multiple locations.
3610 (vt_get_decl_and_offset): Handle PARALLEL.
3611 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3612
3613 2013-11-27 Jeff Law <law@redhat.com>
3614
3615 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3616 clobber the loop structure thread_block was unsuccessful. If
3617 thread_block was unsuccessful, cleanup appropriately.
3618
3619 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3620
3621 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3622 (score_char_to_class): Likewise.
3623
3624 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3625
3626 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3627 the overflow bit set.
3628
3629 2013-11-27 Richard Biener <rguenther@suse.de>
3630
3631 PR middle-end/58723
3632 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3633 for internal calls.
3634 (rebuild_cgraph_edges): Likewise.
3635 * ipa-inline-analysis.c (estimate_function_body_sizes):
3636 Skip internal calls.
3637 * tree-inline.c (estimate_num_insns): Estimate size of internal
3638 calls as 0.
3639 (gimple_expand_calls_inline): Do not try inline-expanding
3640 internal calls.
3641 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3642 force_vect and simduid.
3643 (input_struct_function_base): Stream has_force_vect_loops
3644 and has_simduid_loops.
3645 (input_function): Adjust.
3646 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3647 force_vect and simduid.
3648 (output_struct_function_base): Stream has_force_vect_loops
3649 and has_simduid_loops.
3650
3651 2013-11-27 Kai Tietz <ktietz@redhat.com>
3652
3653 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3654 pointer cast.
3655
3656 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3657
3658 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3659 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3660
3661 2013-11-27 Marek Polacek <polacek@redhat.com>
3662
3663 PR sanitizer/59306
3664 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3665 instead of walk_gimple_op.
3666 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3667
3668 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3669 Jakub Jelinek <jakub@redhat.com>
3670
3671 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3672 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3673 (struct cgraph_node): Add simdclone and simd_clones fields.
3674 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3675 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3676 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3677 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3678 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3679 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3680 * doc/tm.texi: Regenerated.
3681 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3682 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3683 attribute is present.
3684 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3685 (simd_clone_vector_of_formal_parm_types): New function.
3686 (simd_clone_struct_alloc, simd_clone_struct_copy,
3687 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3688 simd_clone_compute_base_data_type, simd_clone_mangle,
3689 simd_clone_create, simd_clone_adjust_return_type,
3690 create_tmp_simd_array, simd_clone_adjust_argument_types,
3691 simd_clone_init_simd_arrays): New functions.
3692 (struct modify_stmt_info): New type.
3693 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3694 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3695 functions.
3696 (pass_data_omp_simd_clone): New variable.
3697 (pass_omp_simd_clone): New class.
3698 (make_pass_omp_simd_clone): New function.
3699 * passes.def (pass_omp_simd_clone): New.
3700 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3701 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3702 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3703 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3704 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3705 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3706 * tree-vect-data-refs.c: Include cgraph.h.
3707 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3708 and find_data_references_in_bb, if find_data_references_in_stmt
3709 fails, still allow calls to #pragma omp declare simd functions
3710 in #pragma omp simd loops unless they contain data references among
3711 the call arguments or in lhs.
3712 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3713 calls with no lhs.
3714 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3715 without lhs.
3716 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3717 call_simd_clone_vec_info_type.
3718 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3719 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3720 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3721 tree-scalar-evolution.h and cgraph.h.
3722 (vectorizable_call): Handle calls without lhs. Assert
3723 !stmt_can_throw_internal instead of failing for it. Don't update
3724 EH stuff.
3725 (struct simd_call_arg_info): New.
3726 (vectorizable_simd_clone_call): New function.
3727 (vect_transform_stmt): Call it.
3728 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3729 calls without lhs.
3730 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3731 if cgraph_function_with_gimple_body_p is true.
3732
3733 2013-11-27 Tom de Vries <tom@codesourcery.com>
3734 Marc Glisse <marc.glisse@inria.fr>
3735
3736 PR middle-end/59037
3737 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3738 BIT_FIELD_REF.
3739 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3740 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3741 out-of-bounds.
3742
3743 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3744
3745 PR middle-end/59138
3746 * expr.c (emit_group_store): Don't write past the end of the structure.
3747 (store_bit_field): Fix formatting.
3748
3749 2013-11-27 Richard Biener <rguenther@suse.de>
3750
3751 PR tree-optimization/59288
3752 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3753 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3754
3755 2013-11-27 Marek Polacek <polacek@redhat.com>
3756
3757 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3758 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3759 rather than ADDR_EXPRs.
3760
3761 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3762
3763 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3764
3765 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3766
3767 * gengtype.c (struct seen_tag): New.
3768 (already_seen_tag): New.
3769 (mark_tag_as_seen): New.
3770 (walk_subclasses): Support having multiple subclasses using the
3771 same tag by tracking which tags have already been seen, and using
3772 this to avoid adding duplicate cases to the "switch" statement.
3773 The call to already_seen_tag introduces an O(N^2) when running
3774 gengtype on N, the number of tags, due to the repeated linear
3775 search, but currently max(N) is relatively small (the number of
3776 GSS codes, which is 26).
3777 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3778 recursion.
3779
3780 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3781 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3782 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3783 GIMPLE_OMP_RETURN happens to share the data layout of
3784 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3785 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3786 underlying GSS value from GSS_OMP_PARALLEL to
3787 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3788 not directly related; they merely share in-memory layout.
3789 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3790 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3791
3792 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3793 Rename to...
3794 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3795 ...these.
3796 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3797 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3798 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3799 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3800 ...these.
3801
3802 * gimple.h (gimple_statement_resx): New subclass of
3803 gimple_statement_eh_ctrl, with the invariant that
3804 stmt->code == GIMPLE_RESX.
3805 (gimple_statement_eh_dispatch): New subclass of
3806 gimple_statement_eh_ctrl, with the invariant that
3807 stmt->code == GIMPLE_EH_DISPATH.
3808
3809 (gimple_statement_omp_parallel): The existing class expressed
3810 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3811 are not all related, so it makes more sense for this class to
3812 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3813 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3814 rename the existing gimple_statement_omp_parallel class to...
3815 (gimple_statement_omp_parallel_layout): ...this, expressing
3816 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3817 (gimple_statement_omp_taskreg): New subclass of
3818 gimple_statement_omp_parallel_layout, expressing the invariant
3819 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3820 as used by the various gimple_omp_taskreg_ accessors.
3821 (gimple_statement_omp_parallel): Reintroduce this class, this time
3822 as a subclass of gimple_statement_omp_taskreg to express the
3823 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3824 (gimple_statement_omp_target) New class, subclassing
3825 gimple_statement_omp_parallel_layout, to express the invariant
3826 stmt->code == GIMPLE_OMP_TARGET.
3827 (gimple_statement_omp_task): Update to inherit from
3828 gimple_statement_omp_taskreg rather than
3829 gimple_statement_omp_parallel.
3830
3831 (gimple_statement_omp_single): Rename to...
3832 (gimple_statement_omp_single_layout): ...this, expressing the
3833 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3834 (gimple_statement_omp_single): ...and reintroduce this name as
3835 a subclass of gimple_statement_omp_single_layout, expressing
3836 the invariant that code == GIMPLE_OMP_SINGLE.
3837 (gimple_statement_omp_teams): New class, subclassing
3838 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3839
3840 (gimple_statement_omp_atomic_store): Rename to...
3841 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3842 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3843 (gimple_statement_omp_atomic_store): ...and reintroduce this
3844 name as a subclass of gimple_statement_omp_atomic_store_layout
3845 with code == GIMPLE_OMP_ATOMIC_STORE.
3846 (gimple_statement_omp_return): New class, subclassing
3847 gimple_statement_omp_atomic_store_layout for the code
3848 GIMPLE_OMP_RETURN.
3849
3850 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3851 (is_a_helper <gimple_statement_resx>::test): New.
3852 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3853 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3854 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3855 (is_a_helper <gimple_statement_omp_return>::test): New.
3856 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3857 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3858 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3859 GIMPLE_OMP_TARGET.
3860 (is_a_helper <gimple_statement_omp_target>::test): New.
3861 (is_a_helper <gimple_statement_omp_single>::test): Only check
3862 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3863 (is_a_helper <gimple_statement_omp_teams>::test): New.
3864
3865 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3866 (is_a_helper <const gimple_statement_resx>::test): New.
3867 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3868 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3869 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3870 (is_a_helper <const gimple_statement_omp_return>::test): New.
3871 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3872 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3873 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3874 GIMPLE_OMP_TARGET.
3875 (is_a_helper <const gimple_statement_omp_target>::test): New.
3876 (is_a_helper <const gimple_statement_omp_single>::test): Only
3877 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3878 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3879
3880 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3881 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3882 gimple_statement_omp_atomic_store with downcasts to
3883 gimple_statement_omp_return, thus requiring that the code be
3884 GIMPLE_OMP_RETURN.
3885 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3886 downcasts to gimple_statement_eh_ctrl with downcasts to
3887 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3888 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3889 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3890 downcasts to gimple_statement_eh_dispatch, thus requiring that
3891 the code be GIMPLE_EH_DISPATCH.
3892 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3893 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3894 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3895 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3896 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3897 gimple_statement_omp_parallel with downcasts to
3898 gimple_statement_omp_taskreg, thus requiring that the code be
3899 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3900 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3901 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3902 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3903 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3904 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3905 gimple_statement_omp_parallel with downcasts to
3906 gimple_statement_omp_target, thus requiring that the code be
3907 GIMPLE_OMP_TARGET.
3908 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3909 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3910 gimple_statement_omp_single with downcasts to
3911 gimple_statement_omp_teams, thus requiring that the code be
3912 GIMPLE_OMP_TEAMS.
3913
3914 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3915 gimple_statement_resx.
3916 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3917 gimple_statement_eh_dispatch.
3918
3919 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3920
3921 PR tree-optimization/59014
3922 * tree-vrp.c (register_edge_assert_for_1): Don't look
3923 through conversions from non-integral types or through
3924 narrowing conversions.
3925
3926 PR target/59229
3927 * config/i386/i386.c (device_alg): Fix up formatting.
3928 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3929 similarly to count && count < epilogue_size_needed. Fix up
3930 comment typo.
3931 * builtins.c (determine_block_size): Fix comment typo.
3932
3933 PR sanitizer/59258
3934 * ubsan.c (ubsan_source_location): Don't add any location
3935 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3936 (ubsan_create_data): Strip block info from LOC.
3937
3938 PR middle-end/59273
3939 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3940 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3941
3942 PR rtl-optimization/59166
3943 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3944 DF_REF_LOC in validate_change call.
3945 (split_live_ranges_for_shrink_wrap): Likewise.
3946
3947 PR middle-end/59150
3948 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3949 of references to constant size types in simd loops, defer emitting
3950 initializer for the new_var, emit it later on only if not using
3951 SIMD arrays for it.
3952
3953 PR middle-end/59152
3954 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3955 for the inner loop if collapse_bb is non-NULL.
3956 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3957
3958 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3959
3960 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3961 a constant immediate before force_reg.
3962
3963 2013-11-26 Richard Biener <rguenther@suse.de>
3964
3965 PR tree-optimization/59245
3966 * tree-vrp.c (set_value_range): Assert that we don't have
3967 overflowed constants (but our infinities).
3968 (set_value_range_to_value): Drop all overflow flags.
3969 (vrp_visit_phi_node): Likewise.
3970 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3971 to set a constant range.
3972
3973 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3974
3975 PR target/59290
3976 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3977 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3978 for zero_extend case.
3979
3980 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3981
3982 PR bootstrap/55552
3983 * configure.ac (install_gold_as_default): New. Set to yes for
3984 --disable-ld or --enable-gold=default.
3985 (gcc_cv_ld_gold_srcdir): New.
3986 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3987 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3988 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3989 * configure: Regenerated.
3990
3991 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3992 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3993 (original) [collect-ld && -fuse-ld=bfd]: Set to
3994 $ORIGINAL_LD_BFD_FOR_TARGET.
3995 (original) [collect-ld && -fuse-ld=gold]: Set to
3996 $ORIGINAL_LD_GOLD_FOR_TARGET.
3997 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3998 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3999
4000 2013-11-26 Terry Guo <terry.guo@arm.com>
4001
4002 * config/arm/arm.c (require_pic_register): Handle high pic base
4003 register for thumb-1.
4004 (arm_load_pic_register): Also initialize high pic base register.
4005 * doc/invoke.texi: Update documentation for option -mpic-register.
4006
4007 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
4008
4009 PR target/58314
4010 PR target/50751
4011 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
4012 Prefix function names with 'sh_'. Make them non-static.
4013 * config/sh/sh-protos.h (sh_disp_addr_displacement,
4014 sh_max_mov_insn_displacement): Add declarations.
4015 * config/sh/constraints.md (Q): Reject QImode.
4016 (Sdd): Use match_code "mem".
4017 (Snd): Fix erroneous matching of non-memory operands.
4018 * config/sh/predicates.md (short_displacement_mem_operand): New
4019 predicate.
4020 (general_movsrc_operand): Disallow PC relative QImode loads.
4021 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
4022 (*movqi, *movhi): Merge both insns into...
4023 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
4024 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
4025 on the operand types.
4026
4027 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
4028
4029 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4030 Remove unused variable save_config.
4031 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4032 assert.
4033
4034 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4035
4036 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4037 using other intrinsics.
4038 (vtbx3_<psu>8): Likewise.
4039
4040 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4041
4042 * config/aarch64/aarch64-builtins.c
4043 (aarch64_types_bsl_p_qualifiers): New.
4044 (aarch64_types_bsl_s_qualifiers): Likewise.
4045 (aarch64_types_bsl_u_qualifiers): Likewise.
4046 (TYPES_BSL_P): Likewise.
4047 (TYPES_BSL_S): Likewise.
4048 (TYPES_BSL_U): Likewise.
4049 (BUILTIN_VALLDIF): Likewise.
4050 (BUILTIN_VDQQH): Likewise.
4051 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4052 * config/aarch64/aarch64-simd.md
4053 (aarch64_simd_bsl<mode>_internal): Handle more modes.
4054 (aarch64_simd_bsl<mode>): Likewise.
4055 * config/aarch64/arm_neon.h
4056 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4057 * config/aarch64/iterators.md (VALLDIF): New.
4058 (Vbtype): Handle more modes.
4059
4060 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4061
4062 * config/aarch64/aarch64-builtins.c
4063 (aarch64_type_qualifiers): Add qualifier_poly.
4064 (aarch64_build_scalar_type): Also build Poly types.
4065 (aarch64_build_vector_type): Likewise.
4066 (aarch64_build_type): Likewise.
4067 (aarch64_build_signed_type): New.
4068 (aarch64_build_unsigned_type): Likewise.
4069 (aarch64_build_poly_type): Likewise.
4070 (aarch64_init_simd_builtins): Also handle Poly types.
4071
4072 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4073
4074 * config/aarch64/aarch64-builtins.c
4075 (VAR1): Use new naming scheme for aarch64_builtins.
4076 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4077
4078 2013-11-26 Richard Biener <rguenther@suse.de>
4079
4080 PR tree-optimization/59287
4081 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4082 Remove no longer necessary special-casing of union accesses.
4083
4084 2013-11-26 Richard Biener <rguenther@suse.de>
4085
4086 * pretty-print.c (output_buffer::~output_buffer): Really
4087 free the obstacks.
4088
4089 2013-11-25 Jeff Law <law@redhat.com>
4090
4091 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4092 invalidate loop information.
4093
4094 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4095
4096 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4097
4098 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4099
4100 PR target/53976
4101 PR target/59243
4102 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4103 comments.
4104 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4105 previously visited basic blocks before recursing instead of only one
4106 basic block.
4107
4108 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4109
4110 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4111 * config/aarch64/aarch64-cores.def (cortex-a53):
4112 Use cortexa53 tuning struct.
4113
4114 2013-11-25 Andrew Macleod <amacleod@redhat.com>
4115
4116 PR bootstrap/59260
4117 * fold-const.c: Include hash-table.h.
4118
4119 2013-11-25 Marek Polacek <polacek@redhat.com>
4120
4121 PR sanitizer/59258
4122 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4123
4124 2013-11-25 Richard Biener <rguenther@suse.de>
4125
4126 * tree-dfa.c: Remove unused convert.h include.
4127
4128 2013-11-25 Terry Guo <terry.guo@arm.com>
4129
4130 * doc/invoke.texi (-mslow-flash-data): Document new option.
4131 * config/arm/arm.opt (mslow-flash-data): New option.
4132 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4133 Declare it.
4134 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4135 are disabled.
4136 (arm_disable_literal_pool): Declare it.
4137 * config/arm/arm.c (arm_disable_literal_pool): New variable.
4138 (arm_option_override): Handle new option.
4139 (thumb2_legitimate_address_p): Don't allow symbol references when
4140 literal pools are disabled.
4141 (arm_max_const_double_inline_cost): New function.
4142 * config/arm/arm.md (types.md): Include it before ...
4143 (use_literal_pool): New attribute.
4144 (enabled): Use new attribute.
4145 (split pattern): Replace symbol+offset with MOVW/MOVT.
4146
4147 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4148
4149 PR bootstrap/59279
4150 Revert previous commit.
4151
4152 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4153
4154 * jump.c (reset_insn_reg_label_operand_notes): New function,
4155 split out from ...
4156 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
4157 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4158 split out from ...
4159 (delete_dead_jumptables): ... here. Handle cfglayout mode.
4160 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4161 expensive CFG cleanup is called for.
4162 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4163 (cfg_layout_finalize): Delete dead jump tables before re-building
4164 the insns chain.
4165 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4166 basic blocks, not before.
4167 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4168
4169 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4170 insns chain of a scheduling extended basic block, they cannot appear
4171 there in cfglayout mode.
4172
4173 2013-11-24 Tobias Burnus <burnus@net-b.de>
4174
4175 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4176
4177 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4178
4179 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4180 for little endian.
4181
4182 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
4183
4184 * graphite-sese-to-poly.c: Don't include extra "expr.h".
4185
4186 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4187
4188 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4189
4190 2013-11-23 David Edelson <dje.gcc@gmail.com>
4191 Andrew Dixie <andrewd@gentrack.com>
4192
4193 PR target/33704
4194 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4195 (COLLECT_SHARED_FINI_FUNC): Define.
4196
4197 * collect2.c (aix_shared_initname): Declare.
4198 (aix_shared_fininame): Declare.
4199 (symkind): Add SYM_AIXI and SYM_AIXD.
4200 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4201 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4202 (aixlazy_flag): Parse.
4203 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4204 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4205
4206 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
4207
4208 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4209 (rs6000_xcoff_select_section): Place decls with stricter alignment
4210 into named sections.
4211 (rs6000_xcoff_unique_section): Allow unique sections for
4212 uninitialized data with strict alignment.
4213
4214 2013-11-23 Jakub Jelinek <jakub@redhat.com>
4215
4216 PR tree-optimization/59154
4217 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4218 rhs1 of a cast and new_op is invariant, fold_convert it.
4219 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4220 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4221
4222 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
4223
4224 PR target/56788
4225 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4226 Declare as MULTI_ARG_1_SF instruction.
4227 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4228 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4229 from *xop_vmfrcz_<mode>.
4230 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4231 to merge scalar result with __A.
4232 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4233 result with __A.
4234
4235 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4236
4237 * gimplify.h (recalculate_side_effects): Delete.
4238 * gimplify.c (recalculate_side_effects): Make static and add comment.
4239
4240 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4241
4242 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4243 for the destination of a define_peephole2. Likewise register_operand
4244 rather than arith_reg_operand. Remove constraints from
4245 define_peephole2s.
4246
4247 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4248
4249 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4250 Delete.
4251 (mn10300_store_multiple_operation_p): Declare.
4252 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4253 Rename to...
4254 (mn10300_store_multiple_operation_p): ...this and remove mode
4255 argument.
4256 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4257 Define.
4258
4259 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4260
4261 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4262 (pop_multiple_operation): Delete.
4263 (analyze_push_multiple_operation): Declare.
4264 (analyze_pop_multiple_operation): Declare.
4265 * config/bfin/bfin.c (push_multiple_operation): Rename to...
4266 (analyze_push_multiple_operation): ...this and remove mode argument.
4267 (pop_multiple_operation): Rename to...
4268 (analyze_pop_multiple_operation): ...this and remove mode argument.
4269 * config/bfin/predicates.md (push_multiple_operation): Define.
4270 (pop_multiple_operation): Likewise.
4271
4272 2013-11-23 Alan Modra <amodra@gmail.com>
4273
4274 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4275
4276 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4277
4278 PR sanitizer/59061
4279 * common.opt (static-liblsan): Add.
4280 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4281 Define.
4282 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
4283 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4284 SANITIZE_RETURN.
4285 * opts.c (common_handle_option): Handle -fsanitize=leak.
4286 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4287 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4288 (LIBUBSAN_EARLY_SPEC): Remove.
4289 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4290 (SANITIZER_SPEC): Add -fsanitize=leak handling.
4291 (sanitize_spec_function): Handle %sanitize(leak).
4292 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4293
4294 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
4295 Jakub Jelinek <jakub@redhat.com>
4296
4297 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4298 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4299 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
4300 (ipa_modify_formal_parameters): Adjust caller. Remove
4301 synth_parm_prefix argument. Use operator enum instead of bit fields.
4302 Add assert for properly handling vector of references. Handle
4303 creating brand new parameters.
4304 (ipa_modify_call_arguments): Use operator enum instead of bit
4305 fields.
4306 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
4307 used.
4308 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4309 New functions.
4310 (ipa_dump_param_adjustments): Rename reduction to new_decl.
4311 Use operator enum instead of bit fields.
4312 * ipa-prop.h (enum ipa_parm_op): New.
4313 (struct ipa_parm_adjustment): New field op. Rename reduction
4314 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4315 and copy_param.
4316 (ipa_modify_formal_parameters): Remove last argument.
4317 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4318 ipa_get_adjustment_candidate): New prototypes.
4319 * tree-sra.c (turn_representatives_into_adjustments): Use operator
4320 enum. Set arg_prefix.
4321 (get_adjustment_for_base): Use operator enum.
4322 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4323 ipa-prop.c.
4324 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4325 (ipa_sra_modify_function_body): Same. No longer static.
4326 (sra_ipa_reset_debug_stmts): Use operator enum.
4327 (modify_function): Do not pass prefix argument.
4328
4329 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4330
4331 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4332 (ubsan_pass): Ignore clobber stmts.
4333
4334 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4335 * opts.c (common_handle_option): Add -fsanitize=return.
4336 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4337 or it into SANITIZE_UNDEFINED.
4338
4339 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4340 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4341 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4342 Don't instrument accesses to VAR_DECLs which are known to fit
4343 into their bounds and the vars are known to have shadow bytes
4344 indicating allowed access.
4345 (asan_dynamic_init_call): New function.
4346 (asan_add_global): If vnode->dynamically_initialized,
4347 set __has_dynamic_init to 1 instead of 0.
4348 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4349 * asan.h (asan_dynamic_init_call): New prototype.
4350 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4351
4352 2013-11-22 Martin Jambor <mjambor@suse.cz>
4353
4354 PR rtl-optimization/10474
4355 * ira.c (interesting_dest_for_shprep_1): New function.
4356 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4357 also check parallels.
4358
4359 2013-11-22 Jeff Law <law@redhat.com>
4360
4361 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4362 NULL for RHS, which we used to invalidate equivalences.
4363 (record_temporary_equivalences_from_phis): New bitmap arguments
4364 and a boolean indicating if we have passed a backedge. If we
4365 have passed a backedge, then set the appropriate bit in the
4366 bitmaps for the SRC & DEST of PHIs creating equivalences.
4367 (invalidate_equivalences, dummy_simplify): New functions.
4368 (cond_arg_set_in_b): Remove.
4369 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4370 arguments and a boolean indicating if we have passed a backedge.
4371 If we have passed a backedge, then perform invalidations as needed.
4372 (thread_around_empty_blocks): If we have seen a backedge, then
4373 use the dummy simplify routine.
4374 (thread_through_normal_block): Likewise. Pass bitmaps and
4375 backedge status to children. Do not pessimize so much when
4376 traversing backedges in the CFG.
4377 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4378 If we have seen a backedge, then use the dummy simplify routine.
4379 Do not pessimize so much when traversing backedges.
4380
4381 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
4382
4383 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4384 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4385
4386 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
4387
4388 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4389 PTA_PCLMUL and PTA_RDRND for Silvermont.
4390 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4391 for Silvermont.
4392
4393 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4394
4395 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4396
4397 * hooks.h (hook_uint_mode_0): Add Prototype.
4398 * hooks.c (hook_uint_mode_0): New default function.
4399 * target.def (atomic_align_for_mode): New target hook.
4400 * tree.c (build_atomic_base): Add alignment override parameter.
4401 (build_common_tree_nodes): Use atomic alignment override.
4402 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4403 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4404
4405 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4406
4407 * gimple.h: Remove all includes.
4408 (recalculate_side_effects): Move prototype to gimplify.h.
4409 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4410 * gengtype.c (open_base_files): Add gimple.h include list.
4411 * gimplify.h (recalculate_side_effects): Relocate prototype here.
4412 * gimple.c: Adjust include list.
4413 (recalculate_side_effects): Move to gimplify.c.
4414 * gimplify.c: Adjust include list.
4415 (recalculate_side_effects): Relocate from gimple.c.
4416 * alias.c: Add required include files removed from gimple.h.
4417 * asan.c: Likewise.
4418 * builtins.c: Likewise.
4419 * calls.c: Likewise.
4420 * cfgexpand.c: Likewise.
4421 * cfgloop.c: Likewise.
4422 * cfgloopmanip.c: Likewise.
4423 * cgraphbuild.c: Likewise.
4424 * cgraph.c: Likewise.
4425 * cgraphclones.c: Likewise.
4426 * cgraphunit.c: Likewise.
4427 * cilk-common.c: Likewise.
4428 * data-streamer.c: Likewise.
4429 * data-streamer-in.c: Likewise.
4430 * data-streamer-out.c: Likewise.
4431 * dse.c: Likewise.
4432 * dwarf2out.c: Likewise.
4433 * emit-rtl.c: Likewise.
4434 * except.c: Likewise.
4435 * expr.c: Likewise.
4436 * fold-const.c: Likewise.
4437 * function.c: Likewise.
4438 * gimple-builder.c: Likewise.
4439 * gimple-expr.c: Likewise.
4440 * gimple-fold.c: Likewise.
4441 * gimple-iterator.c: Likewise.
4442 * gimple-low.c: Likewise.
4443 * gimple-pretty-print.c: Likewise.
4444 * gimple-ssa-isolate-paths.c: Likewise.
4445 * gimple-ssa-strength-reduction.c: Likewise.
4446 * gimple-streamer-in.c: Likewise.
4447 * gimple-streamer-out.c: Likewise.
4448 * gimple-walk.c: Likewise.
4449 * gimplify-me.c: Likewise.
4450 * graphite-blocking.c: Likewise.
4451 * graphite.c: Likewise.
4452 * graphite-clast-to-gimple.c: Likewise.
4453 * graphite-dependences.c: Likewise.
4454 * graphite-interchange.c: Likewise.
4455 * graphite-optimize-isl.c: Likewise.
4456 * graphite-poly.c: Likewise.
4457 * graphite-scop-detection.c: Likewise.
4458 * graphite-sese-to-poly.c: Likewise.
4459 * internal-fn.c: Likewise.
4460 * ipa.c: Likewise.
4461 * ipa-cp.c: Likewise.
4462 * ipa-devirt.c: Likewise.
4463 * ipa-inline-analysis.c: Likewise.
4464 * ipa-inline.c: Likewise.
4465 * ipa-profile.c: Likewise.
4466 * ipa-prop.c: Likewise.
4467 * ipa-pure-const.c: Likewise.
4468 * ipa-reference.c: Likewise.
4469 * ipa-split.c: Likewise.
4470 * ipa-utils.c: Likewise.
4471 * langhooks.c: Likewise.
4472 * lto-cgraph.c: Likewise.
4473 * lto-compress.c: Likewise.
4474 * lto-opts.c: Likewise.
4475 * lto-section-in.c: Likewise.
4476 * lto-section-out.c: Likewise.
4477 * lto-streamer.c: Likewise.
4478 * lto-streamer-in.c: Likewise.
4479 * lto-streamer-out.c: Likewise.
4480 * omp-low.c: Likewise.
4481 * opts-global.c: Likewise.
4482 * passes.c: Likewise.
4483 * predict.c: Likewise.
4484 * profile.c: Likewise.
4485 * sese.c: Likewise.
4486 * stmt.c: Likewise.
4487 * stor-layout.c: Likewise.
4488 * symtab.c: Likewise.
4489 * targhooks.c: Likewise.
4490 * toplev.c: Likewise.
4491 * tracer.c: Likewise.
4492 * trans-mem.c: Likewise.
4493 * tree-affine.c: Likewise.
4494 * tree.c: Likewise.
4495 * tree-call-cdce.c: Likewise.
4496 * tree-cfg.c: Likewise.
4497 * tree-cfgcleanup.c: Likewise.
4498 * tree-chrec.c: Likewise.
4499 * tree-complex.c: Likewise.
4500 * tree-data-ref.c: Likewise.
4501 * tree-dfa.c: Likewise.
4502 * tree-eh.c: Likewise.
4503 * tree-emutls.c: Likewise.
4504 * tree-if-conv.c: Likewise.
4505 * tree-inline.c: Likewise.
4506 * tree-into-ssa.c: Likewise.
4507 * tree-loop-distribution.c: Likewise.
4508 * tree-nested.c: Likewise.
4509 * tree-nrv.c: Likewise.
4510 * tree-object-size.c: Likewise.
4511 * tree-outof-ssa.c: Likewise.
4512 * tree-parloops.c: Likewise.
4513 * tree-phinodes.c: Likewise.
4514 * tree-predcom.c: Likewise.
4515 * tree-pretty-print.c: Likewise.
4516 * tree-profile.c: Likewise.
4517 * tree-scalar-evolution.c: Likewise.
4518 * tree-sra.c: Likewise.
4519 * tree-ssa-address.c: Likewise.
4520 * tree-ssa-alias.c: Likewise.
4521 * tree-ssa.c: Likewise.
4522 * tree-ssa-ccp.c: Likewise.
4523 * tree-ssa-coalesce.c: Likewise.
4524 * tree-ssa-copy.c: Likewise.
4525 * tree-ssa-copyrename.c: Likewise.
4526 * tree-ssa-dce.c: Likewise.
4527 * tree-ssa-dom.c: Likewise.
4528 * tree-ssa-dse.c: Likewise.
4529 * tree-ssa-forwprop.c: Likewise.
4530 * tree-ssa-ifcombine.c: Likewise.
4531 * tree-ssa-live.c: Likewise.
4532 * tree-ssa-loop.c: Likewise.
4533 * tree-ssa-loop-ch.c: Likewise.
4534 * tree-ssa-loop-im.c: Likewise.
4535 * tree-ssa-loop-ivcanon.c: Likewise.
4536 * tree-ssa-loop-ivopts.c: Likewise.
4537 * tree-ssa-loop-manip.c: Likewise.
4538 * tree-ssa-loop-niter.c: Likewise.
4539 * tree-ssa-loop-prefetch.c: Likewise.
4540 * tree-ssa-loop-unswitch.c: Likewise.
4541 * tree-ssa-math-opts.c: Likewise.
4542 * tree-ssanames.c: Likewise.
4543 * tree-ssa-operands.c: Likewise.
4544 * tree-ssa-phiopt.c: Likewise.
4545 * tree-ssa-phiprop.c: Likewise.
4546 * tree-ssa-pre.c: Likewise.
4547 * tree-ssa-propagate.c: Likewise.
4548 * tree-ssa-reassoc.c: Likewise.
4549 * tree-ssa-sccvn.c: Likewise.
4550 * tree-ssa-sink.c: Likewise.
4551 * tree-ssa-strlen.c: Likewise.
4552 * tree-ssa-structalias.c: Likewise.
4553 * tree-ssa-tail-merge.c: Likewise.
4554 * tree-ssa-ter.c: Likewise.
4555 * tree-ssa-threadedge.c: Likewise.
4556 * tree-ssa-threadupdate.c: Likewise.
4557 * tree-ssa-uncprop.c: Likewise.
4558 * tree-ssa-uninit.c: Likewise.
4559 * tree-stdarg.c: Likewise.
4560 * tree-streamer.c: Likewise.
4561 * tree-streamer-in.c: Likewise.
4562 * tree-streamer-out.c: Likewise.
4563 * tree-switch-conversion.c: Likewise.
4564 * tree-tailcall.c: Likewise.
4565 * tree-vect-data-refs.c: Likewise.
4566 * tree-vect-generic.c: Likewise.
4567 * tree-vect-loop.c: Likewise.
4568 * tree-vect-loop-manip.c: Likewise.
4569 * tree-vectorizer.c: Likewise.
4570 * tree-vect-patterns.c: Likewise.
4571 * tree-vect-slp.c: Likewise.
4572 * tree-vect-stmts.c: Likewise.
4573 * tree-vrp.c: Likewise.
4574 * tsan.c: Likewise.
4575 * ubsan.c: Likewise.
4576 * value-prof.c: Likewise.
4577 * varpool.c: Likewise.
4578 * var-tracking.c: Likewise.
4579 * vtable-verify.c: Likewise.
4580 * config/darwin.c: Likewise.
4581 * config/aarch64/aarch64-builtins.c: Likewise.
4582 * config/aarch64/aarch64.c: Likewise.
4583 * config/alpha/alpha.c: Likewise.
4584 * config/i386/i386.c: Likewise.
4585 * config/i386/winnt.c: Likewise.
4586 * config/ia64/ia64.c: Likewise.
4587 * config/m32c/m32c.c: Likewise.
4588 * config/mep/mep.c: Likewise.
4589 * config/mips/mips.c: Likewise.
4590 * config/rs6000/rs6000.c: Likewise.
4591 * config/s390/s390.c: Likewise.
4592 * config/sh/sh.c: Likewise.
4593 * config/sparc/sparc.c: Likewise.
4594 * config/spu/spu.c: Likewise.
4595 * config/stormy16/stormy16.c: Likewise.
4596 * config/tilegx/tilegx.c: Likewise.
4597 * config/tilepro/tilepro.c: Likewise.
4598 * config/xtensa/xtensa.c: Likewise.
4599
4600 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4601
4602 PR target/59216
4603 * arm.md (negdi_extendsidi): Fix invalid split.
4604
4605 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4606
4607 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4608 (vmov_n_f64): Likewise.
4609 (vmov_n_p8): Likewise.
4610 (vmov_n_p16): Likewise.
4611 (vmov_n_s8): Likewise.
4612 (vmov_n_s16): Likewise.
4613 (vmov_n_s32): Likewise.
4614 (vmov_n_s64): Likewise.
4615 (vmov_n_u8): Likewise.
4616 (vmov_n_u16): Likewise.
4617 (vmov_n_u32): Likewise.
4618 (vmov_n_u64): Likewise.
4619 (vmovq_n_f32): Likewise.
4620 (vmovq_n_f64): Likewise.
4621 (vmovq_n_p8): Likewise.
4622 (vmovq_n_p16): Likewise.
4623 (vmovq_n_s8): Likewise.
4624 (vmovq_n_s16): Likewise.
4625 (vmovq_n_s32): Likewise.
4626 (vmovq_n_s64): Likewise.
4627 (vmovq_n_u8): Likewise.
4628 (vmovq_n_u16): Likewise.
4629 (vmovq_n_u32): Likewise.
4630 (vmovq_n_u64): Likewise.
4631
4632 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4633
4634 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4635 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4636 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4637 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4638 and also change to float UNSPEC.
4639 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4640 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4641 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4642 result access for big-endian.
4643 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4644 intrinsics for big-endian.
4645 * config/aarch64/iterators.md (VDQV): Add V2DI.
4646 (VDQV_S): New.
4647 (vp): New mode attribute.
4648
4649 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4650
4651 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4652 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4653 big-endian.
4654
4655 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4656
4657 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4658 for big-endian element order.
4659 (aarch64_simd_vec_setv2di): Likewise.
4660 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4661 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4662 (vec_extract): Expand using aarch64_get_lane.
4663 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4664
4665 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4666
4667 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4668 and stores to be ABI compliant.
4669
4670 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4671
4672 * input.h (input_line): Remove.
4673 (input_filename): Likewise.
4674 (in_system_header): Likewise.
4675 * tree.h (EXPR_LOC_OR_HERE): Remove.
4676 * config/bfin/bfin.c (output_file_start): Remove use of
4677 input_filename macro.
4678 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4679 * gimplify.c (internal_get_tmp_var): Likewise.
4680 EXPR_LOC_OR_HERE macro.
4681 (shortcut_cond_expr): Likewise.
4682 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4683 use of input_filename macro.
4684 * tree.c (get_file_function_name): Likewise.
4685
4686 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4687
4688 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4689
4690 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4691
4692 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4693 (same sized) elements even if the type of the CONSTRUCTOR has
4694 vector mode and target is a REG.
4695
4696 2013-11-22 Richard Biener <rguenther@suse.de>
4697
4698 Revert
4699 2013-11-21 Richard Biener <rguenther@suse.de>
4700
4701 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4702 nb_iterations_upper_bound by one.
4703
4704 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4705
4706 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4707 for Silvermont.
4708
4709 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4710 core-avx-i, core-avx2 and slm.
4711
4712 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4713
4714 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4715
4716 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4717
4718 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4719 (stzx_24_<mode>): Likewise mra_operand.
4720
4721 2013-11-22 Jeff Law <law@redhat.com>
4722
4723 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4724 (thread_block_1): Do not cancel jump threads which go from
4725 inside a loop, through the header, then back inside the loop.
4726 (bb_ends_with_multiway_branch): New function.
4727 (thread_through_all_blocks): Handle threading cases which start
4728 in a loop through the loop header to a point in the loop.
4729
4730 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4731 jump thread path properly.
4732
4733 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4734
4735 * vec.h (auto_vec): New class.
4736 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4737 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4738 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4739 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4740 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4741 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4742 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4743 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4744 appropriate instead of vec for local variables.
4745
4746 2013-11-21 Teresa Johnson <tejohnson@google.com>
4747
4748 PR target/59233
4749 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4750 not understood by old_insns_match_p.
4751
4752 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4753
4754 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4755 little endian change.
4756 (vec_pack_sfix_trunc_v2df): Likewise.
4757 (vec_pack_ufix_trunc_v2df): Likewise.
4758 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4759 double checking of endianness.
4760
4761 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4762
4763 * tree-vect-generic.c (optimize_vector_constructor): New function.
4764 (expand_vector_operations_1): Call it.
4765
4766 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4767
4768 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4769 ix86_zero_extend_to_Pmode where appropriate.
4770 (ix86_expand_builtin): Ditto.
4771
4772 2013-11-21 Cary Coutant <ccoutant@google.com>
4773
4774 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4775 (add_linkage_name): Don't add linkage name for -g1.
4776 (decls_for_scope): Process subblocks for -g1.
4777 (dwarf2out_source_line): Output line tables for -g1.
4778 (dwarf2out_finish): Likewise.
4779 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4780 unused scopes for -g1.
4781 * opts.c (common_handle_option): Handle -g same as -g2.
4782 * doc/invoke.texi: Update description for -g1.
4783
4784 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4785
4786 * doc/extend.texi: Document htm builtins.
4787
4788 2013-11-21 Jeff Law <law@redhat.com>
4789
4790 PR tree-optimization/59221
4791 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4792 temporary equivalences when threading through joiner blocks.
4793
4794 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4795
4796 PR rtl-optimization/55950
4797 * real.c (real_sqrt): Remove function.
4798 * real.h (real_sqrt): Remove prototype.
4799 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4800 SQRT using real_sqrt.
4801
4802 2013-11-21 Richard Biener <rguenther@suse.de>
4803
4804 PR tree-optimization/59058
4805 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4806 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4807 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4808 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4809 (NITERS_KNOWN_P): Fold into ...
4810 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4811 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4812 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4813 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4814 (vect_do_peeling_for_alignment): Re-use precomputed niter
4815 instead of re-emitting it.
4816 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4817 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4818 * tree-vect-loop.c (vect_get_loop_niters): Use
4819 number_of_latch_executions.
4820 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4821 (vect_analyze_loop_form): Simplify.
4822 (vect_analyze_loop_operations): Move epilogue peeling code ...
4823 (vect_analyze_loop_2): ... here and adjust it to compute
4824 LOOP_VINFO_PEELING_FOR_NITER.
4825 (vect_estimate_min_profitable_iters): Use
4826 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4827 (vect_build_loop_niters): Emit on the preheader.
4828 (vect_generate_tmps_on_preheader): Likewise.
4829 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4830 of recomputing it. Adjust.
4831
4832 2013-11-21 Richard Biener <rguenther@suse.de>
4833
4834 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4835 LOC_LINE): Remove wrappers and fix all users.
4836 (struct _loop_vec_info): Remove loop_line_number member.
4837 (LOOP_VINFO_LOC): Remove.
4838 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4839 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4840 and LOC_LINE.
4841
4842 2013-11-21 Richard Biener <rguenther@suse.de>
4843
4844 * tree-ssa-forwprop.c (simplify_vce): New function.
4845 (ssa_forward_propagate_and_combine): Call it.
4846
4847 2013-11-21 Richard Biener <rguenther@suse.de>
4848
4849 * tree-vect-loop-manip.c (vect_build_loop_niters,
4850 vect_generate_tmps_on_preheader): Move ...
4851 * tree-vect-loop.c (vect_build_loop_niters,
4852 vect_generate_tmps_on_preheader): ... here and simplify.
4853 (vect_transform_loop): Call them here and pass down results
4854 to consumers.
4855 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4856 Get niter variables from caller.
4857 (vect_do_peeling_for_alignment): Likewise.
4858 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4859 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4860 Adjust prototypes.
4861
4862 2013-11-21 Richard Biener <rguenther@suse.de>
4863
4864 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4865 nb_iterations_upper_bound by one.
4866
4867 2013-11-21 Richard Biener <rguenther@suse.de>
4868
4869 PR tree-optimization/59058
4870 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4871 (build_size_arg_loc): Apply niter adjustment here.
4872 (generate_memset_builtin): Adjust.
4873 (generate_memcpy_builtin): Likewise.
4874 (classify_partition): Do not use number_of_exit_cond_executions
4875 but record whether niter needs to be adjusted.
4876
4877 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4878
4879 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4880 could throw.
4881
4882 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4883
4884 PR target/53976
4885 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4886 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4887 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4888 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4889 sh_optimize_sett_clrt pass.o to extra_objs.
4890
4891 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4892
4893 * cfg.c (dump_edge_info): Remove redundant comment.
4894 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4895 EXIT_BLOCK_PTR in comment.
4896 (try_optimize_cfg): Likewise.
4897 * cfgrtl.c (last_bb_in_partition): Likewise.
4898 * cgraph.c (cgraph_node_cannot_return): Likewise.
4899 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4900 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4901 * ipa-split.c (consider_split): Likewise.
4902 * profile.c (find_spanning_tree): Likewise.
4903 * sched-int.h (common_sched_info_def.add_block): Likewise.
4904 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4905 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4906 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4907 in comments to now removed ENTRY_BLOCK_PTR macro.
4908 (tree_forwarder_block_p): Reword reference in comment to
4909 EXIT_BLOCK_PTR.
4910 * tree-inline.c (copy_cfg_body): Reword references in comments to
4911 now removed ENTRY_BLOCK_PTR macro.
4912 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4913 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4914 a comma to the comment to clarify the meaning.
4915
4916 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4917
4918 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4919 Move to gimplify.c.
4920 (free_gimplify_stack): Add prototype.
4921 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4922 (struct gimplify_ctx): Relocate here.
4923 (gimplify_ctxp): Make static.
4924 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4925 list of struct gimplify_ctx.
4926 (push_gimplify_context): Add default parameters and allocate a struct
4927 from the pool.
4928 (pop_gimplify_context): Free a struct back to the pool.
4929 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4930 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4931 use a local 'struct gimplify_ctx'.
4932 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4933 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4934 Likewise.
4935 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4936 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4937 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4938 lower_omp_teams, execute_lower_omp): Likewise.
4939 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4940 * tree-inline.c (optimize_inline_calls): Likewise.
4941
4942 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4943
4944 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4945 (vsx_extract_<mode>): Likewise.
4946 (*vsx_extract_<mode>_one_le): New LE variant on
4947 *vsx_extract_<mode>_zero.
4948 (vsx_extract_v4sf): Adjust for little endian.
4949
4950 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4951
4952 PR rtl-optimization/59133
4953 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4954 new pseudos.
4955 (lra_create_new_reg_with_unique_value): Pass new argument value.
4956 (lra_emit_add, lra_emit_move): Ditto.
4957 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4958 (change_class): Rename to lra_change_class. Move to lra-int.h.
4959 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4960 change_class.
4961 (process_addr_reg, process_addr): Ditto.
4962 (curr_insn_transform): Ditto. Add check on old pseudo for
4963 optional reload.
4964 * lra-int.h (lra_get_regno_hard_regno): Move below.
4965 (lra_change_class): Renamed change_class from lra.c.
4966
4967 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4968
4969 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4970 the children of a NULL pointer.
4971
4972 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4973
4974 * lra.c (lra): Set lra_in_progress before check_rtl call.
4975 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4976 adding clobber regs when LRA is running.
4977
4978 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4979
4980 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4981 restriction for ISA_MIPS32R2.
4982 (ISA_HAS_LXC1_SXC1): New macro.
4983 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4984 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4985 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4986 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4987 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4988 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4989 (*<ANYF:storex>_<P:mode>): Likewise.
4990
4991 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4992
4993 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4994 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4995 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4996 * config/mips/mips.md (recip_condition): Remove mode attribute.
4997 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4998 <recip_condition>.
4999 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
5000
5001 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5002
5003 PR target/59207
5004 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
5005 Make sure neg2_ovf is set before being used.
5006
5007 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
5008
5009 * plugin.def: Add comment about register_callback and
5010 invoke_plugin_callbacks_full.
5011
5012 * plugin.c (register_callback, invoke_plugin_callbacks_full):
5013 Handle PLUGIN_INCLUDE_FILE event.
5014
5015 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5016
5017 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
5018 allow subregs of TDmode in FPRs of smaller size in little-endian.
5019 (rs6000_split_multireg_move): When splitting an access to TDmode
5020 in FPRs, do not use simplify_gen_subreg.
5021
5022 2013-11-20 Joseph Myers <joseph@codesourcery.com>
5023
5024 PR middle-end/21718
5025 * real.c: Remove comment about decimal string conversion and
5026 rounding errors.
5027 (real_from_string): Use MPFR to convert nonzero decimal constant
5028 to REAL_VALUE_TYPE.
5029
5030 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5031
5032 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5033 endianness of the D registers for the legacy encodings.
5034
5035 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
5036
5037 PR rtl-optimization/54300
5038 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5039 outputs in a single-set are killed from the value chains.
5040
5041 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5042
5043 * cgraph.h (varpool_node): Add need_bounds_init field.
5044 * lto-cgraph.c (lto_output_varpool_node): Output
5045 need_bounds_init value.
5046 (input_varpool_node): Read need_bounds_init value.
5047 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5048
5049 2013-11-20 Jan Hubicka <jh@suse.cz>
5050
5051 * opts.c (finish_options): Imply -ffat-lto-objects with
5052 -fno-use-linker-plugin.
5053 * common.opt (fuse-linker-plugin): Add var.
5054
5055 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5056
5057 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5058 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5059 (gen_type_die_with_usage): Skip pointer bounds.
5060 (dwarf2out_global_decl): Likewise.
5061
5062 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5063
5064 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5065 from all insns.
5066
5067 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
5068
5069 PR target/57756
5070 * config/i386/i386.c (ix86_option_override_internal): Add missed
5071 argument prefix for 'ix86_fpmath'.
5072 * config/i386/ssemath.h: Add missed definition of
5073 TARGET_FPMATH_DEFAULT_P macros.
5074
5075 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5076 Mike Stump <mikestump@comcast.net>
5077 Richard Sandiford <rdsandiford@googlemail.com>
5078
5079 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5080 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5081 tree_fits_shwi_p or tree_fits_uhwi_p.
5082 * builtins.c (fold_builtin_powi): Likewise.
5083 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5084 Likewise.
5085 * dbxout.c (dbxout_symbol): Likewise.
5086 * expr.c (expand_expr_real_1): Likewise.
5087 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5088 (fold_binary_loc): Likewise.
5089 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5090 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5091 * omp-low.c (lower_omp_for_lastprivate): Likewise.
5092 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5093 * stor-layout.c (compute_record_mode): Likewise.
5094 * tree-cfg.c (verify_expr): Likewise.
5095 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5096 * tree-pretty-print.c (dump_array_domain): Likewise.
5097 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5098 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5099 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5100 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5101 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5102 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5103 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5104 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5105 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5106 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5107 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5108 (create_variable_info_for_1): Likewise.
5109 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5110 (vect_verify_datarefs_alignment): Likewise.
5111 (vect_analyze_data_ref_accesses): Likewise.
5112 (vect_prune_runtime_alias_test_list): Likewise.
5113 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5114
5115 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5116
5117 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5118 overflow. Use tree_to_shwi.
5119
5120 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5121
5122 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5123 HOST_WIDE_INTs when folding (x >> c) << c.
5124
5125 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5126 Dominik Vogt <vogt@linux.vnet.ibm.com>
5127
5128 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5129 int comparisons with an out of range condition code.
5130 (s390_optimize_nonescaping_tx): Skip empty BBs.
5131 Generate the new tbegin RTX when removing the FPR clobbers (with
5132 two SETs).
5133 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
5134 result before doing the retry calculations.
5135 (s390_init_builtins): Make tbegin "returns_twice" and tabort
5136 "noreturn".
5137 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5138 the TDB setting part of an tbegin.
5139 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5140 ("tx_assist"): Set unused argument to an immediate zero instead of
5141 loading zero into a GPR and pass it as argument.
5142 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5143 Remove inline and related attributes.
5144 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5145 (__TM_is_illegal, __TM_is_footprint_exceeded)
5146 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5147
5148 2013-11-20 Richard Biener <rguenther@suse.de>
5149
5150 PR lto/59035
5151 * lto-opts.c (lto_write_options): Write defaults only if
5152 they were not explicitely specified. Also write
5153 -ffp-contract default.
5154 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5155 conservatively.
5156 (run_gcc): Pass through -ffp-contract.
5157
5158 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5159
5160 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5161
5162 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5163
5164 * config/aarch64/aarch64-builtins.c
5165 (aarch64_simd_itype): Remove.
5166 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5167 (VAR1): Use qualifiers.
5168 (aarch64_build_scalar_type): New.
5169 (aarch64_build_vector_type): Likewise.
5170 (aarch64_build_type): Likewise.
5171 (aarch64_init_simd_builtins): Refactor, remove special cases,
5172 consolidate main loop.
5173 (aarch64_simd_expand_args): Likewise.
5174
5175 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5176
5177 PR c/53001
5178 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5179
5180 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
5181
5182 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5183
5184 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5185
5186 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5187 to "vec<>" instances.
5188 (build_pretty_printer): Register the vec<>* prettyprinter.
5189
5190 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5191
5192 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5193 (GdbSubprinter.handles_type): New.
5194 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5195 (GdbSubprinterRegex): New subclass of GdbSubprinter.
5196 (GdbPrettyPrinters.add_printer): Remove in favor of...
5197 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5198 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5199 (GdbPrettyPrinters.__call__): Update search for subprinter
5200 to use handles_type method.
5201 (build_pretty_printer): Update registration of subprinters to
5202 use the new API above, supporting multiple spelling of each type,
5203 and allowing for future regex-based subprinters.
5204
5205 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5206
5207 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5208 V16QI vector splat case for little endian.
5209
5210 2013-11-19 Jeff Law <law@redhat.com>
5211
5212 * tree-ssa-threadedge.c (thread_across_edge): After threading
5213 through a joiner, allow threading a normal block requiring duplication.
5214
5215 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5216 jump threading requests that would muck up the loop structures.
5217
5218 * tree-ssa-threadupdate.c: Fix trailing whitespace.
5219 * tree-ssa-threadupdate.h: Likewise.
5220
5221 2013-11-19 Mike Stump <mikestump@comcast.net>
5222
5223 * gdbinit.in: Add pmz to print out mpz values.
5224
5225 2013-11-20 Jan Hubicka <jh@suse.cz>
5226
5227 * common.opt (ffat-lto-objects): Disable by default.
5228 * doc/invoke.texi (fat-lto-objects): Update documentation.
5229 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5230
5231 2013-11-19 Martin Jambor <mjambor@suse.cz>
5232
5233 PR rtl-optimization/59099
5234 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5235 here.
5236 (ira): Move init_reg_equiv and call to
5237 split_live_ranges_for_shrink_wrap up, remove analyses around call
5238 to find_moveable_pseudos.
5239
5240 2013-11-20 Alan Modra <amodra@gmail.com>
5241
5242 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5243 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5244 to strict alignment on older processors when little-endian.
5245 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5246 for ELFv2.
5247
5248 2013-11-19 Teresa Johnson <tejohnson@google.com>
5249
5250 * common/config/i386/i386-common.c: Enable
5251 -freorder-blocks-and-partition at -O2 and up for x86.
5252 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5253 * opts.c (finish_options): Only warn if
5254 -freorder-blocks-and-partition was set on command line.
5255
5256 2013-11-19 Sriraman Tallam <tmsriram@google.com>
5257
5258 * final.c (final_scan_insn): Emit a label for the split
5259 cold function part. Label name is formed by suffixing
5260 the original function name with "cold".
5261
5262 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5263
5264 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5265 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5266 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5267 (EXIT_BLOCK_PTR_FOR_FN): ...this.
5268 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5269 cfun be explicit.
5270 (EXIT_BLOCK_PTR): Likewise.
5271 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5272 (FOR_ALL_BB_FN): Update for renaming of
5273 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5274
5275 * cfg.c (init_flow): Likewise.
5276 (check_bb_profile): Likewise.
5277 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5278 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5279 * cfghooks.c (account_profile_record): Likewise.
5280 * cfgloop.c (init_loops_structure): Likewise.
5281 * cgraphbuild.c (record_eh_tables): Likewise.
5282 (compute_call_stmt_bb_frequency): Likewise.
5283 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5284 * lto-streamer-in.c (input_cfg): Likewise.
5285 * predict.c (maybe_hot_frequency_p): Likewise.
5286 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5287 * tree-inline.c (initialize_cfun): Likewise.
5288 (copy_cfg_body): Likewise.
5289 (copy_body): Likewise.
5290 (tree_function_versioning): Likewise.
5291
5292 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5293 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5294 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5295 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5296 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5297 (connect_traces): Likewise.
5298 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5299 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5300 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5301 macro.
5302 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5303 EXIT_BLOCK_PTR.
5304 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5305 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5306 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5307 (rotate_loop): Likewise.
5308 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5309 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5310 EXIT_BLOCK_PTR.
5311 (alloc_aux_for_edges): Likewise.
5312 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5313 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5314 EXIT_BLOCK_PTR.
5315 (compact_blocks): Likewise.
5316 (clear_edges): Likewise.
5317 * cfganal.c (single_pred_before_succ_order): Remove usage of
5318 ENTRY_BLOCK_PTR macro.
5319 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5320 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5321 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5322 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5323 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5324 EXIT_BLOCK_PTR.
5325 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5326 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5327 EXIT_BLOCK_PTR.
5328 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5329 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5330 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5331 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5332 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5333 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5334 EXIT_BLOCK_PTR.
5335 (print_edge_list): Likewise.
5336 (create_edge_list): Likewise.
5337 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5338 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5339 EXIT_BLOCK_PTR.
5340 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5341 macro.
5342 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5343 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5344 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5345 (try_optimize_cfg): Likewise.
5346 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5347 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5348 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5349 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5350 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5351 (try_forward_edges): Likewise.
5352 (try_simplify_condjump): Likewise.
5353 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5354 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5355 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5356 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5357 EXIT_BLOCK_PTR.
5358 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5359 (expand_gimple_tailcall): Likewise.
5360 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5361 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5362 (tidy_fallthru_edges): Likewise.
5363 (verify_flow_info): Likewise.
5364 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5365 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5366 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5367 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5368 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5369 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5370 (get_loop_body_in_dom_order): Likewise.
5371 (get_loop_body): Likewise.
5372 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5373 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5374 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5375 macro.
5376 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5377 (fix_bb_placement): Likewise.
5378 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5379 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5380 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5381 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5382 EXIT_BLOCK_PTR.
5383 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5384 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5385 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5386 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5387 macro.
5388 (fixup_fallthru_exit_predecessor): Remove uses of macros:
5389 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5390 (fixup_reorder_chain): Likewise.
5391 (relink_block_chain): Likewise.
5392 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5393 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5394 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5395 (force_one_exit_fallthru): Likewise.
5396 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5397 EXIT_BLOCK_PTR.
5398 (rtl_verify_edges): Likewise.
5399 (commit_edge_insertions): Likewise.
5400 (commit_one_edge_insertion): Likewise.
5401 (rtl_split_edge): Likewise.
5402 (force_nonfallthru_and_redirect): Likewise.
5403 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5404 (skip_insns_after_block): Likewise.
5405 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5406 EXIT_BLOCK_PTR.
5407 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5408 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5409 EXIT_BLOCK_PTR.
5410 (contains_no_active_insn_p): Likewise.
5411 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5412 (entry_of_function): Likewise.
5413 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5414 (fixup_new_cold_bb): Likewise.
5415 (patch_jump_insn): Likewise.
5416 (try_redirect_by_replacing_jump): Likewise.
5417 (block_label): Likewise.
5418 (could_fall_through): Likewise.
5419 (can_fallthru): Likewise.
5420 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5421 ENTRY_BLOCK_PTR macro.
5422 (rebuild_cgraph_edges): Likewise.
5423 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5424 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5425 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5426 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5427 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5428 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5429 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5430 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5431 macro.
5432 (reg_nonzero_bits_for_combine): Likewise.
5433 (set_nonzero_bits_and_sign_copies): Likewise.
5434 (combine_instructions): Likewise.
5435 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5436 EXIT_BLOCK_PTR.
5437 (bypass_conditional_jumps): Likewise.
5438 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5439 (find_implicit_sets): Likewise.
5440 (cprop_jump): Likewise.
5441 * cse.c (cse_cc_succs): Likewise.
5442 (cse_find_path): Likewise.
5443 * df-problems.c (df_lr_confluence_0): Likewise.
5444 * df-scan.c (df_entry_block_defs_collect): Remove usage of
5445 ENTRY_BLOCK_PTR macro.
5446 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5447 * dominance.c (iterate_fix_dominators): Remove usage of
5448 ENTRY_BLOCK_PTR macro.
5449 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5450 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5451 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5452 EXIT_BLOCK_PTR.
5453 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5454 macro.
5455 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5456 EXIT_BLOCK_PTR.
5457 * domwalk.c (cmp_bb_postorder): Likewise.
5458 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5459 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5460 macro.
5461 (sjlj_emit_function_enter): Likewise.
5462 * final.c (compute_alignments): Likewise.
5463 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5464 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5465 (reposition_prologue_and_epilogue_notes): Remove usage of
5466 EXIT_BLOCK_PTR macro.
5467 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5468 EXIT_BLOCK_PTR.
5469 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5470 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5471 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5472 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5473 (compute_code_hoist_vbeinout): Likewise.
5474 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5475 (pre_expr_reaches_here_p_work): Likewise.
5476 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5477 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5478 EXIT_BLOCK_PTR.
5479 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5480 ENTRY_BLOCK_PTR macro.
5481 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5482 macro.
5483 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5484 ENTRY_BLOCK_PTR macro.
5485 * graphite-scop-detection.c (build_scops): Likewise.
5486 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5487 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5488 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5489 macro.
5490 (unlink_bb_notes): Likewise.
5491 (create_check_block_twin): Likewise.
5492 (init_before_recovery): Likewise.
5493 (sched_extend_bb): Likewise.
5494 (priority): Likewise.
5495 * hw-doloop.c (reorder_loops): Likewise.
5496 (discover_loop): Likewise.
5497 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5498 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5499 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5500 (block_has_only_trap): Likewise.
5501 (cond_exec_find_if_block): Likewise.
5502 (merge_if_block): Likewise.
5503 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5504 ENTRY_BLOCK_PTR macro.
5505 (record_modified): Likewise.
5506 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5507 EXIT_BLOCK_PTR macro.
5508 (local_pure_const): Likewise.
5509 * ipa-split.c (split_function): Remove uses of macros:
5510 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5511 (find_split_points): Likewise.
5512 (consider_split): Likewise.
5513 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5514 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5515 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5516 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5517 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5518 ENTRY_BLOCK_PTR macro.
5519 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5520 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5521 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5522 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5523 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5524 macro.
5525 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5526 EXIT_BLOCK_PTR.
5527 (compute_farthest): Likewise.
5528 (compute_available): Likewise.
5529 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5530 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5531 EXIT_BLOCK_PTR.
5532 (compute_earliest): Likewise.
5533 (compute_antinout_edge): Likewise.
5534 * loop-iv.c (simplify_using_initial_values): Remove usage of
5535 ENTRY_BLOCK_PTR macro.
5536 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5537 macro.
5538 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5539 macro.
5540 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5541 macro.
5542 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5543 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5544 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5545 macro.
5546 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5547 macro.
5548 * lto-streamer-out.c (output_cfg): Likewise.
5549 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5550 EXIT_BLOCK_PTR.
5551 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5552 * mode-switching.c (optimize_mode_switching): Likewise.
5553 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5554 * modulo-sched.c (rest_of_handle_sms): Likewise.
5555 (canon_loop): Likewise.
5556 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5557 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5558 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5559 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5560 macro.
5561 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5562 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5563 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5564 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5565 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5566 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5567 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5568 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5569 (gimple_predict_edge): Likewise.
5570 (probably_never_executed): Likewise.
5571 * profile.c (find_spanning_tree): Remove uses of macros:
5572 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5573 (branch_prob): Likewise.
5574 (compute_branch_probabilities): Likewise.
5575 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5576 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5577 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5578 (set_bb_counts): Likewise.
5579 (correct_negative_edge_counts): Likewise.
5580 (get_exec_counts): Likewise.
5581 (instrument_values): Likewise.
5582 (instrument_edges): Likewise.
5583 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5584 EXIT_BLOCK_PTR.
5585 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5586 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5587 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5588 (reg_to_stack): Likewise.
5589 * regs.h (REG_N_SETS): Likewise.
5590 * reload.c (find_dummy_reload): Likewise.
5591 (combine_reloads): Likewise.
5592 (push_reload): Likewise.
5593 * reload1.c (has_nonexceptional_receiver): Remove usage of
5594 EXIT_BLOCK_PTR macro.
5595 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5596 macro.
5597 (find_basic_block): Likewise.
5598 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5599 (schedule_ebbs): Likewise.
5600 * sched-int.h (sel_sched_p): Likewise.
5601 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5602 macro.
5603 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5604 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5605 EXIT_BLOCK_PTR.
5606 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5607 (extend_rgns): Likewise.
5608 (find_single_block_region): Likewise.
5609 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5610 ENTRY_BLOCK_PTR macro.
5611 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5612 (sel_create_recovery_block): Likewise.
5613 (bb_ends_ebb_p): Likewise.
5614 (sel_bb_end): Likewise.
5615 (sel_bb_head): Likewise.
5616 (free_lv_sets): Likewise.
5617 (init_lv_sets): Likewise.
5618 (tidy_control_flow): Likewise.
5619 (maybe_tidy_empty_bb): Likewise.
5620 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5621 (_succ_iter_start): Likewise.
5622 (sel_bb_empty_or_nop_p): Likewise.
5623 (get_loop_exit_edges_unique_dests): Likewise.
5624 (inner_loop_header_p): Likewise.
5625 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5626 (find_block_for_bookkeeping): Likewise.
5627 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5628 (insert_store): Likewise.
5629 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5630 ENTRY_BLOCK_PTR macro.
5631 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5632 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5633 (gate_tm_init): Likewise.
5634 (tm_region_init): Likewise.
5635 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5636 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5637 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5638 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5639 EXIT_BLOCK_PTR.
5640 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5641 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5642 EXIT_BLOCK_PTR.
5643 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5644 macro.
5645 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5646 EXIT_BLOCK_PTR.
5647 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5648 macro.
5649 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5650 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5651 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5652 (build_gimple_cfg): Likewise.
5653 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5654 (gimple_can_merge_blocks_p): Likewise.
5655 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5656 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5657 * tree-complex.c (update_parameter_components): Remove usage of
5658 ENTRY_BLOCK_PTR macro.
5659 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5660 EXIT_BLOCK_PTR macro.
5661 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5662 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5663 (delete_unreachable_blocks_update_callgraph): Likewise.
5664 (initialize_cfun): Likewise.
5665 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5666 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5667 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5668 * tree-into-ssa.c (update_ssa): Likewise.
5669 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5670 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5671 (rewrite_into_ssa): Likewise.
5672 (rewrite_debug_stmt_uses): Likewise.
5673 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5674 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5675 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5676 ENTRY_BLOCK_PTR macro.
5677 * tree-scalar-evolution.h (block_before_loop): Likewise.
5678 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5679 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5680 EXIT_BLOCK_PTR.
5681 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5682 macro.
5683 (propagate_dereference_distances): Remove uses of macros:
5684 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5685 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5686 macro.
5687 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5688 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5689 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5690 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5691 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5692 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5693 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5694 (mark_control_dependent_edges_necessary): Remove uses of macros:
5695 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5696 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5697 ENTRY_BLOCK_PTR macro.
5698 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5699 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5700 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5701 (calculate_live_on_exit): Likewise.
5702 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5703 (loe_visit_block): Likewise.
5704 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5705 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5706 (live_on_entry): Likewise.
5707 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5708 EXIT_BLOCK_PTR macro.
5709 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5710 ENTRY_BLOCK_PTR macro.
5711 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5712 (bound_difference): Likewise.
5713 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5714 of EXIT_BLOCK_PTR macro.
5715 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5716 of ENTRY_BLOCK_PTR macro.
5717 * tree-ssa-math-opts.c (register_division_in): Likewise.
5718 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5719 * tree-ssa-pre.c (compute_avail): Likewise.
5720 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5721 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5722 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5723 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5724 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5725 EXIT_BLOCK_PTR.
5726 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5727 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5728 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5729 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5730 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5731 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5732 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5733 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5734 (find_pdom): Likewise.
5735 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5736 * tree-stdarg.c (reachable_at_most_once): Likewise.
5737 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5738 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5739 (eliminate_tail_call): Likewise.
5740 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5741 macro.
5742 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5743 * var-tracking.c (vt_initialize): Remove uses of macros:
5744 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5745 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5746 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5747 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5748 EXIT_BLOCK_PTR.
5749 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5750 macro.
5751 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5752 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5753 of EXIT_BLOCK_PTR macro.
5754 * config/arm/arm.c (require_pic_register): Remove usage of
5755 ENTRY_BLOCK_PTR macro.
5756 (arm_r3_live_at_start_p): Likewise.
5757 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5758 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5759 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5760 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5761 ENTRY_BLOCK_PTR macro.
5762 * config/i386/i386.c (ix86_count_insn): Likewise.
5763 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5764 (ix86_pad_short_function): Likewise.
5765 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5766 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5767 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5768 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5769 (ix86_expand_epilogue): Likewise.
5770 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5771 (ia64_expand_prologue): Likewise.
5772
5773 2013-11-19 Catherine Moore <clm@codesourcery.com>
5774
5775 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5776 * config/mips/mips.opt (mfix-rm7000): New option.
5777 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5778 * config/mips/mips.c (mips_reorg_process_insns): Disable
5779 noreorder for TARGET_FIX_RM7000.
5780
5781 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5782
5783 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5784
5785 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5786
5787 * config/arm/arm.c (arm_new_rtx_costs):
5788 Handle narrow mode add-shifts properly.
5789 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5790 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5791 Declare extern.
5792
5793 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5794
5795 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5796
5797 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5798
5799 * config/rs6000/vector.md ("mov<mode>"): Do not call
5800 rs6000_emit_le_vsx_move to move into or out of GPRs.
5801 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5802 source and destination are not GPR hard regs.
5803
5804 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5805
5806 * basic-block.h (n_edges_for_function): Rename macro to...
5807 (n_edges_for_fn): ...this.
5808 (n_edges): Eliminate macro as work towards making uses of
5809 cfun be explicit.
5810
5811 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5812 to "n_edges_for_fn".
5813
5814 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5815 (clear_edges): Likewise.
5816 (free_edge): Likewise.
5817 * cfghooks.c (dump_flow_info): Likewise.
5818 * cprop.c (is_too_expensive): Likewise.
5819 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5820 * gcse.c (is_too_expensive): Likewise.
5821 (prune_insertions_deletions): Likewise.
5822 * mcf.c (create_fixup_graph): Likewise.
5823 * sched-rgn.c (haifa_find_rgns): Likewise.
5824 * tree-cfg.c (gimple_dump_cfg): Likewise.
5825 * var-tracking.c (variable_tracking_main_1): Likewise.
5826
5827 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5828
5829 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5830 length lines.
5831
5832 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5833
5834 * config/aarch64/aarch64.md
5835 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5836
5837 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5838
5839 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5840
5841 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5842
5843 * varasm.c (align_variable): Give error instead of warning for
5844 unsupported alignment.
5845 (assemble_noswitch_variable): Likewise.
5846
5847 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5848
5849 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5850 cb_file_change.
5851
5852 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5853
5854 * loop-doloop.c (doloop_optimize_loops): Remove unused
5855 loop iterator argument from FOR_EACH_LOOP.
5856
5857 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5858
5859 Convert gimple types from a union to C++ inheritance.
5860 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5861 * coretypes.h (union gimple_statement_d): Remove declaration.
5862 (gimple): Convert from being a "union gimple_statement_d *"
5863 to a "struct gimple_statement_base *".
5864 (const_gimple): Likewise (with "const").
5865 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5866 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5867 * gimple-pretty-print.c (debug): Change parameter from a
5868 "gimple_statement_d &" to a "gimple_statement_base &".
5869 (debug): Change parameter from a "gimple_statement_d *" to
5870 a "gimple_statement_base *".
5871 * gimple-pretty-print.h (debug): Update declarations as above.
5872 * gimple.c (gimple_alloc_stat): Update for renaming of
5873 ggc_alloc_cleared_gimple_statement_d_stat to
5874 ggc_alloc_cleared_gimple_statement_stat.
5875 * gimple.h: Include "is-a.h" for use by is_a_helper
5876 specializations in followup autogenerated patch.
5877 (struct gimple statement_base): Make this type usable as a base
5878 class by adding "desc", "tag" and "variable_size" to GTY, thus
5879 using opting-in to gengtype's support for simple inheritance.
5880 (gimple_statement_with_ops_base): Convert to a subclass of
5881 gimple_statement_base, dropping initial "gsbase" field. Note that
5882 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5883 (gimple_statement_with_ops): Convert to a subclass of
5884 gimple_statement_with_ops_base, dropping initial "opbase" field.
5885 Add tag value to GTY marking. Update marking of op field to
5886 reflect how num_ops field is accessed via inheritance.
5887 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5888 gimple_statement_with_ops_base, dropping initial "opbase" field.
5889 Add tag value to GTY marking.
5890 (gimple_statement_with_memory_ops): Convert to a subclass of
5891 public gimple_statement_with_memory_ops_base, dropping initial
5892 "membase" field. Add tag value to GTY marking. Update marking
5893 of op field to reflect how num_ops field is accessed via inheritance.
5894 (gimple_statement_call): Analogous changes that also update the
5895 marking of the "u" union.
5896 (gimple_statement_omp): Convert to a subclass of
5897 gimple_statement_base, dropping initial "gsbase" field, adding
5898 tag value to GTY marking.
5899 (gimple_statement_bind): Likewise.
5900 (gimple_statement_catch): Likewise.
5901 (gimple_statement_eh_filter): Likewise.
5902 (gimple_statement_eh_else): Likewise.
5903 (gimple_statement_eh_mnt): Likewise.
5904 (gimple_statement_phi): Likewise.
5905 (gimple_statement_eh_ctrl): Likewise.
5906 (gimple_statement_try): Likewise.
5907 (gimple_statement_wce): Likewise.
5908 (gimple_statement_asm): Convert to a subclass of
5909 gimple_statement_with_memory_ops_base, dropping initial
5910 "membase" field, adding tag value to GTY marking, and updating
5911 marking of op field.
5912 (gimple_statement_omp_critical): Convert to a subclass of
5913 gimple_statement_omp, dropping initial "omp" field, adding tag
5914 value to GTY marking.
5915 (gimple_statement_omp_for): Likewise.
5916 (gimple_statement_omp_parallel): Likewise.
5917 (gimple_statement_omp_task): Convert to a subclass of
5918 gimple_statement_omp_parallel, dropping initial "par" field,
5919 adding tag value to GTY marking.
5920 (gimple_statement_omp_sections): Convert to a subclass of
5921 gimple_statement_omp, dropping initial "omp" field, adding
5922 tag value to GTY marking.
5923 (gimple_statement_omp_continue): Convert to a subclass of
5924 gimple_statement_base, dropping initial "gsbase" field, adding
5925 tag value to GTY marking.
5926 (gimple_statement_omp_single): Convert to a subclass of
5927 gimple_statement_omp, dropping initial "omp" field, adding
5928 tag value to GTY marking.
5929 (gimple_statement_omp_atomic_load): Convert to a subclass of
5930 gimple_statement_base, dropping initial "gsbase" field, adding
5931 tag value to GTY marking.
5932 (gimple_statement_omp_atomic_store): Convert to a subclass of
5933 gimple_statement_base, dropping initial "gsbase" field, adding
5934 tag value to GTY marking.
5935 (gimple_statement_transaction): Convert to a subclass of
5936 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5937 field, adding tag value to GTY marking.
5938 (union gimple_statement_d): Remove.
5939 * system.h (CONST_CAST_GIMPLE): Update to use
5940 "struct gimple_statement_base *" rather than
5941 "union gimple_statement_d *".
5942 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5943 gimple_statement_d to gimple_statement_base.
5944
5945 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5946 (gimple_set_use_ops): Port from union to usage of as_a.
5947 (gimple_set_vuse): Likewise.
5948 (gimple_set_vdef): Likewise.
5949 (gimple_call_internal_fn): Port from union to a static_cast,
5950 given that the type has already been asserted.
5951 (gimple_omp_body_ptr): Port from unchecked union usage to
5952 a static_cast.
5953 (gimple_omp_set_body): Likewise.
5954
5955 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5956 gimple types to a true class hierarchy.
5957 (update_call_edge_frequencies): Likewise.
5958 (gsi_insert_seq_nodes_before): Likewise.
5959 (gsi_insert_seq_nodes_after): Likewise.
5960 (gsi_split_seq_after): Likewise.
5961 (gsi_set_stmt): Likewise.
5962 (gsi_split_seq_before): Likewise.
5963 (gsi_remove): Likewise.
5964 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5965 (gsi_next): Likewise.
5966 (gsi_prev): Likewise.
5967 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5968 * gimple-ssa.h (gimple_vuse_op): Likewise.
5969 (gimple_vdef_op): Likewise.
5970 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5971 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5972 * gimple.c (gimple_set_code): Likewise.
5973 (gimple_alloc_stat): Likewise.
5974 (gimple_set_subcode): Likewise.
5975 (gimple_build_call_internal_1): Likewise.
5976 (gimple_check_failed): Likewise.
5977 (gimple_call_flags): Likewise.
5978 (gimple_set_bb): Likewise.
5979 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5980 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5981 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5982 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5983 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5984 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5985 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5986 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5987 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5988 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5989 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5990 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5991 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5992 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5993 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5994 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5995 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5996 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5997 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5998 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5999 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
6000 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
6001 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
6002 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
6003 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
6004 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
6005 Likewise.
6006 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
6007 Likewise.
6008 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
6009 Likewise.
6010 (is_a_helper <const gimple_statement_omp_atomic_store>
6011 (const_gimple)): Likewise.
6012 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
6013 Likewise.
6014 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
6015 Likewise.
6016 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
6017 Likewise.
6018 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
6019 Likewise.
6020 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
6021 Likewise.
6022 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
6023 Likewise.
6024 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
6025 Likewise.
6026 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
6027 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
6028 Likewise.
6029 (gimple_seq_last): Update for conversion of gimple types to a true
6030 class hierarchy.
6031 (gimple_seq_set_last): Likewise.
6032 (gimple_code): Likewise.
6033 (gimple_bb): Likewise.
6034 (gimple_block): Likewise.
6035 (gimple_set_block): Likewise.
6036 (gimple_location): Likewise.
6037 (gimple_location_ptr): Likewise.
6038 (gimple_set_location): Likewise.
6039 (gimple_no_warning_p): Likewise.
6040 (gimple_set_no_warning): Likewise.
6041 (gimple_set_visited): Likewise.
6042 (gimple_visited_p): Likewise.
6043 (gimple_set_plf): Likewise.
6044 (gimple_plf): Likewise.
6045 (gimple_set_uid): Likewise.
6046 (gimple_uid): Likewise.
6047 (gimple_init_singleton): Likewise.
6048 (gimple_modified_p): Likewise.
6049 (gimple_set_modified): Likewise.
6050 (gimple_expr_code): Likewise.
6051 (gimple_has_volatile_ops): Likewise.
6052 (gimple_set_has_volatile_ops): Likewise.
6053 (gimple_omp_subcode): Likewise.
6054 (gimple_omp_set_subcode): Likewise.
6055 (gimple_omp_return_set_nowait): Likewise.
6056 (gimple_omp_section_set_last): Likewise.
6057 (gimple_omp_parallel_set_combined_p): Likewise.
6058 (gimple_omp_atomic_set_need_value): Likewise.
6059 (gimple_omp_atomic_set_seq_cst): Likewise.
6060 (gimple_num_ops): Likewise.
6061 (gimple_set_num_ops): Likewise.
6062 (gimple_assign_nontemporal_move_p): Likewise.
6063 (gimple_assign_set_nontemporal_move): Likewise.
6064 (gimple_assign_rhs_code): Likewise.
6065 (gimple_assign_set_rhs_code): Likewise.
6066 (gimple_call_internal_p): Likewise.
6067 (gimple_call_with_bounds_p): Likewise.
6068 (gimple_call_set_with_bounds): Likewise.
6069 (gimple_call_set_tail): Likewise.
6070 (gimple_call_tail_p): Likewise.
6071 (gimple_call_set_return_slot_opt): Likewise.
6072 (gimple_call_return_slot_opt_p): Likewise.
6073 (gimple_call_set_from_thunk): Likewise.
6074 (gimple_call_from_thunk_p): Likewise.
6075 (gimple_call_set_va_arg_pack): Likewise.
6076 (gimple_call_va_arg_pack_p): Likewise.
6077 (gimple_call_set_nothrow): Likewise.
6078 (gimple_call_set_alloca_for_var): Likewise.
6079 (gimple_call_alloca_for_var_p): Likewise.
6080 (gimple_call_copy_flags): Likewise.
6081 (gimple_cond_code): Likewise.
6082 (gimple_cond_set_code): Likewise.
6083 (gimple_cond_make_false): Likewise.
6084 (gimple_cond_make_true): Likewise.
6085 (gimple_asm_volatile_p): Likewise.
6086 (gimple_asm_set_volatile): Likewise.
6087 (gimple_asm_set_input): Likewise.
6088 (gimple_asm_input_p): Likewise.
6089 (gimple_try_kind): Likewise.
6090 (gimple_try_set_kind): Likewise.
6091 (gimple_try_catch_is_cleanup): Likewise.
6092 (gimple_try_set_catch_is_cleanup): Likewise.
6093 (gimple_wce_cleanup_eh_only): Likewise.
6094 (gimple_wce_set_cleanup_eh_only): Likewise.
6095 (gimple_debug_bind_p): Likewise.
6096 (gimple_debug_source_bind_p): Likewise.
6097 (gimple_omp_for_set_kind): Likewise.
6098 (gimple_omp_for_set_combined_p): Likewise.
6099 (gimple_omp_for_set_combined_into_p): Likewise.
6100 (gimple_omp_target_set_kind): Likewise.
6101 (gimple_transaction_subcode): Likewise.
6102 (gimple_transaction_set_subcode): Likewise.
6103 (gimple_predict_predictor): Likewise.
6104 (gimple_predict_set_predictor): Likewise.
6105 (gimple_predict_outcome): Likewise.
6106 (gimple_predict_set_outcome): Likewise.
6107 (gimple_transaction_set_label): Likewise.
6108 (gimple_transaction_set_body): Likewise.
6109 (gimple_transaction_label_ptr): Likewise.
6110 (gimple_transaction_label): Likewise.
6111 (gimple_transaction_body_ptr): Likewise.
6112 (gimple_omp_continue_set_control_use): Likewise.
6113 (gimple_omp_continue_control_use_ptr): Likewise.
6114 (gimple_omp_continue_control_use): Likewise.
6115 (gimple_omp_continue_set_control_def): Likewise.
6116 (gimple_omp_continue_control_def_ptr): Likewise.
6117 (gimple_omp_continue_control_def): Likewise.
6118 (gimple_omp_atomic_load_rhs_ptr): Likewise.
6119 (gimple_omp_atomic_load_rhs): Likewise.
6120 (gimple_omp_atomic_load_set_rhs): Likewise.
6121 (gimple_omp_atomic_load_lhs_ptr): Likewise.
6122 (gimple_omp_atomic_load_lhs): Likewise.
6123 (gimple_omp_atomic_load_set_lhs): Likewise.
6124 (gimple_omp_atomic_store_val_ptr): Likewise.
6125 (gimple_omp_atomic_store_val): Likewise.
6126 (gimple_omp_atomic_store_set_val): Likewise.
6127 (gimple_omp_for_cond): Likewise.
6128 (gimple_omp_for_set_cond): Likewise.
6129 (gimple_omp_sections_set_control): Likewise.
6130 (gimple_omp_sections_control_ptr): Likewise.
6131 (gimple_omp_sections_control): Likewise.
6132 (gimple_omp_sections_set_clauses): Likewise.
6133 (gimple_omp_sections_clauses_ptr): Likewise.
6134 (gimple_omp_sections_clauses): Likewise.
6135 (gimple_omp_teams_set_clauses): Likewise.
6136 (gimple_omp_teams_clauses_ptr): Likewise.
6137 (gimple_omp_teams_clauses): Likewise.
6138 (gimple_omp_target_set_data_arg): Likewise.
6139 (gimple_omp_target_data_arg_ptr): Likewise.
6140 (gimple_omp_target_data_arg): Likewise.
6141 (gimple_omp_target_set_child_fn): Likewise.
6142 (gimple_omp_target_child_fn_ptr): Likewise.
6143 (gimple_omp_target_child_fn): Likewise.
6144 (gimple_omp_target_set_clauses): Likewise.
6145 (gimple_omp_target_clauses_ptr): Likewise.
6146 (gimple_omp_target_clauses): Likewise.
6147 (gimple_omp_single_set_clauses): Likewise.
6148 (gimple_omp_single_clauses_ptr): Likewise.
6149 (gimple_omp_single_clauses): Likewise.
6150 (gimple_omp_task_set_arg_align): Likewise.
6151 (gimple_omp_task_arg_align_ptr): Likewise.
6152 (gimple_omp_task_arg_align): Likewise.
6153 (gimple_omp_task_set_arg_size): Likewise.
6154 (gimple_omp_task_arg_size_ptr): Likewise.
6155 (gimple_omp_task_arg_size): Likewise.
6156 (gimple_omp_task_set_copy_fn): Likewise.
6157 (gimple_omp_task_copy_fn_ptr): Likewise.
6158 (gimple_omp_task_copy_fn): Likewise.
6159 (gimple_omp_task_set_data_arg): Likewise.
6160 (gimple_omp_task_data_arg_ptr): Likewise.
6161 (gimple_omp_task_data_arg): Likewise.
6162 (gimple_omp_task_set_child_fn): Likewise.
6163 (gimple_omp_task_child_fn_ptr): Likewise.
6164 (gimple_omp_task_child_fn): Likewise.
6165 (gimple_omp_task_set_clauses): Likewise.
6166 (gimple_omp_task_clauses_ptr): Likewise.
6167 (gimple_omp_task_clauses): Likewise.
6168 (gimple_omp_parallel_set_data_arg): Likewise.
6169 (gimple_omp_parallel_data_arg_ptr): Likewise.
6170 (gimple_omp_parallel_data_arg): Likewise.
6171 (gimple_omp_parallel_set_child_fn): Likewise.
6172 (gimple_omp_parallel_child_fn_ptr): Likewise.
6173 (gimple_omp_parallel_child_fn): Likewise.
6174 (gimple_omp_parallel_set_clauses): Likewise.
6175 (gimple_omp_parallel_clauses_ptr): Likewise.
6176 (gimple_omp_parallel_clauses): Likewise.
6177 (gimple_omp_for_set_pre_body): Likewise.
6178 (gimple_omp_for_pre_body_ptr): Likewise.
6179 (gimple_omp_for_set_incr): Likewise.
6180 (gimple_omp_for_incr_ptr): Likewise.
6181 (gimple_omp_for_incr): Likewise.
6182 (gimple_omp_for_set_final): Likewise.
6183 (gimple_omp_for_final_ptr): Likewise.
6184 (gimple_omp_for_final): Likewise.
6185 (gimple_omp_for_set_initial): Likewise.
6186 (gimple_omp_for_initial_ptr): Likewise.
6187 (gimple_omp_for_initial): Likewise.
6188 (gimple_omp_for_set_index): Likewise.
6189 (gimple_omp_for_index_ptr): Likewise.
6190 (gimple_omp_for_index): Likewise.
6191 (gimple_omp_for_collapse): Likewise.
6192 (gimple_omp_for_set_clauses): Likewise.
6193 (gimple_omp_for_clauses_ptr): Likewise.
6194 (gimple_omp_for_clauses): Likewise.
6195 (gimple_omp_critical_set_name): Likewise.
6196 (gimple_omp_critical_name_ptr): Likewise.
6197 (gimple_omp_critical_name): Likewise.
6198 (gimple_eh_dispatch_set_region): Likewise.
6199 (gimple_eh_dispatch_region): Likewise.
6200 (gimple_resx_set_region): Likewise.
6201 (gimple_resx_region): Likewise.
6202 (gimple_phi_set_arg): Likewise.
6203 (gimple_phi_arg): Likewise.
6204 (gimple_phi_set_result): Likewise.
6205 (gimple_phi_result_ptr): Likewise.
6206 (gimple_phi_result): Likewise.
6207 (gimple_phi_num_args): Likewise.
6208 (gimple_phi_capacity): Likewise.
6209 (gimple_wce_set_cleanup): Likewise.
6210 (gimple_wce_cleanup_ptr): Likewise.
6211 (gimple_try_set_cleanup): Likewise.
6212 (gimple_try_set_eval): Likewise.
6213 (gimple_try_cleanup_ptr): Likewise.
6214 (gimple_try_eval_ptr): Likewise.
6215 (gimple_eh_else_set_e_body): Likewise.
6216 (gimple_eh_else_set_n_body): Likewise.
6217 (gimple_eh_else_e_body_ptr): Likewise.
6218 (gimple_eh_else_n_body_ptr): Likewise.
6219 (gimple_eh_must_not_throw_set_fndecl): Likewise.
6220 (gimple_eh_must_not_throw_fndecl): Likewise.
6221 (gimple_eh_filter_set_failure): Likewise.
6222 (gimple_eh_filter_set_types): Likewise.
6223 (gimple_eh_filter_failure_ptr): Likewise.
6224 (gimple_eh_filter_types_ptr): Likewise.
6225 (gimple_eh_filter_types): Likewise.
6226 (gimple_catch_set_handler): Likewise.
6227 (gimple_catch_set_types): Likewise.
6228 (gimple_catch_handler_ptr): Likewise.
6229 (gimple_catch_types_ptr): Likewise.
6230 (gimple_catch_types): Likewise.
6231 (gimple_asm_string): Likewise.
6232 (gimple_asm_set_label_op): Likewise.
6233 (gimple_asm_label_op): Likewise.
6234 (gimple_asm_set_clobber_op): Likewise.
6235 (gimple_asm_clobber_op): Likewise.
6236 (gimple_asm_set_output_op): Likewise.
6237 (gimple_asm_output_op_ptr): Likewise.
6238 (gimple_asm_output_op): Likewise.
6239 (gimple_asm_set_input_op): Likewise.
6240 (gimple_asm_input_op_ptr): Likewise.
6241 (gimple_asm_input_op): Likewise.
6242 (gimple_asm_nlabels): Likewise.
6243 (gimple_asm_nclobbers): Likewise.
6244 (gimple_asm_noutputs): Likewise.
6245 (gimple_asm_ninputs): Likewise.
6246 (gimple_bind_set_block): Likewise.
6247 (gimple_bind_block): Likewise.
6248 (gimple_bind_add_seq): Likewise.
6249 (gimple_bind_add_stmt): Likewise.
6250 (gimple_bind_set_body): Likewise.
6251 (gimple_bind_body_ptr): Likewise.
6252 (gimple_bind_append_vars): Likewise.
6253 (gimple_bind_set_vars): Likewise.
6254 (gimple_bind_vars): Likewise.
6255 (gimple_call_clobber_set): Likewise.
6256 (gimple_call_use_set): Likewise.
6257 (gimple_call_set_internal_fn): Likewise.
6258 (gimple_call_set_fntype): Likewise.
6259 (gimple_call_fntype): Likewise.
6260 (gimple_omp_return_lhs_ptr): Likewise.
6261 (gimple_omp_return_lhs): Likewise.
6262 (gimple_omp_return_set_lhs): Likewise.
6263 (gimple_omp_taskreg_set_data_arg): Likewise.
6264 (gimple_omp_taskreg_data_arg_ptr): Likewise.
6265 (gimple_omp_taskreg_data_arg): Likewise.
6266 (gimple_omp_taskreg_set_child_fn): Likewise.
6267 (gimple_omp_taskreg_child_fn_ptr): Likewise.
6268 (gimple_omp_taskreg_child_fn): Likewise.
6269 (gimple_omp_taskreg_set_clauses): Likewise.
6270 (gimple_omp_taskreg_clauses_ptr): Likewise.
6271 (gimple_omp_taskreg_clauses): Likewise.
6272 (gimple_vuse): Likewise.
6273 (gimple_vdef): Likewise.
6274 (gimple_vuse_ptr): Likewise.
6275 (gimple_vdef_ptr): Likewise.
6276 * tree-inline.c (copy_debug_stmt): Likewise.
6277 * tree-phinodes.c (make_phi_node): Likewise.
6278
6279 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6280 (is_a_helper <gimple_statement_with_ops>::test): New.
6281 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6282 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6283
6284 * gimple-streamer-in.c (input_gimple_stmt): Port from union
6285 access to use of as_a.
6286 * gimple.c (gimple_build_asm_1): Likewise.
6287 (gimple_build_try): Likewise. Also, return a specific subclass
6288 rather than just gimple.
6289 (gimple_build_resx): Port from union access to use of as_a.
6290 (gimple_build_eh_dispatch): Likewise.
6291 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
6292 now that gengtype no longer provides a typed allocator function.
6293 (gimple_copy): Likewise.
6294 * gimple.h (gimple_build_try): Return a specific subclass rather
6295 than just gimple.
6296 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6297 with subclass access by making use of new return type of
6298 gimple_build_try.
6299 * tree-phinodes.c: (allocate_phi_node): Return a
6300 "gimple_statement_phi *" rather than just a gimple.
6301 (resize_phi_node): Likewise.
6302 (make_phi_node): Replace union access with subclass access by
6303 making use of new return type of allocate_phi_node.
6304 (reserve_phi_args_for_new_edge): Replace union access with as_a.
6305 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6306 than just a gimple.
6307 (remove_phi_args): Update for change to remove_phi_arg_num.
6308
6309 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6310 code field to reflect inheritance, rather than embedding of
6311 the base gimple type.
6312
6313 2013-11-19 Richard Biener <rguenther@suse.de>
6314
6315 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6316 and destructor and make fel_next a member function.
6317 (fel_next): Transform into ...
6318 (loop_iterator::next): ... this.
6319 (fel_init): Transform into ...
6320 (loop_iterator::loop_iterator): ... this.
6321 (loop_iterator::~loop_iterator): New.
6322 (FOR_EACH_LOOP): Remove loop-iterator argument.
6323 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6324 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6325 graphite-clast-to-gimple.c, graphite-scop-detection.c,
6326 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6327 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6328 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6329 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6330 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6331 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6332 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6333 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6334 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6335 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
6336 FOR_EACH_LOOP_BREAK with break.
6337
6338 2013-11-19 Richard Biener <rguenther@suse.de>
6339
6340 PR tree-optimization/59164
6341 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6342 Uncomment assert.
6343 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6344 whether we can create an epilogue loop to reflect thecases where
6345 we create one.
6346
6347 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
6348
6349 * graphite-sese-to-poly.c: Include expr.h.
6350
6351 2013-11-19 Richard Biener <rguenther@suse.de>
6352
6353 PR middle-end/58956
6354 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6355 loads into stmts that may clobber it.
6356
6357 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
6358
6359 * cgraphunit.c (symtab_terminator): New variable.
6360 (queued_nodes): Renamed from first. Use symtab_terminator as
6361 initializer.
6362 (analyze_functions): Adjust accordingly.
6363 (cgraph_process_new_functions): Return void.
6364 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6365
6366 2013-11-19 Marek Polacek <polacek@redhat.com>
6367
6368 * opts.c (common_handle_option): Add -fsanitize=null option.
6369 Turn off -fdelete-null-pointer-checks option when doing the
6370 NULL pointer checking.
6371 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6372 * tree-pass.h (make_pass_ubsan): Declare.
6373 (make_pass_sanopt): Declare.
6374 * timevar.def (TV_TREE_UBSAN): New timevar.
6375 * passes.def: Add pass_sanopt and pass_ubsan.
6376 * ubsan.h (ubsan_null_ckind): New enum.
6377 (ubsan_mismatch_data): New struct.
6378 (ubsan_expand_null_ifn): Declare.
6379 (ubsan_create_data): Adjust declaration.
6380 (ubsan_type_descriptor): Likewise.
6381 * asan.c: Include "ubsan.h".
6382 (pass_data_sanopt): New pass.
6383 (execute_sanopt): New function.
6384 (gate_sanopt): Likewise.
6385 (make_pass_sanopt): Likewise.
6386 (class pass_sanopt): New class.
6387 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6388 gimple-iterator.h and cfgloop.h.
6389 (PROB_VERY_UNLIKELY): Define.
6390 (tree_type_map_hash): New function.
6391 (ubsan_type_descriptor): Add new parameter.
6392 Improve type name generation.
6393 (ubsan_create_data): Add new parameter. Add pointer data into
6394 ubsan structure.
6395 (ubsan_expand_null_ifn): New function.
6396 (instrument_member_call): Likewise.
6397 (instrument_mem_ref): Likewise.
6398 (instrument_null): Likewise.
6399 (ubsan_pass): Likewise.
6400 (gate_ubsan): Likewise.
6401 (make_pass_ubsan): Likewise.
6402 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6403 (class pass_ubsan): New class.
6404 (pass_data_ubsan): New pass.
6405 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6406 * internal-fn.c (expand_UBSAN_NULL): New function.
6407 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6408 even when !flag_toplevel_reorder.
6409 * internal-fn.def (UBSAN_NULL): New.
6410
6411 2013-11-19 Jan Hubicka <jh@suse.cz>
6412
6413 * cgraph.c (cgraph_create_indirect_edge): Use
6414 get_polymorphic_call_info.
6415 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6416 maybe_in_construction and maybe_derived_type.
6417 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6418 (ipa_dummy_polymorphic_call_context): New global var.
6419 (possible_polymorphic_call_targets): Add context paramter.
6420 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6421 (possible_polymorphic_call_target_p): Likewise.
6422 (get_polymorphic_call_info): New function.
6423 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6424 (add_type_duplicate): Remove forgotten debug output.
6425 (method_class_type): Add sanity check.
6426 (maybe_record_node): Add FINALP parameter.
6427 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6428 by info by get_binfo_at_offset.
6429 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6430 parameters; pass them to record-binfo.
6431 (polymorphic_call_target_d): Add context and FINAL.
6432 (polymorphic_call_target_hasher::hash): Hash context.
6433 (polymorphic_call_target_hasher::equal): Compare context.
6434 (free_polymorphic_call_targets_hash):
6435 (get_class_context): New function.
6436 (contains_type_p): New function.
6437 (get_polymorphic_call_info): New function.
6438 (walk_bases): New function.
6439 (possible_polymorphic_call_targets): Add context parameter; honnor it.
6440 (dump_possible_polymorphic_call_targets): Dump context.
6441 (possible_polymorphic_call_target_p): Add context.
6442 (update_type_inheritance_graph): Update comment.s
6443 (ipa_set_jf_known_type): Assert that compoentn type is known.
6444 (ipa_note_param_call): Do not tamper with offsets.
6445 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6446 outer type.
6447 (update_indirect_edges_after_inlining): Likewise.
6448 (ipa_write_indirect_edge_info): Stream new fields.
6449 (ipa_read_indirect_edge_info): Stream in new fields.
6450
6451 2013-11-19 Jan Hubicka <jh@suse.cz>
6452
6453 * tree-pretty-print.c (dump_generic_node): Print class type of
6454 OBJ_TYPE_REF.
6455
6456 2013-11-19 Joey Ye <joey.ye@arm.com>
6457
6458 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6459 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6460 for new option.
6461 * config/arm/arm.c (arm_option_override): By default disable
6462 -marm-pic-data-is-text-relative.
6463 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6464 (arm_assemble_integer): Likewise.
6465 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6466 New macro to initialize -marm-pic-data-is-text-relative.
6467
6468 2013-11-19 Bin Cheng <bin.cheng@arm.com>
6469
6470 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6471 (address_cost_data): New field.
6472 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6473 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
6474
6475 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6476
6477 * config/aarch64/aarch64.md: Remove v8type from all insns.
6478
6479 2013-11-19 Richard Biener <rguenther@suse.de>
6480
6481 PR tree-optimization/57517
6482 * tree-predcom.c (combinable_refs_p): Verify the combination
6483 is always executed when the refs are.
6484
6485 2013-11-19 Jeff Law <law@redhat.com>
6486
6487 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6488 (copy_phi_arg_into_existing_phi): New function.
6489 (any_remaining_duplicated_blocks): Likewise.
6490 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6491 blocks on a jump threading path.
6492
6493 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6494 thread through a joiner which has the latch edge.
6495
6496 2013-11-19 Jan Hubicka <jh@suse.cz>
6497
6498 * md.texi (setmem): Document new parameter.
6499 * optabs.c (maybe_gen_insn): Support 9 operands.
6500 * builtins.c (determine_block_size): Add probable_max_size;
6501 support anti-ranges.
6502 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6503 probable_max_size.
6504 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6505 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6506 Likewise.
6507 * expr.h (emit_block_move_hints, clear_storage_hints,
6508 set_storage_via_setmem): Update prototype.
6509 * i386.md (setmem, movmem patterns): Add 9th operand.
6510 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6511 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6512 argument; pass it to decide_alg.
6513
6514 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6515
6516 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6517 (n_basic_blocks_for_fn): ...this.
6518
6519 (n_basic_blocks): Eliminate macro as work towards making uses of
6520 cfun be explicit.
6521
6522 * cfgloop.c (init_loops_structure): Update for renaming of
6523 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6524 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6525 * ipa-utils.c (ipa_merge_profiles): Likewise.
6526 * lto-streamer-in.c (make_new_block): Likewise.
6527 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6528 (dump_function_to_file): Likewise.
6529
6530 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6531 macro with "n_basic_blocks_for_fn (cfun)".
6532 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6533 (duplicate_computed_gotos): Likewise.
6534 (reorder_basic_blocks): Likewise.
6535 * bt-load.c (augment_live_range): Likewise.
6536 * cfg.c (expunge_block): Likewise.
6537 (compact_blocks): Likewise.
6538 * cfganal.c (single_pred_before_succ_order): Likewise.
6539 (compute_idf): Likewise.
6540 (flow_dfs_compute_reverse_init): Likewise.
6541 (pre_and_rev_post_order_compute): Likewise.
6542 (pre_and_rev_post_order_compute_fn): Likewise.
6543 (inverted_post_order_compute): Likewise.
6544 (post_order_compute): Likewise.
6545 (print_edge_list): Likewise.
6546 (find_unreachable_blocks): Likewise.
6547 (mark_dfs_back_edges): Likewise.
6548 * cfgcleanup.c (try_optimize_cfg): Likewise.
6549 (try_forward_edges): Likewise.
6550 * cfghooks.c (dump_flow_info): Likewise.
6551 * cfgloop.c (verify_loop_structure): Likewise.
6552 (get_loop_body): Likewise.
6553 (flow_loops_find): Likewise.
6554 * cfgloopmanip.c (add_loop): Likewise.
6555 (remove_path): Likewise.
6556 (find_path): Likewise.
6557 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6558 (rtl_verify_bb_layout): Likewise.
6559 (entry_of_function): Likewise.
6560 (rtl_create_basic_block): Likewise.
6561 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6562 * cprop.c (one_cprop_pass): Likewise.
6563 (is_too_expensive): Likewise.
6564 * df-core.c (df_compute_cfg_image): Likewise.
6565 (df_compact_blocks): Likewise.
6566 (df_worklist_dataflow_doublequeue): Likewise.
6567 * dominance.c (calculate_dominance_info): Likewise.
6568 (calc_dfs_tree): Likewise.
6569 (calc_dfs_tree_nonrec): Likewise.
6570 (init_dom_info): Likewise.
6571 * domwalk.c (cmp_bb_postorder): Likewise.
6572 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6573 (generate_setjmp_warnings): Likewise.
6574 * fwprop.c (build_single_def_use_links): Likewise.
6575 * gcse.c (is_too_expensive): Likewise.
6576 (one_code_hoisting_pass): Likewise.
6577 (one_pre_gcse_pass): Likewise.
6578 * graphite.c (graphite_initialize): Likewise.
6579 * haifa-sched.c (haifa_sched_init): Likewise.
6580 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6581 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6582 * ira-build.c (ira_build): Likewise.
6583 * lcm.c (compute_nearerout): Likewise.
6584 (compute_available): Likewise.
6585 (compute_laterin): Likewise.
6586 (compute_antinout_edge): Likewise.
6587 * lra-lives.c (lra_create_live_ranges): Likewise.
6588 * lra.c (has_nonexceptional_receiver): Likewise.
6589 * mcf.c (create_fixup_graph): Likewise.
6590 * profile.c (branch_prob): Likewise.
6591 * reg-stack.c (convert_regs_2): Likewise.
6592 * regrename.c (regrename_analyze): Likewise.
6593 * reload1.c (has_nonexceptional_receiver): Likewise.
6594 * reorg.c (dbr_schedule): Likewise.
6595 * sched-deps.c (sched_deps_init): Likewise.
6596 * sched-ebb.c (schedule_ebbs): Likewise.
6597 * sched-rgn.c (extend_regions): Likewise.
6598 (schedule_insns): Likewise.
6599 (sched_rgn_init): Likewise.
6600 (extend_rgns): Likewise.
6601 (haifa_find_rgns): Likewise.
6602 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6603 (sel_recompute_toporder): Likewise.
6604 * sel-sched.c (run_selective_scheduling): Likewise.
6605 * store-motion.c (one_store_motion_pass): Likewise.
6606 (remove_reachable_equiv_notes): Likewise.
6607 * tracer.c (tracer): Likewise.
6608 (tail_duplicate): Likewise.
6609 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6610 (dump_cfg_stats): Likewise.
6611 (gimple_dump_cfg): Likewise.
6612 (create_bb): Likewise.
6613 (build_gimple_cfg): Likewise.
6614 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6615 * tree-inline.c (optimize_inline_calls): Likewise.
6616 (fold_marked_statements): Likewise.
6617 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6618 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6619 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6620 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6621 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6622 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6623 * tree-ssa-pre.c (do_pre): Likewise.
6624 (init_pre): Likewise.
6625 (compute_avail): Likewise.
6626 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6627 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6628 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6629 (init_worklist): Likewise.
6630 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6631 * var-tracking.c (variable_tracking_main_1): Likewise.
6632 (vt_find_locations): Likewise.
6633 (vt_stack_adjustments): Likewise.
6634 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6635 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6636
6637 2013-11-18 Jan Hubicka <jh@suse.cz>
6638
6639 * profile.c (compute_branch_probabilities): Do not sanity check
6640 run_max.
6641
6642 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6643
6644 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6645 GET_MODE_PRECISION.
6646 * fold-const.c (fold_single_bit_test_into_sign_test)
6647 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6648
6649 2013-11-18 Teresa Johnson <tejohnson@google.com>
6650
6651 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6652 cfglayout after bb reordering.
6653 * passes.def: Move compgotos before bb reordering since it goes into
6654 cfglayout.
6655
6656 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6657
6658 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6659 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6660 static.
6661 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6662 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6663 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6664 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6665 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6666 Remove all_lto_gen_passes.
6667 * passes.c (pass_manager::dump_passes): Remove its use.
6668 (pass_manager::register_pass): Likewise.
6669 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6670 (pass_manager::pass_manager): Don't initialize or use it.
6671 (write_lto): New static function.
6672 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6673 instead of using all_lto_gen_passes.
6674 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6675 pass_ipa_lto_finish_out): Delete.
6676 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6677 make_pass_ipa_lto_finish_out): Don't declare.
6678
6679 2013-11-18 Jeff Law <law@redhat.com>
6680
6681 * tree-ssa-threadupdate.c (redirection_data): Record two
6682 duplicated blocks instead of just one.
6683 (local_info): Explain why we don't create a template for the
6684 second duplicated block in a thread path.
6685 (create_block_for_threading): Accept argument indicating array
6686 index into redirection_data to store its result.
6687 (lookup_redirection_data): Initialize both duplicate blocks.
6688 (ssa_create_duplicates): If a jump threading path needs multiple
6689 blocks duplicated, then duplicate them.
6690 (ssa_fix_duplicate_block_edges): Corresponding changes.
6691 (ssa_fixup_template_block, thread_single_edge): Likewise.
6692
6693 2013-11-18 Marek Polacek <polacek@redhat.com>
6694
6695 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6696
6697 2013-11-18 Andrew Pinski <apinski@cavium.com>
6698 Steve Ellcey <sellcey@mips.com>
6699
6700 PR target/56552
6701 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6702 type restriction from equality_operator on conditonal move.
6703 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6704 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6705
6706 2013-11-18 Jeff Law <law@redhat.com>
6707
6708 * tree-ssa-threadupdate.c: Fix file block comment.
6709 Fix minor indention issue.
6710
6711 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6712
6713 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6714 ix86_address_subreg_operand. Move subreg checks to
6715 ix86_validate_address_register. Move address override check to
6716 ix86_legitimate_address_p.
6717 (ix86_validate_address_register): New function.
6718 (ix86_legitimate_address_p): Call ix86_validate_address_register
6719 to validate base and index registers. Add address override check
6720 from ix86_decompose_address.
6721 (ix86_decompose_address): Remove.
6722
6723 2013-11-18 Richard Biener <rguenther@suse.de>
6724
6725 PR tree-optimization/59125
6726 PR tree-optimization/54570
6727 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6728 is not complete do not treat component-references with offset zero
6729 but different fields as equal.
6730 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6731 (compute_object_sizes): Apply TLC. Propagate the constant
6732 results into all uses and fold their stmts.
6733 * passes.def (pass_all_optimizations): Move pass_object_sizes
6734 after the first pass_forwprop and before pass_fre.
6735
6736 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6737
6738 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6739 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6740 (tree_ctz): Remove cast to unsigned type.
6741 * builtins.c (fold_builtin_memory_op): Likewise.
6742 * dwarf2out.c (descr_info_loc): Likewise.
6743 * godump.c (go_output_typedef): Likewise.
6744 * omp-low.c (expand_omp_simd): Likewise.
6745 * stor-layout.c (excess_unit_span): Likewise.
6746 * tree-object-size.c (addr_object_size): Likewise.
6747 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6748 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6749 (simplify_rotate): Likewise.
6750 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6751 (handle_pointer_plus): Likewise.
6752 * tree-switch-conversion.c (check_range): Likewise.
6753 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6754 * tsan.c (instrument_builtin_call): Likewise.
6755 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6756 * trans-mem.c (tm_log_add): Likewise.
6757 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6758 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6759 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6760 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6761
6762 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6763
6764 * tree.h (host_integerp, tree_low_cst): Delete.
6765 * tree.c (host_integerp, tree_low_cst): Delete.
6766
6767 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6768
6769 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6770 than tree_low_cst.
6771 * fold-const.c (fold_binary_loc): Likewise.
6772 * expr.c (store_constructor): Use tree_to_uhwi rather than
6773 tree_low_cst.
6774 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6775 * stmt.c (emit_case_dispatch_table): Likewise.
6776 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6777
6778 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6779
6780 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6781 config/aarch64/aarch64.c, config/alpha/predicates.md,
6782 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6783 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6784 config/mep/mep-pragma.c, config/mips/mips.c,
6785 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6786 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6787 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6788 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6789 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6790 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6791 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6792 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6793 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6794 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6795
6796 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6797
6798 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6799 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6800 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6801 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6802 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6803 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6804 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6805 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6806 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6807 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6808 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6809
6810 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6811
6812 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6813 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6814
6815 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6816
6817 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6818 than host_integerp.
6819
6820 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6821
6822 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6823 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6824 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6825 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6826 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6827 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6828 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6829 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6830 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6831 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6832 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6833 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6834 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6835 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6836 tree_fits_uhwi_p throughout.
6837
6838 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6839
6840 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6841 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6842 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6843 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6844 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6845 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6846 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6847 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6848 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6849 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6850 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6851 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6852 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6853 throughout.
6854
6855 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6856
6857 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6858 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6859
6860 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6861
6862 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6863 flag if it kills its address, not its post-increment.
6864
6865 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6866
6867 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6868 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6869 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6870 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6871 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6872 (gimple_call_with_bounds_p): New.
6873 (gimple_call_set_with_bounds): New.
6874 (gimple_call_num_nobnd_args): Remove.
6875 (gimple_call_nobnd_arg): Remove.
6876 * tree.h (CALL_WITH_BOUNDS_P): New.
6877 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6878
6879 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6880
6881 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6882 (symtab_node_name): Rename to symtab_node::name.
6883 (cgraph_node_asm_name): Remove.
6884 (varpool_node_asm_name): Remove.
6885 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6886 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6887 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6888 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6889 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6890
6891 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6892
6893 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6894 * config/arm/arm.c (arm_cortex_a53_tune): New.
6895 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6896
6897 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6898
6899 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6900 (case ${target}): Add bdver4.
6901 * config/i386/bdver3.md: Add bdver4.
6902 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6903 -march=native recognize bdver4 processors.
6904 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6905 bdver4 def_and_undef
6906 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6907 (m_BDVER4): New definition.
6908 (m_AMD_MULTIPLE): Includes m_BDVER4.
6909 (processor_target_table): Add bdver4 entry.
6910 (static const char *const cpu_names): Add bdver4 entry.
6911 (software_prefetching_beneficial_p): Add bdver3.
6912 (ix86_option_override_internal): Add bdver4 instruction sets.
6913 (ix86_issue_rate): Add bdver4.
6914 (ix86_adjust_cost): Add bdver4.
6915 (ia32_multipass_dfa_lookahead): Add bdver4.
6916 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6917 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6918 (has_dispatch): Add bdver4.
6919 * config/i386/i386.h (TARGET_BDVER4): New definition.
6920 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6921 (enum processor_type): Add PROCESSOR_BDVER4.
6922 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6923 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6924 * doc/extend.texi: Add details about bdver4.
6925 * doc/invoke.texi: Add details about bdver4. Add
6926 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6927
6928 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6929
6930 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6931 sdmode_stack_slot also in little-endian mode.
6932
6933 2013-11-17 Jan Hubicka <jh@suse.cz>
6934
6935 * doc/md.texi (setmem, movstr): Update documentation.
6936 * builtins.c (determine_block_size): New function.
6937 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6938 (expand_builtin_memset_args): Use it and pass it to
6939 set_storage_via_setmem.
6940 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6941 parameters; update call to expander.
6942 (emit_block_move_hints): Add min_size/max_size parameters.
6943 (clear_storage_hints): Likewise.
6944 (set_storage_via_setmem): Likewise.
6945 (clear_storage): Update.
6946 * expr.h (emit_block_move_hints, clear_storage_hints,
6947 set_storage_via_setmem): Update prototypes.
6948 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6949 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6950 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6951 * i386.md (movmem, setmem): Pass parameters.
6952
6953 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6954
6955 PR target/59153
6956 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6957 reject non-integer subregs.
6958 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6959 Move check for invalid x32 constant addresses ...
6960 (ix86_legitimate_address_p): ... here.
6961
6962 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6963
6964 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6965 parameter and use it in REG_FRAME_RELATED_EXPR note.
6966 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6967 parameter.
6968 (rs6000_emit_prologue): Likewise, but for little endian VSX
6969 stores, pass the source register of the store instead.
6970
6971 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6972
6973 * gimple.h: Reorder prototypes to match .c declaration order, and
6974 remove protyotypes for functions not in gimple.c.
6975 (LABEL): Move to tree-into-ssa.c.
6976 * gimple.c: Remove unused prototypes.
6977 (get_base_address): Move to tree.c.
6978 * tree.c (get_base_address): Relocate from gimple.c.
6979 * builtins.h (validate_gimple_arglist): Add prototype.
6980 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6981 * cfgexpand.h: New File.
6982 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6983 * tree.h (build_addr): Move to tree-nested.h.
6984 * tree-nested.h: New File.
6985 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6986 prototypes.
6987 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6988 * ipa-inline-analysis.c: Include cfgexpand.h.
6989 * cgraphunit.c: Include tree-nested.h.
6990 * omp-low.c: Likewise.
6991 * tree-parloops.c: Likewise.
6992 * gimple-low.h: Likewise.
6993 * tree-profile.h: Likewise.
6994 * expr.c: Include cfgexpand.h.
6995 * tree-affine.c: Likewise.
6996 * tree-ssa.c: Likewise.
6997 * tree-ssa-loop-im.c: Include trans-mem.h.
6998 * tree-ssa-tail-merge.c: Likewise.
6999 * value-prof.c: Include builtins.h and tree-nested.h.
7000 * tree-into-ssa.c (LABEL): Define here.
7001
7002 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7003
7004 * config/arc/arc.c (arc_predicate_delay_insns): New function.
7005 (pass_data_arc_predicate_delay_insns): New pass_data instance.
7006 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
7007 (make_pass_arc_predicate_delay_insns): New function.
7008 (arc_init): Register pass_arc_predicate_delay_insns if
7009 flag_delayed_branch is active.
7010
7011 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7012
7013 * config/arc/constraints.md (Rcq): Simplify register number test.
7014
7015 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7016
7017 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
7018
7019 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
7020
7021 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
7022 is null.
7023
7024 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7025
7026 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
7027 * gimple-pretty-print.c (dump_omp_for): Add case for
7028 GF_OMP_FOR_KIND_CILKSIMD.
7029 * gimple.h (enum gf_mask): Restructure entries to add
7030 GF_OMP_FOR_KIND_CILKSIMD.
7031 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7032 (gimplify_omp_for): Handle CILK_SIMD.
7033 (gimplify_expr): Add ccase for CILK_SIMD.
7034 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7035 (build_outer_var_ref): Same.
7036 (check_omp_nesting_restrictions): Same.
7037 (lower_rec_input_clauses): Same.
7038 (lower_lastprivate_clauses): Same.
7039 (expand_omp_for): Same.
7040 (execute_expand_omp): Check flag_enable_cilkplus.
7041 (execute_lower_omp): Same.
7042 (diagnose_sb_0): Handle CILK_SIMD.
7043 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7044 (setjmp_or_longjmp_p): New.
7045 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7046 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7047 * tree.def: Add tree code for CILK_SIMD.
7048
7049 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7050
7051 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7052 Remove.
7053 (altivec_vperm_<mode>): Revert earlier little endian change.
7054 (*altivec_vperm_<mode>_internal): Remove.
7055 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7056 (*altivec_vperm_<mode>_uns_internal): Remove.
7057 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7058
7059 2013-11-15 Jeff Law <law@redhat.com>
7060
7061 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7062 has_abnormal_or_outgoing_edge. Check for EH edges as well.
7063 * gimple-ssa-isolate-paths.c
7064 (find_implicit_erroneous_behaviour): Corresponding changes.
7065 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7066 (find_explicit_erroneous_behaviour): Likewise.
7067
7068 2013-11-15 Jeff Law <law@redhat.com>
7069
7070 * ifcvt.c (find_cond_trap): Properly handle case where
7071 trap_bb == else_bb.
7072
7073 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
7074
7075 * configure: Regenerate.
7076
7077 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
7078
7079 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7080 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7081 where it is incorrect or missing.
7082
7083 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7084
7085 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7086 host_integerp test.
7087 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7088 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7089 constant.
7090 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7091 pair with a TREE_CODE test and TREE_INT_CST_LOW.
7092 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7093
7094 2013-11-15 Richard Biener <rguenther@suse.de>
7095
7096 PR tree-optimization/50262
7097 * tree-ssa-alias.h (struct pt_solution): Split
7098 vars_contains_global into vars_contains_nonlocal,
7099 vars_contains_escaped and vars_contains_escaped_heap.
7100 * tree-ssa-structalias.c (label_visit): Expand comment.
7101 (handle_lhs_call): Adjust comment.
7102 (set_uids_in_ptset): Set the new flags appropriately.
7103 (pt_solution_set): Adjust.
7104 (pt_solution_set_var): Likewise.
7105 (pt_solution_ior_into): Likewise.
7106 (pt_solution_includes_global): Likewise.
7107 (pt_solutions_intersect_1): Optimize escaped handling.
7108 (compute_points_to_sets): Remove heap variable globalization.
7109 (ipa_escaped_pt): Adjust initializer.
7110 (pass_data_ipa_pta): Do not run TODO_update_ssa.
7111 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7112 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7113
7114 2013-11-15 Richard Biener <rguenther@suse.de>
7115
7116 * tree-loop-distribution.c (tree_loop_distribution): Make sure
7117 to distribute all stores.
7118
7119 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7120
7121 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7122
7123 2013-11-15 Joseph Myers <joseph@codesourcery.com>
7124
7125 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7126 * configure.ac: Determine target_header_dir earlier.
7127 (--with-glibc-version): New configure option.
7128 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7129 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7130 * configure: Regenerate.
7131 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7132 native toolchains for default.
7133 (--with-glibc-version): Document.
7134
7135 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
7136
7137 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7138
7139 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
7140
7141 * lto-streamer-in.c (input function): Call cgraph_create_node if
7142 cgraph_get_node failed.
7143
7144 2013-11-14 Olivier Hainque <hainque@adacore.com>
7145
7146 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7147 defer allocation of DECL_IGNORED_P variables at toplevel unless really
7148 small. Factorize size threshold computation from the existing one.
7149 (expand_used_vars): Refine comment.
7150
7151 2013-11-14 Cong Hou <congh@google.com>
7152
7153 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7154 address field as it can be obtained from dr. Rename the struct.
7155 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7156 steps of data references during sort.
7157 (vect_prune_runtime_alias_test_list): Adjust with the change to
7158 struct dr_with_seg_len.
7159 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7160 Adjust with the change to struct dr_with_seg_len.
7161
7162 2013-11-14 Jeff Law <law@redhat.com>
7163
7164 PR middle-end/59127
7165 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7166 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7167 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7168 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7169 edges, then ignore it. If the statement exhibiting erroneous
7170 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7171 then we can not optimize.
7172 (find_explicit_erroneous_behaviour): Likewise.
7173
7174 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
7175
7176 * gimplify-me.h: New file. Add prototypes.
7177 * gimplify.h: Don't include gimple.h.
7178 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7179 Relocate from gimple.h.
7180 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7181 is_gimple_sizepos): Move to gimplify.h.
7182 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7183 (enum gsi_iterator_update): Move to gimple-iterator.h.
7184 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7185 * gimplify-me.c: New File.
7186 (force_gimple_operand_1, force_gimple_operand,
7187 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7188 gimple_regimplify_operands): Relocate from gimplify.c.
7189 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7190 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7191 gimple_regimplify_operands): Move to gimplify-me.c.
7192 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7193 from gimple.h.
7194 * Makefile.in (OBJS): Add gimplify-me.o
7195 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7196 required.
7197 * cfgloopmanip.c: Likewise.
7198 * cgraphunit.c: Likewise.
7199 * cilk-common.c: Likewise.
7200 * fold-const.c: Likewise.
7201 * function.c: Likewise.
7202 * gimple-expr.c: Likewise.
7203 * gimple-fold.c: Likewise.
7204 * gimple-ssa-strength-reduction.c: Likewise.
7205 * gimple.c: Likewise.
7206 * graphite-clast-to-gimple.c: Likewise.
7207 * graphite-sese-to-poly.c: Likewise.
7208 * ipa-prop.c: Likewise.
7209 * ipa-split.c: Likewise.
7210 * ipa.c: Likewise.
7211 * langhooks.c: Likewise.
7212 * omp-low.c: Likewise.
7213 * sese.c: Likewise.
7214 * stor-layout.c: Likewise.
7215 * targhooks.c: Likewise.
7216 * trans-mem.c: Likewise.
7217 * tree-affine.c: Likewise.
7218 * tree-cfg.c: Likewise.
7219 * tree-cfgcleanup.c: Likewise.
7220 * tree-complex.c: Likewise.
7221 * tree-if-conv.c: Likewise.
7222 * tree-inline.c: Likewise.
7223 * tree-loop-distribution.c: Likewise.
7224 * tree-nested.c: Likewise.
7225 * tree-parloops.c: Likewise.
7226 * tree-predcom.c: Likewise.
7227 * tree-profile.c: Likewise.
7228 * tree-scalar-evolution.c: Likewise.
7229 * tree-sra.c: Likewise.
7230 * tree-ssa-address.c: Likewise.
7231 * tree-ssa-ccp.c: Likewise.
7232 * tree-ssa-dce.c: Likewise.
7233 * tree-ssa-forwprop.c: Likewise.
7234 * tree-ssa-ifcombine.c: Likewise.
7235 * tree-ssa-loop-im.c: Likewise.
7236 * tree-ssa-loop-ivopts.c: Likewise.
7237 * tree-ssa-loop-manip.c: Likewise.
7238 * tree-ssa-loop-niter.c: Likewise.
7239 * tree-ssa-loop-prefetch.c: Likewise.
7240 * tree-ssa-loop-unswitch.c: Likewise.
7241 * tree-ssa-math-opts.c: Likewise.
7242 * tree-ssa-phiopt.c: Likewise.
7243 * tree-ssa-phiprop.c: Likewise.
7244 * tree-ssa-pre.c: Likewise.
7245 * tree-ssa-propagate.c: Likewise.
7246 * tree-ssa-reassoc.c: Likewise.
7247 * tree-ssa-sccvn.c: Likewise.
7248 * tree-ssa-strlen.c: Likewise.
7249 * tree-ssa.c: Likewise.
7250 * tree-switch-conversion.c: Likewise.
7251 * tree-tailcall.c: Likewise.
7252 * tree-vect-data-refs.c: Likewise.
7253 * tree-vect-generic.c: Likewise.
7254 * tree-vect-loop-manip.c: Likewise.
7255 * tree-vect-loop.c: Likewise.
7256 * tree-vect-patterns.c: Likewise.
7257 * tree-vect-stmts.c: Likewise.
7258 * tree.c: Likewise.
7259 * tsan.c: Likewise.
7260 * value-prof.c: Likewise.
7261 * config/aarch64/aarch64.c: Likewise.
7262 * config/alpha/alpha.c: Likewise.
7263 * config/darwin.c: Likewise.
7264 * config/i386/i386.c: Likewise.
7265 * config/ia64/ia64.c: Likewise.
7266 * config/mep/mep.c: Likewise.
7267 * config/mips/mips.c: Likewise.
7268 * config/rs6000/rs6000.c: Likewise.
7269 * config/s390/s390.c: Likewise.
7270 * config/sh/sh.c: Likewise.
7271 * config/sparc/sparc.c: Likewise.
7272 * config/spu/spu.c: Likewise.
7273 * config/stormy16/stormy16.c: Likewise.
7274 * config/tilegx/tilegx.c: Likewise.
7275 * config/tilepro/tilepro.c: Likewise.
7276 * config/xtensa/xtensa.c: Likewise.
7277
7278 2013-11-14 Diego Novillo <dnovillo@google.com>
7279
7280 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7281
7282 2013-11-14 Diego Novillo <dnovillo@google.com>
7283
7284 * tree.h: Include fold-const.h.
7285 (aggregate_value_p): Moved to function.h.
7286 (alloca_call_p): Moved to calls.h.
7287 (allocate_struct_function): Moved to function.h.
7288 (apply_tm_attr): Moved to attribs.h.
7289 (array_at_struct_end_p): Moved to expr.h.
7290 (array_ref_element_size): Moved to tree-dfa.h.
7291 (array_ref_low_bound): Moved to tree-dfa.h.
7292 (array_ref_up_bound): Moved to tree.h.
7293 (assemble_alias): Moved to cgraph.h.
7294 (bit_from_pos): Moved to stor-layout.h.
7295 (build_addr): Moved to tree-nested.h.
7296 (build_duplicate_type): Moved to tree-inline.h.
7297 (build_fold_addr_expr): Moved to fold-const.h.
7298 (build_fold_addr_expr_with_type): Moved to fold-const.h.
7299 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7300 (build_fold_indirect_ref): Moved to fold-const.h.
7301 (build_fold_indirect_ref_loc): Moved to fold-const.h.
7302 (build_personality_function): Moved to tree.h.
7303 (build_range_check): Moved to fold-const.h.
7304 (build_simple_mem_ref): Moved to fold-const.h.
7305 (build_simple_mem_ref_loc): Moved to fold-const.h.
7306 (build_tm_abort_call): Moved to trans-mem.h.
7307 (byte_from_pos): Moved to stor-layout.h.
7308 (call_expr_flags): Moved to calls.h.
7309 (can_move_by_pieces): Moved to expr.h.
7310 (categorize_ctor_elements): Moved to expr.h.
7311 (change_decl_assembler_name): Moved to gcc-symtab.h.
7312 (combine_comparisons): Moved to fold-const.h.
7313 (complete_ctor_at_level_p): Moved to tree.h.
7314 (component_ref_field_offset): Moved to tree-dfa.h.
7315 (compute_builtin_object_size): Moved to tree-object-size.h.
7316 (compute_record_mode): Moved to stor-layout.h.
7317 (constant_boolean_node): Moved to fold-const.h.
7318 (constructor_static_from_elts_p): Moved to varasm.h.
7319 (cxx11_attribute_p): Moved to attribs.h.
7320 (debug_body): Moved to print-tree.h.
7321 (debug_find_tree): Moved to tree-inline.h.
7322 (debug_fold_checksum): Moved to fold-const.h.
7323 (debug_head): Moved to print-tree.h.
7324 (debug_head): Moved to print-tree.h.
7325 (debug_raw): Moved to print-tree.h.
7326 (debug_tree): Moved to print-tree.h.
7327 (debug_vec_tree): Moved to print-tree.h.
7328 (debug_verbose): Moved to print-tree.h.
7329 (debug_verbose): Moved to print-tree.h.
7330 (decl_attributes): Moved to attribs.h.
7331 (decl_binds_to_current_def_p): Moved to varasm.h.
7332 (decl_default_tls_model): Moved to varasm.h.
7333 (decl_replaceable_p): Moved to varasm.h.
7334 (div_if_zero_remainder): Moved to fold-const.h.
7335 (double_int mem_ref_offset): Moved to fold-const.h.
7336 (dump_addr): Moved to print-tree.h.
7337 (element_precision): Moved to machmode.h.
7338 (expand_dummy_function_end): Moved to function.h.
7339 (expand_function_end): Moved to function.h.
7340 (expand_function_start): Moved to function.h.
7341 (expand_label): Moved to stmt.h.
7342 (expr_first): Moved to tree-iterator.h.
7343 (expr_last): Moved to tree-iterator.h.
7344 (finalize_size_functions): Moved to stor-layout.h.
7345 (finish_builtin_struct): Moved to stor-layout.h.
7346 (finish_record_layout): Moved to stor-layout.h.
7347 (fixup_signed_type): Moved to stor-layout.h.
7348 (fixup_unsigned_type): Moved to stor-layout.h.
7349 (flags_from_decl_or_type): Moved to calls.h.
7350 (fold): Moved to fold-const.h.
7351 (fold_abs_const): Moved to fold-const.h.
7352 (fold_binary): Moved to fold-const.h.
7353 (fold_binary_loc): Moved to fold-const.h.
7354 (fold_binary_to_constant): Moved to fold-const.h.
7355 (fold_build1): Moved to fold-const.h.
7356 (fold_build1_initializer_loc): Moved to fold-const.h.
7357 (fold_build1_loc): Moved to fold-const.h.
7358 (fold_build1_stat_loc): Moved to fold-const.h.
7359 (fold_build2): Moved to fold-const.h.
7360 (fold_build2_initializer_loc): Moved to fold-const.h.
7361 (fold_build2_loc): Moved to fold-const.h.
7362 (fold_build2_stat_loc): Moved to fold-const.h.
7363 (fold_build3): Moved to fold-const.h.
7364 (fold_build3_loc): Moved to fold-const.h.
7365 (fold_build3_stat_loc): Moved to fold-const.h.
7366 (fold_build_call_array): Moved to fold-const.h.
7367 (fold_build_call_array_initializer): Moved to fold-const.h.
7368 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7369 (fold_build_call_array_loc): Moved to fold-const.h.
7370 (fold_build_cleanup_point_expr): Moved to fold-const.h.
7371 (fold_convert): Moved to fold-const.h.
7372 (fold_convert_loc): Moved to fold-const.h.
7373 (fold_convertible_p): Moved to fold-const.h.
7374 (fold_defer_overflow_warnings): Moved to fold-const.h.
7375 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7376 (fold_fma): Moved to fold-const.h.
7377 (fold_ignored_result): Moved to fold-const.h.
7378 (fold_indirect_ref): Moved to fold-const.h.
7379 (fold_indirect_ref_1): Moved to fold-const.h.
7380 (fold_indirect_ref_loc): Moved to fold-const.h.
7381 (fold_read_from_constant_string): Moved to fold-const.h.
7382 (fold_real_zero_addition_p): Moved to fold-const.h.
7383 (fold_single_bit_test): Moved to fold-const.h.
7384 (fold_strip_sign_ops): Moved to fold-const.h.
7385 (fold_ternary): Moved to fold-const.h.
7386 (fold_ternary_loc): Moved to fold-const.h.
7387 (fold_unary): Moved to tree-data-ref.h.
7388 (fold_unary_ignore_overflow): Moved to fold-const.h.
7389 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7390 (fold_unary_loc): Moved to fold-const.h.
7391 (fold_unary_to_constant): Moved to fold-const.h.
7392 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7393 (fold_undefer_overflow_warnings): Moved to fold-const.h.
7394 (folding_initializer): Moved to fold-const.h.
7395 (free_temp_slots): Moved to function.h.
7396 (generate_setjmp_warnings): Moved to function.h.
7397 (get_attribute_name): Moved to attribs.h.
7398 (get_identifier): Moved to stringpool.h.
7399 (get_identifier_with_length): Moved to stringpool.h.
7400 (get_inner_reference): Moved to tree.h.
7401 (gimple_alloca_call_p): Moved to calls.h.
7402 (gimplify_parameters): Moved to function.h.
7403 (highest_pow2_factor): Moved to expr.h.
7404 (indent_to): Moved to print-tree.h.
7405 (init_attributes): Moved to attribs.h.
7406 (init_dummy_function_start): Moved to function.h.
7407 (init_function_start): Moved to function.h.
7408 (init_inline_once): Moved to tree-inline.h.
7409 (init_object_sizes): Moved to tree-object-size.h.
7410 (init_temp_slots): Moved to function.h.
7411 (init_tree_optimization_optabs): Moved to optabs.h.
7412 (initialize_sizetypes): Moved to stor-layout.h.
7413 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7414 (initializer_constant_valid_p): Moved to varasm.h.
7415 (int_const_binop): Moved to fold-const.h.
7416 (internal_reference_types): Moved to stor-layout.h.
7417 (invert_tree_comparison): Moved to fold-const.h.
7418 (invert_truthvalue): Moved to fold-const.h.
7419 (invert_truthvalue_loc): Moved to fold-const.h.
7420 (is_tm_ending_fndecl): Moved to trans-mem.h.
7421 (is_tm_may_cancel_outer): Moved to trans-mem.h.
7422 (is_tm_pure): Moved to trans-mem.h.
7423 (is_tm_safe): Moved to trans-mem.h.
7424 (layout_decl): Moved to stor-layout.h.
7425 (layout_type): Moved to stor-layout.h.
7426 (lookup_attribute_spec): Moved to attribs.h.
7427 (make_accum_type): Moved to stor-layout.h.
7428 (make_decl_one_only): Moved to varasm.h.
7429 (make_decl_rtl): Moved to tree.h.
7430 (make_decl_rtl_for_debug): Moved to varasm.h.
7431 (make_fract_type): Moved to stor-layout.h.
7432 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7433 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7434 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7435 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7436 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7437 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7438 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7439 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7440 (make_range): Moved to fold-const.h.
7441 (make_range_step): Moved to fold-const.h.
7442 (make_sat_signed_accum_type): Moved to stor-layout.h.
7443 (make_sat_signed_fract_type): Moved to stor-layout.h.
7444 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7445 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7446 (make_signed_accum_type): Moved to stor-layout.h.
7447 (make_signed_fract_type): Moved to stor-layout.h.
7448 (make_signed_type): Moved to stor-layout.h.
7449 (make_unsigned_accum_type): Moved to stor-layout.h.
7450 (make_unsigned_fract_type): Moved to stor-layout.h.
7451 (make_unsigned_type): Moved to stor-layout.h.
7452 (mark_decl_referenced): Moved to varasm.h.
7453 (mark_referenced): Moved to varasm.h.
7454 (may_negate_without_overflow_p): Moved to fold-const.h.
7455 (maybe_get_identifier): Moved to stringpool.h.
7456 (merge_ranges): Moved to fold-const.h.
7457 (merge_weak): Moved to varasm.h.
7458 (mode_for_size_tree): Moved to stor-layout.h.
7459 (multiple_of_p): Moved to fold-const.h.
7460 (must_pass_in_stack_var_size): Moved to calls.h.
7461 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7462 (native_encode_expr): Moved to fold-const.h.
7463 (native_interpret_expr): Moved to fold-const.h.
7464 (non_lvalue): Moved to fold-const.h.
7465 (non_lvalue_loc): Moved to fold-const.h.
7466 (normalize_offset): Moved to stor-layout.h.
7467 (normalize_rli): Moved to stor-layout.h.
7468 (notice_global_symbol): Moved to varasm.h.
7469 (omit_one_operand): Moved to fold-const.h.
7470 (omit_one_operand_loc): Moved to fold-const.h.
7471 (omit_two_operands): Moved to fold-const.h.
7472 (omit_two_operands_loc): Moved to fold-const.h.
7473 (operand_equal_p): Moved to tree-data-ref.h.
7474 (parse_input_constraint): Moved to stmt.h.
7475 (parse_output_constraint): Moved to stmt.h.
7476 (place_field): Moved to stor-layout.h.
7477 (pop_function_context): Moved to function.h.
7478 (pop_temp_slots): Moved to function.h.
7479 (pos_from_bit): Moved to stor-layout.h.
7480 (preserve_temp_slots): Moved to function.h.
7481 (print_node): Moved to print-tree.h.
7482 (print_node_brief): Moved to print-tree.h.
7483 (print_rtl): Moved to rtl.h.
7484 (process_pending_assemble_externals): Moved to varasm.h.
7485 (ptr_difference_const): Moved to fold-const.h.
7486 (push_function_context): Moved to function.h.
7487 (push_struct_function): Moved to function.h.
7488 (push_temp_slots): Moved to function.h.
7489 (record_tm_replacement): Moved to trans-mem.h.
7490 (relayout_decl): Moved to stor-layout.h.
7491 (resolve_asm_operand_names): Moved to stmt.h.
7492 (resolve_unique_section): Moved to varasm.h.
7493 (rli_size_so_far): Moved to stor-layout.h.
7494 (rli_size_unit_so_far): Moved to stor-layout.h.
7495 (round_down): Moved to fold-const.h.
7496 (round_down_loc): Moved to fold-const.h.
7497 (round_up): Moved to fold-const.h.
7498 (round_up_loc): Moved to fold-const.h.
7499 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7500 (set_decl_rtl): Moved to tree.h.
7501 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7502 (set_user_assembler_name): Moved to varasm.h.
7503 (setjmp_call_p): Moved to calls.h.
7504 (size_binop): Moved to fold-const.h.
7505 (size_binop_loc): Moved to fold-const.h.
7506 (size_diffop): Moved to fold-const.h.
7507 (size_diffop_loc): Moved to fold-const.h.
7508 (size_int_kind): Moved to fold-const.h.
7509 (stack_protect_epilogue): Moved to function.h.
7510 (start_record_layout): Moved to stor-layout.h.
7511 (supports_one_only): Moved to varasm.h.
7512 (swap_tree_comparison): Moved to fold-const.h.
7513 (tm_malloc_replacement): Moved to trans-mem.h.
7514 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7515 (tree build_invariant_address): Moved to fold-const.h.
7516 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7517 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7518 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7519 (tree_expr_nonnegative_p): Moved to fold-const.h.
7520 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7521 (tree_output_constant_def): Moved to varasm.h.
7522 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7523 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7524 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7525 (tree_swap_operands_p): Moved to fold-const.h.
7526 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7527 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7528 (update_alignment_for_field): Moved to stor-layout.h.
7529 (use_register_for_decl): Moved to function.h.
7530 (variable_size): Moved to rtl.h.
7531 (vector_type_mode): Moved to stor-layout.h.
7532 * cgraph.h: Corresponding changes.
7533 * emit-rtl.h: Corresponding changes.
7534 * expr.h: Corresponding changes.
7535 * function.h: Corresponding changes.
7536 * optabs.h: Corresponding changes.
7537 * trans-mem.h: Corresponding changes.
7538 Protect against multiple inclusion.
7539 * tree-inline.h: Corresponding changes.
7540 * tree-iterator.h: Corresponding changes.
7541 * tree-dfa.h: Include expr.h.
7542 * tree-ssanames.h: Include stringpool.h.
7543 * attribs.h: New file.
7544 * calls.h: New file.
7545 * fold-const.h: New file.
7546 * gcc-symtab.h: New file.
7547 * print-rtl.h: New file.
7548 * print-tree.h: New file.
7549 * stmt.h: New file.
7550 * stor-layout.h: New file.
7551 * strinpool.h: New file.
7552 * tree-nested.h: New file
7553 * tree-object-size.h: New file.
7554 * varasm.h: New file.
7555
7556 2013-11-14 Diego Novillo <dnovillo@google.com>
7557
7558 * alias.c: Include varasm.h.
7559 Include expr.h.
7560 * asan.c: Include calls.h.
7561 Include stor-layout.h.
7562 Include varasm.h.
7563 * attribs.c: Include stringpool.h.
7564 Include attribs.h.
7565 Include stor-layout.h.
7566 * builtins.c: Include stringpool.h.
7567 Include stor-layout.h.
7568 Include calls.h.
7569 Include varasm.h.
7570 Include tree-object-size.h.
7571 * calls.c: Include stor-layout.h.
7572 Include varasm.h.
7573 Include stringpool.h.
7574 Include attribs.h.
7575 * cfgexpand.c: Include stringpool.h.
7576 Include varasm.h.
7577 Include stor-layout.h.
7578 Include stmt.h.
7579 Include print-tree.h.
7580 * cgraph.c: Include varasm.h.
7581 Include calls.h.
7582 Include print-tree.h.
7583 * cgraphclones.c: Include stringpool.h.
7584 Include function.h.
7585 Include emit-rtl.h.
7586 Move inclusion of rtl.h earlier in the file.
7587 * cgraphunit.c: Include varasm.h.
7588 Include stor-layout.h.
7589 Include stringpool.h.
7590 * cilk-common.c: Include stringpool.h.
7591 Include stor-layout.h.
7592 * combine.c: Include stor-layout.h.
7593 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7594 Include stringpool.h.
7595 Include calls.h.
7596 * config/aarch64/aarch64.c: Include stringpool.h.
7597 Include stor-layout.h.
7598 Include calls.h.
7599 Include varasm.h.
7600 * config/alpha/alpha.c: Include stor-layout.h.
7601 Include calls.h.
7602 Include varasm.h.
7603 * config/arc/arc.c: Include varasm.h.
7604 Include stor-layout.h.
7605 Include stringpool.h.
7606 Include calls.h.
7607 * config/arm/arm.c: Include stringpool.h.
7608 Include stor-layout.h.
7609 Include calls.h.
7610 Include varasm.h.
7611 * config/avr/avr-c.c: Include stor-layout.h.
7612 * config/avr/avr-log.c: Include print-tree.h.
7613 * config/avr/avr.c: Include print-tree.h.
7614 Include calls.h.
7615 Include stor-layout.h.
7616 Include stringpool.h.
7617 * config/bfin/bfin.c: Include varasm.h.
7618 Include calls.h.
7619 * config/c6x/c6x.c: Include stor-layout.h.
7620 Include varasm.h.
7621 Include calls.h.
7622 Include stringpool.h.
7623 * config/cr16/cr16.c: Include stor-layout.h.
7624 Include calls.h.
7625 * config/cris/cris.c: Include varasm.h.
7626 Include stor-layout.h.
7627 Include calls.h.
7628 Include stmt.h.
7629 * config/darwin.c: Include stringpool.h.
7630 Include varasm.h.
7631 Include stor-layout.h.
7632 * config/epiphany/epiphany.c: Include stor-layout.h.
7633 Include varasm.h.
7634 Include calls.h.
7635 Include stringpool.h.
7636 * config/fr30/fr30.c: Include stor-layout.h.
7637 Include varasm.h.
7638 * config/frv/frv.c: Include varasm.h.
7639 Include stor-layout.h.
7640 Include stringpool.h.
7641 * config/h8300/h8300.c: Include stor-layout.h.
7642 Include varasm.h.
7643 Include calls.h.
7644 Include stringpool.h.
7645 * config/i386/i386.c: Include stringpool.h.
7646 Include attribs.h.
7647 Include calls.h.
7648 Include stor-layout.h.
7649 Include varasm.h.
7650 * config/i386/winnt-cxx.c: Include stringpool.h.
7651 Include attribs.h.
7652 * config/i386/winnt.c: Include stringpool.h.
7653 Include varasm.h.
7654 * config/ia64/ia64-c.c: Include stringpool.h.
7655 * config/ia64/ia64.c: Include stringpool.h.
7656 Include stor-layout.h.
7657 Include calls.h.
7658 Include varasm.h.
7659 * config/iq2000/iq2000.c: Include stor-layout.h.
7660 Include calls.h.
7661 Include varasm.h.
7662 * config/lm32/lm32.c: Include calls.h.
7663 * config/m32c/m32c.c: Include stor-layout.h.
7664 Include varasm.h.
7665 Include calls.h.
7666 * config/m32r/m32r.c: Include stor-layout.h.
7667 Include varasm.h.
7668 Include stringpool.h.
7669 Include calls.h.
7670 * config/m68k/m68k.c: Include calls.h.
7671 Include stor-layout.h.
7672 Include varasm.h.
7673 * config/mcore/mcore.c: Include stor-layout.h.
7674 Include varasm.h.
7675 Include stringpool.h.
7676 Include calls.h.
7677 * config/mep/mep.c: Include varasm.h.
7678 Include calls.h.
7679 Include stringpool.h.
7680 Include stor-layout.h.
7681 * config/microblaze/microblaze.c: Include varasm.h.
7682 Include stor-layout.h.
7683 Include calls.h.
7684 * config/mips/mips.c: Include varasm.h.
7685 Include stringpool.h.
7686 Include stor-layout.h.
7687 Include calls.h.
7688 * config/mmix/mmix.c: Include varasm.h.
7689 Include stor-layout.h.
7690 Include calls.h.
7691 * config/mn10300/mn10300.c: Include stor-layout.h.
7692 Include varasm.h.
7693 Include calls.h.
7694 * config/moxie/moxie.c: Include stor-layout.h.
7695 Include varasm.h.
7696 Include calls.h.
7697 * config/msp430/msp430.c: Include stor-layout.h.
7698 Include calls.h.
7699 * config/nds32/nds32.c: Include stor-layout.h.
7700 Include varasm.h.
7701 Include calls.h.
7702 * config/pa/pa.c: Include stor-layout.h.
7703 Include stringpool.h.
7704 Include varasm.h.
7705 Include calls.h.
7706 * config/pdp11/pdp11.c: Include stor-layout.h.
7707 Include varasm.h.
7708 Include calls.h.
7709 * config/picochip/picochip.c: Include calls.h.
7710 Include stor-layout.h.
7711 Include stringpool.h.
7712 Include varasm.h.
7713 * config/rl78/rl78.c: Include varasm.h.
7714 Include stor-layout.h.
7715 Include calls.h.
7716 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7717 Include stringpool.h.
7718 * config/rs6000/rs6000.c: Include stringpool.h.
7719 Include stor-layout.h.
7720 Include calls.h.
7721 Include print-tree.h.
7722 Include varasm.h.
7723 * config/rx/rx.c: Include varasm.h.
7724 Include stor-layout.h.
7725 Include calls.h.
7726 * config/s390/s390.c: Include print-tree.h.
7727 Include stringpool.h.
7728 Include stor-layout.h.
7729 Include varasm.h.
7730 Include calls.h.
7731 * config/score/score.c: Include stringpool.h.
7732 Include calls.h.
7733 Include varasm.h.
7734 Include stor-layout.h.
7735 * config/sh/sh-c.c: Include stringpool.h.
7736 Include attribs.h.h.
7737 * config/sh/sh.c: Include stringpool.h.
7738 Include stor-layout.h.
7739 Include calls.h.
7740 Include varasm.h.
7741 * config/sol2-c.c: Include stringpool.h.
7742 Include attribs.h.
7743 * config/sol2-cxx.c: Include stringpool.h.
7744 * config/sol2.c: Include stringpool.h.
7745 Include varasm.h.
7746 * config/sparc/sparc.c: Include stringpool.h.
7747 Include stor-layout.h.
7748 Include calls.h.
7749 Include varasm.h.
7750 * config/spu/spu-c.c: Include stringpool.h.
7751 * config/spu/spu.c: Include stringpool.h.
7752 Include stor-layout.h.
7753 Include calls.h.
7754 Include varasm.h.
7755 * config/stormy16/stormy16.c: Include stringpool.h.
7756 Include stor-layout.h.
7757 Include varasm.h.
7758 Include calls.h.
7759 * config/tilegx/tilegx.c: Include stringpool.h.
7760 Include stor-layout.h.
7761 Include varasm.h.
7762 Include calls.h.
7763 * config/tilepro/tilepro.c: Include stringpool.h.
7764 Include stor-layout.h.
7765 Include varasm.h.
7766 Include calls.h.
7767 * config/v850/v850-c.c: Include stringpool.h.
7768 Include attribs.h.
7769 * config/v850/v850.c: Include stringpool.h.
7770 Include stor-layout.h.
7771 Include varasm.h.
7772 Include calls.h.
7773 * config/vax/vax.c: Include calls.h.
7774 Include varasm.h.
7775 * config/vms/vms.c: Include stringpool.h.
7776 * config/vxworks.c: Include stringpool.h.
7777 * config/xtensa/xtensa.c: Include stringpool.h.
7778 Include stor-layout.h.
7779 Include calls.h.
7780 Include varasm.h.
7781 * convert.c: Include stor-layout.h.
7782 * coverage.c: Include stringpool.h.
7783 Include stor-layout.h.
7784 * dbxout.c: Include varasm.h.
7785 Include stor-layout.h.
7786 * dojump.c: Include stor-layout.h.
7787 * dse.c: Include stor-layout.h.
7788 * dwarf2asm.c: Include stringpool.h.
7789 Include varasm.h.
7790 * dwarf2cfi.c: Include stor-layout.h.
7791 * dwarf2out.c: Include rtl.h.
7792 Include stringpool.h.
7793 Include stor-layout.h.
7794 Include varasm.h.
7795 Include function.h.
7796 Include emit-rtl.h.
7797 Move inclusion of rtl.h earlier in the file.
7798 * emit-rtl.c: Include varasm.h.
7799 * except.c: Include stringpool.h.
7800 Include stor-layout.h.
7801 * explow.c: Include stor-layout.h.
7802 * expmed.c: Include stor-layout.h.
7803 * expr.c: Include stringpool.h.
7804 Include stor-layout.h.
7805 Include attribs.h.
7806 Include varasm.h.
7807 * final.c: Include varasm.h.
7808 * fold-const.c: Include stor-layout.h.
7809 Include calls.h.
7810 Include tree-iterator.h.
7811 * function.c: Include stor-layout.h.
7812 Include varasm.h.
7813 Include stringpool.h.
7814 * genattrtab.c (write_header): Emit includes for varasm.h,
7815 stor-layout.h and calls.h.
7816 * genautomata.c (main): Likewise.
7817 * genemit.c: Likewise.
7818 * genopinit.c: Likewise.
7819 * genoutput.c (output_prologue): Likewise.
7820 * genpeep.c: Likewise.
7821 * genpreds.c (write_insn_preds_c): Likewise.
7822 * gengtype.c (open_base_files): Add stringpool.h.
7823 * gimple-expr.c: Include stringpool.h.
7824 Include stor-layout.h.
7825 * gimple-fold.c: Include stringpool.h.
7826 Include expr.h.
7827 Include stmt.h.
7828 Include stor-layout.h.
7829 * gimple-low.c: Include tree-nested.h.
7830 Include calls.h.
7831 * gimple-pretty-print.c: Include stringpool.h.
7832 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7833 Include expr.h.
7834 * gimple-walk.c: Include stmt.h.
7835 * gimple.c: Include calls.h.
7836 Include stmt.h.
7837 Include stor-layout.h.
7838 * gimplify.c: Include stringpool.h.
7839 Include calls.h.
7840 Include varasm.h.
7841 Include stor-layout.h.
7842 Include stmt.h.
7843 Include print-tree.h.
7844 Include expr.h.
7845 * gimplify-me.c: Include stmt.h
7846 Include stor-layout.h
7847 * internal-fn.c: Include stor-layout.h.
7848 * ipa-devirt.c: Include print-tree.h.
7849 Include calls.h.
7850 * ipa-inline-analysis.c: Include stor-layout.h.
7851 Include stringpool.h.
7852 Include print-tree.h.
7853 * ipa-inline.c: Include trans-mem.h.
7854 Include calls.h.
7855 * ipa-prop.c: Include expr.h.
7856 Include stor-layout.h.
7857 Include print-tree.h.
7858 * ipa-pure-const.c: Include print-tree.h.
7859 Include calls.h.
7860 * ipa-reference.c: Include calls.h.
7861 * ipa-split.c: Include stringpool.h.
7862 Include expr.h.
7863 Include calls.h.
7864 * ipa.c: Include calls.h.
7865 Include stringpool.h.
7866 * langhooks.c: Include stringpool.h.
7867 Include attribs.h.
7868 * lto-cgraph.c: Include stringpool.h.
7869 * lto-streamer-in.c: Include stringpool.h.
7870 * lto-streamer-out.c: Include stor-layout.h.
7871 Include stringpool.h.
7872 * omp-low.c: Include stringpool.h.
7873 Include stor-layout.h.
7874 Include expr.h.
7875 * optabs.c: Include stor-layout.h.
7876 Include stringpool.h.
7877 Include varasm.h.
7878 * passes.c: Include varasm.h.
7879 * predict.c: Include calls.h.
7880 * print-rtl.c: Include print-tree.h.
7881 * print-tree.c: Include varasm.h.
7882 Include print-rtl.h.
7883 Include stor-layout.h.
7884 * realmpfr.c: Include stor-layout.h.
7885 * reg-stack.c: Include varasm.h.
7886 * sdbout.c: Include varasm.h.
7887 Include stor-layout.h.
7888 * simplify-rtx.c: Include varasm.h.
7889 * stmt.c: Include varasm.h.
7890 Include stor-layout.h.
7891 * stor-layout.c: Include stor-layout.h.
7892 Include stringpool.h.
7893 Include varasm.h.
7894 Include print-tree.h.
7895 * symtab.c: Include rtl.h.
7896 Include print-tree.h.
7897 Include varasm.h.
7898 Include function.h.
7899 Include emit-rtl.h.
7900 * targhooks.c: Include stor-layout.h.
7901 Include varasm.h.
7902 * toplev.c: Include varasm.h.
7903 Include tree-inline.h.
7904 * trans-mem.c: Include calls.h.
7905 Include function.h.
7906 Include rtl.h.
7907 Include emit-rtl.h.
7908 * tree-affine.c: Include expr.h.
7909 * tree-browser.c: Include print-tree.h.
7910 * tree-call-cdce.c: Include stor-layout.h.
7911 * tree-cfg.c: Include trans-mem.h.
7912 Include stor-layout.h.
7913 Include print-tree.h.
7914 * tree-complex.c: Include stor-layout.h.
7915 * tree-data-ref.c: Include expr.h.
7916 * tree-dfa.c: Include stor-layout.h.
7917 * tree-eh.c: Include expr.h.
7918 Include calls.h.
7919 * tree-emutls.c: Include stor-layout.h.
7920 Include varasm.h.
7921 * tree-if-conv.c: Include stor-layout.h.
7922 * tree-inline.c: Include stor-layout.h.
7923 Include calls.h.
7924 * tree-loop-distribution.c: Include stor-layout.h.
7925 * tree-nested.c: Include stringpool.h.
7926 Include stor-layout.h.
7927 * tree-object-size.c: Include tree-object-size.h.
7928 * tree-outof-ssa.c: Include stor-layout.h.
7929 * tree-parloops.c: Include stor-layout.h.
7930 Include tree-nested.h.
7931 * tree-pretty-print.c: Include stor-layout.h.
7932 Include expr.h.
7933 * tree-profile.c: Include varasm.h.
7934 Include tree-nested.h.
7935 * tree-scalar-evolution.c: Include expr.h.
7936 * tree-sra.c: Include stor-layout.h.
7937 * tree-ssa-address.c: Include stor-layout.h.
7938 * tree-ssa-ccp.c: Include stor-layout.h.
7939 * tree-ssa-dce.c: Include calls.h.
7940 * tree-ssa-dom.c: Include stor-layout.h.
7941 * tree-ssa-forwprop.c: Include stor-layout.h.
7942 * tree-ssa-ifcombine.c: Include stor-layout.h.
7943 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7944 * tree-ssa-loop-niter.c: Include calls.h.
7945 Include expr.h.
7946 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7947 * tree-ssa-math-opts.c: Include stor-layout.h.
7948 * tree-ssa-operands.c: Include stmt.h.
7949 Include print-tree.h.
7950 * tree-ssa-phiopt.c: Include stor-layout.h.
7951 * tree-ssa-reassoc.c: Include stor-layout.h.
7952 * tree-ssa-sccvn.c: Include stor-layout.h.
7953 * tree-ssa-sink.c: Include stor-layout.h.
7954 * tree-ssa-strlen.c: Include stor-layout.h.
7955 * tree-ssa-structalias.c: Include stor-layout.h.
7956 Include stmt.h.
7957 * tree-ssa-tail-merge.c: Include stor-layout.h.
7958 Include trans-mem.h.
7959 * tree-ssa-uncprop.c: Include stor-layout.h.
7960 * tree-ssa.c: Include stor-layout.h.
7961 * tree-ssanames.c: Include stor-layout.h.
7962 * tree-streamer-in.c: Include stringpool.h.
7963 * tree-streamer-out.c: Include stor-layout.h.
7964 * tree-switch-conversion.c: Include varasm.h.
7965 Include stor-layout.h.
7966 * tree-tailcall.c: Include stor-layout.h.
7967 * tree-vect-data-refs.c: Include stor-layout.h.
7968 * tree-vect-generic.c: Include stor-layout.h.
7969 * tree-vect-loop.c: Include stor-layout.h.
7970 * tree-vect-patterns.c: Include stor-layout.h.
7971 * tree-vect-slp.c: Include stor-layout.h.
7972 * tree-vect-stmts.c: Include stor-layout.h.
7973 * tree-vectorizer.c: Include stor-layout.h.
7974 * tree-vrp.c: Include stor-layout.h.
7975 Include calls.h.
7976 * tree.c: Include stor-layout.h.
7977 Include calls.h.
7978 Include attribs.h.
7979 Include varasm.h.
7980 * tsan.c: Include expr.h.
7981 * ubsan.c: Include stor-layout.h.
7982 Include stringpool.h.
7983 * value-prof.c: Include tree-nested.h.
7984 Include calls.h.
7985 * var-tracking.c: Include varasm.h.
7986 Include stor-layout.h.
7987 * varasm.c: Include stor-layout.h.
7988 Include stringpool.h.
7989 Include gcc-symtab.h.
7990 Include varasm.h.
7991 * varpool.c: Include varasm.h.
7992 * vmsdbgout.c: Include varasm.h.
7993 * xcoffout.c: Include varasm.h.
7994
7995 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7996
7997 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7998 use (.&-4) idiom.
7999
8000 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8001
8002 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
8003
8004 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8005 Alan Modra <amodra@gmail.com>
8006
8007 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
8008 (RS6000_SAVE_TOC): Remove.
8009 (RS6000_TOC_SAVE_SLOT): New macro.
8010 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
8011 (rs6000_parm_start): Use it.
8012 (rs6000_function_arg_advance_1): Likewise.
8013 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
8014 (rs6000_emit_epilogue): Likewise.
8015 (rs6000_call_aix): Likewise.
8016 (rs6000_output_function_prologue): Do not save/restore r11
8017 around calling _mcount for ABI_ELFv2.
8018
8019 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8020 Alan Modra <amodra@gmail.com>
8021
8022 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
8023 Add prototype.
8024 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
8025 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
8026 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
8027 (rs6000_function_parms_need_stack): Likewise.
8028 (rs6000_reg_parm_stack_space): Likewise.
8029 (rs6000_function_arg): Do not replace BLKmode by Pmode when
8030 returning a register argument.
8031
8032 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8033 Michael Gschwind <mkg@us.ibm.com>
8034
8035 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8036 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8037 (FUNCTION_VALUE_REGNO_P): Use them.
8038 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8039 (rs6000_return_in_msb): New function.
8040 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8041 Handle aggregates of up to 16 bytes for ELFv2.
8042 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8043
8044 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8045 Michael Gschwind <mkg@us.ibm.com>
8046
8047 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8048 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8049 (rs6000_discover_homogeneous_aggregate): Likewise.
8050 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8051 (rs6000_function_arg_advance_1): Likewise.
8052 (rs6000_function_arg): Likewise.
8053 (rs6000_arg_partial_bytes): Likewise.
8054 (rs6000_psave_function_arg): Handle BLKmode arguments.
8055
8056 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8057 Michael Gschwind <mkg@us.ibm.com>
8058
8059 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8060 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8061 (rs6000_discover_homogeneous_aggregate): Likewise.
8062 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8063 (rs6000_function_arg_advance_1): Likewise.
8064 (rs6000_function_arg): Likewise.
8065 (rs6000_arg_partial_bytes): Likewise.
8066 (rs6000_psave_function_arg): Handle BLKmode arguments.
8067
8068 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8069
8070 * config/rs6000/rs6000.c (machine_function): New member
8071 r2_setup_needed.
8072 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8073 (rs6000_output_mi_thunk): Set r2_setup_needed.
8074 (rs6000_output_function_prologue): Output global entry point
8075 prologue and local entry point marker if needed for ABI_ELFv2.
8076 Output -mprofile-kernel code here.
8077 (output_function_profiler): Do not output -mprofile-kernel
8078 code here; moved to rs6000_output_function_prologue.
8079 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8080
8081 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8082 (rs6000_output_function_entry): Likewise.
8083 (rs6000_assemble_integer): Likewise.
8084 (rs6000_elf_encode_section_info): Likewise.
8085 (rs6000_elf_declare_function_name): Do not create dot symbols
8086 or .opd section for ABI_ELFv2.
8087
8088 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8089 (rs6000_trampoline_init): Likewise.
8090 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8091
8092 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
8093 for function descriptors in ABI_ELFv2.
8094
8095 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8096 on ABI_AIX only, not ABI_ELFv2.
8097 ("*call_value_indirect_aix<mode>"): Likewise.
8098 ("*call_indirect_elfv2<mode>"): New pattern.
8099 ("*call_value_indirect_elfv2<mode>"): Likewise.
8100
8101 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8102 check for function descriptors in ABI_ELFv2.
8103 ("current_file_function_operand"): Likewise.
8104
8105 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8106 (toc): Undefine.
8107 (FUNC_NAME): Define ELFv2 variant.
8108 (JUMP_TARGET): Likewise.
8109 (FUNC_START): Likewise.
8110 (HIDDEN_FUNC): Likewise.
8111 (FUNC_END): Likeiwse.
8112
8113 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8114
8115 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8116 and --with-abi=elfv2.
8117 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8118 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8119 (mabi=elfv2): Likewise.
8120 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8121 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8122 if !RS6000_BI_ARCH.
8123 (ELFv2_ABI_CHECK): New macro.
8124 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8125 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8126 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8127 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8128 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8129
8130 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8131 (debug_stack_info): Likewise.
8132 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8133 (rs6000_legitimize_tls_address): Likewise.
8134 (rs6000_conditional_register_usage): Likewise.
8135 (rs6000_emit_move): Likewise.
8136 (init_cumulative_args): Likewise.
8137 (rs6000_function_arg_advance_1): Likewise.
8138 (rs6000_function_arg): Likewise.
8139 (rs6000_arg_partial_bytes): Likewise.
8140 (rs6000_output_function_entry): Likewise.
8141 (rs6000_assemble_integer): Likewise.
8142 (rs6000_savres_strategy): Likewise.
8143 (rs6000_stack_info): Likewise.
8144 (rs6000_function_ok_for_sibcall): Likewise.
8145 (rs6000_emit_load_toc_table): Likewise.
8146 (rs6000_savres_routine_name): Likewise.
8147 (ptr_regno_for_savres): Likewise.
8148 (rs6000_emit_prologue): Likewise.
8149 (rs6000_emit_epilogue): Likewise.
8150 (rs6000_output_function_epilogue): Likewise.
8151 (output_profile_hook): Likewise.
8152 (output_function_profiler): Likewise.
8153 (rs6000_trampoline_size): Likewise.
8154 (rs6000_trampoline_init): Likewise.
8155 (rs6000_elf_output_toc_section_asm_op): Likewise.
8156 (rs6000_elf_encode_section_info): Likewise.
8157 (rs6000_elf_reloc_rw_mask): Likewise.
8158 (rs6000_elf_declare_function_name): Likewise.
8159 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8160 except that rs6000_compat_align_parm is always assumed false.
8161 (rs6000_gimplify_va_arg): Likewise.
8162 (rs6000_call_aix): Update comment.
8163 (rs6000_sibcall_aix): Likewise.
8164 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8165 Treat ABI_ELFv2 the same as ABI_AIX.
8166 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8167 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8168 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8169 ("load_toc_aix_si"): Likewise.
8170 ("load_toc_aix_di"): Likewise.
8171 ("call"): Likewise.
8172 ("call_value"): Likewise.
8173 ("*call_local_aix<mode>"): Likewise.
8174 ("*call_value_local_aix<mode>"): Likewise.
8175 ("*call_nonlocal_aix<mode>"): Likewise.
8176 ("*call_value_nonlocal_aix<mode>"): Likewise.
8177 ("*call_indirect_aix<mode>"): Likewise.
8178 ("*call_value_indirect_aix<mode>"): Likewise.
8179 ("sibcall"): Likewise.
8180 ("sibcall_value"): Likewise.
8181 ("*sibcall_aix<mode>"): Likewise.
8182 ("*sibcall_value_aix<mode>"): Likewise.
8183 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8184 ("current_file_function_operand"): Likewise.
8185
8186 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8187
8188 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8189 by making use of the fact that for vector / floating point arguments
8190 passed both in VRs/FPRs and in the fixed parameter area, the partial
8191 bytes mechanism is in fact not used.
8192
8193 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8194
8195 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8196 (rs6000_finish_function_arg): Likewise.
8197 (rs6000_function_arg): Use rs6000_psave_function_arg and
8198 rs6000_finish_function_arg to handle both vector and floating
8199 point arguments that are also passed in GPRs / the stack.
8200
8201 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8202
8203 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8204 (USE_ALTIVEC_FOR_ARG_P): Likewise.
8205 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8206 (rs6000_function_arg_advance_1):Likewise.
8207 (rs6000_darwin64_record_arg_recurse): Likewise.
8208 (rs6000_function_arg): Likewise.
8209 (rs6000_arg_partial_bytes): Likewise.
8210
8211 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8212
8213 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8214 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8215 (rs6000_savres_strategy): Likewise.
8216 (rs6000_return_addr): Likewise.
8217 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8218 testing for ABI_V4 (since ABI_DARWIN is impossible here).
8219 (rs6000_emit_prologue): Likewise.
8220 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8221 (rs6000_elf_declare_function_name): Remove duplicated test.
8222 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8223 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8224 ("load_toc_v4_PIC_1_normal"): Likewise.
8225 ("load_toc_v4_PIC_1_476"): Likewise.
8226 ("load_toc_v4_PIC_1b"): Likewise.
8227 ("load_toc_v4_PIC_1b_normal"): Likewise.
8228 ("load_toc_v4_PIC_1b_476"): Likewise.
8229 ("load_toc_v4_PIC_2"): Likewise.
8230 ("load_toc_v4_PIC_3b"): Likewise.
8231 ("load_toc_v4_PIC_3c"): Likewise.
8232 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8233 (RS6000_SAVE_AREA): Likewise.
8234 (FP_ARG_MAX_REG): Likewise.
8235 (RETURN_ADDRESS_OFFSET): Likewise.
8236 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8237 of ABI_AIX.
8238 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8239 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8240
8241 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8242
8243 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8244 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
8245 Create call insn directly instead of via various gen_... routines.
8246 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8247 (rs6000_sibcall_aix): New function.
8248 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8249 (TOC_SAVE_OFFSET_64BIT): Likewise.
8250 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8251 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8252 (AIX_FUNC_DESC_SC_32BIT): Likewise.
8253 (AIX_FUNC_DESC_SC_64BIT): Likewise.
8254 ("call" expander): Call rs6000_call_aix.
8255 ("call_value" expander): Likewise.
8256 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8257 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8258 ("*call_indirect_aix<mode>"): ... by this insn pattern.
8259 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8260 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8261 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8262 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8263 ("*call_nonlocal_aix<mode>"): ... this pattern.
8264 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8265 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8266 ("*call_local_aix<mode>"): New insn pattern.
8267 ("*call_value_local_aix<mode>"): Likewise.
8268 ("sibcall" expander): Call rs6000_sibcall_aix.
8269 ("sibcall_value" expander): Likewise. Move earlier in file.
8270 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8271 ("*sibcall_aix<mode>"): ... this pattern.
8272 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8273 ("*sibcall_value_aix<mode>"): ... this pattern.
8274 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8275 (rs6000_call_aix): Add prototype.
8276 (rs6000_sibcall_aix): Likewise.
8277
8278 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8279
8280 PR sanitizer/59122
8281 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8282 isn't confused by the artificial decl.
8283
8284 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8285
8286 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8287 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8288 Instead, add USEs of all modified call-saved CR fields to the
8289 insn storing the result to the stack slot, and provide an
8290 appropriate REG_FRAME_RELATED_EXPR for that insn.
8291 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8292 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8293
8294 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8295 Alan Modra <amodra@gmail.com>
8296
8297 * function.c (assign_parms): Use all.reg_parm_stack_space instead
8298 of re-evaluating REG_PARM_STACK_SPACE target macro.
8299 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
8300 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8301 (assign_parm_find_entry_rtl): Update call.
8302 * calls.c (initialize_argument_information): Update call.
8303 (emit_library_call_value_1): Likewise.
8304 * expr.h (locate_and_pad_parm): Update prototype.
8305
8306 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8307
8308 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8309 arguments.
8310
8311 2013-11-14 DJ Delorie <dj@redhat.com>
8312
8313 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8314 to 16 bits.
8315
8316 2013-11-14 Jeff Law <law@redhat.com>
8317
8318 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8319 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8320
8321 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8322
8323 * doc/invoke.texi: Update documentation for AArch64's -mcpu
8324 and -mtune options.
8325
8326 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8327
8328 * config/aarch64/aarch64-cores.def (example-1): Remove.
8329 (example-2): Likewise.
8330 * config/aarch64/aarch64-tune.md: Regenerate.
8331 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8332 (generic_sched): Remove "large", "small".
8333 * config/aarch64/large.md: Delete.
8334 * config/aarch64/small.md: Delete.
8335
8336 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8337
8338 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8339 * config/aarch64/aarch64-tune.md: Regenerate.
8340 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8341 (generic_sched): "no" if we are tuning for cortexa15.
8342 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8343 relative path.
8344
8345 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8346
8347 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8348 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8349 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8350 (all_cores): Use cortexa53 when tuning for "generic".
8351 (aarch64_override_options): Fix comment.
8352 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8353 * config/aarch64/aarch64-generic.md: Delete.
8354
8355 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8356
8357 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8358
8359 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8360
8361 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8362 (generic_rtx_cost_table): Remove.
8363 (aarch64_rtx_costs): Use fields from cpu_cost_table.
8364 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8365 insn_extra_cost.
8366 (cpu_rtx_cost_table): Remove.
8367
8368 2013-11-14 Julian Brown <julian@codesourcery.com>
8369 Joey Ye <joey.ye@arm.com>
8370
8371 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8372 (arm_v7m_tune): New.
8373 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8374 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8375 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8376 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8377
8378 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8379
8380 PR target/57491
8381 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8382 flag setting.
8383
8384 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8385 Uros Bizjak <ubizjak@gmail.com>
8386
8387 PR target/59101
8388 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8389 operands[2] satisfies_constraint_Z that might have bit 31 set.
8390
8391 2013-11-13 Jeff Law <law@redhat.com>
8392
8393 PR tree-optimization/59102
8394 * gimple-ssa-isolate-paths.c
8395 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8396 gimple assignment before looking at gimple_assign_lhs.
8397
8398 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8399
8400 * ira.c: Add comment about threads at the top of file.
8401
8402 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8403
8404 * ira-color.c (coalesce_allocnos): Don't allocate and free
8405 sorted_copies.
8406
8407 2013-11-14 Tom de Vries <tom@codesourcery.com>
8408
8409 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8410 equality for GIMPLE_ASSIGN.
8411
8412 2013-11-14 Tom de Vries <tom@codesourcery.com>
8413
8414 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8415 function out of ...
8416 (gimple_equal_p): ... here.
8417
8418 2013-11-14 Tom de Vries <tom@codesourcery.com>
8419
8420 * trans-mem.c (is_tm_ending): New function.
8421 * gimple.h (is_tm_ending): Declare.
8422 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8423 BUILT_IN_TM_COMMIT.
8424 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8425
8426 2013-11-14 Tom de Vries <tom@codesourcery.com>
8427
8428 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8429
8430 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
8431
8432 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
8433 (struct walk_stmt_info): Relocate here from gimple.h.
8434 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
8435 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8436 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8437 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8438 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8439 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8440 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8441 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8442 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8443 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8444 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8445 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8446 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8447 (struct walk_stmt_info): Move to gimple-walk.h.
8448 (gimple_seq_set_location): Move to gimple.c
8449 * gimple-walk.c: New File.
8450 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8451 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8452 walk_stmt_load_store_ops): Relocate here from gimple.c.
8453 * gimple-iterator.c: Include gimple-iterator.h.
8454 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8455 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8456 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8457 gimple-walk.c.
8458 (gimple_seq_set_location): Relocate from gimple.h.
8459 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8460 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8461 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8462 * Makefile.in (OBJS): Add gimple-walk.o
8463 * asan.c: Update Include list as required for gimple-iterator.h and
8464 gimple-walk.h.
8465 * cfgexpand.c: Likewise.
8466 * cfgloop.c: Likewise.
8467 * cfgloopmanip.c: Likewise.
8468 * cgraph.c: Likewise.
8469 * cgraphbuild.c: Likewise.
8470 * cgraphunit.c: Likewise.
8471 * gimple-fold.c: Likewise.
8472 * gimple-low.c: Likewise.
8473 * gimple-pretty-print.c: Likewise.
8474 * gimple-ssa-isolate-paths.c: Likewise.
8475 * gimple-ssa-strength-reduction.c: Likewise.
8476 * gimple-streamer-in.c: Likewise.
8477 * gimple-streamer-out.c: Likewise.
8478 * gimplify.c: Likewise.
8479 * graphite-blocking.c: Likewise.
8480 * graphite-clast-to-gimple.c: Likewise.
8481 * graphite-dependences.c: Likewise.
8482 * graphite-interchange.c: Likewise.
8483 * graphite-optimize-isl.c: Likewise.
8484 * graphite-poly.c: Likewise.
8485 * graphite-scop-detection.c: Likewise.
8486 * graphite-sese-to-poly.c: Likewise.
8487 * graphite.c: Likewise.
8488 * ipa-inline-analysis.c: Likewise.
8489 * ipa-profile.c: Likewise.
8490 * ipa-prop.c: Likewise.
8491 * ipa-pure-const.c: Likewise.
8492 * ipa-split.c: Likewise.
8493 * lto-streamer-in.c: Likewise.
8494 * lto-streamer-out.c: Likewise.
8495 * omp-low.c: Likewise.
8496 * predict.c: Likewise.
8497 * profile.c: Likewise.
8498 * sese.c: Likewise.
8499 * tracer.c: Likewise.
8500 * trans-mem.c: Likewise.
8501 * tree-call-cdce.c: Likewise.
8502 * tree-cfg.c: Likewise.
8503 * tree-cfgcleanup.c: Likewise.
8504 * tree-complex.c: Likewise.
8505 * tree-data-ref.c: Likewise.
8506 * tree-dfa.c: Likewise.
8507 * tree-eh.c: Likewise.
8508 * tree-emutls.c: Likewise.
8509 * tree-if-conv.c: Likewise.
8510 * tree-inline.c: Likewise.
8511 * tree-into-ssa.c: Likewise.
8512 * tree-loop-distribution.c: Likewise.
8513 * tree-nested.c: Likewise.
8514 * tree-nrv.c: Likewise.
8515 * tree-object-size.c: Likewise.
8516 * tree-outof-ssa.c: Likewise.
8517 * tree-parloops.c: Likewise.
8518 * tree-predcom.c: Likewise.
8519 * tree-profile.c: Likewise.
8520 * tree-scalar-evolution.c: Likewise.
8521 * tree-sra.c: Likewise.
8522 * tree-ssa-ccp.c: Likewise.
8523 * tree-ssa-coalesce.c: Likewise.
8524 * tree-ssa-copy.c: Likewise.
8525 * tree-ssa-copyrename.c: Likewise.
8526 * tree-ssa-dce.c: Likewise.
8527 * tree-ssa-dom.c: Likewise.
8528 * tree-ssa-dse.c: Likewise.
8529 * tree-ssa-forwprop.c: Likewise.
8530 * tree-ssa-ifcombine.c: Likewise.
8531 * tree-ssa-live.c: Likewise.
8532 * tree-ssa-loop-ch.c: Likewise.
8533 * tree-ssa-loop-im.c: Likewise.
8534 * tree-ssa-loop-ivcanon.c: Likewise.
8535 * tree-ssa-loop-ivopts.c: Likewise.
8536 * tree-ssa-loop-manip.c: Likewise.
8537 * tree-ssa-loop-niter.c: Likewise.
8538 * tree-ssa-loop-prefetch.c: Likewise.
8539 * tree-ssa-loop.c: Likewise.
8540 * tree-ssa-math-opts.c: Likewise.
8541 * tree-ssa-phiopt.c: Likewise.
8542 * tree-ssa-phiprop.c: Likewise.
8543 * tree-ssa-pre.c: Likewise.
8544 * tree-ssa-propagate.c: Likewise.
8545 * tree-ssa-reassoc.c: Likewise.
8546 * tree-ssa-sink.c: Likewise.
8547 * tree-ssa-strlen.c: Likewise.
8548 * tree-ssa-structalias.c: Likewise.
8549 * tree-ssa-tail-merge.c: Likewise.
8550 * tree-ssa-ter.c: Likewise.
8551 * tree-ssa-threadedge.c: Likewise.
8552 * tree-ssa-threadupdate.c: Likewise.
8553 * tree-ssa-uncprop.c: Likewise.
8554 * tree-ssa-uninit.c: Likewise.
8555 * tree-ssa.c: Likewise.
8556 * tree-stdarg.c: Likewise.
8557 * tree-switch-conversion.c: Likewise.
8558 * tree-tailcall.c: Likewise.
8559 * tree-vect-data-refs.c: Likewise.
8560 * tree-vect-generic.c: Likewise.
8561 * tree-vect-loop-manip.c: Likewise.
8562 * tree-vect-loop.c: Likewise.
8563 * tree-vect-patterns.c: Likewise.
8564 * tree-vect-slp.c: Likewise.
8565 * tree-vect-stmts.c: Likewise.
8566 * tree-vectorizer.c: Likewise.
8567 * tree-vrp.c: Likewise.
8568 * tree.c: Likewise.
8569 * tsan.c: Likewise.
8570 * value-prof.c: Likewise.
8571 * vtable-verify.c: Likewise.
8572
8573 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8574
8575 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8576 fix.
8577
8578 2013-11-13 Jeff Law <law@redhat.com>
8579
8580 * PR middle-end/59119
8581 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8582 function, extracted from gimple_ssa_isolate_erroneous_paths.
8583 (find_explicit_erroneous_behaviour): Similarly.
8584 (insert_trap_and_remove_trailing_statements): Remove statements
8585 in reverse order.
8586
8587 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8588
8589 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8590 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8591 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8592 looking at INSN_CODE.
8593 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8594 active_insn_p object, respect basic block boundaries.
8595 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8596 follows immediately after the jump table data label.
8597 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8598 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8599 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8600
8601 2013-11-13 Teresa Johnson <tejohnson@google.com>
8602
8603 PR ipa/58862
8604 * predict.c (drop_profile): Error is currently too strict.
8605 (handle_missing_profiles): Pass call_count to drop_profile.
8606
8607 2013-11-13 Teresa Johnson <tejohnson@google.com>
8608
8609 PR ipa/58862
8610 * ipa-inline.c (edge_badness): Fix overflow.
8611
8612 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8613
8614 PR rtl-optimization/59036
8615 * ira-color.c (struct allocno_color_data): Add new members
8616 first_thread_allocno, next_thread_allocno, thread_freq.
8617 (sorted_copies): New static var.
8618 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8619 (allocno_thread_conflict_p, merge_threads)
8620 (form_threads_from_copies, form_threads_from_bucket)
8621 (form_threads_from_colorable_allocno, init_allocno_threads): New
8622 functions.
8623 (bucket_allocno_compare_func): Add comparison by thread frequency
8624 and threads.
8625 (add_allocno_to_ordered_bucket): Rename to
8626 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8627 (push_only_colorable): Call form_threads_from_bucket.
8628 (color_pass): Call init_allocno_threads. Use
8629 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8630 for nuillify allocno color data.
8631 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8632 (coalesce_allocnos): Use static sorted copies.
8633
8634 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8635
8636 * passes.c (execute_todo): Don't call do_per_function if
8637 flags are zero.
8638 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8639 execute_function_dump if dump_file is NULL.
8640
8641 2013-11-13 Martin Jambor <mjambor@suse.cz>
8642
8643 * cgraph.c (cgraph_get_create_node): Do what
8644 cgraph_get_create_real_symbol_node used to do.
8645 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8646 call cgraph_get_create_node.
8647 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8648 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8649 cgraph_get_create_node. Assert we get a node.
8650
8651 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8652
8653 * config/aarch64/aarch64-simd.md (vec_extract): New.
8654
8655 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8656
8657 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8658 the constraint.
8659
8660 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8661
8662 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8663 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8664 or if optimization is enabled.
8665 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8666 require that all the names based on a PARM_DECL or a RESULT_DECL that
8667 isn't ignored for debug info be coalesced.
8668
8669 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8670
8671 * config/c6x/c6x.c: Include "gimple-expr.h".
8672
8673 2013-11-13 Richard Biener <rguenther@suse.de>
8674
8675 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8676 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8677 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8678 dealing with type mismatches inside component reference chains.
8679
8680 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8681
8682 PR tree-optimization/59077
8683 * ipa-pure-const.c (better_state): Update *state.
8684
8685 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8686
8687 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8688 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8689 Update offset calculations.
8690
8691 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8692
8693 PR ada/35998
8694 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8695 for fields. Do not add the attribute if the size is negative.
8696
8697 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8698
8699 * config/arm/arm.c: Include aarch-cost-tables.h.
8700 (generic_extra_costs): Move from here...
8701 * config/arm/aarch-cost-tables.h: ... To here. New file.
8702
8703 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8705 Sergey Lega <sergey.s.lega@intel.com>
8706 Anna Tikhonova <anna.tikhonova@intel.com>
8707 Ilya Tocar <ilya.tocar@intel.com>
8708 Andrey Turetskiy <andrey.turetskiy@intel.com>
8709 Ilya Verbin <ilya.verbin@intel.com>
8710 Kirill Yukhin <kirill.yukhin@intel.com>
8711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8712
8713 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8714 * config/i386/predicate.md (const_0_to_4_operand): New.
8715 (const_0_to_5_operand): Ditto.
8716 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8717 (UNSPEC_COMPRESS_STORE): Ditto.
8718 (UNSPEC_EXPAND): Ditto.
8719 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8720 (define_mode_attr ssescalarsize): Ditto.
8721 (avx512f_load<mode>_mask): Ditto.
8722 (avx512f_store<mode>_mask): Ditto.
8723 (avx512f_storedqu<mode>_mask): Ditto.
8724 (avx512f_vmcmp<mode>3_mask): Ditto.
8725 (avx512f_fmadd_<mode>_mask): Ditto.
8726 (avx512f_fmadd_<mode>_mask3): Ditto.
8727 (avx512f_fmsub_<mode>_mask): Ditto.
8728 (avx512f_fmsub_<mode>_mask3): Ditto.
8729 (avx512f_fnmadd_<mode>_mask): Ditto.
8730 (avx512f_fnmadd_<mode>_mask3): Ditto.
8731 (avx512f_fnmsub_<mode>_mask): Ditto.
8732 (avx512f_fnmsub_<mode>_mask3): Ditto.
8733 (avx512f_fmaddsub_<mode>_mask): Ditto.
8734 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8735 (avx512f_fmsubadd_<mode>_mask): Ditto.
8736 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8737 (vec_unpacku_float_lo_v16si): Ditto.
8738 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8739 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8740 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8741 (vec_extract_lo_<mode>_maskm): Ditto.
8742 (vec_extract_hi_<mode>_maskm): Ditto.
8743 (avx512f_vternlog<mode>_mask): Ditto.
8744 (avx512f_shufps512_mask): Ditto.
8745 (avx512f_fixupimm<mode>_mask): Ditto.
8746 (avx512f_shufpd512_mask): Ditto.
8747 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8748 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8749 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8750 (ashr<mode>3<mask_name>): Ditto.
8751 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8752 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8753 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8754 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8755 (avx512f_pshufdv3_mask): Ditto.
8756 (avx512f_perm<mode>_mask): Ditto.
8757 (avx512f_vpermi2var<mode>3_mask): Ditto.
8758 (avx512f_vpermt2var<mode>3_mask): Ditto.
8759 (avx512f_compress<mode>_mask): Ditto.
8760 (avx512f_compressstore<mode>_mask): Ditto.
8761 (avx512f_expand<mode>_mask): Ditto.
8762 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8763 to support masking.
8764 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8765 (<plusminus_insn><mode>3<mask_name>): Ditto.
8766 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8767 (mul<mode>3<mask_name>): Ditto.
8768 (*mul<mode>3<mask_name>): Ditto.
8769 (<sse>_div<mode>3<mask_name>): Ditto.
8770 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8771 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8772 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8773 (<code><mode>3<mask_name>/smaxmin): Ditto.
8774 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8775 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8776 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8777 (ufloatv16siv16sf2<mask_name>): Ditto.
8778 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8779 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8780 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8781 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8782 (ufloatv8siv8df<mask_name>): Ditto.
8783 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8784 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8785 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8786 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8787 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8788 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8789 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8790 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8791 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8792 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8793 (vec_extract_lo_<mode><mask_name>): Ditto.
8794 (vec_extract_hi_<mode><mask_name>): Ditto.
8795 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8796 (avx512f_movddup512<mask_name>): Ditto.
8797 (avx512f_unpcklpd512<mask_name>): Ditto.
8798 (*avx512f_unpcklpd512<mask_name>): Ditto.
8799 (*avx512f_vmscalef<mode>): Ditto.
8800 (avx512f_scalef<mode><mask_name>): Ditto.
8801 (avx512f_getexp<mode><mask_name>): Ditto.
8802 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8803 (avx512f_rndscale<mode><mask_name>): Ditto.
8804 (avx512f_shufps512_1<mask_name>): Ditto.
8805 (avx512f_shufpd512_1<mask_name>): Ditto.
8806 (<plusminus_insn><mode>3<mask_name>): Ditto.
8807 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8808 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8809 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8810 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8811 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8812 (mul<mode>3<mask_name>): Ditto.
8813 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8814 (<shift_insn><mode>3<mask_name>): Ditto.
8815 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8816 (avx512f_<rotate><mode><mask_name>): Ditto.
8817 (<code><mode>3<mask_name>/maxmin): Ditto.
8818 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8819 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8820 (*andnot<mode>3<mask_name>): Ditto.
8821 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8822 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8823 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8824 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8825 (vec_set_lo_<mode><mask_name>): Ditto.
8826 (vec_set_hi_<mode><mask_name>): Ditto.
8827 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8828 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8829 (avx512f_pshufd_1<mask_name>): Ditto.
8830 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8831 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8832 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8833 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8834 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8835 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8836 (avx512er_exp2<mode><mask_name>): Ditto.
8837 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8838 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8839 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8840 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8841 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8842 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8843 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8844 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8845 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8846 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8847 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8848 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8849 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8850 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8851 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8852 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8853 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8854 (avx512f_getmant<mode><mask_name>): Ditto.
8855 (clz<mode>2<mask_name>): Ditto.
8856 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8857 (*srcp14<mode>): Remove visibility.
8858 (*rsqrt14<mode>): Ditto.
8859 (*fma_fmsub_<mode>): Ditto.
8860 (*fma_fnmadd_<mode>): Ditto.
8861 (*avx512f_rndscale<mode>): Ditto.
8862 * config/i386/subst.md: New file.
8863
8864 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8865
8866 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8867 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8868 (atomic_load_explicit, atomic_exchange_explicit)
8869 (atomic_compare_exchange_strong_explicit)
8870 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8871 declare variable initialized with PTR argument.
8872
8873 2013-11-12 Jeff Law <law@redhat.com>
8874
8875 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8876 backedge_seen_p. Set, use and pass it to children appropriately.
8877 (thread_through_normal_block): Similarly.
8878 (thread_across_edge): Similarly.
8879
8880 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8881 memory references as volatile.
8882 (insert_trap_and_remove_trailing_statements): Fix comment.
8883
8884 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8885
8886 PR other/58712
8887 * ira-costs.c (record_operand_costs): Check operands number for
8888 the single set.
8889
8890 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8891
8892 PR target/59054
8893 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8894 constraints that would allow DImode into the traditional Altivec
8895 registers, but cause undesirable code generation when loading 0 as
8896 a constant.
8897 (movdi_internal64): Likewise.
8898 (cmp<mode>_fpr): Do not use %x for CR register output.
8899 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8900 -mallow-upper-sf debug switches are used.
8901
8902 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8903
8904 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8905 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8906 Relocate prototypes from gimple.h.
8907 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8908 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8909 from gimple.h.
8910 * gimple.h: Move some prototypes to gimplify.h.
8911 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8912 gimplify.h.
8913 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8914 Relocate from gimpify.c.
8915 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8916 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8917 is_gimple_reg_rhs) Relocate from gimplify.c.
8918 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8919 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8920 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8921 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8922 is_gimple_reg_rhs): Move to gimple-expr.c.
8923 (should_carry_location_p): Move to gimple.c.
8924 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8925 to gimple.h.
8926 (annotate_one_with_location, annotate_all_with_location_after,
8927 annotate_all_with_location): Move to gimple.c.
8928 (compare_case_labels, sort_case_labels,
8929 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8930 (rhs_predicate_for): Make static.
8931 (gimplify_assign): Relocate from gimple.c.
8932 * gimple.c (gimplify_assign): Move to gimplify.c.
8933 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8934 annotate_one_with_location, annotate_all_with_location_after,
8935 annotate_all_with_location, compare_case_labels, sort_case_labels,
8936 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8937 * tree.h (unshare_expr, unshare_expr_without_location,
8938 mark_addressable): Move prototypes to gimplify.h.
8939 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8940 tmp_var_id_num
8941 * asan.c: Include gimplify.h rather than gimple.h.
8942 * cfgloopmanip.c: Likewise.
8943 * cgraphunit.c: Likewise.
8944 * cilk-common.c: Likewise.
8945 * dwarf2out.c: Dont include gimple.h.
8946 * fold-const.c: Include gimplify.h rather than gimple.h.
8947 * function.c: Likewise.
8948 * gimple-fold.c: Likewise.
8949 * gimple-ssa-strength-reduction.c: Likewise.
8950 * graphite-clast-to-gimple.c: Likewise.
8951 * graphite-sese-to-poly.c: Likewise.
8952 * ipa-prop.c: Likewise.
8953 * ipa-split.c: Likewise.
8954 * ipa.c: Likewise.
8955 * langhooks.c: Dont include gimple.h.
8956 * loop-init.c: Include gimplify.h rather than gimple.h.
8957 * omp-low.c: Likewise.
8958 * sese.c: Likewise.
8959 * stor-layout.c: Likewise.
8960 * targhooks.c: Likewise.
8961 * trans-mem.c: Likewise.
8962 * tree-affine.c: Likewise.
8963 * tree-cfg.c: Likewise.
8964 * tree-cfgcleanup.c: Likewise.
8965 * tree-complex.c: Likewise.
8966 * tree-if-conv.c: Likewise.
8967 * tree-inline.c: Likewise.
8968 * tree-iterator.c: Likewise.
8969 * tree-loop-distribution.c: Likewise.
8970 * tree-nested.c: Likewise.
8971 * tree-parloops.c: Likewise.
8972 * tree-predcom.c: Likewise.
8973 * tree-profile.c: Likewise.
8974 * tree-scalar-evolution.c: Likewise.
8975 * tree-sra.c: Likewise.
8976 * tree-ssa-address.c: Likewise.
8977 * tree-ssa-ccp.c: Likewise.
8978 * tree-ssa-dce.c: Likewise.
8979 * tree-ssa-forwprop.c: Likewise.
8980 * tree-ssa-ifcombine.c: Likewise.
8981 * tree-ssa-loop-im.c: Likewise.
8982 * tree-ssa-loop-ivopts.c: Likewise.
8983 * tree-ssa-loop-manip.c: Likewise.
8984 * tree-ssa-loop-niter.c: Likewise.
8985 * tree-ssa-loop-prefetch.c: Likewise.
8986 * tree-ssa-loop-unswitch.c: Likewise.
8987 * tree-ssa-math-opts.c: Likewise.
8988 * tree-ssa-phiopt.c: Likewise.
8989 * tree-ssa-phiprop.c: Likewise.
8990 * tree-ssa-pre.c: Likewise.
8991 * tree-ssa-propagate.c: Likewise.
8992 * tree-ssa-reassoc.c: Likewise.
8993 * tree-ssa-sccvn.c: Likewise.
8994 * tree-ssa-strlen.c: Likewise.
8995 * tree-ssa.c: Likewise.
8996 * tree-switch-conversio: Likewise.n.c
8997 * tree-tailcall.c: Likewise.
8998 * tree-vect-data-refs.c: Likewise.
8999 * tree-vect-generic.c: Likewise.
9000 * tree-vect-loop-manip.c: Likewise.
9001 * tree-vect-loop.c: Likewise.
9002 * tree-vect-patterns.c: Likewise.
9003 * tree-vect-stmts.c: Likewise.
9004 * tsan.c: Likewise.
9005 * value-prof.c: Likewise.
9006 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
9007 * config/alpha/alpha.c: Likewise.
9008 * config/darwin.c: Likewise.
9009 * config/i386/i386.c: Likewise.
9010 * config/ia64/ia64.c: Likewise.
9011 * config/mep/mep.c: Likewise.
9012 * config/mips/mips.c: Likewise.
9013 * config/rs6000/rs6000.c: Likewise.
9014 * config/s390/s390.c: Likewise.
9015 * config/sh/sh.c: Likewise.
9016 * config/sparc/sparc.c: Likewise.
9017 * config/spu/spu.c: Likewise.
9018 * config/stormy16/stormy16.c: Likewise.
9019 * config/tilegx/tilegx.c: Likewise.
9020 * config/tilepro/tilepro.c: Likewise.
9021 * config/xtensa/xtensa.c: Likewise.
9022
9023 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
9024
9025 * tree.c (grow_tree_vec_stat): New function ...
9026 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
9027 and macro front-end.
9028
9029 2013-11-12 Marek Polacek <polacek@redhat.com>
9030
9031 * final.c (update_alignments): Initialize label to NULL_RTX.
9032
9033 2013-11-12 Jeff Law <law@redhat.com>
9034
9035 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9036 (insert_trap_and_remove_trailing_statements): New argument OP which
9037 is the NULL pointer. Emit the trap after the load/store through
9038 the NULL pointer. Simplify the RHS of a store through a NULL pointer
9039 when trivial to do so.
9040 (isolate_path): Corresponding changes.
9041 (gimple_ssa_isolate_erroneous_path): Likewise.
9042
9043 2013-11-12 Teresa Johnson <tejohnson@google.com>
9044 Jan Hubicka <jh@suse.cz>
9045
9046 * predict.c (drop_profile): New function.
9047 (handle_missing_profiles): Ditto.
9048 (counts_to_freqs): Don't overwrite estimated frequencies
9049 when function has no profile counts.
9050 * predict.h (handle_missing_profiles): Declare.
9051 * tree-inline.c (freqs_to_counts): New function.
9052 (copy_cfg_body): Invoke freqs_to_counts as needed.
9053 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9054
9055 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9056
9057 PR target/59088
9058 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9059 Set for m_HASWELL.
9060 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9061
9062 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9063
9064 PR target/59084
9065 * config/i386/i386.c (ix86_option_override_internal): Check
9066 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9067 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9068 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9069 MASK_AVX256_SPLIT_UNALIGNED_STORE.
9070
9071 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9072 Clear m_COREI7_AVX and update comments.
9073 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9074
9075 2013-11-12 Martin Jambor <mjambor@suse.cz>
9076
9077 PR rtl-optimization/10474
9078 * ira.c (interesting_dest_for_shprep): New function.
9079 (split_live_ranges_for_shrink_wrap): Likewise.
9080 (find_moveable_pseudos): Move calculation of dominance info,
9081 df_analysios and the final anlyses to...
9082 (ira): ...here, call split_live_ranges_for_shrink_wrap.
9083
9084 2013-11-12 Bin Cheng <bin.cheng@arm.com>
9085
9086 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9087 Handle type conversion.
9088
9089 2013-11-11 Martin Liska <marxin.liska@gmail.com>
9090 Jan Hubicka <jh@suse.cz>
9091
9092 * cgraph.c (dump_cgraph_node): Profile dump added.
9093 * cgraph.h (struct cgraph_node): New time profile variable added.
9094 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9095 * gcov-io.h (gcov_type): New profiler type introduced.
9096 * ipa-profile.c (lto_output_node): Streaming for time profile added.
9097 (input_node): Time profiler is read from LTO stream.
9098 * predict.c (maybe_hot_count_p): Hot prediction changed.
9099 * profile.c (instrument_values): New case for time profiler added.
9100 (compute_value_histograms): Read of time profile.
9101 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9102 * tree-profile.c (init_ic_make_global_vars): Time profiler
9103 function added.
9104 (gimple_init_edge_profiler): TP function instrumentation.
9105 (gimple_gen_time_profiler): New.
9106 * value-prof.c (gimple_add_histogram_value): Support for time profiler
9107 added.
9108 (dump_histogram_value): TP type added to dumps.
9109 (visit_hist): More sensitive check that takes TP into account.
9110 (gimple_find_values_to_profile): TP instrumentation.
9111 * value-prof.h (hist_type): New histogram type added.
9112 (struct histogram_value_t): Pointer to struct function added.
9113 * libgcc/Makefile.in: New GCOV merge function for TP added.
9114 * libgcov.c: function_counter variable introduced.
9115 (_gcov_merge_time_profile): New.
9116 (_gcov_time_profiler): New.
9117
9118 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
9119 Jeff Law <law@redhat.com>
9120
9121 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9122 ao_ref_init_from_ptr_and_size for builtins.
9123
9124 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
9125 H.J. Lu <hongjiu.lu@intel.com>
9126
9127 PR target/58853
9128 * config/i386/x86-tune.def
9129 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9130 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9131 * config/i386/i386.h
9132 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9133 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
9134 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9135 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9136 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9137 misaligned_prologue_used. Check that
9138 desired_aling <= epilogue_size_needed.
9139
9140 2013-11-11 Cong Hou <congh@google.com>
9141
9142 PR tree-optimization/59050
9143 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9144
9145 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9146
9147 PR middle-end/59049
9148 * expmed.c (emit_store_flag): Fail for const-const comparison.
9149
9150 2013-11-11 Tristan Gingold <gingold@adacore.com>
9151 Eric Botcazou <ebotcazou@adacore.com>
9152
9153 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9154 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9155 * tree.def (CONSTRUCTOR): Likewise.
9156 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
9157 * gimplify.c (gimplify_init_constructor): Do not clear the object when
9158 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9159
9160 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
9161
9162 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9163 diagnostic_finish.
9164
9165 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9166
9167 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9168 comparisons.
9169
9170 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9171
9172 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9173
9174 2013-11-08 Jeff Law <law@redhat.com>
9175
9176 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9177 threading paths first, then perform PHI node checks if applicable.
9178
9179 2013-11-10 Karlson2k <k2k@narod.ru>
9180 Kai Tietz <ktietz@redhat.com>
9181
9182 PR plugin/52872
9183 * configure.ac: Adding for exported symbols check
9184 and for rdynamic-check executable-extension.
9185 * configure: Regenerated.
9186
9187 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
9188
9189 * mode-switching.c (optimize_mode_switching): Mark block as
9190 nontransparent, if last_mode at block exit is different from no_mode.
9191
9192 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9193
9194 * function.c (NAME__MAIN): Move to...
9195 * cfgexpand.c (NAME__MAIN): ...here.
9196
9197 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
9198
9199 * target.def (can_use_doloop_p): New hook.
9200 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9201 * doc/tm.texi: Regenerate.
9202 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9203 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9204 * hooks.c (hook_bool_dint_dint_uint_true): New function.
9205 * targhooks.h (can_use_doloop_if_innermost): Declare.
9206 * targhooks.c (can_use_doloop_if_innermost): New function.
9207 * target.h: Include double-int.h.
9208 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9209 Remove iteration count, maximum iteration count, loop depth and
9210 enter-at-top inputs from doloop_begin and doloop_end.
9211 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9212 interface.
9213 * config/arc/arc.c (arc_can_use_doloop_p): New function.
9214 (TARGET_CAN_USE_DOLOOP_P): Define.
9215 * config/arm/thumb2.md (doloop_end): Update for new interface.
9216 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9217 * config/bfin/bfin.md (doloop_end): Update for new interface.
9218 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9219 (TARGET_CAN_USE_DOLOOP_P): Define.
9220 * config/c6x/c6x.md (doloop_end): Update for new interface.
9221 * config/ia64/ia64.md (doloop_end): Update for new interface.
9222 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9223 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9224 interface.
9225 * config/mep/mep.c (mep_emit_doloop): Likewise.
9226 (TARGET_CAN_USE_DOLOOP_P): Define.
9227 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9228 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9229 * config/s390/s390.md (doloop_end): Update for new interface.
9230 * config/sh/sh.md (doloop_end): Likewise.
9231 * config/spu/spu.md (doloop_end): Likewise.
9232 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9233 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9234 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9235 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9236 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9237 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9238 interface.
9239 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9240
9241 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
9242
9243 PR other/59055
9244 * doc/extend.texi: Move Cilk Plus Builtins node before Other
9245 Builtins node.
9246
9247 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
9248 Joseph Myers <joseph@codesourcery.com>
9249
9250 * ginclude/stdatomic.h: New file.
9251 * Makefile.in (USER_H): Add stdatomic.h.
9252
9253 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9254
9255 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9256 comparisons.
9257
9258 2013-11-08 Jeff Law <law@redhat.com>
9259
9260 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9261 * tree-ssa-threadupdate.c (delete_thread_path): New function.
9262 (ssa_redirect_edges, thread_block_1): Use it.
9263 (thread_through_loop_header, mark_threaded_blocks): Likewise.
9264 (thread_through_all_blocks, register_jump_thread): Likewise.
9265 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9266
9267 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
9268
9269 * config/arm/aarch-common.c
9270 (search_term): New typedef.
9271 (shift_rtx_costs): New array.
9272 (arm_rtx_shift_left_p): New.
9273 (arm_find_sub_rtx_with_search_term): Likewise.
9274 (arm_find_sub_rtx_with_code): Likewise.
9275 (arm_early_load_addr_dep): Add sanity checking.
9276 (arm_no_early_alu_shift_dep): Likewise.
9277 (arm_no_early_alu_shift_value_dep): Likewise.
9278 (arm_no_early_mul_dep): Likewise.
9279 (arm_no_early_store_addr_dep): Likewise.
9280
9281 2013-11-08 Richard Biener <rguenther@suse.de>
9282
9283 PR tree-optimization/59047
9284 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9285
9286 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
9287
9288 * common.opt (fcheck-pointer-bounds): Move to ...
9289 * c-family/c.opt: ... here.
9290 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9291 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9292 * langhooks.h (lang_hooks): Remove chkp_supported field.
9293 * toplev.c (process_options): Remove chkp_supported check.
9294
9295 2013-11-08 Richard Biener <rguenther@suse.de>
9296
9297 PR tree-optimization/59038
9298 PR tree-optimization/58955
9299 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9300 previous change. Handle known dependences correctly.
9301
9302 2013-11-08 Tom de Vries <tom@codesourcery.com>
9303
9304 * config/rs6000/t-xilinx: Remove duplicate contents.
9305
9306 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
9307 Joseph Myers <joseph@codesourcery.com>
9308
9309 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9310 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9311 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9312 (struct tree_base): Add atomic_flag field.
9313 * tree.h (TYPE_ATOMIC): New accessor macro.
9314 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9315 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9316 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9317 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9318 * tree.c (set_type_quals): Set TYPE_ATOMIC.
9319 (find_atomic_core_type): New function.
9320 (build_qualified_type): Adjust alignment for qualified types.
9321 (build_atomic_base): New function
9322 (build_common_tree_nodes): Build atomicQI_type_node,
9323 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9324 atomicTI_type_node.
9325 * print-tree.c (print_node): Print atomic qualifier.
9326 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9327 * target.def (atomic_assign_expand_fenv): New hook.
9328 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9329 * doc/tm.texi: Regenerate.
9330 * targhooks.c (default_atomic_assign_expand_fenv): New function.
9331 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9332 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9333 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9334 function type.
9335 * config/i386/i386.c (enum ix86_builtins): Add
9336 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9337 IX86_BUILTIN_FNCLEX.
9338 (bdesc_special_args): Add __builtin_ia32_fnstenv,
9339 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9340 (ix86_expand_builtin): Handle the new built-in functions.
9341 (ix86_atomic_assign_expand_fenv): New function.
9342 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9343 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9344 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9345 (fnstenv, fldenv, fnstsw, fnclex): New insns.
9346
9347 2013-11-07 Steve Ellcey <sellcey@mips.com>
9348
9349 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9350 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9351 (MULTILIB_DIRNAMES): Add fp64 directory.
9352 (MULTILIB_EXCEPTIONS): Add new exclusions.
9353
9354 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
9355
9356 * gimplify.c (gimple_regimplify_operands): Do not set
9357 SSA_NAME_DEF_STMT.
9358 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9359 (rewrite_close_phi_out_of_ssa): Same.
9360 (rewrite_phi_out_of_ssa): Same.
9361 (rewrite_degenerate_phi): Same.
9362 (handle_scalar_deps_crossing_scop_limits): Same.
9363 * tree-if-conv.c (predicate_scalar_phi): Same.
9364 * tree-parloops.c (create_loads_for_reductions): Same.
9365 (create_final_loads_for_reduction): Same.
9366 (create_loads_and_stores_for_name): Same.
9367 (transform_to_exit_first_loop): Same.
9368 (create_parallel_loop): Same.
9369 * tree-ssa-loop-im.c
9370 (move_computations_dom_walker::before_dom_children): Same.
9371 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9372 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9373 * tree-ssa-propagate.c (substitute_and_fold): Same.
9374 * tree-vect-loop.c (vect_finalize_reduction): Same.
9375 * tree-vect-stmts.c (vectorizable_call): Same.
9376
9377 2013-11-07 Mike Stump <mikestump@comcast.net>
9378
9379 * config/pdp11/pdp11.c: Include dbxout.h.
9380 * config/picochip/picochip.c: Likewise.
9381
9382 2013-11-07 Cong Hou <congh@google.com>
9383
9384 PR tree-optimization/56764
9385 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9386 Combine alias checks if it is possible to amortize the runtime
9387 overhead. Return the number of alias checks after merging.
9388 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9389 Use the function vect_create_cond_for_alias_checks () to check
9390 the number of alias checks.
9391
9392 2013-11-07 Jeff Law <law@redhat.com>
9393
9394 * varpool.c (ctor_for_folding): Fix typo in comment.
9395
9396 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
9397
9398 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9399 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
9400
9401 2013-11-07 Jeff Law <law@redhat.com>
9402
9403 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9404
9405 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9406 No longer check if we have __builtin_trap, assume it's available.
9407
9408 2013-11-07 Diego Novillo <dnovillo@google.com>
9409
9410 * attribs.c (lookup_scoped_attribute_spec): Make static.
9411 (get_attribute_namespace): Likewise.
9412 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9413 (validate_arglist): Move earlier in the file. Make static.
9414 (expand_stack_restore): Move from stmt.c
9415 (expand_stack_save): Move from stmt.c
9416 (rewrite_call_expr_array): Move earlier in the file.
9417 (rewrite_call_expr_valist): Likewise.
9418 * cfgexpand.c: Include hard-reg-set.h before tree.h
9419 Include recog.h.
9420 Include output.h.
9421 (expand_asm_loc): Move from stmt.c.
9422 (n_occurrences): Move from stmt.c.
9423 (check_operand_nalternatives): Move from stmt.c.
9424 (tree_conflicts_with_clobbers_p): Move from stmt.c.
9425 (expand_asm_operands): Move from stmt.c
9426 (expand_asm_stmt): Move from stmt.c
9427 (expand_computed_goto): Move from stmt.c
9428 (expand_goto): Move from stmt.c
9429 (expand_null_return_1): Move from stmt.c
9430 (expand_null_return): Move from stmt.c
9431 (expand_value_return): Move from stmt.c
9432 (expand_return): Move from stmt.c
9433 (expand_main_function): Move from function.c
9434 (stack_protect_prologue): Move from function.c
9435 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9436 (build_function_decl_skip_args): Move from tree.c.
9437 * explow.c (tree_expr_size): Move from tree.c.
9438 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9439 (fields_length): Move from tree.c.
9440 * fold-const.c (size_low_cst): Move from tree.c.
9441 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9442 (tree_expr_nonzero_p): Make static. Move earlier in the file.
9443 (fold_build3_initializer_loc): Remove.
9444 (tree_invalid_nonnegative_warnv_p): Make static.
9445 * function.c (expand_main_function): Move to cfgexpand.c.
9446 (stack_protect_prologue): Move to cfgexpand.c.
9447 (set_insn_locations): Move earlier in the file.
9448 * gimple-fold.c: Include langhooks.h.
9449 (truth_type_for): Move from tree.c.
9450 * print-tree.c (print_vec_tree): Remove.
9451 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9452 (expand_goto): Move to cfgexpand.c.
9453 (n_occurrences): Move to cfgexpand.c.
9454 (expand_asm_loc): Move to cfgexpand.c
9455 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9456 (expand_asm_operands): Move to cfgexpand.c.
9457 (expand_asm_stmt): Move to cfgexpand.c.
9458 (check_operand_nalternatives): Move to cfgexpand.c
9459 (expand_null_return): Move to cfgexpand.c.
9460 (expand_value_return): Move to cfgexpand.c.
9461 (expand_null_return_1): Move to cfgexpand.c.
9462 (expand_return): Move to cfgexpand.c.
9463 (expand_stack_save): Move to builtins.c.
9464 (expand_stack_restore): Move to builtins.c
9465 * symtab.c: Include output.h.
9466 (decl_assembler_name_hash): Move from tree.c.
9467 (decl_assembler_name_equal): Move from tree.c.
9468 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9469 * tree-eh.c (in_array_bounds_p): Move from tree.c.
9470 (range_in_array_bounds_p): Move from tree.c.
9471 * tree-object-size.c (fini_object_sizes): Make static.
9472 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9473 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9474 * tree.c (decl_assembler_name_equal): Move to symtab.c.
9475 (tree_expr_size): Move to explow.c.
9476 (decl_assembler_name_hash): Move to symtab.c.
9477 (real_twop): Remove.
9478 (tree_expr_size): Move to explow.c.
9479 (stabilize_reference_1): Move earlier in the file. Make static.
9480 (omp_remove_redundant_declare_simd_attrs): Remove.
9481 (simple_cst_list_equal): Move earlier in the file. Make static.
9482 (size_low_cst): Move to fold-const.c.
9483 (build_type_no_quals): Remove.
9484 (build_function_type_skip_args): Move to cgraphclones.c.
9485 (build_function_decl_skip_args): Move to cgraphclones.c.
9486 (in_array_bounds_p): Move to tree-eh.c.
9487 (range_in_array_bounds_p): Move to tree-eh.c.
9488 (truth_type_for): Move to gimple-fold.c.
9489 (list_equal_p): Remove.
9490 * tree.h (decl_assembler_name_equal): Remove.
9491 (decl_assembler_name_hash): Remove.
9492 (truth_type_for): Remove.
9493 (build_type_no_quals): Remove.
9494 (build_function_decl_skip_args): Remove.
9495 (in_array_bounds_p): Remove.
9496 (range_in_array_bounds_p): Remove.
9497 (size_low_cst): Remove.
9498 (omp_remove_redundant_declare_simd_attrs): Remove.
9499 (tree_expr_size): Remove.
9500 (fields_length): Remove.
9501 (stabilize_reference_1): Remove.
9502 (expand_goto): Remove.
9503 (expand_stack_save): Remove.
9504 (expand_stack_restore): Remove.
9505 (expand_return): Remove.
9506 (fold_build3_initializer_loc): Remove.
9507 (tree_expr_nonzero_p): Remove.
9508 (tree_invalid_nonnegative_warnv_p): Remove.
9509 (tree_expr_nonzero_warnv_p): Remove.
9510 (fold_builtin_snprintf_chk): Remove.
9511 (validate_arglist): Remove.
9512 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9513 (simple_cst_list_equal): Remove.
9514 (real_twop): Remove.
9515 (expand_main_function): Remove.
9516 (stack_protect_prologue): Remove.
9517 (print_vec_tree): Remove.
9518 (lookup_scoped_attribute_spec): Remove.
9519 (get_attribute_namespace): Remove.
9520 (expand_computed_goto): Remove.
9521 (expand_asm_stmt): Remove.
9522 (list_equal_p): Remove.
9523 (ssa_name_nonnegative_p): Remove.
9524 (fini_object_sizes): Remove.
9525 (addr_expr_of_non_mem_decl_p): Remove.
9526 (is_tm_safe_or_pure): Move to trans-mem.c.
9527 (more_const_call_expr_args_p): Remove.
9528 (save_vtable_map_decl): Remove.
9529
9530 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9531
9532 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9533 linker plugins, too.
9534
9535 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9536 link to libgomp and its dependencies.
9537 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9538 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9539 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9540 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9541
9542 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9543
9544 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9545 (determine_value_range): Add loop argument. Use get_range_info to
9546 improve range.
9547 (bound_difference): Adjust caller.
9548
9549 2013-11-07 Richard Biener <rguenther@suse.de>
9550 Jakub Jelinek <jakub@redhat.com>
9551
9552 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9553 latches from header PHI arguments from the latch edge.
9554
9555 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9556
9557 PR c++/58176
9558 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9559
9560 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9561
9562 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9563 misaligned_prologue_used when it has been set.
9564
9565 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9566 Jakub Jelinek <jakub@redhat.com>
9567
9568 PR sanitizer/59029
9569 * asan.c (get_mem_refs_of_builtin_call): Allow
9570 integer literals as addresses in instrumented builtins.
9571
9572 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9573
9574 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9575 Explain why plus_constant is not used.
9576
9577 2013-11-07 Richard Biener <rguenther@suse.de>
9578
9579 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9580 (canonicalize_value): ... this. Also handle stripping of
9581 TREE_OVERFLOW.
9582 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9583 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9584 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9585
9586 2013-11-07 Richard Biener <rguenther@suse.de>
9587
9588 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9589
9590 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9591
9592 PR target/59034
9593 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9594 with stack_pointer_rtx.
9595
9596 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9597
9598 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9599 using operand_equal_p.
9600
9601 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9602
9603 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9604 * tree-affine.c (get_inner_reference_aff): Return base.
9605 * tree-affine.h (get_inner_reference_aff): Change prototype.
9606
9607 2013-11-06 Tobias Burnus <burnus@net-b.de>
9608
9609 * doc/invoke.texi (Wdate-time): Fix typo.
9610
9611 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9612
9613 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9614 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9615 fp_arith_reg_operand instead of arith_reg_operand.
9616
9617 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9618
9619 * config/sh/sh.md (adddi3): Remove empty constraints.
9620 Remove can_create_pseudo_p and arith_reg_operand check.
9621 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9622 Split before reload.
9623
9624 2013-11-06 Jeff Law <law@redhat.com>
9625 Tom Tromey <tromey@redhat.com>
9626
9627 * gdbinit.in: Disable strict type checking.
9628
9629 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9630
9631 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9632 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9633 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9634 (rest_of_handle_live_range_shrinkage): Ditto
9635 (class pass_live_range_shrinkage): Ditto.
9636 (pass_data_live_range_shrinkage): Ditto.
9637 (make_pass_live_range_shrinkage): Ditto.
9638 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9639 (finish_live_range_shrinkage): Ditto.
9640 * sched-deps.c (create_insn_reg_set): Make void return value.
9641 * passes.def: Add pass_live_range_shrinkage.
9642 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9643 * haifa-sched.c (live_range_shrinkage_p): New.
9644 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9645 New functions.
9646 (rank_for_schedule): Add code for pressure relief through live
9647 range shrinkage.
9648 (schedule_insn): Print more debug info.
9649 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9650 through live range shrinkage.
9651 * doc/invoke.texi (-flive-range-shrinkage): New.
9652 * common.opt (flive-range-shrinkage): New.
9653
9654 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9655
9656 PR target/59021
9657 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9658 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9659 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9660 RTXes that return in AVX256 register.
9661
9662 2013-11-06 Richard Biener <rguenther@suse.de>
9663
9664 PR tree-optimization/58653
9665 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9666 (prepare_initializers_chain): Adjust.
9667
9668 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9669
9670 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9671 (gimple_in_transaction): Use bb_in_transaction.
9672 * basic-block.h (bb_in_transaction): Relocate here and rename.
9673 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9674
9675 2013-11-06 Richard Biener <rguenther@suse.de>
9676
9677 * tree.c (drop_tree_overflow): New function.
9678 * tree.h (drop_tree_overflow): Declare.
9679 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9680 * tree-vrp.c (range_int_cst_singleton_p): Use
9681 is_overflow_infinity instead of testing TREE_OVERFLOW.
9682 (extract_range_from_assert): Likewise.
9683 (zero_nonzero_bits_from_vr): Likewise.
9684 (extract_range_basic): Likewise.
9685 (register_new_assert_for): Use drop_tree_overflow.
9686 (vrp_visit_phi_node): Likewise.
9687
9688 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9689
9690 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9691 checking for leaf functions without dynamic stack allocation.
9692 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9693 (ia64_expand_prologue): Likewise.
9694 * config/mips/mips.c (mips_expand_prologue): Likewise.
9695 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9696 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9697 (sparc_flat_expand_prologue): Likewise.
9698
9699 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9700
9701 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9702 (__ST3_LANE_FUNC): Likewise.
9703 (__ST4_LANE_FUNC): Likewise.
9704
9705 2013-11-06 Nick Clifton <nickc@redhat.com>
9706
9707 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9708 name returned by msp430_mcu_name.
9709 (LIB_SPEC): If a -T option has not been specified then set a
9710 default, mcu-specific, linker script.
9711 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9712 * config/msp430/msp430.c (msp430x_names): Likewise.
9713 Alpha sort the names for ease of comparison.
9714 (msp430_mcu_name): New function: Returns a string suitable for
9715 use as a C preprocessor symbol based upon the name of the MCU
9716 being targeted.
9717 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9718 mcu names.
9719 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9720
9721 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9722 unless it is the last part of a spec substring.
9723 * doc/invoke.texi (Spec Files): Document space insertion
9724 behaviour of %*.
9725
9726 2013-11-06 Christian Bruel <christian.bruel@st.com>
9727
9728 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9729 Factorize probabilities, Use adjust_address instead of
9730 adjust_automodify_address when possible. Enable for optimize.
9731 (sh_expand_strlen): New function.
9732 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9733 * config/sh/sh.md (strlensi): New pattern.
9734 (UNSPEC_BUILTIN_STRLEN): Define.
9735
9736 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9737
9738 PR middle-end/58970
9739 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9740 (expand_assignment): If *bitpos is negative, set *offset
9741 and adjust *bitpos, so that it is not negative.
9742
9743 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9744
9745 * config/i386/bdver3.md : Added two additional decoder units
9746 to support issue rate of 4 and remodeled vector unit.
9747 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9748 architectures is set to 4.
9749 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9750 lookahead is set to 4 for BD architectures.
9751
9752 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9753
9754 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9755 Remove restriction against use of VSX instructions when generating
9756 code for little endian mode.
9757
9758 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9759
9760 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9761 for both big and little endian.
9762 (mulv8hi3): Swap input operands for merge high and merge low
9763 instructions for little endian.
9764
9765 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9766
9767 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9768 define_insn to define_expand that uses even patterns for big
9769 endian and odd patterns for little endian.
9770 (vec_widen_smult_even_v16qi): Likewise.
9771 (vec_widen_umult_even_v8hi): Likewise.
9772 (vec_widen_smult_even_v8hi): Likewise.
9773 (vec_widen_umult_odd_v16qi): Likewise.
9774 (vec_widen_smult_odd_v16qi): Likewise.
9775 (vec_widen_umult_odd_v8hi): Likewise.
9776 (vec_widen_smult_odd_v8hi): Likewise.
9777 (altivec_vmuleub): New define_insn.
9778 (altivec_vmuloub): Likewise.
9779 (altivec_vmulesb): Likewise.
9780 (altivec_vmulosb): Likewise.
9781 (altivec_vmuleuh): Likewise.
9782 (altivec_vmulouh): Likewise.
9783 (altivec_vmulesh): Likewise.
9784 (altivec_vmulosh): Likewise.
9785
9786 2013-11-05 Mike Stump <mikestump@comcast.net>
9787
9788 * Makefile.in (mostlyclean): Remove c-family objects.
9789
9790 2013-11-05 Ian Lance Taylor <iant@google.com>
9791
9792 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9793 If possible, add .cfi directives to record change to bx.
9794 * config/i386/i386.c (ix86_emit_cfi): New function.
9795 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9796
9797 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9798
9799 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9800 immediately after a label for a tablejump pattern.
9801
9802 * config/arm/arm.c (is_jump_table): Remove.
9803 (create_fix_barrier): Use tablejump_p instead.
9804 (arm_reorg): Likewise.
9805 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9806 (thumb2_output_casesi): Likewise.
9807 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9808 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9809 casesi_shift_media, casesi_load_media): Likewise.
9810 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9811 * config/microblaze/microblaze.md: Likewise.
9812
9813 2013-11-05 Tobias Burnus <burnus@net-b.de>
9814
9815 * doc/invoke.texi (-Wdate-time): Document.
9816
9817 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9818
9819 * double-int.c (lshift_double, rshift_double): Remove
9820 SHIFT_COUNT_TRUNCATED handling.
9821
9822 2013-11-05 Jeff Law <law@redhat.com>
9823
9824 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9825 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9826 * gimple-ssa-isolate-paths.c: New file.
9827 * gimple.c (check_loadstore): New function.
9828 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9829 Verify OP is in the argument list and the argument corresponding
9830 to OP is a pointer type. Use operand_equal_p rather than
9831 pointer equality when testing if OP is on the nonnull list.
9832 Use check_loadstore rather than count_ptr_derefs. Handle
9833 GIMPLE_RETURN statements.
9834 * tree-vrp.c (infer_nonnull_range): Remove.
9835 * gimple.h (infer_nonnull_range): Declare.
9836 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9837 * passes.def: Add pass_isolate_erroneous_paths.
9838 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9839 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9840 * tree-ssa.c (struct count_ptr_d): Remove.
9841 (count_ptr_derefs, count_uses_and_derefs): Remove.
9842 * tree-ssa.h (count_uses_and_derefs): Remove.
9843
9844 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR rtl-optimization/58997
9847 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9848 get_iv_value to be in iv->mode rather than iv->extend_mode.
9849 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9850 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9851 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9852 mode.
9853
9854 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9855
9856 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9857 list.
9858 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9859 Move to gimple-expr.h.
9860 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9861 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9862 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9863 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9864 Relocate here.
9865 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9866 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9867 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9868 is_gimple_address, is_gimple_invariant_address,
9869 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9870 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9871 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9872 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9873 gimple_decl_printable_name, useless_type_conversion_p,
9874 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9875 gimple-expr.[ch].
9876 * gimple-expr.c: New File.
9877 (useless_type_conversion_p, gimple_set_body, gimple_body,
9878 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9879 gimple_can_coalesce_p, extract_ops_from_tree_1,
9880 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9881 is_gimple_address, is_gimple_invariant_address,
9882 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9883 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9884 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9885 is_gimple_mem_ref_addr): Relocate here.
9886 * Makefile.in (OBJS): Add gimple-expr.o.
9887
9888 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9889
9890 * gengtype-parse.c (struct_field_seq): Support empty structs.
9891
9892 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9893
9894 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9895
9896 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9897
9898 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9899 for !TARGET_80387.
9900 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9901 _SOFT_FLOAT here.
9902 (LONG_DOUBLE_TYPE_SIZE): New define.
9903 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9904
9905 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9906
9907 PR c++/58724
9908 * doc/extend.texi [visibility ("visibility_type")]: Add example
9909 about visibility attribute on namespace declaration.
9910
9911 2013-11-05 Richard Biener <rguenther@suse.de>
9912
9913 PR ipa/58492
9914 * passes.def (all_passes): Start with pass_fixup_cfg again.
9915
9916 2013-11-05 Richard Biener <rguenther@suse.de>
9917
9918 PR tree-optimization/58955
9919 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9920 edge direction.
9921
9922 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9923
9924 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9925 little endian.
9926 (vec_pack_ufix_trunc_v2df): Likewise.
9927
9928 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9929
9930 PR middle-end/58981
9931 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9932 pattern, instead of word_mode.
9933
9934 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9935 Pmode for size.
9936 (set_storage_via_setmem): Likewise.
9937
9938 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9939
9940 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9941 gimple.h and the rest of the condition in eliminate_build.
9942 (eliminate_build): Call new routine.
9943 * gimple.h (phi_ssa_name_p): Delete.
9944
9945 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9946
9947 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9948 case of no prefix and reserving zero slots, because when that's the
9949 case we'll never get here.
9950 * vec.h (va_heap::reserve): Don't try and handle
9951 vec_prefix::calculate_allocation returning zero because that should
9952 never happen.
9953
9954 2013-11-05 Richard Biener <rguenther@suse.de>
9955
9956 PR middle-end/58941
9957 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9958 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9959 process trailing array detection before diving into the
9960 view-converted object (and possibly apply some extra offset).
9961
9962 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9963
9964 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9965 New function.
9966 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9967
9968 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9969
9970 PR tree-optimization/58958
9971 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9972 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9973
9974 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9975
9976 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9977 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9978
9979 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9980
9981 PR tree-optimization/58984
9982 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9983 set *SIZE_P if non-NULL on success.
9984 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9985 callers.
9986 (ipcp_transform_function): Likewise. Punt if size of access
9987 is different from TYPE_SIZE on v->value's type.
9988
9989 2013-11-05 Tobias Burnus <burnus@net-b.de>
9990
9991 * doc/invoke.texi (-fopenmp-simd): Document new option.
9992 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9993 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9994 * tree.c (attribute_value_equal): Ditto.
9995
9996 2013-11-04 Wei Mi <wmi@google.com>
9997
9998 * sched-rgn.c (add_branch_dependences): Keep insns in
9999 a SCHED_GROUP at the end of BB to remain their location.
10000
10001 2013-11-04 Wei Mi <wmi@google.com>
10002
10003 * config/i386/i386.c (memory_address_length): Extract a part
10004 of code to rip_relative_addr_p.
10005 (rip_relative_addr_p): New Function.
10006 (ix86_macro_fusion_p): Ditto.
10007 (ix86_macro_fusion_pair_p): Ditto.
10008 * config/i386/i386.h: Add new tune features about macro-fusion.
10009 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10010 * doc/tm.texi: Generated.
10011 * doc/tm.texi.in: Ditto.
10012 * haifa-sched.c (try_group_insn): New Function.
10013 (group_insns_for_macro_fusion): Ditto.
10014 (sched_init): Call group_insns_for_macro_fusion.
10015 * target.def: Add two hooks: macro_fusion_p and
10016 macro_fusion_pair_p.
10017
10018 2013-11-04 Kostya Serebryany <kcc@google.com>
10019
10020 Update to match the changed asan API.
10021 * asan.c (asan_function_start): New function.
10022 (asan_emit_stack_protection): Update the string stored in the
10023 stack red zone to match new API. Store the PC of the current
10024 function in the red zone.
10025 (asan_global_struct): Update the __asan_global definition to match
10026 the new API.
10027 (asan_add_global): Ditto.
10028 * asan.h (asan_function_start): New prototype.
10029 * final.c (final_start_function): Call asan_function_start.
10030 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10031 to __asan_init_v3.
10032
10033 2013-11-04 Wei Mi <wmi@google.com>
10034
10035 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10036 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10037 * config/i386/i386.c (ix86_option_override_internal): Ditto.
10038 (ix86_issue_rate): Ditto.
10039 (ix86_adjust_cost): Ditto.
10040 (ia32_multipass_dfa_lookahead): Ditto.
10041 (ix86_sched_init_global): Ditto.
10042 (get_builtin_code_for_version): Ditto.
10043 * config/i386/i386.h (enum target_cpu_default): Ditto.
10044 (enum processor_type): Ditto.
10045 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10046
10047 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10048
10049 PR rtl-optimization/58967
10050 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10051 !lra_in_progress for mode sizes bigger word.
10052
10053 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10054
10055 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10056 arguments to merge instruction for little endian.
10057 (vec_widen_umult_lo_v16qi): Likewise.
10058 (vec_widen_smult_hi_v16qi): Likewise.
10059 (vec_widen_smult_lo_v16qi): Likewise.
10060 (vec_widen_umult_hi_v8hi): Likewise.
10061 (vec_widen_umult_lo_v8hi): Likewise.
10062 (vec_widen_smult_hi_v8hi): Likewise.
10063 (vec_widen_smult_lo_v8hi): Likewise.
10064
10065 2013-11-04 Ian Lance Taylor <iant@google.com>
10066
10067 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10068 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10069 builtins that take pointers.
10070 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10071 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10072 (run_gcc): Pass -fnon-call-exceptions.
10073
10074 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10075
10076 * optabs.c (expand_vec_perm): Revert one incorrect line from
10077 2013-10-31 change.
10078
10079 PR tree-optimization/58978
10080 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10081 use_stmt by single_imm_use directly. Only call single_imm_use
10082 on SSA_NAMEs.
10083
10084 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10085
10086 PR rtl-optimization/58968
10087 * lra-spills.c (return_regno_p): New function.
10088 (lra_final_code_change): Use it.
10089
10090 2013-11-04 Joseph Myers <joseph@codesourcery.com>
10091
10092 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10093 * target.def (float_exceptions_rounding_supported_p): New hook.
10094 * targhooks.c (default_float_exceptions_rounding_supported_p): New
10095 function.
10096 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10097 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10098 New @hook.
10099 * doc/tm.texi: Regenerate.
10100 * config.gcc (powerpc*-*-linux*): Set extra_objs.
10101 * config/rs6000/rs6000-linux.c: New file.
10102 * config/rs6000/rs6000-protos.h
10103 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10104 * config/rs6000/linux.h
10105 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10106 * config/rs6000/linux64.h
10107 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10108 * config/rs6000/t-linux (rs6000-linux.o): New rule.
10109 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10110
10111 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10112
10113 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10114 Replace the define_insn_and_split with a define_insn and two
10115 define_splits, with the split after reload re-permuting the source
10116 register to its original value.
10117 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10118 (*vsx_le_perm_store_v8hi): Likewise.
10119 (*vsx_le_perm_store_v16qi): Likewise.
10120
10121 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10122
10123 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
10124 little endian.
10125
10126 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10127
10128 PR tree-optimization/58946
10129 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10130 bbs with bbinfo[idx].op != NULL before all blocks with
10131 bbinfo[idx].op == NULL.
10132
10133 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
10134
10135 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10136 (avr_dump_double_int_hex): Likewise.
10137 (avr_log_vadump): Remove %D and %X handling.
10138 * config/avr/avr.c (avr_double_int_push_digit): Delete.
10139 (avr_map_op_t): Change map from double_int to unsigned int.
10140 (avr_map_op): Update accordingly.
10141 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10142 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10143 unsigned ints rather than double_ints.
10144
10145 2013-11-03 Marek Polacek <polacek@redhat.com>
10146
10147 Implement -fsanitize=vla-bound.
10148 * opts.c (common_handle_option): Handle vla-bound.
10149 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10150 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10151 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10152
10153 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10154
10155 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10156 little endian.
10157
10158 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
10159
10160 * config/i386/constraints.md (Ts, Tv): New address constrains.
10161 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10162 constraint for address_no_seg_operand.
10163 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10164 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10165 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10166 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10167 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10168 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10169 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10170 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10171 constraint for vsib_address_operand.
10172
10173 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
10174
10175 * gcse.c (pre_delete): Remove references to regmove from comments.
10176 * recog.c: (validate_replace_rtx_1): Likewise.
10177 * config/rl78/rl78.c: Likewise.
10178 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10179 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10180 * common/config/mmix/mmix-common.c: Likewise.
10181
10182 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
10183
10184 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10185 * gimplify.c (gimplify_compound_lval): Likewise.
10186 * graphite-clast-to-gimple.c (gloog): Likewise.
10187 * graphite-dependences.c (loop_is_parallel_p): Likewise.
10188 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10189 (limit_scop); Likewise.
10190 (build_scops): Likewise.
10191 (dot_scop): Likewise.
10192 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10193 (build_scop_drs): Likewise.
10194 (insert_stmts): Likewise.
10195 (insert_out_of_ssa_copy): Likewise.
10196 (remove_phi): Likewise.
10197 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10198 * hw-doloop.c (discover_loop): Likewise.
10199 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10200 * tree-dfa.c (dump_enumerated_decls): Likewise.
10201 * tree-if-conv.c (if_convertable_loop_p): Likewise.
10202 * tree-inline.c (tree_function_versioning): Likewise.
10203 * tree-loop-distribution.c (build_rdg): Likewise.
10204 (rdg_flag_vertex_and_dependent): Likewise.
10205 (distribute_loop): Likewise.
10206 * tree-parloops.c (loop_parallel_p): Likewise.
10207 (eliminate_local_variables): Likewise.
10208 (separate_decls_in_region): Likewise.
10209 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10210 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10211 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10212 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10213 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10214 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10215 (vectorizable_condition): Likewise.
10216
10217 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
10218
10219 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10220 * configure: Regenerate.
10221 * config/i386/i386.md (*movdi_internal): Change
10222 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10223 (*movdf_internal): Ditto.
10224 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10225 * config/i386/sse.md (vec_concatv2di): Output interunit movq
10226 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10227
10228 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
10229
10230 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10231 after comment.
10232
10233 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10234
10235 Automated part of renaming of symtab_node_base to symtab_node.
10236
10237 Patch autogenerated by rename_symtab.py from
10238 https://github.com/davidmalcolm/gcc-refactoring-scripts
10239 revision 58bb219cc090b2f4516a9297d868c245495ee622
10240 with ChangeLog entry fixed up by hand.
10241
10242 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10243 symtab_node.
10244 (cgraph_node_for_asm): Likewise.
10245 * cgraph.h (symtab_node_base): Likewise.
10246 (cgraph_node): Likewise.
10247 (varpool_node): Likewise.
10248 (is_a_helper <cgraph_node>::test): Likewise.
10249 (is_a_helper <varpool_node>::test): Likewise.
10250 (symtab_nodes): Likewise.
10251 (symtab_register_node): Likewise.
10252 (symtab_unregister_node): Likewise.
10253 (symtab_remove_node): Likewise.
10254 (symtab_get_node): Likewise.
10255 (symtab_node_for_asm): Likewise.
10256 (symtab_node_asm_name): Likewise.
10257 (symtab_node_name): Likewise.
10258 (symtab_insert_node_to_hashtable): Likewise.
10259 (symtab_add_to_same_comdat_group): Likewise.
10260 (symtab_dissolve_same_comdat_group_list): Likewise.
10261 (dump_symtab_node): Likewise.
10262 (debug_symtab_node): Likewise.
10263 (dump_symtab_base): Likewise.
10264 (verify_symtab_node): Likewise.
10265 (verify_symtab_base): Likewise.
10266 (symtab_used_from_object_file_p): Likewise.
10267 (symtab_alias_ultimate_target): Likewise.
10268 (symtab_resolve_alias): Likewise.
10269 (fixup_same_cpp_alias_visibility): Likewise.
10270 (symtab_for_node_and_aliases): Likewise.
10271 (symtab_nonoverwritable_alias): Likewise.
10272 (availability symtab_node_availability): Likewise.
10273 (symtab_semantically_equivalent_p): Likewise.
10274 (fixup_same_cpp_alias_visibility): Likewise.
10275 (symtab_prevail_in_asm_name_hash): Likewise.
10276 (cgraph): Likewise.
10277 (varpool): Likewise.
10278 (varpool_first_variable): Likewise.
10279 (varpool_next_variable): Likewise.
10280 (varpool_first_static_initializer): Likewise.
10281 (varpool_next_static_initializer): Likewise.
10282 (varpool_first_defined_variable): Likewise.
10283 (varpool_next_defined_variable): Likewise.
10284 (cgraph_first_defined_function): Likewise.
10285 (cgraph_next_defined_function): Likewise.
10286 (cgraph_first_function): Likewise.
10287 (cgraph_next_function): Likewise.
10288 (cgraph_first_function_with_gimple_body): Likewise.
10289 (cgraph_next_function_with_gimple_body): Likewise.
10290 (symtab_alias_target): Likewise.
10291 (symtab_real_symbol_p): Likewise.
10292 (symtab_can_be_discarded): Likewise.
10293 * cgraphbuild.c (mark_address): Likewise.
10294 (mark_load): Likewise.
10295 (mark_store): Likewise.
10296 * cgraphunit.c (decide_is_symbol_needed): Likewise.
10297 (first): Likewise.
10298 (enqueue_node): Likewise.
10299 (referred_to_p): Likewise.
10300 (cgraph_process_same_body_aliases): Likewise.
10301 (analyze_functions): Likewise.
10302 (handle_alias_pairs): Likewise.
10303 (output_weakrefs): Likewise.
10304 (compile): Likewise.
10305 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10306 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10307 * ipa-prop.c (remove_described_reference): Likewise.
10308 (try_decrement_rdesc_refcount): Likewise.
10309 (ipa_edge_duplication_hook): Likewise.
10310 * ipa-ref.c (ipa_record_reference): Likewise.
10311 (ipa_maybe_record_reference): Likewise.
10312 (ipa_clone_ref): Likewise.
10313 (ipa_clone_references): Likewise.
10314 (ipa_clone_referring): Likewise.
10315 (ipa_find_reference): Likewise.
10316 (ipa_remove_stmt_references): Likewise.
10317 (ipa_clear_stmts_in_references): Likewise.
10318 * ipa-ref.h (symtab_node_base): Likewise.
10319 (ipa_ref): Likewise.
10320 (ipa_record_reference): Likewise.
10321 (ipa_maybe_record_reference): Likewise.
10322 (ipa_clone_references): Likewise.
10323 (ipa_clone_referring): Likewise.
10324 (ipa_clone_ref): Likewise.
10325 (ipa_find_reference): Likewise.
10326 (ipa_remove_stmt_references): Likewise.
10327 (ipa_clear_stmts_in_references): Likewise.
10328 * ipa-reference.c (ipa_reference_write_optimization_summary):
10329 Likewise.
10330 * ipa.c (enqueue_node): Likewise.
10331 (process_references): Likewise.
10332 (walk_polymorphic_call_targets): Likewise.
10333 (symtab_remove_unreachable_nodes): Likewise.
10334 (address_taken_from_non_vtable_p): Likewise.
10335 (comdat_can_be_unshared_p_1): Likewise.
10336 (comdat_can_be_unshared_p): Likewise.
10337 (can_replace_by_local_alias): Likewise.
10338 (function_and_variable_visibility): Likewise.
10339 * is-a.h: Likewise (within example in comment).
10340 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10341 (lto_symtab_encoder_encode): Likewise.
10342 (lto_symtab_encoder_delete_node): Likewise.
10343 (lto_symtab_encoder_in_partition_p): Likewise.
10344 (lto_set_symtab_encoder_in_partition): Likewise.
10345 (output_refs): Likewise.
10346 (compute_ltrans_boundary): Likewise.
10347 (output_symtab): Likewise.
10348 (input_node): Likewise.
10349 (input_ref): Likewise.
10350 (input_edge): Likewise.
10351 (input_cgraph_1): Likewise.
10352 (input_refs): Likewise.
10353 (output_cgraph_opt_summary): Likewise.
10354 (input_node_opt_summary): Likewise.
10355 (input_cgraph_opt_section): Likewise.
10356 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10357 Likewise.
10358 * lto-streamer-out.c (lto_output): Likewise.
10359 (output_symbol_p): Likewise.
10360 (produce_symtab): Likewise.
10361 * lto-streamer.h (lto_encoder_entry): Likewise.
10362 (lto_free_function_in_decl_state_for_node): Likewise.
10363 (lto_symtab_encoder_encode): Likewise.
10364 (lto_symtab_encoder_delete_node): Likewise.
10365 (lto_symtab_encoder_in_partition_p): Likewise.
10366 (lto_set_symtab_encoder_in_partition): Likewise.
10367 (lto_symtab_encoder_lookup): Likewise.
10368 (lsei_node): Likewise.
10369 (lto_symtab_encoder_deref): Likewise.
10370 * symtab.c (symtab_hash): Likewise.
10371 (assembler_name_hash): Likewise.
10372 (symtab_nodes): Likewise.
10373 (hash_node): Likewise.
10374 (eq_node): Likewise.
10375 (hash_node_by_assembler_name): Likewise.
10376 (eq_assembler_name): Likewise.
10377 (insert_to_assembler_name_hash): Likewise.
10378 (unlink_from_assembler_name_hash): Likewise.
10379 (symtab_prevail_in_asm_name_hash): Likewise.
10380 (symtab_register_node): Likewise.
10381 (symtab_insert_node_to_hashtable): Likewise.
10382 (symtab_unregister_node): Likewise.
10383 (symtab_get_node): Likewise.
10384 (symtab_remove_node): Likewise.
10385 (symtab_initialize_asm_name_hash): Likewise.
10386 (symtab_node_for_asm): Likewise.
10387 (symtab_add_to_same_comdat_group): Likewise.
10388 (symtab_dissolve_same_comdat_group_list): Likewise.
10389 (symtab_node_asm_name): Likewise.
10390 (symtab_node_name): Likewise.
10391 (dump_symtab_base): Likewise.
10392 (dump_symtab_node): Likewise.
10393 (dump_symtab): Likewise.
10394 (debug_symtab_node): Likewise.
10395 (verify_symtab_base): Likewise.
10396 (verify_symtab_node): Likewise.
10397 (verify_symtab): Likewise.
10398 (symtab_used_from_object_file_p): Likewise.
10399 (symtab_node_availability): Likewise.
10400 (symtab_alias_ultimate_target): Likewise.
10401 (fixup_same_cpp_alias_visibility): Likewise.
10402 (symtab_resolve_alias): Likewise.
10403 (symtab_for_node_and_aliases): Likewise.
10404 (symtab_for_node_and_aliases): Likewise.
10405 (symtab_nonoverwritable_alias_1): Likewise.
10406 (symtab_nonoverwritable_alias): Likewise.
10407 (symtab_semantically_equivalent_p): Likewise.
10408 * value-prof.c (init_node_map): Likewise.
10409 * varasm.c (find_decl): Likewise.
10410 * varpool.c (varpool_node_for_asm): Likewise.
10411 (varpool_remove_unreferenced_decls): Likewise.
10412
10413 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10414
10415 Manual part of renaming of symtab_node_base to symtab_node.
10416
10417 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10418 clashes with the preferred name for the base class.
10419 (const_symtab_node): Remove redundant typedef.
10420
10421 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10422
10423 * optabs.c (expand_vec_perm): Avoid vector mode punning
10424 SUBREGs in SET_DEST.
10425 * expmed.c (store_bit_field_1): Likewise.
10426 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10427 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10428 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10429 * config/i386/i386.c (ix86_expand_vector_move_misalign,
10430 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10431 ix86_expand_sse_unpack, ix86_expand_args_builtin,
10432 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10433 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10434 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10435 expand_vec_perm_vpshufb2_vpermq,
10436 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10437 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10438 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10439 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
10440 than *d itself.
10441
10442 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
10443
10444 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10445 Use gcc_unreachable for unhandled modes. Do not check results of
10446 expand_simple_binop. If not expanded to target, move the result.
10447
10448 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
10449 Shiva Chen <shiva0217@gmail.com>
10450
10451 * config.gcc (nds32*-*-*): Add nds32 target.
10452 * config/nds32/nds32.c: New file.
10453 * config/nds32/nds32.h: New file.
10454 * config/nds32/nds32.md: New file.
10455 * config/nds32/constants.md: New file.
10456 * config/nds32/constraints.md: New file.
10457 * config/nds32/iterators.md: New file.
10458 * config/nds32/nds32-doubleword.md: New file.
10459 * config/nds32/nds32-intrinsic.md: New file.
10460 * config/nds32/nds32_intrinsic.h: New file.
10461 * config/nds32/nds32-modes.def: New file.
10462 * config/nds32/nds32-multiple.md: New file.
10463 * config/nds32/nds32.opt: New file.
10464 * config/nds32/nds32-opts.h: New file.
10465 * config/nds32/nds32-protos.h: New file.
10466 * config/nds32/nds32-peephole2.md: New file.
10467 * config/nds32/pipelines.md: New file.
10468 * config/nds32/predicates.md: New file.
10469 * config/nds32/t-mlibs: New file.
10470 * common/config/nds32: New directory and files.
10471
10472 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10473 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10474 * doc/install.texi (Cross-Compiler-Specific Options): Document
10475 --with-nds32-lib for nds32 target.
10476 * doc/extend.texi (Function Attributes, Target Builtins): Document
10477 nds32 specific attributes.
10478
10479 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10480
10481 * lra-constraints (process_alt_operands): Use the result
10482 elimination register for operand when matching constraints.
10483
10484 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10485
10486 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10487 (remove_range_assertions): Call it.
10488
10489 * tree.c (tree_ctz): New function.
10490 * tree.h (tree_ctz): New prototype.
10491 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10492 first argument from tree to const_tree.
10493 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10494 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10495 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10496 static.
10497 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10498 * tree-vect-loop.c (vect_analyze_loop_operations,
10499 vect_transform_loop): Don't force scalar loop for bound just because
10500 number of iterations is unknown, only do it if it is not known to be
10501 a multiple of vectorization_factor.
10502 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10503
10504 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10505 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10506 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10507 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10508 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10509 a default def isn't partially constant.
10510 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10511 is known to be partially zero.
10512 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10513 to see if a default def isn't partially constant.
10514 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10515 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10516 the range.
10517 (set_nonzero_bits, get_nonzero_bits): New functions.
10518
10519 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10520 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10521 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10522 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10523 uses but in the condition and ASSERT_EXPR and the other successor of
10524 the predecessor bb is __builtin_unreachable (), set_range_info of the
10525 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10526
10527 2013-10-31 Martin Jambor <mjambor@suse.cz>
10528
10529 PR rtl-optimization/58934
10530 Revert:
10531 2013-10-30 Martin Jambor <mjambor@suse.cz>
10532 PR rtl-optimization/10474
10533 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10534 nor df analysis.
10535 (interesting_dest_for_shprep): New function.
10536 (split_live_ranges_for_shrink_wrap): Likewise.
10537 (ira): Calculate dominance info and df analysis. Call
10538 split_live_ranges_for_shrink_wrap.
10539
10540 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10541 Yury Gribov <y.gribov@samsung.com>
10542
10543 PR sanitizer/58543
10544 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10545 shadow pointer to avoid clobbering the main one.
10546
10547 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10548
10549 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10550
10551 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10552
10553 PR bootstrap/58933
10554 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10555 it for calling update_costs_from_allocno.
10556 (assign_hard_reg): Call restore_costs_from_copies only for
10557 !retry_p. Pass new argument to update_costs_from_copies.
10558 (color_pass): Pass new argument to update_costs_from_copies.
10559 (ira_mark_allocation_change): Ditto.
10560
10561 2013-10-30 Sharad Singhai <singhai@google.com>
10562
10563 PR middle-end/58134
10564 * opts.c (common_handle_option): Remove deprecated option
10565 -ftree-vectorizer-verbose.
10566 * doc/invoke.texi (Debugging Options): Ditto.
10567 * opts-global.c (handle_common_deferred_options): Ditto.
10568 (dump_remap_tree_vectorizer_verbose): Delete.
10569 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10570
10571 2013-10-30 DJ Delorie <dj@redhat.com>
10572
10573 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10574 that take no arguments.
10575
10576 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10577
10578 PR other/58545
10579 * reload1.c (update_eliminables_and_spill): New function, broken
10580 out of reload.
10581 (reload): Use it. Check for frame size change after frame size
10582 alignment, and call update_eliminables_and_spill first if continue-ing.
10583
10584 2013-10-30 Cong Hou <congh@google.com>
10585
10586 PR target/58762
10587 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10588 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10589 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10590
10591 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10592
10593 PR rtl-optimization/58369
10594 * reload1.c (compute_reload_subreg_offset): New function.
10595 (choose_reload_regs): Use it to pass endian-correct
10596 offset to subreg_regno_offset.
10597
10598 2013-10-30 Tobias Burnus <burnus@net-b.de>
10599
10600 PR other/33426
10601 * tree-cfg.c (replace_loop_annotate): Replace warning by
10602 warning_at.
10603
10604 2013-10-30 Jason Merrill <jason@redhat.com>
10605
10606 * configure.ac (loose_warn): Add -Wno-format if
10607 --disable-build-format-warnings.
10608
10609 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10610
10611 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10612 onto multiple lines to make things easier for rename_symtab.py.
10613
10614 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10615 (symtab_semantically_equivalent_p): Likewise.
10616
10617 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10618
10619 PR target/58784
10620 * lra.c (check_rtl): Remove address check before LRA work.
10621
10622 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10623
10624 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10625 POINTER_PLUS_EXPR in the defining statement.
10626
10627 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10628
10629 * regmove.c: Remove.
10630 * tree-pass.h (make_pass_regmove): Remove.
10631 * timevar.def (TV_REGMOVE): Remove.
10632 * passes.def (pass_regmove): Remove.
10633 * opts.c (default_options_table): Remove entry for regmove.
10634 * doc/passes.texi: Remove regmove pass description.
10635 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10636 options.
10637 (-fdump-rtl-regmove): Ditto.
10638 * common.opt (foptimize-register-move, fregmove): Ignore.
10639 * Makefile.in (OBJS): Remove regmove.o.
10640 * regmove.c: Remove.
10641 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10642 and type.
10643 (struct ira_allocno) New member allocno_prefs.
10644 (ALLOCNO_PREFS): New macro.
10645 (ira_prefs, ira_prefs_num): New external vars.
10646 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10647 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10648 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10649 Ditto.
10650 (ira_add_allocno_copy_to_list): Remove prototype.
10651 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10652 (ira_pref_iterator): New type.
10653 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10654 (FOR_EACH_PREF): New macro.
10655 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10656 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10657 code.
10658 (ira_setup_alts): New function.
10659 (decrease_live_ranges_number): New function.
10660 (ira): Call the above function.
10661 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10662 (ira_create_allocno): Initialize allocno prefs.
10663 (pref_pool, pref_vec): New static vars.
10664 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10665 functions.
10666 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10667 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10668 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10669 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10670 (ira_add_allocno_copy_to_list): Make static. Rename to
10671 add_allocno_copy_to_list.
10672 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10673 swap_allocno_copy_ends_if_necessary.
10674 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10675 ira_remove_allocno_prefs.
10676 (ira_flattening): Ditto.
10677 (ira_build): Call initiate_prefs, print_prefs.
10678 (ira_destroy): Call finish_prefs.
10679 * ira-color.c (struct update_cost_record): New.
10680 (struct allocno_color_data): Add new member update_cost_records.
10681 (update_cost_record_pool): New static var.
10682 (init_update_cost_records, get_update_cost_record): New functions.
10683 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10684 (struct update_cost_queue_elem): Add member from.
10685 (initiate_cost_update): Call init_update_cost_records.
10686 (finish_cost_update): Call finish_update_cost_records.
10687 (queue_update_cost, get_next_update_cost): Add new param from.
10688 (Update_allocno_cost, update_costs_from_allocno): New functions.
10689 (update_costs_from_prefs): Ditto.
10690 (update_copy_costs): Rename to update_costs_from_copies.
10691 (restore_costs_from_copies): New function.
10692 (update_conflict_hard_regno_costs): Don't go back.
10693 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10694 more debug info.
10695 (pop_allocnos): Add priniting more debug info.
10696 (color_allocnos): Remove prefs for conflicting hard regs.
10697 Call update_costs_from_prefs.
10698 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10699 (get_dup_num): Rename, modify, and move to ira.c
10700 (process_regs_for_copy): Add prefs.
10701 (add_insn_allocno_copies): Put src as first arg of
10702 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10703 * ira-costs.c (record_reg_classes): Modify and move code into
10704 record_operands_costs.
10705 (find_costs_and_classes): Create prefs for the hard reg of small
10706 reg class.
10707 (process_bb_node_for_hard_reg_moves): Add prefs.
10708
10709 2013-10-30 Richard Biener <rguenther@suse.de>
10710
10711 PR middle-end/57100
10712 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10713 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10714 as worker for ...
10715 (pre_and_rev_post_order_compute): ... which now wraps it.
10716 * graph.c (draw_cfg_nodes_no_loops): Use
10717 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10718 on cfun.
10719
10720 2013-10-30 Christian Bruel <christian.bruel@st.com>
10721
10722 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10723 (sh_expand_cmpstr): Handle known align and schedule improvements.
10724 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10725 * config/sh/sh.md (cmpstrnsi): New pattern.
10726
10727 2013-10-30 Martin Jambor <mjambor@suse.cz>
10728
10729 PR rtl-optimization/10474
10730 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10731 nor df analysis.
10732 (interesting_dest_for_shprep): New function.
10733 (split_live_ranges_for_shrink_wrap): Likewise.
10734 (ira): Calculate dominance info and df analysis. Call
10735 split_live_ranges_for_shrink_wrap.
10736
10737 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10738
10739 PR target/58854
10740 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10741
10742 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10743
10744 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10745 * tree.h (POINTER_BOUNDS_P): New.
10746 (BOUNDED_TYPE_P): New.
10747 (BOUNDED_P): New.
10748 (pointer_bounds_type_node): New.
10749 * tree.c (build_common_tree_nodes): Initialize
10750 pointer_bounds_type_node.
10751 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10752 (gimple_call_num_nobnd_args): New.
10753 (gimple_call_nobnd_arg): New.
10754 (gimple_return_retbnd): New.
10755 (gimple_return_set_retbnd): New
10756 * gimple.c (gimple_build_return): Increase number of ops
10757 for return statement.
10758 (gimple_call_get_nobnd_arg_index): New.
10759 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10760
10761 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10762
10763 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10764 with "chkp ctor" and "bnd_legacy" attributes.
10765 * gimplify.c (gimplify_init_constructor): Avoid infinite
10766 loop during gimplification of bounds initializer.
10767
10768 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10769
10770 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10771 (handle_bnd_legacy): New.
10772 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10773 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10774 attributes.
10775
10776 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10777
10778 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10779 (BT_FN_PTR_CONST_PTR): New.
10780 (BT_FN_CONST_PTR_CONST_PTR): New.
10781 (BT_FN_PTR_CONST_PTR_SIZE): New.
10782 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10783 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10784 (BT_FN_VOID_CONST_PTR_SIZE): New.
10785 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10786 * chkp-builtins.def: New.
10787 * builtins.def: include chkp-builtins.def.
10788 (DEF_CHKP_BUILTIN): New.
10789 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10790 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10791 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10792 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10793 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10794 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10795 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10796 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10797 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10798 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10799 * common.opt (fcheck-pointer-bounds): New.
10800 * toplev.c (process_options): Check Pointer Bounds Checker is
10801 supported.
10802 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10803
10804 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10805
10806 * target.def (builtin_chkp_function): New.
10807 (chkp_bound_type): New.
10808 (chkp_bound_mode): New.
10809 (fn_abi_va_list_bounds_size): New.
10810 (load_bounds_for_arg): New.
10811 (store_bounds_for_arg): New.
10812 * targhooks.h (default_load_bounds_for_arg): New.
10813 (default_store_bounds_for_arg): New.
10814 (default_fn_abi_va_list_bounds_size): New.
10815 (default_chkp_bound_type): New.
10816 (default_chkp_bound_mode): New.
10817 (default_builtin_chkp_function): New.
10818 * targhooks.c (default_load_bounds_for_arg): New.
10819 (default_store_bounds_for_arg): New.
10820 (default_fn_abi_va_list_bounds_size): New.
10821 (default_chkp_bound_type): New.
10822 (default_chkp_bound_mode); New.
10823 (default_builtin_chkp_function): New.
10824 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10825 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10826 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10827 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10828 (TARGET_CHKP_BOUND_TYPE): New.
10829 (TARGET_CHKP_BOUND_MODE): New.
10830 * doc/tm.texi: Regenerated.
10831 * langhooks.h (lang_hooks): Add chkp_supported field.
10832 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10833 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10834
10835 2013-10-29 Andrew Pinski <apinski@cavium.com>
10836
10837 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10838 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10839 fails, combining the branches anyways.
10840 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10841 increases the number of combinings.
10842 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10843
10844 2013-10-29 Mike Stump <mikestump@comcast.net>
10845
10846 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10847 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10848 (make_vector_mode): Increase namebuf to 16.
10849 (emit_insn_modes_h): When processing BImode, don't
10850 also match partial int modes.
10851 (emit_class_narrowest_mode): Likewise.
10852
10853 * config/bfin/bfin-modes.def: Add precision to PDI.
10854 * config/m32c/m32c-modes.def: Add precision to PSI.
10855 * config/msp430/msp430-modes.def: Add precision to PSI.
10856 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10857 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10858
10859 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10860
10861 PR target/54236
10862 * config/sh/sh.md (*addc): Rename existing variations to ...
10863 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10864 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10865 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10866 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10867
10868 2013-10-29 Teresa Johnson <tejohnson@google.com>
10869
10870 PR ipa/58862
10871 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10872 insanities when updating probabilities.
10873
10874 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10875
10876 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10877 prettyprinter for cgraph_node to reflect the conversion of the
10878 symtable types to a C++ class hierarchy: it now *is* a
10879 symtab_node_base, rather than having one (named "symbol").
10880
10881 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10882
10883 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10884 __cilkrts_pop_frame. If matched, then return true for built-in
10885 function name.
10886 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10887 BUILT_IN_CILK_POP_FRAME case.
10888 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10889 (lhs_cilk_detect_spawn): Likewise.
10890 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10891 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10892 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10893 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10894 (LANG_HOOKS_CILKPLUS): Likewise.
10895 * tree.h (CILK_SPAWN_FN): Likewise.
10896 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10897 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10898 (OBJS): Added cilk-common.o.
10899 (BUILTINS_DEF): Added cilk-builtins.def.
10900 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10901 (lhd_cilk_detect_spawn): Likewise.
10902 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10903 (struct lang_hooks): Added new field called "cilkplus."
10904 * cilk-common.c: New file.
10905 * cilk.h: Likewise.
10906 * cilk-builtins.def: Likewise.
10907 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10908 "__cilk" macro and set it to 200.
10909 * function.h (struct function::cilk_frame_decl): New field.
10910 (struct function::is_cilk_function): Likewise.
10911 (struct function::calls_cilk_spawn): Likewise.
10912 * gimplify.c (gimplify_call_expr): Added a check if the function call
10913 being gimplified is a spawn detach point. If so, then add pop_frame
10914 and detach function calls.
10915 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10916 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10917 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10918 function. If so, added a _Cilk_sync and gimplified it.
10919 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10920 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10921 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10922 spawner function.
10923 (can_inline_edge_p): Prevent inling of spawnee function.
10924 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10925 for functions that use Cilk keywords.
10926 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10927 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10928 CILK_SYNC_STMT cases.
10929 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10930 trees.
10931 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10932 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10933 * passes.texi (Cilk Keywords): New section that describes the compiler
10934 code changes for handling Cilk Keywords.
10935
10936 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10937
10938 Patch autogenerated by refactor_symtab.py from
10939 https://github.com/davidmalcolm/gcc-refactoring-scripts
10940 revision 58bb219cc090b2f4516a9297d868c245495ee622
10941
10942 * asan.c (asan_finish_file): Update for conversion of symtab types to
10943 a true class hierarchy.
10944 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10945 * cgraph.c (cgraph_get_body): Likewise.
10946 (cgraph_get_create_real_symbol_node): Likewise.
10947 (verify_cgraph_node): Likewise.
10948 (verify_edge_corresponds_to_fndecl): Likewise.
10949 (verify_edge_count_and_frequency): Likewise.
10950 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10951 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10952 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10953 (cgraph_node_cannot_return): Likewise.
10954 (cgraph_set_pure_flag_1): Likewise.
10955 (cgraph_set_const_flag_1): Likewise.
10956 (cgraph_set_nothrow_flag_1): Likewise.
10957 (cgraph_make_node_local_1): Likewise.
10958 (cgraph_for_node_and_aliases): Likewise.
10959 (cgraph_for_node_thunks_and_aliases): Likewise.
10960 (cgraph_node_can_be_local_p): Likewise.
10961 (cgraph_node_cannot_be_local_p_1): Likewise.
10962 (cgraph_function_body_availability): Likewise.
10963 (dump_cgraph_node): Likewise.
10964 (cgraph_rtl_info): Likewise.
10965 (cgraph_mark_address_taken_node): Likewise.
10966 (cgraph_remove_node): Likewise.
10967 (cgraph_release_function_body): Likewise.
10968 (cgraph_update_edges_for_call_stmt_node): Likewise.
10969 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10970 (cgraph_make_edge_direct): Likewise.
10971 (cgraph_resolve_speculation): Likewise.
10972 (cgraph_speculative_call_info): Likewise.
10973 (cgraph_turn_edge_to_speculative): Likewise.
10974 (cgraph_create_edge_1): Likewise.
10975 (cgraph_set_call_stmt): Likewise.
10976 (cgraph_node_for_asm): Likewise.
10977 (cgraph_add_thunk): Likewise.
10978 (cgraph_same_body_alias): Likewise.
10979 (cgraph_create_function_alias): Likewise.
10980 (cgraph_create_node): Likewise.
10981 (cgraph_create_empty_node): Likewise.
10982 (record_function_versions): Likewise.
10983 (used_from_object_file_p): Likewise.
10984 * cgraph.h (symtab_can_be_discarded): Likewise.
10985 (symtab_real_symbol_p): Likewise.
10986 (cgraph_mark_force_output_node): Likewise.
10987 (cgraph_edge_recursive_p): Likewise.
10988 (symtab_alias_target): Likewise.
10989 (varpool_all_refs_explicit_p): Likewise.
10990 (varpool_can_remove_if_no_refs): Likewise.
10991 (cgraph_only_called_directly_or_aliased_p): Likewise.
10992 (cgraph_next_function_with_gimple_body): Likewise.
10993 (cgraph_first_function_with_gimple_body): Likewise.
10994 (cgraph_function_with_gimple_body_p): Likewise.
10995 (cgraph_next_function): Likewise.
10996 (cgraph_first_function): Likewise.
10997 (cgraph_next_defined_function): Likewise.
10998 (cgraph_first_defined_function): Likewise.
10999 (varpool_next_defined_variable): Likewise.
11000 (varpool_first_defined_variable): Likewise.
11001 (varpool_next_static_initializer): Likewise.
11002 (varpool_first_static_initializer): Likewise.
11003 (varpool_next_variable): Likewise.
11004 (varpool_first_variable): Likewise.
11005 (varpool_node_name): Likewise.
11006 (varpool): Likewise.
11007 (cgraph): Likewise.
11008 (is_a_helper <varpool_node>::test): Likewise.
11009 (is_a_helper <cgraph_node>::test): Likewise.
11010 (varpool_variable_node): Likewise.
11011 (cgraph_function_or_thunk_node): Likewise.
11012 (varpool_alias_target): Likewise.
11013 (cgraph_alias_target): Likewise.
11014 (cgraph_node_name): Likewise.
11015 (varpool_node_asm_name): Likewise.
11016 (cgraph_node_asm_name): Likewise.
11017 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
11018 (cgraph_rebuild_references): Likewise.
11019 (rebuild_cgraph_edges): Likewise.
11020 (record_eh_tables): Likewise.
11021 (build_cgraph_edges): Likewise.
11022 (mark_store): Likewise.
11023 (mark_load): Likewise.
11024 (mark_address): Likewise.
11025 (record_type_list): Likewise.
11026 (record_reference): Likewise.
11027 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
11028 (cgraph_materialize_clone): Likewise.
11029 (cgraph_function_versioning): Likewise.
11030 (cgraph_copy_node_for_versioning): Likewise.
11031 (update_call_expr): Likewise.
11032 (cgraph_find_replacement_node): Likewise.
11033 (cgraph_create_virtual_clone): Likewise.
11034 (cgraph_clone_node): Likewise.
11035 * cgraphunit.c (compile): Likewise.
11036 (output_weakrefs): Likewise.
11037 (output_in_order): Likewise.
11038 (expand_function): Likewise.
11039 (assemble_thunks_and_aliases): Likewise.
11040 (expand_thunk): Likewise.
11041 (mark_functions_to_output): Likewise.
11042 (handle_alias_pairs): Likewise.
11043 (analyze_functions): Likewise.
11044 (walk_polymorphic_call_targets): Likewise.
11045 (varpool_finalize_decl): Likewise.
11046 (process_function_and_variable_attributes): Likewise.
11047 (cgraph_process_same_body_aliases): Likewise.
11048 (analyze_function): Likewise.
11049 (cgraph_add_new_function): Likewise.
11050 (cgraph_finalize_function): Likewise.
11051 (referred_to_p): Likewise.
11052 (cgraph_reset_node): Likewise.
11053 (cgraph_process_new_functions): Likewise.
11054 (enqueue_node): Likewise.
11055 (decide_is_symbol_needed): Likewise.
11056 * coverage.c (coverage_compute_profile_id): Likewise.
11057 * dbxout.c (dbxout_expand_expr): Likewise.
11058 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11059 (reference_to_unused): Likewise.
11060 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11061 * gimplify.c (unvisit_body): Likewise.
11062 (unshare_body): Likewise.
11063 * ipa-cp.c (ipcp_generate_summary): Likewise.
11064 (ipcp_decision_stage): Likewise.
11065 (identify_dead_nodes): Likewise.
11066 (decide_whether_version_node): Likewise.
11067 (decide_about_value): Likewise.
11068 (perhaps_add_new_callers): Likewise.
11069 (create_specialized_node): Likewise.
11070 (update_profiling_info): Likewise.
11071 (ipcp_propagate_stage): Likewise.
11072 (estimate_local_effects): Likewise.
11073 (good_cloning_opportunity_p): Likewise.
11074 (devirtualization_time_bonus): Likewise.
11075 (propagate_constants_accross_call): Likewise.
11076 (initialize_node_lattices): Likewise.
11077 (ipcp_cloning_candidate_p): Likewise.
11078 (determine_versionability): Likewise.
11079 (print_all_lattices): Likewise.
11080 (print_lattice): Likewise.
11081 (ipcp_discover_new_direct_edges): Likewise.
11082 * ipa-devirt.c (ipa_devirt): Likewise.
11083 (likely_target_p): Likewise.
11084 (update_type_inheritance_graph): Likewise.
11085 (possible_polymorphic_call_target_p): Likewise.
11086 (dump_possible_polymorphic_call_targets): Likewise.
11087 (devirt_variable_node_removal_hook): Likewise.
11088 (record_binfo): Likewise.
11089 (maybe_record_node): Likewise.
11090 (build_type_inheritance_graph): Likewise.
11091 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11092 (inline_generate_summary): Likewise.
11093 (inline_analyze_function): Likewise.
11094 (do_estimate_growth): Likewise.
11095 (simple_edge_hints): Likewise.
11096 (estimate_node_size_and_time): Likewise.
11097 (estimate_edge_devirt_benefit): Likewise.
11098 (compute_inline_parameters): Likewise.
11099 (estimate_function_body_sizes): Likewise.
11100 (compute_bb_predicates): Likewise.
11101 (initialize_inline_failed): Likewise.
11102 (dump_inline_summary): Likewise.
11103 (dump_inline_edge_summary): Likewise.
11104 * ipa-inline-transform.c (inline_transform): Likewise.
11105 (preserve_function_body_p): Likewise.
11106 (save_inline_function_body): Likewise.
11107 (inline_call): Likewise.
11108 (clone_inlined_nodes): Likewise.
11109 (can_remove_node_now_p): Likewise.
11110 (can_remove_node_now_p_1): Likewise.
11111 * ipa-inline.c (early_inliner): Likewise.
11112 (early_inline_small_functions): Likewise.
11113 (inline_always_inline_functions): Likewise.
11114 (ipa_inline): Likewise.
11115 (flatten_function): Likewise.
11116 (inline_small_functions): Likewise.
11117 (speculation_useful_p): Likewise.
11118 (recursive_inlining): Likewise.
11119 (update_caller_keys): Likewise.
11120 (reset_edge_caches): Likewise.
11121 (update_edge_key): Likewise.
11122 (edge_badness): Likewise.
11123 (relative_time_benefit): Likewise.
11124 (want_inline_self_recursive_call_p): Likewise.
11125 (want_inline_small_function_p): Likewise.
11126 (want_early_inline_function_p): Likewise.
11127 (num_calls): Likewise.
11128 (can_early_inline_edge_p): Likewise.
11129 (can_inline_edge_p): Likewise.
11130 (report_inline_failed_reason): Likewise.
11131 * ipa-profile.c (ipa_profile): Likewise.
11132 (ipa_propagate_frequency): Likewise.
11133 (ipa_propagate_frequency_1): Likewise.
11134 (ipa_profile_generate_summary): Likewise.
11135 * ipa-prop.c (ipcp_transform_function): Likewise.
11136 (read_replacements_section): Likewise.
11137 (ipa_prop_read_section): Likewise.
11138 (ipa_modify_call_arguments): Likewise.
11139 (ipa_print_node_params): Likewise.
11140 (propagate_controlled_uses): Likewise.
11141 (update_indirect_edges_after_inlining): Likewise.
11142 (remove_described_reference): Likewise.
11143 (ipa_make_edge_direct_to_target): Likewise.
11144 (ipa_analyze_node): Likewise.
11145 (ipa_analyze_params_uses): Likewise.
11146 (ipa_compute_jump_functions): Likewise.
11147 (ipa_get_callee_param_type): Likewise.
11148 (ipa_print_node_jump_functions): Likewise.
11149 (ipa_initialize_node_params): Likewise.
11150 (ipa_populate_param_decls): Likewise.
11151 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11152 (write_agg_replacement_chain): Likewise.
11153 (ipa_write_node_info): Likewise.
11154 (ipa_edge_duplication_hook): Likewise.
11155 (try_decrement_rdesc_refcount): Likewise.
11156 * ipa-pure-const.c (propagate_nothrow): Likewise.
11157 (propagate_pure_const): Likewise.
11158 (pure_const_read_summary): Likewise.
11159 (pure_const_write_summary): Likewise.
11160 (analyze_function): Likewise.
11161 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11162 (ipa_ref_referring_ref_list): Likewise.
11163 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11164 (ipa_remove_stmt_references): Likewise.
11165 (ipa_find_reference): Likewise.
11166 (ipa_dump_referring): Likewise.
11167 (ipa_dump_references): Likewise.
11168 (ipa_record_reference): Likewise.
11169 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11170 (ipa_reference_write_optimization_summary): Likewise.
11171 (write_node_summary_p): Likewise.
11172 (propagate): Likewise.
11173 (read_write_all_from_decl): Likewise.
11174 (generate_summary): Likewise.
11175 (analyze_function): Likewise.
11176 (propagate_bits): Likewise.
11177 (ipa_reference_get_not_written_global): Likewise.
11178 (ipa_reference_get_not_read_global): Likewise.
11179 * ipa-split.c (execute_split_functions): Likewise.
11180 (split_function): Likewise.
11181 * ipa-utils.c (ipa_merge_profiles): Likewise.
11182 (dump_cgraph_node_set): Likewise.
11183 (ipa_reverse_postorder): Likewise.
11184 (ipa_edge_within_scc): Likewise.
11185 (ipa_get_nodes_in_cycle): Likewise.
11186 (ipa_free_postorder_info): Likewise.
11187 (ipa_reduced_postorder): Likewise.
11188 (searchc): Likewise.
11189 (recursive_call_p): Likewise.
11190 * ipa.c (ipa_cdtor_merge): Likewise.
11191 (record_cdtor_fn): Likewise.
11192 (function_and_variable_visibility): Likewise.
11193 (varpool_externally_visible_p): Likewise.
11194 (cgraph_externally_visible_p): Likewise.
11195 (comdat_can_be_unshared_p): Likewise.
11196 (comdat_can_be_unshared_p_1): Likewise.
11197 (address_taken_from_non_vtable_p): Likewise.
11198 (ipa_discover_readonly_nonaddressable_vars): Likewise.
11199 (symtab_remove_unreachable_nodes): Likewise.
11200 (walk_polymorphic_call_targets): Likewise.
11201 (process_references): Likewise.
11202 (enqueue_node): Likewise.
11203 (has_addr_references_p): Likewise.
11204 (cgraph_non_local_node_p_1): Likewise.
11205 * is-a.h (varpool_analyze_node): Likewise.
11206 * lto-cgraph.c (input_symtab): Likewise.
11207 (merge_profile_summaries): Likewise.
11208 (input_cgraph_1): Likewise.
11209 (input_edge): Likewise.
11210 (input_varpool_node): Likewise.
11211 (input_node): Likewise.
11212 (input_overwrite_node): Likewise.
11213 (compute_ltrans_boundary): Likewise.
11214 (output_refs): Likewise.
11215 (lto_output_varpool_node): Likewise.
11216 (lto_output_node): Likewise.
11217 (reachable_from_other_partition_p): Likewise.
11218 (referenced_from_other_partition_p): Likewise.
11219 (lto_output_edge): Likewise.
11220 (output_node_opt_summary): Likewise.
11221 (add_node_to): Likewise.
11222 (reachable_from_this_partition_p): Likewise.
11223 (lto_set_symtab_encoder_in_partition): Likewise.
11224 (lto_symtab_encoder_in_partition_p): Likewise.
11225 (lto_set_symtab_encoder_encode_initializer): Likewise.
11226 (lto_symtab_encoder_encode_initializer_p): Likewise.
11227 (lto_set_symtab_encoder_encode_body): Likewise.
11228 (lto_symtab_encoder_encode_body_p): Likewise.
11229 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11230 Likewise.
11231 * lto-streamer-in.c (lto_read_body): Likewise.
11232 (fixup_call_stmt_edges): Likewise.
11233 (fixup_call_stmt_edges_1): Likewise.
11234 * lto-streamer-out.c (produce_symtab): Likewise.
11235 (output_symbol_p): Likewise.
11236 (write_symbol): Likewise.
11237 (lto_output): Likewise.
11238 (copy_function): Likewise.
11239 (output_function): Likewise.
11240 * passes.c (function_called_by_processed_nodes_p): Likewise.
11241 (ipa_write_optimization_summaries): Likewise.
11242 (ipa_write_summaries): Likewise.
11243 (do_per_function_toporder): Likewise.
11244 (do_per_function): Likewise.
11245 (dump_passes): Likewise.
11246 * symtab.c (symtab_semantically_equivalent_p): Likewise.
11247 (symtab_nonoverwritable_alias): Likewise.
11248 (symtab_nonoverwritable_alias_1): Likewise.
11249 (symtab_for_node_and_aliases): Likewise.
11250 (symtab_resolve_alias): Likewise.
11251 (fixup_same_cpp_alias_visibility): Likewise.
11252 (symtab_alias_ultimate_target): Likewise.
11253 (symtab_used_from_object_file_p): Likewise.
11254 (verify_symtab_base): Likewise.
11255 (dump_symtab_base): Likewise.
11256 (symtab_node_name): Likewise.
11257 (symtab_node_asm_name): Likewise.
11258 (symtab_dissolve_same_comdat_group_list): Likewise.
11259 (symtab_add_to_same_comdat_group): Likewise.
11260 (symtab_unregister_node): Likewise.
11261 (symtab_insert_node_to_hashtable): Likewise.
11262 (symtab_register_node): Likewise.
11263 (unlink_from_assembler_name_hash): Likewise.
11264 (insert_to_assembler_name_hash): Likewise.
11265 (eq_assembler_name): Likewise.
11266 (hash_node_by_assembler_name): Likewise.
11267 (eq_node): Likewise.
11268 (hash_node): Likewise.
11269 * toplev.c (wrapup_global_declaration_2): Likewise.
11270 * trans-mem.c (ipa_tm_execute): Likewise.
11271 (ipa_tm_transform_clone): Likewise.
11272 (ipa_tm_transform_transaction): Likewise.
11273 (ipa_tm_transform_calls_redirect): Likewise.
11274 (ipa_tm_insert_gettmclone_call): Likewise.
11275 (ipa_tm_insert_irr_call): Likewise.
11276 (ipa_tm_create_version): Likewise.
11277 (ipa_tm_create_version_alias): Likewise.
11278 (ipa_tm_mark_forced_by_abi_node): Likewise.
11279 (ipa_tm_mark_force_output_node): Likewise.
11280 (ipa_tm_diagnose_tm_safe): Likewise.
11281 (ipa_tm_mayenterirr_function): Likewise.
11282 (ipa_tm_scan_irr_function): Likewise.
11283 (ipa_tm_note_irrevocable): Likewise.
11284 (ipa_tm_scan_calls_clone): Likewise.
11285 (get_cg_data): Likewise.
11286 * tree-eh.c (tree_could_trap_p): Likewise.
11287 * tree-emutls.c (ipa_lower_emutls): Likewise.
11288 (create_emultls_var): Likewise.
11289 (lower_emutls_function_body): Likewise.
11290 (gen_emutls_addr): Likewise.
11291 (emutls_decl): Likewise.
11292 (new_emutls_decl): Likewise.
11293 * tree-inline.c (tree_function_versioning): Likewise.
11294 (optimize_inline_calls): Likewise.
11295 (expand_call_inline): Likewise.
11296 (estimate_num_insns): Likewise.
11297 (copy_bb): Likewise.
11298 (delete_unreachable_blocks_update_callgraph): Likewise.
11299 * tree-nested.c (gimplify_all_functions): Likewise.
11300 (create_nesting_tree): Likewise.
11301 (check_for_nested_with_variably_modified): Likewise.
11302 * tree-pretty-print.c (dump_function_header): Likewise.
11303 * tree-profile.c (tree_profiling): Likewise.
11304 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11305 (modify_function): Likewise.
11306 (convert_callers): Likewise.
11307 (convert_callers_for_node): Likewise.
11308 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11309 (associate_varinfo_to_alias): Likewise.
11310 (create_variable_info_for): Likewise.
11311 (get_constraint_for_ssa_var): Likewise.
11312 * tree-vectorizer.c (increase_alignment): Likewise.
11313 * tree.c (find_decls_types_in_var): Likewise.
11314 (find_decls_types_in_node): Likewise.
11315 (free_lang_data_in_decl): Likewise.
11316 * value-prof.c (gimple_ic_transform): Likewise.
11317 (gimple_ic): Likewise.
11318 (check_ic_target): Likewise.
11319 (init_node_map): Likewise.
11320 * varasm.c (decl_binds_to_current_def_p): Likewise.
11321 (default_binds_local_p_1): Likewise.
11322 (dump_tm_clone_pairs): Likewise.
11323 (assemble_alias): Likewise.
11324 (find_decl): Likewise.
11325 (mark_decl_referenced): Likewise.
11326 * varpool.c (varpool_for_node_and_aliases): Likewise.
11327 (varpool_extra_name_alias): Likewise.
11328 (varpool_create_variable_alias): Likewise.
11329 (add_new_static_var): Likewise.
11330 (varpool_finalize_named_section_flags): Likewise.
11331 (varpool_remove_unreferenced_decls): Likewise.
11332 (enqueue_node): Likewise.
11333 (varpool_assemble_decl): Likewise.
11334 (assemble_aliases): Likewise.
11335 (varpool_analyze_node): Likewise.
11336 (cgraph_variable_initializer_availability): Likewise.
11337 (varpool_add_new_variable): Likewise.
11338 (ctor_for_folding): Likewise.
11339 (dump_varpool_node): Likewise.
11340 (varpool_remove_initializer): Likewise.
11341 (varpool_remove_node): Likewise.
11342 (varpool_node_for_decl): Likewise.
11343 (varpool_create_empty_node): Likewise.
11344 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11345 (ix86_get_function_versions_dispatcher): Likewise.
11346
11347 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11348
11349 * cgraph.h (symtab_node_base): Convert to a class;
11350 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11351 chain_next/prev from symtab_node_def.
11352 (cgraph_node): Inherit from symtab_node; add GTY option
11353 tag ("SYMTAB_FUNCTION").
11354 (varpool_node): Inherit from symtab_node; add GTY option
11355 tag ("SYMTAB_VARIABLE").
11356 (symtab_node_def): Remove.
11357 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11358 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11359 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11360 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11361
11362 * ipa-ref.h (symtab_node_def): Drop.
11363 (symtab_node): Change underlying type from symtab_node_def to
11364 symtab_node_base.
11365 (const_symtab_node): Likwise.
11366
11367 * is-a.h: Update examples in comment.
11368
11369 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11370 (assembler_name_hash): Likewise.
11371
11372 2013-10-29 Martin Liska <marxin.liska@gmail.com>
11373
11374 * doc/tree-ssa.texi (gimple_phi_result): Document.
11375 (gimple_phi_num_args, gimple_phi_arg): Likewise.
11376 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11377 (PHI_RESULT, PHI_NUM_ARGS): Remove.
11378 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11379
11380 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11381
11382 * expr.h: Revert change and include tree-core.h.
11383 * rtl.h: Revert change and don't include tree-core.h.
11384
11385 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11386
11387 * config/darwin.c: Include gimple.h.
11388 * config/i386/winnt.c: Likewise.
11389
11390 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
11391
11392 PR tree-optimization/19831
11393 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11394
11395 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11396
11397 * tree-outof-ssa.h: Remove include files.
11398 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11399 * expr.c: Likewise.
11400 * tree-ssa-coalesce.c: Likewise.
11401 * cfgexpand.c: Likewise.
11402 * tree-ssa-ter.c: Likewise.
11403 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11404 * lto-streamer.h: Likewise.
11405 * cgraphbuild.c: Add gimple.h to include list.
11406 * data-streamer-in.c: Likewise.
11407 * ipa-cp.c: Likewise.
11408 * tree-streamer.c: Likewise.
11409 * lto-compress.c: Likewise.
11410 * ipa-reference.c: Likewise.
11411 * data-streamer-out.c: Likewise.
11412 * lto-cgraph.c: Likewise.
11413 * cgraphclones.c: Likewise.
11414 * ipa-utils.c: Likewise.
11415 * data-streamer.c: Likewise.
11416 * ipa-split.c: Likewise.
11417 * lto-section-in.c: Likewise.
11418 * tree-streamer-out.c: Likewise.
11419 * ipa-prop.c: Likewise.
11420 * tree-streamer-in.c: Likewise.
11421 * symtab.c: Likewise.
11422 * opts-global.c: Likewise.
11423 * lto-opts.c: Likewise.
11424 * lto-section-out.c: Likewise.
11425 * lto-streamer.c: Likewise.
11426 * rtl.h: Add tree-core.h to include list.
11427 * expr.h: Remove tree-core.h from include list.
11428 * gimple.h: Likewise.
11429 * ipa-utils.h: Likewise.
11430 * streamer-hooks.h: Likewise.
11431 * streamer-hooks.c: Include input.h.
11432
11433 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11434
11435 * config/arm/arm.c (cortexa7_extra_costs): New table.
11436 (arm_cortex_a7_tune): New.
11437 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11438
11439 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
11440
11441 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11442
11443 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11444
11445 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11446 to use autogenerated markers for a class-hierarchy, every class
11447 must have a GTY marker.
11448 * gengtype.h (struct type): Add linked list of subclasses to
11449 the "s" member of the union.
11450 (add_subclass): New decl.
11451 * gengtype-state.c (read_state_struct_type): Set up subclass
11452 linked list.
11453 * gengtype.c (get_ultimate_base_class): New.
11454 (add_subclass): New.
11455 (new_structure): Set up subclass linked list.
11456 (set_gc_used_type): Propagate usage information to subclasses.
11457 (output_mangled_typename): Use get_ultimate_base_class.
11458 (walk_subclasses): Use the subclass linked list, avoiding an
11459 O(N^2) when writing out all types.
11460 (walk_type): Issue an error if the base class is missing a tag,
11461 rather than generating bogus C code. Add a gcc_unreachable
11462 default case, in case people omit tags from concrete subclasses,
11463 or get the values wrong.
11464 (write_func_for_structure): Issue an error for subclasses for
11465 which the base doesn't have a "desc", since otherwise the
11466 autogenerated routines for the base would silently fail to visit
11467 any subclass fields.
11468 (write_root): Use get_ultimate_base_class, tweaking constness of
11469 tp to match that function's signature.
11470
11471 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11472
11473 * doc/gty.texi (GTY Options): Add note about inheritance to
11474 description of desc and tag.
11475 (Inheritance and GTY): New.
11476
11477 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11478
11479 * gengtype-parse.c (opts_have): Drop "static" so that
11480 we can use this from gengtype.c.
11481 * gengtype.c (set_gc_used_type): Mark any base class as used;
11482 update field traversal to visit inherited fields.
11483 (output_mangled_typename): Convert references to classes within
11484 an inheritance hierarchy to reference the ultimate base class,
11485 since only it will have gt_ functions.
11486 (get_string_option): New.
11487 (walk_subclasses): New.
11488 (walk_type): Treat GTY structs that have a "desc" as being the
11489 root of an inheritance hierarchy. Generate a switch on it
11490 within the marking function which walks all subclasses, adding
11491 cases for them via walk_subclasses. For subclasses, visit all
11492 fields of the type (including inherited ones).
11493 (write_func_for_structure): Don't write fns for subclasses, only
11494 for the ultimate base class within an inheritance hierarchy.
11495 Subclasses-marking will be handled by the base class marking functions.
11496 (write_types): Likewise.
11497 (write_local_func_for_structure): Likewise.
11498 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11499 a "tag" option (and are thus concrete subclasses).
11500 (write_root): Use the marker function for the ultimate base class.
11501 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11502 (opts_have): Add declaration.
11503
11504 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11505
11506 * lra-spills.c (lra_final_code_change): Remove useless move insns
11507 originated from moves of pseudos.
11508
11509 2013-10-28 Jeff Law <law@redhat.com>
11510
11511 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11512
11513 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11514
11515 * df-scan.c (df_collection_rec): Adjust.
11516 (copy_defs): New constant.
11517 (copy_uses): Likewise.
11518 (copy_eq_uses): Likewise.
11519 (copy_mw): Likewise.
11520 (copy_all): Likewise.
11521 (df_insn_rescan): Adjust.
11522 (df_notes_rescan): Likewise.
11523 (df_swap_refs): Likewise.
11524 (df_sort_and_compress_refs): Likewise.
11525 (df_sort_and_compress_mws): Likewise.
11526 (df_install_refs): Likewise.
11527 (df_install_mws): Likewise.
11528 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11529 are coppied.
11530 (df_bb_refs_record): Adjust.
11531 (df_record_entry_block_defs): Likewise.
11532 (df_record_exit_block_defs): Likewise.
11533 (df_refs_verify): Likewise.
11534 (df_mws_verify): Likewise.
11535 (df_insn_refs_verify): Likewise.
11536 (df_bb_verify): Likewise.
11537 * ipa-pure-const.c (finish_state): Remove.
11538 (propagate): Adjust.
11539 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11540 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11541 var-tracking.c: Adjust.
11542 * vec.c (stack_vecs): Remove.
11543 (register_stack_vec): Likewise.
11544 (stack_vec_register_index): Likewise.
11545 (unregister_stack_vec): Likewise.
11546 * vec.h (struct va_stack): Remove.
11547 (struct vec<T, A, vl_ptr>): Specialize as
11548 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11549 allocation strategy compatable with the vl_ptr layout.
11550 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11551 specialization anyway.
11552 (class stack_vec): New class.
11553 (vec_stack_alloc): Remove.
11554 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11555
11556 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11557 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11558 Sergey Lega <sergey.s.lega@intel.com>
11559 Anna Tikhonova <anna.tikhonova@intel.com>
11560 Ilya Tocar <ilya.tocar@intel.com>
11561 Andrey Turetskiy <andrey.turetskiy@intel.com>
11562 Ilya Verbin <ilya.verbin@intel.com>
11563 Kirill Yukhin <kirill.yukhin@intel.com>
11564 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11565
11566 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11567 (*prefetch_avx512pf_<mode>): New.
11568 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11569 (avx512f_maskcmp<mode>3): Ditto.
11570 (vashrv16si3): Ditto.
11571
11572 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11573 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11574 Sergey Lega <sergey.s.lega@intel.com>
11575 Anna Tikhonova <anna.tikhonova@intel.com>
11576 Ilya Tocar <ilya.tocar@intel.com>
11577 Andrey Turetskiy <andrey.turetskiy@intel.com>
11578 Ilya Verbin <ilya.verbin@intel.com>
11579 Kirill Yukhin <kirill.yukhin@intel.com>
11580 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11581
11582 * config/i386/i386.md (any_truncate): New.
11583 (trunsuffix): Ditto.
11584 * config/i386/predicates.md (const_8_to_9_operand): New.
11585 (const_10_to_11_operand): Ditto.
11586 (const_12_to_13_operand): Ditto.
11587 (const_14_to_15_operand): Ditto.
11588 (const_16_to_19_operand): Ditto.
11589 (const_20_to_23_operand): Ditto.
11590 (const_24_to_27_operand): Ditto.
11591 (const_28_to_31_operand): Ditto.
11592 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11593 (cvtusi2<ssescalarmodesuffix>32): New.
11594 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11595 (ufloatv16siv16sf2): Ditto.
11596 (avx512f_fix_notruncv16sfv16si): Ditto.
11597 (avx512f_ufix_notruncv16sfv16si): Ditto.
11598 (avx512f_vcvtss2usi): Ditto.
11599 (avx512f_vcvtss2usiq): Ditto.
11600 (avx512f_vcvttss2usi): Ditto.
11601 (avx512f_vcvttss2usiq): Ditto.
11602 (avx512f_vcvtsd2usi): Ditto.
11603 (avx512f_vcvtsd2usiq): Ditto.
11604 (avx512f_vcvttsd2usi): Ditto.
11605 (avx512f_vcvttsd2usiq): Ditto.
11606 (ufloatv8siv8df): Ditto.
11607 (avx512f_cvtdq2pd512_2): Ditto.
11608 (avx512f_cvtpd2dq512): Ditto.
11609 (avx512f_ufix_notruncv8dfv8si): Ditto.
11610 (avx512f_cvtpd2ps512): Ditto.
11611 (vec_unpacks_lo_v16sf): Ditto.
11612 (vec_unpacks_hi_v16sf): Ditto.
11613 (vec_unpacks_float_hi_v16si): Ditto.
11614 (vec_unpacks_float_lo_v16si): Ditto.
11615 (avx512f_unpckhps512): Ditto.
11616 (avx512f_unpcklps512): Ditto.
11617 (avx512f_movshdup512): Ditto.
11618 (avx512f_movsldup512): Ditto.
11619 (vec_extract_lo_v32hi): Ditto.
11620 (vec_extract_hi_v32hi): Ditto.
11621 (vec_extract_lo_v64qi): Ditto.
11622 (vec_extract_hi_v64qi): Ditto.
11623 (avx512f_unpckhpd512): Ditto.
11624 (avx512f_movddup512): Ditto.
11625 (avx512f_unpcklpd512): Ditto.
11626 (*avx512f_unpcklpd512): Ditto.
11627 (avx512f_shufps512_1): Ditto.
11628 (avx512f_shufpd512_1): Ditto.
11629 (avx512f_interleave_highv8di): Ditto.
11630 (avx512f_interleave_lowv8di): Ditto.
11631 (PMOV_DST_MODE): Ditto.
11632 (pmov_src_mode): Ditto.
11633 (pmov_src_lower): Ditto.
11634 (pmov_suff): Ditto.
11635 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11636 (*avx512f_<code>v8div16qi2): Ditto.
11637 (*avx512f_<code>v8div16qi2_store): Ditto.
11638 (vec_widen_umult_even_v16si): Ditto.
11639 (*vec_widen_umult_even_v16si): Ditto.
11640 (vec_widen_smult_even_v16si): Ditto.
11641 (*vec_widen_smult_even_v16si): Ditto.
11642 (avx512f_interleave_highv16si): Ditto.
11643 (avx512f_interleave_lowv16si): Ditto.
11644 (avx512f_<code>v16qiv16si2): Ditto.
11645 (avx512f_<code>v16hiv16si2): Ditto.
11646 (avx512f_<code>v8qiv8di2): Ditto.
11647 (avx512f_<code>v8hiv8di2): Ditto.
11648 (avx512f_<code>v8siv8di2): Ditto.
11649 (avx512cd_maskb_vec_dupv8di): Ditto.
11650 (avx512cd_maskw_vec_dupv16si): Ditto.
11651 (avx512f_vcvtph2ps512): Ditto.
11652 (avx512f_vcvtps2ph512): Ditto.
11653 (VEC_EXTRACT_MODE): Extened with wider modes.
11654 (VEC_PERM_AVX2): Ditto.
11655 (VEC_PERM_CONST): Ditto.
11656
11657 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11658
11659 * config/arc/arc.c (arc_ccfsm_post_advance):
11660 Add comment about TYPE_RETURN.
11661
11662 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11663
11664 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11665 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11666 (strip_offset): Convert offset to unsigned number.
11667
11668 2013-10-27 Tom de Vries <tom@codesourcery.com>
11669
11670 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11671 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11672
11673 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11674
11675 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11676 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11677 (TARGET_BIG_ENDIAN): New macro.
11678 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11679 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11680 * config/sh/sh.c: Likewise.
11681 * config/sh/sh.h: Likewise.
11682
11683 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11684
11685 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11686 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11687
11688 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11689
11690 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11691 Fix formatting.
11692 (cmpstr_t, cmpstrsi): Fix formatting.
11693
11694 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11695
11696 PR target/52483
11697 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11698 addressing, do not use general_operand for memory operands.
11699
11700 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11701
11702 Revert:
11703 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11704 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11705
11706 2013-10-26 Jeff Law <law@redhat.com>
11707
11708 * predict.c (PRED_MUDFLAP): Remove.
11709 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11710
11711 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11712 (OBJS): Remove tree-nomudflap.o
11713 (GTFILES): Remove tree-mudflap.c
11714 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11715 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11716 (mfwrap_spec, mflib_spec): Likewise.
11717 (cpp_unique_options, cc1_options, static_specs): Likewise.
11718 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11719 * passes.def: Likewise.
11720 * toplev.c (compile_file, process_options): Likewise.
11721 * tree-inline.c (copy_tree_r): Likewise.
11722 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11723 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11724 (build_constant_desc, output_constant_def_contents): Likewise.
11725 (categorize_decl_for_section): Likewise.
11726 * tree-mudflap.c: Removed.
11727 * tree-mudflap.h: Removed.
11728 * tree-nomudflap.c: Removed.
11729 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11730 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11731 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11732 * config/sol2.h (MFLIB_SPEC): Likewise.
11733 * doc/install.texi: Remove mudflap references.
11734 * doc/passes.texi: Similarly.
11735 * doc/sourcebuild.texi: Similarly.
11736 * doc/invoke.texi: Remove mudlfap related options.
11737
11738 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11739
11740 PR rtl-optimization/58759
11741 * lra-constraints.c (lra_constraints): Remove wrong condition to
11742 remove insn setting up an equivalent pseudo.
11743
11744 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11745
11746 * config/rs6000/rs6000-protos.h
11747 (rs6000_secondary_memory_needed_mode): New prototype.
11748 * config/rs6000/rs6000.c: Include ira.h.
11749 (TARGET_LRA_P): Redefine.
11750 (rs6000_legitimate_offset_address_p): Call
11751 legitimate_constant_pool_address_p in strict mode for LRA.
11752 (rs6000_legitimate_address_p): Ditto.
11753 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11754 (rs6000_emit_move): Add LRA version of code to generate load/store
11755 of SDmode values.
11756 (rs6000_secondary_memory_needed_mode): New.
11757 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11758 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11759 constants, memory, and FP registers.
11760 (rs6000_lra_p): New.
11761 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11762 * config/rs6000/rs6000.opt (mlra): New option.
11763 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11764
11765 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11766
11767 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11768 has_single_use () and not do the conversion if has_single_use ()
11769 returns false for the multiplication result.
11770
11771 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11772
11773 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11774 to "NODE", since this works on a "tree", not an
11775 "enum tree_code".
11776 (CONSTANT_CLASS_P): Likewise.
11777 (TYPE_P): Likewise.
11778 (DECL_P): Likewise.
11779 (INDIRECT_REF_P): Likewise.
11780 (REFERENCE_CLASS_P): Likewise.
11781 (COMPARISON_CLASS_P): Likewise.
11782 (UNARY_CLASS_P): Likewise.
11783 (BINARY_CLASS_P): Likewise.
11784 (STATEMENT_CLASS_P): Likewise.
11785 (VL_EXP_CLASS_P): Likewise.
11786 (EXPRESSION_CLASS_P): Likewise.
11787 (IS_TYPE_OR_DECL_P): Likewise.
11788
11789 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11790
11791 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11792 ADDR_EXPR in the defining statement.
11793
11794 2013-10-25 Richard Biener <rguenther@suse.de>
11795
11796 PR tree-optimization/58626
11797 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11798 anti_dd, output_dd and input_dd.
11799 (struct rdg_edge): Remove level and relation members.
11800 (RDGE_LEVEL, RDGE_RELATION): Remove.
11801 (dot_rdg_1): Adjust.
11802 (create_rdg_edge_for_ddr): Remove.
11803 (create_rdg_edges_for_scalar): Adjust.
11804 (create_edge_for_control_dependence): Likewise.
11805 (create_rdg_edges): Split into ...
11806 (create_rdg_flow_edges): ... this
11807 (create_rdg_cd_edges): ... and this.
11808 (free_rdg): Adjust.
11809 (build_rdg): Likewise, do not compute data dependences or
11810 add edges for them.
11811 (pg_add_dependence_edges): New function.
11812 (pgcmp): Likewise.
11813 (distribute_loop): First apply all non-dependence based
11814 partition mergings. Then compute dependences between partitions
11815 and merge and order partitions according to them.
11816
11817 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11818
11819 PR rtl-optimization/58831
11820 * alias.c (init_alias_analysis): At the beginning of each iteration,
11821 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11822
11823 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11824
11825 * recog.c (search_ofs): New static variable moved from...
11826 (peep2_find_free_register): ...here.
11827 (peephole2_optimize): Initialize it.
11828
11829 2013-10-25 Tobias Burnus <burnus@net-b.de>
11830
11831 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11832
11833 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11834
11835 * config/i386/i386.h (TARGET_MPX): New define.
11836 (TARGET_MPX_P): Ditto.
11837
11838 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11839
11840 * config/i386/constraints.md (B): New.
11841 (Ti): New.
11842 (Tb): New.
11843 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11844 * config/i386/i386-modes.def (BND32): New.
11845 (BND64): New.
11846 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11847 * config/i386/i386.c (isa_opts): Add mmpx.
11848 (regclass_map): Add bound registers.
11849 (dbx_register_map): Likewise.
11850 (dbx64_register_map): Likewise.
11851 (svr4_dbx_register_map): Likewise.
11852 (PTA_MPX): New.
11853 (ix86_option_override_internal): Support MPX ISA.
11854 (ix86_conditional_register_usage): Support bound registers.
11855 (print_reg): Likewise.
11856 (ix86_code_end): Add MPX bnd prefix.
11857 (output_set_got): Likewise.
11858 (ix86_output_call_insn): Likewise.
11859 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11860 (ix86_print_operand_punct_valid_p): Likewise.
11861 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11862 UNSPEC_BNDMK_ADDR.
11863 (ix86_class_likely_spilled_p): Add bound regs support.
11864 (ix86_hard_regno_mode_ok): Likewise.
11865 (x86_order_regs_for_local_alloc): Likewise.
11866 (ix86_bnd_prefixed_insn_p): New.
11867 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11868 (FIXED_REGISTERS): Add bound registers.
11869 (CALL_USED_REGISTERS): Likewise.
11870 (REG_ALLOC_ORDER): Likewise.
11871 (HARD_REGNO_NREGS): Likewise.
11872 (TARGET_MPX): New.
11873 (VALID_BND_REG_MODE): New.
11874 (FIRST_BND_REG): New.
11875 (LAST_BND_REG): New.
11876 (reg_class): Add BND_REGS.
11877 (REG_CLASS_NAMES): Likewise.
11878 (REG_CLASS_CONTENTS): Likewise.
11879 (BND_REGNO_P): New.
11880 (ANY_BND_REG_P): New.
11881 (BNDmode): New.
11882 (HI_REGISTER_NAMES): Add bound registers.
11883 * config/i386/i386.md (UNSPEC_BNDMK): New.
11884 (UNSPEC_BNDMK_ADDR): New.
11885 (UNSPEC_BNDSTX): New.
11886 (UNSPEC_BNDLDX): New.
11887 (UNSPEC_BNDLDX_ADDR): New.
11888 (UNSPEC_BNDCL): New.
11889 (UNSPEC_BNDCU): New.
11890 (UNSPEC_BNDCN): New.
11891 (UNSPEC_MPX_FENCE): New.
11892 (BND0_REG): New.
11893 (BND1_REG): New.
11894 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11895 (length_immediate): Likewise.
11896 (prefix_0f): Likewise.
11897 (memory): Likewise.
11898 (prefix_rep): Check for bnd prefix.
11899 (length_nobnd): New.
11900 (length): Use length_nobnd if specified.
11901 (BND): New.
11902 (bnd_ptr): New.
11903 (BNDCHECK): New.
11904 (bndcheck): New.
11905 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11906 (*jcc_2): Likewise.
11907 (jump): Likewise.
11908 (simple_return_internal): Likewise.
11909 (simple_return_pop_internal): Likewise.
11910 (*indirect_jump): Add MPX bnd prefix.
11911 (*tablejump_1): Likewise.
11912 (simple_return_internal_long): Likewise.
11913 (simple_return_indirect_internal): Likewise.
11914 (<mode>_mk): New.
11915 (*<mode>_mk): New.
11916 (mov<mode>): New.
11917 (*mov<mode>_internal_mpx): New.
11918 (<mode>_<bndcheck>): New.
11919 (*<mode>_<bndcheck>): New.
11920 (<mode>_ldx): New.
11921 (*<mode>_ldx): New.
11922 (<mode>_stx): New.
11923 (*<mode>_stx): New.
11924 * config/i386/predicates.md (lea_address_operand): Rename to...
11925 (address_no_seg_operand): ... this.
11926 (address_mpx_no_base_operand): New.
11927 (address_mpx_no_index_operand): New.
11928 (bnd_mem_operator): New.
11929 * config/i386/i386.opt (mmpx): New.
11930 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11931 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11932
11933 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11934
11935 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11936 * tree.def (POINTER_BOUNDS_TYPE): New.
11937 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11938 (POINTER_BOUNDS_MODE): New.
11939 (make_pointer_bounds_mode): New.
11940 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11941 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11942 (layout_type): Support POINTER_BOUNDS_TYPE.
11943 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11944 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11945 (type_contains_placeholder_1): Likewise.
11946 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11947 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11948 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11949
11950 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11951
11952 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11953 mode of address computation when calling memory_address_addr_space.
11954
11955 2013-08-24 Richard Henderson <rth@twiddle.net>
11956
11957 PR rtl/58542
11958 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11959 instead of create_convert_operand_to.
11960 (maybe_emit_sync_lock_test_and_set): Likewise.
11961 (expand_atomic_compare_and_swap): Likewise.
11962 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11963
11964 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11965
11966 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11967 Change param_is to use the struct and not the pointer to the struct.
11968
11969 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11970
11971 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11972 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11973 Move to targhooks.c.
11974 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11975 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11976 Relocate from gimplify.c.
11977 * targhooks.h: Add 2 prototypes.
11978 * tree.h: Delete 2 prototypes.
11979
11980 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11981
11982 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11983 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11984
11985 2013-10-24 Cong Hou <congh@google.com>
11986
11987 * convert.c (convert_to_real): Guard those unsafe math function
11988 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11989 specially.
11990
11991 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11992
11993 PR ipa/58712
11994 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11995 as argument.
11996 (cgraph_create_edge): Use the new argument.
11997 (cgraph_create_indirect_edge): Likewise.
11998
11999 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
12000
12001 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
12002 TYPE_UNCOND_BRANCH.
12003 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
12004 changes statep->state.
12005
12006 2013-10-24 Tobias Burnus <burnus@net-b.de>
12007
12008 PR other/33426
12009 * tree-cfg.c (replace_loop_annotate): New function.
12010 (execute_build_cfg): Call it.
12011 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
12012 * internal-fn.c (expand_ANNOTATE): New function.
12013 * internal-fn.def (ANNOTATE): Define as new internal function.
12014 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
12015 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
12016 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
12017 * doc/extend.texi (Pragmas): Document #pragma ivdep.
12018 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
12019
12020 2013-10-17 Ian Bolton <ian.bolton@arm.com>
12021 Marcus Shawcroft <marcus.shawcroft@arm.com>
12022
12023 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
12024 Special case reload SP+C into none GENERAL_REGS.
12025
12026 2013-10-24 Michael Matz <matz@suse.de>
12027
12028 * gengtype.c (is_file_equal): Check that files will be same length.
12029
12030 2013-10-25 Christian Bruel <christian.bruel@st.com>
12031
12032 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12033 * config/sh/t-sh (sh-mem.o): New rule.
12034 * config/sh/sh-mem.cc (expand_block_move): Moved here.
12035 (sh_expand_cmpstr): New function.
12036 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12037 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12038 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12039 (rotlhi3_8): Rename.
12040
12041 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12042
12043 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12044 * Makefile.in (CXXDEPMODE): Assign and change users.
12045 (CCDEPMODE): Delete.
12046 * configure: Regenerate.
12047
12048 2013-10-23 David Malcolm <dmalcolm@redhat.com>
12049
12050 * gengtype-parse.c (require_without_advance): New.
12051 (type): For GTY-marked types that are not GTY((user)), parse any
12052 base classes, requiring them to be single-inheritance, and not
12053 be templates. For non-GTY-marked types and GTY((user)),
12054 continue to skip over any C++ inheritance specification.
12055 * gengtype-state.c (state_writer::write_state_struct_type):
12056 Write base class of type (if any).
12057 (read_state_struct_type): Read base class of type (if any).
12058 * gengtype.c (new_structure): Add a "base_class" parameter.
12059 (create_optional_field_): Update for new parameter to new_structure.
12060 (adjust_field_rtx_def): Likewise.
12061 (adjust_field_tree_exp): Likewise.
12062 * gengtype.h (struct type): Add "base_class" field to the s
12063 union field.
12064 (new_structure): Add "base" parameter.
12065
12066 2013-10-23 Sriraman Tallam <tmsriram@google.com>
12067
12068 PR target/57756
12069 * config/i386/i386.c (ix86_option_override_internal):
12070 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12071 (ix86_valid_target_attribute_tree):
12072 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12073 Change TARGET_SSE to TARGET_SSE_P (opts->...)
12074
12075 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12076
12077 * tree-ssa-loop.h: Remove include files.
12078 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12079 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12080 * graphite-clast-to-gimple.c: Likewise.
12081 * graphite-scop-detection.c: Likewise.
12082 * graphite-sese-to-poly.c: Likewise.
12083 * ipa-inline-analysis.c: Likewise.
12084 * ipa-pure-const.c: Likewise.
12085 * loop-init.c: Likewise.
12086 * passes.c: Likewise.
12087 * predict.c: Likewise.
12088 * tree-cfg.c: Likewise.
12089 * tree-cfgcleanup.c: Likewise.
12090 * tree-chrec.c: Likewise.
12091 * tree-data-ref.c: Likewise.
12092 * tree-loop-distribution.c: Likewise.
12093 * tree-parloops.c: Likewise.
12094 * tree-predcom.c: Likewise.
12095 * tree-scalar-evolution.c: Likewise.
12096 * tree-ssa-address.c: Likewise.
12097 * tree-ssa.c: Likewise.
12098 * tree-ssa-dce.c: Likewise.
12099 * tree-ssa-loop.c: Likewise.
12100 * tree-ssa-loop-im.c: Likewise.
12101 * tree-ssa-loop-ivcanon.c: Likewise.
12102 * tree-ssa-loop-ivopts.c: Likewise.
12103 * tree-ssa-loop-manip.c: Likewise.
12104 * tree-ssa-loop-niter.c: Likewise.
12105 * tree-ssa-loop-prefetch.c: Likewise.
12106 * tree-ssa-loop-unswitch.c: Likewise.
12107 * tree-ssa-reassoc.c: Likewise.
12108 * tree-vect-data-refs.c: Likewise.
12109 * tree-vect-loop.c: Likewise.
12110 * tree-vect-loop-manip.c: Likewise.
12111 * tree-vectorizer.c: Likewise.
12112 * tree-vect-stmts.c: Likewise.
12113 * tree-vrp.c: Likewise.
12114
12115 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12116
12117 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12118
12119 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12120
12121 PR tree-optimization/58775
12122 PR tree-optimization/58791
12123 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12124 (insert_stmt_after): Rewritten, don't move the stmt, but really
12125 insert it.
12126 (get_stmt_uid_with_default): Remove.
12127 (build_and_add_sum): Use insert_stmt_after and
12128 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
12129 (update_range_test): Set uid on stmts added by
12130 force_gimple_operand_gsi. Don't immediately modify statements
12131 in inter-bb optimization, just update oe->op values.
12132 (optimize_range_tests): Return bool whether any changed have been made.
12133 (update_ops): New function.
12134 (struct inter_bb_range_test_entry): New type.
12135 (maybe_optimize_range_tests): Perform statement changes here.
12136 (not_dominated_by, appears_later_in_bb, get_def_stmt,
12137 ensure_ops_are_available): Remove.
12138 (find_insert_point): Rewritten.
12139 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12140 return LHS of the (new resp. old) stmt. Don't call
12141 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12142 instead of last, move new stmt at the right place.
12143 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12144 (negate_value): Likewise. Set uids.
12145 (break_up_subtract_bb): Initialize uids.
12146 (reassociate_bb): Adjust rewrite_expr_tree caller.
12147 (do_reassoc): Don't call renumber_gimple_stmt_uids.
12148
12149 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
12150
12151 PR target/58838
12152 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12153 TARGET_32BIT final condition.
12154 (mulsi3_internal2 and splitter): Same.
12155
12156 2013-10-23 Jeff Law <law@redhat.com>
12157
12158 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12159 through joiner blocks with abnormal outgoing edges.
12160
12161 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12162 Add parameter JOINERS, to allow/disallow threading through joiner
12163 blocks.
12164 (thread_block): New. Call thread_block_1.
12165 (mark_threaded_blocks): Remove code to filter out certain cases
12166 of threading through joiner blocks.
12167 (thread_through_all_blocks): Document how we can have a dangling
12168 edge AUX field and clear it.
12169
12170 2013-10-23 Ian Lance Taylor <iant@google.com>
12171
12172 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12173 (C++ Dialect Options): Likewise.
12174 (Optimize Options): Likewise.
12175
12176 2013-10-23 Tom de Vries <tom@codesourcery.com>
12177
12178 PR tree-optimization/58805
12179 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12180
12181 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12182
12183 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12184 sequence based on get_range_info returned range.
12185
12186 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12187
12188 * tree-ssa.h: Remove all #include's
12189 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12190 * alias.c: Move required includes from tree-ssa.h.
12191 * asan.c: Likewise.
12192 * builtins.c: Likewise.
12193 * calls.c: Likewise.
12194 * cfgexpand.c: Likewise.
12195 * cfghooks.c: Likewise.
12196 * cfgloop.c: Likewise.
12197 * cfgloopmanip.c: Likewise.
12198 * cgraph.c: Likewise.
12199 * cgraphbuild.c: Likewise.
12200 * cgraphclones.c: Likewise.
12201 * cgraphunit.c: Likewise.
12202 * dse.c: Likewise.
12203 * except.c: Likewise.
12204 * expr.c: Likewise.
12205 * final.c: Likewise.
12206 * fold-const.c: Likewise.
12207 * ggc-page.c: Likewise.
12208 * gimple-builder.c: Likewise.
12209 * gimple-fold.c: Likewise.
12210 * gimple-iterator.c: Likewise.
12211 * gimple-low.c: Likewise.
12212 * gimple-pretty-print.c: Likewise.
12213 * gimple-ssa-strength-reduction.c: Likewise.
12214 * gimple-streamer-in.c: Likewise.
12215 * gimple-streamer-out.c: Likewise.
12216 * gimplify.c: Likewise.
12217 * graphite-blocking.c: Likewise.
12218 * graphite-clast-to-gimple.c: Likewise.
12219 * graphite-dependences.c: Likewise.
12220 * graphite-interchange.c: Likewise.
12221 * graphite-optimize-isl.c: Likewise.
12222 * graphite-poly.c: Likewise.
12223 * graphite-scop-detection.c: Likewise.
12224 * graphite-sese-to-poly.c: Likewise.
12225 * graphite.c: Likewise.
12226 * ipa-cp.c: Likewise.
12227 * ipa-inline-analysis.c: Likewise.
12228 * ipa-inline-transform.c: Likewise.
12229 * ipa-inline.c: Likewise.
12230 * ipa-prop.c: Likewise.
12231 * ipa-pure-const.c: Likewise.
12232 * ipa-reference.c: Likewise.
12233 * ipa-split.c: Likewise.
12234 * ipa-utils.c: Likewise.
12235 * loop-init.c: Likewise.
12236 * lto-cgraph.c: Likewise.
12237 * lto-section-in.c: Likewise.
12238 * lto-section-out.c: Likewise.
12239 * lto-streamer-in.c: Likewise.
12240 * lto-streamer-out.c: Likewise.
12241 * lto-streamer.c: Likewise.
12242 * omp-low.c: Likewise.
12243 * passes.c: Likewise.
12244 * predict.c: Likewise.
12245 * print-tree.c: Likewise.
12246 * profile.c: Likewise.
12247 * sese.c: Likewise.
12248 * targhooks.c: Likewise.
12249 * tracer.c: Likewise.
12250 * trans-mem.c: Likewise.
12251 * tree-call-cdce.c: Likewise.
12252 * tree-cfg.c: Likewise.
12253 * tree-cfgcleanup.c: Likewise.
12254 * tree-chrec.c: Likewise.
12255 * tree-complex.c: Likewise.
12256 * tree-data-ref.c: Likewise.
12257 * tree-dfa.c: Likewise.
12258 * tree-eh.c: Likewise.
12259 * tree-emutls.c: Likewise.
12260 * tree-if-conv.c: Likewise.
12261 * tree-inline.c: Likewise.
12262 * tree-into-ssa.c: Likewise.
12263 * tree-loop-distribution.c: Likewise.
12264 * tree-mudflap.c: Likewise.
12265 * tree-nested.c: Likewise.
12266 * tree-nrv.c: Likewise.
12267 * tree-object-size.c: Likewise.
12268 * tree-outof-ssa.c: Likewise.
12269 * tree-parloops.c: Likewise.
12270 * tree-phinodes.c: Likewise.
12271 * tree-predcom.c: Likewise.
12272 * tree-pretty-print.c: Likewise.
12273 * tree-profile.c: Likewise.
12274 * tree-scalar-evolution.c: Likewise.
12275 * tree-sra.c: Likewise.
12276 * tree-ssa-address.c: Likewise.
12277 * tree-ssa-alias.c: Likewise.
12278 * tree-ssa-ccp.c: Likewise.
12279 * tree-ssa-coalesce.c: Likewise.
12280 * tree-ssa-copy.c: Likewise.
12281 * tree-ssa-copyrename.c: Likewise.
12282 * tree-ssa-dce.c: Likewise.
12283 * tree-ssa-dom.c: Likewise.
12284 * tree-ssa-dse.c: Likewise.
12285 * tree-ssa-forwprop.c: Likewise.
12286 * tree-ssa-ifcombine.c: Likewise.
12287 * tree-ssa-live.c: Likewise.
12288 * tree-ssa-loop-ch.c: Likewise.
12289 * tree-ssa-loop-im.c: Likewise.
12290 * tree-ssa-loop-ivcanon.c: Likewise.
12291 * tree-ssa-loop-ivopts.c: Likewise.
12292 * tree-ssa-loop-manip.c: Likewise.
12293 * tree-ssa-loop-niter.c: Likewise.
12294 * tree-ssa-loop-prefetch.c: Likewise.
12295 * tree-ssa-loop-unswitch.c: Likewise.
12296 * tree-ssa-loop.c: Likewise.
12297 * tree-ssa-math-opts.c: Likewise.
12298 * tree-ssa-operands.c: Likewise.
12299 * tree-ssa-phiopt.c: Likewise.
12300 * tree-ssa-phiprop.c: Likewise.
12301 * tree-ssa-pre.c: Likewise.
12302 * tree-ssa-propagate.c: Likewise.
12303 * tree-ssa-reassoc.c: Likewise.
12304 * tree-ssa-sccvn.c: Likewise.
12305 * tree-ssa-sink.c: Likewise.
12306 * tree-ssa-strlen.c: Likewise.
12307 * tree-ssa-structalias.c: Likewise.
12308 * tree-ssa-tail-merge.c: Likewise.
12309 * tree-ssa-ter.c: Likewise.
12310 * tree-ssa-threadedge.c: Likewise.
12311 * tree-ssa-threadupdate.c: Likewise.
12312 * tree-ssa-uncprop.c: Likewise.
12313 * tree-ssa-uninit.c: Likewise.
12314 * tree-ssa.c: Likewise.
12315 * tree-ssanames.c: Likewise.
12316 * tree-stdarg.c: Likewise.
12317 * tree-streamer-in.c: Likewise.
12318 * tree-switch-conversion.c: Likewise.
12319 * tree-tailcall.c: Likewise.
12320 * tree-vect-data-refs.c: Likewise.
12321 * tree-vect-generic.c: Likewise.
12322 * tree-vect-loop-manip.c: Likewise.
12323 * tree-vect-loop.c: Likewise.
12324 * tree-vect-patterns.c: Likewise.
12325 * tree-vect-slp.c: Likewise.
12326 * tree-vect-stmts.c: Likewise.
12327 * tree-vectorizer.c: Likewise.
12328 * tree-vrp.c: Likewise.
12329 * tree.c: Likewise.
12330 * tsan.c: Likewise.
12331 * value-prof.c: Likewise.
12332 * var-tracking.c: Likewise.
12333 * varpool.c: Likewise.
12334 * vtable-verify.c: Likewise.
12335
12336 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12337
12338 * config/tilegx/tilegx.c: Include "tree.h".
12339
12340 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12341
12342 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12343 the info, not after it.
12344 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12345 dump_ssaname_info call.
12346 (pp_gimple_stmt_1): Adjust caller.
12347 (dump_phi_nodes): Likewise. Don't print "# " here.
12348
12349 2013-10-22 Jan Hubicka <jh@suse.cz>
12350
12351 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12352 tuning flag.
12353 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12354 * i386.c (expand_small_movmem_or_setmem): New function.
12355 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12356 function.
12357 (alg_usable_p): Add support for value ranges; cleanup.
12358 (ix86_expand_set_or_movmem): Add support for misaligned moves.
12359
12360 2013-10-22 Sterling Augustine <saugustine@google.com>
12361
12362 * doc/invoke.texi: Document -ggnu-pubnames.
12363 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12364 logic.
12365 * dwarf2out.c: Include gdb/gdb-index.h.
12366 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12367 debug_generate_pub_sections.
12368 (is_java, output_pubtables, output_pubname): New functions.
12369 (include_pubname_in_output): Handle debug_generate_pub_sections at
12370 level 2.
12371 (size_of_pubnames): Use new local space_for_flags based on
12372 debug_generate_pub_sections.
12373 (output_pubnames): Unify pubnames and pubtypes output logic.
12374 Genericize comments. Call output_pubname.
12375 (dwarf2out_finish): Move logic to output_pubnames and call it.
12376
12377 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
12378
12379 PR target/58779
12380 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12381 Remove CCCmode handling.
12382 <case LTU>: Return 'c' suffix for CCCmode.
12383 <case GEU>: Return 'nc' suffix for CCCmode.
12384 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12385 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12386 (*sub<mode>3_cc_overflow): Ditto.
12387 (*subsi3_zext_cc_overflow): Ditto.
12388
12389 2013-10-22 Steve Ellcey <sellcey@mips.com>
12390
12391 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
12392 (AND (NOT OP1) (NOT OP2)).
12393
12394 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
12395
12396 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12397 meaning of merge-high and merge-low masks for little endian; avoid
12398 use of vector-pack masks for little endian for mismatched modes.
12399
12400 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12401
12402 * config/tilepro/tilepro.c: Include "tree.h".
12403
12404 2013-10-22 Andreas Schwab <schwab@suse.de>
12405
12406 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12407 with PRE_DEC.
12408
12409 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
12410
12411 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12412 [Ed Smith-Rowland]): New entries.
12413 ([Stephen M. Webb]): Update.
12414
12415 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
12416
12417 * tree-ssa-ter.h: Remove duplicate copy of file contents.
12418
12419 2013-10-21 Marek Polacek <polacek@redhat.com>
12420
12421 PR middle-end/58809
12422 * fold-const.c (fold_range_test): Return 0 if the type is not
12423 an integral type.
12424
12425 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
12426
12427 * system.h: Move hwint.h include further down.
12428 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
12429 gcc_checking_asserts.
12430 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12431
12432 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12433
12434 Fix volatile issues in optimize_bit_field_compare.
12435 * fold-const.c (optimize_bit_field_compare): Bail out if
12436 lvolatilep or rvolatilep.
12437
12438 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12439
12440 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12441 and get_inner_reference returning different pmode for non-volatile
12442 bit-field members dependent on flag_strict_volatile_bitfields.
12443 * stor-layout.c (layout_decl): Remove special handling of
12444 flag_strict_volatile_bitfields.
12445 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12446 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12447
12448 2013-10-21 Paulo Matos <pmatos@broadcom.com>
12449
12450 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12451 calculations.
12452
12453 2013-10-21 Jeff Law <law@redhat.com>
12454
12455 * tree-ssa-threadedge.c (thread_through_normal_block): New
12456 argument VISITED. Remove VISISTED as a local variable. When we
12457 have a threadable jump, verify the destination of the jump has not
12458 been visised.
12459 (thread_across_edge): Allocate VISITED bitmap once at function
12460 scope and use it throughout. Make sure to set appropriate bits in
12461 VISITED for E (start of jump thread path).
12462 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12463 through a joiner if any edge on the path has a recorded jump thread.
12464
12465 2013-10-21 Ian Lance Taylor <iant@google.com>
12466
12467 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12468 don't imply that attributes can solve all problems.
12469 (Directory Options): Fix typo.
12470
12471 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12472
12473 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12474 extend and extend_add.
12475
12476 2013-10-21 Richard Biener <rguenther@suse.de>
12477
12478 PR tree-optimization/58794
12479 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12480 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12481
12482 2013-10-21 Richard Biener <rguenther@suse.de>
12483
12484 PR middle-end/58742
12485 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12486 to (T) X for sign-changing conversions (or no conversion).
12487
12488 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12489
12490 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12491
12492 2013-10-20 Jan Hubicka <jh@suse.cz>
12493
12494 * config/i386/i386-tune.def: Add comment; organize into categories
12495
12496 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12497
12498 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12499 argument. Update function comment.
12500 (expand_set_or_movmem_via_rep): New function combining
12501 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12502 (expand_movmem_via_rep_mov): Remove.
12503 expand_setmem_via_rep_stos): Remove.
12504 (expand_movmem_epilogue): Update calls correspondingly.
12505 (expand_setmem_epilogue_via_loop): Likewise.
12506 (emit_memset): New.
12507 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12508 (expand_set_or_movmem_prologue): New function combining
12509 expand_movmem_prologue and expand_setmem_prologue.
12510 (expand_movmem_prologue): Remove.
12511 (expand_setmem_prologue): Remove.
12512 (expand_set_or_movmem_constant_prologue): New function combining
12513 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12514 (expand_constant_movmem_prologue): Remove.
12515 (expand_constant_setmem_prologue): Remove.
12516 (promote_duplicated_reg): Allow vector-const0 value.
12517 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12518 and ix86_expand_setmem.
12519 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12520 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12521
12522 2013-10-21 Diego Novillo <dnovillo@google.com>
12523
12524 * asan.c: Include tree.h
12525 * bb-reorder.c: Likewise.
12526 * cfgcleanup.c: Likewise.
12527 * cfgloopmanip.c: Likewise.
12528 * data-streamer-in.c: Likewise.
12529 * data-streamer-out.c: Likewise.
12530 * data-streamer.c: Likewise.
12531 * dwarf2cfi.c: Likewise.
12532 * graphite-blocking.c: Likewise.
12533 * graphite-clast-to-gimple.c: Likewise.
12534 * graphite-dependences.c: Likewise.
12535 * graphite-interchange.c: Likewise.
12536 * graphite-optimize-isl.c: Likewise.
12537 * graphite-poly.c: Likewise.
12538 * graphite-scop-detection.c: Likewise.
12539 * graphite-sese-to-poly.c: Likewise.
12540 * graphite.c: Likewise.
12541 * ipa-devirt.c: Likewise.
12542 * ipa-profile.c: Likewise.
12543 * ipa.c: Likewise.
12544 * ira.c: Likewise.
12545 * loop-init.c: Likewise.
12546 * loop-unroll.c: Likewise.
12547 * lower-subreg.c: Likewise.
12548 * lto/lto-object.c: Likewise.
12549 * recog.c: Likewise.
12550 * reginfo.c: Likewise.
12551 * tree-loop-distribution.c: Likewise.
12552 * tree-parloops.c: Likewise.
12553 * tree-ssa-strlen.c: Likewise.
12554 * tree-streamer.c: Likewise.
12555 * value-prof.c: Likewise.
12556 * target-globals.c: Likewise.
12557 * expr.h: Include tree-core.h instead of tree.h.
12558 * gimple.h: Likewise.
12559 * ipa-prop.h: Likewise.
12560 * ipa-utils.h: Likewise.
12561 * lto-streamer.h: Likewise.
12562 * streamer-hooks.h: Likewise.
12563 * ipa-reference.h: Include cgraph.h instead of tree.h.
12564 * cgraph.h: Include basic-block.h instead of tree.h.
12565 * tree-streamer.h: Do not include tree.h.
12566 * genattrtab.c (write_header): Generate inclusion of tree.h.
12567 * genautomata.c (main): Likewise.
12568 * genemit.c: Likewise.
12569 * genopinit.c: Likewise.
12570 * genoutput.c (output_prologue): Likewise.
12571 * genpeep.c: Likewise.
12572
12573 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12574
12575 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12576 little endian.
12577 (vec_unpacku_hi_v8hi): Likewise.
12578 (vec_unpacku_lo_v16qi): Likewise.
12579 (vec_unpacku_lo_v8hi): Likewise.
12580
12581 2013-10-20 Jan Hubicka <jh@suse.cz>
12582
12583 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12584 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12585 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12586
12587 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12588
12589 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12590 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12591 constants.
12592 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12593
12594 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12595
12596 PR target/58603
12597 * system.h: Undef m_slot.
12598
12599 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12600
12601 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12602 all elements for both endian flavors.
12603
12604 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12605
12606 PR target/58792
12607 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12608 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12609 and SI_REG for 64bit SYSV ABI targets.
12610
12611 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12612
12613 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12614 to multi_reg_return. Clarify that we are skipping USEs of multiple
12615 return registers. Use bool type where appropriate.
12616
12617 2013-10-18 Jan Hubicka <jh@suse.cz>
12618
12619 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12620 for cold functions.
12621 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12622 (X86_TUNE_PUSH_MEMORY): Likewise.
12623 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12624 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12625 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12626 New.
12627 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12628 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12629 Remove.
12630 (ix86_option_override_internal): Update to use tune features instead
12631 of variables.
12632
12633 2013-10-18 Cong Hou <congh@google.com>
12634
12635 PR tree-optimization/58508
12636 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12637 statement that contains data refs with zero-step.
12638
12639 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12640
12641 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12642 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12643 * gimple-low.c (gimple_check_call_arg,
12644 gimple_check_call_matching_types): Move to cgraph.c.
12645 * gimple-low.h: Remove prototype.
12646 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12647 Relocate from gimple-low.c.
12648 * cgraph.h: Add prototype. Don't include basic-block.h.
12649 * gimplify.c: Add gimple-low to include list.
12650 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12651 * tree-eh.c: Add gimple-low to include list.
12652 * tree-nested.c: Likewise.
12653 * cfgexpand.c: Add tree-ssa-address.h to include list.
12654 * expr.c: Likewise.
12655 * gimple-fold.c: Likewise.
12656 * gimple-ssa-strength-reduction.c: Likewise.
12657 * trans-mem.c: Likewise.
12658 * tree-mudflap.c: Likewise.
12659 * tree-ssa-loop-ivopts.c: Likewise.
12660 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12661 (degenerate_phi_result): Move to tree-phinodes.c.
12662 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12663 * tree-ssa-threadedge.c: Likewise.
12664 * tree-vrp.c: Likewise.
12665 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12666 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12667 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12668 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12669 * tree-ssa-forwprop.c: Likewise.
12670 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12671 pass_data_cleanup_cfg_post_optimizing,
12672 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12673 * tree-optimize.c: Delete File.
12674 * graphite.c: Include tree-cfgcleanup.h.
12675 * passes.c: Likewise.
12676 * tree-cfg.c: Likewise.
12677 * tree-profile.c: Likewise.
12678 * tree-ssa-dse.c: Likewise.
12679 * tree-ssa-loop-ivcanon.c: Likewise.
12680 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12681 * tree-outof-ssa.c: Include sbitmap.h.
12682 * tree-ssa-live.c: Likewise.
12683 * tree-ssa-propagate.c: Likewise.
12684 * tree-ssa-structalias.c: Likewise.
12685 * tree-stdarg.c: Likewise.
12686 * Makefile.in (OBJS): Delete tree-optimize.o.
12687 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12688 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12689 * varasm.c: Include basic-block.h.
12690 * cfgloop.h: Include function.h instead of basic-block.h
12691 (bb_loop_depth): Move to cfgloop.c.
12692 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12693
12694 2013-10-18 Teresa Johnson <tejohnson@google.com>
12695
12696 * predict.c (probably_never_executed): Compare frequency-based
12697 count to number of training runs.
12698 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12699
12700 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12701
12702 * config/arm/arm.c (cortexa9_extra_costs): New table.
12703 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12704
12705 2013-10-18 Jeff Law <law@redhat.com>
12706
12707 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12708
12709 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12710 (register_jump_thread): Add "registered_jump_thread" debug
12711 counter support.
12712 * dbgcnt.def (registered_jump_thread): New debug counter.
12713
12714 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12715
12716 * config/rs6000/rs6000.c: Include cgraph.h.
12717
12718 2013-10-18 Teresa Johnson <tejohnson@google.com>
12719
12720 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12721 weights during merging.
12722
12723 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12724
12725 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12726 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12727 * tree-ssa-operands.h: Remove prototype.
12728 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12729 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12730 * gimple.h: Add prototype.
12731 * gimple-ssa.h: Include tree-ssa-operands.h.
12732 * tree-dump.c: Add tree-cfg.h to include list.
12733 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12734 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12735 * config/i386/i386.c: Don't include tree-flow.h.
12736 * config/rs6000/rs6000.c: Likewise.
12737
12738 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12739
12740 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12741
12742 2013-10-18 Richard Biener <rguenther@suse.de>
12743
12744 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12745 or TYPE_UNSIGNED of integral types.
12746 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12747 NULL_TREE for zero-precision integral types.
12748
12749 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12750
12751 * config/aarch64/arm_neon.h
12752 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12753
12754 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12755
12756 PR target/57756
12757 * opth-gen.awk: Define target_flags_explicit.
12758
12759 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12760
12761 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12762 fields to the reg_addr array that describes the valid addressing
12763 mode for any register, general purpose registers, floating point
12764 registers, and Altivec registers.
12765 (FIRST_RELOAD_REG_CLASS): Likewise.
12766 (LAST_RELOAD_REG_CLASS): Likewise.
12767 (struct reload_reg_map_type): Likewise.
12768 (reload_reg_map_type): Likewise.
12769 (RELOAD_REG_VALID): Likewise.
12770 (RELOAD_REG_MULTIPLE): Likewise.
12771 (RELOAD_REG_INDEXED): Likewise.
12772 (RELOAD_REG_OFFSET): Likewise.
12773 (RELOAD_REG_PRE_INCDEC): Likewise.
12774 (RELOAD_REG_PRE_MODIFY): Likewise.
12775 (reg_addr): Likewise.
12776 (mode_supports_pre_incdec_p): New helper functions to say whether
12777 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12778 (mode_supports_pre_modify_p): Likewise.
12779 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12780 print the valid address mode bits for each mode.
12781 (rs6000_debug_print_mode): Likewise.
12782 (rs6000_debug_reg_global): Likewise.
12783 (rs6000_setup_reg_addr_masks): New function to set up the address
12784 mask bits for each type.
12785 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12786 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12787 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12788 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12789 PRE_MODIFY are supported.
12790 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12791 registers, instead of {src,dest}_av_p.
12792 (rs6000_print_options_internal): Tweak the debug output slightly.
12793
12794 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12795
12796 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12797 isa attribute.
12798
12799 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12800
12801 * tree-flow.h (struct omp_region): Move to omp-low.c.
12802 Remove omp_ prototypes and variables.
12803 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12804 (copy_var_decl): Relocate prototype from tree-flow.h.
12805 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12806 * tree.h: Move prototype to omp-low.h.
12807 * omp-low.h: New File. Relocate prototypes here.
12808 * omp-low.c (struct omp_region): Make local here.
12809 (root_omp_region): Make static.
12810 (copy_var_decl) Move to gimple.c.
12811 (new_omp_region): Make static.
12812 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12813 * tree-cfg.c: Include omp-low.h.
12814 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12815 * gimplify.c: Include omp-low.h.
12816 * tree-parloops.c: Likewise.
12817
12818 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12819
12820 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12821 operands are in memory, prefer to force non-matched operand 1 to
12822 the register.
12823
12824 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12825
12826 PR target/58673
12827 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12828 restrict TImode addresses to single indirect registers if both
12829 -mquad-memory and -mvsx-timode are used.
12830 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12831 we should emit load/store quad. Remove using %y for quad memory
12832 addresses.
12833
12834 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12835 constraints to allow load/store quad on machines where TImode is
12836 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12837 for TImode to load integer constants.
12838
12839 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12840
12841 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12842
12843 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12844
12845 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12846 handling of STACK_REG.
12847
12848 2013-10-17 Richard Biener <rguenther@suse.de>
12849
12850 PR tree-optimization/58143
12851 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12852 New function.
12853 (rewrite_to_defined_overflow): Likewise.
12854 (move_computations_dom_walker::before_dom): Rewrite stmts
12855 with undefined signed overflow that are not always executed
12856 into unsigned arithmetic.
12857
12858 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12859
12860 PR target/57756
12861 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12862 explicit isa flag to be an options variable, instead of using
12863 global_options_set. Remove define from rs6000.h.
12864 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12865
12866 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12867 Initialize rs6000_isa_flags_explicit.
12868 (rs6000_function_specific_save): Add gcc_options* parameter, so
12869 that the powerpc builds after the 2013-10-15 changes.
12870 (rs6000_function_specific_restore): Likewise.
12871
12872 2013-10-16 DJ Delorie <dj@redhat.com>
12873
12874 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12875 op is a REG before checking REGNO.
12876 (rl78_alloc_physical_registers): Verify pattern is a SET before
12877 checking SET_SRC.
12878
12879 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12880
12881 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12882 endianness.
12883 (vec_unpacks_lo_v4sf): Likewise.
12884 (vec_unpacks_float_hi_v4si): Likewise.
12885 (vec_unpacks_float_lo_v4si): Likewise.
12886 (vec_unpacku_float_hi_v4si): Likewise.
12887 (vec_unpacku_float_lo_v4si): Likewise.
12888
12889 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12890
12891 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12892 (vsx_concat_v2sf): Likewise.
12893
12894 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12895
12896 * config/aarch64/aarch64.md
12897 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12898
12899 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12900
12901 PR tree-optimization/58697
12902 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12903 estimated_loop_iterations_int.
12904 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12905 (get_max_loop_iterations_int): New. HWINT version of
12906 get_max_loop_iterations.
12907 * cfgloop.h: Add prototypes.
12908 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12909 * loop-unroll.c (decide_peel_once_rolling): Call
12910 get_estimated_loop_iterations_int.
12911 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12912 * tree-ssa-loop-niter.h: Tweak prototypes.
12913
12914 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12915
12916 * gengtype-parse.c (struct_field_seq): Ignore access-control
12917 keywords ("public:" etc).
12918
12919 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12920
12921 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12922 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12923
12924 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12925
12926 * config/arm/arm.opt (mlra): New option.
12927 * config/arm/arm.c (arm_lra_p): New function.
12928 (TARGET_LRA_P): Define.
12929
12930 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12931
12932 * tree-core.h (tree_code_name): Remove.
12933 * tree.h (get_tree_code_name): New prototype.
12934 * tree.c (tree_code_name): Make static.
12935 (get_tree_code_name): New function.
12936 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12937 tree_class_check_failed, tree_range_check_failed,
12938 tree_not_class_check_failed, omp_clause_check_failed,
12939 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12940 wrapper get_tree_code_name instead of calling tree_code_name directly.
12941 * tree-vrp.c (dump_asserts_for): Likewise.
12942 * tree-dump.c (dequeue_and_dump): Likewise.
12943 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12944 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12945 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12946 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12947 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12948 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12949 dump_gimple_omp_for): Likewise.
12950 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12951 * tree-ssa-pre.c (print_pre_expr): Likewise.
12952 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12953 * print-tree.c (print_node_brief, print_node): Likewise.
12954 * gimple.c (gimple_check_failed): Likewise.
12955 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12956 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12957 * config/mep/mep.c (mep_validate_vliw): Likewise.
12958 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12959 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12960
12961 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12962
12963 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12964 for AMD bdver3.
12965
12966 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12967
12968 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12969 (MULTILIB_MATCHES): Add multilib for -march=v8.
12970
12971 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12972
12973 PR target/57756
12974 * optc-save-gen.awk: Add extra parameter to the save and restore
12975 target calls.
12976 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12977 * tree.c (build_optimization_node): New parameter. Add extra parameter
12978 to call to cl_optimization_save.
12979 (build_target_option_node): New parameter. Add extra parameter
12980 to call to cl_target_option_save.
12981 * tree.h (build_optimization_node): New parameter.
12982 (build_target_option_node): New parameter.
12983 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12984 build_optimization_node and build_target_option_node.
12985 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12986 (handle_pragma_push_options): Ditto.
12987 * toplev.c (process_options): Ditto.
12988 * opts.c (init_options_struct): Check for opts_set non-null.
12989 * target.def (target_option.save): New parameter.
12990 (target_option.restore): New parameter.
12991 * tm.texi: Generate.
12992 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12993 (ix86_pragma_target_parse): Ditto.
12994 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12995 parameters.
12996 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12997 to build_optimization_node and build_target_option_node.
12998 (rs6000_valid_attribute_p): Ditto.
12999 (rs6000_pragma_target_parse): Ditto.
13000 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
13001 data.
13002 * config/i386/i386.h:
13003 TARGET_64BIT_P: New Macro
13004 TARGET_MMX_P: New Macro.
13005 TARGET_3DNOW_P: New Macro.
13006 TARGET_3DNOW_A_P: New Macro.
13007 TARGET_SSE_P: New Macro.
13008 TARGET_SSE2_P: New Macro.
13009 TARGET_SSE3_P: New Macro.
13010 TARGET_SSSE3_P: New Macro.
13011 TARGET_SSE4_1_P: New Macro.
13012 TARGET_SSE4_2_P: New Macro.
13013 TARGET_AVX_P: New Macro.
13014 TARGET_AVX2_P: New Macro.
13015 TARGET_AVX512F_P: New Macro.
13016 TARGET_AVX512PF_P: New Macro.
13017 TARGET_AVX512ER_P: New Macro.
13018 TARGET_AVX512CD_P: New Macro.
13019 TARGET_FMA_P: New Macro.
13020 TARGET_SSE4A_P: New Macro.
13021 TARGET_FMA4_P: New Macro.
13022 TARGET_XOP_P: New Macro.
13023 TARGET_LWP_P: New Macro.
13024 TARGET_ABM_P: New Macro.
13025 TARGET_BMI_P: New Macro.
13026 TARGET_BMI2_P: New Macro.
13027 TARGET_LZCNT_P: New Macro.
13028 TARGET_TBM_P: New Macro.
13029 TARGET_POPCNT_P: New Macro.
13030 TARGET_SAHF_P: New Macro.
13031 TARGET_MOVBE_P: New Macro.
13032 TARGET_CRC32_P: New Macro.
13033 TARGET_AES_P: New Macro.
13034 TARGET_PCLMUL_P: New Macro.
13035 TARGET_CMPXCHG16B_P: New Macro.
13036 TARGET_FSGSBASE_P: New Macro.
13037 TARGET_RDRND_P: New Macro.
13038 TARGET_F16C_P: New Macro.
13039 TARGET_RTM_P: New Macro.
13040 TARGET_HLE_P: New Macro.
13041 TARGET_RDSEED_P: New Macro.
13042 TARGET_PRFCHW_P: New Macro.
13043 TARGET_ADX_P: New Macro.
13044 TARGET_FXSR_P: New Macro.
13045 TARGET_XSAVE_P: New Macro.
13046 TARGET_XSAVEOPT_P: New Macro.
13047 TARGET_LP64_P: New Macro.
13048 TARGET_X32_P: New Macro.
13049 TARGET_FPMATH_DEFAULT_P: New Macro.
13050 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13051 * config/i386/i386.c (ix86_option_override_internal): New parameters.
13052 opts and opts_set.
13053 Change ix86_tune_string to access opts->x_ix86_tune_string.
13054 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13055 Change ix86_arch_string to access opts->x_ix86_arch_string.
13056 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13057 Change ix86_pmode to access opts->x_ix86_pmode.
13058 Change ix86_abi to access opts->x_ix86_abi.
13059 Change ix86_cmodel to access opts->x_ix86_cmodel.
13060 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13061 Change ix86_isa_flags_explicit to access
13062 opts->x_ix86_isa_flags_explicit.
13063 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13064 Change ix86_regparm to access opts->x_ix86_regparm.
13065 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13066 Change ix86_preferred_stack_boundary_arg to access
13067 opts->x_ix86_preferred_stack_boundary_arg.
13068 Change ix86_force_align_arg_pointer to access
13069 opts->x_ix86_force_align_arg_pointer.
13070 Change ix86_incoming_stack_boundar_arg to access
13071 opts->x_ix86_incoming_stack_boundar_arg.
13072 Change ix86_fpmath to access opts->x_ix86_fpmath.
13073 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13074 Change ix86_recip_name to access opts->x_ix86_recip_name.
13075 Change ix86_stack_protector_guard to access
13076 opts->x_ix86_stack_protector_guard.
13077 Change ix86_tune_memcpy_strategy to access
13078 opts->x_ix86_tune_memcpy_strategy.
13079 Change ix86_tune_memset_strategy to access
13080 opts->x_ix86_tune_memset_strategy.
13081 Change global_options to access opts.
13082 Change global_options_set to access opts_set.
13083 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13084 Change TARGET_MMX to TARGET_MMX_P (opts->...).
13085 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13086 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13087 Change TARGET_SSE to TARGET_SSE_P (opts->...).
13088 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13089 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13090 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13091 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13092 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13093 Change TARGET_AVX to TARGET_AVX_P (opts->...).
13094 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13095 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13096 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13097 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13098 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13099 Change TARGET_FMA to TARGET_FMA_P (opts->...).
13100 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13101 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13102 Change TARGET_XOP to TARGET_XOP_P (opts->...).
13103 Change TARGET_LWP to TARGET_LWP_P (opts->...).
13104 Change TARGET_ABM to TARGET_ABM_P (opts->...).
13105 Change TARGET_BMI to TARGET_BMI_P (opts->...).
13106 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13107 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13108 Change TARGET_TBM to TARGET_TBM_P (opts->...).
13109 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13110 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13111 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13112 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13113 Change TARGET_AES to TARGET_AES_P (opts->...).
13114 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13115 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13116 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13117 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13118 Change TARGET_F16C to TARGET_F16C_P (opts->...).
13119 Change TARGET_RTM to TARGET_RTM_P (opts->...).
13120 Change TARGET_HLE to TARGET_HLE_P (opts->...).
13121 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13122 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13123 Change TARGET_ADX to TARGET_ADX_P (opts->...).
13124 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13125 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13126 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13127 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13128 Change TARGET_X32 to TARGET_X32_P (opts->...).
13129 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13130 Change TARGET_FLOAT_RETURNS_IN_80387 to
13131 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13132 (ix86_function_specific_save): New parameter. Use opts-> fields
13133 to replace global fields.
13134 (ix86_function_specific_restore): Ditto.
13135 (ix86_valid_target_attribute_inner_p): New parameters.
13136 Fix recursive call.
13137 Fix call to ix86_handle_option and set_option.
13138 (ix86_valid_target_attribute_tree): New parameters.
13139 Change global_options to access opts.
13140 Change global_options_set to access opts_set.
13141 Fix call to ix86_valid_target_attribute_inner_p.
13142 Change ix86_tune_string to access opts->x_ix86_tune_string.
13143 Change ix86_arch_string to access opts->x_ix86_arch_string.
13144 Change ix86_fpmath to access opts->x_ix86_fpmath
13145 Fix call to ix86_option_override_internal.
13146 Fix call to ix86_add_new_builtins.
13147 Fix calls to build_optimization_node and build_target_option_node.
13148 (ix86_valid_target_attribute_p): Remove access to global_options.
13149 Use new gcc_options structure func_options.
13150 Fix call to ix86_valid_target_attribute_tree.
13151 Fix call to build_optimization_node.
13152 (get_builtin_code_for_version): Fix call to
13153 ix86_valid_target_attribute_tree.
13154
13155 2013-10-15 David Malcolm <dmalcolm@redhat.com>
13156
13157 * Makefile.in (PICFLAG): New.
13158 (enable_host_shared): New.
13159 (INTERNAL_CFLAGS): Use PICFLAG.
13160 (LIBIBERTY): Use pic build of libiberty.a if configured with
13161 --enable-host-shared.
13162 * configure.ac: Add --enable-host-shared, setting up new
13163 PICFLAG variable.
13164 * configure: Regenerate.
13165 * doc/install.texi (--enable-shared): Add note contrasting it with ...
13166 (--enable-host-shared): New option.
13167
13168 2013-10-15 Richard Biener <rguenther@suse.de>
13169
13170 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13171 for built-in functions.
13172
13173 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
13174
13175 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13176 (optimize_range_tests_1): New function,
13177 extracted from optimize_range_tests.
13178 (optimize_range_tests_xor): Similarly.
13179 (optimize_range_tests_diff): New function.
13180 (optimize_range_tests): Use optimize_range_tests_1.
13181
13182 2013-10-15 Cong Hou <congh@google.com>
13183
13184 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13185 requirement of the reduction pattern so that one operand of the
13186 reduction operation can come from outside of the loop.
13187
13188 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13189
13190 * config/arm/neon-schedgen.ml: Remove.
13191 * config/arm/cortex-a9-neon.md: Remove comment regarding
13192 neon-schedgen.ml.
13193
13194 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13195
13196 * config/arm/types: Remove old neon types.
13197
13198 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13199
13200 * config/arm/cortex-a7.md
13201 (cortex_a7_neon_type): New.
13202 (cortex_a7_neon_mul): Update for new types.
13203 (cortex_a7_neon_mla): Likewise.
13204 (cortex_a7_neon): Likewise.
13205
13206 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13207
13208 * config/arm/cortex-a15-neon.md
13209 (cortex_a15_neon_type): New,
13210
13211 (cortex_a15_neon_int_1): Remove.
13212 (cortex_a15_neon_int_2): Likewise.
13213 (cortex_a15_neon_int_3): Likewise.
13214 (cortex_a15_neon_int_4): Likewise.
13215 (cortex_a15_neon_int_5): Likewise.
13216 (cortex_a15_neon_vqneg_vqabs): Likewise.
13217 (cortex_a15_neon_vmov): Likewise.
13218 (cortex_a15_neon_vaba): Likewise.
13219 (cortex_a15_neon_vaba_qqq): Likewise.
13220 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13221 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13222 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13223 Likewise.
13224 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13225 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13226 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13227 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13228 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13229 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13230 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13231 (cortex_a15_neon_shift_1): Likewise.
13232 (cortex_a15_neon_shift_2): Likewise.
13233 (cortex_a15_neon_shift_3): Likewise.
13234 (cortex_a15_neon_vshl_ddd): Likewise.
13235 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13236 (cortex_a15_neon_vsra_vrsra): Likewise.
13237 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13238 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13239 (cortex_a15_neon_bp_3cycle): Likewise.
13240 (cortex_a15_neon_ldm_2): Likewise.
13241 (cortex_a15_neon_stm_2): Likewise.
13242 (cortex_a15_neon_mcr): Likewise.
13243 (cortex_a15_neon_mrc): Likewise.
13244 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13245 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13246 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13247 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13248 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13249 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13250 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13251 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13252 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13253 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13254 (cortex_a15_neon_bp_simple): Likewise.
13255 (cortex_a15_neon_bp_2cycle): Likewise.
13256 (cortex_a15_neon_bp_3cycle): Likewise.
13257 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13258 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13259 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13260 (cortex_a15_neon_vld2_4_regs): Likewise.
13261 (cortex_a15_neon_vld3_vld4): Likewise.
13262 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13263 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13264 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13265 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13266 (cortex_a15_neon_vst3_vst4): Rename to...
13267 (cortex_a15_neon_vst4): This, update for new attributes.
13268 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13269 (cortex_a15_neon_vld3_vld4_lane): Likewise.
13270 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13271 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13272 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13273 (cortex_a15_neon_ldm_2): Likewise.
13274 (cortex_a15_neon_stm_2): Likewise.
13275 (cortex_a15_neon_mcr): Likewise.
13276 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13277 (cortex_a15_neon_mrc): Likewise.
13278 (cortex_a15_neon_mrrc): Likewise.
13279
13280 (cortex_a15_neon_abd): New.
13281 (cortex_a15_neon_abd_q): Likewise.
13282 (cortex_a15_neon_aba): Likewise.
13283 (cortex_a15_neon_aba_q): Likewise.
13284 (cortex_a15_neon_acc): Likewise.
13285 (cortex_a15_neon_acc_q): Likewise.
13286 (cortex_a15_neon_arith_basic): Likewise.
13287 (cortex_a15_neon_arith_complex): Likewise.
13288 (cortex_a15_neon_multiply): Likewise.
13289 (cortex_a15_neon_multiply_q): Likewise.
13290 (cortex_a15_neon_mla): Likewise.
13291 (cortex_a15_neon_mla_q): Likewise.
13292 (cortex_a15_neon_sat_mla_long): Likewise.
13293 (cortex_a15_neon_shift_acc): Likewise.
13294 (cortex_a15_neon_shift_imm_basic): Likewise.
13295 (cortex_a15_neon_shift_imm_complex): Likewise.
13296 (cortex_a15_neon_shift_reg_basic): Likewise.
13297 (cortex_a15_neon_shift_reg_basic_q): Likewise.
13298 (cortex_a15_neon_shift_reg_complex): Likewise.
13299 (cortex_a15_neon_shift_reg_complex_q): Likewise.
13300 (cortex_a15_neon_fp_negabs): Likewise
13301 (cortex_a15_neon_fp_arith): Likewise
13302 (cortex_a15_neon_fp_arith_q): Likewise
13303 (cortex_a15_neon_fp_cvt_int): Likewise
13304 (cortex_a15_neon_fp_cvt_int_q): Likewise
13305 (cortex_a15_neon_fp_cvt_16): Likewise
13306 (cortex_a15_neon_fp_mul): Likewise
13307 (cortex_a15_neon_fp_mul_q): Likewise
13308 (cortex_a15_neon_fp_mla): Likewise
13309 (cortex_a15_neon_fp_mla_q): Likewise
13310 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13311 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13312 (cortex_a15_neon_bitops): Likewise.
13313 (cortex_a15_neon_bitops_q): Likewise.
13314 (cortex_a15_neon_from_gp): Likewise.
13315 (cortex_a15_neon_from_gp_q): Likewise.
13316 (cortex_a15_neon_tbl3_tbl4): Likewise.
13317 (cortex_a15_neon_zip_q): Likewise.
13318 (cortex_a15_neon_to_gp): Likewise.
13319 (cortex_a15_neon_load_a): Likewise.
13320 (cortex_a15_neon_load_b): Likewise.
13321 (cortex_a15_neon_load_c): Likewise.
13322 (cortex_a15_neon_load_d): Likewise.
13323 (cortex_a15_neon_load_e): Likewise.
13324 (cortex_a15_neon_load_f): Likewise.
13325 (cortex_a15_neon_store_a): Likewise.
13326 (cortex_a15_neon_store_b): Likewise.
13327 (cortex_a15_neon_store_c): Likewise.
13328 (cortex_a15_neon_store_d): Likewise.
13329 (cortex_a15_neon_store_e): Likewise.
13330 (cortex_a15_neon_store_f): Likewise.
13331 (cortex_a15_neon_store_g): Likewise.
13332 (cortex_a15_neon_store_h): Likewise.
13333 (cortex_a15_vfp_to_from_gp): Likewise.
13334
13335 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13336
13337 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13338
13339 (cortex_a9_neon_vshl_ddd): Remove.
13340 (cortex_a9_neon_vst3_vst4): Likewise.
13341 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13342
13343 (cortex_a9_neon_bit_ops_q): New.
13344
13345 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13346 (cortex_a9_neon_int_2): Likewise.
13347 (cortex_a9_neon_int_3): Likewise.
13348 (cortex_a9_neon_int_4): Likewise.
13349 (cortex_a9_neon_int_5): Likewise.
13350 (cortex_a9_neon_vqneg_vqabs): Likewise.
13351 (cortex_a9_neon_vmov): Likewise.
13352 (cortex_a9_neon_vaba): Likewise.
13353 (cortex_a9_neon_vaba_qqq): Likewise.
13354 (cortex_a9_neon_shift_1): Likewise.
13355 (cortex_a9_neon_shift_2): Likewise.
13356 (cortex_a9_neon_shift_3): Likewise.
13357 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13358 (cortex_a9_neon_vsra_vrsra): Likewise.
13359 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13360 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13361 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13362 Likewise.
13363 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13364 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13365 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13366 Likewise.
13367 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13368 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13369 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13370 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13371 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13372 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13373 (cortex_a9_neon_fp_vsum): Likewise.
13374 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13375 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13376 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13377 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13378 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13379 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13380 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13381 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13382 (cortex_a9_neon_bp_simple): Likewise.
13383 (cortex_a9_neon_bp_2cycle): Likewise.
13384 (cortex_a9_neon_bp_3cycle): Likewise.
13385 (cortex_a9_neon_ldr): Likewise.
13386 (cortex_a9_neon_str): Likewise.
13387 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13388 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13389 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13390 (cortex_a9_neon_vld2_4_regs): Likewise.
13391 (cortex_a9_neon_vld3_vld4): Likewise.
13392 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13393 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13394 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13395 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13396 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13397 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13398 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13399 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13400 (cortex_a9_neon_mcr): Likewise.
13401 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13402 (cortex_a9_neon_mrc): Likewise.
13403 (cortex_a9_neon_mrrc): Likewise.
13404
13405 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13406
13407 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13408
13409 (cortex_a8_neon_vshl_ddd): Remove.
13410 (cortex_a8_neon_vst3_vst4): Likewise.
13411 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13412
13413 (cortex_a8_neon_bit_ops_q): New.
13414
13415 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13416 (cortex_a8_neon_int_2): Likewise..
13417 (cortex_a8_neon_int_3): Likewise.
13418 (cortex_a8_neon_int_5): Likewise.
13419 (cortex_a8_neon_vqneg_vqabs): Likewise.
13420 (cortex_a8_neon_int_4): Likewise.
13421 (cortex_a8_neon_vaba): Likewise.
13422 (cortex_a8_neon_vaba_qqq): Likewise.
13423 (cortex_a8_neon_shift_1): Likewise.
13424 (cortex_a8_neon_shift_2): Likewise.
13425 (cortex_a8_neon_shift_3): Likewise.
13426 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13427 (cortex_a8_neon_vsra_vrsra): Likewise.
13428 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13429 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13430 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13431 Likewise.
13432 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13433 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13434 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13435 Likewise.
13436 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13437 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13438 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13439 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13440 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13441 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13442 (cortex_a8_neon_fp_vsum): Likewise.
13443 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13444 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13445 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13446 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13447 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13448 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13449 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13450 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13451 (cortex_a8_neon_bp_simple): Likewise.
13452 (cortex_a8_neon_bp_2cycle): Likewise.
13453 (cortex_a8_neon_bp_3cycle): Likewise.
13454 (cortex_a8_neon_ldr): Likewise.
13455 (cortex_a8_neon_str): Likewise.
13456 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13457 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13458 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13459 (cortex_a8_neon_vld2_4_regs): Likewise.
13460 (cortex_a8_neon_vld3_vld4): Likewise.
13461 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13462 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13463 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13464 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13465 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13466 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13467 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13468 (cortex_a8_neon_mcr): Likewise.
13469 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13470 (cortex_a8_neon_mrc): Likewise.
13471 (cortex_a8_neon_mrrc): Likewise.
13472
13473 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13474
13475 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13476 (fp): New.
13477 * config/aarch64/aarch64-simd.md (neon_type): Remove.
13478 (aarch64_simd_dup<mode>): Add "type" attribute.
13479 (aarch64_dup_lane<mode>): Likewise.
13480 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13481 (*aarch64_simd_mov<mode>): Likewise.
13482 (aarch64_simd_mov_from_<mode>low): Likewise.
13483 (aarch64_simd_mov_from_<mode>high): Likewise.
13484 (orn<mode>3): Likewise.
13485 (bic<mode>3): Likewise.
13486 (add<mode>3): Likewise.
13487 (sub<mode>3): Likewise.
13488 (mul<mode>3): Likewise.
13489 (*aarch64_mul3_elt<mode>): Likewise.
13490 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13491 (*aarch64_mul3_elt_to_128df): Likewise.
13492 (*aarch64_mul3_elt_to_64v2df): Likewise.
13493 (neg<mode>2): Likewise.
13494 (abs<mode>2): Likewise.
13495 (abd<mode>_3): Likewise.
13496 (aba<mode>_3): Likewise.
13497 (fabd<mode>_3): Likewise.
13498 (*fabd_scalar<mode>3): Likewise.
13499 (and<mode>3): Likewise.
13500 (ior<mode>3): Likewise.
13501 (xor<mode>3): Likewise.
13502 (one_cmpl<mode>2): Likewise.
13503 (aarch64_simd_vec_set<mode>): Likewise.
13504 (aarch64_simd_lshr<mode>): Likewise.
13505 (aarch64_simd_ashr<mode>): Likewise.
13506 (aarch64_simd_imm_shl<mode>): Likewise.
13507 (aarch64_simd_reg_sshl<mode): Likewise.
13508 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13509 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13510 (aarch64_simd_vec_setv2di): Likewise.
13511 (aarch64_simd_vec_set<mode>): Likewise.
13512 (aarch64_mla<mode>): Likewise.
13513 (*aarch64_mla_elt<mode>): Likewise.
13514 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13515 (aarch64_mls<mode>): Likewise.
13516 (*aarch64_mls_elt<mode>): Likewise.
13517 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13518 (<su><maxmin><mode>3): Likewise.
13519 (move_lo_quad_<mode>): Likewise.
13520 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13521 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13522 (vec_pack_trunc_<mode>): Likewise.
13523 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13524 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13525 (*aarch64_<su>mlal_lo<mode>): Likewise.
13526 (*aarch64_<su>mlal_hi<mode>): Likewise.
13527 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13528 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13529 (*aarch64_<su>mlal<mode>): Likewise.
13530 (*aarch64_<su>mlsl<mode>): Likewise.
13531 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13532 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13533 (add<mode>3): Likewise.
13534 (sub<mode>3): Likewise.
13535 (mul<mode>3): Likewise.
13536 (div<mode>3): Likewise.
13537 (neg<mode>2): Likewise.
13538 (abs<mode>2): Likewise.
13539 (fma<mode>4): Likewise.
13540 (*aarch64_fma4_elt<mode>): Likewise.
13541 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13542 (*aarch64_fma4_elt_to_128df): Likewise.
13543 (*aarch64_fma4_elt_to_64v2df): Likewise.
13544 (fnma<mode>4): Likewise.
13545 (*aarch64_fnma4_elt<mode>): Likewise.
13546 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13547 (*aarch64_fnma4_elt_to_128df): Likewise.
13548 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13549 (<frint_pattern><mode>2): Likewise.
13550 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13551 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13552 (vec_unpacks_lo_v4sf): Likewise.
13553 (aarch64_float_extend_lo_v2df): Likewise.
13554 (vec_unpacks_hi_v4sf): Likewise.
13555 (aarch64_float_truncate_lo_v2sf): Likewise.
13556 (aarch64_float_truncate_hi_v4sf): Likewise.
13557 (aarch64_vmls<mode>): Likewise.
13558 (<su><maxmin><mode>3): Likewise.
13559 (<maxmin_uns><mode>3): Likewise.
13560 (reduc_<sur>plus_<mode>): Likewise.
13561 (reduc_<sur>plus_v2di): Likewise.
13562 (reduc_<sur>plus_v2si): Likewise.
13563 (reduc_<sur>plus_<mode>): Likewise.
13564 (aarch64_addpv4sf): Likewise.
13565 (clz<mode>2): Likewise.
13566 (reduc_<maxmin_uns>_<mode>): Likewise.
13567 (reduc_<maxmin_uns>_v2di): Likewise.
13568 (reduc_<maxmin_uns>_v2si): Likewise.
13569 (reduc_<maxmin_uns>_<mode>): Likewise.
13570 (reduc_<maxmin_uns>_v4sf): Likewise.
13571 (aarch64_simd_bsl<mode>_internal): Likewise.
13572 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13573 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13574 (aarch64_get_lane<mode>): Likewise.
13575 (*aarch64_combinez<mode>): Likewise.
13576 (aarch64_combine<mode>): Likewise.
13577 (aarch64_simd_combine<mode>): Likewise.
13578 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13579 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13580 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13581 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13582 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13583 (aarch64_<sur>h<addsub><mode>): Likewise.
13584 (aarch64_<sur><addsub>hn<mode>): Likewise.
13585 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13586 (aarch64_pmul<mode>): Likewise.
13587 (aarch64_<su_optab><optab><mode>): Likewise.
13588 (aarch64_<sur>qadd<mode>): Likewise.
13589 (aarch64_sqmovun<mode>): Likewise.
13590 (aarch64_<sur>qmovn<mode>): Likewise.
13591 (aarch64_s<optab><mode>): Likewise.
13592 (aarch64_sq<r>dmulh<mode>): Likewise.
13593 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13594 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13595 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13596 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13597 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13598 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13599 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13600 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13601 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13602 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13603 (aarch64_sqdmull<mode>): Likewise.
13604 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13605 (aarch64_sqdmull_n<mode>): Likewise.
13606 (aarch64_sqdmull2<mode>_internal): Likewise.
13607 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13608 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13609 (aarch64_<sur>shl<mode>): Likewise.
13610 (aarch64_<sur>q<r>shl<mode>
13611 (aarch64_<sur>shll_n<mode>): Likewise.
13612 (aarch64_<sur>shll2_n<mode>): Likewise.
13613 (aarch64_<sur>shr_n<mode>): Likewise.
13614 (aarch64_<sur>sra_n<mode>): Likewise.
13615 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13616 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13617 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13618 (aarch64_cm<optab><mode>): Likewise.
13619 (aarch64_cm<optab>di): Likewise.
13620 (aarch64_cm<optab><mode>): Likewise.
13621 (aarch64_cm<optab>di): Likewise.
13622 (aarch64_cmtst<mode>): Likewise.
13623 (aarch64_cmtstdi): Likewise.
13624 (aarch64_cm<optab><mode>): Likewise.
13625 (*aarch64_fac<optab><mode>): Likewise.
13626 (aarch64_addp<mode>): Likewise.
13627 (aarch64_addpdi): Likewise.
13628 (sqrt<mode>2): Likewise.
13629 (vec_load_lanesoi<mode>): Likewise.
13630 (vec_store_lanesoi<mode>): Likewise.
13631 (vec_load_lanesci<mode>): Likewise.
13632 (vec_store_lanesci<mode>): Likewise.
13633 (vec_load_lanesxi<mode>): Likewise.
13634 (vec_store_lanesxi<mode>): Likewise.
13635 (*aarch64_mov<mode>): Likewise.
13636 (aarch64_ld2<mode>_dreg): Likewise.
13637 (aarch64_ld2<mode>_dreg): Likewise.
13638 (aarch64_ld3<mode>_dreg): Likewise.
13639 (aarch64_ld3<mode>_dreg): Likewise.
13640 (aarch64_ld4<mode>_dreg): Likewise.
13641 (aarch64_ld4<mode>_dreg): Likewise.
13642 (aarch64_tbl1<mode>): Likewise.
13643 (aarch64_tbl2v16qi): Likewise.
13644 (aarch64_combinev16qi): Likewise.
13645 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13646 (aarch64_st2<mode>_dreg): Likewise.
13647 (aarch64_st2<mode>_dreg): Likewise.
13648 (aarch64_st3<mode>_dreg): Likewise.
13649 (aarch64_st3<mode>_dreg): Likewise.
13650 (aarch64_st4<mode>_dreg): Likewise.
13651 (aarch64_st4<mode>_dreg): Likewise.
13652 (*aarch64_simd_ld1r<mode>): Likewise.
13653 (aarch64_frecpe<mode>): Likewise.
13654 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13655 (aarch64_frecps<mode>): Likewise.
13656
13657 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13658
13659 * config/arm/iterators.md (V_elem_ch): New.
13660 (q): Likewise.
13661 (VQH_type): Likewise.
13662 * config/arm/arm.md (is_neon_type): New.
13663 (conds): Use is_neon_type.
13664 (anddi3_insn): Update type attribute.
13665 (xordi3_insn): Likewise.
13666 (one_cmpldi2): Likewise.
13667 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13668 * config/arm/neon.md (neon_mov): Update type attribute.
13669 (*movmisalign<mode>_neon_store): Likewise.
13670 (*movmisalign<mode>_neon_load): Likewise.
13671 (vec_set<mode>_internal): Likewise.
13672 (vec_set<mode>_internal): Likewise.
13673 (vec_setv2di_internal): Likewise.
13674 (vec_extract<mode>): Likewise.
13675 (vec_extract<mode>): Likewise.
13676 (vec_extractv2di): Likewise.
13677 (*add<mode>3_neon): Likewise.
13678 (adddi3_neon): Likewise.
13679 (*sub<mode>3_neon): Likewise.
13680 (subdi3_neon): Likewise.
13681 (fma<VCVTF:mode>4): Likewise.
13682 (fma<VCVTF:mode>4_intrinsic): Likewise.
13683 (*fmsub<VCVTF:mode>4): Likewise.
13684 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13685 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13686 (ior<mode>3): Likewise.
13687 (and<mode>3): Likewise.
13688 (orn<mode>3_neon): Likewise.
13689 (orndi3_neon): Likewise.
13690 (bic<mode>3_neon): Likewise.
13691 (bicdi3_neon): Likewise.
13692 (xor<mode>3): Likewise.
13693 (one_cmpl<mode>2): Likewise.
13694 (abs<mode>2): Likewise.
13695 (neg<mode>2): Likewise.
13696 (negdi2_neon): Likewise.
13697 (*umin<mode>3_neon): Likewise.
13698 (*umax<mode>3_neon): Likewise.
13699 (*smin<mode>3_neon): Likewise.
13700 (*smax<mode>3_neon): Likewise.
13701 (vashl<mode>3): Likewise.
13702 (vashr<mode>3_imm): Likewise.
13703 (vlshr<mode>3_imm): Likewise.
13704 (ashl<mode>3_signed): Likewise.
13705 (ashl<mode>3_unsigned): Likewise.
13706 (neon_load_count): Likewise.
13707 (ashldi3_neon_noclobber): Likewise.
13708 (ashldi3_neon): Likewise.
13709 (signed_shift_di3_neon): Likewise.
13710 (unsigned_shift_di3_neon): Likewise.
13711 (ashrdi3_neon_imm_noclobber): Likewise.
13712 (lshrdi3_neon_imm_noclobber): Likewise.
13713 (<shift>di3_neon): Likewise.
13714 (widen_ssum<mode>3): Likewise.
13715 (widen_usum<mode>3): Likewise.
13716 (quad_halves_<code>v4si): Likewise.
13717 (quad_halves_<code>v4sf): Likewise.
13718 (quad_halves_<code>v8hi): Likewise.
13719 (quad_halves_<code>v16qi): Likewise.
13720 (reduc_splus_v2di): Likewise.
13721 (neon_vpadd_internal<mode>): Likewise.
13722 (neon_vpsmin<mode>): Likewise.
13723 (neon_vpsmax<mode>): Likewise.
13724 (neon_vpumin<mode>): Likewise.
13725 (neon_vpumax<mode>): Likewise.
13726 (*ss_add<mode>_neon): Likewise.
13727 (*us_add<mode>_neon): Likewise.
13728 (*ss_sub<mode>_neon): Likewise.
13729 (*us_sub<mode>_neon): Likewise.
13730 (neon_vadd<mode>_unspec): Likewise.
13731 (neon_vaddl<mode>): Likewise.
13732 (neon_vaddw<mode>): Likewise.
13733 (neon_vhadd<mode>): Likewise.
13734 (neon_vqadd<mode>): Likewise.
13735 (neon_vaddhn<mode>): Likewise.
13736 (neon_vmul<mode>): Likewise.
13737 (neon_vfms<VCVTF:mode>): Likewise.
13738 (neon_vmlal<mode>): Likewise.
13739 (neon_vmls<mode>): Likewise.
13740 (neon_vmlsl<mode>): Likewise.
13741 (neon_vqdmulh<mode>): Likewise.
13742 (neon_vqdmlal<mode>): Likewise.
13743 (neon_vqdmlsl<mode>): Likewise.
13744 (neon_vmull<mode>): Likewise.
13745 (neon_vqdmull<mode>): Likewise.
13746 (neon_vsub<mode>_unspec): Likewise.
13747 (neon_vsubl<mode>): Likewise.
13748 (neon_vsubw<mode>): Likewise.
13749 (neon_vqsub<mode>): Likewise.
13750 (neon_vhsub<mode>): Likewise.
13751 (neon_vsubhn<mode>): Likewise.
13752 (neon_vceq<mode>): Likewise.
13753 (neon_vcge<mode>): Likewise.
13754 (neon_vcgeu<mode>): Likewise.
13755 (neon_vcgt<mode>): Likewise.
13756 (neon_vcgtu<mode>): Likewise.
13757 (neon_vcle<mode>): Likewise.
13758 (neon_vclt<mode>): Likewise.
13759 (neon_vcage<mode>): Likewise.
13760 (neon_vcagt<mode>): Likewise.
13761 (neon_vtst<mode>): Likewise.
13762 (neon_vabd<mode>): Likewise.
13763 (neon_vabdl<mode>): Likewise.
13764 (neon_vaba<mode>): Likewise.
13765 (neon_vabal<mode>): Likewise.
13766 (neon_vmax<mode>): Likewise.
13767 (neon_vmin<mode>): Likewise.
13768 (neon_vpaddl<mode>): Likewise.
13769 (neon_vpadal<mode>): Likewise.
13770 (neon_vpmax<mode>): Likewise.
13771 (neon_vpmin<mode>): Likewise.
13772 (neon_vrecps<mode>): Likewise.
13773 (neon_vrsqrts<mode>): Likewise.
13774 (neon_vqabs<mode>): Likewise.
13775 (neon_vqneg<mode>): Likewise.
13776 (neon_vcls<mode>): Likewise.
13777 (clz<mode>2): Likewise.
13778 (popcount<mode>2): Likewise.
13779 (neon_vrecpe<mode>): Likewise.
13780 (neon_vrsqrte<mode>): Likewise.
13781 (neon_vget_lane<mode>_sext_internal): Likewise.
13782 (neon_vget_lane<mode>_zext_internal): Likewise.
13783 (neon_vdup_n<mode>): Likewise.
13784 (neon_vdup_n<mode>): Likewise.
13785 (neon_vdup_nv2di): Likewise.
13786 (neon_vdup_lane<mode>_interal): Likewise.
13787 (*neon_vswp<mode>): Likewise.
13788 (neon_vcombine<mode>): Likewise.
13789 (float<mode><V_cvtto>2): Likewise.
13790 (floatuns<mode><V_cvtto>2): Likewise.
13791 (fix_trunc<mode><V_cvtto>2): Likewise.
13792 (fixuns_trunc<mode><V_cvtto>2
13793 (neon_vcvt<mode>): Likewise.
13794 (neon_vcvt<mode>): Likewise.
13795 (neon_vcvtv4sfv4hf): Likewise.
13796 (neon_vcvtv4hfv4sf): Likewise.
13797 (neon_vcvt_n<mode>): Likewise.
13798 (neon_vcvt_n<mode>): Likewise.
13799 (neon_vmovn<mode>): Likewise.
13800 (neon_vqmovn<mode>): Likewise.
13801 (neon_vqmovun<mode>): Likewise.
13802 (neon_vmovl<mode>): Likewise.
13803 (neon_vmul_lane<mode>): Likewise.
13804 (neon_vmul_lane<mode>): Likewise.
13805 (neon_vmull_lane<mode>): Likewise.
13806 (neon_vqdmull_lane<mode>): Likewise.
13807 (neon_vqdmulh_lane<mode>): Likewise.
13808 (neon_vqdmulh_lane<mode>): Likewise.
13809 (neon_vmla_lane<mode>): Likewise.
13810 (neon_vmla_lane<mode>): Likewise.
13811 (neon_vmlal_lane<mode>): Likewise.
13812 (neon_vqdmlal_lane<mode>): Likewise.
13813 (neon_vmls_lane<mode>): Likewise.
13814 (neon_vmls_lane<mode>): Likewise.
13815 (neon_vmlsl_lane<mode>): Likewise.
13816 (neon_vqdmlsl_lane<mode>): Likewise.
13817 (neon_vext<mode>): Likewise.
13818 (neon_vrev64<mode>): Likewise.
13819 (neon_vrev32<mode>): Likewise.
13820 (neon_vrev16<mode>): Likewise.
13821 (neon_vbsl<mode>_internal): Likewise.
13822 (neon_vshl<mode>): Likewise.
13823 (neon_vqshl<mode>): Likewise.
13824 (neon_vshr_n<mode>): Likewise.
13825 (neon_vshrn_n<mode>): Likewise.
13826 (neon_vqshrn_n<mode>): Likewise.
13827 (neon_vqshrun_n<mode>): Likewise.
13828 (neon_vshl_n<mode>): Likewise.
13829 (neon_vqshl_n<mode>): Likewise.
13830 (neon_vqshlu_n<mode>): Likewise.
13831 (neon_vshll_n<mode>): Likewise.
13832 (neon_vsra_n<mode>): Likewise.
13833 (neon_vsri_n<mode>): Likewise.
13834 (neon_vsli_n<mode>): Likewise.
13835 (neon_vtbl1v8qi): Likewise.
13836 (neon_vtbl2v8qi): Likewise.
13837 (neon_vtbl3v8qi): Likewise.
13838 (neon_vtbl4v8qi): Likewise.
13839 (neon_vtbl1v16qi): Likewise.
13840 (neon_vtbl2v16qi): Likewise.
13841 (neon_vcombinev16qi): Likewise.
13842 (neon_vtbx1v8qi): Likewise.
13843 (neon_vtbx2v8qi): Likewise.
13844 (neon_vtbx3v8qi): Likewise.
13845 (neon_vtbx4v8qi): Likewise.
13846 (*neon_vtrn<mode>_insn): Likewise.
13847 (*neon_vzip<mode>_insn): Likewise.
13848 (*neon_vuzp<mode>_insn): Likewise.
13849 (neon_vld1<mode>): Likewise.
13850 (neon_vld1_lane<mode>): Likewise.
13851 (neon_vld1_lane<mode>): Likewise.
13852 (neon_vld1_dup<mode>): Likewise.
13853 (neon_vld1_dup<mode>): Likewise.
13854 (neon_vld1_dupv2di): Likewise.
13855 (neon_vst1<mode>): Likewise.
13856 (neon_vst1_lane<mode>): Likewise.
13857 (neon_vst1_lane<mode>): Likewise.
13858 (neon_vld2<mode>): Likewise.
13859 (neon_vld2<mode>): Likewise.
13860 (neon_vld2_lane<mode>): Likewise.
13861 (neon_vld2_lane<mode>): Likewise.
13862 (neon_vld2_dup<mode>): Likewise.
13863 (neon_vst2<mode>): Likewise.
13864 (neon_vst2<mode>): Likewise.
13865 (neon_vst2_lane<mode>): Likewise.
13866 (neon_vst2_lane<mode>): Likewise.
13867 (neon_vld3<mode>): Likewise.
13868 (neon_vld3qa<mode>): Likewise.
13869 (neon_vld3qb<mode>): Likewise.
13870 (neon_vld3_lane<mode>): Likewise.
13871 (neon_vld3_lane<mode>): Likewise.
13872 (neon_vld3_dup<mode>): Likewise.
13873 (neon_vst3<mode>): Likewise.
13874 (neon_vst3qa<mode>): Likewise.
13875 (neon_vst3qb<mode>): Likewise.
13876 (neon_vst3_lane<mode>): Likewise.
13877 (neon_vst3_lane<mode>): Likewise.
13878 (neon_vld4<mode>): Likewise.
13879 (neon_vld4qa<mode>): Likewise.
13880 (neon_vld4qb<mode>): Likewise.
13881 (neon_vld4_lane<mode>): Likewise.
13882 (neon_vld4_lane<mode>): Likewise.
13883 (neon_vld4_dup<mode>): Likewise.
13884 (neon_vst4<mode>): Likewise.
13885 (neon_vst4qa<mode>): Likewise.
13886 (neon_vst4qb<mode>): Likewise.
13887 (neon_vst4_lane<mode>): Likewise.
13888 (neon_vst4_lane<mode>): Likewise.
13889 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13890 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13891 (neon_vec_<US>mult_lo_<mode>): Likewise.
13892 (neon_vec_<US>mult_hi_<mode>): Likewise.
13893 (neon_vec_<US>shiftl_<mode>): Likewise.
13894 (neon_unpack<US>_<mode>): Likewise.
13895 (neon_vec_<US>mult_<mode>): Likewise.
13896 (vec_pack_trunc_<mode>): Likewise.
13897 (neon_vec_pack_trunc_<mode>): Likewise.
13898 (neon_vabd<mode>_2): Likewise.
13899 (neon_vabd<mode>_3): Likewise.
13900
13901 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13902
13903 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13904 (load_pair): Update type attribute.
13905 (store_pair): Update type attribute.
13906 * config/aarch64/iterators.md (q): New.
13907
13908 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13909
13910 * config/arm/types.md: Add new types for Neon insns.
13911
13912 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13913 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13914 Sergey Lega <sergey.s.lega@intel.com>
13915 Anna Tikhonova <anna.tikhonova@intel.com>
13916 Ilya Tocar <ilya.tocar@intel.com>
13917 Andrey Turetskiy <andrey.turetskiy@intel.com>
13918 Ilya Verbin <ilya.verbin@intel.com>
13919 Kirill Yukhin <kirill.yukhin@intel.com>
13920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13921
13922 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13923 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13924 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13925 (rcp14<mode>): New.
13926 (srcp14<mode>): Ditto.
13927 (rsqrt14<mode>): Ditto.
13928 (rsqrt14<mode>): Ditto.
13929 (avx512f_vmscalef<mode>): Ditto.
13930 (avx512f_scalef<mode>): Ditto.
13931 (avx512f_getexp<mode>): Ditto.
13932 (avx512f_sgetexp<mode>): Ditto.
13933 (avx512f_fixupimm<mode>): Ditto.
13934 (avx512f_sfixupimm<mode>): Ditto.
13935 (avx512f_rndscale<mode>): Ditto.
13936 (*avx512er_exp2<mode>): Ditto.
13937 (*avx512er_rcp28<mode>): Ditto.
13938 (avx512er_rsqrt28<mode>): Ditto.
13939 (avx512f_getmant<mode>): Ditto.
13940 (avx512f_getmant<mode>): Ditto.
13941 (avx512f_rndscale<mode>): Fix formatting.
13942
13943 2013-10-15 Martin Jambor <mjambor@suse.cz>
13944
13945 * ipa-utils.h (ipa_edge_within_scc): Declare.
13946 * ipa-cp.c (edge_within_scc): Moved...
13947 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13948
13949 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13951 Sergey Lega <sergey.s.lega@intel.com>
13952 Anna Tikhonova <anna.tikhonova@intel.com>
13953 Ilya Tocar <ilya.tocar@intel.com>
13954 Andrey Turetskiy <andrey.turetskiy@intel.com>
13955 Ilya Verbin <ilya.verbin@intel.com>
13956 Kirill Yukhin <kirill.yukhin@intel.com>
13957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13958
13959 * config/i386/predicates.md (const_8_to_15_operand): New.
13960 (const_16_to_31_operand): Ditto.
13961 * config/i386/sse.md (V8FI): New.
13962 (V16FI): Ditto.
13963 (reduc_splus_v8df): Ditto.
13964 (reduc_splus_v16sf): Ditto.
13965 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13966 (vec_extract_hi_<mode>): Ditto.
13967 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13968 (vec_set_lo_<mode>): Ditto.
13969 (vec_set_hi_<mode>): Ditto.
13970 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13971 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13972 (avx512f_pshufd_1): Ditto.
13973 (avx512f_broadcast<mode>): Ditto.
13974 (avx512f_broadcast<mode>): Ditto.
13975 (define_split): Split vec_extract_lo into move.
13976 (ssequartermode): Ditto.
13977 (ssedoublemode): Extened with wider modes.
13978 (vec_extract_lo_<mode>): Ditto.
13979
13980 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13981 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13982 Sergey Lega <sergey.s.lega@intel.com>
13983 Anna Tikhonova <anna.tikhonova@intel.com>
13984 Ilya Tocar <ilya.tocar@intel.com>
13985 Andrey Turetskiy <andrey.turetskiy@intel.com>
13986 Ilya Verbin <ilya.verbin@intel.com>
13987 Kirill Yukhin <kirill.yukhin@intel.com>
13988 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13989
13990 * config/i386/predicates.md (register_or_constm1_operand): New.
13991 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13992 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13993 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13994 UNSPEC_SCATTER_PREFETCH
13995 (VI48_512): New.
13996 (avx512f_ucmp<mode>3): Ditto.
13997 (avx512f_vternlog<mode>): Ditto.
13998 (avx512f_align<mode>): Ditto.
13999 (<shift_insn><mode>3): Ditto.
14000 (avx512f_<rotate>v<mode>): Ditto.
14001 (avx512f_<rotate><mode>): Ditto.
14002 (avx512f_eq<mode>3): Ditto.
14003 (avx512f_eq<mode>3_1): Ditto.
14004 (avx512f_gt<mode>3): Ditto.
14005 (avx512f_testm<mode>3): Ditto.
14006 (avx512f_testnm<mode>3): Ditto.
14007 (avx512pf_gatherpf<mode>): Ditto.
14008 (*avx512pf_gatherpf<mode>_mask): Ditto.
14009 (*avx512pf_gatherpf<mode>): Ditto.
14010 (avx512pf_scatterpf<mode>): Ditto.
14011 (*avx512pf_scatterpf<mode>_mask): Ditto.
14012 (*avx512pf_scatterpf<mode>): Ditto.
14013 (avx512f_vec_dup_gpr<mode>): Ditto.
14014 (clz<mode>2): Ditto.
14015 (conflict<mode>): Ditto.
14016 (REDUC_SMINMAX_MODE): Extened with wider modes.
14017 (reduc_<code>_<mode>): Ditto.
14018 (vlshr<mode>3): Ditto.
14019 (vashl<mode>3): Ditto.
14020
14021 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14022 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14023 Sergey Lega <sergey.s.lega@intel.com>
14024 Anna Tikhonova <anna.tikhonova@intel.com>
14025 Ilya Tocar <ilya.tocar@intel.com>
14026 Andrey Turetskiy <andrey.turetskiy@intel.com>
14027 Ilya Verbin <ilya.verbin@intel.com>
14028 Kirill Yukhin <kirill.yukhin@intel.com>
14029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14030
14031 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14032 UNSPEC_SCATTER.
14033 (VI48F_512): New.
14034 (avx512fmaskmode): Ditto.
14035 (bcstscalarsuff): Ditto.
14036 (avx512f_blendm<mode>): Ditto.
14037 (cmp_imm_predicate): Ditto.
14038 (avx512f_cmp<mode>3): Ditto.
14039 (avx512f_vec_dup<mode>): Ditto.
14040 (avx512f_vec_dup_mem<mode>): Ditto.
14041 (avx512f_vpermi2var<mode>3): Ditto.
14042 (avx512f_vpermt2var<mode>3): Ditto.
14043 (vec_init<mode>): Ditto.
14044 (avx512f_gathersi<mode>): Ditto.
14045 (*avx512f_gathersi<mode>): Ditto.
14046 (*avx512f_gathersi<mode>_2): Ditto.
14047 (avx512f_gatherdi<mode>): Ditto.
14048 (*avx512f_gatherdi<mode>): Ditto.
14049 (*avx512f_gatherdi<mode>_2): Ditto.
14050 (avx512f_scattersi<mode>): Ditto.
14051 (*avx512f_scattersi<mode>): Ditto.
14052 (avx512f_scatterdi<mode>): Ditto.
14053 (*avx512f_scatterdi<mode>): Ditto.
14054 (sseintprefix): Extened with wider modes.
14055 (VEC_GATHER_IDXSI): Ditto.
14056 (VEC_GATHER_IDXDI): Ditto.
14057 (VEC_GATHER_SRCDI): Ditto.
14058
14059 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14060 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14061
14062 * config/arm/t-aprofile: New file.
14063 * config.gcc: Handle --with-multilib-list option.
14064
14065 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
14066
14067 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14068 the input for r2.
14069
14070 2013-10-15 Richard Biener <rguenther@suse.de>
14071
14072 * tree-loop-distribution.c (build_empty_rdg): Inline into
14073 single user.
14074 (rdg_flag_vertex): Inline into single user.
14075 (rdg_flag_vertex_and_dependent): Likewise.
14076 (build_rdg_partition_for_vertex): Remove processed bitmap.
14077 (rdg_build_partitions): Simplify.
14078
14079 2013-10-15 Richard Biener <rguenther@suse.de>
14080
14081 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14082 Restructure forwarding through conversions and copies to
14083 avoid performing copy-propagation the wrong way. Adjust
14084 recursion invocations.
14085 (forward_propagate_addr_expr): Add argument stating if we
14086 are recursing from a single-use.
14087 (ssa_forward_propagate_and_combine): Adjust.
14088
14089 2013-10-14 David Malcolm <dmalcolm@redhat.com>
14090
14091 * dumpfile.h (gcc::dump_manager): New class, to hold state
14092 relating to dumpfile management.
14093 (get_dump_file_name): Remove in favor of method of dump_manager.
14094 (dump_initialized_p): Likewise.
14095 (dump_start): Likewise.
14096 (dump_finish): Likewise.
14097 (dump_switch_p): Likewise.
14098 (dump_register): Likewise.
14099 (get_dump_file_info): Likewise.
14100 * context.c (gcc::context::context): Construct the dump_manager
14101 instance.
14102 * context.h (gcc::context::get_dumps): New.
14103 (gcc::context::m_dumps): New.
14104 * coverage.c (coverage_init): Port to dump_manager API.
14105 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14106 (extra_dump_files_in_use): Likewise.
14107 (extra_dump_files_alloced): Likewise.
14108 (gcc::dump_manager::dump_manager): New.
14109 (dump_register): Convert to...
14110 (gcc::dump_manager::dump_register): ...method, replacing
14111 function-static next_dump with m_next_dump field.
14112 (get_dump_file_info): Convert to...
14113 (gcc::dump_manager::get_dump_file_info): ...method.
14114 (get_dump_file_name): Convert to...
14115 (gcc::dump_manager::get_dump_file_name): ...method.
14116 (dump_start): Convert to...
14117 (gcc::dump_manager::dump_start): ...method.
14118 (dump_finish): Convert to...
14119 (gcc::dump_manager::dump_finish): ...method.
14120 (dump_begin): Replace body with...
14121 (gcc::dump_manager::dump_begin): ...new method.
14122 (dump_phase_enabled_p): Convert to...
14123 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14124 (dump_phase_enabled_p): Convert to...
14125 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14126 (dump_initialized_p): Convert to...
14127 (gcc::dump_manager::dump_initialized_p): ...method.
14128 (dump_flag_name): Replace body with...
14129 (gcc::dump_manager::dump_flag_name): ...new method.
14130 (dump_enable_all): Convert to...
14131 (gcc::dump_manager::dump_enable_all): ...new method.
14132 (opt_info_enable_passes): Convert to...
14133 (gcc::dump_manager::opt_info_enable_passes): ...new method.
14134 (dump_switch_p_1): Convert to...
14135 (gcc::dump_manager::dump_switch_p_1): ...new method.
14136 (dump_switch_p): Convert to...
14137 (gcc::dump_manager::dump_switch_p): ...new method.
14138 (opt_info_switch_p): Port to dump_manager API.
14139 (enable_rtl_dump_file): Likewise.
14140 * opts-global.c (handle_common_deferred_options): Port to new
14141 dump_manager API.
14142 * passes.c (pass_manager::finish_optimization_passes): Likewise.
14143 (pass_manager::register_one_dump_file): Likewise.
14144 (pass_manager::register_pass): Likewise.
14145 (pass_init_dump_file): Likewise.
14146 (pass_fini_dump_file): Likewise.
14147 * statistics.c (statistics_early_init): Likewise.
14148
14149 2013-10-14 Richard Biener <rguenther@suse.de>
14150
14151 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14152 iterative_hash_canonical_type, gimple_canonical_type_hash,
14153 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14154 gimple_register_canonical_type, print_gimple_types_stats,
14155 free_gimple_type_tables): Move to lto/lto.c
14156 (gt-gimple.h): Do not include.
14157 * gimple.h (gimple_register_canonical_type,
14158 print_gimple_types_stats, free_gimple_type_tables): Remove.
14159 * Makefile.in (GTFILES): Remove gimple.c.
14160
14161 2013-10-14 Travis Snoozy <quandary@remstate.com>
14162
14163 PR target/58716
14164 * config/msp430/msp430.c (msp430_option_override): Correct thinko
14165 scanning for msp430x targets.
14166
14167 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
14168
14169 PR bootstrap/58509
14170 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14171 (registers_ok_for_ldd_peep): Move around.
14172 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14173 * config/sparc/sparc.md (widening peepholes): Use it.
14174
14175 2013-10-14 Richard Biener <rguenther@suse.de>
14176
14177 PR middle-end/58712
14178 PR middle-end/55358
14179 * gimple.c (iterative_hash_canonical_type): Make sure to
14180 record the hash into the correct hashtable slot.
14181
14182 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
14183
14184 PR rtl-optimization/58662
14185 * combine.c (try_combine): Take into account death nodes on I2 when
14186 splitting a PARALLEL of two independent SETs. Fix dump message.
14187
14188 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
14189
14190 PR target/51244
14191 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14192 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14193 extra_objs.
14194 * config/sh/t-sh (sh_treg_combine.o): New entry.
14195 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14196 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14197 (register_sh_passes): New function. Register sh_treg_combine pass.
14198 (sh_option_override): Invoke it.
14199 (sh_canonicalize_comparison): Handle op0_preserve_value.
14200 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14201 opportunities. Canonicalize branch condition.
14202 (nott): Allow only if pseudos can be created for non-SH2A.
14203
14204 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
14205
14206 PR target/58690
14207 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14208 (ix86_expand_movmem): Replace copy_addr_to_reg with
14209 ix86_copy_addr_to_reg.
14210 (ix86_expand_setmem): Likewise.
14211
14212 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
14213
14214 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14215 provided by ix86_fp_compare_mode instead of CCFPUmode.
14216
14217 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
14218
14219 * config/aarch64/arm_neon.h
14220 (vtbx<1,3>_<psu>8): Fix register constriants.
14221
14222 2013-10-11 Jeff Law <law@redhat.com>
14223
14224 PR tree-optimization/58640
14225 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14226 threading paths that cross over two loop entry points.
14227
14228 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14229
14230 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14231 handle vector float as well.
14232 (*vsx_le_perm_load_v4si): Likewise.
14233 (*vsx_le_perm_store_v2di): Likewise.
14234 (*vsx_le_perm_store_v4si): Likewise.
14235
14236 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14237
14238 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14239 directly to circumvent subtract from splat{31} workaround.
14240 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14241 prototype.
14242 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14243 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14244 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14245 (altivec_vperm_<mode>): Convert to define_insn_and_split to
14246 separate big and little endian logic.
14247 (*altivec_vperm_<mode>_internal): New define_insn.
14248 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14249 separate big and little endian logic.
14250 (*altivec_vperm_<mode>_uns_internal): New define_insn.
14251 (vec_permv16qi): Add little endian logic.
14252
14253 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
14254
14255 * doc/extend.texi (returns_nonnull): Remove arguments.
14256
14257 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14259 Sergey Lega <sergey.s.lega@intel.com>
14260 Anna Tikhonova <anna.tikhonova@intel.com>
14261 Ilya Tocar <ilya.tocar@intel.com>
14262 Andrey Turetskiy <andrey.turetskiy@intel.com>
14263 Ilya Verbin <ilya.verbin@intel.com>
14264 Kirill Yukhin <kirill.yukhin@intel.com>
14265 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14266
14267 * config/i386/sse.md (VI48F_256_512): New.
14268 (avx2_permvar<mode>): Change to ...
14269 (<avx2_avx512f>_permvar<mode>): This.
14270
14271 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14272 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14273 Sergey Lega <sergey.s.lega@intel.com>
14274 Anna Tikhonova <anna.tikhonova@intel.com>
14275 Ilya Tocar <ilya.tocar@intel.com>
14276 Andrey Turetskiy <andrey.turetskiy@intel.com>
14277 Ilya Verbin <ilya.verbin@intel.com>
14278 Kirill Yukhin <kirill.yukhin@intel.com>
14279 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14280
14281 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14282 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14283 * config/i386/sse.md (VI4_AVX): New.
14284 (sf2simodelower): Ditto.
14285 (sse2_cvtps2dq): Change to ...
14286 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
14287
14288 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14290 Sergey Lega <sergey.s.lega@intel.com>
14291 Anna Tikhonova <anna.tikhonova@intel.com>
14292 Ilya Tocar <ilya.tocar@intel.com>
14293 Andrey Turetskiy <andrey.turetskiy@intel.com>
14294 Ilya Verbin <ilya.verbin@intel.com>
14295 Kirill Yukhin <kirill.yukhin@intel.com>
14296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14297
14298 * config/i386/sse.md (V_512): New.
14299 (VI_512): Ditto.
14300 (vcond<V_512:mode><VF_512:mode>): Ditto.
14301 (vcond<V_512:mode><VI_512:mode>): Ditto.
14302 (vcondu<V_512:mode><VI_512:mode>): Ditto.
14303
14304 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14305 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14306 Sergey Lega <sergey.s.lega@intel.com>
14307 Anna Tikhonova <anna.tikhonova@intel.com>
14308 Ilya Tocar <ilya.tocar@intel.com>
14309 Andrey Turetskiy <andrey.turetskiy@intel.com>
14310 Ilya Verbin <ilya.verbin@intel.com>
14311 Kirill Yukhin <kirill.yukhin@intel.com>
14312 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14313
14314 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14315 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14316 (FMAMODE): Ditto.
14317 (fma<mode>4): Removed condition.
14318 (fms<mode>4): Ditto.
14319 (fnma<mode>4): Ditto.
14320 (fnms<mode>4): Ditto.
14321 (fma4i_fmadd_<mode>): Ditto.
14322 (*fma_fmadd_<mode>): Ditto.
14323 (*fma_fmsub_<mode>): Ditto.
14324 (*fma_fnmadd_<mode>): Ditto.
14325 (*fma_fnmsub_<mode>): Ditto.
14326 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14327 (*fma_fmaddsub_<mode>): Ditto.
14328 (*fma_fmsubadd_<mode>): Ditto.
14329 (*fmai_fmadd_<mode>): Ditto.
14330 (*fmai_fmsub_<mode>): Ditto.
14331 (*fmai_fnmadd_<mode>): Ditto.
14332 (*fmai_fnmsub_<mode>): Ditto.
14333
14334 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14335 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14336 Sergey Lega <sergey.s.lega@intel.com>
14337 Anna Tikhonova <anna.tikhonova@intel.com>
14338 Ilya Tocar <ilya.tocar@intel.com>
14339 Andrey Turetskiy <andrey.turetskiy@intel.com>
14340 Ilya Verbin <ilya.verbin@intel.com>
14341 Kirill Yukhin <kirill.yukhin@intel.com>
14342 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14343
14344 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14345 (VI124_256): Changed to ...
14346 (VI124_256_48_512): This.
14347 (ssepackmode): Extended with wider modes.
14348 (<code><mode>3): Changed iterator.
14349 (*avx2_<code><mode>3): Ditto.
14350 (vec_pack_trunc_<mode>): Ditto.
14351
14352 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14353 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14354 Sergey Lega <sergey.s.lega@intel.com>
14355 Anna Tikhonova <anna.tikhonova@intel.com>
14356 Ilya Tocar <ilya.tocar@intel.com>
14357 Andrey Turetskiy <andrey.turetskiy@intel.com>
14358 Ilya Verbin <ilya.verbin@intel.com>
14359 Kirill Yukhin <kirill.yukhin@intel.com>
14360 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14361
14362 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14363 (VI8F_256_512): Ditto.
14364 (abs<mode>2): Changed iterator.
14365 (avx2_perm<mode>): Changed to ...
14366 (<avx2_avx512f>_perm<mode>): This.
14367 (avx2_perm<mode>_1): Changed to ...
14368 (<avx2_avx512f>_perm<mode>_1): This.
14369
14370 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14371 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14372 Sergey Lega <sergey.s.lega@intel.com>
14373 Anna Tikhonova <anna.tikhonova@intel.com>
14374 Ilya Tocar <ilya.tocar@intel.com>
14375 Andrey Turetskiy <andrey.turetskiy@intel.com>
14376 Ilya Verbin <ilya.verbin@intel.com>
14377 Kirill Yukhin <kirill.yukhin@intel.com>
14378 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14379
14380 * config/i386/sse.md (VI48_AVX512F): New.
14381 (VI48_AVX2): Changed to ...
14382 (VI48_AVX2_48_AVX512F): This.
14383 (avx2_ashrv<mode>): Changed to ...
14384 (<avx2_avx512f>_ashrv<mode>): This.
14385 (avx2_<shift_insn>v<mode>): Changed to ...
14386 (<avx2_avx512f>_<shift_insn>v<mode>): This.
14387
14388 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14389 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14390 Sergey Lega <sergey.s.lega@intel.com>
14391 Anna Tikhonova <anna.tikhonova@intel.com>
14392 Ilya Tocar <ilya.tocar@intel.com>
14393 Andrey Turetskiy <andrey.turetskiy@intel.com>
14394 Ilya Verbin <ilya.verbin@intel.com>
14395 Kirill Yukhin <kirill.yukhin@intel.com>
14396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14397
14398 * config/i386/sse.md (VI4_AVX512F): New.
14399 (VI8_AVX2_AVX512F): Ditto.
14400 (mul<mode>3): Extended with wider modes.
14401 (*<sse4_1_avx2>_mul<mode>3): Ditto.
14402 (mul<mode>3): Ditto.
14403 (vec_widen_<s>mult_odd_<mode>): Ditto.
14404
14405 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14406 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14407 Sergey Lega <sergey.s.lega@intel.com>
14408 Anna Tikhonova <anna.tikhonova@intel.com>
14409 Ilya Tocar <ilya.tocar@intel.com>
14410 Andrey Turetskiy <andrey.turetskiy@intel.com>
14411 Ilya Verbin <ilya.verbin@intel.com>
14412 Kirill Yukhin <kirill.yukhin@intel.com>
14413 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14414
14415 * config/i386/sse.md (VI2_AVX512F): New.
14416 (VI124_AVX512F): Ditto.
14417 (sseunpackmode): Extended with wider modes.
14418 (sseunpackfltmode): Ditto.
14419 (vec_unpacks_float_hi_<mode>): Ditto.
14420 (vec_unpacks_float_lo_<mode>): Ditto.
14421 (vec_unpacku_float_hi_<mode>): Ditto.
14422 (vec_unpacku_float_lo_<mode>): Ditto.
14423 (vec_unpacks_lo_<mode>): Ditto.
14424 (vec_unpacks_hi_<mode>): Ditto.
14425 (vec_unpacku_lo_<mode>): Ditto.
14426 (vec_unpacku_hi_<mode>): Ditto.
14427
14428 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14429 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14430 Sergey Lega <sergey.s.lega@intel.com>
14431 Anna Tikhonova <anna.tikhonova@intel.com>
14432 Ilya Tocar <ilya.tocar@intel.com>
14433 Andrey Turetskiy <andrey.turetskiy@intel.com>
14434 Ilya Verbin <ilya.verbin@intel.com>
14435 Kirill Yukhin <kirill.yukhin@intel.com>
14436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14437
14438 * config/i386/i386.md (multdiv): New.
14439 (multdiv_mnemonic): Ditto.
14440 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14441 (<sse>_vm<multdiv_mnemonic><mode>3): This.
14442 (<sse>_vmdiv<mode>3): Removed.
14443
14444 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14445 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14446 Sergey Lega <sergey.s.lega@intel.com>
14447 Anna Tikhonova <anna.tikhonova@intel.com>
14448 Ilya Tocar <ilya.tocar@intel.com>
14449 Andrey Turetskiy <andrey.turetskiy@intel.com>
14450 Ilya Verbin <ilya.verbin@intel.com>
14451 Kirill Yukhin <kirill.yukhin@intel.com>
14452 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14453
14454 * config/i386/sse.md (V): Extended with wider modes.
14455 (VF2): Ditto.
14456 (ssehalfvecmode): Ditto.
14457 (i128): Ditto.
14458 (ssepackfltmode): Ditto.
14459 (avx_vec_concat<mode>): Ditto.
14460 (V_256_512): New iterator.
14461 (VF2_512_256): Ditto.
14462 (si2dfmode): New attribute.
14463 (si2dfmodelower): Ditto.
14464 (sf2dfmode): Ditto.
14465 (concat_tg_mode): Ditto.
14466 (floatv4siv4df2): Changed to ...
14467 (float<si2dfmodelower><mode>2): This.
14468 (avx_cvtps2pd256): Changed to ...
14469 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14470 (vec_pack_trunc_v4df): Changed to ...
14471 (vec_pack_trunc_<mode>): This.
14472 (avx_vpermil<mode>): Changed to ...
14473 (<sse2_avx_avx512f>_vpermil<mode>): This.
14474 (<fixsuffix>fix_truncv8dfv8si2): New.
14475 (vec_pack_sfix_trunc_v8df): Ditto.
14476 (avx512f_rndscale<mode>): Ditto.
14477 (avx512f_roundpd512): Ditto.
14478 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14479
14480 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14481 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14482 Sergey Lega <sergey.s.lega@intel.com>
14483 Anna Tikhonova <anna.tikhonova@intel.com>
14484 Ilya Tocar <ilya.tocar@intel.com>
14485 Andrey Turetskiy <andrey.turetskiy@intel.com>
14486 Ilya Verbin <ilya.verbin@intel.com>
14487 Kirill Yukhin <kirill.yukhin@intel.com>
14488 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14489
14490 * config/i386/i386.md (any_fix): New iterator.
14491 (fixsuffix): New attribute.
14492 * config/i386/sse.md (VF1): Extened with wider modes.
14493 (VI): Ditto.
14494 (VI_AVX2): Ditto.
14495 (VI8): Ditto.
14496 (sseintvecmodelower): Ditto.
14497 (ssescalarmode): Ditto.
14498 (ssescalarnum): Ditto.
14499 (VF1_128_256): New.
14500 (ssexmmmode): Ditto.
14501 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14502 (<sse>_rcp<mode>2): Change iterator.
14503 (rsqrt<mode>2): Ditto.
14504 (<sse>_rsqrt<mode>2): Ditto.
14505 (avx2_vec_dup<mode>): Ditto.
14506 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14507 (round<mode>2_sfix): Ditto.
14508 (avx2_pbroadcast<mode>): Ditto.
14509 (*andnot<mode>3): Handle XI mode.
14510 (*<code><mode>3): Ditto.
14511 (AVXTOSSEMODE): Removed.
14512 (avx_vpermil<mode>): Changed to ...
14513 (<sse2_avx_avx512f>_vpermil<mode>): This.
14514
14515 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14517 Sergey Lega <sergey.s.lega@intel.com>
14518 Anna Tikhonova <anna.tikhonova@intel.com>
14519 Ilya Tocar <ilya.tocar@intel.com>
14520 Andrey Turetskiy <andrey.turetskiy@intel.com>
14521 Ilya Verbin <ilya.verbin@intel.com>
14522 Kirill Yukhin <kirill.yukhin@intel.com>
14523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14524
14525 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14526 (<sse>_comi): Ditto.
14527 (<sse>_ucomi): Ditto.
14528 (sse_cvtss2siq_2): Ditto.
14529 (sse2_cvtsd2si): Ditto.
14530 (sse2_cvtsd2siq): Ditto.
14531 (sse2_cvttsd2si): Ditto.
14532 (sse2_cvttsd2siq): Ditto.
14533 (<shift_insn><mode>3): Ditto.
14534 (sse2_cvtsi2sdq): Update constraint and prefix.
14535 (sse_cvtsi2ss): Update prefix.
14536 (sse_cvtsi2ssq): Ditto.
14537
14538 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14539
14540 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14541 ignore internal calls.
14542
14543 2013-10-11 Richard Biener <rguenther@suse.de>
14544
14545 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14546 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14547 TREE_OVERFLOW is set.
14548
14549 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14550
14551 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14552
14553 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14554 * gimple.h: Likewise.
14555
14556 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14557
14558 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14559 macros.
14560
14561 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14562
14563 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14564 * configure: Regenerate.
14565
14566 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14567
14568 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14569 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14570 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14571 similarly pp_right_paren.
14572 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14573 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14574 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14575 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14576 clauses.
14577 (omp_declare_simd_clauses_equal,
14578 omp_remove_redundant_declare_simd_attrs): New functions.
14579 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14580 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14581 * tree.h (OMP_LOOP_CHECK): Define.
14582 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14583 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14584 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14585 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14586 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14587 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14588 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14589 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14590 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14591 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14592 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14593 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14594 (omp_remove_redundant_declare_simd_attrs): New prototype.
14595 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14596 GIMPLE_OMP_TEAMS): New codes.
14597 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14598 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14599 fields.
14600 (target_nesting_level): New variable.
14601 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14602 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14603 for collapse > 1 static schedule unless ordered.
14604 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14605 (determine_parallel_type): Adjust get_ws_args_for caller.
14606 (install_var_field): Handle mask & 4 for double indirection.
14607 (scan_sharing_clauses): Ignore shared clause on teams construct.
14608 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14609 (create_omp_child_function): If inside target or declare target
14610 constructs, set "omp declare target" attribute on the child function.
14611 (find_combined_for): New function.
14612 (scan_omp_parallel): Handle combined loops.
14613 (scan_omp_target, scan_omp_teams): New functions.
14614 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14615 restrictions and set ctx->cancellable for cancellable constructs.
14616 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14617 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14618 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14619 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14620 (omp_clause_aligned_alignment): New function.
14621 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14622 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14623 on teams constructs. Handle user defined reductions and new
14624 OpenMP 4.0 clauses.
14625 (lower_reduction_clauses): Don't set placeholder to address of ref
14626 if it has already the right type.
14627 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14628 (expand_parallel_call): Use the new non-_start suffixed builtins,
14629 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14630 and GOMP_parallel_end after the call.
14631 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14632 (expand_omp_for_init_counts): Handle combined loops.
14633 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14634 loops.
14635 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14636 end of cancellable loops.
14637 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14638 Likewise. Handle collapse > 1 loops.
14639 (expand_omp_simd): Handle combined loops.
14640 (expand_omp_for): Add inner_stmt argument, adjust callers of
14641 expand_omp_for* functions, use expand_omp_for_static*chunk even
14642 for collapse > 1 unless ordered.
14643 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14644 of cancellable sections.
14645 (expand_omp_single): Remove need_barrier variable, just rely on
14646 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14647 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14648 (expand_omp_atomic_load, expand_omp_atomic_store,
14649 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14650 (expand_omp_target): New function.
14651 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14652 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14653 (build_omp_regions_1): Immediately close region for
14654 GF_OMP_TARGET_KIND_UPDATE.
14655 (maybe_add_implicit_barrier_cancel): New function.
14656 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14657 cancellation.
14658 (lower_omp_single): Likewise. Add clobber after the barrier.
14659 (lower_omp_taskgroup): New function.
14660 (lower_omp_for): Handle combined loops. Adjust
14661 lower_rec_input_clauses caller. Handle cancellation.
14662 (lower_depend_clauses): New function.
14663 (lower_omp_taskreg): Lower depend clauses. Adjust
14664 lower_rec_input_clauses caller. Add clobber after the call. Handle
14665 cancellation.
14666 (lower_omp_target, lower_omp_teams): New functions.
14667 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14668 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14669 and GOMP_cancellation_point calls.
14670 (lower_omp): Fold stmts inside of target region.
14671 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14672 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14673 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14674 (BT_FN_VOID_OMPFN_PTR_UINT,
14675 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14676 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14677 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14678 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14679 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14680 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14681 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14682 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14683 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14684 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14685 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14686 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14687 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14688 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14689 BUILT_IN_GOMP_PARALLEL_END.
14690 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14691 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14692 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14693 GF_OMP_FOR_KIND_DISTRIBUTE.
14694 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14695 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14696 (dump_gimple_omp_return): Print lhs if it has any.
14697 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14698 gimple_omp_atomic_seq_cst_p.
14699 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14700 and GIMPLE_OMP_TEAMS.
14701 * langhooks.c (lhd_omp_mappable_type): New function.
14702 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14703 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14704 hook.
14705 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14706 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14707 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14708 (struct gimplify_omp_ctx): Add combined_loop field.
14709 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14710 on stmts inside of target region.
14711 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14712 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14713 ORT_TARGET and ORT_TARGET_DATA.
14714 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14715 Handle GOVD_MAP.
14716 (omp_notice_threadprivate_variable): Complain about threadprivate
14717 variables in target region.
14718 (omp_notice_variable): Complain about vars with non-mappable type
14719 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14720 (omp_check_private): Ignore ORT_TARGET* regions.
14721 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14722 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14723 (find_combined_omp_for): New function.
14724 (gimplify_omp_for): Handle gimplification of combined loops.
14725 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14726 OMP_TEAMS.
14727 (gimplify_omp_target_update): New function.
14728 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14729 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14730 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14731 (gimplify_body): If fndecl has "omp declare target" attribute, add
14732 implicit ORT_TARGET context around it.
14733 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14734 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14735 * tree-nested.c (convert_nonlocal_reference_stmt,
14736 convert_local_reference_stmt, convert_gimple_call): Handle
14737 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14738 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14739 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14740 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14741 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14742 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14743 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14744 BUILT_IN_GOMP_LOOP_END_CANCEL,
14745 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14746 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14747 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14748 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14749 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14750 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14751 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14752 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14753 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14754 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14755 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14756 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14757 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14758 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14759 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14760 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14761 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14762 gimple_build_omp_teams): New functions.
14763 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14764 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14765 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14766 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14767 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14768 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14769 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14770 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14771 GF_OMP_ATOMIC_SEQ_CST): New.
14772 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14773 gimple_build_omp_teams): New prototypes.
14774 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14775 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14776 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14777 GIMPLE_OMP_SINGLE as end of range.
14778 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14779 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14780 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14781 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14782 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14783 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14784 gimple_omp_target_kind, gimple_omp_target_set_kind,
14785 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14786 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14787 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14788 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14789 gimple_omp_teams_set_clauses): New inlines.
14790 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14791 and GIMPLE_OMP_TASKGROUP.
14792 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14793 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14794 enum omp_clause_proc_bind_kind): New.
14795 (union omp_clause_subcode): Add depend_kind, map_kind and
14796 proc_bind_kind fields.
14797 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14798 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14799 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14800 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14801 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14802
14803 2013-10-10 Teresa Johnson <tejohnson@google.com>
14804
14805 * predict.c (tree_estimate_probability): Add new parameter
14806 for estimate_bb_frequencies.
14807 (estimate_bb_frequencies): Add new parameter to force estimation.
14808 (rebuild_frequencies): When max frequency in function is small,
14809 recompute counts from frequencies.
14810 * predict.h (estimate_bb_frequencies): New parameter.
14811
14812 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14813
14814 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14815 optimizations are disabled.
14816
14817 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14818
14819 * coverage.c (coverage_finish): Fix leak of da_file_name.
14820
14821 2013-10-10 Jan Hubicka <jh@suse.cz>
14822
14823 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14824 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14825 Bobcat and generic.
14826
14827 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14828
14829 PR middle-end/58670
14830 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14831 if any labels are in FALLTHRU_BB, use a special label emitted
14832 immediately after the asm goto insn rather than label_rtx
14833 of the LABEL_DECL.
14834 (expand_asm_stmt): Adjust caller.
14835 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14836 edge if the last insn in predecessor is a jump with single successor,
14837 but it isn't simplejump_p.
14838
14839 2013-10-10 Richard Biener <rguenther@suse.de>
14840
14841 PR tree-optimization/58656
14842 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14843
14844 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14845
14846 * gimplify.c: Include expr.h and tm_p.h for targets with special
14847 va-arg padding requirements.
14848
14849 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14850
14851 * tree-flow.h: Move some prototypes to gimple.h.
14852 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14853 * gimple.h: Relocate some prototypes from tree-flow.h
14854 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14855 Move to gimplify.c.
14856 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14857 (build_va_arg_indirect_ref): Relocate and make static.
14858 (std_gimplify_va_arg_expr): Relocate here.
14859 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14860 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14861
14862 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14863
14864 * doc/md.texi: Document the mnemonic attribute.
14865
14866 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14867
14868 PR target/57377
14869 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14870 (set_attr_alternative x ...) when searching for user defined
14871 mnemonic attribute.
14872
14873 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14874
14875 * config/alpha/alpha.c: Add gimple-ssa.h to include list.
14876
14877 2013-10-09 Easwaran Raman <eraman@google.com>
14878
14879 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14880 * cfgexpand.c (defer_stack_allocation): ...use here
14881 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14882
14883 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14884
14885 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14886 (operand_equal_for_value_replacement): New function, extracted from
14887 value_replacement and enhanced to catch more cases.
14888 (value_replacement): Use operand_equal_for_value_replacement.
14889
14890 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14891
14892 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14893 get_max_loop_iterations.
14894
14895 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14896
14897 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14898 Place comment above function.
14899
14900 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14901
14902 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14903 are not related to tree-cfg.c.
14904 * tree-ssa-address.h: New file. Relocate prototypes.
14905 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14906 (addr_for_mem_ref): New. Combine call to get_address_description and
14907 return addr_for_mem_ref.
14908 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14909 * tree-ssa-live.h: Adjust prototypes.
14910 * passes.c: Include tree-ssa-live.h.
14911 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14912 * graphite.c (graphite_transform_loops): Make static.
14913 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14914 make_pass_graphite, pass_data_graphite_transforms,
14915 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14916 * ipa-pure-const.c (warn_function_noreturn): Make static.
14917 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14918 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14919 Relocate from tree-cfg.c
14920 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14921 static.
14922 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14923 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14924 Move to ipa-pure-const.c.
14925 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14926 Relocate from tree-optimize.c.
14927 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14928 make_pass_fixup_cfg): Move to tree-cfg.c.
14929 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14930 Relocate some prototypes.
14931 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14932 * tree-dump.c (dump_function_to_file): Remove prototype.
14933 Add tree-flow.h to the include file.
14934 * tree-dump.h: Remove prototype.
14935 * tree-parloops.h: New File. Add prototypes.
14936 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14937 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14938 from tree-ssa-loop.c.
14939 * tree-predcom.c (run_tree_predictive_commoning,
14940 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14941 Relocate here from tree-ssa-loop.c.
14942 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14943 ssa_name_values.release ().
14944 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14945 (ssa_name_values): Relocate from tree-flow.h.
14946 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14947 * tree-ssa-loop.c (run_tree_predictive_commoning,
14948 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14949 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14950 make_pass_graphite, pass_data_graphite_transforms,
14951 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14952 tree_parallelize_loops, pass_data_parallelize_loops,
14953 make_pass_parallelize_loops): Move to other files.
14954 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14955 moved here.
14956 * tree.h: Remove prototypes from tree-address.c.
14957
14958 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14959
14960 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14961 (struct int_tree_map): Move to tree-hasher.h
14962 (SCALE, LABEL, PERCENT): Move to gimple.h
14963 * tree-flow-inline.h: Delete. Move functions to other files.
14964 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14965 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14966 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14967 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14968 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14969 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14970 * tree-hasher.h: Don't include tree-flow.h.
14971 (struct int_tree_map): Relocate from tree-flow.h.
14972 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14973 tree-flow-inline.h and make static.
14974 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14975 tree-flow-inline.h.
14976 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14977 tree-flow-inline.h and make static.
14978 * tree.h (is_global_var, may_be_aliased): Relocate from
14979 tree-flow-inline.h.
14980 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14981 * value-prof.c: No longer include tree-flow-inline.h.
14982 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14983
14984 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14985
14986 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14987 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14988 (enum move_pos): Move to tree-ssa-loop-im.h
14989 * cfgloop.h: Move some prototypes.
14990 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14991 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14992 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14993 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14994 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14995 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14996 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14997 (enum move_pos): Relocate here.
14998 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14999 tree-ssa-loop.c.
15000 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
15001 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
15002 make_pass_lim): Relocate here from tree-ssa-loop.c.
15003 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
15004 tree-ssa-loop.c.
15005 (loop_edge_to_cancel, unloop_loops): Make static.
15006 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15007 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
15008 (tree_complete_unroll, gate_tree_complete_unroll,
15009 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
15010 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15011 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
15012 * tree-ssa-loop-ivopts.c: Remove local prototypes.
15013 (stmt_invariant_in_loop_p): Remove unused function.
15014 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
15015 * tree-ssa-loop-manip.h: New file. Add prototypes.
15016 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
15017 (gcov_type_to_double_int): Move to cfgloop.h.
15018 (double_int_cmp, bound_index,
15019 estimate_numbers_of_iterations_loop): Make static.
15020 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
15021 (max_loop_iterations): Factor out get_max_loop_iterations.
15022 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
15023 cfgloop.c.
15024 * tree-ssa-loop-niter.h: New file. Add prototypes.
15025 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
15026 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
15027 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
15028 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15029 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15030 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15031 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15032 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15033 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15034 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15035 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15036 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15037 pass_data_complete_unroll, make_pass_complete_unroll,
15038 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15039 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15040 tree-ssa-loop-ivcanon.c.
15041 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15042 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15043 tree-ssa-loop-prefetch.c.
15044 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15045 tree-ssa-loop-im.c.
15046 (get_lsm_tmp_name): Relocate and add suffix parameter.
15047 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15048 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15049 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15050 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15051 (get_estimated_loop_iterations): Factor out accessor from
15052 estimated_loop_iterations in tree-ssa-loop-niter.c.
15053 (get_max_loop_iterations): Factor out accessor from
15054 _max_loop_iterations in tree-ssa-niter.c.
15055 * loop-unroll.c (decide_unroll_constant_iterations,
15056 decide_unroll_runtime_iterations, decide_peel_simple,
15057 decide_unroll_stupid): Use new get_* accessors.
15058
15059 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
15060
15061 PR tree-optimization/20318
15062 * doc/extend.texi (returns_nonnull): New function attribute.
15063 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15064 attribute.
15065 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15066 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15067
15068 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
15069
15070 PR middle-end/58570
15071 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15072 false if both components are bitfields.
15073
15074 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15075
15076 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15077 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15078 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15079 * config/aarch64/aarch64.h
15080 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15081 * config/aarch64/aarch64-simd-builtins.def
15082 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15083
15084 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15085
15086 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15087
15088 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15089
15090 * config/aarch64/arm_neon.h (vdiv_f64): Added.
15091
15092 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15093
15094 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15095 (vneg_f64): New intrinsic.
15096 (vneg_s8): Asm replaced with C.
15097 (vneg_s16): Likewise.
15098 (vneg_s32): Likewise.
15099 (vneg_s64): New intrinsic.
15100 (vnegq_f32): Asm replaced with C.
15101 (vnegq_f64): Likewise.
15102 (vnegq_s8): Likewise.
15103 (vnegq_s16): Likewise.
15104 (vnegq_s32): Likewise.
15105 (vnegq_s64): Likewise.
15106
15107 2013-10-09 Renlin Li <Renlin.Li@arm.com>
15108
15109 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15110
15111 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15112
15113 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15114 packed stack special handling.
15115 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15116 back to fixed stack slots for FPRs saved due to stdarg.
15117
15118 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15119
15120 * config/s390/s390.c (s390_frame_info): Restructure function.
15121
15122 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15123
15124 * config/s390/s390.c (struct s390_frame_layout): New field
15125 gpr_save_slots.
15126 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15127 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15128 regs_ever_clobbered to char*.
15129 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15130 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
15131 (s390_register_info): Enable FPR save slots. Move/Copy some
15132 functionality into ...
15133 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15134 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15135 function.
15136 (s390_frame_info): Do gpr slot allocation here now. stdarg does
15137 not imply a stack frame.
15138 (s390_init_frame_layout): Remove variable clobbered_regs.
15139 (s390_update_register_info): Remove function.
15140 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15141 cannot be used for register renaming.
15142 (s390_hard_regno_scratch_ok): New function.
15143 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15144 (s390_initial_elimination_offset): Change offset calculation of
15145 the return address pointer.
15146 (save_gprs): Deal with only r6 being saved from the call-saved regs.
15147 (restore_gprs): Set frame related flag.
15148 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15149 (s390_emit_prologue): Call s390_register_info instead of
15150 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
15151 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15152 (s390_optimize_prologue): Call s390_optimize_register_info.
15153 Try to remove also FPR slot save/restore INSNs. Remove frame
15154 related flags from restore INSNs.
15155
15156 2013-10-08 DJ Delorie <dj@redhat.com>
15157
15158 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15159 (movhi): Likewise.
15160
15161 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15162 avoid conflict with the MI use of %c.
15163 * config/rl78/rl78-real.md: change %c to %C throughout.
15164 * config/rl78/rl78-virt.md: Likewise.
15165
15166 2013-10-08 Jan Hubicka <jh@suse.cz>
15167
15168 * config/i386/i386.c (ix86_option_override_internal): Switch
15169 to SSE math for -ffast-math when target ISA supports SSE2.
15170
15171 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
15172
15173 * tree-flow.h: Remove some prototypes.
15174 * tree.h: Remove some protypes, add a couple.
15175 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15176 using_eh_for_cleanups_p): Add interface routines for front ends.
15177 * tree-eh.h: New file. Add protoptyes.
15178 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15179 (add_stmt_to_eh_lp_fn): Make static.
15180 (lower_try_finally): Use new using_eh_for_cleanups_p.
15181 * emit-rtl.c: Include tree-eh.h.
15182 * gimple.h: Include tree-eh.h.
15183
15184 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
15185
15186 PR tree-optimization/58480
15187 * tree-vrp.c (infer_nonnull_range): New function.
15188 (infer_value_range): Call infer_nonnull_range.
15189
15190 2013-10-08 Dehao Chen <dehao@google.com>
15191
15192 PR tree-optimization/58619
15193 * tree-inline.c (copy_phis_for_bb): Combine location data
15194 only if non-null.
15195
15196 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15197
15198 PR target/58423
15199 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15200 RTX_FRAME_RELATED_P on INSN.
15201
15202 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15203
15204 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15205 (altivec_expand_vec_perm_const): Call it.
15206
15207 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15208
15209 * config/rs6000/vector.md (mov<mode>): Emit permuted move
15210 sequences for LE VSX loads and stores at expand time.
15211 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15212 prototype.
15213 * config/rs6000/rs6000.c (rs6000_const_vec): New.
15214 (rs6000_gen_le_vsx_permute): New.
15215 (rs6000_gen_le_vsx_load): New.
15216 (rs6000_gen_le_vsx_store): New.
15217 (rs6000_gen_le_vsx_move): New.
15218 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15219 (*vsx_le_perm_load_v4si): New.
15220 (*vsx_le_perm_load_v8hi): New.
15221 (*vsx_le_perm_load_v16qi): New.
15222 (*vsx_le_perm_store_v2di): New.
15223 (*vsx_le_perm_store_v4si): New.
15224 (*vsx_le_perm_store_v8hi): New.
15225 (*vsx_le_perm_store_v16qi): New.
15226 (*vsx_xxpermdi2_le_<mode>): New.
15227 (*vsx_xxpermdi4_le_<mode>): New.
15228 (*vsx_xxpermdi8_le_V8HI): New.
15229 (*vsx_xxpermdi16_le_V16QI): New.
15230 (*vsx_lxvd2x2_le_<mode>): New.
15231 (*vsx_lxvd2x4_le_<mode>): New.
15232 (*vsx_lxvd2x8_le_V8HI): New.
15233 (*vsx_lxvd2x16_le_V16QI): New.
15234 (*vsx_stxvd2x2_le_<mode>): New.
15235 (*vsx_stxvd2x4_le_<mode>): New.
15236 (*vsx_stxvd2x8_le_V8HI): New.
15237 (*vsx_stxvd2x16_le_V16QI): New.
15238
15239 2013-10-07 Renlin Li <Renlin.Li@arm.com>
15240
15241 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15242
15243 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15244
15245 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15246 loop to work also for 31bit ABI.
15247 Save the stack pointer for frame_size > 0.
15248
15249 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15250
15251 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15252 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15253 constraint letters from expanders.
15254 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15255 retry count to general_operand.
15256 ("tabort"): Give operand 0 a mode.
15257 ("tabort_1"): Add mode and constraint letter for operand 0.
15258 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15259
15260 2013-10-04 Jeff Law <law@redhat.com>
15261
15262 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15263
15264 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15265 out of ...
15266 (thread_across_edge): Here. Call it.
15267
15268 2013-10-04 Cary Coutant <ccoutant@google.com>
15269
15270 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15271 discarding a location list expression (or a piece of one).
15272
15273 2013-10-03 Jan Hubicka <jh@suse.cz>
15274
15275 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15276 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
15277 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15278
15279 2013-10-03 Jan Hubicka <jh@suse.cz>
15280
15281 * config/i386/i386.c (ix86_option_override_internal): Do not enable
15282 accumulate-outgoing-args when producing unwind info.
15283
15284 2013-10-03 Wei Mi <wmi@google.com>
15285
15286 * lra-constraints.c (insert_move_for_subreg): New function
15287 extracted from simplify_operand_subreg.
15288 (simplify_operand_subreg): Add reload for paradoxical subreg.
15289
15290 2013-10-03 Rong Xu <xur@google.com>
15291
15292 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15293 the candidate of builtin_expect such that we should fix the
15294 size/time estimation.
15295 (estimate_function_body_sizes): Do the acutally size/time fix-up
15296 for builtin_expect.
15297
15298 2013-10-03 Rong Xu <xur@google.com>
15299
15300 * predict.c (tree_predict_by_opcode): Get the probability
15301 for builtin_expect from param builtin_expect_probability.
15302 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15303 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15304 * doc/invoke.texi: Add documentation for builtin-expect-probability.
15305
15306 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
15307
15308 PR c++/19476
15309 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15310 * calls.c (alloca_call_p): Use get_callee_fndecl.
15311 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15312 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15313 Likewise.
15314 (vrp_visit_stmt): Remove duplicated code.
15315
15316 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15317
15318 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15319 ceildf2, btruncdf2, instead of vsx_* name.
15320
15321 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15322 iterators to only do V2DF and V4SF here. Move the DF code to
15323 rs6000.md where it is combined with SF mode. Replace <VSv> with
15324 just 'v' since only vector operations are handled with these insns
15325 after moving the DF support to rs6000.md.
15326 (vsx_sub<mode>3): Likewise.
15327 (vsx_mul<mode>3): Likewise.
15328 (vsx_div<mode>3): Likewise.
15329 (vsx_fre<mode>2): Likewise.
15330 (vsx_neg<mode>2): Likewise.
15331 (vsx_abs<mode>2): Likewise.
15332 (vsx_nabs<mode>2): Likewise.
15333 (vsx_smax<mode>3): Likewise.
15334 (vsx_smin<mode>3): Likewise.
15335 (vsx_sqrt<mode>2): Likewise.
15336 (vsx_rsqrte<mode>2): Likewise.
15337 (vsx_fms<mode>4): Likewise.
15338 (vsx_nfma<mode>4): Likewise.
15339 (vsx_copysign<mode>3): Likewise.
15340 (vsx_btrunc<mode>2): Likewise.
15341 (vsx_floor<mode>2): Likewise.
15342 (vsx_ceil<mode>2): Likewise.
15343 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15344 (vsx_sminsf3): Likewise.
15345 (vsx_fmadf4): Likewise.
15346 (vsx_fmsdf4): Likewise.
15347 (vsx_nfmadf4): Likewise.
15348 (vsx_nfmsdf4): Likewise.
15349 (vsx_cmpdf_internal1): Likewise.
15350
15351 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15352 simpler to select whether a target has SPE or traditional floating
15353 point support in iterators.
15354 (TARGET_DF_SPE): Likewise.
15355 (TARGET_SF_FPR): Likewise.
15356 (TARGET_DF_FPR): Likewise.
15357 (TARGET_SF_INSN): Macros to say whether floating point support
15358 exists for a given operation for expanders.
15359 (TARGET_DF_INSN): Likewise.
15360
15361 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15362 combining of SF/DF mode operations, using both traditional and VSX
15363 registers.
15364 (Fvsx): Likewise.
15365 (Ff): Likewise.
15366 (Fv): Likewise.
15367 (Fs): Likewise.
15368 (Ffre): Likewise.
15369 (FFRE): Likewise.
15370 (abs<mode>2): Combine SF/DF modes using traditional floating point
15371 instructions. Add support for using the upper DF registers with
15372 VSX support, and SF registers with power8-vector support. Update
15373 expanders for operations supported by both the SPE and traditional
15374 floating point units.
15375 (abs<mode>2_fpr): Likewise.
15376 (nabs<mode>2): Likewise.
15377 (nabs<mode>2_fpr): Likewise.
15378 (neg<mode>2): Likewise.
15379 (neg<mode>2_fpr): Likewise.
15380 (add<mode>3): Likewise.
15381 (add<mode>3_fpr): Likewise.
15382 (sub<mode>3): Likewise.
15383 (sub<mode>3_fpr): Likewise.
15384 (mul<mode>3): Likewise.
15385 (mul<mode>3_fpr): Likewise.
15386 (div<mode>3): Likewise.
15387 (div<mode>3_fpr): Likewise.
15388 (sqrt<mode>3): Likewise.
15389 (sqrt<mode>3_fpr): Likewise.
15390 (fre<Fs>): Likewise.
15391 (rsqrt<mode>2): Likewise.
15392 (cmp<mode>_fpr): Likewise.
15393 (smax<mode>3): Likewise.
15394 (smin<mode>3): Likewise.
15395 (smax<mode>3_vsx): Likewise.
15396 (smin<mode>3_vsx): Likewise.
15397 (negsf2): Delete SF operations that are merged with DF.
15398 (abssf2): Likewise.
15399 (addsf3): Likewise.
15400 (subsf3): Likewise.
15401 (mulsf3): Likewise.
15402 (divsf3): Likewise.
15403 (fres): Likewise.
15404 (fmasf4_fpr): Likewise.
15405 (fmssf4_fpr): Likewise.
15406 (nfmasf4_fpr): Likewise.
15407 (nfmssf4_fpr): Likewise.
15408 (sqrtsf2): Likewise.
15409 (rsqrtsf_internal1): Likewise.
15410 (smaxsf3): Likewise.
15411 (sminsf3): Likewise.
15412 (cmpsf_internal1): Likewise.
15413 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15414 (negdf2): Delete DF operations that are merged with SF.
15415 (absdf2): Likewise.
15416 (nabsdf2): Likewise.
15417 (adddf3): Likewise.
15418 (subdf3): Likewise.
15419 (muldf3): Likewise.
15420 (divdf3): Likewise.
15421 (fred): Likewise.
15422 (rsqrtdf_internal1): Likewise.
15423 (fmadf4_fpr): Likewise.
15424 (fmsdf4_fpr): Likewise.
15425 (nfmadf4_fpr): Likewise.
15426 (nfmsdf4_fpr): Likewise.
15427 (sqrtdf2): Likewise.
15428 (smaxdf3): Likewise.
15429 (smindf3): Likewise.
15430 (cmpdf_internal1): Likewise.
15431 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15432 (btrunc<mode>2): Delete separate expander, and combine with the
15433 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
15434 (btrunc<mode>2_fpr): Likewise.
15435 (ceil<mode>2): Likewise.
15436 (ceil<mode>2_fpr): Likewise.
15437 (floor<mode>2): Likewise.
15438 (floor<mode>2_fpr): Likewise.
15439 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15440 Add support for using the upper registers with VSX and
15441 power8-vector. Move insns to be closer to the define_expands. On
15442 VSX systems, prefer the traditional form of FMA over the VSX
15443 version, since the traditional form allows the target not to
15444 overlap with the inputs.
15445 (fms<mode>4_fpr): Likewise.
15446 (nfma<mode>4_fpr): Likewise.
15447 (nfms<mode>4_fpr): Likewise.
15448
15449 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15450 Richard Earnshaw <richard.earnshaw@arm.com>
15451
15452 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15453 (struct mult_cost_table): Likewise.
15454 (struct mem_cost_table): Likewise.
15455 (struct fp_cost_table): Likewise.
15456 (struct vector_cost_table): Likewise.
15457 (cpu_cost_table): Likewise.
15458 * config/arm/arm.opt (mold-rts-costs): New option.
15459 (mnew-generic-costs): Likewise.
15460 * config/arm/arm.c (generic_extra_costs): New table.
15461 (cortexa15_extra_costs): Likewise.
15462 (arm_slowmul_tune): Use NULL as new costs.
15463 (arm_fastmul_tune): Likewise.
15464 (arm_strongarm_tune): Likewise.
15465 (arm_xscale_tune): Likewise.
15466 (arm_9e_tune): Likewise.
15467 (arm_v6t2_tune): Likewise.
15468 (arm_cortex_a5_tune): Likewise.
15469 (arm_cortex_a9_tune): Likewise.
15470 (arm_v6m_tune): Likewise.
15471 (arm_fa726te_tune): Likewise.
15472 (arm_cortex_a15_tune): Use cortex15_extra_costs.
15473 (arm_cortex_tune): Use generict_extra_costs.
15474 (shifter_op_p): New function.
15475 (arm_unspec_cost): Likewise.
15476 (LIBCALL_COST): Define.
15477 (arm_new_rtx_costs): New function.
15478 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15479 table is available. Use old costs otherwise unless mnew-generic-costs
15480 is specified.
15481 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15482 (cpu_cost_table): Declare.
15483
15484 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15485
15486 PR target/58460
15487 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15488 (*subs_mul_imm_<mode>)
15489 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15490 (*sub_<shift>_<mode>)
15491 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15492 Remove k constraint.
15493
15494 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15495
15496 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15497 code.
15498 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15499
15500 2013-10-02 Teresa Johnson <tejohnson@google.com>
15501
15502 * predict.c (probably_never_executed): New function.
15503 (probably_never_executed_bb_p): Invoke probably_never_executed.
15504 (probably_never_executed_edge_p): Ditto.
15505 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15506 Treat profile insanities conservatively.
15507
15508 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15509
15510 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15511
15512 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15513
15514 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15515 use it. Use smaller increase for scratch. Don't increase reject
15516 for early clobber scratch.
15517 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15518 setting eliminated regs except setting fp from hfp.
15519 (lra_eliminate): Check lra_insn_recog_data on NULL.
15520
15521 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15522
15523 PR target/58587
15524 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15525 setting -mvsx-timode by default until the underlying problem is fixed.
15526 (RS6000_CPU, power7 defaults): Likewise.
15527
15528 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15529
15530 * config/x-linux (host-linux.o): Remove header dependencies.
15531 Use $(COMPILE) and $(POSTCOMPILE).
15532 * config/t-linux-android (linux-android.o): Ditto.
15533
15534 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15535
15536 * Makefile.in (expmed.o-warn): Remove.
15537
15538 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15539
15540 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15541 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15542
15543 2013-10-02 Teresa Johnson <tejohnson@google.com>
15544
15545 * dojump.c (do_jump_1): Divide probability between
15546 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15547
15548 2013-10-02 Tom Tromey <tromey@redhat.com>
15549
15550 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15551
15552 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15553
15554 * tree-flow.h: Remove some prototypes.
15555 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15556 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15557 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15558 mark_virtual_phi_result_for_renaming): Relocate here.
15559 * tree-into-ssa.h: Add prototypes.
15560 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15561 single_pred_before_succ_order.
15562 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15563 (nonfreeing_call_p) Move to gimple.c.
15564 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15565 tree-ssa-phiopt.c.
15566 * basic-block.h (single_pred_before_succ_order): Add prototype.
15567 * gimple.c (nonfreeing_call_p): Relocate here.
15568 * gimple.h: Add prototype.
15569 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15570 * tree-ssa-dom.h: New file. Relocate prototypes here.
15571 * tree-ssa.h: Include tree-ssa-dom.h.
15572
15573 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15574
15575 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15576 Use $(COMPILE) and $(POSTCOMPILE).
15577
15578 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15579
15580 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15581
15582 * tree-flow.h: Remove some prototypes.
15583 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15584 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15585 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15586 propagate_tree_value*): Move from here to...
15587 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15588 propagate_tree_value*): Relocate here.
15589 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15590 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15591 * gimple-fold.c: Remove gimple-fold.h from include list.
15592 * tree-vrp.c: Remove gimple-fold.h from include list.
15593 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15594 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15595 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15596 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15597 * sese.c: Add tree-ssa-propagate.h to include list.
15598
15599 2013-10-02 Richard Biener <rguenther@suse.de>
15600
15601 * tree-loop-distribution.c: Include tree-vectorizer.h for
15602 find_loop_location.
15603 (enum partition_kind): Remove PKIND_REDUCTION.
15604 (struct partition_s): Remove has_writes member, add reduction_p member.
15605 (partition_alloc): Adjust.
15606 (partition_builtin_p): Likewise.
15607 (partition_has_writes): Remove.
15608 (partition_reduction_p): New function.
15609 (partition_merge_into): Likewise.
15610 (generate_code_for_partition): Commonize builtin partition
15611 handling tail.
15612 (rdg_cannot_recompute_vertex_p): Remove.
15613 (already_processed_vertex_p): Likewise.
15614 (rdg_flag_vertex): Do not set has_writes.
15615 (classify_partition): Adjust.
15616 (rdg_build_partitions): Do not set has_writes, treat all
15617 partitions as useful.
15618 (distribute_loop): Record number of library calls generated. Adjust.
15619 (tree_loop_distribution): Report number of loops and library
15620 calls generated as opt-info.
15621
15622 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15623
15624 * tree-flow.h: Include new .h files. Move prototypes.
15625 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15626 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15627 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15628 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15629 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15630 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15631 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15632 * tree.h (get_ref_base_and_extent): Move prototype out.
15633 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15634 tree-dfa.h.
15635 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15636 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15637 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15638 * tree-scalar-evolution.c: Include tree.h.
15639 * sese.c: Include tree.h.
15640 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15641 * dwarf2out.c: Include tree-dfa.h.
15642 * tree-chrec.c: Include tree.h.
15643 * tree-data-ref.c: Include tree.h.
15644
15645 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15646
15647 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15648 Fix whitespace.
15649
15650 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15651
15652 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15653 Use $(COMPILE) and $(POSTCOMPILE).
15654 (sol2-cxx.o): Likewise.
15655 (sol2-stubs.o): Likewise.
15656 (sol2.o): Likewise.
15657 * config/x-solaris (host-solaris.o): Likewise.
15658
15659 * config/sparc/t-sparc (sparc.o): Remove.
15660 (sparc-c.o): Remove header dependencies.
15661 Use $(COMPILE) and $(POSTCOMPILE).
15662 * config/sparc/x-sparc: Likewise.
15663
15664 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15665
15666 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15667 * config/arc/arc700.md: Likewise.
15668 * config/arc/arc-modes.def: Likewise.
15669 * config/arc/arc-simd.h: Likewise.
15670 * config/arc/t-arc-uClibc: Likewise.
15671 * config/arc/t-arc-newlib: Likewise.
15672
15673 2013-10-02 Renlin Li <renlin.li@arm.com>
15674
15675 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15676 plus_constant.
15677 (aarch64_expand_epilogue): Likewise.
15678
15679 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15680 Yufeng Zhang <yufeng.zhang@arm.com>
15681
15682 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15683 declaration.
15684 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15685 'base_in' represent a conversion and legal_cast_p_1 holds; set
15686 'base_in' with the returned value from get_unwidened.
15687
15688 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15689
15690 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15691 plus_constant is not used.
15692
15693 2013-10-01 Wei Mi <wmi@google.com>
15694
15695 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15696 * config/i386/i386.md: Add define_peephole2 to
15697 break partial reg stall for cvtss2sd/cvtsd2ss.
15698
15699 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15700
15701 * config/arc/arc.c (pass_arc_ifcvt::clone):
15702 Update for ctxt_ -> m_ctxt change.
15703
15704 2013-10-01 Jeff Law <law@redhat.com>
15705
15706 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15707 outgoing_edge and intermediate_edge fields. Instead store the path.
15708 (redirection_data::hash): Hash on the last edge's destination index.
15709 (redirection_data::equal): Check the entire thread path.
15710 (lookup_redirectio_data): Corresponding changes.
15711 (create_edge_and_update_destination_phis): Likewise.
15712 (thread_single_edge): Likewise.
15713
15714 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15715 Diego Novillo <dnovillo@google.com>
15716
15717 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15718 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15719 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15720 versions of these patterns.
15721
15722 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15723 (__builtin_arc_aligned): Likewise.
15724
15725 * config/arc/arc.md: Expand adc_0 comment stating the intended
15726 purpose and why it isn't ready.
15727 Replace commented out call_value_via_label_mixed with a
15728 plain comment about bl_s.
15729
15730 * config/arc/arc.c (stdio.h): Don't include directly.
15731 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15732 Remove if (1) condition.
15733 (arc_encode_section_info): Fix comment.
15734
15735 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15736
15737 * config/arc/arc.c (arc_conditional_register_usage):
15738 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15739 Also set reg_alloc_order for DMA config regs.
15740
15741 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15742 Jeremy Bennett <jeremy.bennett@embecosm.com>
15743
15744 * doc/install.texi (--with-cpu): Mention ARC.
15745 (arc-*-elf32): New paragraph.
15746 (arc-linux-uclibc): Likewise.
15747 * doc/md.texi (Machine Constraints): Add ARC part.
15748 * doc/invoke.texi: (menu): Add ARC Options.
15749 (Machine Dependent Options) <ARC Options>: Add synopsis.
15750 (node ARC Options): Add.
15751 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15752 (ARC Built-in Functions): New section defining
15753 generic ARC built-in functions.
15754 (ARC SIMD Built-in Functions): New section defining SIMD specific
15755 built-in functions.
15756 (Declaring Attributes of Functions): Extended
15757 description of short_call and long_call attributes for ARC and
15758 added index entries.
15759
15760 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15761 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15762 Joern Rennecke <joern.rennecke@embecosm.com>
15763 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15764 Brendan Kehoe <brendan@zen.org>
15765 Michael Eager <eager@eagercon.com>
15766 Simon Cook <simon.cook@embecosm.com>
15767 Jeremy Bennett <jeremy.bennett@embecosm.com>
15768
15769 * config/arc, common/config/arc: New directories.
15770
15771 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15772 Brendan Kehoe <brendan@zen.org>
15773 Simon Cook <simon.cook@embecosm.com>
15774
15775 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15776
15777 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15778
15779 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15780 * tree-ssa-coalesce.h: New. Move prototype to here.
15781 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15782 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15783 (gimple_can_coalesce_p): Move to...
15784 * gimple.c (gimple_can_coalesce_p): Here.
15785
15786 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15787
15788 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15789 (dump_decl_set): Move to gimple.c.
15790 * gimple.h: Don't include tree-ssa-operands.h.
15791 (dump_decl_set): Add prototype.
15792 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15793 Move to gimple-ssa.h.
15794 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15795 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15796 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15797 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15798 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15799 than PHI_ARG_DEF.
15800 (dump_decl_set): Relocate here.
15801 * gimple-ssa.h: New file.
15802 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15803 Relocate from gimple.h.
15804 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15805 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15806 swap_tree_operands and remove non-ssa path.
15807 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15808 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15809 swap_ssa_operands.
15810 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15811 vect_is_simple_reduction_1): Use swap_ssa_operands.
15812 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15813 (enum need_phi_state): Move to tree-into-ssa.c.
15814 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15815 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15816 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15817 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15818 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15819 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15820 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15821 num_imm_uses): Move to ssa-iterators.h.
15822 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15823 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15824 tree-phinodes.h.
15825 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15826 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15827 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15828 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15829 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15830 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15831 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15832 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15833 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15834 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15835 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15836 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15837 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15838 (set_phi_nodes): Move to tree-phinodes.h.
15839 * tree-ssa-operands.h (enum ssa_op_iter_type,
15840 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15841 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15842 (dump_decl_set): Remove prototype.
15843 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15844 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15845 (set_phi_nodes): Relocate from tree-flow-inline.h.
15846 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15847 tree-flow-inline.h
15848 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15849 include list. Temporarily add gimple.h to include list.
15850 * ssa-iterators.h: New file.
15851 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15852 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15853 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15854 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15855 Relocate from tree-ssa-operands.h.
15856 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15857 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15858 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15859 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15860 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15861 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15862 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15863 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15864 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15865 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15866 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15867 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15868 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15869 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15870 Relocate from tree-flow-inline.h.
15871 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15872
15873 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15874
15875 * aarch64-simd.md
15876 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15877 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15878 Insert '\t' to output template.
15879 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15880 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15881 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15882 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15883
15884 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15885
15886 * doc/install.texi (Host/target specific installation notes for GCC):
15887 Put @anchor before @heading.
15888 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15889 Use @email for email addresses.
15890
15891 2013-10-01 Jeff Law <law@redhat.com>
15892
15893 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15894 a vec. Only delete the path if we create one without successfully
15895 registering a jump thread.
15896 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15897 as a pointer.
15898 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15899 (paths): New vector of jump threading paths.
15900 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15901 (THREAD_PATH): New accessor macro for the entire thread path.
15902 (lookup_redirection_data): Get intermediate and final outgoing edge
15903 from the thread path.
15904 (create_edge_and_update_destination_phis): Copy the threading path.
15905 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15906 jump threading path.
15907 (ssa_redirect_edges): Get edges and block types from the jump threading
15908 path. Free the path vector.
15909 (thread_block): Get edges from the jump threading path. Look at the
15910 entire path to see if we thread to a loop exit. If we cancel a jump
15911 thread request, then free the path vector.
15912 (thread_single_edge): Get edges and block types from the jump threading
15913 path. Free the path vector.
15914 (thread_through_loop_header): Get edges and block types from the jump
15915 threading path. Free the path vector.
15916 (mark_threaded_blocks): Iterate over the vector of paths and store
15917 the path on the appropriate edge. Get edges and block types from the
15918 jump threading path.
15919 (mark_threaded_blocks): Get edges and block types from the jump
15920 threading path. Free the path vector.
15921 (thread_through_all_blocks): Use the vector of paths rather than
15922 a vector of 3-edge sets.
15923 (register_jump_thread): Accept pointer to a path vector rather
15924 than the path vector itself. Store the path vector for later use.
15925 Simplify.
15926
15927 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15928 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15929
15930 PR target/58574
15931 * config/s390/s390.c (s390_split_branches): Modify check for table
15932 jump insns.
15933 (s390_chunkify_start): Rearrange table jump insn check in order to
15934 deal with compare and branch insns correctly.
15935
15936 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15937
15938 PR target/58578
15939 Revert
15940 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15941 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15942 define_insn_and_split.
15943 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15944 (shiftsi3_compare): New pattern.
15945 (rrx): New pattern.
15946 * config/arm/unspecs.md (UNSPEC_RRX): New.
15947
15948 2013-10-01 Alan Modra <amodra@gmail.com>
15949
15950 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15951 casing inout operands.
15952
15953 2013-10-01 Richard Biener <rguenther@suse.de>
15954
15955 PR tree-optimization/58553
15956 * tree-loop-distribution.c (struct partition_s): Add niter member.
15957 (classify_partition): Populate niter member for the partition
15958 and properly identify whether the relevant store happens before
15959 or after the loop exit.
15960 (generate_memset_builtin): Use niter member from the partition.
15961 (generate_memcpy_builtin): Likewise.
15962
15963 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15964
15965 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15966 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15967
15968 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15969
15970 * basic-block.h (edge_list): Prefix member names with "m_".
15971 * context.h (context): Likewise.
15972 * domwalk.h (dom_walker): Likewise.
15973 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15974 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15975 * hash-table.h (hash_table): Likewise.
15976 * machmode.h (bit_field_mode_iterator): Likewise.
15977 * pass_manager.h (pass_list): Likewise.
15978 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15979 * tree-pass.h (pass_data): Likewise.
15980 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15981 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15982 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15983 * asan.c (pass_data_asan): Update accordingly.
15984 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15985 (control_dependences::control_dependences): Likewise.
15986 (control_dependences::~control_dependences): Likewise.
15987 (control_dependences::~control_dependences): Likewise.
15988 (control_dependences::get_edges_dependent_on): Likewise.
15989 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15990 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15991 * context.c (gcc::context::context): Likewise.
15992 * cprop.c (pass_rtl_cprop::clone): Likewise.
15993 * domwalk.c (dom_walker::walk): Likewise.
15994 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15995 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15996 * mode-switching.c (pass_mode_switching::clone): Likewise.
15997 * passes.c (opt_pass::opt_pass): Likewise.
15998 (pass_manager::pass_manager): Likewise.
15999 * predict.c (pass_strip_predict_hints::clone): Likewise.
16000 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
16001 (pass_split_all_insns::clone): Likewise.
16002 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
16003 Likewise.
16004 (bit_field_mode_iterator::next_mode): Likewise.
16005 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
16006 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
16007 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
16008 * tree-complex.c (pass_lower_complex::clone): Likewise.
16009 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
16010 * tree-object-size.c (pass_object_sizes::clone): Likewise.
16011 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
16012 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
16013 (pass_fold_builtins::clone): Likewise.
16014 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
16015 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
16016 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
16017 (pass_cd_dce::clone): Likewise.
16018 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
16019 (pass_phi_only_cprop::clone): Likewise.
16020 * tree-ssa-dse.c (pass_dse::clone): Likewise.
16021 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
16022 * tree-ssa-loop.c (pass_lim::clone): Likewise.
16023 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
16024 * tree-ssa-pre.c (pass_fre::clone): Likewise.
16025 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
16026 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
16027 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
16028 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16029 * tree-vrp.c (pass_vrp::clone): Likewise.
16030 * tsan.c (pass_tsan::clone): Likewise.
16031
16032 2013-09-30 Jakub Jelinek <jakub@redhat.com>
16033
16034 PR middle-end/58564
16035 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16036 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16037
16038 PR middle-end/58564
16039 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16040 optimization, punt if sign_bit_p looked through any zero extension.
16041
16042 2013-09-30 Teresa Johnson <tejohnson@google.com>
16043
16044 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16045 Update redirected out edge count in joiner case.
16046 (ssa_redirect_edges): Common the joiner and non-joiner cases
16047 so that joiner case gets profile updates.
16048
16049 2013-09-30 Richard Biener <rguenther@suse.de>
16050
16051 PR tree-optimization/58554
16052 * tree-loop-distribution.c (classify_partition): Require
16053 unconditionally executed stores for memcpy and memset recognition.
16054 (tree_loop_distribution): Calculate dominance info.
16055
16056 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16057
16058 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16059 (NO_PROFILE_COUNTERS): Likewise.
16060 (PROFILE_HOOK): Likewise.
16061 (FUNCTION_PROFILER): Likewise.
16062 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16063
16064 2013-09-30 Iain Sandoe <iain@codesourcery.com>
16065
16066 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16067 calls and defines in TARGET_MACHO conditional.
16068 (load_macho_picbase_di): Likewise.
16069 (reload_macho_picbase): Likewise.
16070 (reload_macho_picbase_si): Likewise.
16071 (reload_macho_picbase_di): Likewise.
16072 (nonlocal_goto_receiver): Likewise.
16073
16074 2013-09-30 Nick Clifton <nickc@redhat.com>
16075
16076 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
16077 that use the MSP430X ISA.
16078 (msp430_option_override): Scan -mmcu command line option for any
16079 MCU name that supports the MSP430X ISA.
16080 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16081 -mmcu options which enable the MSP430X ISA.
16082
16083 2013-09-30 Richard Biener <rguenther@suse.de>
16084
16085 PR middle-end/58532
16086 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16087 before looking for setjmp-like calls.
16088
16089 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16090
16091 PR target/10901
16092 * config/darwin-protos.h (machopic_get_function_picbase): New.
16093 * config/darwin.c (machopic_get_function_picbase): New.
16094 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16095 label for a new func. (load_macho_picbase_di): Likewise.
16096 (reload_macho_picbase): New expand.
16097 (reload_macho_picbase_si): New insn.
16098 (reload_macho_picbase_di): New insn.
16099 (nonlocal_goto_receiver): New define and split.
16100 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16101 (unspecv enum): Add UNSPECV_NLGR.
16102
16103 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16104
16105 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16106 that altivec registers are correctly sized on Darwin.
16107
16108 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16109
16110 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16111 darwin-driver.o): Use COMPILE and POSTCOMPILE.
16112 * config/x-darwin (host-darwin.o): Likewise.
16113 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16114 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16115 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16116
16117 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
16118
16119 * doc/invoke.texi: Fix usage of @tie{} command.
16120
16121 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
16122
16123 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16124
16125 2013-09-28 Jan Hubicka <jh@suse.cz>
16126
16127 * config/i386/x86-tune.def: Add documentation for each of the options;
16128 add whitespace.
16129
16130 2013-09-28 Jan Hubicka <jh@suse.cz>
16131
16132 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16133 generic.
16134 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16135 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16136 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16137 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16138 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16139
16140 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
16141
16142 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16143 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16144 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16145 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16146 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16147 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16148 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16149 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16150 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16151 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16152 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16153 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16154 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16155 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16156 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16157 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16158 gimple.h, godump.c, graphite-clast-to-gimple.c,
16159 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16160 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16161 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16162 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16163 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16164 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16165 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16166 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16167 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16168 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16169 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16170 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16171 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16172 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16173 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16174 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16175 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16176 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16177 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16178 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16179 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16180 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16181 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16182 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16183 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16184 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16185 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16186 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16187 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16188 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16189 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16190 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16191 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16192 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16193 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16194 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16195 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16196 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16197 whitespace before "(".
16198
16199 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
16200
16201 * expr.h (extract_bit_field): Remove packedp parameter.
16202 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16203 from forward declaration.
16204 (store_split_bit_field): Remove packedp arg from calls to
16205 extract_fixed_bit_field.
16206 (extract_bit_field_1): Remove packedp parameter and packedp
16207 argument from recursive calls and calls to extract_fixed_bit_field.
16208 (extract_bit_field): Remove packedp parameter and corresponding
16209 arg to extract_bit_field_1.
16210 (extract_fixed_bit_field): Remove packedp parameter. Remove code
16211 to issue warnings.
16212 (extract_split_bit_field): Remove packedp arg from call to
16213 extract_fixed_bit_field.
16214 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16215 (copy_blkmode_from_reg): Likewise.
16216 (copy_blkmode_to_reg): Likewise.
16217 (read_complex_part): Likewise.
16218 (store_field): Likewise.
16219 (expand_expr_real_1): Likewise.
16220 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16221 to extract_bit_field.
16222 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16223 call to extract_bit_field.
16224 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16225 call to extract_bit_field.
16226 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16227 and special packedp behavior from -fstrict-volatile-bitfields
16228 documentation.
16229
16230 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16231
16232 * lra-eliminations.c (init_elim_table): Guard value_p.
16233
16234 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16235
16236 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16237 DFmode, DImode, and SFmode in the upper VSX registers based on the
16238 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
16239 if -mpower8-vector. Combine -mvsx-timode handling with the rest
16240 of the VSX register handling.
16241
16242 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16243 (f32_sv): Likewise.
16244 (zero_extendsidi2_lfiwzx): Add support for loading into the
16245 Altivec registers with -mpower8-vector. Use wu/wv constraints to
16246 only do VSX memory options on Altivec registers.
16247 (extendsidi2_lfiwax): Likewise.
16248 (extendsfdf2_fpr): Likewise.
16249 (mov<mode>_hardfloat, SF/SD modes): Likewise.
16250 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16251 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16252 (movdi_internal64): Likewise.
16253
16254 2013-09-27 Xinliang David Li <davidxl@google.com>
16255
16256 * opts.c (finish_options): Adjust parameters
16257 according to vect cost model.
16258 (common_handle_option): Set dynamic vect cost
16259 model for FDO.
16260 targhooks.c (default_add_stmt_cost): Compute stmt cost
16261 unconditionally.
16262 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16263 Use helper function.
16264 * tree-vectorizer.h (unlimited_cost_model): New function.
16265 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16266 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16267 function.
16268 (vect_enhance_data_refs_alignment): Ditto.
16269 * flag-types.h: New enum.
16270 * common/config/i386/i386-common.c (ix86_option_init_struct):
16271 No need to initialize vect_cost_model flag.
16272 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16273 unconditionally.
16274
16275 2013-09-27 Diego Novillo <dnovillo@google.com>
16276
16277 * gimple.h (enum ssa_mode): Remove.
16278
16279 2013-09-27 Paulo Matos <pmatos@broadcom.com>
16280
16281 * cfgloop.h (number_of_loops): Fix typo in check for null.
16282
16283 2013-09-27 Jakub Jelinek <jakub@redhat.com>
16284
16285 PR middle-end/58551
16286 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16287 are children of outermost saved_cfun's loop, and set it up to
16288 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
16289 if loop != loop0 and SESE region contains bbs that belong to loop0.
16290
16291 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16292
16293 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16294 (binary_scale_code_p, get_base_term, get_index_term): New functions.
16295 (set_address_segment, set_address_base, set_address_index)
16296 (set_address_disp): Accept the argument unconditionally.
16297 (baseness): Remove must_be_base_p and must_be_index_p checks.
16298 (decompose_normal_address): Classify as much as possible in the
16299 main loop.
16300
16301 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16302
16303 * cse.c (count_reg_usage): Handle INT_LIST.
16304 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16305 * reginfo.c (reg_scan_mark_refs): Likewise.
16306 * reload1.c (eliminate_regs_1): Likewise.
16307
16308 2013-09-27 Iain Sandoe <iain@codesourcery.com>
16309
16310 PR middle-end/58547
16311 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16312 signed.
16313
16314 2013-09-27 Richard Biener <rguenther@suse.de>
16315
16316 PR tree-optimization/58459
16317 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16318 restriction not propagating into loops.
16319
16320 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
16321
16322 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16323 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16324 * doc/tree-ssa.texi (Walking use-def chains): Delete.
16325
16326 2013-09-26 Richard Biener <rguenther@suse.de>
16327
16328 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16329
16330 2013-09-26 Richard Biener <rguenther@suse.de>
16331
16332 * alias.h (component_uses_parent_alias_set): Rename to ...
16333 (component_uses_parent_alias_set_from): ... this.
16334 * alias.c (component_uses_parent_alias_set): Rename to ...
16335 (component_uses_parent_alias_set_from): ... this and return
16336 the desired parent.
16337 (reference_alias_ptr_type_1): Use the result from
16338 component_uses_parent_alias_set_from instead of stripping
16339 components one at a time.
16340 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16341
16342 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16343
16344 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16345 Move prototypes to...
16346 * tree-ssa-ter.h: New File. Move prototypes here.
16347 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16348 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16349 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
16350 from is_replaceable_p.
16351 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16352 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
16353 (process_replaceable): Use ter_is_replaceable_p.
16354 (find_replaceable_in_bb): Use ter_is_replaceable_p.
16355 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
16356 newly refactored ssa_is_replaceable_p.
16357 * cfgexpand.c: Include tree-outof-ssa.h.
16358 * ssaexpand.h: Delete.
16359
16360 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16361
16362 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16363 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16364 tree-ssa.c
16365 (create_gimple_tmp): Delete.
16366 (get_expr_type, build_assign, build_type_cast): Move to...
16367 * gimple-builder.c: New File.
16368 (get_expr_type): Relocate from gimple.c.
16369 (build_assign, build_type_cast): Change to only create ssanames.
16370 * gimple.h: Move prototypes to...
16371 * gimple-builder.h: New File. Here.
16372 * tree-ssa.h: And here.
16373 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16374 count_uses_and_derefs): Relocate from gimple.c.
16375 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16376 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16377 * tree-ssa-math-opts (execute_cse_reciprocals): Use
16378 gimple_replace_ssa_lhs.
16379 * asan.c: Include gimple-builder.h.
16380 * Makefile.in: Add gimple-builder.o.
16381
16382 2013-09-26 Richard Biener <rguenther@suse.de>
16383
16384 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16385 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16386 (loe_visit_block): Use gcc_checking_assert.
16387 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16388 gimple_assign_ssa_name_copy_p.
16389 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16390 change.
16391
16392 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
16393
16394 * config/rs6000/t-rs6000 (rs6000.o): Remove.
16395 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16396
16397 2013-09-26 Richard Biener <rguenther@suse.de>
16398
16399 PR tree-optimization/58539
16400 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16401 the fact that debug statements are not taking part in loop-closed
16402 SSA construction.
16403
16404 2013-09-26 Nick Clifton <nickc@redhat.com>
16405
16406 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16407 time warning message.
16408 (msp430_print_operand_raw): Delete unused letter parameter.
16409 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16410 (msp430_print_operand_address): New function.
16411 (msp430_print_operand): Move address printing code from here to
16412 new function.
16413 * config/msp430/msp430.md (movsipsi2): Add comment in generated
16414 assembler.
16415 (zero_extendpsisi2): Likewise.
16416 (extendpsisi2): New pattern.
16417 (andneghi3): New pattern.
16418
16419 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
16420
16421 * config/aarch64/aarch64.opt (mlra): New option.
16422 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16423 (TARGET_LRA_P): Define.
16424
16425 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
16426
16427 * expr.c (expand_assignment): Remove obsolete comment.
16428
16429 2013-09-25 Jeff Law <law@redhat.com>
16430
16431 * tree-flow.h (thread_through_all_blocks): Prototype moved into
16432 tree-ssa-threadupdate.h.
16433 (register_jump_thread): Similarly.
16434 * tree-ssa-threadupdate.h: New header file.
16435 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16436 * tree-vrp.c: Likewise.
16437 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16438 (thread_around_empty_blocks): Change type of path vector argument to
16439 an edge,type pair from just an edge. Initialize both elements when
16440 appending to a jump threading path. Tweak references to elements
16441 appropriately.
16442 (thread_across_edge): Similarly. Release memory for the elements
16443 as needed.
16444 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16445 (dump_jump_thread_path): New function broken out from
16446 register_jump_thread.
16447 (register_jump_thread): Use dump_jump_thread_path. Change type of
16448 path vector entries. Search the path for NULL edges and dump
16449 the path if one is found. Tweak the conversion of path to 3-edge
16450 form to use the block copy type information embedded in the path.
16451
16452 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16453
16454 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16455
16456 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16457 Vladimir Makarov <vmakarov@redhat.com>
16458
16459 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16460 from the least significant bit.
16461 (strip_address_mutations): Add bitfield operations handling.
16462 (must_be_index_p): Add shifting and rotate operations handling.
16463 (set_address_base): Use must_be_base_p predicate.
16464 (set_address_index): Use must_be_index_p predicate.
16465
16466 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16467 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16468 Sergey Lega <sergey.s.lega@intel.com>
16469 Anna Tikhonova <anna.tikhonova@intel.com>
16470 Ilya Tocar <ilya.tocar@intel.com>
16471 Andrey Turetskiy <andrey.turetskiy@intel.com>
16472 Ilya Verbin <ilya.verbin@intel.com>
16473 Kirill Yukhin <kirill.yukhin@intel.com>
16474 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16475
16476 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16477 Use new names.
16478 (ix86_expand_vector_move_misalign): Support new unaligned load and
16479 stores and use new names.
16480 (CODE_FOR_sse2_storedqu): Rename to ...
16481 (CODE_FOR_sse2_storedquv16qi): ... this.
16482 (CODE_FOR_sse2_loaddqu): Rename to ...
16483 (CODE_FOR_sse2_loaddquv16qi): ... this.
16484 (CODE_FOR_avx_loaddqu256): Rename to ...
16485 (CODE_FOR_avx_loaddquv32qi): ... this.
16486 (CODE_FOR_avx_storedqu256): Rename to ...
16487 (CODE_FOR_avx_storedquv32qi): ... this.
16488 * config/i386/i386.md (fpint_logic): New.
16489 * config/i386/sse.md (VMOVE): Extend for AVX512.
16490 (VF): Ditto.
16491 (VF_128_256): New.
16492 (VF_512): Ditto.
16493 (VI_UNALIGNED_LOADSTORE): Ditto.
16494 (sse2_avx_avx512f): Ditto.
16495 (sse2_avx2): Extend for AVX512.
16496 (sse4_1_avx2): Ditto.
16497 (avx2_avx512f): New.
16498 (sse): Extend for AVX512.
16499 (sse2): Ditto.
16500 (sse4_1): Ditto.
16501 (avxsizesuffix): Ditto.
16502 (sseintvecmode): Ditto.
16503 (ssePSmode): Ditto.
16504 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16505 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16506 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16507 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16508 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16509 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16510 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16511 (STORENT_MODE): Extend for AVX512.
16512 (*absneg<mode>2): Replace constraint "x" with "v".
16513 (*mul<mode>3): Ditto.
16514 (*ieee_smin<mode>3): Ditto.
16515 (*ieee_smax<mode>3): Ditto.
16516 (avx_cmp<mode>3): Replace VF with VF_128_256.
16517 (*<sse>_maskcmp<mode>3_comm): Ditto.
16518 (<sse>_maskcmp<mode>3): Ditto.
16519 (<sse>_andnot<mode>3): Extend for AVX512.
16520 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16521 (<code><mode>3, fpint_logic): New.
16522 (*<code><mode>3): Extend for AVX512.
16523 (avx512flogicsuff): New.
16524 (avx512f_<logic><mode>): Ditto.
16525 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16526 VF_128_256.
16527 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16528 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16529 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16530 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16531 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16532 (xop_vpermil2<mode>3): Ditto.
16533 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16534 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16535 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16536 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16537
16538 2013-09-25 Tom Tromey <tromey@redhat.com>
16539
16540 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16541 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16542 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16543 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16544 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16545 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16546 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16547 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16548 (GRAPHITE_HTAB_H): Remove.
16549
16550 2013-09-25 Tom Tromey <tromey@redhat.com>
16551
16552 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16553
16554 2013-09-25 Tom Tromey <tromey@redhat.com>
16555
16556 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16557
16558 2013-09-25 Tom Tromey <tromey@redhat.com>
16559
16560 * config/i386/t-i386 (i386.o): Remove.
16561 (i386-c.o): Use COMPILE and POSTCOMPILE.
16562
16563 2013-09-25 Tom Tromey <tromey@redhat.com>
16564
16565 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16566
16567 2013-09-25 Tom Tromey <tromey@redhat.com>
16568
16569 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16570 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16571 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16572 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16573 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16574 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16575 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16576 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16577 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16578 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16579 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16580 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16581 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16582 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16583 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16584 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16585 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16586 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16587 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16588 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16589 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16590 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16591 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16592 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16593 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16594 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16595 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16596 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16597 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16598 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16599 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16600 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16601 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16602 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16603 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16604 (graphite-clast-to-gimple.o, graphite-dependences.o)
16605 (graphite-interchange.o, graphite-poly.o)
16606 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16607 (graphite-optimize-isl.o, tree-vect-loop.o)
16608 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16609 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16610 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16611 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16612 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16613 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16614 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16615 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16616 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16617 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16618 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16619 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16620 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16621 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16622 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16623 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16624 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16625 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16626 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16627 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16628 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16629 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16630 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16631 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16632 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16633 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16634 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16635 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16636 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16637 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16638 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16639 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16640 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16641 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16642 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16643 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16644 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16645 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16646 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16647 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16648 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16649 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16650 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16651 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16652 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16653 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16654 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16655 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16656 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16657 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16658 (gcov-dump.o): Remove.
16659 (default-c.o): Use COMPILE and POSTCOMPILE.
16660 (CFLAGS-gcc.o): New variable.
16661 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16662
16663 2013-09-25 Tom Tromey <tromey@redhat.com>
16664
16665 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16666 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16667 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16668 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16669 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16670 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16671 (c-family/array-notation-common.o, c-family/stub-objc.o)
16672 (c-family/c-ubsan.o): Remove.
16673
16674 2013-09-25 Tom Tromey <tromey@redhat.com>
16675
16676 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16677
16678 2013-09-25 Tom Tromey <tromey@redhat.com>
16679
16680 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16681 to add -DENABLE_SHARED_LIBGCC.
16682 (gcc.o): Don't use subshell.
16683
16684 2013-09-25 Tom Tromey <tromey@redhat.com>
16685
16686 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16687 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16688 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16689 * configure, config.in: Rebuild.
16690
16691 2013-09-25 Tom Tromey <tromey@redhat.com>
16692
16693 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16694 (COMPILE, POSTCOMPILE): New variables.
16695 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16696 (DEPFILES): New variable.
16697 Include ".Po" files.
16698 * configure.ac: Add checks for dependency checking.
16699 * configure, aclocal.m4: Regenerate.
16700
16701 2013-09-25 Tom Tromey <tromey@redhat.com>
16702
16703 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16704 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16705
16706 2013-09-25 Tom Tromey <tromey@redhat.com>
16707
16708 * Makefile.in (generated_files): Add options.h,
16709 target-hooks-def.h, insn-opinit.h,
16710 common/common-target-hooks-def.h, pass-instances.def,
16711 c-family/c-target-hooks-def.h.
16712
16713 2013-09-25 Jeff Law <law@redhat.com>
16714
16715 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16716 than foo[foo.length () - 1] to access last member in a vec.
16717 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16718
16719 2013-09-25 Richard Biener <rguenther@suse.de>
16720
16721 PR middle-end/58521
16722 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16723
16724 2013-09-25 Jan Hubicka <jh@suse.cz>
16725
16726 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16727 test.
16728
16729 2013-09-25 Marek Polacek <polacek@redhat.com>
16730
16731 PR sanitizer/58420
16732 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16733 when determining the type name.
16734
16735 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16736
16737 * config/sh/sh.md: Fix formatting.
16738
16739 2013-09-24 Xinliang David Li <davidxl@google.com>
16740
16741 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16742 max peel iterations parameter.
16743 * param.def: New parameter.
16744 * doc/invoke.texi: Document New parameter.
16745
16746 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16747
16748 * gimple-pretty-print.c: Various whitespace tweaks.
16749 * tree-core.h: Likewise.
16750 * tree-pretty-print.c: Likewise.
16751 * tree-ssa-alias.c: Likewise.
16752 * tree-ssa-copy.c: Likewise.
16753 * tree-ssanames.c: Likewise.
16754 * tree-ssanames.h: Likewise.
16755 * tree-vrp.c: Likewise.
16756
16757 2013-09-24 Alan Modra <amodra@gmail.com>
16758
16759 PR middle-end/57134
16760 PR middle-end/57586
16761 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16762 for output operands that disallow regs. Don't use EXPAND_WRITE on
16763 inout operands.
16764
16765 2013-09-24 Richard Biener <rguenther@suse.de>
16766
16767 PR middle-end/58513
16768 * tree.c (reference_alias_ptr_type): Move ...
16769 * alias.c (reference_alias_ptr_type): ... here and implement
16770 in terms of the new reference_alias_ptr_type_1.
16771 (ref_all_alias_ptr_type_p): New helper.
16772 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16773 use ref_all_alias_ptr_type_p.
16774 (get_deref_alias_set): Add flag_strict_aliasing check here.
16775 (reference_alias_ptr_type_1): New function, split out from ...
16776 (get_alias_set): ... here.
16777 (alias_ptr_types_compatible_p): New function.
16778 * alias.h (reference_alias_ptr_type): Declare.
16779 (alias_ptr_types_compatible_p): Likewise.
16780 * tree.h (reference_alias_ptr_type): Remove.
16781 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16782 to compare MEM_REF alias types.
16783
16784 2013-09-24 Richard Biener <rguenther@suse.de>
16785
16786 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16787
16788 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16789
16790 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16791 reload helper function arrays into a single array reg_addr.
16792 (reload_fpr_gpr): Likewise.
16793 (reload_gpr_vsx): Likewise.
16794 (reload_vsx_gpr): Likewise.
16795 (struct rs6000_reg_addr): Likewise.
16796 (reg_addr): Likewise.
16797 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16798 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16799 (rs6000_init_hard_regno_mode_ok): Likewise.
16800 (rs6000_secondary_reload_direct_move): Likewise.
16801 (rs6000_secondary_reload): Likewise.
16802
16803 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16804 constraints: wu, ww, and wy. Repurpose wv constraint added during
16805 power8 changes. Put wg constraint in alphabetical order.
16806
16807 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16808 for future work to add ISA 2.07 VSX single precision support.
16809 (-mvsx-scalar-double): Change default from -1 to 1, update
16810 documentation comment.
16811 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16812 (-mupper-regs-df): New debug switch to control whether DF values
16813 can go in the traditional Altivec registers.
16814 (-mupper-regs-sf): New debug switch to control whether SF values
16815 can go in the traditional Altivec registers.
16816
16817 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16818 and wy constraints.
16819 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16820 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16821 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16822 (rs6000_debug_legitimate_address_p): Print if we are running
16823 before, during, or after reload.
16824 (rs6000_secondary_reload): Add a comment.
16825 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16826
16827 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16828 constraints. Update documentation string.
16829 (wd constraint): Likewise.
16830 (wf constraint): Likewise.
16831 (wg constraint): Likewise.
16832 (wn constraint): Likewise.
16833 (ws constraint): Likewise.
16834 (wt constraint): Likewise.
16835 (wx constraint): Likewise.
16836 (wz constraint): Likewise.
16837 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16838 instructions.
16839 (ww constraint): Likewise.
16840 (wy constraint): Likewise.
16841 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16842 in the previous submissions.
16843 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16844
16845 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16846
16847 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16848 (REG_BR_PROB): Say that the probability is stored in an int_list.
16849 * reg-notes.def: Update commentary to mention INT_LIST.
16850 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16851 (INT_LIST): New rtx.
16852 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16853 * rtlanal.c (int_reg_note_p): New function.
16854 (alloc_reg_note): Assert that the note does not have an int argument.
16855 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16856 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16857 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16858 rather than an INSN_LIST. Handle INT_LIST.
16859 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16860 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16861 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16862 Manipulate them as ints rather than rtxes.
16863 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16864 * regmove.c (copy_src_to_dest): Likewise.
16865 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16866
16867 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16868 into the cases that need it.
16869 * config/arm/arm.c (arm_unwind_emit): Likewise.
16870
16871 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16872 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16873 * loop-doloop.c (add_test, doloop_modify): Likewise.
16874 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16875 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16876 * predict.c (combine_predictions_for_insn): Likewise.
16877 * print-rtl.c (print_rtx): Handle INT_LIST.
16878 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16879 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16880 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16881 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16882 (ix86_split_fp_branch, predict_jump): Likewise.
16883 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16884 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16885 * config/spu/spu.c (ea_load_store_inline): Likewise.
16886
16887 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16888 value of a REG_BR_PROB note.
16889 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16890 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16891 * emit-rtl.c (try_split): Likewise.
16892 * predict.c (br_prob_note_reliable_p): Likewise.
16893 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16894 * reorg.c (mostly_true_jump): Likewise.
16895 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16896 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16897 * config/i386/i386.c (ix86_print_operand): Likewise.
16898 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16899 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16900 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16901 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16902 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16903 * config/sparc/sparc.c (output_cbranch): Likewise.
16904 * config/spu/spu.c (get_branch_target): Likewise.
16905 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16906 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16907
16908 2013-09-23 Jan Hubicka <jh@suse.cz>
16909
16910 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16911 for ipa-devirt.
16912 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16913 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16914 of external calls
16915 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16916 (gimple_fold_call): Dump inconsistent devirtualizations; add
16917 sanity check for type based devirtualizations.
16918 * ipa-prop.c: Include ipa-utils.h
16919 (ipa_intraprocedural_devirtualization): Add sanity check.
16920 (try_make_edge_direct_virtual_call): Likewise.
16921
16922 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16923
16924 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16925 assignment statements.
16926
16927 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16928
16929 * gimple-pretty-print.c (dump_ssaname_info): New function.
16930 (dump_gimple_phi): Call it.
16931 (pp_gimple_stmt_1): Likewise.
16932 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16933 (range_info_def): Declare.
16934 * tree-pretty-print.c (pp_double_int): New function.
16935 (dump_generic_node): Call it.
16936 * tree-pretty-print.h (pp_double_int): Declare.
16937 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16938 * tree-ssanames.h (range_info_def): New structure.
16939 (value_range_type): Move definition here.
16940 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16941 Declare.
16942 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16943 initialization.
16944 (set_range_info): New function.
16945 (get_range_info): Likewise.
16946 (duplicate_ssa_name_range_info): Likewise.
16947 (duplicate_ssa_name_fn): Check pointer type and call
16948 duplicate_ssa_name_range_info.
16949 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16950 * tree-vrp.c (value_range_type): Remove definition, now in
16951 tree-ssanames.h.
16952 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16953 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16954 (SSA_NAME_RANGE_INFO): New macro.
16955
16956 2013-09-23 Richard Biener <rguenther@suse.de>
16957
16958 PR tree-optimization/58464
16959 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16960 (phi_trans_add): Change to add conditionally on being not present.
16961 (phi_translate_1): Remove recursion detection here.
16962 (phi_translate): Pre-seed the cache with NULL to catch
16963 recursion here in a more generic way.
16964 (bitmap_find_leader): Adjust comment.
16965 (get_representative_for): Dump value-numbers.
16966 (create_expression_by_pieces): Likewise.
16967 (insert_into_preds_of_block): Likewise.
16968
16969 2013-09-23 Christian Bruel <christian.bruel@st.com>
16970
16971 PR target/58475
16972 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16973 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16974
16975 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16976
16977 Revert r202780:
16978 2013-09-20 Renlin Li <renlin.li@arm.com>
16979
16980 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16981 plus_constant.
16982 (aarch64_expand_epilogue): Likewise.
16983 (aarch64_legitimize_reload_address): Likewise.
16984
16985 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16986
16987 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16988 NULL_TREE before pushing them onto the vector. Likewise for labels.
16989
16990 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16991
16992 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16993 comparison operators when -fno-trapping-math is in effect.
16994 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16995 comparison operators in TFmode and assert that unsupported operators
16996 cannot reach here.
16997 (ia64_print_operand): Likewise.
16998
16999 2013-09-21 Jan Hubicka <jh@suse.cz>
17000
17001 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
17002 (sse_typeless_stores): Enable for core
17003 (sse_load0_by_pxor): Likewise.
17004 (four_jump_limit): Disable for core.
17005 (pad_returns): Likewise.
17006 (avoid_vector_decode): Likewise.
17007 (fuse_cmp_and_branch): Enable for cores.
17008 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
17009
17010 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17011
17012 PR middle-end/56791
17013 * config/pa/pa.c (pa_option_override): Disable auto increment and
17014 decrement instructions until reload is completed.
17015
17016 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
17017 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17018 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17019
17020 2013-09-20 DJ Delorie <dj@redhat.com>
17021 Nick Clifton <nickc@redhat.com>
17022
17023 * config/rl78/rl78.c: Various whitespace and comment tweaks.
17024 (need_to_save): Save bank 0 on interrupts.
17025 (characterize_address): Strip far address wrappers.
17026 (rl78_as_legitimate_address): Likewise.
17027 (transcode_memory_rtx): Likewise.
17028 (rl78_peep_movhi_p): Disable this peephole after devirt.
17029 (rl78_propogate_register_origins): Forget all origins when a
17030 CLOBBER is seen.
17031 * config/rl78/rl78-virt.md: Various whitespace tweaks.
17032 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
17033 peephole2's.
17034 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17035 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17036 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17037 relocating.
17038 * config/rl78/constraints.md: Various whitespace and paren tweaks.
17039
17040 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17041
17042 * config/pa/pa.md: In "scc" insn patterns, change output template to
17043 handle const0_rtx in reg_or_0_operand operands.
17044
17045 2013-09-20 Martin Husemann <martin@NetBSD.org>
17046
17047 PR target/56875
17048 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17049 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17050
17051 2013-09-20 Richard Biener <rguenther@suse.de>
17052
17053 PR middle-end/58484
17054 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17055 remembering SSA name version and block index.
17056 (new_scev_info_str): Adjust.
17057 (hash_scev_info): Likewise. Also hash the block index.
17058 (eq_scev_info): Adjust.
17059 (find_var_scev_info): Likewise.
17060 (struct instantiate_cache_entry): Remove.
17061 (struct instantiate_cache_type): Use a htab to map name, block
17062 to chrec.
17063 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17064 (get_instantiated_value_entry): Likewise.
17065 (hash_idx_scev_info, eq_idx_scev_info): New functions.
17066 (instantiate_scev_name): Adjust.
17067
17068 2013-09-20 Jeff Law <law@redhat.com>
17069
17070 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17071
17072 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
17073
17074 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17075 Call aarch64_simd_expand_args to update op[argc].
17076
17077 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17078
17079 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17080 plugin argument.
17081
17082 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17083
17084 * gengtype.c (file_rules): Added rule for *.cc files.
17085 (get_output_file_with_visibility): Give fatal message when no
17086 rules found.
17087
17088 2013-09-20 Renlin Li <renlin.li@arm.com>
17089
17090 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17091 (aarch64_expand_epilogue): Likewise.
17092 (aarch64_legitimize_reload_address): Likewise.
17093
17094 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17095
17096 PR middle-end/57748
17097 * expr.c (expand_assignment): Remove misalignp code path.
17098
17099 2013-09-20 Marek Polacek <polacek@redhat.com>
17100
17101 PR sanitizer/58413
17102 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17103 TYPE_PRECISION. Add asserts.
17104
17105 2013-09-20 Richard Biener <rguenther@suse.de>
17106
17107 PR tree-optimization/58453
17108 * tree-loop-distribution.c (distribute_loop): Apply the cost
17109 model for -ftree-loop-distribute-patterns, too.
17110
17111 2013-09-20 Richard Biener <rguenther@suse.de>
17112
17113 PR middle-end/58473
17114 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17115 make type comparison less strict.
17116
17117 2013-09-20 Alan Modra <amodra@gmail.com>
17118
17119 * configure: Regenerate.
17120 * aclocal.m4: Regenerate.
17121
17122 2013-09-20 Marek Polacek <polacek@redhat.com>
17123
17124 PR other/58467
17125 * doc/extend.texi: Document that attribute used is meant to be used
17126 on variables with static storage duration.
17127
17128 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17129
17130 PR tree-optimization/58472
17131 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17132 simd_lane_access set inv_p = false.
17133 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17134 the simduid magic VAR_DECL.
17135
17136 2013-09-19 Jan Hubicka <jh@suse.cz>
17137
17138 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17139
17140 2013-09-17 Jeff Law <law@redhat.com>
17141
17142 * tree-ssa-dom.c (record_temporary_equivalences): New function
17143 split out of dom_opt_dom_walker::after_dom_children.
17144 (dom_opt_dom_walker::thread_across_edge): Move common code
17145 in here from dom_opt_dom_walker::after_dom_children.
17146 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17147
17148 2013-09-19 Jan Hubicka <jh@suse.cz>
17149
17150 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17151 (TARGET_GENERIC): Use PROCESOR_GENERIC
17152 (enum processor_type): Unify generic32 and 64.
17153 * i386.md (cpu): Likewise.
17154 * x86-tune.def (use_leave): Enable for generic32.
17155 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17156 * athlon.md: Change generic64 to generic in all occurences.
17157 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17158 (ix86_target_macros_internal): Likewise.
17159 * driver-i386.c (host_detect_local_cpu): Likewise.
17160 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17161 to ..
17162 (generic_memcpy, generic_memset, generic_cost): This one.
17163 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17164 (m_GENERIC32, m_GENERIC64): Remove.
17165 (m_GENERIC): Turn into one flag.
17166 (processor_target): Unify generic tunnings.
17167 (ix86_option_override_internal): Replace generic32/64 by generic.
17168 (ix86_issue_rate): Likewise.
17169 (ix86_adjust_cost): Likewise.
17170
17171 2013-09-19 Jan Hubicka <jh@suse.cz>
17172
17173 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17174 of speculative flag.
17175
17176 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17177
17178 * omp-low.c (expand_omp_sections): Always pass len - 1 to
17179 GOMP_sections_start, even if !exit_reachable.
17180
17181 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17182
17183 * lra-constraints.c (need_for_all_save_p): Use macro
17184 HARD_REGNO_CALL_PART_CLOBBERED.
17185 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17186 set up pseudo conflict hard regs.
17187
17188 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17189
17190 PR target/58452
17191 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17192 operands.
17193
17194 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17195
17196 PR rtl-optimization/58438
17197 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17198 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17199 from previous subpasses.
17200
17201 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
17202
17203 * arm.c (arm_get_frame_offsets): Validate architecture supports
17204 LDRD/STRD before accepting the tuning preference.
17205 (arm_expand_prologue): Likewise.
17206 (arm_expand_epilogue): Likewise.
17207
17208 2013-09-18 Richard Biener <rguenther@suse.de>
17209
17210 PR tree-optimization/58417
17211 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17212 have chrecs with symbols defined in the loop as operands.
17213 (chrec_fold_multiply): Likewise.
17214 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17215 parameters before folding binary operations.
17216 (struct instantiate_cache_entry_hasher): Remove.
17217 (struct instantiate_cache_type): Use a pointer-map.
17218 (instantiate_cache_type::instantiate_cache_type): New function.
17219 (instantiate_cache_type::get): Likewise.
17220 (instantiate_cache_type::set): Likewise.
17221 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17222 (get_instantiated_value_entry): Likewise.
17223 (global_cache): New global.
17224 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17225 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17226 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17227 (instantiate_scev_name): Adjust.
17228 (instantiate_scev): Construct global instead of local cache.
17229 (resolve_mixers): Likewise.
17230
17231 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
17232 Paolo Carlini <paolo.carlini@oracle.com>
17233
17234 PR c++/58458
17235 * doc/implement-cxx.texi: Fix references to the C++ standards.
17236
17237 2013-09-18 Jakub Jelinek <jakub@redhat.com>
17238
17239 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17240 * tree-vect-data-refs.c (vect_analyze_data_refs): For
17241 simd_lane_access drs, update also DR_ALIGNED_TO.
17242
17243 2013-09-18 Marek Polacek <polacek@redhat.com>
17244
17245 PR sanitizer/58411
17246 * doc/extend.texi: Document no_sanitize_undefined attribute.
17247 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17248 no_sanitize_undefined attribute.
17249
17250 2013-09-18 Nick Clifton <nickc@redhat.com>
17251
17252 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17253 (ASM_DECLARE_FUNCTION_NAME): Define.
17254
17255 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
17256
17257 * compare-elim.c (find_comparison_dom_walker): New class
17258 (find_comparisons_in_bb): Rename to
17259 find_comparison_dom_walker::before_dom_children
17260 (find_comparisons): Adjust
17261 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17262 adjust.
17263 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17264 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17265 (init_walk_dominator_tree): Remove declaration.
17266 (fini_walk_dominator_tree): Remove declaration.
17267 * fwprop.c (single_def_use_dom_walker): New class
17268 (single_def_use_enter_block): Convert to
17269 single_def_use_dom_walker::before_dom_children.
17270 (single_def_use_leave_block): Convert to
17271 single_def_use_dom_walker::after_dom_children.
17272 (build_single_def_use_links): Adjust.
17273 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17274 class.
17275 (find_candidates_in_block): Convert to
17276 find_candidates_dom_walker::before_dom_children.
17277 (execute_strength_reduction): Adjust.
17278 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17279 (sese_dom_walker): New class.
17280 (sese_dom_walker::sese_dom_walker): New constructor.
17281 (sese_dom_walker::~sese_dom_walker): New destructor.
17282 (build_sese_conditions_before): Convert to
17283 sese_dom_walker::before_dom_children.
17284 (build_sese_conditions_after): Convert to
17285 sese_dom_walker::after_dom_children.
17286 (build_poly_scop): Adjust
17287 * tree-into-ssa.c (rewrite_dom_walker): New class
17288 (rewrite_enter_block): Convert to
17289 rewrite_dom_walker::before_dom_children.
17290 (rewrite_leave_block): Convert to
17291 rewrite_dom_walker::after_dom_children.
17292 (rewrite_update_dom_walker): New class.
17293 (rewrite_update_enter_block): Convert to
17294 rewrite_update_dom_walker::before_dom_children.
17295 (rewrite_update_leave_block): Convert to
17296 rewrite_update_dom_walker::after_dom_children.
17297 (rewrite_blocks, rewrite_into_ssa): Adjust.
17298 (mark_def_dom_walker): New class.
17299 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17300 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17301 (mark_def_sites_blocks): Convert to
17302 mark_def_dom_walker::before_dom_children.
17303 (mark_def_site_blocks): Remove.
17304 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17305 (tree_ssa_dominator_optimize): Adjust.
17306 (dom_thread_across_edge): Convert to method
17307 dom_opt_dom_walker::thread_across_edge.
17308 (dom_opt_enter_block): Convert to member function
17309 dom_opt_dom_walker::before_dom_children.
17310 (dom_opt_leave_block): Convert to member function
17311 dom_opt_dom_walker::after_dom_children.
17312 * tree-ssa-dse.c (dse_dom_walker): New class.
17313 (dse_enter_block): Convert to member function
17314 dse_dom_walker::before_dom_children.
17315 (tree_ssa_dse): Adjust.
17316 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17317 (determine_invariantness_stmt): Convert to method
17318 invariantness_dom_walker::before_dom_children.
17319 (determine_invariantness): Remove
17320 (move_computations_dom_walker): New class.
17321 (move_computations_stmt): Convert to method
17322 move_computations_dom_walker::before_dom_children.
17323 (move_computations, tree_ssa_lim): Adjust.
17324 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17325 (nt_init_block): Convert to method
17326 notrappping_dom_walker::before_dom_children.
17327 (nt_fini_block): Convert to method
17328 method nontrapping_dom_walker::after_dom_children.
17329 (get_non_trapping): Adjust.
17330 * tree-ssa-pre.c (eliminate_dom_walker): New class.
17331 (eliminate_bb): Convert to method
17332 eliminate_dom_walker::before_dom_children.
17333 (eliminate_leave_block): Convert to method
17334 eliminate_dom_walker::after_dom_children.
17335 (eliminate): Adjust.
17336 * tree-ssa-strlen.c (strlen_dom_walker): New class.
17337 (strlen_enter_block): Convert to method
17338 strlen_dom_walker::before_dom_children.
17339 (strlen_leave_block): Convert to method
17340 method strlen_dom_walker::after_dom_children.
17341 (tree_ssa_strlen): Adjust.
17342 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17343 (tree_ssa_uncprop): Adjust.
17344 (uncprop_leave_block): Convert to method
17345 uncprop_dom_walker::after_dom_children.
17346 (uncprop_leave_block): Convert to method
17347 uncprop_dom_walker::before_dom_children.
17348
17349 2013-09-18 Bin Cheng <bin.cheng@arm.com>
17350
17351 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17352 branch in same basic block. Check both src and dest of the move insn.
17353
17354 2013-09-17 Nick Clifton <nickc@redhat.com>
17355
17356 * config/rl78/rl78-real.md (bf): New pattern.
17357 (bt): New pattern.
17358 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17359 (rl78_print_operand): Do not put a # before a %B.
17360 * config/rl78/rl78.opt: Tweak doc strings.
17361
17362 2013-09-17 DJ Delorie <dj@redhat.com>
17363
17364 * config/rl78/constraints.md (Wcv): Allow up to $r31.
17365 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17366 (rl78_option_override): Likewise, if -mallregs.
17367 (is_virtual_register): Likewise.
17368 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17369 (REGNO_OK_FOR_BASE_P): Likewise.
17370 * config/rl78/rl78.opt (-mallregs): New.
17371
17372 2013-09-17 Nick Clifton <nickc@redhat.com>
17373
17374 * config/rl78/rl78.c (need_to_save): Change return type to bool.
17375 For interrupt functions: save all call clobbered registers if the
17376 interrupt handler is not a leaf function.
17377 (rl78_expand_prologue): Always recompute the frame information.
17378 For interrupt functions: only select bank 0 if one of the bank 0
17379 registers is going to be psuhed.
17380
17381 2013-09-17 DJ Delorie <dj@redhat.com>
17382
17383 * config/rl78/constraints.md: For each W* constraint, rename to C*
17384 and create a W* constraint that checks for an optional ES: prefix
17385 pattern also.
17386 * config/rl78/rl78.md (UNS_ES_ADDR): New.
17387 (es_addr): New. Used to wrap far addresses.
17388 * config/rl78/rl78-protos.h (rl78_es_addr): New.
17389 (rl78_es_base): New.
17390 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17391 wrapped far addresses.
17392 (rl78_print_operand_1): Unwrap far addresses before processing.
17393 (rl78_lo16): Wrap far addresses in unspecs.
17394 (rl78_es_addr): New.
17395 (rl78_es_base): New.
17396 (insn_ok_now): Check for not-yet-wrapped far addresses.
17397 (transcode_memory_rtx): Properly re-wrap far addresses.
17398
17399 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17400
17401 * config/sparc/t-rtems: Add leon3 multilibs.
17402
17403 2013-09-17 Cong Hou <congh@google.com>
17404
17405 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17406 when checking the dot production pattern. The type of rhs operand
17407 of multiply is now checked correctly.
17408
17409 2013-09-17 Jeff Law <law@redhat.com>
17410
17411 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17412 edge implied equivalences into successor phis.
17413 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17414 here from tree-ssa-threadedge.c.
17415 (mark_threaded_blocks): When threading through a joiner, if both
17416 successors of the joiner's clone reach the same block, verify the
17417 PHI arguments are equal. If not, cancel the jump threading request.
17418 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17419 tree-ssa-threadupdate.c
17420 (thread_across_edge): Don't check PHI argument equality when
17421 threading through joiner block here.
17422
17423 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
17424
17425 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17426 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17427 (warn_uninit, warn_uninitialized_vars,
17428 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17429 Move to tree-ssa-uninit.c.
17430 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17431 (has_undefined_value_p): New. Pass dependant parts of
17432 ssa_undefined_value_p.
17433 (uninit_undefined_value_p): Use has_undefined_value_p.
17434 (warn_uninit, warn_uninitialized_vars,
17435 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17436 Move from tree-ssa.c.
17437 * tree-ssa.h: Adjust prototypes.
17438
17439 2013-09-17 Jan Hubicka <jh@suse.cz>
17440
17441 PR middle-end/58332
17442 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17443 * ipa-inline.c (can_inline_edge_p): Do not downgrade
17444 FUNCTION_NOT_OPTIMIZED.
17445 * ipa-inline-analysis.c (compute_inline_parameters): Function
17446 not optimized is not inlinable unless it is alwaysinline.
17447 (inline_analyze_function): Force calls in not optimized
17448 function not inlinable.
17449
17450 2013-09-17 Jan Hubicka <jh@suse.cz>
17451
17452 PR middle-end/58329
17453 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17454 to return NULL.
17455 * ipa.c (function_and_variable_visibility): Likewise.
17456 * ipa-profile.c (ipa_profile): Likewise.
17457
17458 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
17459
17460 PR ipa/58398
17461 * cgraph.c (cgraph_function_body_availability): Check for ifunc
17462 attribute, and don't inline the resolver in this case.
17463
17464 2013-09-17 Teresa Johnson <tejohnson@google.com>
17465
17466 * coverage.c (get_coverage_counts): Add missing newline.
17467
17468 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17469
17470 PR tree-optimization/58088
17471 * fold-const.c (mask_with_trailing_zeros): New function.
17472 (fold_binary_loc): Make sure we don't recurse infinitely
17473 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17474 Use mask_with_trailing_zeros where appropriate.
17475
17476 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17477
17478 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17479 of 'prev' var to get better distance estimation.
17480
17481 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17482
17483 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17484 * tree-inline.c (is_parameter_of): New predicate.
17485 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17486 a parameter has been remapped.
17487 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17488 (optimize_inline_calls): Initialize transform_parameter.
17489 (copy_gimple_seq_and_replace_locals): Likewise.
17490 (tree_function_versioning): Likewise.
17491 (maybe_inline_call_in_expr): Likewise.
17492
17493 2013-09-17 Nick Clifton <nickc@redhat.com>
17494
17495 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17496 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17497 interrupt handlers.
17498 (is_attr_func): New function.
17499 (msp430_is_interrupt_func): New function.
17500 (is_naked_func): New function.
17501 (is_reentrant_func): New function.
17502 (is_critical_func): New function.
17503 (msp430_start_function): Add annotations for function attributes.
17504 (msp430_attr): New function.
17505 (msp430_attribute_table): New.
17506 (msp430_function_section): New function.
17507 (TARGET_ASM_FUNCTION_SECTION): Define.
17508 (msp430_builtin): New enum.
17509 (msp430_init_builtins): New function.
17510 (msp430_builtin_devl): New function.
17511 (msp430_expand_builtin): New function.
17512 (TARGET_INIT_BUILTINS): Define.
17513 (TARGET_EXPAND_BUILTINS): Define.
17514 (TARGET_BUILTIN_DECL): Define.
17515 (msp430_expand_prologue): Add support for naked, interrupt,
17516 critical and reentrant functions.
17517 (msp430_expand_epilogue): Likewise.
17518 (msp430_print_operand): Handle 'O' character.
17519 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17520 NO_TRAMPOLINES.
17521 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17522 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17523 (pushm): Use a 'n' rather than an 'i' constraint.
17524 (msp_return): Add generation of the interrupt return instruction.
17525 (disable_interrupts): New pattern.
17526 (enable_interrupts): New pattern.
17527 (push_intr_state): New pattern.
17528 (pop_intr_state): New pattern.
17529 (bic_SR): New pattern.
17530 (bis_SR): New pattern.
17531 * doc/extend.texi: Document MSP430 function attributes and builtin
17532 functions.
17533
17534 2013-09-17 Richard Biener <rguenther@suse.de>
17535
17536 PR tree-optimization/58432
17537 * tree-loop-distribution.c (tree_loop_distribution): Also
17538 scan PHIs for outside loop uses and seed a partition from them.
17539
17540 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17541
17542 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17543 (restructure_reference): Call backtrace_base_for_ref.
17544
17545 2013-09-17 Alan Modra <amodra@gmail.com>
17546
17547 PR target/57589
17548 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17549 patch.
17550
17551 2013-09-16 DJ Delorie <dj@redhat.com>
17552
17553 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17554 vregs location for RL78/G10.
17555 (rl78_expand_prologue): Avoid SEL on G10.
17556 (rl78_expand_epilogue): Likewise.
17557 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17558 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17559 __RL78_G10__ when appropriate.
17560 (ASM_SPEC): Pass -mg10 along to the assembler.
17561 * config/rl78/rl78.md (sel_rb): Disable for G10.
17562 * config/rl78/rl78.opt: Add -mg10 option.
17563 * config/rl78/t-rl78: Add -mg10 multilib.
17564
17565 2013-09-16 Xinliang David Li <davidxl@google.com>
17566
17567 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17568 * omp-low.c (omp_max_vf): Ditto.
17569 (expand_omp_simd): Ditto.
17570 * tree-vectorizer.c (vectorize_loops): Ditto.
17571 (gate_vect_slp): Ditto.
17572 (gate_increase_alignment): Ditto.
17573 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17574 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17575 (gate_tree_vectorize): Name change.
17576 (tree_vectorize): Ditto.
17577 (pass_vectorize::gate): Call new function.
17578 (pass_vectorize::execute): Ditto.
17579 * opts.c: O3 default setting change.
17580 (finish_options): Check new flag.
17581 * doc/invoke.texi: Document new flags.
17582 * common.opt: New flags.
17583
17584 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17585
17586 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17587 (Condition Code): Don't reference it.
17588 * doc/tm.texi: Regenerate.
17589
17590 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17591
17592 PR middle-end/58418
17593 * lra-constraints.c (undo_optional_reloads): Consider all optional
17594 reload even if it did not get a hard reg.
17595
17596 2013-09-16 Teresa Johnson <tejohnson@google.com>
17597
17598 * dumpfile.c (dump_loc): Remove newline emission.
17599 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17600 emission to dump_printf_loc calls where missing.
17601 (vect_mark_for_runtime_alias_test): Ditto.
17602 (vect_analyze_data_ref_dependence): Ditto.
17603 (vect_analyze_data_ref_dependences): Ditto.
17604 (vect_slp_analyze_data_ref_dependence): Ditto.
17605 (vect_slp_analyze_data_ref_dependences): Ditto.
17606 (vect_compute_data_ref_alignment): Ditto.
17607 (vect_update_misalignment_for_peel): Ditto.
17608 (vect_verify_datarefs_alignment): Ditto.
17609 (vector_alignment_reachable_p): Ditto.
17610 (vect_get_data_access_cost): Ditto.
17611 (vect_enhance_data_refs_alignment): Ditto.
17612 (vect_find_same_alignment_drs): Ditto.
17613 (vect_analyze_data_refs_alignment): Ditto.
17614 (vect_analyze_group_access): Ditto.
17615 (vect_analyze_data_ref_access): Ditto.
17616 (vect_analyze_data_ref_accesses): Ditto.
17617 (vect_prune_runtime_alias_test_list): Ditto.
17618 (vect_analyze_data_refs): Ditto.
17619 (vect_create_addr_base_for_vector_ref): Ditto.
17620 (vect_create_data_ref_ptr): Ditto.
17621 (vect_grouped_store_supported): Ditto.
17622 (vect_grouped_load_supported): Ditto.
17623 * value-prof.c (check_counter): Ditto.
17624 (check_ic_target): Ditto.
17625 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17626 (vect_recog_widen_mult_pattern): Ditto.
17627 (vect_recog_widen_sum_pattern): Ditto.
17628 (vect_recog_over_widening_pattern): Ditto.
17629 (vect_recog_widen_shift_pattern): Ditto.
17630 (vect_recog_rotate_pattern): Ditto.
17631 (vect_recog_vector_vector_shift_pattern): Ditto.
17632 (vect_recog_divmod_pattern): Ditto.
17633 (vect_recog_mixed_size_cond_pattern): Ditto.
17634 (vect_recog_bool_pattern): Ditto.
17635 (vect_pattern_recog_1): Ditto.
17636 (vect_pattern_recog): Ditto.
17637 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17638 (vect_is_simple_iv_evolution): Ditto.
17639 (vect_analyze_scalar_cycles_1): Ditto.
17640 (vect_get_loop_niters): Ditto.
17641 (vect_analyze_loop_1): Ditto.
17642 (vect_analyze_loop_form): Ditto.
17643 (vect_analyze_loop_operations): Ditto.
17644 (vect_analyze_loop_2): Ditto.
17645 (vect_analyze_loop): Ditto.
17646 (report_vect_op): Ditto.
17647 (vect_is_slp_reduction): Ditto.
17648 (vect_is_simple_reduction_1): Ditto.
17649 (vect_get_known_peeling_cost): Ditto.
17650 (vect_estimate_min_profitable_iters): Ditto.
17651 (vect_model_reduction_cost): Ditto.
17652 (vect_model_induction_cost): Ditto.
17653 (get_initial_def_for_induction): Ditto.
17654 (vect_create_epilog_for_reduction): Ditto.
17655 (vectorizable_reduction): Ditto.
17656 (vectorizable_induction): Ditto.
17657 (vectorizable_live_operation): Ditto.
17658 (vect_loop_kill_debug_uses): Ditto.
17659 (vect_transform_loop): Ditto.
17660 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17661 (vect_stmt_relevant_p): Ditto.
17662 (process_use): Ditto.
17663 (vect_mark_stmts_to_be_vectorized): Ditto.
17664 (vect_model_simple_cost): Ditto.
17665 (vect_model_promotion_demotion_cost): Ditto.
17666 (vect_model_store_cost): Ditto.
17667 (vect_get_store_cost): Ditto.
17668 (vect_model_load_cost): Ditto.
17669 (vect_get_load_cost): Ditto.
17670 (vect_init_vector_1): Ditto.
17671 (vect_get_vec_def_for_operand): Ditto.
17672 (vect_finish_stmt_generation): Ditto.
17673 (vectorizable_call): Ditto.
17674 (vectorizable_conversion): Ditto.
17675 (vectorizable_assignment): Ditto.
17676 (vectorizable_shift): Ditto.
17677 (vectorizable_operation): Ditto.
17678 (vectorizable_store): Ditto.
17679 (vectorizable_load): Ditto.
17680 (vectorizable_condition): Ditto.
17681 (vect_analyze_stmt): Ditto.
17682 (vect_transform_stmt): Ditto.
17683 (vect_is_simple_use): Ditto.
17684 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17685 (vect_can_advance_ivs_p): Ditto.
17686 (vect_update_ivs_after_vectorizer): Ditto.
17687 (vect_do_peeling_for_loop_bound): Ditto.
17688 (vect_gen_niters_for_prolog_loop): Ditto.
17689 (vect_update_inits_of_drs): Ditto.
17690 (vect_create_cond_for_alias_checks): Ditto.
17691 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17692 (vect_build_slp_tree_1): Ditto.
17693 (vect_supported_load_permutation_p): Ditto.
17694 (vect_analyze_slp_instance): Ditto.
17695 (vect_analyze_slp): Ditto.
17696 (vect_make_slp_decision): Ditto.
17697 (vect_detect_hybrid_slp): Ditto.
17698 (vect_bb_vectorization_profitable_p): Ditto.
17699 (vect_slp_analyze_bb_1): Ditto.
17700 (vect_update_slp_costs_according_to_vf): Ditto.
17701 (vect_get_mask_element): Ditto.
17702 (vect_transform_slp_perm_load): Ditto.
17703 (vect_schedule_slp_instance): Ditto.
17704 (vect_schedule_slp): Ditto.
17705 (vect_slp_transform_bb): Ditto.
17706 * profile.c (read_profile_edge_counts): Ditto.
17707 (compute_branch_probabilities): Ditto.
17708 * coverage.c (get_coverage_counts): Ditto.
17709
17710 2013-09-16 Diego Novillo <dnovillo@google.com>
17711
17712 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17713
17714 2013-09-16 Jan Hubicka <jh@suse.cz>
17715
17716 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17717 abstract functions; for static functions check the presence of body.
17718
17719 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17720
17721 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17722 * config/aarch64/aarch64-simd.md
17723 (aarch64_mla_elt<mode>): New.
17724 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17725 (aarch64_mls_elt<mode>): Likewise.
17726 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17727 (aarch64_fma4_elt<mode>): Likewise.
17728 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17729 (aarch64_fma4_elt_to_128v2df): Likewise.
17730 (aarch64_fma4_elt_to_64df): Likewise.
17731 (fnma<mode>4): Likewise.
17732 (aarch64_fnma4_elt<mode>): Likewise.
17733 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17734 (aarch64_fnma4_elt_to_128v2df): Likewise.
17735 (aarch64_fnma4_elt_to_64df): Likewise.
17736 * config/aarch64/iterators.md (VDQSF): New.
17737 * config/aarch64/arm_neon.h
17738 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17739 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17740
17741 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17742
17743 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17744 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17745 (aarch64_mul3_elt_to_128df): Likewise.
17746 (aarch64_mul3_elt_to_64v2df): Likewise.
17747 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17748 (VMUL): New.
17749 (VMUL_CHANGE_NLANES) Likewise.
17750 (h_con): Likewise.
17751 (f): Likewise.
17752 * config/aarch64/arm_neon.h
17753 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17754
17755 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17756
17757 * config/aarch64/arm_neon.h
17758 (vcvtx_high_f32_f64): Fix parameters.
17759
17760 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17761 Uros Bizjak <ubizjak@gmail.com>
17762
17763 * config/alpha.c: Include tree-ssanames.h.
17764
17765 2013-09-16 Richard Biener <rguenther@suse.de>
17766
17767 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17768 (dot_rdg_1): Handle control_dd.
17769 (create_edge_for_control_dependence): New function.
17770 (create_rdg_edges): Add control dependences if asked for.
17771 (build_rdg): Likewise.
17772 (generate_loops_for_partition): If there are not necessary
17773 control stmts remove all their dependencies.
17774 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17775 (distribute_loop): Pass on control dependences.
17776 (tree_loop_distribution): Compute control dependences and remove
17777 restriction on number of loop nodes.
17778
17779 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17780
17781 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17782 for internal calls.
17783
17784 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17785
17786 * cse.c (try_const_anchors): Punt on CC modes.
17787
17788 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17789
17790 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17791
17792 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17793
17794 PR target/58382
17795 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17796 calls to word_mode.
17797
17798 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17799
17800 PR target/48094
17801 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17802 seen.
17803 (darwin_objc1_section): Likewise.
17804 (darwin_file_end): Emit Image Info section when required.
17805
17806 2013-09-14 Jan Hubicka <jh@suse.cz>
17807
17808 * tree-into-ssa.c (gate_into_ssa): New.
17809 (pass_data_build_ssa): Use it.
17810 * cgraph.h (expand_thunk): Update prototype.
17811 * cgraphunit.c (analyze_function): Expand thunks early.
17812 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17813 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17814 set lowered flag; do not add new function.
17815 (assemble_thunks_and_aliases): Update.
17816 * tree-ssa.c (gate_init_datastructures): New gate.
17817 (pass_data_init_datastructures): Use it.
17818
17819 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17820
17821 PR target/58269
17822 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17823 xmm register set described in the psABI.
17824
17825 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17826
17827 * dwarf2out.c (should_emit_struct_debug): Add check
17828 for type_decl variable is not NULL.
17829
17830 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17831
17832 * config.gcc: Use new winnt-c.c target hooks
17833 * config/t-winnt: New file
17834 * config/winnt-c.c: New file
17835 * doc/tm.texi.in: Document new hook
17836 * doc/tm.texi: Regenerated
17837
17838 2013-09-13 Jan Hubicka <jh@suse.cz>
17839
17840 PR middle-end/58094
17841 * ipa-inline.c (check_callers): New function.
17842 (check_caller_edge): Remove.
17843 (want_inline_function_to_all_callers_p): Also permit alises that are
17844 called dirrectly.
17845 (inline_to_all_callers): Terminate the walk when devirtualization
17846 introduce new calls.
17847
17848 2013-09-13 Jan Hubicka <jh@suse.cz>
17849
17850 * ipa-inline-analysis.c (struct growth_data): Add node.
17851 (do_estimate_growth_1): Fix detection of recursion.
17852
17853 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17854
17855 PR tree-optimization/58392
17856 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17857 to avoid shadowing of outer loop variable. If
17858 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17859 replace_by_duplicate_decl simduid of loops that have it set and
17860 set dest_cfun->has_simduid_loops and/or
17861 dest_cfun->has_force_vect_loops.
17862 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17863 instead of maybe_lookup_decl.
17864 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17865 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17866 call. Copy over force_vect and copy and remap simduid. Set
17867 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17868 (copy_cfg_body): Remove blocks_to_copy argument. Use
17869 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17870 caller. Don't set cfun->has_simduid_loops and/or
17871 cfun->has_force_vect_loops here.
17872 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17873 caller.
17874 (expand_call_inline, tree_function_versioning): Adjust copy_body
17875 callers.
17876
17877 2013-09-13 Martin Jambor <mjambor@suse.cz>
17878
17879 PR bootstrap/58388
17880 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17881 the assert if the edge was a speculative one.
17882
17883 2013-09-13 Richard Biener <rguenther@suse.de>
17884
17885 * tree-data-ref.h (known_dependences_p): Move here ...
17886 * tree-loop-distribution.c (known_dependences_p): ... from here.
17887 (dump_rdg_component, debug_rdg_component): Remove.
17888 (dump_rdg): Adjust.
17889 (generate_loops_for_partition): Use gimple_uid instead of
17890 relying on matching stmt visit order.
17891 (rdg_build_partitions): Take starting stmt vector.
17892 (ldist_gen): Merge into ...
17893 (distribute_loop): ... this function. Do not compute starting
17894 vertices vector.
17895 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17896
17897 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17898
17899 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17900 Set type attribute correctly. Set predicable_short_it attribute.
17901 (cmpsi_shiftsi): Remove %? from output template.
17902
17903 2013-09-13 Richard Biener <rguenther@suse.de>
17904
17905 * tree-loop-distribution.c (struct rdg_component,
17906 rdg_defs_used_in_other_loops_p, free_rdg_components,
17907 rdg_build_components): Remove.
17908 (stmts_from_loop): Do not record virtual PHIs.
17909 (generate_loops_for_partition): Skip virtual PHIs.
17910 (build_rdg_partition_for_component): Rename to ...
17911 (build_rdg_partition_for_vertex): ... this and adjust.
17912 (rdg_build_partitions): Take a vector of starting vertices
17913 instead of components. Remove unnecessary leftover handling.
17914 (ldist_gen): Do not build components or record other stores.
17915 (distribute_loop): Do not distribute loops containing stmts
17916 with side-effects.
17917
17918 2013-09-13 Christian Bruel <christian.bruel@st.com>
17919
17920 PR target/58314
17921 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17922
17923 2013-09-13 Kai Tietz <ktietz@redhat.com>
17924
17925 * config.gcc: Separate cases for mingw and cygwin targets,
17926 and add 64-bit cygwin target case.
17927
17928 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17929 dll-export inline-functions.
17930 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17931
17932 2013-09-13 Jeff Law <law@redhat.com>
17933
17934 PR middle-end/58387
17935 Revert:
17936 2013-09-06 Jeff Law <law@redhat.com>
17937
17938 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17939 edge implied equivalences into successor phis.
17940
17941 2013-09-12 DJ Delorie <dj@redhat.com>
17942
17943 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17944 separators.
17945
17946 2013-09-12 Brooks Moses <bmoses@google.com>
17947
17948 PR driver/42955
17949 * Makefile.in: Do not install driver binaries in $(target)/bin.
17950
17951 2013-09-12 DJ Delorie <dj@redhat.com>
17952
17953 * config/rl78/rl78.opt (mrelax): New.
17954 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17955 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17956
17957 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17958 between SP and FP.
17959 (rl78_expand_epilogue): Likewise.
17960
17961 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17962
17963 PR middle-end/58335
17964 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17965 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17966 pointer elimination with using remove_reg_equal_offset_note.
17967
17968 2013-09-12 DJ Delorie <dj@redhat.com>
17969
17970 * config/msp430/: New port.
17971 * config.gcc (msp430): Added.
17972 * doc/invoke.texi: Document MSP430 options.
17973 * doc/install.texi: Document msp430-elf
17974 * doc/md.texi: Document msp430-elf
17975 * doc/contrib.texi: Document msp430-elf
17976
17977 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17978 PSImode.
17979
17980 2013-09-12 Martin Jambor <mjambor@suse.cz>
17981
17982 PR ipa/58389
17983 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17984 reference descriptor is NULL.
17985 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17986 edge to NULL.
17987
17988 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17989
17990 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17991 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17992 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17993 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17994 make_temp_ssa_name): move to tree-ssanames.h
17995 * tree-ssa-alias.h: Move prototype.
17996 * tree-ssa.h: Include tree-ssanames.h.
17997 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17998 * tree-ssanames.h: New. Move items from tree-flow*.h
17999 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
18000
18001 2013-09-12 Richard Biener <rguenther@suse.de>
18002
18003 PR tree-optimization/58404
18004 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18005 propagate non-invariant addresses into dereferences wrapped
18006 in component references.
18007
18008 2013-09-12 Richard Biener <rguenther@suse.de>
18009
18010 PR tree-optimization/58402
18011 * passes.def: Move pass_late_warn_uninitialized later.
18012
18013 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18014
18015 * tree-ssa.h: New. Move content from tree-flow.h and
18016 tree-flow-inline.h.
18017 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
18018 Move prototypes belonging to tree-ssa.c.
18019 * tree-flow-inline.h (redirect_edge_var_map_def,
18020 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
18021 tree-ssa.h.
18022 * gimple.h: Adjust prototypes.
18023 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
18024 to...
18025 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
18026 * tree.h: Move prototype to tree-ssa.h.
18027 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
18028 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18029 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18030 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18031 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18032 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18033 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18034 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18035 graphite-blocking.c, graphite-clast-to-gimple.c,
18036 graphite-dependences.c, graphite-interchange.c,
18037 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18038 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18039 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18040 ipa-reference.c, ipa-split.c, ipa-utils.c,
18041 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18042 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18043 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18044 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18045 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18046 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18047 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18048 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18049 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18050 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18051 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18052 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18053 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18054 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18055 value-prof.c, var-tracking.c,
18056 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18057
18058 2013-09-12 Richard Biener <rguenther@suse.de>
18059
18060 PR tree-optimization/58396
18061 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18062 (build_rdg): Take a loop-nest parameter, fix memleaks.
18063 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18064
18065 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18066
18067 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18068 for SLM.
18069
18070 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
18071
18072 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18073 The FMA instruction names should have a 'v' prefix.
18074
18075 2013-09-12 Richard Biener <rguenther@suse.de>
18076
18077 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18078 (dot_rdg): Use popen instead of system in optional code.
18079 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18080 (already_processed_vertex_p): Adjust.
18081 (has_anti_or_output_dependence, predecessor_has_mem_write,
18082 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18083 rdg_flag_uses): Remove.
18084 (rdg_flag_vertex): Simplify.
18085 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18086 remove recursion.
18087 (build_rdg_partition_for_component): Process the first vertex
18088 of a component only.
18089 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18090
18091 2013-09-12 Alan Modra <amodra@gmail.com>
18092
18093 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18094
18095 2013-09-11 DJ Delorie <dj@redhat.com>
18096 Nick Clifton <nickc@redhat.com>
18097
18098 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18099 (rl78_stack_based_mem): New.
18100 * config/rl78/constraints.md (Iv08): New.
18101 (Iv16): New.
18102 (Iv24): New.
18103 (Is09): New.
18104 (Is17): New.
18105 (Is25): New.
18106 (ISsi): New.
18107 (IShi): New.
18108 (ISqi): New.
18109 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18110 (movhi): Likewise.
18111 (movsi): Change from expand to insn-and-split.
18112 (ashrsi3): Clobber AX.
18113 (lshrsi3): New.
18114 (ashlsi3): New.
18115 (cbranchsi4): New.
18116 * config/rl78/rl78.md (CC_REG): Fix.
18117 (addsi3): Allow memory and immediate operands.
18118 (addsi3_internal): Split into...
18119 (addsi3_internal_virt): ...new, and ...
18120 (addsi3_internal_real): ...new.
18121 (subsi): New.
18122 (subsi3_internal_virt): New.
18123 (subsi3_internal_real): New.
18124 (mulsi3): Add memory operand.
18125 (mulsi3_rl78): Likewise.
18126 (mulsi3_g13): Likewise.
18127 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18128 (cbranchqi4_real): Add more constraint options.
18129 (cbranchhi4_real): Expand pattern.
18130 (cbranchhi4_real_signed): New.
18131 (cbranchhi4_real_inverted): New.
18132 (cbranchsi4_real_lt): New.
18133 (cbranchsi4_real_ge): New.
18134 (cbranchsi4_real_signed): New.
18135 (cbranchsi4_real): New.
18136 (peephole2): New.
18137 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18138 constant shifts.
18139 (lshrsi3_virt): Likewise.
18140 (ashlsi3_virt): Likewise.
18141 (cbranchqi4_virt_signed): New.
18142 (cbranchhi4_virt_signed): New.
18143 (cbranchsi4_virt): New.
18144 * config/rl78/rl78.c: Whitespace fixes throughout.
18145 (move_elim_pass): New.
18146 (pass_data_rl78_move_elim): New.
18147 (pass_rl78_move_elim): New.
18148 (make_pass_rl78_move_elim): New.
18149 (rl78_devirt_info): Run devirt earlier.
18150 (rl78_move_elim_info): New.
18151 (rl78_asm_file_start): Register it.
18152 (rl78_split_movsi): New.
18153 (rl78_as_legitimate_address): Allow virtual base registers when
18154 appropriate.
18155 (rl78_addr_space_convert): Remove spurious debug stuff.
18156 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18157 (rl78_print_operand): More cases for not printing '#'.
18158 (rl78_expand_compare): Remove most of the logic.
18159 (content_memory): New.
18160 (clear_content_memory): New.
18161 (get_content_index): New.
18162 (get_content_name): New.
18163 (display_content_memory): New.
18164 (update_content): New.
18165 (record_content): New.
18166 (already_contains): New.
18167 (insn_ok_now): Re-recog insns with virtual registers.
18168 (add_postponed_content_update): New.
18169 (process_postponed_content_update): New.
18170 (gen_and_emit_move): New.
18171 (transcode_memory_rtx): Record new location content.
18172 Use gen_and_emit_move.
18173 (force_into_acc): New.
18174 (move_to_acc): Use gen_and_emit_move.
18175 (move_from_acc): Likewise.
18176 (move_acc_to_reg): Likewise.
18177 (move_to_x): Likewise.
18178 (move_to_hl): Likewise.
18179 (move_to_de): Likewise.
18180 (rl78_alloc_physical_registers_op1): Record location content.
18181 (has_constraint): New.
18182 (rl78_alloc_physical_registers_op2): Record location content.
18183 Optimize use of HL.
18184 (rl78_alloc_physical_registers_ro1): Likewise.
18185 (rl78_alloc_physical_registers_cmp): Likewise.
18186 (rl78_alloc_physical_registers_umul): Likewise.
18187 (rl78_alloc_address_registers_macax): New.
18188 (rl78_alloc_physical_registers): Initialize and set location
18189 content memory as needed.
18190 (rl78_reorg): Make sure split2 is called.
18191 (rl78_rtx_costs): New.
18192
18193 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
18194
18195 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18196 for (not (neg ...)) and (neg (not ...)) cases.
18197
18198 2013-09-11 Richard Biener <rguenther@suse.de>
18199
18200 PR middle-end/58377
18201 * passes.def: Split critical edges before late uninit warning passes.
18202 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18203
18204 2013-09-11 Jakub Jelinek <jakub@redhat.com>
18205
18206 PR tree-optimization/58385
18207 * fold-const.c (build_range_check): If both low and high are NULL,
18208 use omit_one_operand_loc to preserve exp side-effects.
18209
18210 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18211
18212 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18213
18214 2013-09-11 Richard Biener <rguenther@suse.de>
18215
18216 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18217 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18218 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18219 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18220 stmts_from_loop, known_dependences_p, build_empty_rdg,
18221 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18222 * tree-loop-distribution.c: ... here.
18223 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18224 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18225 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18226 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18227 * tree-loop-distribution.c: ... here.
18228 * tree-loop-distribution.c: Include gimple-pretty-print.h.
18229 (struct partition_s): Add loops member.
18230 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18231 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18232 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18233
18234 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18235 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18236 Sergey Lega <sergey.s.lega@intel.com>
18237 Anna Tikhonova <anna.tikhonova@intel.com>
18238 Ilya Tocar <ilya.tocar@intel.com>
18239 Andrey Turetskiy <andrey.turetskiy@intel.com>
18240 Ilya Verbin <ilya.verbin@intel.com>
18241 Kirill Yukhin <kirill.yukhin@intel.com>
18242 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18243
18244 * config/i386/constraints.md (k): New.
18245 (Yk): Ditto.
18246 * config/i386/i386.c (const regclass_map): Add new mask registers.
18247 (dbx_register_map): Ditto.
18248 (dbx64_register_map): Ditto.
18249 (svr4_dbx_register_map): Ditto.
18250 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18251 disabled.
18252 (ix86_preferred_reload_class): Disable constants for mask registers.
18253 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18254 (ix86_hard_regno_mode_ok): Support new mask registers.
18255 (x86_order_regs_for_local_alloc): Ditto.
18256 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18257 (FIXED_REGISTERS): Add new mask registers.
18258 (CALL_USED_REGISTERS): Ditto.
18259 (REG_ALLOC_ORDER): Ditto.
18260 (VALID_MASK_REG_MODE): New.
18261 (FIRST_MASK_REG): Ditto.
18262 (LAST_MASK_REG): Ditto.
18263 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18264 (MAYBE_MASK_CLASS_P): New.
18265 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18266 (REG_CLASS_CONTENTS): Ditto.
18267 (MASK_REGNO_P): New.
18268 (ANY_MASK_REG_P): Ditto.
18269 (HI_REGISTER_NAMES): Add new mask registers.
18270 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18271 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18272 mask registers.
18273 (attribute "type"): Add mskmov, msklog.
18274 (attribute "length_immediate"): Support them.
18275 (attribute "memory"): Ditto.
18276 (attribute "prefix_0f"): Ditto.
18277 (*movhi_internal): Support new mask registers.
18278 (*movqi_internal): Ditto.
18279 (define_split): Split out clobber pattern is a logic
18280 insn on mask registers.
18281 (*k<logic><mode>): New.
18282 (*andhi_1): Extend to support mask regs.
18283 (*andqi_1): Extend to support mask regs.
18284 (kandn<mode>): New.
18285 (define_split): Split and-not to and and not if operands
18286 are not mask regs.
18287 (*<code><mode>_1): Separate HI mode to new pattern...
18288 (*<code>hi_1): This.
18289 (*<code>qi_1): Extend to support mask regs.
18290 (kxnor<mode>): New.
18291 (kortestzhi): Ditto.
18292 (kortestchi): Ditto.
18293 (kunpckhi): Ditto.
18294 (*one_cmpl<mode>2_1): Remove HImode and handle it...
18295 (*one_cmplhi2_1): ...Here, now with mask registers support.
18296 (*one_cmplqi2_1): Support new mask registers.
18297 (HI/QImode arithmetics splitter): Don't split if mask registers
18298 are used.
18299 (HI/QImode not splitter): Ditto.
18300 * config/i386/predicated.md (mask_reg_operand): New.
18301 (general_reg_operand): Ditto.
18302
18303 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18304
18305 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18306 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18307
18308 2013-09-10 Jeff Law <law@redhat.com>
18309
18310 PR tree-optimization/58380
18311 * tree-ssa-threadupdate.c (thread_block): Recognize another case
18312 of threading through a buried loop header.
18313
18314 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18315 return value for single successor case.
18316
18317 2013-09-10 Jan Hubicka <jh@suse.cz>
18318
18319 * ipa-devirt.c (ipa_devirt): Enable with LTO.
18320
18321 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
18322
18323 PR target/58361
18324 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18325 support conditional execution.
18326 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18327
18328 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
18329
18330 * lra.c (lra): Clear lra_optional_reload_pseudos before every
18331 constraint pass.
18332 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18333 Check destination too to check move insn.
18334 (undo_optional_reloads): Add check that the original peudo did not
18335 changed its allocation and the optional reload was inherited on last
18336 inheritance pass. Break loop after deciding to keep optional reload.
18337 (lra_undo_inheritance): Add check that inherited pseudo still in
18338 memory.
18339
18340 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
18341
18342 * config/aarch64/aarch64.md (generic_sched): New.
18343 * config/aarch64/aarch64-generic.md (load): Make conditional
18344 on generic_sched attribute.
18345 (nonload): Likewise.
18346
18347 2013-09-10 Jan Hubicka <jh@suse.cz>
18348
18349 * lto-cgraph.c: Include ipa-utils.h.
18350 (compute_ltrans_boundary): Also add possible targets into the boundary.
18351
18352 2013-09-10 Jan Hubicka <jh@suse.cz>
18353
18354 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18355 VAR_DECL of vtable rather than full expression.
18356
18357 2013-09-10 Jan Hubicka <jh@suse.cz>
18358 Paolo Carlini <paolo.carlini@oracle.com>
18359
18360 * cgraphunit.c (analyze_functions): Save input_location, set it
18361 to UNKNOWN_LOCATION and restore it at the end.
18362
18363 2013-09-10 Martin Jambor <mjambor@suse.cz>
18364
18365 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18366 represented by a thunk.
18367
18368 2013-09-10 Jeff Law <law@redhat.com>
18369
18370 PR tree-optimization/58343
18371 * tree-ssa-threadupdate.c (thread_block): Identify and disable
18372 jump threading requests through loop headers buried in the middle
18373 of a jump threading path.
18374
18375 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18376 in return value/type.
18377
18378 2013-09-10 Jakub Jelinek <jakub@redhat.com>
18379
18380 PR rtl-optimization/58365
18381 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18382 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18383 it differs.
18384
18385 2013-09-10 Richard Biener <rguenther@suse.de>
18386
18387 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18388 * tree-data-ref.c (create_rdg_vertices): Collect all data
18389 references, signal failure to the caller, use data-ref API.
18390 (build_rdg): Compute data references only once. Maintain lifetime
18391 of data references and data dependences from within RDG.
18392 (free_rdg): Free dependence relations.
18393 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18394 inventing extra dependences.
18395 (distribute_loop): Update for RDG API changes.
18396
18397 2013-09-10 Kai Tietz <ktietz@redhat.com>
18398
18399 * doc/invoke.texi (fms-extensions): Document changed
18400 behavior for ms-abi targets.
18401 * config/i386/i386.c (ix86_option_override_internal):
18402 Set default value of option -fms-extension for ms-abi targets.
18403
18404 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18405
18406 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18407
18408 2013-09-10 Alan Modra <amodra@gmail.com>
18409
18410 PR target/58330
18411 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18412
18413 2013-09-10 Alan Modra <amodra@gmail.com>
18414
18415 * config/rs6000/predicates.md (add_cint_operand): New.
18416 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18417 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18418 using add_cint_operand.
18419 (largetoc_high_plus_aix): Likewise.
18420
18421 2013-09-09 Jakub Jelinek <jakub@redhat.com>
18422
18423 PR tree-optimization/58364
18424 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18425 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18426 the current range can't be an unconditional true or false.
18427
18428 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
18429
18430 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18431
18432 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
18433
18434 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18435
18436 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
18437
18438 PR c++/43452
18439 * doc/invoke.texi (-Wdelete-incomplete): Document it.
18440
18441 2013-09-09 Ian Bolton <ian.bolton@arm.com>
18442
18443 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18444 NO_REGS for immediate that can't be moved directly into FP_REGS.
18445
18446 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18447
18448 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18449 comparison with negated operand.
18450 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18451 RTL form.
18452
18453 2013-09-09 Richard Biener <rguenther@suse.de>
18454
18455 PR middle-end/58326
18456 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18457 of a subloop record all its block as affecting loop-closed SSA form.
18458
18459 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18460
18461 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18462 of an rtx/bitpos pair.
18463 (store_fixed_bit_field): Update accordingly.
18464
18465 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18466
18467 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18468 GEN_INT.
18469 * builtins.c (expand_errno_check): Likewise.
18470 * dwarf2cfi.c (init_return_column_size): Likewise.
18471 * except.c (sjlj_mark_call_sites): Likewise.
18472 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18473 * lra-constraints.c (emit_inc): Likewise.
18474 * ree.c (combine_set_extension): Likewise.
18475 * regmove.c (fixup_match_2): Likewise.
18476 * reload1.c (inc_for_reload): Likewise.
18477
18478 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18479
18480 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18481 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18482 Use gen_int_mode with the mode of the associated simplify_* call.
18483 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18484 * expmed.c (expand_shift_1): Likewise.
18485 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18486 * loop-iv.c (iv_number_of_iterations): Likewise.
18487 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18488 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18489
18490 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18491
18492 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18493 of the associated expand_* call.
18494 (asan_emit_stack_protection): Likewise.
18495 * builtins.c (round_trampoline_addr): Likewise.
18496 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18497 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18498 (emit_store_flag): Likewise.
18499 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18500 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18501 Likewise.
18502 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18503 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18504 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18505 * modulo-sched.c (generate_prolog_epilog): Likewise.
18506 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18507 (expand_ctz, expand_ffs, expand_unop): Likewise.
18508
18509 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18510
18511 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18512 of the associated gen_rtx_* call.
18513 * caller-save.c (init_caller_save): Likewise.
18514 * combine.c (find_split_point, make_extraction): Likewise.
18515 (make_compound_operation): Likewise.
18516 * dwarf2out.c (mem_loc_descriptor): Likewise.
18517 * explow.c (plus_constant, probe_stack_range): Likewise.
18518 * expmed.c (expand_mult_const): Likewise.
18519 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18520 * reload1.c (init_reload): Likewise.
18521 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18522 * var-tracking.c (adjust_mems): Likewise.
18523 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18524 rather than gen_rtx_fmt_ee.
18525
18526 2013-09-09 Jan Hubicka <jh@suse.cz>
18527
18528 PR middle-end/58294
18529 * value-prof.c (gimple_ic): Copy also abnormal edges.
18530
18531 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18532
18533 * asan.c (asan_shadow_cst): Use gen_int_mode.
18534
18535 2013-09-08 Jan Hubicka <jh@suse.cz>
18536
18537 * ipa-profile.c: Add toplevel comment.
18538 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18539 (contains_hot_call_p): New function.
18540 (ipa_propagate_frequency): Set frequencies based on counts when
18541 profile is read.
18542 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18543 profile; do not tamper with profile after inlining if it is read.
18544
18545 2013-09-08 Jan Hubicka <jh@suse.cz>
18546
18547 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18548 speculative edges.
18549
18550 2013-09-08 Jan Hubicka <jh@suse.cz>
18551
18552 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18553 summary generation.
18554
18555 2013-09-08 Jeff Law <law@redhat.com>
18556
18557 PR bootstrap/58340
18558 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18559 of 'found'.
18560
18561 2013-09-08 Andi Kleen <ak@linux.intel.com>
18562
18563 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18564
18565 2013-09-08 Jan Hubicka <jh@suse.cz>
18566
18567 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18568
18569 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18570
18571 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18572 for non-debug insns.
18573 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18574 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18575 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18576 accordingly.
18577
18578 2013-09-08 Jan Hubicka <jh@suse.cz>
18579
18580 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18581 targets and devirtualize to BUILT_IN_UNREACHABLE.
18582 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18583 * ipa.c (walk_polymorphic_call_targets): New function.
18584 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18585 functions; use the new timevar.
18586 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18587 was removed from the program.
18588 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18589 not consider it in the walk when its vtable is dead.
18590 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18591 record_binfo.
18592 (devirt_variable_node_removal_hook): New function.
18593 (possible_polymorphic_call_targets): Also register
18594 devirt_variable_node_removal_hook.
18595 (ipa_devirt): Do not do non-speculative devirtualization.
18596 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18597
18598 2013-09-08 Jan Hubicka <jh@suse.cz>
18599
18600 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18601 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18602 varpool_remove_variable_insertion_hook): Declare.
18603 * varpool.c (varpool_node_hook_list): New structure.
18604 (first_varpool_node_removal_hook,
18605 first_varpool_variable_insertion_hook): New variables.
18606 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18607 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18608 varpool_remove_variable_insertion_hook,
18609 varpool_call_variable_insertion_hooks): New functions.
18610 (varpool_remove_node): Use it.
18611
18612 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18613
18614 PR c++/54941
18615 * diagnostic.c (diagnostic_build_prefix): When s.file is
18616 "<built-in>" don't output line and column numbers.
18617
18618 2013-09-06 Jan Hubicka <jh@suse.cz>
18619
18620 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18621 * lto-streamer-out.c: Stream thunks, too.
18622 * lto-streamer-in.c (input_function): Pop cfun here
18623 (lto_read_body): Instead of here.
18624
18625 2013-09-06 Caroline Tice <cmtice@google.com>
18626
18627 * doc/install.texi: Add documentation for the --enable-vtable-verify
18628 and the --disable-libvtv configure options.
18629
18630 2013-09-06 Jeff Law <law@redhat.com>
18631
18632 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18633 edge implied equivalences into successor phis.
18634
18635 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18636
18637 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18638
18639 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18640
18641 * resource.c (mark_target_live_regs): Compute resources taking
18642 into account if a call is predicated or not.
18643
18644 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18645
18646 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18647 the compiler in the function names.
18648
18649 2013-09-06 Jan Hubicka <jh@suse.cz>
18650
18651 PR middle-end/58094
18652 * ipa-inline.c (has_caller_p): New function.
18653 (want_inline_function_to_all_callers_p): Use it.
18654 (sum_callers, inline_to_all_callers): Break out from ...
18655 (ipa_inline): ... here.
18656
18657 2013-09-06 Jan Hubicka <jh@suse.cz>
18658
18659 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18660 only when AVX is enabled.
18661
18662 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18663
18664 * config/aarch64/aarch64.md
18665 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18666 is fpsimd_<load/store>2.
18667 (load_pair<mode>): Likewise.
18668 (store_pair<mode>): Likewise.
18669
18670 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18671
18672 * config/arm/types.md (type): Add "mrs" type.
18673 * config/aarch64/aarch64.md
18674 (aarch64_load_tp_hard): Make type "mrs".
18675 * config/arm/arm.md
18676 (load_tp_hard): Make type "mrs".
18677 * config/arm/cortex-a15.md: Update with new attributes.
18678 * config/arm/cortex-a5.md: Update with new attributes.
18679 * config/arm/cortex-a53.md: Update with new attributes.
18680 * config/arm/cortex-a7.md: Update with new attributes.
18681 * config/arm/cortex-a8.md: Update with new attributes.
18682 * config/arm/cortex-a9.md: Update with new attributes.
18683 * config/arm/cortex-m4.md: Update with new attributes.
18684 * config/arm/cortex-r4.md: Update with new attributes.
18685 * config/arm/fa526.md: Update with new attributes.
18686 * config/arm/fa606te.md: Update with new attributes.
18687 * config/arm/fa626te.md: Update with new attributes.
18688 * config/arm/fa726te.md: Update with new attributes.
18689
18690 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18691
18692 * config/aarch64/aarch64.md
18693 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18694 (*movtf_aarch64): Likewise.
18695 * config/arm/arm.md
18696 (thumb1_movdi_insn): Use "multiple" for type where more than one
18697 instruction is used for a move.
18698 (*arm32_movhf): Likewise.
18699 (*thumb_movdf_insn): Likewise.
18700
18701 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18702
18703 * config/arm/types.md (type): Rename fcpys to fmov.
18704 * config/arm/vfp.md
18705 (*arm_movsi_vfp): Rename type fcpys as fmov.
18706 (*thumb2_movsi_vfp): Likewise
18707 (*movhf_vfp_neon): Likewise
18708 (*movhf_vfp): Likewise
18709 (*movsf_vfp): Likewise
18710 (*thumb2_movsf_vfp): Likewise
18711 (*movsfcc_vfp): Likewise
18712 (*thumb2_movsfcc_vfp): Likewise
18713 * config/aarch64/aarch64-simd.md
18714 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18715 * config/aarch64/aarch64.md
18716 (*movsi_aarch64): Replace type mov_reg with fmovs.
18717 (*movdi_aarch64): Likewise
18718 (*movsf_aarch64): Likewise
18719 (*movdf_aarch64): Likewise
18720 * config/arm/arm.c
18721 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18722 * config/arm/iwmmxt.md
18723 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18724 * config/arm/arm1020e.md: Update with new attributes.
18725 * config/arm/cortex-a15-neon.md: Update with new attributes.
18726 * config/arm/cortex-a5.md: Update with new attributes.
18727 * config/arm/cortex-a53.md: Update with new attributes.
18728 * config/arm/cortex-a7.md: Update with new attributes.
18729 * config/arm/cortex-a8-neon.md: Update with new attributes.
18730 * config/arm/cortex-a9.md: Update with new attributes.
18731 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18732 * config/arm/cortex-r4f.md: Update with new attributes.
18733 * config/arm/marvell-pj4.md: Update with new attributes.
18734 * config/arm/vfp11.md: Update with new attributes.
18735
18736 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18737
18738 * config/aarch64/aarch64.md
18739 (*madd<mode>): Fix type attribute.
18740 (*maddsi_uxtw): Likewise.
18741 (*msub<mode>): Likewise.
18742 (*msubsi_uxtw): Likewise.
18743 (<su_optab>maddsidi4): Likewise.
18744 (<su_optab>msubsidi4): Likewise.
18745
18746 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18747
18748 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18749 * config/arm/arm.md (core_cycles): Remove fdiv.
18750 * config/arm/vfp.md:
18751 (*sqrtsf2_vfp): Update for attribute changes.
18752 (*sqrtdf2_vfp): Likewise.
18753 * config/aarch64/aarch64.md:
18754 (sqrt<mode>2): Update for attribute changes.
18755 * config/arm/arm1020e.md: Update with new attributes.
18756 * config/arm/cortex-a15-neon.md: Update with new attributes.
18757 * config/arm/cortex-a5.md: Update with new attributes.
18758 * config/arm/cortex-a53.md: Update with new attributes.
18759 * config/arm/cortex-a7.md: Update with new attributes.
18760 * config/arm/cortex-a8-neon.md: Update with new attributes.
18761 * config/arm/cortex-a9.md: Update with new attributes.
18762 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18763 * config/arm/cortex-r4f.md: Update with new attributes.
18764 * config/arm/marvell-pj4.md: Update with new attributes.
18765 * config/arm/vfp11.md: Update with new attributes.
18766
18767 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18768
18769 * config/arm/types.md
18770 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18771 * config/aarch64/aarch64.md
18772 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18773 new attributes.
18774 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18775 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18776 (float<GPI:mode><GPF:mode>2): Likewise.
18777 * config/arm/vfp.md
18778 (*truncsisf2_vfp): Update with new attributes.
18779 (*truncsidf2_vfp): Likewise.
18780 (fixuns_truncsfsi2): Likewise.
18781 (fixuns_truncdfsi2): Likewise.
18782 (*floatsisf2_vfp): Likewise.
18783 (*floatsidf2_vfp): Likewise.
18784 (floatunssisf2): Likewise.
18785 (floatunssidf2): Likewise.
18786 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18787 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18788 * config/arm/arm1020e.md: Update with new attributes.
18789 * config/arm/cortex-a15-neon.md: Update with new attributes.
18790 * config/arm/cortex-a5.md: Update with new attributes.
18791 * config/arm/cortex-a53.md: Update with new attributes.
18792 * config/arm/cortex-a7.md: Update with new attributes.
18793 * config/arm/cortex-a8-neon.md: Update with new attributes.
18794 * config/arm/cortex-a9.md: Update with new attributes.
18795 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18796 * config/arm/cortex-r4f.md: Update with new attributes.
18797 * config/arm/marvell-pj4.md: Update with new attributes.
18798 * config/arm/vfp11.md: Update with new attributes.
18799
18800 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18801
18802 * config/aarch64/arm_neon.h
18803 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18804 (vqtbx<1,2,3,4><q>_s8): Likewise.
18805
18806 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18807
18808 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18809 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18810 (add<mode>3): Add type attribute.
18811 (add<mode>3): Likewise.
18812 (usadd<mode>3): Likewise.
18813 (ssadd<mode>3): Likewise.
18814 (sub<mode>3): Likewise.
18815 (sub<mode>3): Likewise.
18816 (ussub<mode>3): Likewise.
18817 (sssub<mode>3): Likewise.
18818 (ssmulsa3): Likewise.
18819 (usmulusa3): Likewise.
18820 (arm_usatsihi): Likewise.
18821 * config/arm/vfp.md
18822 (*movdi_vfp): Add types for all instructions.
18823 (*movdi_vfp_cortexa8): Likewise.
18824 (*movhf_vfp_neon): Likewise.
18825 (*movhf_vfp): Likewise.
18826 (*movdf_vfp): Likewise.
18827 (*thumb2_movdf_vfp): Likewise.
18828 (*thumb2_movdfcc_vfp): Likewise.
18829 * config/arm/arm.md: Add type attribute to all insn patterns.
18830 (*thumb1_adddi3): Add type attribute.
18831 (*arm_adddi3): Likewise.
18832 (*adddi_sesidi_di): Likewise.
18833 (*adddi_zesidi_di): Likewise.
18834 (*thumb1_addsi3): Likewise.
18835 (addsi3_compare0): Likewise.
18836 (*addsi3_compare0_scratch): Likewise.
18837 (*compare_negsi_si): Likewise.
18838 (cmpsi2_addneg): Likewise.
18839 (*addsi3_carryin_<optab>): Likewise.
18840 (*addsi3_carryin_alt2_<optab>): Likewise.
18841 (*addsi3_carryin_clobercc_<optab>): Likewise.
18842 (*subsi3_carryin): Likewise.
18843 (*subsi3_carryin_const): Likewise.
18844 (*subsi3_carryin_compare): Likewise.
18845 (*subsi3_carryin_compare_const): Likewise.
18846 (*arm_subdi3): Likewise.
18847 (*thumb_subdi3): Likewise.
18848 (*subdi_di_zesidi): Likewise.
18849 (*subdi_di_sesidi): Likewise.
18850 (*subdi_zesidi_di): Likewise.
18851 (*subdi_sesidi_di): Likewise.
18852 (*subdi_zesidi_ze): Likewise.
18853 (thumb1_subsi3_insn): Likewise.
18854 (*arm_subsi3_insn): Likewise.
18855 (*anddi3_insn): Likewise.
18856 (*anddi_zesidi_di): Likewise.
18857 (*anddi_sesdi_di): Likewise.
18858 (*ne_zeroextracts): Likewise.
18859 (*ne_zeroextracts): Likewise.
18860 (*ite_ne_zeroextr): Likewise.
18861 (*ite_ne_zeroextr): Likewise.
18862 (*anddi_notdi_di): Likewise.
18863 (*anddi_notzesidi): Likewise.
18864 (*anddi_notsesidi): Likewise.
18865 (andsi_notsi_si): Likewise.
18866 (thumb1_bicsi3): Likewise.
18867 (*iordi3_insn): Likewise.
18868 (*iordi_zesidi_di): Likewise.
18869 (*iordi_sesidi_di): Likewise.
18870 (*thumb1_iorsi3_insn): Likewise.
18871 (*xordi3_insn): Likewise.
18872 (*xordi_zesidi_di): Likewise.
18873 (*xordi_sesidi_di): Likewise.
18874 (*arm_xorsi3): Likewise.
18875 (*andsi_iorsi3_no): Likewise.
18876 (*smax_0): Likewise.
18877 (*smax_m1): Likewise.
18878 (*arm_smax_insn): Likewise.
18879 (*smin_0): Likewise.
18880 (*arm_smin_insn): Likewise.
18881 (*arm_umaxsi3): Likewise.
18882 (*arm_uminsi3): Likewise.
18883 (*minmax_arithsi): Likewise.
18884 (*minmax_arithsi_): Likewise.
18885 (*satsi_<SAT:code>): Likewise.
18886 (arm_ashldi3_1bit): Likewise.
18887 (arm_ashrdi3_1bit): Likewise.
18888 (arm_lshrdi3_1bit): Likewise.
18889 (*arm_negdi2): Likewise.
18890 (*thumb1_negdi2): Likewise.
18891 (*arm_negsi2): Likewise.
18892 (*thumb1_negsi2): Likewise.
18893 (*negdi_extendsid): Likewise.
18894 (*negdi_zero_extend): Likewise.
18895 (*arm_abssi2): Likewise.
18896 (*thumb1_abssi2): Likewise.
18897 (*arm_neg_abssi2): Likewise.
18898 (*thumb1_neg_abss): Likewise.
18899 (one_cmpldi2): Likewise.
18900 (extend<mode>di2): Likewise.
18901 (*compareqi_eq0): Likewise.
18902 (*arm_extendhisi2addsi): Likewise.
18903 (*arm_movdi): Likewise.
18904 (*thumb1_movdi_insn): Likewise.
18905 (*arm_movt): Likewise.
18906 (*thumb1_movsi_insn): Likewise.
18907 (pic_add_dot_plus_four): Likewise.
18908 (pic_add_dot_plus_eight): Likewise.
18909 (tls_load_dot_plus_eight): Likewise.
18910 (*thumb1_movhi_insn): Likewise.
18911 (*thumb1_movsf_insn): Likewise.
18912 (*movdf_soft_insn): Likewise.
18913 (*thumb_movdf_insn): Likewise.
18914 (cbranchsi4_insn): Likewise.
18915 (cbranchsi4_scratch): Likewise.
18916 (*negated_cbranchsi4): Likewise.
18917 (*tbit_cbranch): Likewise.
18918 (*tlobits_cbranch): Likewise.
18919 (*tstsi3_cbranch): Likewise.
18920 (*cbranchne_decr1): Likewise.
18921 (*addsi3_cbranch): Likewise.
18922 (*addsi3_cbranch_scratch): Likewise.
18923 (*arm_cmpdi_insn): Likewise.
18924 (*arm_cmpdi_unsig): Likewise.
18925 (*arm_cmpdi_zero): Likewise.
18926 (*thumb_cmpdi_zero): Likewise.
18927 (*deleted_compare): Likewise.
18928 (*mov_scc): Likewise.
18929 (*mov_negscc): Likewise.
18930 (*mov_notscc): Likewise.
18931 (*cstoresi_eq0_thumb1_insn): Likewise.
18932 (cstoresi_nltu_thumb1): Likewise.
18933 (cstoresi_ltu_thu): Likewise.
18934 (thumb1_addsi3_addgeu): Likewise.
18935 (*arm_jump): Likewise.
18936 (*thumb_jump): Likewise.
18937 (*check_arch2): Likewise.
18938 (arm_casesi_internal): Likewise.
18939 (thumb1_casesi_dispatch): Likewise.
18940 (*arm_indirect_jump): Likewise.
18941 (*thumb1_indirect_jump): Likewise.
18942 (nop): Likewise.
18943 (*and_scc): Likewise.
18944 (*ior_scc): Likewise.
18945 (*compare_scc): Likewise.
18946 (*cond_move): Likewise.
18947 (*cond_arith): Likewise.
18948 (*cond_sub): Likewise.
18949 (*cmp_ite0): Likewise.
18950 (*cmp_ite1): Likewise.
18951 (*cmp_and): Likewise.
18952 (*cmp_ior): Likewise.
18953 (*ior_scc_scc): Likewise.
18954 (*ior_scc_scc_cmp): Likewise.
18955 (*and_scc_scc): Likewise.
18956 (*and_scc_scc_cmp): Likewise.
18957 (*and_scc_scc_nod): Likewise.
18958 (*negscc): Likewise.
18959 (movcond_addsi): Likewise.
18960 (movcond): Likewise.
18961 (*ifcompare_plus_move): Likewise.
18962 (*if_plus_move): Likewise.
18963 (*ifcompare_move_plus): Likewise.
18964 (*if_move_plus): Likewise.
18965 (*ifcompare_arith_arith): Likewise.
18966 (*if_arith_arith): Likewise.
18967 (*ifcompare_arith_move): Likewise.
18968 (*if_arith_move): Likewise.
18969 (*ifcompare_move_arith): Likewise.
18970 (*if_move_arith): Likewise.
18971 (*ifcompare_move_not): Likewise.
18972 (*if_move_not): Likewise.
18973 (*ifcompare_not_move): Likewise.
18974 (*if_not_move): Likewise.
18975 (*ifcompare_shift_move): Likewise.
18976 (*if_shift_move): Likewise.
18977 (*ifcompare_move_shift): Likewise.
18978 (*if_move_shift): Likewise.
18979 (*ifcompare_shift_shift): Likewise.
18980 (*ifcompare_not_arith): Likewise.
18981 (*ifcompare_arith_not): Likewise.
18982 (*if_arith_not): Likewise.
18983 (*ifcompare_neg_move): Likewise.
18984 (*if_neg_move): Likewise.
18985 (*ifcompare_move_neg): Likewise.
18986 (*if_move_neg): Likewise.
18987 (prologue_thumb1_interwork): Likewise.
18988 (*cond_move_not): Likewise.
18989 (*sign_extract_onebit): Likewise.
18990 (*not_signextract_onebit): Likewise.
18991 (stack_tie): Likewise.
18992 (align_4): Likewise.
18993 (align_8): Likewise.
18994 (consttable_end): Likewise.
18995 (consttable_1): Likewise.
18996 (consttable_2): Likewise.
18997 (consttable_4): Likewise.
18998 (consttable_8): Likewise.
18999 (consttable_16): Likewise.
19000 (*thumb1_tablejump): Likewise.
19001 (prefetch): Likewise.
19002 (force_register_use): Likewise.
19003 (thumb_eh_return): Likewise.
19004 (load_tp_hard): Likewise.
19005 (load_tp_soft): Likewise.
19006 (tlscall): Likewise.
19007 (*arm_movtas_ze): Likewise.
19008 (*arm_rev): Likewise.
19009 (*arm_revsh): Likewise.
19010 (*arm_rev16): Likewise.
19011 * config/arm/thumb2.md
19012 (*thumb2_smaxsi3): Likewise.
19013 (*thumb2_sminsi3): Likewise.
19014 (*thumb32_umaxsi3): Likewise.
19015 (*thumb2_uminsi3): Likewise.
19016 (*thumb2_negdi2): Likewise.
19017 (*thumb2_abssi2): Likewise.
19018 (*thumb2_neg_abss): Likewise.
19019 (*thumb2_movsi_insn): Likewise.
19020 (tls_load_dot_plus_four): Likewise.
19021 (*thumb2_movhi_insn): Likewise.
19022 (*thumb2_mov_scc): Likewise.
19023 (*thumb2_mov_negs): Likewise.
19024 (*thumb2_mov_negs): Likewise.
19025 (*thumb2_mov_nots): Likewise.
19026 (*thumb2_mov_nots): Likewise.
19027 (*thumb2_movsicc_): Likewise.
19028 (*thumb2_movsfcc_soft_insn): Likewise.
19029 (*thumb2_indirect_jump): Likewise.
19030 (*thumb2_and_scc): Likewise.
19031 (*thumb2_ior_scc): Likewise.
19032 (*thumb2_ior_scc_strict_it): Likewise.
19033 (*thumb2_cond_move): Likewise.
19034 (*thumb2_cond_arith): Likewise.
19035 (*thumb2_cond_ari): Likewise.
19036 (*thumb2_cond_sub): Likewise.
19037 (*thumb2_negscc): Likewise.
19038 (*thumb2_movcond): Likewise.
19039 (thumb2_casesi_internal): Likewise.
19040 (thumb2_casesi_internal_pic): Likewise.
19041 (*thumb2_alusi3_short): Likewise.
19042 (*thumb2_mov<mode>_shortim): Likewise.
19043 (*thumb2_addsi_short): Likewise.
19044 (*thumb2_subsi_short): Likewise.
19045 (thumb2_addsi3_compare0): Likewise.
19046 (*thumb2_cbz): Likewise.
19047 (*thumb2_cbnz): Likewise.
19048 (*thumb2_one_cmplsi2_short): Likewise.
19049 (*thumb2_negsi2_short): Likewise.
19050 (*orsi_notsi_si): Likewise.
19051 * config/arm/arm1020e.md: Update with new attributes.
19052 * config/arm/arm1026ejs.md: Update with new attributes.
19053 * config/arm/arm1136jfs.md: Update with new attributes.
19054 * config/arm/arm926ejs.md: Update with new attributes.
19055 * config/arm/cortex-a15.md: Update with new attributes.
19056 * config/arm/cortex-a5.md: Update with new attributes.
19057 * config/arm/cortex-a53.md: Update with new attributes.
19058 * config/arm/cortex-a7.md: Update with new attributes.
19059 * config/arm/cortex-a8.md: Update with new attributes.
19060 * config/arm/cortex-a9.md: Update with new attributes.
19061 * config/arm/cortex-m4.md: Update with new attributes.
19062 * config/arm/cortex-r4.md: Update with new attributes.
19063 * config/arm/fa526.md: Update with new attributes.
19064 * config/arm/fa606te.md: Update with new attributes.
19065 * config/arm/fa626te.md: Update with new attributes.
19066 * config/arm/fa726te.md: Update with new attributes.
19067
19068 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19069
19070 * config/aarch64/aarch64-simd.md
19071 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19072 <vwx> iterator to ensure correct register choice.
19073 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19074 (aarch64_sqdmull_n<mode>): Likewise.
19075 (aarch64_sqdmull2_n<mode>_internal): Likewise.
19076 * config/aarch64/arm_neon.h
19077 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19078 (vml<as><q>_n_<su>16): Likewise.
19079 (vml<as>l_high_lane<q>_<su>16): Likewise.
19080 (vml<as>l_high_n_<su>16): Likewise.
19081 (vml<as>l_lane<q>_<su>16): Likewise.
19082 (vml<as>l_n_<su>16): Likewise.
19083 (vmul<q>_lane<q>_<su>16): Likewise.
19084 (vmul<q>_n_<su>16): Likewise.
19085 (vmull_lane<q>_<su>16): Likewise.
19086 (vmull_n_<su>16): Likewise.
19087 (vmull_high_lane<q>_<su>16): Likewise.
19088 (vmull_high_n_<su>16): Likewise.
19089 (vqrdmulh<q>_n_s16): Likewise.
19090
19091 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
19092
19093 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19094 have the correct lane parameter.
19095
19096 2013-09-06 Richard Biener <rguenther@suse.de>
19097
19098 * cfganal.c (control_dependences::~control_dependences):
19099 Properly free all of the vector.
19100
19101 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
19102
19103 PR target/58269
19104 * config/i386/i386.c (ix86_conditional_register_usage):
19105 Proper initialize extended SSE registers.
19106
19107 2013-09-06 Jan Hubicka <jh@suse.cz>
19108
19109 PR tree-optimization/58311
19110 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19111
19112 2013-09-06 Jan Hubicka <jh@suse.cz>
19113
19114 * Makefile.in (tree-sra.o): Update dependencies.
19115 * tree-sra.c: Include ipa-utils.h
19116 (scan_function): Use recursive_call_p.
19117 (has_caller_p): New function.
19118 (cgraph_for_node_and_aliases): Count also callers of aliases.
19119
19120 2013-09-06 Jan Hubicka <jh@suse.cz>
19121
19122 PR middle-end/58094
19123 * cgraph.h (symtab_semantically_equivalent_p): Declare.
19124 * tree-tailcall.c: Include ipa-utils.h.
19125 (find_tail_calls): Use it.
19126 * ipa-pure-const.c (check_call): Likewise.
19127 * ipa-utils.c (recursive_call_p): New function.
19128 * ipa-utils.h (recursive_call_p): Dclare.
19129 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19130 (symtab_semantically_equivalent_p): New function.
19131 * Makefile.in (tree-tailcall.o): Update dependencies.
19132
19133 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19134
19135 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19136 non-inlinable part.
19137
19138 2013-09-06 Richard Biener <rguenther@suse.de>
19139
19140 * lto-streamer.h (lto_global_var_decls): Remove.
19141 * Makefile.in (OBJS): Remove lto-symtab.o.
19142 (lto-symtab.o): Remove.
19143 (GTFILES): Remove lto-symtab.c
19144 * lto-symtab.c: Move to lto/
19145
19146 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19147
19148 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19149 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19150 (UNSPEC_FPINT_RINT): New constant definitions.
19151 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19152 definition with 2 attributes.
19153 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19154 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19155 definitions.
19156
19157 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19158
19159 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19160 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19161 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
19162 attribute to "z196_alone".
19163 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19164 "zEC12_simple".
19165
19166 2013-09-06 Richard Biener <rguenther@suse.de>
19167
19168 * basic-block.h (class control_dependences): New.
19169 * tree-ssa-dce.c (control_dependence_map): Remove.
19170 (cd): New global.
19171 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19172 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19173 find_pdom, find_control_dependence, find_all_control_dependences):
19174 Move to cfganal.c.
19175 (mark_control_dependent_edges_necessary,
19176 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19177 tree_dce_done, perform_tree_ssa_dce): Adjust.
19178 * cfganal.c (set_control_dependence_map_bit,
19179 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19180 find_all_control_dependences): Move from tree-ssa-dce.c and
19181 implement as methods of control_dependences class.
19182 (control_dependences::control_dependences): New.
19183 (control_dependences::~control_dependences): Likewise.
19184 (control_dependences::get_edges_dependent_on): Likewise.
19185 (control_dependences::get_edge): Likewise.
19186
19187 2013-09-04 Jan Hubicka <jh@suse.cz>
19188
19189 * tree.c (types_same_for_odr): Drop overactive check.
19190 * ipa-devirt.c (hash_type_name): Likewise.
19191
19192 2013-09-04 Jan Hubicka <jh@suse.cz>
19193
19194 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19195 (analyze_functions): ... here.
19196
19197 2013-09-04 Jan Hubicka <jh@suse.cz>
19198
19199 PR middle-end/58201
19200 * cgraphunit.c (analyze_functions): Clear AUX fields
19201 after processing; initialize assembler name has.
19202
19203 2013-09-05 Jeff Law <law@redhat.com>
19204
19205 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19206 from thread_around_empty_block. Record threading path into PATH.
19207 Recurse if threading through the initial block is successful.
19208 (thread_across_edge): Corresponding changes to slightly simplify.
19209
19210 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19211
19212 * config/aarch64/aarch64.md
19213 (type): Remove frecpe, frecps, frecpx.
19214 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19215 fix to be a TARGET_SIMD instruction.
19216 (aarch64_frecps): Remove.
19217 * config/aarch64/aarch64-simd.md
19218 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19219 (aarch64_frecps<mode>): Handle all float/vector of float modes.
19220
19221 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19222 Sofiane Naci <sofiane.naci@arm.com>
19223
19224 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19225 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19226 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19227 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19228 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
19229 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19230 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
19231 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
19232 into "clz, "rbit". Rename "shift" to "shift_imm".
19233 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19234 changes. Update for attribute changes all occurrences of arlo_* and
19235 shift* types.
19236 * config/arm/arm-fixed.md: Update for attribute changes
19237 all occurrences of arlo_* types.
19238 * config/arm/thumb2.md: Update for attribute changes all occurrences
19239 of arlo_* types.
19240 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
19241 (cortexa7_older_only): Likewise.
19242 (cortexa7_younger): Likewise.
19243 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19244 (1020alu_shift_op): Likewise.
19245 (1020alu_shift_reg_op): Likewise.
19246 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19247 (alu_shift_op): Likewise.
19248 (alu_shift_reg_op): Likewise.
19249 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19250 (11_alu_shift_op): Likewise.
19251 (11_alu_shift_reg_op): Likewise.
19252 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19253 (9_alu_shift_reg_op): Likewise.
19254 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19255 attribute changes.
19256 (cortex_a15_alu_shift): Likewise.
19257 (cortex_a15_alu_shift_reg): Likewise.
19258 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19259 attribute changes.
19260 (cortex_a5_alu_shift): Likewise.
19261 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19262 attribute changes.
19263 (cortex_a53_alu_shift): Likewise.
19264 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19265 attribute changes.
19266 (cortex_a7_alu_reg): Likewise.
19267 (cortex_a7_alu_shift): Likewise.
19268 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19269 attribute changes.
19270 (cortex_a8_alu_shift): Likewise.
19271 (cortex_a8_alu_shift_reg): Likewise.
19272 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19273 (cortex_a9_dp_shift): Likewise.
19274 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19275 attribute changes.
19276 * config/arm/cortex-r4.md
19277 (cortex_r4_alu): Update for attribute changes.
19278 (cortex_r4_mov): Likewise.
19279 (cortex_r4_alu_shift_reg): Likewise.
19280 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19281 (526_alu_shift_op): Likewise.
19282 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19283 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19284 (626te_alu_shift_op): Likewise.
19285 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19286 (726te_alu_shift_op): Likewise.
19287 (726te_alu_shift_reg_op): Likewise.
19288 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19289 (mp626_alu_shift_op): Likewise.
19290 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19291 (pj4_alu_conds): Likewise.
19292 (pj4_shift): Likewise.
19293 (pj4_shift_conds): Likewise.
19294 (pj4_alu_shift): Likewise.
19295 (pj4_alu_shift_conds): Likewise.
19296 * config/aarch64/aarch64.md: Update for attribute change
19297 all occurrences of arlo_* and shift* types.
19298
19299 2013-09-05 Mike Stump <mikestump@comcast.net>
19300
19301 * tree.h: Move documentation for tree_function_decl to tree-core.h
19302 with the declaration.
19303
19304 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
19305
19306 PR target/58139
19307 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19308 looking for widest mode.
19309
19310 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
19311
19312 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19313
19314 2013-09-05 Richard Biener <rguenther@suse.de>
19315
19316 PR tree-optimization/58137
19317 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19318 Do not create vectors of pointers.
19319 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19320 types for the components of the vector initializer.
19321 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19322 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19323
19324 2013-09-05 Martin Jambor <mjambor@suse.cz>
19325
19326 * ipa-prop.c (remove_described_reference): Accept missing references,
19327 return false if that hppens, otherwise return true.
19328 (cgraph_node_for_jfunc): New function.
19329 (try_decrement_rdesc_refcount): Likewise.
19330 (try_make_edge_direct_simple_call): Use them.
19331 (ipa_edge_removal_hook): Remove references from rdescs.
19332 (ipa_edge_duplication_hook): Clone rdescs and their references
19333 when the new edge has the same caller as the old one.
19334 * cgraph.c (cgraph_resolve_speculation): Remove speculative
19335 reference before removing any edges.
19336
19337 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
19338
19339 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19340 initial store.
19341 * thumb2.md (thumb2_storewb_parisi): New pattern.
19342
19343 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
19344
19345 * config/aarch64/aarch64-option-extensions.def: Add
19346 AARCH64_OPT_EXTENSION of 'crc'.
19347 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19348 (AARCH64_ISA_CRC): Ditto.
19349 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19350 description of the CRC extension.
19351
19352 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
19353
19354 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19355 * config/rs6000/linux.h: Ditto.
19356 * alpha/linux.h: Ditto.
19357 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19358 no_c99_libc_has_function.
19359 * config/c6x/uclinux-elf.h: Ditto.
19360 * config/lm32/uclinux-elf.h: Ditto.
19361 * config/m68k/uclinux.h: Ditto.
19362 * config/moxie/uclinux.h: Ditto.
19363 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19364 (crisv32-*-linux*, cris-*-linux*): Ditto.
19365 * config/bfin/bfin.c: Include "tm_p.h".
19366
19367 2013-09-05 Richard Biener <rguenther@suse.de>
19368
19369 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19370 check for a definition without a basic-block.
19371
19372 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19373 Sofiane Naci <sofiane.naci@arm.com>
19374
19375 * config/aarch64/aarch64.md
19376 (*movti_aarch64): Rename r_2_f and f_2_r.
19377 (*movsf_aarch64): Likewise.
19378 (*movdf_aarch64): Likewise.
19379 (*movtf_aarch64): Likewise.
19380 (aarch64_movdi_<mode>low): Likewise.
19381 (aarch64_movdi_<mode>high): Likewise.
19382 (aarch64_mov<mode>high_di): Likewise.
19383 (aarch64_mov<mode>low_di): Likewise.
19384 (aarch64_movtilow_tilow): Likewise.
19385 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
19386 values to config/arm/types.md
19387 (attribute "conds"): Update for attribute change.
19388 (anddi3_insn): Likewise.
19389 (iordi3_insn): Likewise.
19390 (xordi3_insn): Likewise.
19391 (one_cmpldi2): Likewise.
19392 * config/arm/types.md (type): Add Neon types.
19393 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19394 use "type" attribute.
19395 (movmisalign<mode>_neon_store): Likewise.
19396 (movmisalign<mode>_neon_load): Likewise.
19397 (vec_set<mode>_internal): Likewise.
19398 (vec_setv2di_internal): Likewise.
19399 (vec_extract<mode>): Likewise.
19400 (vec_extractv2di): Likewise.
19401 (add<mode>3_neon): Likewise.
19402 (adddi3_neon): Likewise.
19403 (sub<mode>3_neon): Likewise.
19404 (subdi3_neon): Likewise.
19405 (mul<mode>3_neon): Likewise.
19406 (mul<mode>3add<mode>_neon): Likewise.
19407 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19408 (fma<VCVTF:mode>4)): Likewise.
19409 (fma<VCVTF:mode>4_intrinsic): Likewise.
19410 (fmsub<VCVTF:mode>4)): Likewise.
19411 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19412 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19413 (ior<mode>3): Likewise.
19414 (and<mode>3): Likewise.
19415 (anddi3_neon): Likewise.
19416 (orn<mode>3_neon): Likewise.
19417 (orndi3_neon): Likewise.
19418 (bic<mode>3_neon): Likewise.
19419 (bicdi3_neon): Likewise.
19420 (xor<mode>3): Likewise.
19421 (one_cmpl<mode>2): Likewise.
19422 (abs<mode>2): Likewise.
19423 (neg<mode>2): Likewise.
19424 (umin<mode>3_neon): Likewise.
19425 (umax<mode>3_neon): Likewise.
19426 (smin<mode>3_neon): Likewise.
19427 (smax<mode>3_neon): Likewise.
19428 (vashl<mode>3): Likewise.
19429 (vashr<mode>3_imm): Likewise.
19430 (vlshr<mode>3_imm): Likewise.
19431 (ashl<mode>3_signed): Likewise.
19432 (ashl<mode>3_unsigned): Likewise.
19433 (neon_load_count): Likewise.
19434 (ashldi3_neon_noclobber): Likewise.
19435 (signed_shift_di3_neon): Likewise.
19436 (unsigned_shift_di3_neon): Likewise.
19437 (ashrdi3_neon_imm_noclobber): Likewise.
19438 (lshrdi3_neon_imm_noclobber): Likewise.
19439 (widen_ssum<mode>3): Likewise.
19440 (widen_usum<mode>3): Likewise.
19441 (quad_halves_<code>v4si): Likewise.
19442 (quad_halves_<code>v4sf): Likewise.
19443 (quad_halves_<code>v8hi): Likewise.
19444 (quad_halves_<code>v16qi): Likewise.
19445 (reduc_splus_v2di): Likewise.
19446 (neon_vpadd_internal<mode>): Likewise.
19447 (neon_vpsmin<mode>): Likewise.
19448 (neon_vpsmax<mode>): Likewise.
19449 (neon_vpumin<mode>): Likewise.
19450 (neon_vpumax<mode>): Likewise.
19451 (ss_add<mode>_neon): Likewise.
19452 (us_add<mode>_neon): Likewise.
19453 (ss_sub<mode>_neon): Likewise.
19454 (us_sub<mode>_neon): Likewise.
19455 (neon_vadd<mode>_unspec): Likewise.
19456 (neon_vaddl<mode>): Likewise.
19457 (neon_vaddw<mode>): Likewise.
19458 (neon_vhadd<mode>): Likewise.
19459 (neon_vqadd<mode>): Likewise.
19460 (neon_vaddhn<mode>): Likewise.
19461 (neon_vmul<mode>): Likewise.
19462 (neon_vmla<mode>): Likewise.
19463 (neon_vmlal<mode>): Likewise.
19464 (neon_vmls<mode>): Likewise.
19465 (neon_vmlsl<mode>): Likewise.
19466 (neon_vqdmulh<mode>): Likewise.
19467 (neon_vqdmlal<mode>): Likewise.
19468 (neon_vqdmlsl<mode>): Likewise.
19469 (neon_vmull<mode>): Likewise.
19470 (neon_vqdmull<mode>): Likewise.
19471 (neon_vsub<mode>_unspec): Likewise.
19472 (neon_vsubl<mode>): Likewise.
19473 (neon_vsubw<mode>): Likewise.
19474 (neon_vqsub<mode>): Likewise.
19475 (neon_vhsub<mode>): Likewise.
19476 (neon_vsubhn<mode>): Likewise.
19477 (neon_vceq<mode>): Likewise.
19478 (neon_vcge<mode>): Likewise.
19479 (neon_vcgeu<mode>): Likewise.
19480 (neon_vcgt<mode>): Likewise.
19481 (neon_vcgtu<mode>): Likewise.
19482 (neon_vcle<mode>): Likewise.
19483 (neon_vclt<mode>): Likewise.
19484 (neon_vcage<mode>): Likewise.
19485 (neon_vcagt<mode>): Likewise.
19486 (neon_vtst<mode>): Likewise.
19487 (neon_vabd<mode>): Likewise.
19488 (neon_vabdl<mode>): Likewise.
19489 (neon_vaba<mode>): Likewise.
19490 (neon_vabal<mode>): Likewise.
19491 (neon_vmax<mode>): Likewise.
19492 (neon_vmin<mode>): Likewise.
19493 (neon_vpaddl<mode>): Likewise.
19494 (neon_vpadal<mode>): Likewise.
19495 (neon_vpmax<mode>): Likewise.
19496 (neon_vpmin<mode>): Likewise.
19497 (neon_vrecps<mode>): Likewise.
19498 (neon_vrsqrts<mode>): Likewise.
19499 (neon_vqabs<mode>): Likewise.
19500 (neon_vqneg<mode>): Likewise.
19501 (neon_vcls<mode>): Likewise.
19502 (clz<mode>2): Likewise.
19503 (popcount<mode>2): Likewise.
19504 (neon_vrecpe): Likewise.
19505 (neon_vrsqrte): Likewise.
19506 (neon_vget_lane<mode>_sext_internal): Likewise.
19507 (neon_vget_lane<mode>_zext_internal): Likewise.
19508 (neon_vdup_n<mode>): Likewise.
19509 (neon_vdup_nv2di): Likewise.
19510 (neon_vdpu_lane<mode>_internal): Likewise.
19511 (neon_vswp<mode>): Likewise.
19512 (float<mode><V_cvtto>2): Likewise.
19513 (floatuns<mode><V_cvtto>2): Likewise.
19514 (fix_trunc<mode><V_cvtto>)2): Likewise
19515 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19516 (neon_vcvt<mode>): Likewise.
19517 (neon_vcvtv4sfv4hf): Likewise.
19518 (neon_vcvtv4hfv4sf): Likewise.
19519 (neon_vcvt_n<mode>): Likewise.
19520 (neon_vmovn<mode>): Likewise.
19521 (neon_vqmovn<mode>): Likewise.
19522 (neon_vqmovun<mode>): Likewise.
19523 (neon_vmovl<mode>): Likewise.
19524 (neon_vmul_lane<mode>): Likewise.
19525 (neon_vmull_lane<mode>): Likewise.
19526 (neon_vqdmull_lane<mode>): Likewise.
19527 (neon_vqdmulh_lane<mode>): Likewise.
19528 (neon_vmla_lane<mode>): Likewise.
19529 (neon_vmlal_lane<mode>): Likewise.
19530 (neon_vqdmlal_lane<mode>): Likewise.
19531 (neon_vmls_lane<mode>): Likewise.
19532 (neon_vmlsl_lane<mode>): Likewise.
19533 (neon_vqdmlsl_lane<mode>): Likewise.
19534 (neon_vext<mode>): Likewise.
19535 (neon_vrev64<mode>): Likewise.
19536 (neon_vrev32<mode>): Likewise.
19537 (neon_vrev16<mode>): Likewise.
19538 (neon_vbsl<mode>_internal): Likewise.
19539 (neon_vshl<mode>): Likewise.
19540 (neon_vqshl<mode>): Likewise.
19541 (neon_vshr_n<mode>): Likewise.
19542 (neon_vshrn_n<mode>): Likewise.
19543 (neon_vqshrn_n<mode>): Likewise.
19544 (neon_vqshrun_n<mode>): Likewise.
19545 (neon_vshl_n<mode>): Likewise.
19546 (neon_vqshl_n<mode>): Likewise.
19547 (neon_vqshlu_n<mode>): Likewise.
19548 (neon_vshll_n<mode>): Likewise.
19549 (neon_vsra_n<mode>): Likewise.
19550 (neon_vsri_n<mode>): Likewise.
19551 (neon_vsli_n<mode>): Likewise.
19552 (neon_vtbl1v8qi): Likewise.
19553 (neon_vtbl2v8qi): Likewise.
19554 (neon_vtbl3v8qi): Likewise.
19555 (neon_vtbl4v8qi): Likewise.
19556 (neon_vtbx1v8qi): Likewise.
19557 (neon_vtbx2v8qi): Likewise.
19558 (neon_vtbx3v8qi): Likewise.
19559 (neon_vtbx4v8qi): Likewise.
19560 (neon_vtrn<mode>_internal): Likewise.
19561 (neon_vzip<mode>_internal): Likewise.
19562 (neon_vuzp<mode>_internal): Likewise.
19563 (neon_vld1<mode>): Likewise.
19564 (neon_vld1_lane<mode>): Likewise.
19565 (neon_vld1_dup<mode>): Likewise.
19566 (neon_vld1_dupv2di): Likewise.
19567 (neon_vst1<mode>): Likewise.
19568 (neon_vst1_lane<mode>): Likewise.
19569 (neon_vld2<mode>): Likewise.
19570 (neon_vld2_lane<mode>): Likewise.
19571 (neon_vld2_dup<mode>): Likewise.
19572 (neon_vst2<mode>): Likewise.
19573 (neon_vst2_lane<mode>): Likewise.
19574 (neon_vld3<mode>): Likewise.
19575 (neon_vld3qa<mode>): Likewise.
19576 (neon_vld3qb<mode>): Likewise.
19577 (neon_vld3_lane<mode>): Likewise.
19578 (neon_vld3_dup<mode>): Likewise.
19579 (neon_vst3<mode>): Likewise.
19580 (neon_vst3qa<mode>): Likewise.
19581 (neon_vst3qb<mode>): Likewise.
19582 (neon_vst3_lane<mode>): Likewise.
19583 (neon_vld4<mode>): Likewise.
19584 (neon_vld4qa<mode>): Likewise.
19585 (neon_vld4qb<mode>): Likewise.
19586 (neon_vld4_lane<mode>): Likewise.
19587 (neon_vld4_dup<mode>): Likewise.
19588 (neon_vst4<mode>): Likewise.
19589 (neon_vst4qa<mode>): Likewise.
19590 (neon_vst4qb<mode>): Likewise.
19591 (neon_vst4_lane<mode>): Likewise.
19592 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19593 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19594 (neon_vec_<US>mult_lo_<mode>): Likewise.
19595 (neon_vec_<US>mult_hi_<mode>): Likewise.
19596 (neon_vec_<US>shiftl_<mode>): Likewise.
19597 (neon_unpack<US>_<mode>): Likewise.
19598 (neon_vec_<US>mult_<mode>): Likewise.
19599 (vec_pack_trunc_<mode>): Likewise.
19600 (neon_vec_pack_trunk_<mode>): Likewise.
19601 (neon_vabd<mode>_2): Likewise.
19602 (neon_vabd<mode>_3): Likewise.
19603 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19604 (thumb2_movsi_vfp): Likewise.
19605 (movdi_vfp): Likewise.
19606 (movdi_vfp_cortexa8): Likewise.
19607 (movhf_vfp_neon): Likewise.
19608 (movhf_vfp): Likewiwse.
19609 (movsf_vfp): Likewiwse.
19610 (thumb2_movsf_vfp): Likewiwse.
19611 (movdf_vfp): Likewise.
19612 (thumb2_movdf_vfp): Likewise.
19613 (movsfcc_vfp): Likewise.
19614 (thumb2_movsfcc_vfp): Likewise.
19615 (movdfcc_vfp): Likewise.
19616 (thumb2_movdfcc_vfp): Likewise.
19617 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19618 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19619 (v10_v2c): Likewise.
19620 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19621 attribute change.
19622 (cortex_a15_neon_int_2): Likewise.
19623 (cortex_a15_neon_int_3): Likewise.
19624 (cortex_a15_neon_int_4): Likewise.
19625 (cortex_a15_neon_int_5): Likewise.
19626 (cortex_a15_neon_vqneg_vqabs): Likewise.
19627 (cortex_a15_neon_vmov): Likewise.
19628 (cortex_a15_neon_vaba): Likewise.
19629 (cortex_a15_neon_vaba_qqq): Likewise.
19630 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19631 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19632 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19633 scalar_64_32_long_scalar): Likewise.
19634 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19635 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19636 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19637 lotype_qdd_64_32_long): Likewise.
19638 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19639 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19640 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19641 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19642 (cortex_a15_neon_shift_1): Likewise.
19643 (cortex_a15_neon_shift_2): Likewise.
19644 (cortex_a15_neon_shift_3): Likewise.
19645 (cortex_a15_neon_vshl_ddd): Likewise.
19646 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19647 (cortex_a15_neon_vsra_vrsra): Likewise.
19648 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19649 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19650 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19651 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19652 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19653 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19654 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19655 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19656 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19657 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19658 (cortex_a15_neon_bp_simple): Likewise.
19659 (cortex_a15_neon_bp_2cycle): Likewise.
19660 (cortex_a15_neon_bp_3cycle): Likewise.
19661 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19662 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19663 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19664 (cortex_a15_neon_vld2_4_regs): Likewise.
19665 (cortex_a15_neon_vld3_vld4): Likewise.
19666 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19667 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19668 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19669 (cortex_a15_neon_vst3_vst4): Likewise.
19670 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19671 (cortex_a15_neon_vld3_vld4_lane" 10
19672 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19673 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19674 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19675 (cortex_a15_neon_ldm_2): Likewise.0
19676 (cortex_a15_neon_stm_2): Likewise.
19677 (cortex_a15_neon_mcr): Likewise.
19678 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19679 (cortex_a15_neon_mrc): Likewise.
19680 (cortex_a15_neon_mrrc): Likewise.
19681 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19682 change.
19683 (cortex_a15_alu_shift): Likewise.
19684 (cortex_a15_alu_shift_reg): Likewise.
19685 (cortex_a15_mult32): Likewise.
19686 (cortex_a15_mult64): Likewise.
19687 (cortex_a15_block): Likewise.
19688 (cortex_a15_branch): Likewise.
19689 (cortex_a15_load1): Likewise.
19690 (cortex_a15_load3): Likewise.
19691 (cortex_a15_store1): Likewise.
19692 (cortex_a15_store3): Likewise.
19693 (cortex_a15_call): Likewise.
19694 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19695 (cortex_a5_f2r): Likewise.
19696 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19697 change.
19698 (cortex_a53_f2r): Likewise.
19699 * config/arm/cortex-a7.md
19700 (cortex_a7_branch): Update for attribute change.
19701 (cortex_a7_call): Likewise.
19702 (cortex_a7_alu_imm): Likewise.
19703 (cortex_a7_alu_reg): Likewise.
19704 (cortex_a7_alu_shift): Likewise.
19705 (cortex_a7_mul): Likewise.
19706 (cortex_a7_load1): Likewise.
19707 (cortex_a7_store1): Likewise.
19708 (cortex_a7_load2): Likewise.
19709 (cortex_a7_store2): Likewise.
19710 (cortex_a7_load3): Likewise.
19711 (cortex_a7_store3): Likewise.
19712 (cortex_a7_load4): Likewise.
19713 (cortex_a7_store4): Likewise.
19714 (cortex_a7_fpalu): Likewise.
19715 (cortex_a7_fconst): Likewise.
19716 (cortex_a7_fpmuls): Likewise.
19717 (cortex_a7_neon_mul): Likewise.
19718 (cortex_a7_fpmacs): Likewise.
19719 (cortex_a7_neon_mla: Likewise.
19720 (cortex_a7_fpmuld: Likewise.
19721 (cortex_a7_fpmacd: Likewise.
19722 (cortex_a7_fpfmad: Likewise.
19723 (cortex_a7_fdivs: Likewise.
19724 (cortex_a7_fdivd: Likewise.
19725 (cortex_a7_r2f: Likewise.
19726 (cortex_a7_f2r: Likewise.
19727 (cortex_a7_f_flags: Likewise.
19728 (cortex_a7_f_loads: Likewise.
19729 (cortex_a7_f_loadd: Likewise.
19730 (cortex_a7_f_stores: Likewise.
19731 (cortex_a7_f_stored: Likewise.
19732 (cortex_a7_neon): Likewise.
19733 * config/arm/cortex-a8-neon.md
19734 (cortex_a8_neon_mrc): Update for attribute change.
19735 (cortex_a8_neon_mrrc): Likewise.
19736 (cortex_a8_neon_int_1): Likewise.
19737 (cortex_a8_neon_int_2): Likewise.
19738 (cortex_a8_neon_int_3): Likewise.
19739 (cortex_a8_neon_int_4): Likewise.
19740 (cortex_a8_neon_int_5): Likewise.
19741 (cortex_a8_neon_vqneg_vqabs): Likewise.
19742 (cortex_a8_neon_vmov): Likewise.
19743 (cortex_a8_neon_vaba): Likewise.
19744 (cortex_a8_neon_vaba_qqq): Likewise.
19745 (cortex_a8_neon_vsma): Likewise.
19746 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19747 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19748 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19749 long_scalar): Likewise.
19750 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19751 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19752 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19753 long_scalar_qdd_64_32_long): Likewise.
19754 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19755 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19756 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19757 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19758 (cortex_a8_neon_shift_1): Likewise.
19759 (cortex_a8_neon_shift_2): Likewise.
19760 (cortex_a8_neon_shift_3): Likewise.
19761 (cortex_a8_neon_vshl_ddd): Likewise.
19762 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19763 (cortex_a8_neon_vsra_vrsra): Likewise.
19764 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19765 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19766 (cortex_a8_neon_fp_vsum): Likewise.
19767 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19768 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19769 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19770 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19771 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19772 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19773 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19774 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19775 (cortex_a8_neon_bp_simple): Likewise.
19776 (cortex_a8_neon_bp_2cycle): Likewise.
19777 (cortex_a8_neon_bp_3cycle): Likewise.
19778 (cortex_a8_neon_ldr): Likewise.
19779 (cortex_a8_neon_str): Likewise.
19780 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19781 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19782 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19783 (cortex_a8_neon_vld2_4_regs): Likewise.
19784 (cortex_a8_neon_vld3_vld4): Likewise.
19785 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19786 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19787 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19788 (cortex_a8_neon_vst3_vst4): Likewise.
19789 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19790 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19791 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19792 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19793 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19794 (cortex_a8_neon_mcr): Likewise.
19795 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19796 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19797 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19798 change.
19799 (ca9_neon_mrrc): Likewise.
19800 (cortex_a9_neon_int_1): Likewise.
19801 (cortex_a9_neon_int_2): Likewise.
19802 (cortex_a9_neon_int_3): Likewise.
19803 (cortex_a9_neon_int_4): Likewise.
19804 (cortex_a9_neon_int_5): Likewise.
19805 (cortex_a9_neon_vqneg_vqabs): Likewise.
19806 (cortex_a9_neon_vmov): Likewise.
19807 (cortex_a9_neon_vaba): Likewise.
19808 (cortex_a9_neon_vaba_qqq): Likewise.
19809 (cortex_a9_neon_vsma): Likewise.
19810 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19811 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19812 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19813 long_scalar): Likewise.
19814 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19815 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19816 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19817 long_scalar_qdd_64_32_long): Likewise.
19818 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19819 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19820 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19821 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19822 (cortex_a9_neon_shift_1): Likewise.
19823 (cortex_a9_neon_shift_2): Likewise.
19824 (cortex_a9_neon_shift_3): Likewise.
19825 (cortex_a9_neon_vshl_ddd): Likewise.
19826 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19827 (cortex_a9_neon_vsra_vrsra): Likewise.
19828 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19829 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19830 (cortex_a9_neon_fp_vsum): Likewise.
19831 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19832 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19833 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19834 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19835 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19836 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19837 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19838 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19839 (cortex_a9_neon_bp_simple): Likewise.
19840 (cortex_a9_neon_bp_2cycle): Likewise.
19841 (cortex_a9_neon_bp_3cycle): Likewise.
19842 (cortex_a9_neon_ldr): Likewise.
19843 (cortex_a9_neon_str): Likewise.
19844 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19845 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19846 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19847 (cortex_a9_neon_vld2_4_regs): Likewise.
19848 (cortex_a9_neon_vld3_vld4): Likewise.
19849 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19850 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19851 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19852 (cortex_a9_neon_vst3_vst4): Likewise.
19853 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19854 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19855 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19856 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19857 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19858 (cortex_a9_neon_mcr): Likewise.
19859 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19860 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19861 (cortex_a9_fps): Likewise.
19862 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19863 change.
19864 (cortex_m4_fmuls): Likewise.
19865 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19866 change.
19867 (cortex_r4_mrc): Likewise.
19868 * config/arm/iterators.md: Update comment referring to neon_type.
19869 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19870 (iwmmxt_movsi_insn): Likewise.
19871 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19872 attribute change.
19873 (pj4_core_to_vfp): Likewise.
19874 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19875 attribute change.
19876 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19877 (vfp_fstore): Likewise.
19878 * doc/md.texi: Change references to neon_type to refer to type.
19879
19880 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19881
19882 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19883
19884 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19885
19886 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19887 lglobl if not weak.
19888
19889 2013-09-04 Easwaran Raman <eraman@google.com>
19890
19891 PR middle-end/57370
19892 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19893 (build_and_add_sum): Use it.
19894 (appears_later_in_bb): Simplify code.
19895
19896 2013-09-04 Teresa Johnson <tejohnson@google.com>
19897
19898 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19899
19900 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19901
19902 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19903
19904 2013-09-04 Jan Hubicka <jh@suse.cz>
19905
19906 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19907 * ipa-devirt.c: Include diganostic.h
19908 (odr_type_d): Add types and types_set.
19909 (hash_type_name): Work for types with vtables during LTO.
19910 (odr_hasher::remove): Fix comment; destroy types_set.
19911 (add_type_duplicate): New function,
19912 (get_odr_type): Use it.
19913 (dump_type_inheritance_graph): Dump type duplicates.
19914 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19915 graph.
19916 * tree.c (types_same_for_odr): Give exact answers on types with
19917 virtual tables.
19918
19919 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19920
19921 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19922 explaining their differences.
19923
19924 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19925
19926 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19927
19928 2013-09-03 Jeff Law <law@redhat.com>
19929
19930 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19931 when not threading through a joiner block. Pass joiner/no joiner
19932 state to register_jump_thread.
19933 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19934 state from argument rather than implying on path length.
19935 Dump the entire jump thread path into debugging dump.
19936 * tree-flow.h (register_jump_thread): Update prototype.
19937
19938 2013-08-29 Xinliang David Li <davidxl@google.com>
19939
19940 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19941 Remove a trivial gcc_assert.
19942
19943 2013-08-29 Xinliang David Li <davidxl@google.com>
19944
19945 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19946 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19947 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19948 Delay base decl alignment adjustment.
19949 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19950 * tree-vectorizer.h: New data structure.
19951 (set_dr_misalignment): New function.
19952 (dr_misalignment): Ditto.
19953 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19954 (vectorizable_load): Ditto.
19955 (ensure_base_align): New function.
19956 (vectorize_loops): Add dbg_cnt support.
19957 (execute_vect_slp): Ditto.
19958 * dbgcnt.def: New debug counter.
19959 * Makefile: New dependency.
19960
19961 2013-09-03 Meador Inge <meadori@codesourcery.com>
19962
19963 Revert:
19964
19965 2013-08-30 Meador Inge <meadori@codesourcery.com>
19966
19967 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19968
19969 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19970
19971 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19972 function descriptor.
19973
19974 2013-09-03 Richard Biener <rguenther@suse.de>
19975
19976 * tree-affine.c (add_elt_to_tree): Fix association issue,
19977 avoid useless converts and make sure to always return a
19978 properly typed result.
19979
19980 2013-09-03 Richard Biener <rguenther@suse.de>
19981
19982 PR middle-end/57656
19983 * fold-const.c (negate_expr_p): Fix division case.
19984 (negate_expr): Likewise.
19985
19986 2013-09-03 Richard Biener <rguenther@suse.de>
19987
19988 PR lto/58285
19989 * tree-streamer-out.c: Include tm.h.
19990 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19991
19992 2013-09-03 Jan Hubicka <jh@suse.cz>
19993
19994 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19995
19996 2013-09-03 Alan Modra <amodra@gmail.com>
19997
19998 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19999 multilibs to big-endian target and vice versa.
20000 * config/rs6000/t-linux64: Use := assignment on all vars.
20001 (MULTILIB_EXTRA_OPTS): Remove fPIC.
20002 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
20003 * config/rs6000/t-linux64le: New file.
20004 * config/rs6000/t-linux64bele: New file.
20005 * config/rs6000/t-linux64lebe: New file.
20006
20007 2013-09-02 Jan Hubicka <jh@suse.cz>
20008
20009 * ipa-inline-transform.c (inline_transform): Do not
20010 optimize_inline_calls when not optimizing.
20011
20012 2013-09-02 Jan Hubicka <jh@suse.cz>
20013
20014 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
20015 duplicated nodes for assembler names.
20016 * symtab.c (symtab_unregister_node): Do not attempt to unlink
20017 hard registers from assembler name hash.
20018
20019 2013-09-02 Jan Hubicka <jh@suse.cz>
20020
20021 * ipa-split.c (execute_split_functions): Split externally visible
20022 functions called once.
20023
20024 2013-09-02 Martin Jambor <mjambor@suse.cz>
20025
20026 PR ipa/58106
20027 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
20028 linked list. When finding the correct duplicate, also consider also
20029 the caller in additon to its inlined_to node.
20030
20031 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
20032
20033 * config/aarch64/aarch64-simd-builtins.def
20034 (dup_lane_scalar): Remove.
20035 * config/aarch64/aarch64-simd.md
20036 (aarch64_simd_dup): Add 'w->w' alternative.
20037 (aarch64_dup_lane<mode>): Allow for VALL.
20038 (aarch64_dup_lane_scalar<mode>): Remove.
20039 (aarch64_dup_lane_<vswap_width_name><mode>): New.
20040 (aarch64_get_lane_signed<mode>): Add w->w altenative.
20041 (aarch64_get_lane_unsigned<mode>): Likewise.
20042 (aarch64_get_lane<mode>): Likewise.
20043 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20044 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20045 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20046 (VCON): Change container of V2SF.
20047 (vswap_width_name): Likewise.
20048 * config/aarch64/arm_neon.h
20049 (__aarch64_vdup_lane_any): New.
20050 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20051 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20052 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20053
20054 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
20055
20056 PR middle-end/56382
20057 * expr.c (emit_move_complex): Do not move complex FP values as parts if
20058 the source or the destination is a single hard register.
20059
20060 2013-09-02 Richard Biener <rguenther@suse.de>
20061
20062 PR middle-end/57511
20063 * tree-scalar-evolution.c (instantiate_scev_name): Allow
20064 non-linear SCEVs.
20065
20066 2013-09-02 Richard Biener <rguenther@suse.de>
20067
20068 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20069 arithmetic to sizetype.
20070
20071 2013-09-02 Bin Cheng <bin.cheng@arm.com>
20072
20073 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20074 Find auto-increment use both before and after candidate.
20075
20076 2013-09-02 Marek Polacek <polacek@redhat.com>
20077
20078 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20079
20080 2013-09-01 Jan Hubicka <jh@suse.cz>
20081
20082 * Makefile.in: Add ipa-profile.o
20083 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20084 * cgraph.c (struct cgraph_propagate_frequency_data,
20085 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20086 ipa-profile.c; replace cgraph_ by ipa_ prefix.
20087 * cgraph.h (cgraph_propagate_frequency): Remove.
20088 * ipa-inline-analysis.c: Include ipa-utils.h;
20089 drop duplicated cfgloop.h.
20090 (inline_update_callee_summaries): Update.
20091 * ipa-profile.c: New file.
20092 * ipa-utils.h (ipa_propagate_frequency): Declare.
20093 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20094 data-streamer.h, value-prof.h.
20095 (symtab_remove_unreachable_nodes): Update profile.
20096 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20097 account_time_size, cmp_counts, dump_histogram,
20098 ipa_profile_generate_summary, ipa_profile_write_summary,
20099 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20100 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20101 Move to ipa-profile.c.
20102
20103 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
20104
20105 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20106
20107 2013-09-01 Jan Hubicka <jh@suse.cz>
20108
20109 * common.opt (fdevirtualize-speculatively): New function.
20110 * invoke.texi (fdevirtualize-speculatively): Document.
20111 * ipa-devirt.c: Include ipa-inline.h
20112 (likely_target_p): New function.
20113 (ipa_devirt): New function.
20114 (gate_ipa_devirt): New function.
20115 (pass_data_ipa_devirt): New static var.
20116 (pass_ipa_devirt): Likewise.
20117 (make_pass_ipa_devirt): New function.
20118 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20119 (common_handle_option): Disable devirtualization when
20120 value range profiling is available.
20121 * passes.def (pass_ipa_devirt): Add.
20122 * timever.def (TV_IPA_DEVIRT): New timevar.
20123 * tree-pass.h (make_pass_ipa_devirt):
20124
20125 2013-09-01 Iain Sandoe <iain@codesourcery.com>
20126
20127 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20128 include sanitize(undefined).
20129
20130 2013-08-31 Diego Novillo <dnovillo@google.com>
20131
20132 * Makefile.in (TREE_CORE_H): Define.
20133 (TREE_H): Use.
20134 (GTFILES): Add tree-core.h.
20135 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20136 size the array.
20137 * tree-core.h: New file.
20138 Move all data structures, enum, typedefs, global
20139 declarations and constants from ...
20140 * tree.h: ... here.
20141
20142 2013-08-31 Jan Hubicka <jh@suse.cz>
20143
20144 * bulitins.c (expand_builtin): Do not early exit for gcov
20145 instrumented functions.
20146
20147 2013-08-31 Marek Polacek <polacek@redhat.com>
20148
20149 * ubsan.c: Include tm_p.h.
20150
20151 2013-08-31 Jan Hubicka <jh@suse.cz>
20152
20153 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20154 warning.
20155
20156 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20157 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20158 * tree-cfg.c (verify_gimple_label): ... here.
20159 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20160 (ipa_merge_profiles): New function.
20161 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20162 (lto_input_function_body): Likewise.
20163 * ipa-utils.h (ipa_merge_profiles): Declare.
20164 * lto-streamer.h (lto_input_function_body): Update prototype.
20165 (emit_label_in_global_context_p): Remove.
20166 * lto-symtab.c: Include ipa-utils.h
20167 (lto_cgraph_replace_node): Use ipa_merge_profiles.
20168
20169 2013-08-31 Jan Hubicka <jh@suse.cz>
20170
20171 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20172
20173 2013-08-31 Jan Hubicka <jh@suse.cz>
20174
20175 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20176
20177 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
20178
20179 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20180 "cmp" RTX before signed_comparison_operator check to account
20181 for "code" changes.
20182
20183 2013-08-30 Jan Hubicka <jh@suse.cz>
20184
20185 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20186 (detect_type_change_1): Rename to ...
20187 (detect_type_change): ... this one; early return on non-polymorphic
20188 types.
20189 (detect_type_change_ssa): Add comp_type parameter; update
20190 use of detect_type_change.
20191 (compute_complex_assign_jump_func): Add param_type parameter;
20192 update use of detect_type_change_ssa.
20193 (compute_complex_ancestor_jump_func): Likewise.
20194 (ipa_get_callee_param_type): New function.
20195 (ipa_compute_jump_functions_for_edge): Compute parameter type;
20196 update calls to the jump function computation functions.
20197
20198 2013-08-30 Teresa Johnson <tejohnson@google.com>
20199 Steven Bosscher <steven@gcc.gnu.org>
20200
20201 * cfgrtl.c (fixup_new_cold_bb): New routine.
20202 (commit_edge_insertions): Invoke fixup_partitions.
20203 (find_partition_fixes): New routine.
20204 (fixup_partitions): Ditto.
20205 (verify_hot_cold_block_grouping): Update comments.
20206 (rtl_verify_edges): Invoke find_partition_fixes.
20207 (rtl_verify_bb_pointers): Update comments.
20208 (rtl_verify_bb_layout): Ditto.
20209 * basic-block.h (probably_never_executed_edge_p): Declare.
20210 (fixup_partitions): Ditto.
20211 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20212 * bb-reorder.c (sanitize_hot_paths): New function.
20213 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20214 sanitize_hot_paths.
20215 * predict.c (probably_never_executed_edge_p): New routine.
20216 * cfg.c (check_bb_profile): Add partition insanity warnings.
20217
20218 2013-08-30 Meador Inge <meadori@codesourcery.com>
20219
20220 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20221
20222 2013-08-30 Marek Polacek <polacek@redhat.com>
20223
20224 * Makefile.in (ubsan.o): Add.
20225 (c-family/c-ubsan.o): Add.
20226 (builtins.o): Add ubsan.h dependency.
20227 * ubsan.h: New file.
20228 * ubsan.c: New file.
20229 * common.opt: Add -fsanitize=undefined option.
20230 (flag_sanitize): Add variable.
20231 (fsanitize=): Add option. Add Driver.
20232 (fsanitize=thread): Remove option.
20233 (fsanitize=address): Likewise.
20234 (static-libubsan): New option.
20235 * doc/invoke.texi: Document the new flag and -static-libubsan.
20236 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20237 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20238 * builtin-attrs.def (ATTR_COLD): Define.
20239 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20240 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20241 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20242 * flag-types.h (sanitize_code): New enum.
20243 * opts.c (common_handle_option): Parse command line arguments
20244 of -fsanitize=. Add -fsanitize=unreachable option.
20245 * varasm.c (get_variable_section): Adjust.
20246 (assemble_noswitch_variable): Likewise.
20247 (assemble_variable): Likewise.
20248 (output_constant_def_contents): Likewise.
20249 (categorize_decl_for_section): Likewise.
20250 (place_block_symbol): Likewise.
20251 (output_object_block): Likewise.
20252 * builtins.def: Likewise.
20253 * toplev.c (compile_file): Likewise.
20254 (process_options): Likewise.
20255 * cppbuiltin.c: Likewise.
20256 * tsan.c (tsan_pass): Likewise.
20257 (tsan_gate): Likewise.
20258 (tsan_gate_O0): Likewise.
20259 * cfgexpand.c (partition_stack_vars): Likewise.
20260 (expand_stack_vars): Likewise.
20261 (defer_stack_allocation): Likewise.
20262 (expand_used_vars): Likewise.
20263 * cfgcleanup.c (old_insns_match_p): Likewise.
20264 * asan.c (asan_finish_file): Likewise.
20265 (asan_instrument): Likewise.
20266 (gate_asan): Likewise.
20267 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20268 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20269 (asan_global_struct): Use pointer_sized_int_node instead
20270 calling build_nonstandard_integer_type.
20271 (initialize_sanitizer_builtins): Likewise.
20272 (asan_finish_file): Likewise.
20273 * gcc.c: Document %{%:function(args):X}.
20274 (static_spec_functions): Add sanitize.
20275 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20276 store funcval != NULL there.
20277 (do_spec_1): Adjust handle_spec_function caller.
20278 (handle_braces): Allow %:function(args) as condition.
20279 (sanitize_spec_function): New function.
20280 (ADD_STATIC_LIBUBSAN_LIBS): Define.
20281 (LIBUBSAN_SPEC): Likewise.
20282 (LIBUBSAN_EARLY_SPEC): Likewise.
20283 (SANITIZER_SPEC): Handle libubsan.
20284 (SANITIZER_EARLY_SPEC): Likewise.
20285 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20286 instead of fsanitize=address.
20287 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20288 instead of fsanitize=address*.
20289 * builtins.c: Include ubsan.h.
20290 (fold_builtin_0): Instrument __builtin_unreachable.
20291 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20292 instead of flag_asan.
20293 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20294 (pointer_sized_int_node): Define.
20295 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20296
20297 2013-08-30 Mike Stump <mikestump@comcast.net>
20298
20299 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20300 with RE patterns.
20301
20302 2013-08-29 Jan Hubicka <jh@suse.cz>
20303
20304 * cgraph.c (cgraph_function_body_availability): Handle weakref
20305 correctly.
20306 * passes.def: Remove pass_fixup_cfg.
20307 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20308 track when we need to remove functions.
20309 (gate_ipa_inline): Execute inlining always; add comment why.
20310 (pass_data_ipa_inline): Remove TODO_remove_functions.
20311 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20312 do not produce summaries.
20313 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20314 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20315 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20316 constant pool and vtable.
20317
20318 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
20319
20320 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20321 New arm_neon.h's internal macros to specify 64-bit constants.
20322 Avoid using stdint.h's macros.
20323
20324 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
20325
20326 * recog.c (verify_changes): Verify that changes[i].old is non-zero
20327 before applying REG_P.
20328
20329 2013-08-30 Jakub Jelinek <jakub@redhat.com>
20330
20331 PR tree-optimization/58277
20332 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20333 after seeing too many stmts with vdef in between dombb and current
20334 bb, invalidate everything.
20335
20336 2013-08-30 Richard Biener <rguenther@suse.de>
20337
20338 * fold-const.c (fold_single_bit_test): Fix overflow test.
20339
20340 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
20341
20342 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20343 and which can live in a register, always retrieve the value on entry.
20344 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20345 passed by invisible reference specially.
20346 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20347 (vt_add_function_parameter): Correctly deal with a parameter passed by
20348 invisible reference.
20349
20350 2013-08-30 Jan Hubicka <jh@suse.cz>
20351
20352 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20353
20354 2013-08-30 Richard Biener <rguenther@suse.de>
20355
20356 PR tree-optimization/58228
20357 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20358 allow invariant loads in nested loop vectorization.
20359
20360 2013-08-30 Richard Biener <rguenther@suse.de>
20361
20362 PR tree-optimization/58223
20363 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20364 (has_anti_or_output_dependence): ... this and adjust to also
20365 look for output dependences.
20366 (mark_nodes_having_upstream_mem_writes): Adjust.
20367 (rdg_flag_uses): Likewise.
20368
20369 2013-08-30 Richard Biener <rguenther@suse.de>
20370
20371 PR tree-optimization/58010
20372 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20373 assert that we have a loop-closed PHI.
20374
20375 2013-08-29 Jan Hubicka <jh@suse.cz>
20376
20377 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20378 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20379 * lto-section-in.c (lto_free_function_in_decl_state): New function.
20380 (lto_free_function_in_decl_state_for_node): New function.
20381
20382 2013-08-29 Xinliang David Li <davidxl@google.com>
20383
20384 * loop-unroll.c (report_unroll_peel): Minor message change.
20385 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20386 Emit alignment peeling message with default -fopt-info.
20387 (vect_loop_versioning): Emit loop version info message.
20388 * tree-vectorizer.c (vectorize_loops): Minor message change.
20389 (execute_vect_slp): Ditto.
20390
20391 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
20392
20393 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20394 of the clone from the DECL_NAME of the original function.
20395
20396 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
20397
20398 * passes.c (register_pass): Add overload.
20399 * tree-pass.h (register_pass): Forward declare it. Add comment.
20400
20401 2013-08-29 Jan Hubicka <jh@suse.cz>
20402
20403 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20404 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20405 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20406 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20407 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20408 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20409 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20410 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20411
20412 2013-08-29 Teresa Johnson <tejohnson@google.com>
20413
20414 * dumpfile.c (dump_loc): Output column number.
20415 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20416 * doc/invoke.texi: Document optall -fopt-info flag.
20417 * profile.c (read_profile_edge_counts): Use new dump framework.
20418 (compute_branch_probabilities): Ditto.
20419 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20420 when pass not in any opt group.
20421 * pass_manager.h (pass_manager::get_pass_profile): New method.
20422 * value-prof.c (check_counter): Use new dump framework.
20423 (check_ic_target): Ditto.
20424 * coverage.c (get_coverage_counts): Ditto.
20425 (coverage_init): Setup new dump framework.
20426
20427 2013-08-29 Richard Biener <rguenther@suse.de>
20428
20429 PR tree-optimization/58246
20430 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20431 handle the dominance check inside a basic-block.
20432
20433 2013-08-29 Richard Biener <rguenther@suse.de>
20434
20435 PR middle-end/57287
20436 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20437 of default defs that appear in abnormal PHI nodes.
20438
20439 2013-08-29 Richard Biener <rguenther@suse.de>
20440
20441 PR tree-optimization/57685
20442 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20443 single-use operands to avoid exponential complexity.
20444
20445 2013-08-28 Dehao Chen <dehao@google.com>
20446
20447 * ipa-inline.c (edge_badness): Fix integer underflow.
20448
20449 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
20450
20451 * gtm-builtins.def (_ITM_free): Declare leaf.
20452
20453 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20454
20455 PR target/58067
20456 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20457 (*tls_local_dynamic_base_64_largepic): Likewise.
20458 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20459 Remove predicate from call operand.
20460 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20461 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20462
20463 2013-08-28 Jeff Law <law@redhat.com>
20464
20465 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20466 checks for the number of predecessors and successors allowed.
20467 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20468 which require copying a joiner block if there is a request which
20469 is a subpath that requires no joiner block copying.
20470
20471 2013-08-28 Jan Hubicka <jh@suse.cz>
20472
20473 * lto-streamer-out.c (DFS_write_tree_body): Drop
20474 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20475 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20476 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20477 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20478 Do not read DECL_ERROR_ISSUED.
20479 (unpack_ts_decl_with_vis_value_fields): Do not read
20480 DECL_DEFER_OUTPUT.
20481 (lto_input_ts_binfo_tree_pointers): Do not read
20482 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20483 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20484 write DECL_ERROR_ISSUED..
20485 (pack_ts_decl_with_vis_value_fields): Do not write
20486 DECL_DEFER_OUTPUT.
20487 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20488 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20489 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20490 * tree.h (tree_decl_common): Update comment.
20491 (DECL_ERROR_ISSUED): Remove.
20492
20493 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20494
20495 PR middle-end/58257
20496 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20497
20498 2013-08-28 Jan Hubicka <jh@suse.cz>
20499
20500 * builtins.def (free): Declare leaf.
20501
20502 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20503
20504 * gdbhooks.py: New.
20505 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20506 * configure: Regenerate.
20507
20508 2013-08-27 Martin Jambor <mjambor@suse.cz>
20509
20510 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20511 (ipa_ancestor_jf_data): Likewise.
20512 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20513 (ipa_get_jf_pass_through_type_preserved): New function.
20514 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20515 (ipa_get_jf_ancestor_type_preserved): New function.
20516 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20517 (ipa_get_jf_ancestor_result): Likewise.
20518 (propagate_vals_accross_pass_through): Use
20519 ipa_get_jf_pass_through_result to do all the value mappings.
20520 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20521 type_preserved flag.
20522 (ipa_set_jf_cst_copy): New function.
20523 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20524 (ipa_set_jf_arith_pass_through): Likewise.
20525 (ipa_set_ancestor_jf): Likewise.
20526 (compute_complex_assign_jump_func): Set type_preserved instead of
20527 punting.
20528 (ipa_compute_jump_functions_for_edge): Likewise.
20529 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20530 (update_jump_functions_after_inlining): Update type_preserved.
20531 Explicitely create jump functions when combining one with pass_through.
20532 (ipa_write_jump_function): Stream the type_preserved flags.
20533 (ipa_read_jump_function): Likewise.
20534
20535 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20536 Aldy Hernandez <aldyh@redhat.com>
20537
20538 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20539 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20540 * function.h (struct function): Add has_force_vect_loops and
20541 has_simduid_loops.
20542 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20543 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20544 handle it.
20545 * gimple.def: Update CLAUSES comments.
20546 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20547 (gimple_build_omp_for): Add argument to prototype.
20548 (gimple_omp_for_kind): New.
20549 (gimple_omp_for_set_kind): New.
20550 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20551 GOVD_DATA_SHARE_CLASS.
20552 (enum omp_region_type): Add ORT_SIMD.
20553 (gimple_add_tmp_var): Handle ORT_SIMD.
20554 (gimplify_var_or_parm_decl): Same.
20555 (is_gimple_stmt): Same.
20556 (omp_firstprivatize_variable): Same.
20557 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20558 (omp_notice_variable): Handle ORT_SIMD.
20559 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20560 (omp_check_private): Handle ORT_SIMD.
20561 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20562 OMP_CLAUSE_SAFELEN.
20563 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20564 Handle OMP_CLAUSE_LASTPRIVATE.
20565 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20566 OMP_CLAUSE_SAFELEN.
20567 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20568 (gimplify_expr): Handle OMP_SIMD.
20569 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20570 (expand_GOMP_SIMD_VF): New.
20571 (expand_GOMP_SIMD_LAST_LANE): New.
20572 * internal-fn.def (GOMP_SIMD_LANE): New.
20573 (GOMP_SIMD_VF): New.
20574 (GOMP_SIMD_LAST_LANE): New.
20575 * omp-low.c: Include target.h.
20576 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20577 OMP_CLAUSE_SAFELEN.
20578 (check_omp_nesting_restrictions): Same.
20579 (omp_max_vf): New.
20580 (lower_rec_simd_input_clauses): New.
20581 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20582 OMP_CLAUSE_LINEAR.
20583 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20584 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20585 (expand_omp_build_assign): New.
20586 (expand_omp_for_init_counts): New.
20587 (expand_omp_for_init_vars): New.
20588 (extract_omp_for_update_vars): New.
20589 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20590 and rewrite accordingly.
20591 (expand_omp_simd): New.
20592 (expand_omp_for): Use expand_omp_simd.
20593 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20594 (lower_omp_for): Do not lower the body.
20595 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20596 in their own loops.
20597 * tree-flow.h (find_omp_clause): Remove prototype.
20598 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20599 forcing vectorization of the loop, or if flag_tree_vectorize.
20600 (gate_tree_if_conversion): Similarly.
20601 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20602 gimple_build_omp_for.
20603 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20604 * tree-parloops (create_parallel_loop): Pass kind argument to
20605 gimple_build_omp_for.
20606 * tree-pretty-print.c (dump_omp_clause): Add cases for
20607 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20608 OMP_CLAUSE__SIMDUID_.
20609 (dump_generic_node): Handle OMP_SIMD.
20610 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20611 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20612 unroll OMP_SIMD loops here.
20613 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20614 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20615 loop->safelen.
20616 (vect_analyze_data_refs): Handle simd loops.
20617 * tree-vect-loop.c (vectorizable_live_operation): Handle
20618 IFN_GOMP_SIMD*.
20619 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20620 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20621 (vectorizable_load): Same.
20622 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20623 (struct simduid_to_vf): New.
20624 (simduid_to_vf::hash): New.
20625 (simduid_to-vf::equal): New.
20626 (struct simd_array_to_simduid): New.
20627 (simd_array_to_simduid::hash): New.
20628 (simd_array_to_simduid::equal): New.
20629 (adjust_simduid_builtins): New.
20630 (struct note_simd_array_uses_struct): New.
20631 (note_simd_array_uses_cb): New.
20632 (note_simd_array_uses): New.
20633 (vectorize_loops): Handle simd hints and adjust simd builtins
20634 accordingly.
20635 * tree-vectorizer.h (struct _stmt_vec_info): Add
20636 simd_lane_access_p field.
20637 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20638 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20639 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20640 (omp_clause_code_name): Same.
20641 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20642 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20643 * tree.def (OMP_SIMD): New entry.
20644 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20645 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20646 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20647 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20648 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20649 (OMP_CLAUSE_LINEAR_STEP): New.
20650 (OMP_CLAUSE_SAFELEN_EXPR): New.
20651 (OMP_CLAUSE__SIMDUID__DECL): New.
20652 (find_omp_clause): New prototype.
20653
20654 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20655
20656 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20657 Haswell processor detection.
20658
20659 2013-08-27 Christian Widmer <shadow@umbrox.de>
20660
20661 PR target/57927
20662 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20663 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20664 AVX2 capable processors.
20665
20666 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20667
20668 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20669 of vget_low_* with implementations in terms of other intrinsics.
20670
20671 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20672
20673 PR middle-end/57219
20674 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20675 values to -1, 0 and 1.
20676
20677 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20678
20679 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20680 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20681 (<optab><mode>3_insn): Remove.
20682 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20683 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20684 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20685 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20686 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20687 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20688 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20689 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20690 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20691 (ror<mode>3_insn): Likewise.
20692 * config/aarch64/predicates.md (aarch64_simd_register): New.
20693
20694 2013-08-27 Richard Biener <rguenther@suse.de>
20695
20696 PR tree-optimization/57521
20697 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20698 one edge is non-critical.
20699 (find_phi_replacement_condition): Make sure to use a non-critical
20700 edge. Cleanup and remove old bug workarounds.
20701 (bb_postdominates_preds): Remove.
20702 (if_convertible_loop_p_1): Do not compute post-dominators.
20703 (combine_blocks): Do not free post-dominators.
20704 (main_tree_if_conversion): Likewise.
20705 (pass_data_if_conversion): Add TODO_verify_ssa.
20706
20707 2013-08-27 DJ Delorie <dj@redhat.com>
20708
20709 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20710
20711 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20712
20713 * function.c (assign_parm_find_data_types): Set passed_mode and
20714 nominal_mode to the TYPE_MODE of nominal_type for the built
20715 pointer type in case of the struct-pass-by-reference.
20716
20717 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20718
20719 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20720 (UINT16_TYPE): Change default to "unsigned int".
20721
20722 * config/avr/avr.opt (mfract-convert-truncate): New option.
20723 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20724 is set, round negative fractional integers according to n1169
20725 when converting to integer types.
20726
20727 2013-08-26 Jan Hubicka <jh@suse.cz>
20728
20729 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20730 methods can not be called indirectly when their address is not taken.
20731
20732 2013-08-26 Jan Hubicka <jh@suse.cz>
20733
20734 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20735 ctor_for_folding.
20736
20737 2013-08-26 Jan Hubicka <jh@suse.cz>
20738
20739 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20740 can be unshared.
20741
20742 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20743
20744 * reload.c (find_valid_class): Allow classes that do not include
20745 FIRST_PSEUDO_REGISTER - 1.
20746
20747 2013-08-26 Jan Hubicka <jh@suse.cz>
20748
20749 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20750 fix edge count/frequency when speculation failed; fix type check
20751 for the direct call.
20752
20753 2013-08-26 Jan Hubicka <jh@suse.cz>
20754
20755 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20756
20757 2013-08-26 Jan Hubicka <jh@suse.cz>
20758
20759 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20760 to be changed by edge redirection.
20761
20762 2013-08-26 Jan Hubicka <jh@suse.cz>
20763
20764 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20765 formating; add sanity check.
20766 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20767 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20768 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20769 (resolve_noninline_speculation): Update callee keys, too.
20770
20771 2013-08-26 Jan Hubicka <jh@suse.cz>
20772
20773 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20774 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20775
20776 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20777
20778 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20779 into proper place.
20780
20781 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20782
20783 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20784 (x86_64_elf_select_section): Ditto.
20785 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20786 arguments.
20787 (ix86_pass_by_reference): Ditto.
20788 (output_set_got): Ditto.
20789 (ix86_unary_operator_ok): Ditto.
20790 (ix86_expand_builtin): Ditto.
20791
20792 2013-08-23 Jan Hubicka <jh@suse.cz>
20793
20794 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20795
20796 2013-08-23 Jan Hubicka <jh@suse.cz>
20797
20798 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20799 (tree_decl_with_vis): Add FINAL field.
20800
20801 2013-08-23 Jeff Law <law@redhat.com>
20802
20803 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20804 the debugging dump when the expression is fully redundant.
20805
20806 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20807
20808 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20809 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20810 * pretty-print.c (pp_formatted_text_data): Likewise.
20811 (pp_write_text_to_stream): Likewise.
20812 (pp_write_text_as_dot_label_to_stream): Likewise.
20813 (pp_append_r): Likewise.
20814 (pp_format): Likewise.
20815 (pp_flush): Likewise.
20816 (pp_clear_output_area): Likewise.
20817 (pp_append_text): Likewise.
20818 (pp_formatted_text): Likewise.
20819 (pp_remaining_character_count_for_line): Likewise.
20820 (pp_newline): Likewise.
20821 (pp_character): Likewise.
20822 (output_buffer::~output_buffer): Define.
20823 (pretty_printer::~pretty_printer): Destruct output buffer.
20824 * pretty-print.h (output_buffer::~output_buffer): Declare.
20825 (pretty_printer::~pretty_printer): Declare virtual.
20826
20827 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20828
20829 PR other/57324
20830 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20831 HOST_WIDE_INT_M1U): New macros.
20832 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20833 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20834 unsigned -1 for lshift.
20835 * cse.c (cse_insn): Likewise.
20836 * double-int.c (rshift_double, lshift_double): Likewise.
20837 * builtins.c (fold_builtin_bitop): Likewise.
20838 * combine.c (force_to_mode): Likewise.
20839 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20840 * simplify-rtx.c (simplify_const_unary_operation,
20841 simplify_const_binary_operation): Likewise.
20842 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20843 check_va_list_escapes): Likewise.
20844 * rtlanal.c (nonzero_bits1): Likewise.
20845 * expmed.c (expand_smod_pow2): Likewise.
20846 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20847
20848 2013-08-23 Jan Hubicka <jh@suse.cz>
20849
20850 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20851 as having address taken.
20852
20853 2013-08-23 Jan Hubicka <jh@suse.cz>
20854
20855 * ipa-utils.h (method_class_type): Declare.
20856 * ipa-devirt.c (method_class_type): Export.
20857
20858 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20859 do not walk base classes of anonymous types.
20860
20861 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20862
20863 PR rtl-optimization/58220
20864 PR regression/58221
20865 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20866 handle SEQUENCE insns properly.
20867
20868 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20869
20870 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20871 definition.
20872 (pp_newline_and_indent): Likewise.
20873 (pp_separate_with): Likewise.
20874 * pretty-print.c (pp_newline_and_flush): Define.
20875 (pp_newline_and_indent): Likewise.
20876 (pp_separate_with): Likewise.
20877
20878 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20879
20880 PR target/58218
20881 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20882 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20883
20884 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20885
20886 * config/i386/predicates.md (ext_sse_reg_operand): New.
20887 * config/i386/i386.md (*movti_internal): Use
20888 predicate to determine if EVEX is needed.
20889 (*movsi_internal): Ditto.
20890 (*movdf_internal): Ditto.
20891 (*movsf_internal): Ditto.
20892 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20893
20894 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20895
20896 PR tree-optimization/58209
20897 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20898 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20899 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20900 emit POINTER_PLUS_EXPR.
20901 (create_tailcall_accumulator): For pointer result type accumulate in
20902 sizetype type.
20903
20904 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20905
20906 * configure.ac: Add backslashes missing from the last change.
20907 * configure: Regenerate.
20908
20909 2013-08-22 Jan Hubicka <jh@susue.cz>
20910
20911 * ipa.c (function_and_variable_visibility): First remember function
20912 was global and then make it local.
20913
20914 2013-08-22 Julian Brown <julian@codesourcery.com>
20915
20916 * configure.ac: Add aarch64 to list of arches which use "nop" in
20917 debug_line test.
20918 * configure: Regenerate.
20919
20920 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20921
20922 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20923 gnu_libc_has_function.
20924 * config/s390/tpf.h: Likewise.
20925
20926 2013-08-22 Jan Hubicka <jh@susue.cz>
20927
20928 * timevar.c (validate_phases): Add cast.
20929
20930 2013-08-22 Jan Hubicka <jh@susue.cz>
20931
20932 * timevar.c (validate_phases): Use size_t for memory.
20933 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20934
20935 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20936
20937 * pretty-print.h (output_buffer::output_buffer): Declare.
20938 (pretty_printer::pretty_printer): Likewise.
20939 (pp_construct): Remove.
20940 * pretty-print.c (output_buffer::output_buffer): Define.
20941 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20942 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20943 (print_gimple_expr): Likewise.
20944 (print_gimple_seq): Likewise.
20945 (gimple_dump_bb): Likewise.
20946 * sched-vis.c (dump_value_slim): Likewise.
20947 (dump_insn_slim): Likewise.
20948 (dump_rtl_slim): Likewise.
20949 (str_pattern_slim): Likewise.
20950 * tree-mudflap.c (mf_varname_tree): Likewise.
20951 * graph.c (print_graph_cfg): Likewise.
20952 (start_graph_dump): Likewise.
20953 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20954 placement-new.
20955 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20956 pretty printer initialization.
20957 * coretypes.h (diagnostic_context): Remove superflous type alias
20958 declaration.
20959 (pretty_printer): Likewise. Declare directly as a class.
20960 (pretty_print_info): Remove declaration as class.
20961 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20962 and pp_clear_output_area.
20963 (asan_add_global): Likewise.
20964
20965 2013-08-22 Jan Hubicka <jh@suse.cz>
20966
20967 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20968 * ipa-utils.h (update_type_inheritance_graph): Declare.
20969 (possible_polymorphic_call_target_p): Declare.
20970 (possible_polymorphic_call_target_p): New.
20971 * ipa-devirt.c: Update toplevel comments.
20972 (cached_polymorphic_call_targets): Move up.
20973 (odr_type_d): Move ID down.
20974 (polymorphic_type_binfo_p): Update comment.
20975 (odr_hasher::remove): Likewise;
20976 (get_odr_type): Set anonymous_namespace.
20977 (dump_odr_type): Dump it.
20978 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20979 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20980 (record_binfo): Add comment.
20981 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20982 built.
20983 (devirt_node_removal_hook): Do not iCE when cache is freed.
20984 (possible_polymorphic_call_target_p): New predicate.
20985 (update_type_inheritance_graph): New function.
20986
20987 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20989 Sergey Lega <sergey.s.lega@intel.com>
20990 Anna Tikhonova <anna.tikhonova@intel.com>
20991 Ilya Tocar <ilya.tocar@intel.com>
20992 Andrey Turetskiy <andrey.turetskiy@intel.com>
20993 Ilya Verbin <ilya.verbin@intel.com>
20994 Kirill Yukhin <kirill.yukhin@intel.com>
20995 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20996
20997 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20998 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20999 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
21000 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
21001 (OPTION_MASK_ISA_AVX2_UNSET): Update.
21002 (OPTION_MASK_ISA_AVX512F_UNSET): New.
21003 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
21004 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
21005 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
21006 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
21007 OPT_mavx512pf, OPT_mavx512er cases.
21008 * config/i386/constraints.md (v): New constraint.
21009 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
21010 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
21011 (bit_AVX512CD): New.
21012 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21013 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
21014 * config/i386/i386-c.c (ix86_target_macros_internal):
21015 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
21016 __AVX512PF__.
21017 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
21018 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
21019 * config/i386/i386.c (regclass_map, dbx_register_map)
21020 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
21021 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
21022 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
21023 -mavx512pf options.
21024 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
21025 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
21026 -mavx512pf options. Fix formatting.
21027 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
21028 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
21029 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21030 -mavx512cd, -mavx512pf options.
21031 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21032 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21033 (ix86_preferred_output_reload_class): Replace SSE_REGS with
21034 ALL_SSE_REGS.
21035 (ix86_hard_regno_mode_ok): Support 512-bit registers.
21036 (ix86_set_reg_reg_cost): Ditto.
21037 (x86_order_regs_for_local_alloc): Ditto.
21038 (MAX_VECT_LEN): Extend to 64-byte.
21039 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21040 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21041 (TARGET_AVX512ER, TARGET_AVX512CD): New.
21042 (BIGGEST_ALIGNMENT): Extend to 512-bits.
21043 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21044 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21045 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21046 (SSE_REG_MODE_P): Support new modes.
21047 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21048 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21049 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21050 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21051 (REG_CLASS_CONTENTS): Add new registers.
21052 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21053 (EXT_REX_SSE_REGNO_P): New.
21054 (HI_REGISTER_NAMES): Add new registers.
21055 * config/i386/i386.md: Define constants for new registers.
21056 (mode): Add new 512-bit modes.
21057 (prefix): Support evex prefix.
21058 (isa): Support avx512f, noavx512f, fma_avx512f.
21059 (ssemodesuffix): Add new 512-bit modes.
21060 (movxi): New.
21061 (*movxi_internal_avx512f): Ditto.
21062 (*movdi_internal): Replace constraint "x" with the new constraint "v".
21063 Support MODE_XI.
21064 (*movsi_internal): Likewise.
21065 (*movdf_internal): Likewise.
21066 (*movsf_internal): Likewise.
21067 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21068 (<code><mode>3): Likewise.
21069 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21070 New.
21071 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21072 with the new constraint "v".
21073 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21074 modes.
21075 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21076 with the new constraint "v".
21077 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21078 (<sse2>_storedqu<avxsizesuffix>): Likewise.
21079 (*<plusminus_insn><mode>3): Likewise.
21080 (<sse>_vm<plusminus_insn><mode>3): Likewise.
21081 (*mul<mode>3): Likewise.
21082 (<sse>_vmmul<mode>3): Likewise.
21083 (<sse>_div<mode>3): Likewise.
21084 (<sse>_vmdiv<mode>3): Likewise.
21085 (<sse>_sqrt<mode>2): Likewise.
21086 (<sse>_vmsqrt<mode>2): Likewise.
21087 (*<code><mode>3_finite): Likewise.
21088 (*<code><mode>3) <smaxmin>: Likewise.
21089 (<sse>_vm<code><mode>3): Likewise.
21090 (*<code><mode>3) <any_logic>: Likewise.
21091 (*fma_fmadd_<mode>): Likewise.
21092 (*fma_fmsub_<mode>): Likewise.
21093 (*fma_fnmadd_<mode>): Likewise.
21094 (*fma_fnmsub_<mode>): Likewise.
21095 (*fma_fmaddsub_<mode>): Likewise.
21096 (*fma_fmsubadd_<mode>): Likewise.
21097 (*fmai_fmadd_<mode>): Likewise.
21098 (*fmai_fmsub_<mode>): Likewise.
21099 (*fmai_fnmadd_<mode>): Likewise.
21100 (*fmai_fnmsub_<mode>): Likewise.
21101 (sse_cvtsi2ss): Likewise.
21102 (sse_cvtsi2ssq): Likewise.
21103 (sse_cvtss2si): Likewise.
21104 (sse_cvtss2si_2): Likewise.
21105 (sse_cvtss2siq): Likewise.
21106 (sse_cvtss2siq_2): Likewise.
21107 (sse_cvttss2si): Likewise.
21108 (sse_cvtss2siq_2): Likewise.
21109 (float<sseintvecmodelower><mode>2): Likewise.
21110 (sse2_cvtsd2si_2): Likewise.
21111 (sse2_cvtsd2siq_2): Likewise.
21112 (*<plusminus_insn><mode>3): Likewise.
21113 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21114 (*<sse4_1_avx2>_mul<mode>3): Likewise.
21115 (ashr<mode>3): Likewise.
21116 (<shift_insn><mode>3): Likewise.
21117 (avx2_<code><mode>3): Likewise.
21118 (*avx2_<code><mode>3): Likewise.
21119 (*andnot<mode>3): Likewise.
21120 (*<code><mode>3) <any_logic>: Likewise.
21121 (abs<mode>2): Likewise.
21122 (avx2_permvar<mode>): Likewise.
21123 (avx2_perm<mode>_1): Likewise.
21124 (*avx_vpermilp<mode>): Likewise.
21125 (avx_vpermilvar<mode>3): Likewise.
21126 (avx2_ashrv<mode>): Likewise.
21127 (avx2_<shift_insn>v<mode>): Likewise.
21128 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21129 -mavx512cd.
21130 * doc/rtl.texi: Document XImode.
21131
21132 2013-08-21 Jeff Law <law@redhat.com>
21133
21134 * tree-flow.h (register_jump_thread): Pass vector of edges
21135 instead of each important edge.
21136 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21137 thread path into a vector and pass that to register_jump_thread.
21138 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21139 passed in edge vector to the current 3-edge form.
21140
21141 Revert:
21142 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21143
21144 * dce.c (fini_dce): Call df_analyze again just in case
21145 delete_unmarked_insns removed anything.
21146
21147 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
21148
21149 * reload.h (struct reg_equivs): Rename to ..
21150 (struct reg_equivs_s): .. this.
21151
21152 2013-08-20 Martin Liska <marxin.liska@gmail.com>
21153
21154 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21155
21156 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21157
21158 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21159
21160 2013-08-21 Jeff Law <law@redhat.com>
21161
21162 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21163 simplify assignments too. If the RHS collapses to a singleton
21164 range, then return the value for the range.
21165
21166 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
21167
21168 * config/i386/sse.md (V16): Rename to...
21169 (VMOVE): this.
21170 (mov<mode>): Update iterator name.
21171 (*mov<mode>_internal): Ditto.
21172 (push<mode>1): Ditto.
21173 (movmisalign<mode>): Ditto.
21174
21175 2013-08-20 Jan Hubicka <jh@suse.cz>
21176
21177 PR bootstrap/58186
21178 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21179 entry for direct edges.
21180 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21181
21182 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21183
21184 Revert my last two changes, r201865 and r201864:
21185
21186 Revert r201865:
21187 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21188
21189 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21190 instances can own GC refs.
21191
21192 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21193 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21194 (gcc::context::gt_pch_nx): Likewise.
21195 (gcc::context::gt_pch_nx): Likewise.
21196 * ggc.h (gt_ggc_mx <T>): New.
21197 (gt_pch_nx_with_op <T>): New.
21198 (gt_pch_nx <T>): New.
21199 * passes.c (opt_pass::gt_ggc_mx): New.
21200 (opt_pass::gt_pch_nx): New.
21201 (opt_pass::gt_pch_nx_with_op): New.
21202 (pass_manager::gt_ggc_mx): New.
21203 (pass_manager::gt_pch_nx): New.
21204 (pass_manager::gt_pch_nx_with_op): New.
21205 (pass_manager::operator new): Use
21206 ggc_internal_cleared_alloc_stat rather than xcalloc.
21207 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21208 (pass_manager::gt_ggc_mx): New.
21209 (pass_manager::gt_pch_nx): New.
21210 (pass_manager::gt_pch_nx_with_op): New.
21211 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21212 (opt_pass::operator new): New.
21213 (opt_pass::gt_ggc_mx): New.
21214 (opt_pass::gt_pch_nx): New.
21215 (opt_pass::gt_pch_nx_with_op): New.
21216
21217 Revert r201864:
21218 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21219
21220 * Makefile.in (GTFILES): Add context.h.
21221 * context.c (gcc::context::operator new): New.
21222 (gcc::context::gt_ggc_mx): New.
21223 (gcc::context::gt_pch_nx): New.
21224 (gcc::context::gt_pch_nx): New.
21225 * context.h (gcc::context): Add GTY((user)) marking.
21226 (gcc::context::operator new): New.
21227 (gcc::context::gt_ggc_mx): New.
21228 (gcc::context::gt_pch_nx): New.
21229 (gcc::context::gt_pch_nx): New.
21230 (g): Add GTY marking.
21231 (gt_ggc_mx (gcc::context *)): New.
21232 (gt_pch_nx (gcc::context *)): New.
21233 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21234 void *cookie)): New.
21235 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21236
21237 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21238
21239 * dce.c (fini_dce): Call df_analyze again just in case
21240 delete_unmarked_insns removed anything.
21241
21242 2013-08-20 Teresa Johnson <tejohnson@google.com>
21243
21244 PR rtl-optimizations/57451
21245 * final.c (reemit_insn_block_notes): Prevent lexical blocks
21246 from crossing split section boundaries.
21247
21248 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21249
21250 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21251 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21252 with MULTLIB_DEFAULTS.
21253
21254 2013-08-20 Nick Clifton <nickc@redhat.com>
21255
21256 * target.def (narrow_volatile_bitfield): Note that the default
21257 value is false, not !TARGET_STRICT_ALIGN.
21258 * doc/tm.texi: Regenerate.
21259
21260 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
21261
21262 Fix LIB_SPEC for systems without libpthread.
21263
21264 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21265 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21266 for Android.
21267 * config/i386/linux-common.h: Likewise.
21268 * config/mips/linux-common.h: Likewise.
21269
21270 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21271
21272 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21273 checks.
21274
21275 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21276
21277 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21278 instances can own GC refs.
21279
21280 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21281 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21282 (gcc::context::gt_pch_nx): Likewise.
21283 (gcc::context::gt_pch_nx): Likewise.
21284 * ggc.h (gt_ggc_mx <T>): New.
21285 (gt_pch_nx_with_op <T>): New.
21286 (gt_pch_nx <T>): New.
21287 * passes.c (opt_pass::gt_ggc_mx): New.
21288 (opt_pass::gt_pch_nx): New.
21289 (opt_pass::gt_pch_nx_with_op): New.
21290 (pass_manager::gt_ggc_mx): New.
21291 (pass_manager::gt_pch_nx): New.
21292 (pass_manager::gt_pch_nx_with_op): New.
21293 (pass_manager::operator new): Use
21294 ggc_internal_cleared_alloc_stat rather than xcalloc.
21295 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21296 (pass_manager::gt_ggc_mx): New.
21297 (pass_manager::gt_pch_nx): New.
21298 (pass_manager::gt_pch_nx_with_op): New.
21299 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21300 (opt_pass::operator new): New.
21301 (opt_pass::gt_ggc_mx): New.
21302 (opt_pass::gt_pch_nx): New.
21303 (opt_pass::gt_pch_nx_with_op): New.
21304
21305 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21306
21307 * Makefile.in (GTFILES): Add context.h.
21308 * context.c (gcc::context::operator new): New.
21309 (gcc::context::gt_ggc_mx): New.
21310 (gcc::context::gt_pch_nx): New.
21311 (gcc::context::gt_pch_nx): New.
21312 * context.h (gcc::context): Add GTY((user)) marking.
21313 (gcc::context::operator new): New.
21314 (gcc::context::gt_ggc_mx): New.
21315 (gcc::context::gt_pch_nx): New.
21316 (gcc::context::gt_pch_nx): New.
21317 (g): Add GTY marking.
21318 (gt_ggc_mx (gcc::context *)): New.
21319 (gt_pch_nx (gcc::context *)): New.
21320 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21321 void *cookie)): New.
21322 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21323
21324 2013-08-20 Alan Modra <amodra@gmail.com>
21325
21326 PR target/57865
21327 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21328 (rs6000_emit_epilogue): Likewise.
21329
21330 2013-08-19 Dehao Chen <dehao@google.com>
21331
21332 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21333
21334 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
21335 Jakub Jelinek <jakub@redhat.com>
21336
21337 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21338 (BUILT_IN_FABSD64): Likewise.
21339 (BUILT_IN_FABSD128): Likewise.
21340 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21341 (fold_builtin_1): Likewise.
21342 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21343 destination and source operands.
21344 (*abstd2_fpr): Likewise.
21345 (*nabstd2_fpr): Likewise.
21346
21347 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
21348
21349 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21350 JUMP_P and INSN_P.
21351
21352 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
21353
21354 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21355 incomplete.
21356
21357 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
21358
21359 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21360 * builtins.c (default_libc_has_function): New.
21361 (gnu_libc_has_function): Ditto.
21362 (no_c99_libc_has_function): Ditto.
21363 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21364 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21365 (fold_builtin_sincos): Likewise.
21366 (fold_builtin_cexp): Likewise.
21367 * builtins.def (DEF_C94_BUILTIN): Likewise.
21368 (DEF_C99_BUILTIN): Likewise.
21369 (DEF_C99_C90RES_BUILTIN): Likewise.
21370 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21371 definitions to using this define.
21372 * config/darwin-protos.h (darwin_libc_has_function): New.
21373 * config/darwin.c (darwin_libc_has_function): Ditto.
21374 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21375 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21376 * config/darwin.h: Ditto.
21377 * config/elfos.h: Ditto.
21378 * config/freebsd.h: Ditto.
21379 * config/i386/cygming.h: Ditto.
21380 * config/i386/djgpp.h: Ditto.
21381 * config/i386/i386-interix.h: Ditto.
21382 * config/microblaze/microblaze.h: Ditto.
21383 * config/mmix/mmix.h: Ditto.
21384 * config/gnu-user.h: Ditto.
21385 * config/ia64/hpux.h: Ditto.
21386 * config/pa/pa-hpux.h: Ditto.
21387 * config/pdp11/pdp11.h: Ditto.
21388 * config/picochip/picochip.h: Ditto.
21389 * config/linux.h: Ditto.
21390 * config/netbsd.h: Ditto.
21391 * config/openbsd.h: Ditto.
21392 * config/rs6000/aix43.h: Ditto.
21393 * config/rs6000/aix51.h: Ditto.
21394 * config/rs6000/aix52.h: Ditto.
21395 * config/rs6000/aix53.h: Ditto.
21396 * config/rs6000/aix61.h: Ditto.
21397 * config/rs6000/darwin.h: Ditto.
21398 * config/rs6000/linux.h: Ditto.
21399 * config/rs6000/linux64.h: Ditto.
21400 * config/s390/tpf.h: Ditto.
21401 * config/sol2-10.h: Ditto.
21402 * config/sol2.h: Ditto.
21403 * config/vms/vms.h: Ditto.
21404 * config/vxworks.h: Ditto.
21405 * config/linux-android.c (linux_android_libc_has_function):
21406 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21407 * config/linux-protos.h (linux_android_libc_has_function):
21408 New declaration.
21409 * config/i386/i386.c (ix86_libc_has_function): New.
21410 * config/i386/i386-protos.h
21411 (ix86_libc_has_function): New declaration.
21412 * config/i386/i386.md
21413 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21414 ("isinf<mode>2): Likewise.
21415 * convert.c (convert_to_integer): Using new target hook
21416 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21417 TARGET_C99_FUNCTIONS.
21418 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21419 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21420 * coretypes.h (function_class): New enum for different
21421 classes of functions.
21422 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21423 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21424 (TARGET_HAS_SINCOS): Likewise.
21425 (TARGET_LIBC_HAS_FUNCTION): New.
21426 * doc/tm.texi: Regenerated.
21427 * targhooks.h (default_libc_has_function): New declaration.
21428 (no_c99_libc_has_function): Ditto.
21429 (gnu_libc_has_function): Ditto.
21430 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21431 and TARGET_HAS_SINCOS.
21432
21433 2013-08-18 Jan Hubicka <jh@suse.cz>
21434
21435 * Makeifle-in (ipa-devirt.o): New.
21436 (GTFILES): Add ipa-utils.h and ipa-devirt.c
21437 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21438 (analyze_functions): Look into possible targets of polymorphic call.
21439 * dumpfile.c (dump_files): Add type-inheritance dump.
21440 * dumpfile.h (TDI_inheritance): New.
21441 * ipa-devirt.c: New file.
21442 * ipa-utils.h (odr_type_d): Forward declare.
21443 (odr_type): New type.
21444 (build_type_inheritance_graph): Declare.
21445 (possible_polymorphic_call_targets): Declare and introduce inline
21446 variant when only edge is pased.
21447 (dump_possible_polymorphic_call_targets): Likewise.
21448 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21449 * tree.c (type_in_anonymous_namespace_p): Break out from ...
21450 (types_same_for_odr): ... here.
21451 * tree.h (type_in_anonymous_namespace_p): Declare.
21452
21453 2013-08-18 Jakub Jelinek <jakub@redhat.com>
21454
21455 PR tree-optimization/58006
21456 * tree-parloops.c (take_address_of): Don't ICE if get_name
21457 returns NULL.
21458 (eliminate_local_variables_stmt): Remove clobber stmts.
21459
21460 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
21461
21462 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21463 error message is issued for an alias to undefined symbol.
21464
21465 2013-08-18 Jan Hubicka <jh@suse.cz>
21466
21467 * cgraph.c (cgraph_create_indirect_edge): Discover
21468 polymorphic calls and record basic info into indirect_info.
21469 * gimple-fold.c (gimple_fold_call): When doing BINFO based
21470 devirtualization, ignore objc function calls.
21471 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21472 call with no parm index info.
21473 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21474 * tree.c (virtual_method_call_p): New function.
21475 * tree.h (virtual_method_call_p): Declare.
21476
21477 2013-08-16 Jan Hubicka <jh@suse.cz>
21478
21479 PR middle-end/58179
21480 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21481
21482 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21483
21484 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21485 attribute.
21486
21487 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21488
21489 * gengtype.c (type_for_name): Add special-case support for
21490 locating types within the "gcc::" namespace.
21491 (open_base_files): Emit a "using namespace gcc" directive.
21492
21493 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21494
21495 PR target/58160
21496 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21497 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21498
21499 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21500 array instead of each individual operand as a separate argument.
21501 (emit_fusion_gpr_load): Likewise.
21502 (expand_fusion_gpr_load): Add new function declaration.
21503
21504 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21505 signature to have the operands passed as an array, instead of as
21506 separate arguments. Allow ZERO_EXTEND to be in the memory
21507 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21508 depend on the register live/dead flags when peepholes are run.
21509 (expand_fusion_gpr_load): New function to be called from the
21510 peephole2 pass, to change the register that addis sets to be the
21511 target register.
21512 (emit_fusion_gpr_load): Change the calling signature to have the
21513 operands passed as an array, instead of as separate arguments.
21514 Allow ZERO_EXTEND to be in the memory address, and also
21515 SIGN_EXTEND if -mpower8-fusion-sign.
21516
21517 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21518 unspec enumeration.
21519 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21520 adjust the register addis loads up in the peephole2 pass. Do not
21521 depend on the register live/dead state when the peephole pass is done.
21522
21523 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21524
21525 * gengtype.c (create_user_defined_type): Ensure that the kind
21526 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21527 declaration is seen before the GTY((user)) marking.
21528
21529 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21530
21531 PR target/58105
21532 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21533
21534 2013-08-16 Jan Hubicka <jh@suse.cz>
21535
21536 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21537 arugment expected_type.
21538 (gimple_fold_call): Use it.
21539 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21540 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21541 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21542 (try_make_edge_direct_virtual_call): Likewise.
21543 * tree.c (obj_type_ref_class): New.
21544 * tree.h (obj_type_ref_class): Use it.
21545
21546 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21547
21548 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21549 (rtl_slim_pp): Likewise.
21550 (init_rtl_slim_pretty_print): Likewise.
21551 (dump_value_slim): Don't call it. Use local pretty printer.
21552 (dump_insn_slim): Likewise.
21553 (dump_rtl_slim): Likewise.
21554 (str_pattern_slim): Likewise.
21555 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21556 Simplify.
21557
21558 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21559
21560 PR tree-optimization/58164
21561 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21562 walk gimple_goto_dest of GIMPLE_GOTO.
21563
21564 PR tree-optimization/58165
21565 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21566 bi_call must be the last stmt in a bb, don't split_block, instead
21567 use fallthru edge from it and give up if there is none.
21568 Release conds vector when returning early.
21569
21570 2013-08-14 Xinliang David Li <davidxl@google.com>
21571
21572 * config/i386/i386.c (ix86_option_override_internal):
21573 Remove unused variable and field.
21574
21575 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21576
21577 PR target/57949
21578 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21579 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21580 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21581 and Linux, correct BLKmode alignment when 128-bit alignment is
21582 required and compatibility flag is not set.
21583 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21584 for zero-size arguments when compatibility flag is not set.
21585
21586 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21587
21588 PR tree-optimization/58145
21589 * tree-sra.c (build_ref_for_offset): If prev_base has
21590 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21591
21592 2013-08-14 Xinliang David Li <davidxl@google.com>
21593
21594 * config/i386/i386.c (ix86_option_override_internal):
21595 Fix uninitialized variable error.
21596
21597 2013-08-14 Xinliang David Li <davidxl@google.com>
21598
21599 * config/i386/i386.opt: Define two new options.
21600 * config/i386/x86-tune.def: Add arch selector field in macros.
21601 * config/i386/i386.h: Adjust macro definition.
21602 * config/i386/i386.c (ix86_option_override_internal):
21603 Refactor the code.
21604 (parse_mtune_ctrl_str): New function.
21605 (set_ix86_tune_features): New function.
21606 (ix86_function_specific_restore): Call the new helper function.
21607
21608 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21609
21610 PR rtl-optimization/57662
21611 * sel-sched.c (code_motion_process_successors): When the current insn
21612 is removed after the recursive traversal, break from the loop.
21613 Add comments and debug printouts.
21614
21615 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21616 Alexandre Oliva <aoliva@redhat.com>
21617
21618 PR target/58067
21619 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21620 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21621 there also UNSPEC_PLTOFF.
21622
21623 2013-08-14 Marek Polacek <polacek@redhat.com>
21624
21625 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21626 NUM_CONDITIONS bit positions.
21627
21628 2013-08-13 Cary Coutant <ccoutant@google.com>
21629
21630 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21631 (attr_checksum): Hash vector contents instead of pointer.
21632 (attr_checksum_ordered): Likewise.
21633
21634 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21635
21636 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21637 when Pmode != word_mode. Add length_address attribute.
21638 (sse3_monitor_<mode>): Merge from sse3_monitor and
21639 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21640 Pmode != word_mode. Update insn length attribute.
21641 * config/i386/i386.c (ix86_option_override_internal): Update
21642 ix86_gen_monitor selection for merged sse3_monitor insn.
21643
21644 2013-08-13 Julian Brown <julian@codesourcery.com>
21645
21646 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21647 perform invalid legitimization on greater-than-word-size modes for
21648 TARGET_E500_DOUBLE.
21649
21650 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21651
21652 * ira.c (setup_class_translate_array): Use aclass instead of cl
21653 for classes not fully covered by allocno classes.
21654
21655 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21656
21657 PR tree-optimization/57661
21658 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21659 * tree-inline.c (tree_function_versioning): Initialize it.
21660 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21661 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21662 that is not being copied.
21663
21664 PR sanitizer/56417
21665 * asan.c (instrument_strlen_call): Fix typo in comment.
21666 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21667
21668 2013-08-13 Steve Ellcey <sellcey@mips.com>
21669
21670 * config/mips/mips.md (prefetch): Use lw instead of ld on
21671 loongson in 32bit mode.
21672
21673 2013-08-13 Nick Clifton <nickc@redhat.com>
21674
21675 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21676
21677 2013-08-13 Jan Hubicka <jh@suse.cz>
21678
21679 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21680 introduced edge; fix typo in sanity check.
21681 (cgraph_resolve_speculation): Export; improve diagnostic.
21682 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21683 speculation at type mismatch.
21684 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21685 (cgraph_resolve_speculation): Declare.
21686 (symtab_can_be_discarded): New function.
21687 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21688 * ipa-inline-transform.c (speculation_removed): New global var.
21689 (clone_inlined_nodes): See if speculation can be removed.
21690 (inline_call): If speculations was removed, we growths may not match.
21691 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21692 (speculation_useful_p): New function.
21693 (resolve_noninline_speculation): New function.
21694 (inline_small_functions): Resolve useless speculations.
21695 * ipa-inline.h (speculation_useful_p): Declare
21696 * ipa.c (can_replace_by_local_alias): Simplify.
21697 (ipa_profile): Produce speculative calls in non-lto, too;
21698 add simple cost model; produce local aliases.
21699
21700 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21701
21702 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21703 PASS_MANAGER_H.
21704
21705 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21706
21707 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21708
21709 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21710
21711 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21712 iterator instead of X87MODEF.
21713
21714 2013-08-12 Perez Read <netfirewall@gmail.com>
21715
21716 PR target/58132
21717 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21718 operand 0 for intel asm alternative.
21719 (*movabs<mode>_2): Ditto for operand 1.
21720
21721 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21722
21723 * config/aarch64/arm_none.h
21724 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21725
21726 2013-08-12 Nick Clifton <nickc@redhat.com>
21727
21728 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21729
21730 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21731
21732 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21733 expand for QI/HImode operand to produce more effictive code for
21734 unsigned char(short) --> float(double) conversion.
21735
21736 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21737
21738 * doc/invoke.texi: Mention that -ftls-model does not force the final
21739 model.
21740
21741 2013-08-12 Marek Polacek <polacek@redhat.com>
21742 Marc Glisse <marc.glisse@inria.fr>
21743
21744 PR tree-optimization/57980
21745 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21746 when creating -1 constant.
21747
21748 2013-08-10 Jan Hubicka <jh@suse.cz>
21749
21750 Workaround binutils PR14342.
21751 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21752 (gimple_init_edge_profiler): Likewise.
21753 (gimple_gen_ic_func_profiler): Likewise.
21754
21755 2013-08-09 Jan Hubicka <jh@suse.cz>
21756
21757 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21758
21759 2013-08-09 Xinliang David Li <davidxl@google.com>
21760
21761 * config/i386/stringop.def: New file.
21762 * config/i386/stringop.opt: New file.
21763 * config/i386/i386-opts.h: Include stringopt.def.
21764 * config/i386/i386.opt: Include stringopt.opt.
21765 * config/i386/i386.c (ix86_option_override_internal):
21766 Override default size based stringop inline strategies with options.
21767 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21768 New function.
21769
21770 2013-08-09 Jan Hubicka <jh@suse.cz>
21771
21772 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21773
21774 2013-08-09 Jan Hubicka <jh@suse.cz>
21775
21776 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21777 CGRAPH_FREQ_MAX.
21778 (dump_cgraph_node): Dump profile-id.
21779 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21780 and common_target_probability.
21781 * lto-cgraph.c (lto_output_edge): Stream common targets.
21782 (lto_output_node): Stream profile ids.
21783 (input_node): Stream profile ids.
21784 (input_edge): Stream common targets.
21785 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21786 * ipa.c: Include value-prof.h
21787 (ipa_profile_generate_summary): Turn indirect call statement histograms
21788 into common targets.
21789 (ipa_profile): Turn common targets into speculative edges.
21790
21791 2013-08-09 Jan Hubicka <jh@suse.cz>
21792
21793 * cgraph.h (cgraph_node): Add profile_id.
21794 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21795 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21796 (del_node_map): Update.
21797 (find_func_by_funcdef_no): Replace by ...
21798 (find_func_by_profile_id): ... this one.
21799 (gimple_ic_transform): Do not remove useful histograms when
21800 speculation is not done; dump info when indirect call removal
21801 can happen at LTO.
21802 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21803 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21804 (__gcov_indirect_call_profiler_v2): .. this one.
21805 * profile.h (init_node_map): Update.
21806 * coverage.c (coverage_compute_profile_id): New function.
21807 * coverage.h (coverage_compute_profile_id): Declare.
21808 * tree-profile.c (init_ic_make_global_vars): Make
21809 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21810 (gimple_init_edge_profiler): Update prototype of
21811 __gcov_indirect_call_profiler.
21812 (gimple_gen_ic_func_profiler): Simplify.
21813 (tree_profiling): Use init_node_map
21814
21815 2013-08-09 Jan Hubicka <jh@suse.cz>
21816
21817 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21818 non-speculative refs.
21819 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21820 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21821 (cgraph_set_call_stmt): Likewise.
21822 (cgraph_create_edge_1): Fix release checking compilatoin;
21823 clear lto_stmt_uid.
21824 (cgraph_free_edge): Free indirect info.
21825 (cgraph_turn_edge_to_speculative): New function.
21826 (cgraph_speculative_call_info): New function.
21827 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21828 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21829 (dump_cgraph_node): Dump speculation.
21830 (verify_edge_count_and_frequency): Accept speculative edges.
21831 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21832 (verify_cgraph_node): Handle speculation.
21833 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21834 (cgraph_set_call_stmt): Update prototype.
21835 (cgraph_make_edge_direct): Update prototype.
21836 (cgraph_speculative_call_info): Declare.
21837 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21838 to change; update call of ipa_find_references.
21839 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21840 lto_stmt_uid and speculative flags.
21841 (ipa_dump_references): Dump speculation.
21842 (ipa_clone_references): Clone speculative flag.
21843 (ipa_clone_referring): Likewise.
21844 (ipa_clone_ref): New function.
21845 (ipa_find_reference): Look into lto_stmt_uids
21846 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21847 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21848 (ipa_find_reference): Update declaration.
21849 (ipa_clone_ref): Declare.
21850 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21851 stream speculative flag.
21852 (lto_output_ref): Stream statements uids and speculation.
21853 (input_ref): Likewise.
21854 (input_edge): Stream speuclation.
21855 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21856 (cgraph_set_call_stmt_including_clones): Handle speculation.
21857 * ipa-inline.c (heap_edge_removal_hook): New function.
21858 (inline_small_functions): Register it.
21859 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21860 also initialize refs.
21861 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21862 edge to change.
21863 (try_make_edge_direct_simple_call): Likewise.
21864 (try_make_edge_direct_simple_call): Likewise.
21865 (update_indirect_edges_after_inlining): Likewise.
21866 (remove_described_reference): Look proper lto_stmt_uid.
21867 (propagate_controlled_uses): Likewise.
21868 (propagate_controlled_uses): Liekwise.
21869 * tree-inline.c (copy_bb): Copy speculative edges.
21870 (redirect_all_calls): New function.
21871 (copy_cfg_body): Do redirection after loop info is updated.
21872 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21873
21874 2013-08-09 Jan Hubicka <jh@suse.cz>
21875
21876 * lto-streamer-out.c (output_function): Renumber PHIs.
21877 * lto-streamer-in.c (input_function): Likewise.
21878
21879 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21880
21881 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21882 (get_lane_unsigned): Likewise.
21883 (dup_lane_scalar): Likewise.
21884 (get_lane): enable for VALL.
21885 * config/aarch64/aarch64-simd.md
21886 (aarch64_dup_lane_scalar<mode>): Remove.
21887 (aarch64_get_lane_signed<mode>): Likewise.
21888 (aarch64_get_lane_unsigned<mode>): Likewise.
21889 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21890 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21891 (aarch64_get_lane<mode>): Enable for all vector modes.
21892 (aarch64_get_lanedi): Remove misleading constraints.
21893 * config/aarch64/arm_neon.h
21894 (__aarch64_vget_lane_any): Define.
21895 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21896 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21897 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21898 * config/aarch64/iterators.md (VDQQH): New.
21899 (VDQQHS): Likewise.
21900 (vwcore): Likewise.
21901
21902 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21903
21904 * configure.ac: Add GAS check for LEON instructions on SPARC.
21905 * configure: Regenerate.
21906 * config.in: Likewise.
21907 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21908 sparc*-*-* block.
21909 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21910 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21911 for LEON or LEON3.
21912 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21913 (AS_LEON_FLAG): New macro.
21914 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21915 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21916 Deal with LEON and LEON3 for the memory model.
21917 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21918 (atomic_compare_and_swap<mode>_1): Likewise.
21919 (*atomic_compare_and_swap<mode>_1): Likewise.
21920
21921 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21922
21923 * config/arm/neon.md (vcond): Fix floating-point vector
21924 comparisons against 0.
21925
21926 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21927
21928 * lra-constraints.c (emit_spill_move): Remove assert.
21929 (process_alt_operands): Add more debugging
21930 output. Increase reject for spilling into memory. Decrease
21931 reject for reloading scratch.
21932 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21933
21934 2013-08-08 Steve Ellcey <sellcey@mips.com>
21935
21936 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21937 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21938 micromips incompatible. Add nan2008.
21939 (MULTILIB_DIRNAMES): Add nan2008.
21940 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21941 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21942 and micromips incompatible. Add nan2008.
21943 (MULTILIB_DIRNAMES): Add nan2008.
21944 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21945
21946 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21947
21948 PR rtl-optimization/58079
21949 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21950 simplify_comparison has widened a comparison with an integer.
21951
21952 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21953
21954 * config/arm/neon.md (movmisalign<mode>): Disable when we
21955 don't allow unaligned accesses.
21956 (*movmisalign<mode>_neon_store): Likewise.
21957 (*movmisalign<mode>_neon_load): Likewise.
21958 (*movmisalign<mode>_neon_store): Likewise.
21959 (*movmisalign<mode>_neon_load): Likewise.
21960
21961 2013-08-08 Jan Hubicka <jh@suse.cz>
21962
21963 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21964 (make_pass_rebuild_cgraph_edges): Also clear references.
21965 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21966 * ipa-inline-transform.c (inline_transform): Remove all references
21967 after inlining.
21968 * cgraphunit.c (expand_function): Remove all references after
21969 expansion.
21970 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21971 (ipa_find_reference): Rewrite to iterator.
21972 (remove_stmt_references): Likewise.
21973 (ipa_clear_stmts_in_references): New function.
21974 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21975 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21976 clear references.
21977 * ipa-split.c (split_function): Remove references in split function.
21978
21979 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21980
21981 PR target/57431
21982 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21983 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21984
21985 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21986
21987 PR target/56979
21988 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21989 suggested mode for the assignment isn't compatible with the
21990 registers required.
21991
21992 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21993
21994 PR target/58065
21995 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21996
21997 2013-08-07 Xinliang David Li <davidxl@google.com>
21998
21999 * config/i386/i386.opt: New option -mtune-ctrl=.
22000 * config/i386/x86-tune.def: New file.
22001 * config/i386/i386.h: include x86-tune.def.
22002 * config/i386/i386.c (ix86_option_override_internal):
22003 Parsing -mtune-ctrl= option and set tune features.
22004
22005 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
22006
22007 PR other/12081
22008 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
22009 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
22010 to gen_2arg_fn_t.
22011
22012 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22013
22014 * rtl.h (update_alignments): Declare.
22015 * final.c (grow_label_align): New function extracted from...
22016 (shorten_branches): ...here. Call it.
22017 (update_alignments): New function.
22018 * reorg.c (sibling_labels): New variable.
22019 (get_label_before): Add SIBLING parameter. If it is non-zero, push
22020 the new label along with it onto the sibling_labels vector.
22021 (fill_simple_delay_slots): Adjust call to get_label_before.
22022 (fill_slots_from_thread): Likewise.
22023 (relax_delay_slots): Likewise.
22024 (make_return_insns): Likewise.
22025 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
22026
22027 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22028
22029 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22030 document its semantics.
22031 (diagnostic_report_diagnostic): Adjust accordingly.
22032
22033 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22034
22035 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22036 (sparc_option_override): ...and port to new C++ pass API.
22037 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22038
22039 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
22040
22041 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22042
22043 2013-08-06 Caroline Tice <cmtice@google.com>
22044
22045 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22046 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22047 * tree-pass.h: Add pass_vtable_verify.
22048 * varasm.c (assemble_variable): Add code to properly set the comdat
22049 section and name for the .vtable_map_vars section.
22050 (assemble_vtyv_preinit_initializer): New function.
22051 (default_sectin_type_flags): Make sure .vtable_map_vars section has
22052 LINK_ONCE flag.
22053 * output.h: Add function decl for assemble_vtv_preinit_initializer.
22054 * vtable-verify.c: New file.
22055 * vtable-verify.h: New file.
22056 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22057 initialiation levels.
22058 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22059 * passes.def: Insert pass_vtable_verify.
22060 * aclocal.m4: Reorder includes.
22061 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
22062 -fvtv-counts options.
22063 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22064 as appropriate, if -fvtable-verify=... is used.
22065 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22066 -fvtable-verify=... is used.
22067 * Makefile.in (OBJS): Add vtable-verify.o to list.
22068 (vtable-verify.o): Add new build rule.
22069 (GTFILES): Add vtable-verify.c to list.
22070 * common.opt (fvtable-verify=): New flag.
22071 (vtv_priority): Values for fvtable-verify= flag.
22072 (fvtv-counts): New flag.
22073 (fvtv-debug): New flag.
22074 * tree.h (save_vtable_map_decl): New extern function decl.
22075
22076 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22077
22078 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22079 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22080 (pass_data_rl78_devirt): ...new pass_data instance and...
22081 (make_pass_rl78_devirt): ...new function.
22082 (rl78_asm_file_start): Port pass registration to new C++ API.
22083
22084 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22085
22086 * coretypes.h (rtl_opt_pass): Add.
22087 (gcc::context): Add.
22088 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22089 (epiphany_init): Port to new C++ pass API.
22090 (epiphany_optimize_mode_switching): Likewise.
22091 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22092 (pass_manager::get_pass_mode_switching): New.
22093 (pass_manager::get_pass_peephole2): New.
22094 * mode-switching.c (pass_mode_switching): Add clone method.
22095 * recog.c (pass_peephole2): Add clone method.
22096 (pass_split_all_insns): Add clone method.
22097
22098 2013-08-06 David Malcolm <dmalcolm@redhat.com>
22099
22100 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22101 (mips_option_override): ...here, porting to new C++ API for passes.
22102
22103 2013-08-06 Jan Hubicka <jh@suse.cz>
22104
22105 * cgraph.c (cgraph_get_body): New function based on lto.c
22106 implementation.
22107 * cgraph.h (cgraph_get_body): Declare.
22108 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22109 LTO paths.
22110 * cgraphunit.c (expand_function): Get body prior expanding.
22111 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22112 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22113 really need.
22114 * passes.c (do_per_function_toporder): Get body.
22115 * tree-inline.c (expand_call_inline): Get body prior inlining it.
22116 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22117
22118 2013-08-06 Martin Jambor <mjambor@suse.cz>
22119
22120 PR fortran/57987
22121 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22122 is not re-finalized. Rename second parameter to no_collect.
22123
22124 2013-08-06 Martin Jambor <mjambor@suse.cz>
22125
22126 PR middle-end/58041
22127 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22128 MEM_REF has proper alignment information.
22129
22130 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
22131
22132 PR other/12081
22133 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22134 class insn_gen_fn.
22135 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22136 rtx (*) (rtx, ...) with insn_gen_fn.
22137 * genoutput.c (output_insn_data): Cast gen_? function pointers to
22138 insn_gen_fn::stored_funcptr. Add initializer braces.
22139
22140 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22141
22142 Rewrite how instances of passes are cloned to remove assumptions
22143 about their sizes (thus allowing pass subclasses to have
22144 additional data fields, albeit non-GC-managed ones at this point).
22145
22146 * passes.c (make_pass_instance): Now that passes have clone
22147 methods, rewrite this function to eliminate XNEW and memcpy
22148 calls that used hardcoded sizes. Since this function no longer
22149 creates pass instances, rename it to...
22150 (add_pass_instance): ...this. Document the old way that passes were
22151 numbered and flagged, and rework this function to continue using it.
22152 (next_pass_1): Add an initial_pass argument for use by
22153 add_pass_instance.
22154 (position_pass): When adding multiple instances of a pass, use
22155 the pass's clone method, rather than relying on the XNEW/memcpy
22156 within the former make_pass_instance (now add_pass_instance).
22157 (pass_manager::pass_manager): When invoking next_pass_1, also supply
22158 the initial instance of the current pass within the pass manager.
22159
22160 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22161
22162 This is the automated part of the conversion of passes from C
22163 structs to C++ classes.
22164
22165 Patch autogenerated by refactor_passes.py from
22166 https://github.com/davidmalcolm/gcc-refactoring-scripts
22167 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22168
22169 * asan.c (pass_asan): Convert from a global struct to a subclass of
22170 gimple_opt_pass along with...
22171 (pass_data_asan): ...new pass_data instance and...
22172 (make_pass_asan): ...new function.
22173 (pass_asan_O0): Convert from a global struct to a subclass of
22174 gimple_opt_pass along with...
22175 (pass_data_asan_O0): ...new pass_data instance and...
22176 (make_pass_asan_O0): ...new function.
22177 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22178 subclass of rtl_opt_pass along with...
22179 (pass_data_inc_dec): ...new pass_data instance and...
22180 (make_pass_inc_dec): ...new function.
22181 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22182 a subclass of rtl_opt_pass along with...
22183 (pass_data_reorder_blocks): ...new pass_data instance and...
22184 (make_pass_reorder_blocks): ...new function.
22185 (pass_duplicate_computed_gotos): Convert from a global struct to a
22186 subclass of rtl_opt_pass along with...
22187 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22188 (make_pass_duplicate_computed_gotos): ...new function.
22189 (pass_partition_blocks): Convert from a global struct to a subclass of
22190 rtl_opt_pass along with...
22191 (pass_data_partition_blocks): ...new pass_data instance and...
22192 (make_pass_partition_blocks): ...new function.
22193 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22194 struct to a subclass of rtl_opt_pass along with...
22195 (pass_data_branch_target_load_optimize1): ...new pass_data instance
22196 and...
22197 (make_pass_branch_target_load_optimize1): ...new function.
22198 (pass_branch_target_load_optimize2): Convert from a global struct to a
22199 subclass of rtl_opt_pass along with...
22200 (pass_data_branch_target_load_optimize2): ...new pass_data instance
22201 and...
22202 (make_pass_branch_target_load_optimize2): ...new function.
22203 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22204 of rtl_opt_pass along with...
22205 (pass_data_jump): ...new pass_data instance and...
22206 (make_pass_jump): ...new function.
22207 (pass_jump2): Convert from a global struct to a subclass of
22208 rtl_opt_pass along with...
22209 (pass_data_jump2): ...new pass_data instance and...
22210 (make_pass_jump2): ...new function.
22211 * cfgexpand.c (pass_expand): Convert from a global struct to a
22212 subclass of rtl_opt_pass along with...
22213 (pass_data_expand): ...new pass_data instance and...
22214 (make_pass_expand): ...new function.
22215 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22216 of rtl_opt_pass along with...
22217 (pass_data_free_cfg): ...new pass_data instance and...
22218 (make_pass_free_cfg): ...new function.
22219 (pass_into_cfg_layout_mode): Convert from a global struct to a
22220 subclass of rtl_opt_pass along with...
22221 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22222 (make_pass_into_cfg_layout_mode): ...new function.
22223 (pass_outof_cfg_layout_mode): Convert from a global struct to a
22224 subclass of rtl_opt_pass along with...
22225 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22226 (make_pass_outof_cfg_layout_mode): ...new function.
22227 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22228 struct to a subclass of gimple_opt_pass along with...
22229 (pass_data_build_cgraph_edges): ...new pass_data instance and...
22230 (make_pass_build_cgraph_edges): ...new function.
22231 (pass_rebuild_cgraph_edges): Convert from a global struct to a
22232 subclass of gimple_opt_pass along with...
22233 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22234 (make_pass_rebuild_cgraph_edges): ...new function.
22235 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22236 subclass of gimple_opt_pass along with...
22237 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22238 and...
22239 (make_pass_remove_cgraph_callee_edges): ...new function.
22240 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22241 struct to a subclass of rtl_opt_pass along with...
22242 (pass_data_stack_adjustments): ...new pass_data instance and...
22243 (make_pass_stack_adjustments): ...new function.
22244 * combine.c (pass_combine): Convert from a global struct to a subclass
22245 of rtl_opt_pass along with...
22246 (pass_data_combine): ...new pass_data instance and...
22247 (make_pass_combine): ...new function.
22248 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22249 global struct to a subclass of rtl_opt_pass along with...
22250 (pass_data_compare_elim_after_reload): ...new pass_data instance
22251 and...
22252 (make_pass_compare_elim_after_reload): ...new function.
22253 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22254 of rtl_opt_pass along with...
22255 (pass_data_rtl_cprop): ...new pass_data instance and...
22256 (make_pass_rtl_cprop): ...new function.
22257 * cse.c (pass_cse): Convert from a global struct to a subclass of
22258 rtl_opt_pass along with...
22259 (pass_data_cse): ...new pass_data instance and...
22260 (make_pass_cse): ...new function.
22261 (pass_cse2): Convert from a global struct to a subclass of
22262 rtl_opt_pass along with...
22263 (pass_data_cse2): ...new pass_data instance and...
22264 (make_pass_cse2): ...new function.
22265 (pass_cse_after_global_opts): Convert from a global struct to a
22266 subclass of rtl_opt_pass along with...
22267 (pass_data_cse_after_global_opts): ...new pass_data instance and...
22268 (make_pass_cse_after_global_opts): ...new function.
22269 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22270 of rtl_opt_pass along with...
22271 (pass_data_ud_rtl_dce): ...new pass_data instance and...
22272 (make_pass_ud_rtl_dce): ...new function.
22273 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22274 rtl_opt_pass along with...
22275 (pass_data_fast_rtl_dce): ...new pass_data instance and...
22276 (make_pass_fast_rtl_dce): ...new function.
22277 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22278 a subclass of rtl_opt_pass along with...
22279 (pass_data_df_initialize_opt): ...new pass_data instance and...
22280 (make_pass_df_initialize_opt): ...new function.
22281 (pass_df_initialize_no_opt): Convert from a global struct to a
22282 subclass of rtl_opt_pass along with...
22283 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22284 (make_pass_df_initialize_no_opt): ...new function.
22285 (pass_df_finish): Convert from a global struct to a subclass of
22286 rtl_opt_pass along with...
22287 (pass_data_df_finish): ...new pass_data instance and...
22288 (make_pass_df_finish): ...new function.
22289 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22290 rtl_opt_pass along with...
22291 (pass_data_rtl_dse1): ...new pass_data instance and...
22292 (make_pass_rtl_dse1): ...new function.
22293 (pass_rtl_dse2): Convert from a global struct to a subclass of
22294 rtl_opt_pass along with...
22295 (pass_data_rtl_dse2): ...new pass_data instance and...
22296 (make_pass_rtl_dse2): ...new function.
22297 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22298 subclass of rtl_opt_pass along with...
22299 (pass_data_dwarf2_frame): ...new pass_data instance and...
22300 (make_pass_dwarf2_frame): ...new function.
22301 * except.c (pass_set_nothrow_function_flags): Convert from a global
22302 struct to a subclass of rtl_opt_pass along with...
22303 (pass_data_set_nothrow_function_flags): ...new pass_data instance
22304 and...
22305 (make_pass_set_nothrow_function_flags): ...new function.
22306 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22307 subclass of rtl_opt_pass along with...
22308 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22309 and...
22310 (make_pass_convert_to_eh_region_ranges): ...new function.
22311 * final.c (pass_compute_alignments): Convert from a global struct to a
22312 subclass of rtl_opt_pass along with...
22313 (pass_data_compute_alignments): ...new pass_data instance and...
22314 (make_pass_compute_alignments): ...new function.
22315 (pass_final): Convert from a global struct to a subclass of
22316 rtl_opt_pass along with...
22317 (pass_data_final): ...new pass_data instance and...
22318 (make_pass_final): ...new function.
22319 (pass_shorten_branches): Convert from a global struct to a subclass of
22320 rtl_opt_pass along with...
22321 (pass_data_shorten_branches): ...new pass_data instance and...
22322 (make_pass_shorten_branches): ...new function.
22323 (pass_clean_state): Convert from a global struct to a subclass of
22324 rtl_opt_pass along with...
22325 (pass_data_clean_state): ...new pass_data instance and...
22326 (make_pass_clean_state): ...new function.
22327 * function.c (pass_instantiate_virtual_regs): Convert from a global
22328 struct to a subclass of rtl_opt_pass along with...
22329 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22330 (make_pass_instantiate_virtual_regs): ...new function.
22331 (pass_leaf_regs): Convert from a global struct to a subclass of
22332 rtl_opt_pass along with...
22333 (pass_data_leaf_regs): ...new pass_data instance and...
22334 (make_pass_leaf_regs): ...new function.
22335 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22336 subclass of rtl_opt_pass along with...
22337 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22338 and...
22339 (make_pass_thread_prologue_and_epilogue): ...new function.
22340 (pass_match_asm_constraints): Convert from a global struct to a
22341 subclass of rtl_opt_pass along with...
22342 (pass_data_match_asm_constraints): ...new pass_data instance and...
22343 (make_pass_match_asm_constraints): ...new function.
22344 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22345 subclass of rtl_opt_pass along with...
22346 (pass_data_rtl_fwprop): ...new pass_data instance and...
22347 (make_pass_rtl_fwprop): ...new function.
22348 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22349 rtl_opt_pass along with...
22350 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22351 (make_pass_rtl_fwprop_addr): ...new function.
22352 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22353 rtl_opt_pass along with...
22354 (pass_data_rtl_pre): ...new pass_data instance and...
22355 (make_pass_rtl_pre): ...new function.
22356 (pass_rtl_hoist): Convert from a global struct to a subclass of
22357 rtl_opt_pass along with...
22358 (pass_data_rtl_hoist): ...new pass_data instance and...
22359 (make_pass_rtl_hoist): ...new function.
22360 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22361 subclass of gimple_opt_pass along with...
22362 (pass_data_lower_cf): ...new pass_data instance and...
22363 (make_pass_lower_cf): ...new function.
22364 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22365 from a global struct to a subclass of gimple_opt_pass along with...
22366 (pass_data_strength_reduction): ...new pass_data instance and...
22367 (make_pass_strength_reduction): ...new function.
22368 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22369 of rtl_opt_pass along with...
22370 (pass_data_rtl_ifcvt): ...new pass_data instance and...
22371 (make_pass_rtl_ifcvt): ...new function.
22372 (pass_if_after_combine): Convert from a global struct to a subclass of
22373 rtl_opt_pass along with...
22374 (pass_data_if_after_combine): ...new pass_data instance and...
22375 (make_pass_if_after_combine): ...new function.
22376 (pass_if_after_reload): Convert from a global struct to a subclass of
22377 rtl_opt_pass along with...
22378 (pass_data_if_after_reload): ...new pass_data instance and...
22379 (make_pass_if_after_reload): ...new function.
22380 * init-regs.c (pass_initialize_regs): Convert from a global struct to
22381 a subclass of rtl_opt_pass along with...
22382 (pass_data_initialize_regs): ...new pass_data instance and...
22383 (make_pass_initialize_regs): ...new function.
22384 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22385 of ipa_opt_pass_d along with...
22386 (pass_data_ipa_cp): ...new pass_data instance and...
22387 (make_pass_ipa_cp): ...new function.
22388 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22389 global struct to a subclass of gimple_opt_pass along with...
22390 (pass_data_inline_parameters): ...new pass_data instance and...
22391 (make_pass_inline_parameters): ...new function.
22392 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22393 subclass of gimple_opt_pass along with...
22394 (pass_data_early_inline): ...new pass_data instance and...
22395 (make_pass_early_inline): ...new function.
22396 (pass_ipa_inline): Convert from a global struct to a subclass of
22397 ipa_opt_pass_d along with...
22398 (pass_data_ipa_inline): ...new pass_data instance and...
22399 (make_pass_ipa_inline): ...new function.
22400 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22401 struct to a subclass of gimple_opt_pass along with...
22402 (pass_data_local_pure_const): ...new pass_data instance and...
22403 (make_pass_local_pure_const): ...new function.
22404 (pass_ipa_pure_const): Convert from a global struct to a subclass of
22405 ipa_opt_pass_d along with...
22406 (pass_data_ipa_pure_const): ...new pass_data instance and...
22407 (make_pass_ipa_pure_const): ...new function.
22408 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22409 to a subclass of ipa_opt_pass_d along with...
22410 (pass_data_ipa_reference): ...new pass_data instance and...
22411 (make_pass_ipa_reference): ...new function.
22412 * ipa-split.c (pass_split_functions): Convert from a global struct to
22413 a subclass of gimple_opt_pass along with...
22414 (pass_data_split_functions): ...new pass_data instance and...
22415 (make_pass_split_functions): ...new function.
22416 (pass_feedback_split_functions): Convert from a global struct to a
22417 subclass of gimple_opt_pass along with...
22418 (pass_data_feedback_split_functions): ...new pass_data instance and...
22419 (make_pass_feedback_split_functions): ...new function.
22420 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22421 global struct to a subclass of simple_ipa_opt_pass along with...
22422 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22423 instance and...
22424 (make_pass_ipa_function_and_variable_visibility): ...new function.
22425 (pass_ipa_free_inline_summary): Convert from a global struct to a
22426 subclass of simple_ipa_opt_pass along with...
22427 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22428 (make_pass_ipa_free_inline_summary): ...new function.
22429 (pass_ipa_whole_program_visibility): Convert from a global struct to a
22430 subclass of ipa_opt_pass_d along with...
22431 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22432 and...
22433 (make_pass_ipa_whole_program_visibility): ...new function.
22434 (pass_ipa_profile): Convert from a global struct to a subclass of
22435 ipa_opt_pass_d along with...
22436 (pass_data_ipa_profile): ...new pass_data instance and...
22437 (make_pass_ipa_profile): ...new function.
22438 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22439 ipa_opt_pass_d along with...
22440 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22441 (make_pass_ipa_cdtor_merge): ...new function.
22442 * ira.c (pass_ira): Convert from a global struct to a subclass of
22443 rtl_opt_pass along with...
22444 (pass_data_ira): ...new pass_data instance and...
22445 (make_pass_ira): ...new function.
22446 (pass_reload): Convert from a global struct to a subclass of
22447 rtl_opt_pass along with...
22448 (pass_data_reload): ...new pass_data instance and...
22449 (make_pass_reload): ...new function.
22450 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22451 subclass of rtl_opt_pass along with...
22452 (pass_data_cleanup_barriers): ...new pass_data instance and...
22453 (make_pass_cleanup_barriers): ...new function.
22454 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22455 of rtl_opt_pass along with...
22456 (pass_data_loop2): ...new pass_data instance and...
22457 (make_pass_loop2): ...new function.
22458 (pass_rtl_loop_init): Convert from a global struct to a subclass of
22459 rtl_opt_pass along with...
22460 (pass_data_rtl_loop_init): ...new pass_data instance and...
22461 (make_pass_rtl_loop_init): ...new function.
22462 (pass_rtl_loop_done): Convert from a global struct to a subclass of
22463 rtl_opt_pass along with...
22464 (pass_data_rtl_loop_done): ...new pass_data instance and...
22465 (make_pass_rtl_loop_done): ...new function.
22466 (pass_rtl_move_loop_invariants): Convert from a global struct to a
22467 subclass of rtl_opt_pass along with...
22468 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22469 (make_pass_rtl_move_loop_invariants): ...new function.
22470 (pass_rtl_unswitch): Convert from a global struct to a subclass of
22471 rtl_opt_pass along with...
22472 (pass_data_rtl_unswitch): ...new pass_data instance and...
22473 (make_pass_rtl_unswitch): ...new function.
22474 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22475 subclass of rtl_opt_pass along with...
22476 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22477 and...
22478 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22479 (pass_rtl_doloop): Convert from a global struct to a subclass of
22480 rtl_opt_pass along with...
22481 (pass_data_rtl_doloop): ...new pass_data instance and...
22482 (make_pass_rtl_doloop): ...new function.
22483 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22484 a subclass of rtl_opt_pass along with...
22485 (pass_data_lower_subreg): ...new pass_data instance and...
22486 (make_pass_lower_subreg): ...new function.
22487 (pass_lower_subreg2): Convert from a global struct to a subclass of
22488 rtl_opt_pass along with...
22489 (pass_data_lower_subreg2): ...new pass_data instance and...
22490 (make_pass_lower_subreg2): ...new function.
22491 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22492 struct to a subclass of ipa_opt_pass_d along with...
22493 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22494 (make_pass_ipa_lto_gimple_out): ...new function.
22495 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22496 of ipa_opt_pass_d along with...
22497 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22498 (make_pass_ipa_lto_finish_out): ...new function.
22499 * mode-switching.c (pass_mode_switching): Convert from a global struct
22500 to a subclass of rtl_opt_pass along with...
22501 (pass_data_mode_switching): ...new pass_data instance and...
22502 (make_pass_mode_switching): ...new function.
22503 * modulo-sched.c (pass_sms): Convert from a global struct to a
22504 subclass of rtl_opt_pass along with...
22505 (pass_data_sms): ...new pass_data instance and...
22506 (make_pass_sms): ...new function.
22507 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22508 subclass of gimple_opt_pass along with...
22509 (pass_data_expand_omp): ...new pass_data instance and...
22510 (make_pass_expand_omp): ...new function.
22511 (pass_lower_omp): Convert from a global struct to a subclass of
22512 gimple_opt_pass along with...
22513 (pass_data_lower_omp): ...new pass_data instance and...
22514 (make_pass_lower_omp): ...new function.
22515 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22516 of gimple_opt_pass along with...
22517 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22518 (make_pass_diagnose_omp_blocks): ...new function.
22519 * passes.c (pass_early_local_passes): Convert from a global struct to
22520 a subclass of simple_ipa_opt_pass along with...
22521 (pass_data_early_local_passes): ...new pass_data instance and...
22522 (make_pass_early_local_passes): ...new function.
22523 (pass_all_early_optimizations): Convert from a global struct to a
22524 subclass of gimple_opt_pass along with...
22525 (pass_data_all_early_optimizations): ...new pass_data instance and...
22526 (make_pass_all_early_optimizations): ...new function.
22527 (pass_all_optimizations): Convert from a global struct to a subclass
22528 of gimple_opt_pass along with...
22529 (pass_data_all_optimizations): ...new pass_data instance and...
22530 (make_pass_all_optimizations): ...new function.
22531 (pass_all_optimizations_g): Convert from a global struct to a subclass
22532 of gimple_opt_pass along with...
22533 (pass_data_all_optimizations_g): ...new pass_data instance and...
22534 (make_pass_all_optimizations_g): ...new function.
22535 (pass_rest_of_compilation): Convert from a global struct to a subclass
22536 of rtl_opt_pass along with...
22537 (pass_data_rest_of_compilation): ...new pass_data instance and...
22538 (make_pass_rest_of_compilation): ...new function.
22539 (pass_postreload): Convert from a global struct to a subclass of
22540 rtl_opt_pass along with...
22541 (pass_data_postreload): ...new pass_data instance and...
22542 (make_pass_postreload): ...new function.
22543 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22544 subclass of rtl_opt_pass along with...
22545 (pass_data_gcse2): ...new pass_data instance and...
22546 (make_pass_gcse2): ...new function.
22547 * postreload.c (pass_postreload_cse): Convert from a global struct to
22548 a subclass of rtl_opt_pass along with...
22549 (pass_data_postreload_cse): ...new pass_data instance and...
22550 (make_pass_postreload_cse): ...new function.
22551 * predict.c (pass_profile): Convert from a global struct to a subclass
22552 of gimple_opt_pass along with...
22553 (pass_data_profile): ...new pass_data instance and...
22554 (make_pass_profile): ...new function.
22555 (pass_strip_predict_hints): Convert from a global struct to a subclass
22556 of gimple_opt_pass along with...
22557 (pass_data_strip_predict_hints): ...new pass_data instance and...
22558 (make_pass_strip_predict_hints): ...new function.
22559 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22560 of rtl_opt_pass along with...
22561 (pass_data_peephole2): ...new pass_data instance and...
22562 (make_pass_peephole2): ...new function.
22563 (pass_split_all_insns): Convert from a global struct to a subclass of
22564 rtl_opt_pass along with...
22565 (pass_data_split_all_insns): ...new pass_data instance and...
22566 (make_pass_split_all_insns): ...new function.
22567 (pass_split_after_reload): Convert from a global struct to a subclass
22568 of rtl_opt_pass along with...
22569 (pass_data_split_after_reload): ...new pass_data instance and...
22570 (make_pass_split_after_reload): ...new function.
22571 (pass_split_before_regstack): Convert from a global struct to a
22572 subclass of rtl_opt_pass along with...
22573 (pass_data_split_before_regstack): ...new pass_data instance and...
22574 (make_pass_split_before_regstack): ...new function.
22575 (pass_split_before_sched2): Convert from a global struct to a subclass
22576 of rtl_opt_pass along with...
22577 (pass_data_split_before_sched2): ...new pass_data instance and...
22578 (make_pass_split_before_sched2): ...new function.
22579 (pass_split_for_shorten_branches): Convert from a global struct to a
22580 subclass of rtl_opt_pass along with...
22581 (pass_data_split_for_shorten_branches): ...new pass_data instance
22582 and...
22583 (make_pass_split_for_shorten_branches): ...new function.
22584 * ree.c (pass_ree): Convert from a global struct to a subclass of
22585 rtl_opt_pass along with...
22586 (pass_data_ree): ...new pass_data instance and...
22587 (make_pass_ree): ...new function.
22588 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22589 subclass of rtl_opt_pass along with...
22590 (pass_data_stack_regs): ...new pass_data instance and...
22591 (make_pass_stack_regs): ...new function.
22592 (pass_stack_regs_run): Convert from a global struct to a subclass of
22593 rtl_opt_pass along with...
22594 (pass_data_stack_regs_run): ...new pass_data instance and...
22595 (make_pass_stack_regs_run): ...new function.
22596 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22597 subclass of rtl_opt_pass along with...
22598 (pass_data_cprop_hardreg): ...new pass_data instance and...
22599 (make_pass_cprop_hardreg): ...new function.
22600 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22601 subclass of rtl_opt_pass along with...
22602 (pass_data_reginfo_init): ...new pass_data instance and...
22603 (make_pass_reginfo_init): ...new function.
22604 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22605 of rtl_opt_pass along with...
22606 (pass_data_regmove): ...new pass_data instance and...
22607 (make_pass_regmove): ...new function.
22608 * regrename.c (pass_regrename): Convert from a global struct to a
22609 subclass of rtl_opt_pass along with...
22610 (pass_data_regrename): ...new pass_data instance and...
22611 (make_pass_regrename): ...new function.
22612 * reorg.c (pass_delay_slots): Convert from a global struct to a
22613 subclass of rtl_opt_pass along with...
22614 (pass_data_delay_slots): ...new pass_data instance and...
22615 (make_pass_delay_slots): ...new function.
22616 (pass_machine_reorg): Convert from a global struct to a subclass of
22617 rtl_opt_pass along with...
22618 (pass_data_machine_reorg): ...new pass_data instance and...
22619 (make_pass_machine_reorg): ...new function.
22620 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22621 of rtl_opt_pass along with...
22622 (pass_data_sched): ...new pass_data instance and...
22623 (make_pass_sched): ...new function.
22624 (pass_sched2): Convert from a global struct to a subclass of
22625 rtl_opt_pass along with...
22626 (pass_data_sched2): ...new pass_data instance and...
22627 (make_pass_sched2): ...new function.
22628 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22629 to a subclass of rtl_opt_pass along with...
22630 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22631 (make_pass_stack_ptr_mod): ...new function.
22632 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22633 to a subclass of rtl_opt_pass along with...
22634 (pass_data_rtl_store_motion): ...new pass_data instance and...
22635 (make_pass_rtl_store_motion): ...new function.
22636 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22637 of gimple_opt_pass along with...
22638 (pass_data_tracer): ...new pass_data instance and...
22639 (make_pass_tracer): ...new function.
22640 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22641 to a subclass of gimple_opt_pass along with...
22642 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22643 (make_pass_diagnose_tm_blocks): ...new function.
22644 (pass_lower_tm): Convert from a global struct to a subclass of
22645 gimple_opt_pass along with...
22646 (pass_data_lower_tm): ...new pass_data instance and...
22647 (make_pass_lower_tm): ...new function.
22648 (pass_tm_init): Convert from a global struct to a subclass of
22649 gimple_opt_pass along with...
22650 (pass_data_tm_init): ...new pass_data instance and...
22651 (make_pass_tm_init): ...new function.
22652 (pass_tm_mark): Convert from a global struct to a subclass of
22653 gimple_opt_pass along with...
22654 (pass_data_tm_mark): ...new pass_data instance and...
22655 (make_pass_tm_mark): ...new function.
22656 (pass_tm_edges): Convert from a global struct to a subclass of
22657 gimple_opt_pass along with...
22658 (pass_data_tm_edges): ...new pass_data instance and...
22659 (make_pass_tm_edges): ...new function.
22660 (pass_tm_memopt): Convert from a global struct to a subclass of
22661 gimple_opt_pass along with...
22662 (pass_data_tm_memopt): ...new pass_data instance and...
22663 (make_pass_tm_memopt): ...new function.
22664 (pass_ipa_tm): Convert from a global struct to a subclass of
22665 simple_ipa_opt_pass along with...
22666 (pass_data_ipa_tm): ...new pass_data instance and...
22667 (make_pass_ipa_tm): ...new function.
22668 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22669 subclass of gimple_opt_pass along with...
22670 (pass_data_call_cdce): ...new pass_data instance and...
22671 (make_pass_call_cdce): ...new function.
22672 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22673 subclass of gimple_opt_pass along with...
22674 (pass_data_build_cfg): ...new pass_data instance and...
22675 (make_pass_build_cfg): ...new function.
22676 (pass_split_crit_edges): Convert from a global struct to a subclass of
22677 gimple_opt_pass along with...
22678 (pass_data_split_crit_edges): ...new pass_data instance and...
22679 (make_pass_split_crit_edges): ...new function.
22680 (pass_warn_function_return): Convert from a global struct to a
22681 subclass of gimple_opt_pass along with...
22682 (pass_data_warn_function_return): ...new pass_data instance and...
22683 (make_pass_warn_function_return): ...new function.
22684 (pass_warn_function_noreturn): Convert from a global struct to a
22685 subclass of gimple_opt_pass along with...
22686 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22687 (make_pass_warn_function_noreturn): ...new function.
22688 (pass_warn_unused_result): Convert from a global struct to a subclass
22689 of gimple_opt_pass along with...
22690 (pass_data_warn_unused_result): ...new pass_data instance and...
22691 (make_pass_warn_unused_result): ...new function.
22692 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22693 a subclass of gimple_opt_pass along with...
22694 (pass_data_merge_phi): ...new pass_data instance and...
22695 (make_pass_merge_phi): ...new function.
22696 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22697 a subclass of gimple_opt_pass along with...
22698 (pass_data_lower_complex): ...new pass_data instance and...
22699 (make_pass_lower_complex): ...new function.
22700 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22701 gimple_opt_pass along with...
22702 (pass_data_lower_complex_O0): ...new pass_data instance and...
22703 (make_pass_lower_complex_O0): ...new function.
22704 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22705 subclass of gimple_opt_pass along with...
22706 (pass_data_lower_eh): ...new pass_data instance and...
22707 (make_pass_lower_eh): ...new function.
22708 (pass_refactor_eh): Convert from a global struct to a subclass of
22709 gimple_opt_pass along with...
22710 (pass_data_refactor_eh): ...new pass_data instance and...
22711 (make_pass_refactor_eh): ...new function.
22712 (pass_lower_resx): Convert from a global struct to a subclass of
22713 gimple_opt_pass along with...
22714 (pass_data_lower_resx): ...new pass_data instance and...
22715 (make_pass_lower_resx): ...new function.
22716 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22717 of gimple_opt_pass along with...
22718 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22719 (make_pass_lower_eh_dispatch): ...new function.
22720 (pass_cleanup_eh): Convert from a global struct to a subclass of
22721 gimple_opt_pass along with...
22722 (pass_data_cleanup_eh): ...new pass_data instance and...
22723 (make_pass_cleanup_eh): ...new function.
22724 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22725 to a subclass of simple_ipa_opt_pass along with...
22726 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22727 (make_pass_ipa_lower_emutls): ...new function.
22728 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22729 a subclass of gimple_opt_pass along with...
22730 (pass_data_if_conversion): ...new pass_data instance and...
22731 (make_pass_if_conversion): ...new function.
22732 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22733 subclass of gimple_opt_pass along with...
22734 (pass_data_build_ssa): ...new pass_data instance and...
22735 (make_pass_build_ssa): ...new function.
22736 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22737 global struct to a subclass of gimple_opt_pass along with...
22738 (pass_data_loop_distribution): ...new pass_data instance and...
22739 (make_pass_loop_distribution): ...new function.
22740 * tree-mudflap.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-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22749 subclass of gimple_opt_pass along with...
22750 (pass_data_mudflap_1): ...new pass_data instance and...
22751 (make_pass_mudflap_1): ...new function.
22752 (pass_mudflap_2): Convert from a global struct to a subclass of
22753 gimple_opt_pass along with...
22754 (pass_data_mudflap_2): ...new pass_data instance and...
22755 (make_pass_mudflap_2): ...new function.
22756 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22757 gimple_opt_pass along with...
22758 (pass_data_nrv): ...new pass_data instance and...
22759 (make_pass_nrv): ...new function.
22760 (pass_return_slot): Convert from a global struct to a subclass of
22761 gimple_opt_pass along with...
22762 (pass_data_return_slot): ...new pass_data instance and...
22763 (make_pass_return_slot): ...new function.
22764 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22765 to a subclass of gimple_opt_pass along with...
22766 (pass_data_object_sizes): ...new pass_data instance and...
22767 (make_pass_object_sizes): ...new function.
22768 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22769 global struct to a subclass of gimple_opt_pass along with...
22770 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22771 and...
22772 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22773 (pass_fixup_cfg): Convert from a global struct to a subclass of
22774 gimple_opt_pass along with...
22775 (pass_data_fixup_cfg): ...new pass_data instance and...
22776 (make_pass_fixup_cfg): ...new function.
22777 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22778 (make_pass_mudflap_1): ...new function.
22779 (pass_mudflap_2): Replace declaration with that of...
22780 (make_pass_mudflap_2): ...new function.
22781 (pass_asan): Replace declaration with that of...
22782 (make_pass_asan): ...new function.
22783 (pass_asan_O0): Replace declaration with that of...
22784 (make_pass_asan_O0): ...new function.
22785 (pass_tsan): Replace declaration with that of...
22786 (make_pass_tsan): ...new function.
22787 (pass_tsan_O0): Replace declaration with that of...
22788 (make_pass_tsan_O0): ...new function.
22789 (pass_lower_cf): Replace declaration with that of...
22790 (make_pass_lower_cf): ...new function.
22791 (pass_refactor_eh): Replace declaration with that of...
22792 (make_pass_refactor_eh): ...new function.
22793 (pass_lower_eh): Replace declaration with that of...
22794 (make_pass_lower_eh): ...new function.
22795 (pass_lower_eh_dispatch): Replace declaration with that of...
22796 (make_pass_lower_eh_dispatch): ...new function.
22797 (pass_lower_resx): Replace declaration with that of...
22798 (make_pass_lower_resx): ...new function.
22799 (pass_build_cfg): Replace declaration with that of...
22800 (make_pass_build_cfg): ...new function.
22801 (pass_early_tree_profile): Replace declaration with that of...
22802 (make_pass_early_tree_profile): ...new function.
22803 (pass_cleanup_eh): Replace declaration with that of...
22804 (make_pass_cleanup_eh): ...new function.
22805 (pass_sra): Replace declaration with that of...
22806 (make_pass_sra): ...new function.
22807 (pass_sra_early): Replace declaration with that of...
22808 (make_pass_sra_early): ...new function.
22809 (pass_early_ipa_sra): Replace declaration with that of...
22810 (make_pass_early_ipa_sra): ...new function.
22811 (pass_tail_recursion): Replace declaration with that of...
22812 (make_pass_tail_recursion): ...new function.
22813 (pass_tail_calls): Replace declaration with that of...
22814 (make_pass_tail_calls): ...new function.
22815 (pass_tree_loop): Replace declaration with that of...
22816 (make_pass_tree_loop): ...new function.
22817 (pass_tree_loop_init): Replace declaration with that of...
22818 (make_pass_tree_loop_init): ...new function.
22819 (pass_lim): Replace declaration with that of...
22820 (make_pass_lim): ...new function.
22821 (pass_tree_unswitch): Replace declaration with that of...
22822 (make_pass_tree_unswitch): ...new function.
22823 (pass_predcom): Replace declaration with that of...
22824 (make_pass_predcom): ...new function.
22825 (pass_iv_canon): Replace declaration with that of...
22826 (make_pass_iv_canon): ...new function.
22827 (pass_scev_cprop): Replace declaration with that of...
22828 (make_pass_scev_cprop): ...new function.
22829 (pass_empty_loop): Replace declaration with that of...
22830 (make_pass_empty_loop): ...new function.
22831 (pass_record_bounds): Replace declaration with that of...
22832 (make_pass_record_bounds): ...new function.
22833 (pass_graphite): Replace declaration with that of...
22834 (make_pass_graphite): ...new function.
22835 (pass_graphite_transforms): Replace declaration with that of...
22836 (make_pass_graphite_transforms): ...new function.
22837 (pass_if_conversion): Replace declaration with that of...
22838 (make_pass_if_conversion): ...new function.
22839 (pass_loop_distribution): Replace declaration with that of...
22840 (make_pass_loop_distribution): ...new function.
22841 (pass_vectorize): Replace declaration with that of...
22842 (make_pass_vectorize): ...new function.
22843 (pass_slp_vectorize): Replace declaration with that of...
22844 (make_pass_slp_vectorize): ...new function.
22845 (pass_complete_unroll): Replace declaration with that of...
22846 (make_pass_complete_unroll): ...new function.
22847 (pass_complete_unrolli): Replace declaration with that of...
22848 (make_pass_complete_unrolli): ...new function.
22849 (pass_parallelize_loops): Replace declaration with that of...
22850 (make_pass_parallelize_loops): ...new function.
22851 (pass_loop_prefetch): Replace declaration with that of...
22852 (make_pass_loop_prefetch): ...new function.
22853 (pass_iv_optimize): Replace declaration with that of...
22854 (make_pass_iv_optimize): ...new function.
22855 (pass_tree_loop_done): Replace declaration with that of...
22856 (make_pass_tree_loop_done): ...new function.
22857 (pass_ch): Replace declaration with that of...
22858 (make_pass_ch): ...new function.
22859 (pass_ccp): Replace declaration with that of...
22860 (make_pass_ccp): ...new function.
22861 (pass_phi_only_cprop): Replace declaration with that of...
22862 (make_pass_phi_only_cprop): ...new function.
22863 (pass_build_ssa): Replace declaration with that of...
22864 (make_pass_build_ssa): ...new function.
22865 (pass_build_alias): Replace declaration with that of...
22866 (make_pass_build_alias): ...new function.
22867 (pass_build_ealias): Replace declaration with that of...
22868 (make_pass_build_ealias): ...new function.
22869 (pass_dominator): Replace declaration with that of...
22870 (make_pass_dominator): ...new function.
22871 (pass_dce): Replace declaration with that of...
22872 (make_pass_dce): ...new function.
22873 (pass_dce_loop): Replace declaration with that of...
22874 (make_pass_dce_loop): ...new function.
22875 (pass_cd_dce): Replace declaration with that of...
22876 (make_pass_cd_dce): ...new function.
22877 (pass_call_cdce): Replace declaration with that of...
22878 (make_pass_call_cdce): ...new function.
22879 (pass_merge_phi): Replace declaration with that of...
22880 (make_pass_merge_phi): ...new function.
22881 (pass_split_crit_edges): Replace declaration with that of...
22882 (make_pass_split_crit_edges): ...new function.
22883 (pass_pre): Replace declaration with that of...
22884 (make_pass_pre): ...new function.
22885 (pass_profile): Replace declaration with that of...
22886 (make_pass_profile): ...new function.
22887 (pass_strip_predict_hints): Replace declaration with that of...
22888 (make_pass_strip_predict_hints): ...new function.
22889 (pass_lower_complex_O0): Replace declaration with that of...
22890 (make_pass_lower_complex_O0): ...new function.
22891 (pass_lower_complex): Replace declaration with that of...
22892 (make_pass_lower_complex): ...new function.
22893 (pass_lower_vector): Replace declaration with that of...
22894 (make_pass_lower_vector): ...new function.
22895 (pass_lower_vector_ssa): Replace declaration with that of...
22896 (make_pass_lower_vector_ssa): ...new function.
22897 (pass_lower_omp): Replace declaration with that of...
22898 (make_pass_lower_omp): ...new function.
22899 (pass_diagnose_omp_blocks): Replace declaration with that of...
22900 (make_pass_diagnose_omp_blocks): ...new function.
22901 (pass_expand_omp): Replace declaration with that of...
22902 (make_pass_expand_omp): ...new function.
22903 (pass_expand_omp_ssa): Replace declaration with that of...
22904 (make_pass_expand_omp_ssa): ...new function.
22905 (pass_object_sizes): Replace declaration with that of...
22906 (make_pass_object_sizes): ...new function.
22907 (pass_strlen): Replace declaration with that of...
22908 (make_pass_strlen): ...new function.
22909 (pass_fold_builtins): Replace declaration with that of...
22910 (make_pass_fold_builtins): ...new function.
22911 (pass_stdarg): Replace declaration with that of...
22912 (make_pass_stdarg): ...new function.
22913 (pass_early_warn_uninitialized): Replace declaration with that of...
22914 (make_pass_early_warn_uninitialized): ...new function.
22915 (pass_late_warn_uninitialized): Replace declaration with that of...
22916 (make_pass_late_warn_uninitialized): ...new function.
22917 (pass_cse_reciprocals): Replace declaration with that of...
22918 (make_pass_cse_reciprocals): ...new function.
22919 (pass_cse_sincos): Replace declaration with that of...
22920 (make_pass_cse_sincos): ...new function.
22921 (pass_optimize_bswap): Replace declaration with that of...
22922 (make_pass_optimize_bswap): ...new function.
22923 (pass_optimize_widening_mul): Replace declaration with that of...
22924 (make_pass_optimize_widening_mul): ...new function.
22925 (pass_warn_function_return): Replace declaration with that of...
22926 (make_pass_warn_function_return): ...new function.
22927 (pass_warn_function_noreturn): Replace declaration with that of...
22928 (make_pass_warn_function_noreturn): ...new function.
22929 (pass_cselim): Replace declaration with that of...
22930 (make_pass_cselim): ...new function.
22931 (pass_phiopt): Replace declaration with that of...
22932 (make_pass_phiopt): ...new function.
22933 (pass_forwprop): Replace declaration with that of...
22934 (make_pass_forwprop): ...new function.
22935 (pass_phiprop): Replace declaration with that of...
22936 (make_pass_phiprop): ...new function.
22937 (pass_tree_ifcombine): Replace declaration with that of...
22938 (make_pass_tree_ifcombine): ...new function.
22939 (pass_dse): Replace declaration with that of...
22940 (make_pass_dse): ...new function.
22941 (pass_nrv): Replace declaration with that of...
22942 (make_pass_nrv): ...new function.
22943 (pass_rename_ssa_copies): Replace declaration with that of...
22944 (make_pass_rename_ssa_copies): ...new function.
22945 (pass_sink_code): Replace declaration with that of...
22946 (make_pass_sink_code): ...new function.
22947 (pass_fre): Replace declaration with that of...
22948 (make_pass_fre): ...new function.
22949 (pass_check_data_deps): Replace declaration with that of...
22950 (make_pass_check_data_deps): ...new function.
22951 (pass_copy_prop): Replace declaration with that of...
22952 (make_pass_copy_prop): ...new function.
22953 (pass_vrp): Replace declaration with that of...
22954 (make_pass_vrp): ...new function.
22955 (pass_uncprop): Replace declaration with that of...
22956 (make_pass_uncprop): ...new function.
22957 (pass_return_slot): Replace declaration with that of...
22958 (make_pass_return_slot): ...new function.
22959 (pass_reassoc): Replace declaration with that of...
22960 (make_pass_reassoc): ...new function.
22961 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22962 (make_pass_rebuild_cgraph_edges): ...new function.
22963 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22964 (make_pass_remove_cgraph_callee_edges): ...new function.
22965 (pass_build_cgraph_edges): Replace declaration with that of...
22966 (make_pass_build_cgraph_edges): ...new function.
22967 (pass_local_pure_const): Replace declaration with that of...
22968 (make_pass_local_pure_const): ...new function.
22969 (pass_tracer): Replace declaration with that of...
22970 (make_pass_tracer): ...new function.
22971 (pass_warn_unused_result): Replace declaration with that of...
22972 (make_pass_warn_unused_result): ...new function.
22973 (pass_diagnose_tm_blocks): Replace declaration with that of...
22974 (make_pass_diagnose_tm_blocks): ...new function.
22975 (pass_lower_tm): Replace declaration with that of...
22976 (make_pass_lower_tm): ...new function.
22977 (pass_tm_init): Replace declaration with that of...
22978 (make_pass_tm_init): ...new function.
22979 (pass_tm_mark): Replace declaration with that of...
22980 (make_pass_tm_mark): ...new function.
22981 (pass_tm_memopt): Replace declaration with that of...
22982 (make_pass_tm_memopt): ...new function.
22983 (pass_tm_edges): Replace declaration with that of...
22984 (make_pass_tm_edges): ...new function.
22985 (pass_split_functions): Replace declaration with that of...
22986 (make_pass_split_functions): ...new function.
22987 (pass_feedback_split_functions): Replace declaration with that of...
22988 (make_pass_feedback_split_functions): ...new function.
22989 (pass_strength_reduction): Replace declaration with that of...
22990 (make_pass_strength_reduction): ...new function.
22991 (pass_ipa_lower_emutls): Replace declaration with that of...
22992 (make_pass_ipa_lower_emutls): ...new function.
22993 (pass_ipa_function_and_variable_visibility): Replace declaration with
22994 that of...
22995 (make_pass_ipa_function_and_variable_visibility): ...new function.
22996 (pass_ipa_tree_profile): Replace declaration with that of...
22997 (make_pass_ipa_tree_profile): ...new function.
22998 (pass_early_local_passes): Replace declaration with that of...
22999 (make_pass_early_local_passes): ...new function.
23000 (pass_ipa_whole_program_visibility): Replace declaration with that
23001 of...
23002 (make_pass_ipa_whole_program_visibility): ...new function.
23003 (pass_ipa_lto_gimple_out): Replace declaration with that of...
23004 (make_pass_ipa_lto_gimple_out): ...new function.
23005 (pass_ipa_increase_alignment): Replace declaration with that of...
23006 (make_pass_ipa_increase_alignment): ...new function.
23007 (pass_ipa_inline): Replace declaration with that of...
23008 (make_pass_ipa_inline): ...new function.
23009 (pass_ipa_free_lang_data): Replace declaration with that of...
23010 (make_pass_ipa_free_lang_data): ...new function.
23011 (pass_ipa_free_inline_summary): Replace declaration with that of...
23012 (make_pass_ipa_free_inline_summary): ...new function.
23013 (pass_ipa_cp): Replace declaration with that of...
23014 (make_pass_ipa_cp): ...new function.
23015 (pass_ipa_reference): Replace declaration with that of...
23016 (make_pass_ipa_reference): ...new function.
23017 (pass_ipa_pure_const): Replace declaration with that of...
23018 (make_pass_ipa_pure_const): ...new function.
23019 (pass_ipa_pta): Replace declaration with that of...
23020 (make_pass_ipa_pta): ...new function.
23021 (pass_ipa_lto_finish_out): Replace declaration with that of...
23022 (make_pass_ipa_lto_finish_out): ...new function.
23023 (pass_ipa_tm): Replace declaration with that of...
23024 (make_pass_ipa_tm): ...new function.
23025 (pass_ipa_profile): Replace declaration with that of...
23026 (make_pass_ipa_profile): ...new function.
23027 (pass_ipa_cdtor_merge): Replace declaration with that of...
23028 (make_pass_ipa_cdtor_merge): ...new function.
23029 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23030 of...
23031 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23032 (pass_init_datastructures): Replace declaration with that of...
23033 (make_pass_init_datastructures): ...new function.
23034 (pass_fixup_cfg): Replace declaration with that of...
23035 (make_pass_fixup_cfg): ...new function.
23036 (pass_expand): Replace declaration with that of...
23037 (make_pass_expand): ...new function.
23038 (pass_instantiate_virtual_regs): Replace declaration with that of...
23039 (make_pass_instantiate_virtual_regs): ...new function.
23040 (pass_rtl_fwprop): Replace declaration with that of...
23041 (make_pass_rtl_fwprop): ...new function.
23042 (pass_rtl_fwprop_addr): Replace declaration with that of...
23043 (make_pass_rtl_fwprop_addr): ...new function.
23044 (pass_jump): Replace declaration with that of...
23045 (make_pass_jump): ...new function.
23046 (pass_jump2): Replace declaration with that of...
23047 (make_pass_jump2): ...new function.
23048 (pass_lower_subreg): Replace declaration with that of...
23049 (make_pass_lower_subreg): ...new function.
23050 (pass_cse): Replace declaration with that of...
23051 (make_pass_cse): ...new function.
23052 (pass_fast_rtl_dce): Replace declaration with that of...
23053 (make_pass_fast_rtl_dce): ...new function.
23054 (pass_ud_rtl_dce): Replace declaration with that of...
23055 (make_pass_ud_rtl_dce): ...new function.
23056 (pass_rtl_dce): Replace declaration with that of...
23057 (make_pass_rtl_dce): ...new function.
23058 (pass_rtl_dse1): Replace declaration with that of...
23059 (make_pass_rtl_dse1): ...new function.
23060 (pass_rtl_dse2): Replace declaration with that of...
23061 (make_pass_rtl_dse2): ...new function.
23062 (pass_rtl_dse3): Replace declaration with that of...
23063 (make_pass_rtl_dse3): ...new function.
23064 (pass_rtl_cprop): Replace declaration with that of...
23065 (make_pass_rtl_cprop): ...new function.
23066 (pass_rtl_pre): Replace declaration with that of...
23067 (make_pass_rtl_pre): ...new function.
23068 (pass_rtl_hoist): Replace declaration with that of...
23069 (make_pass_rtl_hoist): ...new function.
23070 (pass_rtl_store_motion): Replace declaration with that of...
23071 (make_pass_rtl_store_motion): ...new function.
23072 (pass_cse_after_global_opts): Replace declaration with that of...
23073 (make_pass_cse_after_global_opts): ...new function.
23074 (pass_rtl_ifcvt): Replace declaration with that of...
23075 (make_pass_rtl_ifcvt): ...new function.
23076 (pass_into_cfg_layout_mode): Replace declaration with that of...
23077 (make_pass_into_cfg_layout_mode): ...new function.
23078 (pass_outof_cfg_layout_mode): Replace declaration with that of...
23079 (make_pass_outof_cfg_layout_mode): ...new function.
23080 (pass_loop2): Replace declaration with that of...
23081 (make_pass_loop2): ...new function.
23082 (pass_rtl_loop_init): Replace declaration with that of...
23083 (make_pass_rtl_loop_init): ...new function.
23084 (pass_rtl_move_loop_invariants): Replace declaration with that of...
23085 (make_pass_rtl_move_loop_invariants): ...new function.
23086 (pass_rtl_unswitch): Replace declaration with that of...
23087 (make_pass_rtl_unswitch): ...new function.
23088 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23089 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23090 (pass_rtl_doloop): Replace declaration with that of...
23091 (make_pass_rtl_doloop): ...new function.
23092 (pass_rtl_loop_done): Replace declaration with that of...
23093 (make_pass_rtl_loop_done): ...new function.
23094 (pass_web): Replace declaration with that of...
23095 (make_pass_web): ...new function.
23096 (pass_cse2): Replace declaration with that of...
23097 (make_pass_cse2): ...new function.
23098 (pass_df_initialize_opt): Replace declaration with that of...
23099 (make_pass_df_initialize_opt): ...new function.
23100 (pass_df_initialize_no_opt): Replace declaration with that of...
23101 (make_pass_df_initialize_no_opt): ...new function.
23102 (pass_reginfo_init): Replace declaration with that of...
23103 (make_pass_reginfo_init): ...new function.
23104 (pass_inc_dec): Replace declaration with that of...
23105 (make_pass_inc_dec): ...new function.
23106 (pass_stack_ptr_mod): Replace declaration with that of...
23107 (make_pass_stack_ptr_mod): ...new function.
23108 (pass_initialize_regs): Replace declaration with that of...
23109 (make_pass_initialize_regs): ...new function.
23110 (pass_combine): Replace declaration with that of...
23111 (make_pass_combine): ...new function.
23112 (pass_if_after_combine): Replace declaration with that of...
23113 (make_pass_if_after_combine): ...new function.
23114 (pass_ree): Replace declaration with that of...
23115 (make_pass_ree): ...new function.
23116 (pass_partition_blocks): Replace declaration with that of...
23117 (make_pass_partition_blocks): ...new function.
23118 (pass_match_asm_constraints): Replace declaration with that of...
23119 (make_pass_match_asm_constraints): ...new function.
23120 (pass_regmove): Replace declaration with that of...
23121 (make_pass_regmove): ...new function.
23122 (pass_split_all_insns): Replace declaration with that of...
23123 (make_pass_split_all_insns): ...new function.
23124 (pass_fast_rtl_byte_dce): Replace declaration with that of...
23125 (make_pass_fast_rtl_byte_dce): ...new function.
23126 (pass_lower_subreg2): Replace declaration with that of...
23127 (make_pass_lower_subreg2): ...new function.
23128 (pass_mode_switching): Replace declaration with that of...
23129 (make_pass_mode_switching): ...new function.
23130 (pass_sms): Replace declaration with that of...
23131 (make_pass_sms): ...new function.
23132 (pass_sched): Replace declaration with that of...
23133 (make_pass_sched): ...new function.
23134 (pass_ira): Replace declaration with that of...
23135 (make_pass_ira): ...new function.
23136 (pass_reload): Replace declaration with that of...
23137 (make_pass_reload): ...new function.
23138 (pass_clean_state): Replace declaration with that of...
23139 (make_pass_clean_state): ...new function.
23140 (pass_branch_prob): Replace declaration with that of...
23141 (make_pass_branch_prob): ...new function.
23142 (pass_value_profile_transformations): Replace declaration with that
23143 of...
23144 (make_pass_value_profile_transformations): ...new function.
23145 (pass_postreload_cse): Replace declaration with that of...
23146 (make_pass_postreload_cse): ...new function.
23147 (pass_gcse2): Replace declaration with that of...
23148 (make_pass_gcse2): ...new function.
23149 (pass_split_after_reload): Replace declaration with that of...
23150 (make_pass_split_after_reload): ...new function.
23151 (pass_branch_target_load_optimize1): Replace declaration with that
23152 of...
23153 (make_pass_branch_target_load_optimize1): ...new function.
23154 (pass_thread_prologue_and_epilogue): Replace declaration with that
23155 of...
23156 (make_pass_thread_prologue_and_epilogue): ...new function.
23157 (pass_stack_adjustments): Replace declaration with that of...
23158 (make_pass_stack_adjustments): ...new function.
23159 (pass_peephole2): Replace declaration with that of...
23160 (make_pass_peephole2): ...new function.
23161 (pass_if_after_reload): Replace declaration with that of...
23162 (make_pass_if_after_reload): ...new function.
23163 (pass_regrename): Replace declaration with that of...
23164 (make_pass_regrename): ...new function.
23165 (pass_cprop_hardreg): Replace declaration with that of...
23166 (make_pass_cprop_hardreg): ...new function.
23167 (pass_reorder_blocks): Replace declaration with that of...
23168 (make_pass_reorder_blocks): ...new function.
23169 (pass_branch_target_load_optimize2): Replace declaration with that
23170 of...
23171 (make_pass_branch_target_load_optimize2): ...new function.
23172 (pass_leaf_regs): Replace declaration with that of...
23173 (make_pass_leaf_regs): ...new function.
23174 (pass_split_before_sched2): Replace declaration with that of...
23175 (make_pass_split_before_sched2): ...new function.
23176 (pass_compare_elim_after_reload): Replace declaration with that of...
23177 (make_pass_compare_elim_after_reload): ...new function.
23178 (pass_sched2): Replace declaration with that of...
23179 (make_pass_sched2): ...new function.
23180 (pass_stack_regs): Replace declaration with that of...
23181 (make_pass_stack_regs): ...new function.
23182 (pass_stack_regs_run): Replace declaration with that of...
23183 (make_pass_stack_regs_run): ...new function.
23184 (pass_df_finish): Replace declaration with that of...
23185 (make_pass_df_finish): ...new function.
23186 (pass_compute_alignments): Replace declaration with that of...
23187 (make_pass_compute_alignments): ...new function.
23188 (pass_duplicate_computed_gotos): Replace declaration with that of...
23189 (make_pass_duplicate_computed_gotos): ...new function.
23190 (pass_variable_tracking): Replace declaration with that of...
23191 (make_pass_variable_tracking): ...new function.
23192 (pass_free_cfg): Replace declaration with that of...
23193 (make_pass_free_cfg): ...new function.
23194 (pass_machine_reorg): Replace declaration with that of...
23195 (make_pass_machine_reorg): ...new function.
23196 (pass_cleanup_barriers): Replace declaration with that of...
23197 (make_pass_cleanup_barriers): ...new function.
23198 (pass_delay_slots): Replace declaration with that of...
23199 (make_pass_delay_slots): ...new function.
23200 (pass_split_for_shorten_branches): Replace declaration with that of...
23201 (make_pass_split_for_shorten_branches): ...new function.
23202 (pass_split_before_regstack): Replace declaration with that of...
23203 (make_pass_split_before_regstack): ...new function.
23204 (pass_convert_to_eh_region_ranges): Replace declaration with that
23205 of...
23206 (make_pass_convert_to_eh_region_ranges): ...new function.
23207 (pass_shorten_branches): Replace declaration with that of...
23208 (make_pass_shorten_branches): ...new function.
23209 (pass_set_nothrow_function_flags): Replace declaration with that of...
23210 (make_pass_set_nothrow_function_flags): ...new function.
23211 (pass_dwarf2_frame): Replace declaration with that of...
23212 (make_pass_dwarf2_frame): ...new function.
23213 (pass_final): Replace declaration with that of...
23214 (make_pass_final): ...new function.
23215 (pass_rtl_seqabstr): Replace declaration with that of...
23216 (make_pass_rtl_seqabstr): ...new function.
23217 (pass_release_ssa_names): Replace declaration with that of...
23218 (make_pass_release_ssa_names): ...new function.
23219 (pass_early_inline): Replace declaration with that of...
23220 (make_pass_early_inline): ...new function.
23221 (pass_inline_parameters): Replace declaration with that of...
23222 (make_pass_inline_parameters): ...new function.
23223 (pass_update_address_taken): Replace declaration with that of...
23224 (make_pass_update_address_taken): ...new function.
23225 (pass_convert_switch): Replace declaration with that of...
23226 (make_pass_convert_switch): ...new function.
23227 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23228 to a subclass of simple_ipa_opt_pass along with...
23229 (pass_data_ipa_tree_profile): ...new pass_data instance and...
23230 (make_pass_ipa_tree_profile): ...new function.
23231 * tree-sra.c (pass_sra_early): Convert from a global struct to a
23232 subclass of gimple_opt_pass along with...
23233 (pass_data_sra_early): ...new pass_data instance and...
23234 (make_pass_sra_early): ...new function.
23235 (pass_sra): Convert from a global struct to a subclass of
23236 gimple_opt_pass along with...
23237 (pass_data_sra): ...new pass_data instance and...
23238 (make_pass_sra): ...new function.
23239 (pass_early_ipa_sra): Convert from a global struct to a subclass of
23240 gimple_opt_pass along with...
23241 (pass_data_early_ipa_sra): ...new pass_data instance and...
23242 (make_pass_early_ipa_sra): ...new function.
23243 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23244 subclass of gimple_opt_pass along with...
23245 (pass_data_ccp): ...new pass_data instance and...
23246 (make_pass_ccp): ...new function.
23247 (pass_fold_builtins): Convert from a global struct to a subclass of
23248 gimple_opt_pass along with...
23249 (pass_data_fold_builtins): ...new pass_data instance and...
23250 (make_pass_fold_builtins): ...new function.
23251 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23252 subclass of gimple_opt_pass along with...
23253 (pass_data_copy_prop): ...new pass_data instance and...
23254 (make_pass_copy_prop): ...new function.
23255 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23256 global struct to a subclass of gimple_opt_pass along with...
23257 (pass_data_rename_ssa_copies): ...new pass_data instance and...
23258 (make_pass_rename_ssa_copies): ...new function.
23259 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23260 subclass of gimple_opt_pass along with...
23261 (pass_data_dce): ...new pass_data instance and...
23262 (make_pass_dce): ...new function.
23263 (pass_dce_loop): Convert from a global struct to a subclass of
23264 gimple_opt_pass along with...
23265 (pass_data_dce_loop): ...new pass_data instance and...
23266 (make_pass_dce_loop): ...new function.
23267 (pass_cd_dce): Convert from a global struct to a subclass of
23268 gimple_opt_pass along with...
23269 (pass_data_cd_dce): ...new pass_data instance and...
23270 (make_pass_cd_dce): ...new function.
23271 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23272 subclass of gimple_opt_pass along with...
23273 (pass_data_dominator): ...new pass_data instance and...
23274 (make_pass_dominator): ...new function.
23275 (pass_phi_only_cprop): Convert from a global struct to a subclass of
23276 gimple_opt_pass along with...
23277 (pass_data_phi_only_cprop): ...new pass_data instance and...
23278 (make_pass_phi_only_cprop): ...new function.
23279 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23280 subclass of gimple_opt_pass along with...
23281 (pass_data_dse): ...new pass_data instance and...
23282 (make_pass_dse): ...new function.
23283 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23284 a subclass of gimple_opt_pass along with...
23285 (pass_data_forwprop): ...new pass_data instance and...
23286 (make_pass_forwprop): ...new function.
23287 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23288 struct to a subclass of gimple_opt_pass along with...
23289 (pass_data_tree_ifcombine): ...new pass_data instance and...
23290 (make_pass_tree_ifcombine): ...new function.
23291 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23292 subclass of gimple_opt_pass along with...
23293 (pass_data_ch): ...new pass_data instance and...
23294 (make_pass_ch): ...new function.
23295 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23296 subclass of gimple_opt_pass along with...
23297 (pass_data_tree_loop): ...new pass_data instance and...
23298 (make_pass_tree_loop): ...new function.
23299 (pass_tree_loop_init): Convert from a global struct to a subclass of
23300 gimple_opt_pass along with...
23301 (pass_data_tree_loop_init): ...new pass_data instance and...
23302 (make_pass_tree_loop_init): ...new function.
23303 (pass_lim): Convert from a global struct to a subclass of
23304 gimple_opt_pass along with...
23305 (pass_data_lim): ...new pass_data instance and...
23306 (make_pass_lim): ...new function.
23307 (pass_tree_unswitch): Convert from a global struct to a subclass of
23308 gimple_opt_pass along with...
23309 (pass_data_tree_unswitch): ...new pass_data instance and...
23310 (make_pass_tree_unswitch): ...new function.
23311 (pass_predcom): Convert from a global struct to a subclass of
23312 gimple_opt_pass along with...
23313 (pass_data_predcom): ...new pass_data instance and...
23314 (make_pass_predcom): ...new function.
23315 (pass_vectorize): Convert from a global struct to a subclass of
23316 gimple_opt_pass along with...
23317 (pass_data_vectorize): ...new pass_data instance and...
23318 (make_pass_vectorize): ...new function.
23319 (pass_graphite): Convert from a global struct to a subclass of
23320 gimple_opt_pass along with...
23321 (pass_data_graphite): ...new pass_data instance and...
23322 (make_pass_graphite): ...new function.
23323 (pass_graphite_transforms): Convert from a global struct to a subclass
23324 of gimple_opt_pass along with...
23325 (pass_data_graphite_transforms): ...new pass_data instance and...
23326 (make_pass_graphite_transforms): ...new function.
23327 (pass_check_data_deps): Convert from a global struct to a subclass of
23328 gimple_opt_pass along with...
23329 (pass_data_check_data_deps): ...new pass_data instance and...
23330 (make_pass_check_data_deps): ...new function.
23331 (pass_iv_canon): Convert from a global struct to a subclass of
23332 gimple_opt_pass along with...
23333 (pass_data_iv_canon): ...new pass_data instance and...
23334 (make_pass_iv_canon): ...new function.
23335 (pass_scev_cprop): Convert from a global struct to a subclass of
23336 gimple_opt_pass along with...
23337 (pass_data_scev_cprop): ...new pass_data instance and...
23338 (make_pass_scev_cprop): ...new function.
23339 (pass_record_bounds): Convert from a global struct to a subclass of
23340 gimple_opt_pass along with...
23341 (pass_data_record_bounds): ...new pass_data instance and...
23342 (make_pass_record_bounds): ...new function.
23343 (pass_complete_unroll): Convert from a global struct to a subclass of
23344 gimple_opt_pass along with...
23345 (pass_data_complete_unroll): ...new pass_data instance and...
23346 (make_pass_complete_unroll): ...new function.
23347 (pass_complete_unrolli): Convert from a global struct to a subclass of
23348 gimple_opt_pass along with...
23349 (pass_data_complete_unrolli): ...new pass_data instance and...
23350 (make_pass_complete_unrolli): ...new function.
23351 (pass_parallelize_loops): Convert from a global struct to a subclass
23352 of gimple_opt_pass along with...
23353 (pass_data_parallelize_loops): ...new pass_data instance and...
23354 (make_pass_parallelize_loops): ...new function.
23355 (pass_loop_prefetch): Convert from a global struct to a subclass of
23356 gimple_opt_pass along with...
23357 (pass_data_loop_prefetch): ...new pass_data instance and...
23358 (make_pass_loop_prefetch): ...new function.
23359 (pass_iv_optimize): Convert from a global struct to a subclass of
23360 gimple_opt_pass along with...
23361 (pass_data_iv_optimize): ...new pass_data instance and...
23362 (make_pass_iv_optimize): ...new function.
23363 (pass_tree_loop_done): Convert from a global struct to a subclass of
23364 gimple_opt_pass along with...
23365 (pass_data_tree_loop_done): ...new pass_data instance and...
23366 (make_pass_tree_loop_done): ...new function.
23367 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23368 struct to a subclass of gimple_opt_pass along with...
23369 (pass_data_cse_reciprocals): ...new pass_data instance and...
23370 (make_pass_cse_reciprocals): ...new function.
23371 (pass_cse_sincos): Convert from a global struct to a subclass of
23372 gimple_opt_pass along with...
23373 (pass_data_cse_sincos): ...new pass_data instance and...
23374 (make_pass_cse_sincos): ...new function.
23375 (pass_optimize_bswap): Convert from a global struct to a subclass of
23376 gimple_opt_pass along with...
23377 (pass_data_optimize_bswap): ...new pass_data instance and...
23378 (make_pass_optimize_bswap): ...new function.
23379 (pass_optimize_widening_mul): Convert from a global struct to a
23380 subclass of gimple_opt_pass along with...
23381 (pass_data_optimize_widening_mul): ...new pass_data instance and...
23382 (make_pass_optimize_widening_mul): ...new function.
23383 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23384 subclass of gimple_opt_pass along with...
23385 (pass_data_phiopt): ...new pass_data instance and...
23386 (make_pass_phiopt): ...new function.
23387 (pass_cselim): Convert from a global struct to a subclass of
23388 gimple_opt_pass along with...
23389 (pass_data_cselim): ...new pass_data instance and...
23390 (make_pass_cselim): ...new function.
23391 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23392 subclass of gimple_opt_pass along with...
23393 (pass_data_phiprop): ...new pass_data instance and...
23394 (make_pass_phiprop): ...new function.
23395 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23396 subclass of gimple_opt_pass along with...
23397 (pass_data_pre): ...new pass_data instance and...
23398 (make_pass_pre): ...new function.
23399 (pass_fre): Convert from a global struct to a subclass of
23400 gimple_opt_pass along with...
23401 (pass_data_fre): ...new pass_data instance and...
23402 (make_pass_fre): ...new function.
23403 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23404 subclass of gimple_opt_pass along with...
23405 (pass_data_reassoc): ...new pass_data instance and...
23406 (make_pass_reassoc): ...new function.
23407 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23408 subclass of gimple_opt_pass along with...
23409 (pass_data_sink_code): ...new pass_data instance and...
23410 (make_pass_sink_code): ...new function.
23411 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23412 subclass of gimple_opt_pass along with...
23413 (pass_data_strlen): ...new pass_data instance and...
23414 (make_pass_strlen): ...new function.
23415 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23416 struct to a subclass of gimple_opt_pass along with...
23417 (pass_data_build_alias): ...new pass_data instance and...
23418 (make_pass_build_alias): ...new function.
23419 (pass_build_ealias): Convert from a global struct to a subclass of
23420 gimple_opt_pass along with...
23421 (pass_data_build_ealias): ...new pass_data instance and...
23422 (make_pass_build_ealias): ...new function.
23423 (pass_ipa_pta): Convert from a global struct to a subclass of
23424 simple_ipa_opt_pass along with...
23425 (pass_data_ipa_pta): ...new pass_data instance and...
23426 (make_pass_ipa_pta): ...new function.
23427 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23428 subclass of gimple_opt_pass along with...
23429 (pass_data_uncprop): ...new pass_data instance and...
23430 (make_pass_uncprop): ...new function.
23431 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23432 global struct to a subclass of gimple_opt_pass along with...
23433 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23434 (make_pass_late_warn_uninitialized): ...new function.
23435 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23436 to a subclass of gimple_opt_pass along with...
23437 (pass_data_init_datastructures): ...new pass_data instance and...
23438 (make_pass_init_datastructures): ...new function.
23439 (pass_early_warn_uninitialized): Convert from a global struct to a
23440 subclass of gimple_opt_pass along with...
23441 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23442 (make_pass_early_warn_uninitialized): ...new function.
23443 (pass_update_address_taken): Convert from a global struct to a
23444 subclass of gimple_opt_pass along with...
23445 (pass_data_update_address_taken): ...new pass_data instance and...
23446 (make_pass_update_address_taken): ...new function.
23447 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23448 struct to a subclass of gimple_opt_pass along with...
23449 (pass_data_release_ssa_names): ...new pass_data instance and...
23450 (make_pass_release_ssa_names): ...new function.
23451 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23452 subclass of gimple_opt_pass along with...
23453 (pass_data_stdarg): ...new pass_data instance and...
23454 (make_pass_stdarg): ...new function.
23455 * tree-switch-conversion.c (pass_convert_switch): Convert from a
23456 global struct to a subclass of gimple_opt_pass along with...
23457 (pass_data_convert_switch): ...new pass_data instance and...
23458 (make_pass_convert_switch): ...new function.
23459 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23460 to a subclass of gimple_opt_pass along with...
23461 (pass_data_tail_recursion): ...new pass_data instance and...
23462 (make_pass_tail_recursion): ...new function.
23463 (pass_tail_calls): Convert from a global struct to a subclass of
23464 gimple_opt_pass along with...
23465 (pass_data_tail_calls): ...new pass_data instance and...
23466 (make_pass_tail_calls): ...new function.
23467 * tree-vect-generic.c (pass_lower_vector): Convert from a global
23468 struct to a subclass of gimple_opt_pass along with...
23469 (pass_data_lower_vector): ...new pass_data instance and...
23470 (make_pass_lower_vector): ...new function.
23471 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23472 gimple_opt_pass along with...
23473 (pass_data_lower_vector_ssa): ...new pass_data instance and...
23474 (make_pass_lower_vector_ssa): ...new function.
23475 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23476 to a subclass of gimple_opt_pass along with...
23477 (pass_data_slp_vectorize): ...new pass_data instance and...
23478 (make_pass_slp_vectorize): ...new function.
23479 (pass_ipa_increase_alignment): Convert from a global struct to a
23480 subclass of simple_ipa_opt_pass along with...
23481 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23482 (make_pass_ipa_increase_alignment): ...new function.
23483 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23484 gimple_opt_pass along with...
23485 (pass_data_vrp): ...new pass_data instance and...
23486 (make_pass_vrp): ...new function.
23487 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23488 subclass of simple_ipa_opt_pass along with...
23489 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23490 (make_pass_ipa_free_lang_data): ...new function.
23491 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23492 gimple_opt_pass along with...
23493 (pass_data_tsan): ...new pass_data instance and...
23494 (make_pass_tsan): ...new function.
23495 (pass_tsan_O0): Convert from a global struct to a subclass of
23496 gimple_opt_pass along with...
23497 (pass_data_tsan_O0): ...new pass_data instance and...
23498 (make_pass_tsan_O0): ...new function.
23499 * var-tracking.c (pass_variable_tracking): Convert from a global
23500 struct to a subclass of rtl_opt_pass along with...
23501 (pass_data_variable_tracking): ...new pass_data instance and...
23502 (make_pass_variable_tracking): ...new function.
23503 * web.c (pass_web): Convert from a global struct to a subclass of
23504 rtl_opt_pass along with...
23505 (pass_data_web): ...new pass_data instance and...
23506 (make_pass_web): ...new function.
23507 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23508 declaration with that of...
23509 (make_pass_mode_switch_use): ...new function.
23510 (pass_resolve_sw_modes): Replace declaration with that of...
23511 (make_pass_resolve_sw_modes): ...new function.
23512 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23513 from a global struct to a subclass of rtl_opt_pass along with...
23514 (pass_data_mode_switch_use): ...new pass_data instance and...
23515 (make_pass_mode_switch_use): ...new function.
23516 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23517 from a global struct to a subclass of rtl_opt_pass along with...
23518 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23519 (make_pass_resolve_sw_modes): ...new function.
23520 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23521 struct to a subclass of rtl_opt_pass along with...
23522 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23523 (make_pass_insert_vzeroupper): ...new function.
23524 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23525 global struct to a subclass of rtl_opt_pass along with...
23526 (pass_data_work_around_errata): ...new pass_data instance and...
23527 (make_pass_work_around_errata): ...new function.
23528 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23529 struct to a subclass of rtl_opt_pass along with...
23530 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23531 (make_pass_mips_machine_reorg2): ...new function.
23532
23533 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23534
23535 * passes.c (pass_manager::operator new): New.
23536
23537 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23538
23539 Handwritten part of conversion of passes to C++ classes.
23540
23541 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23542 (toplev.o): Add dep on PASS_MANAGER_H.
23543 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23544 of early local pases to reflect this moving from a global to a
23545 member of gcc::pass_manager.
23546 (cgraph_add_new_function): Likewise.
23547 * lto-cgraph.c (lto_output_node): Update for conversion of
23548 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23549 * passes.c (opt_pass::clone): New.
23550 (opt_pass::gate): New.
23551 (opt_pass::execute): New.
23552 (opt_pass::opt_pass): New.
23553 (pass_manager::execute_early_local_passes): New.
23554 (pass_manager::execute_pass_mode_switching): new.
23555 (finish_optimization_passes): Convert to...
23556 (pass_manager::finish_optimization_passes): ...this.
23557 (finish_optimization_passes): Update for conversion of passes to
23558 C++ classes.
23559 (register_dump_files_1): Use has_gate since we cannot portably
23560 check a vtable entry against NULL.
23561 (dump_one_pass): Likewise.
23562 (ipa_write_summaries_2): Likewise.
23563 (ipa_write_optimization_summaries_1): Likewise.
23564 (ipa_read_summaries_1): Likewise.
23565 (ipa_read_optimization_summaries_1): Likewise.
23566 (execute_ipa_stmt_fixups): Likewise.
23567 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23568 pass-creation functions rather than wiring up globals, and
23569 storing the results in fields of pass_manager generated using
23570 pass-instances.def.
23571 (pass_manager::dump_profile_report): Update for conversion of
23572 passes to C++ classes.
23573 (pass_manager::execute_ipa_summary_passes): Likewise.
23574 (execute_one_ipa_transform_pass): Likewise.
23575 (execute_one_pass): Use has_gate and has_execute since we cannot
23576 portably check a vtable entry against NULL.
23577 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23578 (pass_manager): Use pass-instances.def to add fields for the
23579 various pass instances.
23580 * toplev.c (finalize): Update for move of
23581 finish_optimization_passes to a method of gcc::pass_manager.
23582 * toplev.h (finish_optimization_passes): Move to method of class
23583 pass_manager.
23584 * tree-pass.h (struct pass_data): New.
23585 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23586 (opt_pass::gate): Convert to virtual function.
23587 (opt_pass::~opt_pass): New.
23588 (opt_pass::clone): New.
23589 (opt_pass::execute): Convert to virtual function.
23590 (opt_pass::opt_pass): New.
23591 (opt_pass::ctxt_): new.
23592 (gimple_opt_pass): Convert to subclass of opt_pass.
23593 (gimple_opt_pass::gimple_opt_pass): New.
23594 (rtl_opt_pass): Convert to subclass of opt_pass.
23595 (rtl_opt_pass::rtl_opt_pass): New.
23596 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23597 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23598 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23599 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23600 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23601 invocation of pass_mode_switching to reflect this moving from a
23602 global to a member of gcc::pass_manager.
23603 (ix86_option_override): Rework how pass_insert_vzeroupper is
23604 added to the pass_manager to reflect autogenerated changes.
23605 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23606
23607 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23608
23609 PR rtl-optimization/57708
23610 * recog.c (peep2_find_free_register): Validate all regs in a
23611 multi-reg mode.
23612
23613 2013-08-05 Jan Hubicka <jh@suse.cz>
23614
23615 PR lto/57602
23616 * cgraph.c (verify_cgraph_node): Accept local flags from other
23617 partitions.
23618 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23619 (function_and_variable_visibility): Likewise.
23620 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23621
23622 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23623
23624 * graph.c (init_graph_slim_pretty_print): Remove.
23625 (print_graph_cfg): Do not call it. Use local pretty printer.
23626 (start_graph_dump): Likewise.
23627
23628 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23629
23630 * gimple-pretty-print.c (buffer): Remove.
23631 (initialized): Likewise.
23632 (maybe_init_pretty_print): Likewise.
23633 (print_gimple_stmt): Do not call it. Use non-static local
23634 pretty_printer variable.
23635 (print_gimple_expr): Likewise.
23636 (print_gimple_seq): Likewise.
23637 (gimple_dump_bb): Likewise.
23638
23639 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23640
23641 * asan.c (asan_pp): Remove.
23642 (asan_pp_initialized): Likewise.
23643 (asan_pp_initialize): Likewise.
23644 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23645 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23646 (asan_add_global): Likewise.
23647
23648 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23649
23650 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23651 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23652 * pretty-print.c (pp_formatted_text_data): Likewise.
23653 (pp_indent): Rename from pp_base_indent.
23654 (pp_format): Rename from pp_base_format.
23655 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23656 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23657 (pp_flush): Rename from pp_base_flush.
23658 (pp_set_line_maximum_length): Rename from
23659 pp_base_set_line_maximum_length.
23660 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23661 (pp_set_prefix): Rename from pp_base_set_prefix.
23662 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23663 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23664 (pp_append_text): Rename from pp_base_append_text.
23665 (pp_formatted_text): Rename from pp_base_formatted_text.
23666 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23667 (pp_remaining_character_count_for_line): Rename from
23668 pp_base_remaining_character_count_for_line.
23669 (pp_newline): Rename from pp_base_newline.
23670 (pp_character): Rename from pp_base_character.
23671 (pp_string): Rename from pp_base_string.
23672 (pp_maybe_space): Rename from pp_base_maybe_space.
23673 * asan.c (asan_pp_string): Adjust.
23674 (asan_emit_stack_protection): Likewise.
23675 (asan_add_global): Likewise.
23676 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23677 * tree-mudflap.c (mf_varname_tree): Likewise.
23678 * tree-pretty-print.c (pp_tree_identifier): Rename from
23679 pp_base_tree_identifier.
23680 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23681 Declare as function.
23682
23683 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23684
23685 * pretty-print.h (pp_bar_bar): New.
23686 (pp_ampersand_ampersand): Likewise.
23687 (pp_less_equal): Likewise.
23688 (pp_greater_equal): Likewise.
23689 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23690 printer functions instead of pp_string or operators and punctuators.
23691 (dump_gimple_call): Likewise.
23692 (dump_gimple_omp_for): Likewise.
23693 (dump_gimple_transaction): Likewise.
23694 (dump_gimple_phi): Likewise.
23695 (pp_gimple_stmt_1): Likewise.
23696 * sched-vis.c (print_insn): Likewise.
23697 * tree-mudflap.c (mf_varname_tree): Likewise.
23698 * tree-pretty-print.c (dump_block_node): Likewise.
23699 (dump_generic_node): Likewise.
23700
23701 2013-08-02 Jan Hubicka <jh@suse.cz>
23702
23703 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23704 boundaries.
23705 * lto-streamer-out.c (tree_is_indexable): Results decls and
23706 parm decls are not indexable.
23707 (DFS_write_tree_body): Do not follow args and results.
23708 (hash_tree): Likewise.
23709 (output_functions): Rearrange so struct function is needed
23710 only when real body is output; be able to also ouptut abstract
23711 functions; output DECL_ARGUMENTS and DECL_RESULT.
23712 (lto_output): When not in WPA, ale store abstract functions.
23713 (write_symbol): Do not care about RESULT_DECL.
23714 (output_symbol_p): Handle correctly sbtract decls.
23715 * lto-streamer-in.c (input_function): Rearrange so struct
23716 function can be NULL at entry; allow streaming of
23717 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23718 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23719 sanity check during LTO.
23720 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23721 RESULT_DECl and DECL_ARGUMENTS.
23722 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23723 Likewise.
23724
23725 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23726
23727 * pretty-print.h (pp_underscore): New.
23728 (pp_comma): Tidy.
23729 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23730 printer functions instead of pp_character.
23731 (dump_binary_rhs): Likewise.
23732 (dump_ternary_rhs): Likewise.
23733 (dump_gimple_call_args): Likewise.
23734 (pp_points_to_solution): Likewise.
23735 (dump_gimple_call): Likewise.
23736 (dump_gimple_switch): Likewise.
23737 (dump_gimple_cond): Likewise.
23738 (dump_gimple_bind): Likewise.
23739 (dump_gimple_try): Likewise.
23740 (dump_gimple_omp_for): Likewise.
23741 (dump_gimple_omp_continue): Likewise.
23742 (dump_gimple_omp_single): Likewise.
23743 (dump_gimple_omp_sections): Likewise.
23744 (dump_gimple_omp_block): Likewise.
23745 (dump_gimple_omp_critical): Likewise.
23746 (dump_gimple_transaction): Likewise.
23747 (dump_gimple_asm): Likewise.
23748 (dump_gimple_phi): Likewise.
23749 (dump_gimple_omp_parallel): Likewise.
23750 (dump_gimple_omp_task): Likewise.
23751 (dump_gimple_omp_atomic_load): Likewise.
23752 (dump_gimple_omp_atomic_store): Likewise.
23753 (dump_gimple_mem_ops): Likewise.
23754 (pp_gimple_stmt_1): Likewise.
23755 (pp_cfg_jump): Likewise.
23756 (dump_implicit_edges): Likewise.
23757 (gimple_dump_bb_for_graph): Likewise.
23758 * graph.c (draw_cfg_node): Likewise.
23759 * langhooks.c (lhd_print_error_function): Likewise.
23760 * sched-vis.c (print_exp): Likewise.
23761 (print_value): Likewise.
23762 (print_pattern): Likewise.
23763 (print_insn): Likewise.
23764 (rtl_dump_bb_for_graph): Likewise.
23765 * tree-pretty-print.c (dump_function_declaration): Likewise.
23766 (dump_array_domain): Likewise.
23767 (dump_omp_clause): Likewise.
23768 (dump_location): Likewise.
23769 (dump_generic_node): Likewise.
23770 (print_struct_decl): Likewise.
23771 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23772
23773 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23774
23775 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23776 candidate table when replacing a candidate statement.
23777 (replace_rhs_if_not_dup): Likewise.
23778 (replace_one_candidate): Likewise.
23779
23780 2013-08-02 Jan Hubicka <jh@suse.cz>
23781 Martin Liska <marxin.liska@gmail.com>
23782
23783 * cgraphunit.c (add_new_function): Fix logic when adding from
23784 late IPA pass.
23785 (assemble_thunk): Rename to ...
23786 (expand_thunk); .. this one; export; get it working with
23787 general functions; make produced gimple valid.
23788 * cgraph.h (expand_thunk): Declare.
23789
23790 2013-08-02 Jan Hubicka <jh@suse.cz>
23791
23792 * ipa-cp.c (gather_context_independent_values): Use
23793 ipa_get_param_move_cost.
23794 (get_replacement_map): Remove PARAM; move parameter folding
23795 into tree-inline.c
23796 (create_specialized_node): Update.
23797 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23798 assert that we have gimple body; update move_cost.
23799 (count_formal_params): Assert that we have gimple body.
23800 (ipa_dump_param): New function.
23801 (ipa_alloc_node_params): Break out from ...
23802 (ipa_initialize_node_params): ... here.
23803 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23804 (ipa_write_node_info): Stream move costs.
23805 (ipa_read_node_info): Read move costs.
23806 (ipa_update_after_lto_read): Do not recompute node params.
23807 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23808 (ipa_get_param): Check we are not in WPA.
23809 (ipa_get_param_move_cost): New.
23810 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23811 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23812 parm numbers to be present.
23813
23814 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23815
23816 PR rtl-optimization/58048
23817 * lra-constraints.c (process_alt_operands): Don't check asm
23818 operand on register.
23819
23820 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23821
23822 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23823 the implied StoreLoad barrier for atomic operations if before.
23824
23825 2013-08-02 Jan Hubicka <jh@suse.cz>
23826 Martin Liska <marxin.liska@gmail.com>
23827
23828 * cgraph.c (cgraph_function_body_availability): Do not check
23829 cgraph flags.
23830 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23831 symtab_node_availability): Declare.
23832 * ipa.c (can_replace_by_local_alias): New.
23833 (function_and_variable_visibility): Use it.
23834 * symtab.c (symtab_for_node_and_aliases,
23835 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23836
23837 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23838
23839 PR rtl-optimization/57963
23840 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23841 (lra_constraints): Use them.
23842
23843 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23844
23845 * config/arm/types.md (define_attr "type"): Add "load_acq"
23846 and "store_rel".
23847 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23848 changes.
23849 (cortex_a53_store1): Likewise.
23850
23851 2013-08-01 Jan Hubicka <jh@suse.cz>
23852
23853 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23854 partitions are not needed.
23855
23856 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23857
23858 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23859 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23860 MAYBE_NON_Q_CLASS_P where appropriate.
23861
23862 2013-08-01 Jan Hubicka <jh@suse.cz>
23863
23864 * cgraph.h (release_function_body): Declare.
23865 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23866 of unused delcarations.
23867
23868 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23869
23870 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23871 RTL form when subtracting a constant.
23872
23873 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23874
23875 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23876 Generate canonical plus rtx with negated immediate instead of minus
23877 where appropriate.
23878 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23879
23880 2013-08-01 Jan Hubicka <jh@suse.cz>
23881
23882 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23883 (cgraph_release_function_body): Likewise.
23884 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23885 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23886 to used_as_abstract_origin.
23887 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23888 symbols used as abstract origins.
23889 * cgraphunit.c (analyze_functions): Update.
23890 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23891 used_as_abstract_origin.
23892 * tree-inline.c (tree_function_versioning): Update
23893 used_as_abstract_origin; be ready for DECL_RESULT and
23894 DECL_ARGUMENTS to be NULL.
23895
23896 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23897 for abstract functions.
23898 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23899 real symbols.
23900
23901 2013-08-01 Jan Hubicka <jh@suse.cz>
23902
23903 * profile.c (compute_value_histograms): Fix thinko.
23904
23905 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23906
23907 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23908 aarch-common-protos.h to extra_headers.
23909 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23910 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23911 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23912
23913 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23914
23915 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23916 Include "../arm/types.md". Define "type" attribute for all patterns.
23917 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23918 attribute changes.
23919
23920 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23921
23922 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23923 to support power8 load fusion.
23924 (fusion_gpr_mem_load): Likewise.
23925
23926 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23927
23928 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23929 declarations for power8 load fusion.
23930 (emit_fusion_gpr_load): Likewise.
23931
23932 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23933 tuning for power8, turn on fusion mode by default. Turn on sign
23934 extending fusion mode if normal fusion mode is on, and we are at
23935 -O2 or -O3.
23936 (fusion_gpr_load_p): New function, return true if we can fuse an
23937 addis instruction with a dependent load to a GPR.
23938 (emit_fusion_gpr_load): Emit the instructions for power8 load
23939 fusion to GPRs.
23940
23941 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23942 (VSX load fusion peepholes): New peepholes to fuse together an
23943 addi instruction with a VSX load instruction.
23944
23945 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23946 peepholes to fuse an addis instruction with a load to a GPR base
23947 register. If we are supporting sign extending fusions, convert
23948 sign extending loads to zero extending loads and add an explicit
23949 sign extension.
23950
23951 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23952
23953 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23954 aarch-common-protos.h to extra_headers.
23955 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23956 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23957 (arm_early_store_addr_dep): Likewise.
23958 (arm_no_early_alu_shift_dep): Likewise.
23959 (arm_no_early_alu_shift_value_dep): Likewise.
23960 (arm_no_early_mul_dep): Likewise.
23961 (arm_no_early_store_addr_dep): Likewise.
23962 (arm_mac_accumulator_is_mul_result): Likewise.
23963 (arm_mac_accumulator_is_result): Likewise.
23964 * config/arm/aarch-common.c: ... here. New file.
23965 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23966 here to ...
23967 (arm_early_store_addr_dep): Likewise.
23968 (arm_no_early_alu_shift_dep): Likewise.
23969 (arm_no_early_alu_shift_value_dep): Likewise.
23970 (arm_no_early_mul_dep): Likewise.
23971 (arm_no_early_store_addr_dep): Likewise.
23972 (arm_mac_accumulator_is_mul_result): Likewise.
23973 (arm_mac_accumulator_is_result): Likewise.
23974 * config/arm/aarch-common-protos.h: ... here. New file.
23975 * config/arm/t-arm (aarch-common.o): Define.
23976
23977 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23978
23979 * config/arm/arm.md: Include new file "types.md".
23980 (define_attr "type"): Move from here to ...
23981 (define_attr "mul32"): Likewise.
23982 (define_attr "mul64"): Likewise.
23983 * config/arm/types.md: ... here. New file.
23984
23985 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23986
23987 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23988 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23989
23990 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23991
23992 * gen-pass-instances.awk: Fix offset of substr().
23993
23994 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23995
23996 * Makefile.in (pass-instances.def): New.
23997 (passes.o): Replace dependency on passes.def with one on
23998 pass-instances.def
23999
24000 * gen-pass-instances.awk: New.
24001
24002 * passes.c (pass_manager::pass_manager): Use pass-instances.def
24003 rather than passes.def, updating local definition of NEXT_PASS
24004 macro to add an extra NUM parameter (currently unused).
24005
24006 2013-07-30 David Malcolm <dmalcolm@redhat.com>
24007
24008 * Makefile.in (PASS_MANAGER_H): New.
24009 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
24010 (passes.o): Likewise.
24011 (statistics.o): Likewise.
24012 (cgraphunit.o): Likewise.
24013 (context.o): Depend on PASS_MANAGER_H.
24014
24015 * pass_manager.h: New.
24016
24017 * cgraphunit.c (cgraph_add_new_function): Update for moves
24018 of globals to fields of pass_manager.
24019 (analyze_function): Likewise.
24020 (expand_function): Likewise.
24021 (ipa_passes): Likewise.
24022 (compile): Likewise.
24023
24024 * context.c (context::context): New.
24025 * context.h (context::context): New.
24026 (context::get_passes): New.
24027 (context::passes_): New.
24028
24029 * lto-cgraph.c (input_node): Update for moves of globals to
24030 fields of pass_manager.
24031
24032 * passes.c (all_passes): Remove, in favor of a field of the
24033 same name within the new class pass_manager.
24034 (all_small_ipa_passes): Likewise.
24035 (all_lowering_passes): Likewise.
24036 (all_regular_ipa_passes): Likewise.
24037 (all_late_ipa_passes): Likewise.
24038 (all_lto_gen_passes): Likewise.
24039 (passes_by_id): Likewise.
24040 (passes_by_id_size): Likewise.
24041 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24042 the new class pass_manager.
24043 (set_pass_for_id): Convert to...
24044 (pass_manager::set_pass_for_id): ...method.
24045 (get_pass_for_id): Convert to...
24046 (pass_manager::get_pass_for_id): ...method.
24047 (register_one_dump_file): Move body of implementation into...
24048 (pass_manager::register_one_dump_file): ...here.
24049 (register_dump_files_1): Convert to...
24050 (pass_manager::register_dump_files_1): ...method.
24051 (register_dump_files): Convert to...
24052 (pass_manager::register_dump_files): ...method.
24053 (create_pass_tab): Update for moves of globals to fields of
24054 pass_manager.
24055 (dump_passes): Move body of implementation into...
24056 (pass_manager::dump_passes): ...here.
24057 (register_pass): Move body of implementation into...
24058 (pass_manager::register_pass): ...here.
24059 (init_optimization_passes): Convert into...
24060 (pass_manager::pass_manager): ...constructor for new
24061 pass_manager class, and initialize the pass_lists array.
24062 (check_profile_consistency): Update for moves of globals to
24063 fields of pass_manager.
24064 (dump_profile_report): Move body of implementation into...
24065 (pass_manager::dump_profile_report): ...here.
24066 (ipa_write_summaries_1): Update for moves of pass lists from
24067 being globals to fields of pass_manager.
24068 (ipa_write_optimization_summaries): Likewise.
24069 (ipa_read_summaries): Likewise.
24070 (ipa_read_optimization_summaries): Likewise.
24071 (execute_all_ipa_stmt_fixups): Likewise.
24072
24073 * statistics.c (statistics_fini): Update for moves of globals to
24074 fields of pass_manager.
24075
24076 * toplev.c (general_init): Replace call to
24077 init_optimization_passes with construction of the pass_manager
24078 instance.
24079
24080 * tree-pass.h (all_passes): Remove, in favor of a field of the
24081 same name within the new class pass_manager.
24082 (all_small_ipa_passes): Likewise.
24083 (all_lowering_passes): Likewise.
24084 (all_regular_ipa_passes): Likewise.
24085 (all_lto_gen_passes): Likewise.
24086 (all_late_ipa_passes): Likewise.
24087 (passes_by_id): Likewise.
24088 (passes_by_id_size): Likewise.
24089 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24090 the new class pass_manager.
24091 (get_pass_for_id): Remove.
24092
24093 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24094
24095 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24096 configs.
24097
24098 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24099
24100 * arm.md (mulhi3): New expand pattern.
24101
24102 2013-07-30 Jan Hubicka <jh@suse.cz>
24103 Martin Liska <marxin.liska@gmail.com>
24104
24105 * profile.c (compute_value_histograms): Do not ICE when
24106 there is mismatch only on some counters.
24107
24108 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24109
24110 PR rtl-optimization/57637
24111 * function.c (move_insn_for_shrink_wrap): Also check the
24112 GEN set of the LIVE problem for the liveness analysis
24113 if it exists, otherwise give up.
24114
24115 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24116
24117 PR tree-optimization/57993
24118 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24119 replaced statement in the candidate table.
24120 (phi_add_costs): Return infinite cost when the hidden basis does
24121 not dominate all phis on which the candidate is dependent.
24122 (replace_one_candidate): Record replaced statement in the
24123 candidate table.
24124
24125 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
24126
24127 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24128 (ashlv2si3): New expander.
24129 (*ashlv2si3_i): New define_insn_and_split.
24130 * predicates.md (float_operation): Allow patterns with three
24131 basic sub-patterns.
24132
24133 PR rtl-optimization/58021
24134 * mode-switching.c (create_pre_exit): Always split off preceding
24135 insns if we are not at the basic block head.
24136
24137 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
24138
24139 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24140 (UCLIBC_DYNAMIC_LINKER): New macro.
24141 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24142 `-mnan=2008'.
24143 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24144 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
24145 `-mnan=2008'.
24146 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24147 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24148 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24149 for SF and DF modes. Use ieee_quad_format for TF mode.
24150 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24151 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24152 (mips_option_override): Handle `-mnan=legacy'.
24153 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24154 `-mabs=2008' and `-mnan=2008'.
24155 (OPTION_DEFAULT_SPECS): Add "nan" default.
24156 (ASM_SPEC): Handle `-mnan='.
24157 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24158 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24159 comment accordingly.
24160 (neg<mode>2): Likewise.
24161 * config/mips/mips.opt (mabs, mnan): New options.
24162 * doc/install.texi (Configuration): Document `--with-nan=' option.
24163 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24164 `-mnan=' options.
24165 (MIPS Options): Document them.
24166 * config.gcc <mips*-*-*>: Handle `--with-nan='.
24167 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24168 * configure: Regenerate.
24169 * config.in: Regenerate.
24170
24171 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24172
24173 * config/i386/i386.md (float post-reload splitters): Do not check
24174 for subregs of SSE registers.
24175
24176 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24177 H.J. Lu <hongjiu.lu@intel.com>
24178
24179 PR target/57954
24180 PR target/57988
24181 * config/i386/i386.md (post-reload splitter
24182 to avoid partial SSE reg dependency stalls): New pattern.
24183
24184 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24185
24186 * config/s390/s390.md ("movcc"): Swap load and store instructions.
24187
24188 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
24189
24190 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24191 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24192
24193 2013-07-26 Cary Coutant <ccoutant@google.com>
24194
24195 * dwarf2out.c (die_checksum_ordered): Don't include template
24196 instantiations in signature.
24197 (is_template_parameter): New function.
24198 (is_template_instantiation): New function.
24199 (generate_skeleton_bottom_up): Don't include template instantiations
24200 in type unit DIE.
24201 (generate_skeleton): Likewise.
24202 (break_out_comdat_types): Move recursive call to break out nested
24203 types earlier.
24204 (prune_unused_types_mark_generic_parms_dies): Call
24205 is_template_parameter.
24206
24207 2013-07-26 Ian Bolton <ian.bolton@arm.com>
24208
24209 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24210 uses vector registers.
24211 * config/aarch64/iterators.md: Add attributes rtn and vas.
24212
24213 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24214 Richard Earnshaw <richard.earnshaw@arm.com>
24215
24216 * combine.c (simplify_comparison): Re-canonicalize operands
24217 where appropriate.
24218 * config/arm/arm.md (movcond_addsi): New splitter.
24219
24220 2013-07-25 Sterling Augustine <saugustine@google.com>
24221
24222 * dwarf2out.c (size_of_pubnames): Move code to...
24223 (include_pubname_in_output): ...here. New.
24224 (want_pubnames): Rearrange.
24225 (output_pubnames): Call include_pubname_in_output. Move assertion.
24226
24227 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24228
24229 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24230
24231 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24232
24233 PR target/38836
24234 * doc/extend.texi: Remove obsolete builtins. Fix
24235 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24236
24237 2013-07-25 Jan Hubicka <jh@suse.cz>
24238
24239 * cgraph.c (release_function_body): Break out from ...
24240 (cgraph_release_function_body): ... this one; also release DECL_RESULT
24241 and DECL_ARGUMENTS.
24242 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24243 old_tree in the map.
24244 (create_specialized_node): Update.
24245 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24246 into index.
24247 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24248 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24249 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24250 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24251 DECL_RESULT.
24252
24253 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24254
24255 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24256 addsi3_carryin_alt2_<optab>): Correct output template.
24257
24258 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24259
24260 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24261 Adjust for arm_restrict_it.
24262 Remove trailing whitespace.
24263
24264 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
24265
24266 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24267 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24268
24269 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24270
24271 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
24272
24273 PR rtl-optimization/57960
24274 * lra-constraints.c (process_alt_operands): Use the right mode
24275 when checking strict_low.
24276
24277 2013-07-25 Jan Hubicka <jh@suse.cz>
24278
24279 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24280 * cgraph.c (cgraph_remove_node): Do not release function body
24281 when in cgraph streaming.
24282 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24283 in other partitions are not considered reachable; fix handling of
24284 clones.
24285
24286 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24287
24288 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24289
24290 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24291
24292 PR target/19599
24293 PR target/57731
24294 PR target/57837
24295 * config/arm/arm.md ("*sibcall_insn): Replace use of
24296 Ss with US. Adjust output for v5 and v4t.
24297 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24298
24299 * config/arm/constraints.md ("Ss"): Rename to US.
24300
24301 2013-07-25 Terry Guo <terry.guo@arm.com>
24302
24303 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24304 shift_add/shift_sub0/shift_sub1 RTXs.
24305
24306 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
24307 Anton Blanchard <anton@au1.ibm.com>
24308
24309 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24310 (altivec_vpks<VI_char>ss): Likewise.
24311 (altivec_vpks<VI_char>us): Likewise.
24312 (altivec_vpku<VI_char>us): Likewise.
24313 (altivec_vpku<VI_char>um): Likewise.
24314
24315 2013-07-24 David Malcolm <dmalcolm@redhat.com>
24316
24317 Introduce context class.
24318
24319 * Makefile.in (CONTEXT_H): New.
24320 (OBJS): Add context.o.
24321 (toplev.o): Add CONTEXT_H to dependencies.
24322 (context.o): New.
24323
24324 * toplev.c (general_init): Create the singleton gcc::context instance.
24325
24326 * context.c: New.
24327
24328 * context.h: New.
24329
24330 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
24331
24332 PR rtl-optimization/57968
24333 * mode-switching.c (create_pre_exit): Allow instructions that
24334 don't set a return register to need a non-exit mode.
24335
24336 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24337 Anton Blanchard <anton@au1.ibm.com>
24338
24339 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24340 operands to vperm for little endian.
24341 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24342 of lvsl to create the control mask for a vperm for little endian.
24343
24344 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24345 Anton Blanchard <anton@au1.ibm.com>
24346
24347 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24348 two operands for little-endian.
24349
24350 2013-07-23 Steve Ellcey <sellcey@mips.com>
24351
24352 * config/mips/mips.c (mips_case_values_threshold): New.
24353 (TARGET_CASE_VALUES_THRESHOLD): Define.
24354
24355 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24356 Anton Blanchard <anton@au1.ibm.com>
24357
24358 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24359 selection of field for vector splat in little endian mode.
24360
24361 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24362
24363 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24364 expanders to rs6000.md.
24365 (ior<mode>3): Likewise.
24366 (and<mode>3): Likewise.
24367 (one_cmpl<mode>2): Likewise.
24368 (nor<mode>3): Likewise.
24369 (andc<mode>3): Likewise.
24370 (eqv<mode>3): Likewise.
24371 (nand<mode>3): Likewise.
24372 (orc<mode>3): Likewise.
24373
24374 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24375 declaration.
24376
24377 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24378 to split multi-word logical operations.
24379 (rs6000_split_logical_di): Likewise.
24380 (rs6000_split_logical): Likewise.
24381
24382 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24383 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24384 and allow TImode operations in 32-bit.
24385 (vsx_and<mode>3_64bit): Likewise.
24386 (vsx_ior<mode>3_32bit): Likewise.
24387 (vsx_ior<mode>3_64bit): Likewise.
24388 (vsx_xor<mode>3_32bit): Likewise.
24389 (vsx_xor<mode>3_64bit): Likewise.
24390 (vsx_one_cmpl<mode>2_32bit): Likewise.
24391 (vsx_one_cmpl<mode>2_64bit): Likewise.
24392 (vsx_nor<mode>3_32bit): Likewise.
24393 (vsx_nor<mode>3_64bit): Likewise.
24394 (vsx_andc<mode>3_32bit): Likewise.
24395 (vsx_andc<mode>3_64bit): Likewise.
24396 (vsx_eqv<mode>3_32bit): Likewise.
24397 (vsx_eqv<mode>3_64bit): Likewise.
24398 (vsx_nand<mode>3_32bit): Likewise.
24399 (vsx_nand<mode>3_64bit): Likewise.
24400 (vsx_orc<mode>3_32bit): Likewise.
24401 (vsx_orc<mode>3_64bit): Likewise.
24402
24403 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24404 logical types in GPRs.
24405
24406 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24407 logical insns to rs6000.md, and allow TImode operations in
24408 32-bit.
24409 (altivec_ior<mode>3): Likewise.
24410 (altivec_xor<mode>3): Likewise.
24411 (altivec_one_cmpl<mode>2): Likewise.
24412 (altivec_nor<mode>3): Likewise.
24413 (altivec_andc<mode>3): Likewise.
24414
24415 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24416 attributes for moving the 128-bit logical operations into
24417 rs6000.md.
24418 (BOOL_REGS_OUTPUT): Likewise.
24419 (BOOL_REGS_OP1): Likewise.
24420 (BOOL_REGS_OP2): Likewise.
24421 (BOOL_REGS_UNARY): Likewise.
24422 (BOOL_REGS_AND_CR0): Likewise.
24423 (one_cmpl<mode>2): Add support for DI logical operations on
24424 32-bit, splitting the operations to 32-bit.
24425 (anddi3): Likewise.
24426 (iordi3): Likewise.
24427 (xordi3): Likewise.
24428 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24429 changes to combine the 32/64-bit code, allow logical operations on
24430 TI mode in 32-bit, and to use similar match_operator patterns like
24431 scalar mode uses. Combine the Altivec and VSX code for logical
24432 operations, and move it here.
24433 (ior<mode>3, 128-bit types): Likewise.
24434 (xor<mode>3, 128-bit types): Likewise.
24435 (one_cmpl<mode>3, 128-bit types): Likewise.
24436 (nor<mode>3, 128-bit types): Likewise.
24437 (andc<mode>3, 128-bit types): Likewise.
24438 (eqv<mode>3, 128-bit types): Likewise.
24439 (nand<mode>3, 128-bit types): Likewise.
24440 (orc<mode>3, 128-bit types): Likewise.
24441 (and<mode>3_internal): Likewise.
24442 (bool<mode>3_internal): Likewise.
24443 (boolc<mode>3_internal1): Likewise.
24444 (boolc<mode>3_internal2): Likewise.
24445 (boolcc<mode>3_internal1): Likewise.
24446 (boolcc<mode>3_internal2): Likewise.
24447 (eqv<mode>3_internal1): Likewise.
24448 (eqv<mode>3_internal2): Likewise.
24449 (one_cmpl1<mode>3_internal): Likewise.
24450
24451 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24452
24453 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24454 Rename flag_stack_usage to flag_stack_usage_info.
24455
24456 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24457
24458 * config/microblaze/sync.md: New file.
24459 * config/microblaze/microblaze.md: Include sync.md
24460 * config/microblaze/microblaze.c: Add print_operand 'y'.
24461 * config/microblaze/constraints.md: Add memory_contraint
24462 'Q' which is a single register.
24463
24464 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
24465
24466 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24467
24468 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24469
24470 * reload.c (find_reloads): Exit loop once we find this operand
24471 cannot be reloaded somehow for this alternative.
24472
24473 * reload.c (find_reloads): Exit loop once we find a hard register.
24474
24475 * rtlanal.c (computed_jump_p): Exit loop once we find label
24476 reference is used.
24477
24478 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24479
24480 * cfgloopmanip.c (remove_path): Exit loop after setting
24481 irred_invalidated.
24482
24483 * gensupport.c (subst_dup): Avoid loop if code is not
24484 MATCH_DUP nor MATCH_OP_DUP.
24485
24486 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24487
24488 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24489
24490 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24491
24492 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24493 true for SP_REGNUM if mode == ptr_mode.
24494 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24495 with value R0_REGNUM + 31.
24496
24497 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24498
24499 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24500 pad pointer-typed argument downward.
24501
24502 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24503
24504 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24505 and __ILP32__ when the ILP32 model is in use.
24506
24507 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24508
24509 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24510 (aarch64_load_symref_appropriately): In the case of
24511 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24512 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24513 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24514 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24515 if 'mode' doesn't equal to 'ptr_mode'.
24516 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24517 'vcall_offset'; change to call aarch64_emit_move differently depending
24518 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24519 to calculate the upper bound of 'vcall_offset'.
24520 (aarch64_cannot_force_const_mem): Change to also return true if
24521 mode != ptr_mode.
24522 (aarch64_legitimize_reload_address): In the case of large
24523 displacements, add new local variable 'xmode' and an assertion
24524 based on it; change to use 'xmode' to generate the new rtx and
24525 reload.
24526 (aarch64_asm_trampoline_template): Change to generate the template
24527 differently depending on TARGET_ILP32 or not; change to use
24528 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24529 (aarch64_trampoline_size): Removed.
24530 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24531 and replace immediate literals with it. Change to use 'ptr_mode'
24532 instead of 'DImode' and call convert_memory_address if the mode
24533 of 'fnaddr' doesn't equal to 'ptr_mode'.
24534 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24535 to output symbol.
24536 (aarch64_elf_asm_destructor): Likewise.
24537 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24538 on TARGET_ILP32 instead of aarch64_trampoline_size.
24539 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24540 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24541 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24542 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24543 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24544 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24545 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24546 depending on the value of 'mode'.
24547 (add_losym_<mode>): New.
24548 (ldr_got_small_<mode>): New, based on ldr_got_small.
24549 (ldr_got_small): Remove.
24550 (ldr_got_small_sidi): New.
24551 * config/aarch64/iterators.md (P): New.
24552 (PTR): Change to 'ptr_mode' in the condition.
24553
24554 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24555
24556 * config.gcc (aarch64*-*-*): Support --with-abi.
24557 (aarch64*-*-elf): Support --with-multilib-list.
24558 (aarch64*-*-linux*): Likewise.
24559 (supported_defaults): Add abi to aarch64*-*-*.
24560 * configure.ac: Mention AArch64 for --with-multilib-list.
24561 * configure: Re-generated.
24562 * config/aarch64/biarchilp32.h: New file.
24563 * config/aarch64/biarchlp64.h: New file.
24564 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24565 (ABI_SPEC): Ditto.
24566 (MULTILIB_DEFAULTS): Ditto.
24567 (DRIVER_SELF_SPECS): Ditto.
24568 (ASM_SPEC): Update to also substitute -mabi.
24569 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24570 file whose name depends on -mabi= and -mbig-endian.
24571 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24572 TARGET_ILP32.
24573 (POINTER_SIZE): New define.
24574 (POINTERS_EXTEND_UNSIGNED): Ditto.
24575 (enum aarch64_abi_type): New enumeration tag.
24576 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24577 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24578 (TARGET_ILP32): New define.
24579 * config/aarch64/aarch64.opt (mabi): New.
24580 (aarch64_abi): New.
24581 (ilp32, lp64): New values for -mabi.
24582 * config/aarch64/t-aarch64 (comma): New define.
24583 (MULTILIB_OPTIONS): Ditto.
24584 (MULTILIB_DIRNAMES): Ditto.
24585 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24586 * doc/invoke.texi: Document -mabi for AArch64.
24587
24588 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24589
24590 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24591
24592 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24593 Anton Blanchard <anton@au1.ibm.com>
24594
24595 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24596 endianness when selecting field to splat.
24597
24598 2013-07-22 Eric Christopher <echristo@gmail.com>
24599
24600 * dwarf2out.c (die_odr_checksum): New function to use
24601 CHECKSUM_ macros and ULEB128 for DIE tag.
24602 (generate_type_signature): Use.
24603
24604 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24605
24606 * config.gcc (sparc*-*-*): Accept leon3 processor.
24607 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24608 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24609 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24610 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24611 (mfix-ut699): Adjust comment.
24612 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24613 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24614 (CPP_CPU_SPEC): Likewise.
24615 (ASM_CPU_SPEC): Likewise.
24616 * config/sparc/sparc.c (leon3_cost): New constant.
24617 (sparc_option_override): Add leon3 support.
24618 (mem_ref): New function.
24619 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24620 (sparc_do_work_around_errata): Look into the instruction in the delay
24621 slot and adjust accordingly. Add fix for the data cache nullify issues
24622 of the UT699. Change insertion position for the NOP.
24623 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24624 (leon3_load): New reservation.
24625 (leon_store): Bump latency to 2.
24626 (grfpu): New automaton.
24627 (grfpu_alu): New unit.
24628 (grfpu_ds): Likewise.
24629 (leon_fp_alu): Adjust.
24630 (leon_fp_mult): Delete.
24631 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24632 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24633 * config/sparc/sparc.md (cpu): Add leon3.
24634 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24635 (swapsi): Likewise.
24636 (atomic_test_and_set): Likewise.
24637 (ldstub): Likewise.
24638
24639 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24640
24641 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24642 default for R5900 targets.
24643 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24644 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24645 * config/mips/mips.c (mips_option_override): Report an error for
24646 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24647 for -march=r5900 -mhard-float.
24648
24649 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24650
24651 * df-problems.c (can_move_insns_across): Exit loop once we
24652 find a non-fixed, non-global register.
24653
24654 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24655 setting can_throw.
24656
24657 * omega.c (omega_eliminate_red): Break after setting red_found.
24658 (omega_problem_has_red_equations): Similarly after setting found.
24659 (omega_query_variable): Similarly after setting coupled.
24660
24661 2013-07-22 Marek Polacek <polacek@redhat.com>
24662
24663 * gimplify.c: Don't include gimple.h twice.
24664
24665 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24666
24667 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24668 instead of TARGET_THUMB1.
24669 (Pz): New constraint.
24670 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24671 encodings.
24672 (compare_negsi_si): Likewise.
24673 (compare_addsi2_op0): Likewise.
24674 (compare_addsi2_op1): Likewise.
24675 (addsi3_carryin_<optab>): Likewise.
24676 (addsi3_carryin_alt2_<optab>): Likewise.
24677 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24678 for arm_restrict_it.
24679 (subsi3_carryin): Likewise.
24680 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24681 (minmax_arithsi): Disable for arm_restrict_it.
24682 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24683 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24684 (satsi_<SAT:code>_shift): Likewise.
24685 (arm_shiftsi3): Add alternative for 16-bit encoding.
24686 (arm32_movhf): Disable for arm_restrict_it.
24687 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24688 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24689
24690 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24691
24692 * config/arm/arm.md (attribute "insn"): Delete.
24693 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24694 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24695 (not_shiftsi): Update for attribute change.
24696 (not_shiftsi_compare0): Likewise.
24697 (not_shiftsi_compare0_scratch): Likewise.
24698 (arm_one_cmplsi2): Likewise.
24699 (thumb1_one_cmplsi2): Likewise.
24700 (notsi_compare0): Likewise.
24701 (notsi_compare0_scratch): Likewise.
24702 (thumb1_movdi_insn): Likewise.
24703 (arm_movsi_insn): Likewise.
24704 (movhi_insn_arch4): Likewise.
24705 (movhi_bytes): Likewise.
24706 (arm_movqi_insn): Likewise.
24707 (thumb1_movqi_insn): Likewise.
24708 (arm32_movhf): Likewise.
24709 (thumb1_movhf): Likewise.
24710 (arm_movsf_soft_insn): Likewise.
24711 (thumb1_movsf_insn): Likewise.
24712 (thumb_movdf_insn): Likewise.
24713 (movsicc_insn): Likewise.
24714 (movsfcc_soft_insn): Likewise.
24715 (and_scc): Likewise.
24716 (cond_move): Likewise.
24717 (if_move_not): Likewise.
24718 (if_not_move): Likewise.
24719 (if_shift_move): Likewise.
24720 (if_move_shift): Likewise.
24721 (if_shift_shift): Likewise.
24722 (if_not_arith): Likewise.
24723 (if_arith_not): Likewise.
24724 (cond_move_not): Likewise.
24725 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24726 (neon_mov<mode>): Likewise.
24727 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24728 (thumb2_movsi_vfp): Likewise.
24729 (movsf_vfp): Likewise.
24730 (thumb2_movsf_vfp): Likewise.
24731 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24732 change.
24733 (cortexa7_older_only): Likewise.
24734 (cortexa7_younger): Likewise.
24735 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24736 (1020alu_shift_op): Likewise.
24737 (1020alu_shift_reg_op): Likewise.
24738 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24739 (alu_shift_op): Likewise.
24740 (alu_shift_reg_op): Likewise.
24741 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24742 (11_alu_shift_op): Likewise.
24743 (11_alu_shift_reg_op): Likewise.
24744 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24745 (9_alu_shift_reg_op): Likewise.
24746 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24747 change.
24748 (cortex_a15_alu_shift): Likewise.
24749 (cortex_a15_alu_shift_reg): Likewise.
24750 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24751 (cortex_a5_alu_shift): Likewise.
24752 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24753 change.
24754 (cortex_a53_alu_shift): Likewise.
24755 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24756 change.
24757 (cortex_a7_alu_reg): Likewise.
24758 (cortex_a7_alu_shift): Likewise.
24759 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24760 (cortex_a8_alu_shift): Likewise.
24761 (cortex_a8_alu_shift_reg): Likewise.
24762 (cortex_a8_mov): Likewise.
24763 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24764 (cortex_a9_dp_shift): Likewise.
24765 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24766 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24767 (cortex_r4_mov): Likewise.
24768 (cortex_r4_alu_shift): Likewise.
24769 (cortex_r4_alu_shift_reg): Likewise.
24770 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24771 (526_alu_shift_op): Likewise.
24772 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24773 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24774 (626te_alu_shift_op): Likewise.
24775 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24776 (726te_alu_op): Likewise.
24777 (726te_alu_shift_op): Likewise.
24778 (726te_alu_shift_reg_op): Likewise.
24779 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24780 (mp626_alu_shift_op): Likewise.
24781 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24782 (pj4_alu_e1_conds): Likewise.
24783 (pj4_alu): Likewise.
24784 (pj4_alu_conds): Likewise.
24785 (pj4_shift): Likewise.
24786 (pj4_shift_conds): Likewise.
24787 (pj4_alu_shift): Likewise.
24788 (pj4_alu_shift_conds): Likewise.
24789
24790 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24791
24792 * config/arm/predicates.md (shiftable_operator_strict_it):
24793 New predicate.
24794 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24795 Disable cond_exec version for arm_restrict_it.
24796 (thumb2_smaxsi3): Convert to generate cond_exec.
24797 (thumb2_sminsi3): Likewise.
24798 (thumb32_umaxsi3): Likewise.
24799 (thumb2_uminsi3): Likewise.
24800 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24801 (thumb2_neg_abssi2): Likewise.
24802 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24803 (thumb2_movsicc_insn): Adjust alternatives.
24804 (thumb2_mov_negscc): Disable for arm_restrict_it.
24805 (thumb2_mov_negscc_strict_it): New pattern.
24806 (thumb2_mov_notscc_strict_it): New pattern.
24807 (thumb2_mov_notscc): Disable for arm_restrict_it.
24808 (thumb2_ior_scc): Likewise.
24809 (thumb2_ior_scc_strict_it): New pattern.
24810 (thumb2_cond_move): Adjust for arm_restrict_it.
24811 (thumb2_cond_arith): Disable for arm_restrict_it.
24812 (thumb2_cond_arith_strict_it): New pattern.
24813 (thumb2_cond_sub): Adjust for arm_restrict_it.
24814 (thumb2_movcond): Likewise.
24815 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24816 (thumb2_zero_extendhisi2_v6): Likewise.
24817 (thumb2_zero_extendqisi2_v6): Likewise.
24818 (orsi_notsi_si): Likewise.
24819 (orsi_not_shiftsi_si): Likewise.
24820
24821 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24822
24823 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24824 instruction sequence is 1 byte shorter.
24825
24826 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24827
24828 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24829 it is not needed after split.
24830
24831 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24832
24833 PR target/51784
24834 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24835 second label for nonlocal goto receivers. Don't output pic base labels
24836 unless we're producing PIC; mark that action unreachable().
24837 (ix86_save_reg): If the function contains a nonlocal label, save the
24838 PIC base reg.
24839 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24840 * config/darwin.c (emitted_pic_label_num): New GTY.
24841 (update_pic_label_number_if_needed): New.
24842 (machopic_output_function_base_name): Adjust for nonlocal receiver
24843 case.
24844 (machopic_should_output_picbase_label): New.
24845 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24846 (nonlocal_goto_receiver): New insn and split.
24847
24848 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24849
24850 * config/aarch64/aarch64-builtins.c
24851 (aarch64_fold_builtin): Fold abs in all modes.
24852 * config/aarch64/aarch64-simd-builtins.def
24853 (abs): Enable for all modes.
24854 * config/aarch64/arm_neon.h
24855 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24856 (vabs_f64): Add missing intrinsic.
24857
24858 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24859
24860 * config/aarch64/arm_neon.h (vabs_s64): New function
24861
24862 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24863
24864 PR target/57516
24865 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24866 * config/avr/avr.md (adjust_len): Add `round'.
24867 * config/avr/avr-protos.h (avr_out_round): New prototype.
24868 (avr_out_plus): Add `out_label' argument.
24869 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24870 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24871 Handle the case where `insn' is just a pattern.
24872 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24873 (avr_out_round): New function.
24874 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24875
24876 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24877
24878 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24879 Add check for flag_stack_usage to handle -fstack-usage support
24880
24881 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24882
24883 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24884 interaction for new Power8 flags and VSX.
24885
24886 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24887
24888 PR middle-end/57698
24889 * tree-inline.c (expand_call_inline): Emit errors during
24890 early_inlining only if optimization is not turned on.
24891
24892 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24893
24894 * passes.def: New.
24895
24896 * passes.c (init_optimization_passes): Move the construction of
24897 the pass hierarchy into a new passes.def file.
24898
24899 * Makefile.in (passes.o): Add dependency on passes.def.
24900
24901 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24902
24903 * passes.c (init_optimization_passes): Introduce macros for
24904 constructing the tree of passes (INSERT_PASSES_AFTER,
24905 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24906 TERMINATE_PASS_LIST).
24907
24908 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24909 Wei Mi <wmi@google.com>
24910
24911 PR rtl-optimization/57878
24912 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24913 top.
24914 (reload_pseudo_compare_func): Check nregs first for reload
24915 pseudos.
24916
24917 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24918
24919 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24920
24921 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24922
24923 * read-rtl.c (validate_const_int): Once an invalid character is
24924 seen, quit the loop.
24925
24926 * gengtype.c (write_roots): Similarly once we find the "deletable"
24927 or "if_marked" option.
24928
24929 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24930
24931 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24932 "xtab" and "sat". Move value "clz" from here to ...
24933 (attriubte "type"): ... here.
24934 (satsi_<SAT:code>): Delete "insn" attribute.
24935 (satsi_<SAT:code>_shift): Likewise.
24936 (arm_zero_extendqisi2addsi): Likewise.
24937 (arm_extendqisi2addsi): Likewise.
24938 (clzsi2): Update for attribute changes.
24939 (rbitsi2): Likewise.
24940 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24941 attribute.
24942 (arm_usatsihi): Likewise.
24943 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24944
24945 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24946
24947 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24948 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24949 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24950 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24951 in alphabetical order.
24952 (attribute "core_cycles"): Update for attribute changes.
24953 (arm_addsi3): Likewise.
24954 (addsi3_compare0): Likewise.
24955 (addsi3_compare0_scratch): Likewise.
24956 (addsi3_compare_op1): Likewise.
24957 (addsi3_compare_op2): Likewise.
24958 (compare_addsi2_op0): Likewise.
24959 (compare_addsi2_op1): Likewise.
24960 (addsi3_carryin_shift_<optab>): Likewise.
24961 (subsi3_carryin_shift): Likewise.
24962 (rsbsi3_carryin_shift): Likewise.
24963 (arm_subsi3_insn): Likewise.
24964 (subsi3_compare0): Likewise.
24965 (subsi3_compare): Likewise.
24966 (arm_andsi3_insn): Likewise.
24967 (thumb1_andsi3_insn): Likewise.
24968 (andsi3_compare0): Likewise.
24969 (andsi3_compare0_scratch): Likewise.
24970 (zeroextractsi_compare0_scratch
24971 (andsi_not_shiftsi_si): Likewise.
24972 (iorsi3_insn): Likewise.
24973 (iorsi3_compare0): Likewise.
24974 (iorsi3_compare0_scratch): Likewise.
24975 (arm_xorsi3): Likewise.
24976 (thumb1_xorsi3_insn): Likewise.
24977 (xorsi3_compare0): Likewise.
24978 (xorsi3_compare0_scratch): Likewise.
24979 (satsi_<SAT:code>_shift): Likewise.
24980 (rrx): Likewise.
24981 (arm_shiftsi3): Likewise.
24982 (shiftsi3_compare0): Likewise.
24983 (not_shiftsi): Likewise.
24984 (not_shiftsi_compare0): Likewise.
24985 (not_shiftsi_compare0_scratch): Likewise.
24986 (arm_one_cmplsi2): Likewise.
24987 (thumb_one_complsi2): Likewise.
24988 (notsi_compare0): Likewise.
24989 (notsi_compare0_scratch): Likewise.
24990 (thumb1_zero_extendhisi2): Likewise.
24991 (arm_zero_extendhisi2): Likewise.
24992 (arm_zero_extendhisi2_v6): Likewise.
24993 (arm_zero_extendhisi2addsi): Likewise.
24994 (thumb1_zero_extendqisi2): Likewise.
24995 (thumb1_zero_extendqisi2_v6): Likewise.
24996 (arm_zero_extendqisi2): Likewise.
24997 (arm_zero_extendqisi2_v6): Likewise.
24998 (arm_zero_extendqisi2addsi): Likewise.
24999 (thumb1_extendhisi2): Likewise.
25000 (arm_extendhisi2): Likewise.
25001 (arm_extendhisi2_v6): Likewise.
25002 (arm_extendqisi): Likewise.
25003 (arm_extendqisi_v6): Likewise.
25004 (arm_extendqisi2addsi): Likewise.
25005 (thumb1_extendqisi2): Likewise.
25006 (thumb1_movdi_insn): Likewise.
25007 (arm_movsi_insn): Likewise.
25008 (movsi_compare0): Likewise.
25009 (movhi_insn_arch4): Likewise.
25010 (movhi_bytes): Likewise.
25011 (arm_movqi_insn): Likewise.
25012 (thumb1_movqi_insn): Likewise.
25013 (arm32_movhf): Likewise.
25014 (thumb1_movhf): Likewise.
25015 (arm_movsf_soft_insn): Likewise.
25016 (thumb1_movsf_insn): Likewise.
25017 (movdf_soft_insn): Likewise.
25018 (thumb_movdf_insn): Likewise.
25019 (arm_cmpsi_insn): Likewise.
25020 (cmpsi_shiftsi): Likewise.
25021 (cmpsi_shiftsi_swp): Likewise.
25022 (arm_cmpsi_negshiftsi_si): Likewise.
25023 (movsicc_insn): Likewise.
25024 (movsfcc_soft_insn): Likewise.
25025 (arith_shiftsi): Likewise.
25026 (arith_shiftsi_compare0
25027 (arith_shiftsi_compare0_scratch
25028 (sub_shiftsi): Likewise.
25029 (sub_shiftsi_compare0
25030 (sub_shiftsi_compare0_scratch
25031 (and_scc): Likewise.
25032 (cond_move): Likewise.
25033 (if_plus_move): Likewise.
25034 (if_move_plus): Likewise.
25035 (if_move_not): Likewise.
25036 (if_not_move): Likewise.
25037 (if_shift_move): Likewise.
25038 (if_move_shift): Likewise.
25039 (if_shift_shift): Likewise.
25040 (if_not_arith): Likewise.
25041 (if_arith_not): Likewise.
25042 (cond_move_not): Likewise.
25043 (thumb1_ashlsi3): Set type attribute.
25044 (thumb1_ashrsi3): Likewise.
25045 (thumb1_lshrsi3): Likewise.
25046 (thumb1_rotrsi3): Likewise.
25047 (shiftsi3_compare0_scratch): Likewise.
25048 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25049 (neon_mov<mode>): Likewise.
25050 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25051 attribute changes.
25052 (thumb2_movsi_insn): Likewise.
25053 (thumb2_cmpsi_neg_shiftsi): Likewise.
25054 (thumb2_extendqisi_v6): Likewise.
25055 (thumb2_zero_extendhisi2_v6): Likewise.
25056 (thumb2_zero_extendqisi2_v6): Likewise.
25057 (thumb2_shiftsi3_short): Likewise.
25058 (thumb2_addsi3_compare0_scratch): Likewise.
25059 (orsi_not_shiftsi_si): Likewise.
25060 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25061 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25062 changes.
25063 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25064 (1020alu_shift_op): Likewise.
25065 (1020alu_shift_reg_op): Likewise.
25066 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25067 (alu_shift_op): Likewise.
25068 (alu_shift_reg_op): Likewise.
25069 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25070 (11_alu_shift_op): Likewise.
25071 (11_alu_shift_reg_op): Likewise.
25072 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25073 (9_alu_shift_reg_op): Likewise.
25074 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25075 changes.
25076 (cortex_a15_alu_shift): Likewise.
25077 (cortex_a15_alu_shift_reg): Likewise.
25078 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25079 changes.
25080 (cortex_a5_alu_shift): Likewise.
25081 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25082 changes.
25083 (cortex_a53_alu_shift): Likewise.
25084 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25085 changes.
25086 (cortex_a7_alu_reg): Likewise.
25087 (cortex_a7_alu_shift): Likewise.
25088 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25089 changes.
25090 (cortex_a8_alu_shift): Likewise.
25091 (cortex_a8_alu_shift_reg): Likewise.
25092 (cortex_a8_mov): Likewise.
25093 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25094 (cortex_a9_dp_shift): Likewise.
25095 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25096 changes.
25097 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25098 changes.
25099 (cortex_r4_mov): Likewise.
25100 (cortex_r4_alu_shift): Likewise.
25101 (cortex_r4_alu_shift_reg): Likewise.
25102 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25103 (526_alu_shift_op): Likewise.
25104 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25105 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25106 (626te_alu_shift_op): Likewise.
25107 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25108 (726te_alu_op): Likewise.
25109 (726te_alu_shift_op): Likewise.
25110 (726te_alu_shift_reg_op): Likewise.
25111 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25112 (mp626_alu_shift_op): Likewise.
25113 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25114 (pj4_alu_e1_conds): Likewise.
25115 (pj4_alu): Likewise.
25116 (pj4_alu_conds): Likewise.
25117 (pj4_shift): Likewise.
25118 (pj4_shift_conds): Likewise.
25119 (pj4_alu_shift): Likewise.
25120 (pj4_alu_shift_conds): Likewise.
25121 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25122 changes.
25123 (cortexa7_older_only): Likewise.
25124 (cortexa7_younger): Likewise.
25125
25126 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25127
25128 * ipa-pure-const.c (generate_summary): Rename to...
25129 (pure_const_generate_summary): ... this.
25130
25131 2013-07-17 Iain Sandoe <iain@codesourcery.com>
25132
25133 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25134
25135 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
25136
25137 PR target/57909
25138 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25139 usage in HI mode.
25140
25141 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25142
25143 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25144 enabled without -march=zEC12.
25145 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25146 flags to be set.
25147
25148 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25149
25150 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25151 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25152 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25153 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25154 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25155 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25156 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25157 ISA_HAS_FP4.
25158 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25159 and ISA_HAS_NMADD3_NMSUB3.
25160 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25161 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25162 (nmsub4<mode>, nmsub3<mode>): Likewise.
25163 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25164
25165 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25166
25167 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25168 TARGET_MIPS5400 checking.
25169
25170 2013-07-16 Jakub Jelinek <jakub@redhat.com>
25171 Peter Bergner <bergner@vnet.ibm.com>
25172
25173 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25174 registers in the comment.
25175 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25176 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25177 rather than FIRST_PSEUDO_REGISTERS.
25178
25179 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
25180
25181 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25182 enable extra ISA flags with TARGET_HTM.
25183
25184 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25185
25186 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25187 Fix comment typos.
25188
25189 2013-07-15 Cong Hou <congh@google.com>
25190
25191 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25192 in compare function for sorting.
25193
25194 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
25195
25196 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25197 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25198 * config/rs6000/rs6000.opt: Add -mhtm option.
25199 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25200 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25201 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25202 __HTM__ if the HTM instructions are available.
25203 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25204 htm_spr_reg_operand): New define_predicates.
25205 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25206 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25207 Include htm.md.
25208 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25209 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25210 HTM builtin functions.
25211 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25212 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25213 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25214 (rs6000_builtin_mask_calculate): Likewise.
25215 (rs6000_option_override_internal): Likewise.
25216 (bdesc_htm): Add new HTM builtin support.
25217 (htm_spr_num): New function.
25218 (htm_spr_regno): Likewise.
25219 (rs6000_htm_spr_icode): Likewise.
25220 (htm_expand_builtin): Likewise.
25221 (htm_init_builtins): Likewise.
25222 (rs6000_expand_builtin): Add support for HTM builtin functions.
25223 (rs6000_init_builtins): Likewise.
25224 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25225 option.
25226 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25227 (TARGET_HTM, MASK_HTM): Define macros.
25228 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25229 (FIXED_REGISTERS): Likewise.
25230 (CALL_USED_REGISTERS): Likewise.
25231 (CALL_REALLY_USED_REGISTERS): Likewise.
25232 (REG_ALLOC_ORDER): Likewise.
25233 (enum reg_class): Likewise.
25234 (REG_CLASS_NAMES): Likewise.
25235 (REG_CLASS_CONTENTS): Likewise.
25236 (REGISTER_NAMES): Likewise.
25237 (ADDITIONAL_REGISTER_NAMES): Likewise.
25238 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25239 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25240 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25241 * config/rs6000/htm.md: New file.
25242 * config/rs6000/htmintrin.h: New file.
25243 * config/rs6000/htmxlintrin.h: New file.
25244
25245 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
25246
25247 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25248 Define SYMBOL_TINY_GOT, update comment.
25249 * config/aarch64/aarch64.c
25250 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25251 (aarch64_expand_mov_immediate): Likewise.
25252 (aarch64_print_operand): Likewise.
25253 (aarch64_classify_symbol): Likewise.
25254 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25255 (ldr_got_tiny): Define.
25256
25257 2013-07-13 Tobias Grosser <tobias@grosser.es>
25258
25259 PR tree-optimization/54094
25260 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25261 scheduling dimension for the parallelism check from the polyhedral
25262 information in the AST.
25263 * graphite-dependences.c (carries_deps): Do not assume the schedule is
25264 in 2D + 1 form.
25265
25266 2013-07-13 Jason Merrill <jason@redhat.com>
25267
25268 * print-tree.c (debug_vec_tree): Use debug_raw.
25269 (debug_raw (vec<tree, va_gc> &)): New.
25270 (debug_raw (vec<tree, va_gc> *)): New.
25271 * tree.h: Declare them.
25272
25273 2013-07-13 Bin Cheng <bin.cheng@arm.com>
25274
25275 * ifcvt.c (ifcvt_after_combine): New static variable.
25276 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25277 for size.
25278 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
25279 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25280 rest_of_handle_if_after_reload): Pass new argument for if_convert.
25281
25282 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
25283
25284 * config/mips/mips.c (mips_expand_call): Remove empty statement.
25285
25286 2013-07-12 Michael Matz <matz@suse.de>
25287
25288 PR middle-end/55771
25289 * convert.c (convert_to_real): Reject non-float inner types.
25290
25291 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
25292
25293 * config/aarch64/aarch64-protos.h
25294 (aarch64_simd_immediate_valid_for_move): Remove.
25295 * config/aarch64/aarch64.c (simd_immediate_info): New member.
25296 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25297 cases.
25298 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25299
25300 2013-07-11 Steve Ellcey <sellcey@mips.com>
25301
25302 * config/mips/mips.c (mips_conditional_register_usage): Do not
25303 use t[0-7] registers in MIPS16 mode when optimizing for size.
25304
25305 2013-07-11 Sriraman Tallam <tmsriram@google.com>
25306
25307 * config/i386/i386.c (dispatch_function_versions): Fix array
25308 indexing of function_version_info to match actual_versions.
25309
25310 2013-07-11 Teresa Johnson <tejohnson@google.com>
25311
25312 * vec.h (struct va_gc): Move release out-of-line.
25313 (va_gc::release): Call ggc_free on released vec.
25314
25315 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25316
25317 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25318 Require GOT register as additional operand in UNSPEC.
25319 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25320 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25321 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25322 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25323 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25324 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25325 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25326
25327 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
25328
25329 PR target/57631
25330 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25331 name seen by assembler/linker rather if available.
25332
25333 2013-07-11 Andreas Schwab <schwab@suse.de>
25334
25335 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25336
25337 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
25338
25339 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25340
25341 2013-07-10 Joseph Myers <joseph@codesourcery.com>
25342
25343 * doc/tm.texi.in: Move hook documentation to ....
25344 * target.def: ... here.
25345
25346 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25347 text on @hook line.
25348 * doc/tm.texi: Regenerate.
25349
25350 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
25351
25352 PR c++/57869
25353 * doc/invoke.texi: Document -Wconditionally-supported.
25354
25355 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25356
25357 PR target/57844
25358 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25359 of my_fp.
25360
25361 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25362
25363 PR target/57506
25364 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25365 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25366 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25367 Remove duplicate devices.
25368 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25369 * config/avr/t-multilib: Regenerate.
25370 * config/avr/avr-tables.opt: Regenerate.
25371 * doc/avr-mmcu.texi: Regenerate.
25372
25373 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25374
25375 PR target/56987
25376 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25377
25378 2013-07-10 Graham Stott <graham.stott@btinternet.com>
25379
25380 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25381 the cost of MULT when optimizing for size.
25382
25383 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25384
25385 * config/cr16/cr16-protos.h: Don't include target.h.
25386
25387 2013-07-09 Joseph Myers <joseph@codesourcery.com>
25388
25389 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25390 adjust register size for TDmode and TFmode for VSX registers.
25391
25392 2013-07-08 Kai Tietz <ktietz@redhat.com>
25393
25394 PR target/56892
25395 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25396 hook_bool_const_tree_true.
25397
25398 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25399
25400 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25401 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25402 * config/s390/s390.md: Define FPR*_REGNUM constants.
25403 Fix FPR2_REGNUM constant (18 -> 17).
25404 ("*trunc<BFP:mode><DFP_ALL:mode>2")
25405 ("*trunc<DFP_ALL:mode><BFP:mode>2")
25406 ("trunc<BFP:mode><DFP_ALL:mode>2")
25407 ("trunc<DFP_ALL:mode><BFP:mode>2")
25408 ("*extend<BFP:mode><DFP_ALL:mode>2")
25409 ("*extend<DFP_ALL:mode><BFP:mode>2")
25410 ("extend<BFP:mode><DFP_ALL:mode>2")
25411 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25412 FPR4_REGNUM.
25413
25414 2013-07-08 Graham Stott <graham.stott@btinternet.com>
25415
25416 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25417
25418 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25419
25420 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25421 and cfun_fpr_bit_p to cfun_fpr_save_p.
25422 (s390_frame_area, s390_register_info, s390_frame_info)
25423 (s390_emit_prologue, s390_emit_epilogue)
25424 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25425 register numbers.
25426 * config/s390/s390.h: Define *_REGNUM macros for floating point
25427 register numbers.
25428
25429 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
25430
25431 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25432
25433 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
25434
25435 PR rtl-optimization/57786
25436 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25437 and break out of the loop when it is set to false.
25438
25439 2013-07-08 Jakub Jelinek <jakub@redhat.com>
25440
25441 PR target/57819
25442 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25443 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25444 (const_int 63)) 0)).
25445 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25446 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25447 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25448
25449 PR rtl-optimization/57829
25450 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25451 mask bits outside of mode are just sign-extension from mode to HWI.
25452
25453 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
25454
25455 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25456 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25457 adjust_address instead of change_address to keep info about alignment.
25458 (emit_strmov): Remove.
25459 (emit_memmov): New function.
25460 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25461 (expand_movmem_epilogue): Likewise and return updated rtx for
25462 destination.
25463 (expand_constant_movmem_prologue): Likewise and return updated rtx for
25464 destination and source.
25465 (decide_alignment): Refactor, handle vector_loop.
25466 (ix86_expand_movmem): Likewise.
25467 (ix86_expand_setmem): Likewise.
25468 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25469
25470 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
25471
25472 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25473 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25474
25475 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25476
25477 * config/i386/sse.md (sse_movlhps): Change alternative 3
25478 of operand 2 to "m".
25479
25480 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25481
25482 PR target/57807
25483 * config/i386/sse.md (iptr): New mode attribute.
25484 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25485 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25486 (<sse>_vmmul<mode>3): Ditto.
25487 (<sse>_vmdiv<mode>3): Ditto.
25488 (sse_vmrcpv4sf2): Ditto.
25489 (<sse>_vmsqrt<mode>2): Ditto.
25490 (sse_vmrsqrtv4sf2): Ditto.
25491 (<sse>_vm<code><mode>3): Ditto.
25492 (avx_vmcmp<mode>3): Ditto.
25493 (<sse>_vmmaskcmp<mode>3): Ditto.
25494 (<sse>_comi): Ditto.
25495 (<sse>_ucomi): Ditto.
25496 (*xop_vmfrcz_<mode>): Ditto.
25497 (*fmai_fmadd_<mode>): Ditto.
25498 (*fmai_fmsub_<mode>): Ditto.
25499 (*fmai_fnmadd_<mode>): Ditto.
25500 (*fmai_fnmsub_<mode>): Ditto.
25501 (*fma4i_vmfmadd_<mode>): Ditto.
25502 (*fma4i_vmfmsub_<mode>): Ditto.
25503 (*fma4i_vmfnmadd_<mode>): Ditto.
25504 (*fma4i_vmfnmsub_<mode>): Ditto.
25505 (*xop_vmfrcz_<mode>): Ditto.
25506 (sse_cvtps2pi): Ditto.
25507 (sse_cvttps2pi): Ditto.
25508 (sse_cvtss2si): Ditto.
25509 (sse_cvtss2si_2): Ditto.
25510 (sse_cvtss2siq_2): Ditto.
25511 (sse_cvttss2si): Ditto.
25512 (sse_cvttss2siq): Ditto.
25513 (sse_cvtsd2si): Ditto.
25514 (sse_cvtsd2si_2): Ditto.
25515 (sse_cvtsd2siq_2): Ditto.
25516 (sse_cvttsd2si): Ditto.
25517 (sse_cvttsd2siq): Ditto.
25518 (sse_cvtsd2ss): Ditto.
25519 (sse_cvtss2sd): Ditto.
25520 (avx2_pbroadcast<mode>): Ditto.
25521 (avx2_pbroadcast<mode>_1): Ditto.
25522 (*avx_vperm_broadcast_v4sf): Ditto.
25523
25524 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25525 (sse_movlhps): Ditto.
25526 (sse_storehps): Ditto.
25527 (sse_loadhps): Ditto.
25528 (sse_storelps): Ditto.
25529 (sse_loadlps): Ditto.
25530 (*vec_concatv4sf): Ditto.
25531 (*vec_interleave_highv2df): Ditto.
25532 (*vec_interleave_lowv2df): Ditto.
25533 (*vec_extractv2df_1_sse): Ditto.
25534 (*vec_extractv2df_0_sse): Ditto.
25535 (sse2_storelpd): Ditto.
25536 (sse2_loadlpd): Ditto.
25537 (sse2_movsd): Ditto.
25538 (*vec_concatv4si): Ditto.
25539 (vec_concatv2di): Ditto.
25540
25541 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25542 for Intel asm dialect.
25543 (mmx_punpcklwd): Ditto.
25544 (mmx_punpckldq): Ditto.
25545
25546 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25547 for intel assembler dialect.
25548
25549 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25550
25551 PR target/29776
25552 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25553 for BUILT_IN_C{LZ,LRSB}*.
25554 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25555 * tree-vrp.c (extract_range_basic): Handle
25556 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25557 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25558 fall thru to code calling set_value*.
25559 * builtins.c (expand_builtin): Remove *IMAX cases.
25560 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25561 if width is bigger than 2*HWI.
25562
25563 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25564
25565 PR rtl-optimization/55342
25566 * lra-int.h (lra_subreg_reload_pseudos): New.
25567 * lra.c: Add undoing optional reloads to the block diagram.
25568 (lra_subreg_reload_pseudos): New.
25569 (lra_optional_reload_pseudos): Change comments.
25570 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25571 lra_optional_reload_pseudos after undo transformations.
25572 * lra-assigns.c (pseudo_prefix_title): New.
25573 (lra_setup_reg_renumber): Use it.
25574 (spill_for): Ditto. Check subreg reload pseudos too.
25575 (assign_by_spills): Consider subreg reload pseudos too.
25576 * lra-constraints.c (simplify_operand_subreg): Use
25577 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25578 (curr_insn_transform): Recognize and do optional reloads.
25579 (undo_optional_reloads): New.
25580 (lra_undo_inheritance): Call undo_optional_reloads.
25581
25582 2013-07-05 Thomas Quinot <quinot@adacore.com>
25583
25584 * tree-complex.c (expand_complex_operations_1): Fix typo.
25585
25586 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25587
25588 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25589 (tune_params): New member 'const vec_costs'.
25590 * config/aarch64/aarch64.c (generic_vector_cost): New.
25591 (generic_tunings): New member 'generic_vector_cost'.
25592 (aarch64_builtin_vectorization_cost): New.
25593 (aarch64_add_stmt_cost): New.
25594 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25595 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25596
25597 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25598
25599 PR target/57777
25600 * config/i386/predicates.md (vsib_address_operand): Disallow
25601 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25602
25603 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25604
25605 PR middle-end/55030
25606 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25607 expand_builtin_setjmp_receiver.
25608 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25609 with NULL for the label parameter.
25610 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25611 the frame-pointer. Adjust comments.
25612 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25613 only if LABEL is non-NULL.
25614
25615 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25616
25617 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25618 (ARM_ABI_AAPCS64): Ditto.
25619 (arm_abi): Ditto.
25620 (ARM_DEFAULT_ABI): Ditto.
25621
25622 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25623
25624 * config/aarch64/aarch64-builtins.c
25625 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25626 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25627 (st1): Likewise.
25628 * config/aarch64/aarch64-simd.md
25629 (aarch64_ld1<VALL:mode>): New.
25630 (aarch64_st1<VALL:mode>): Likewise.
25631 * config/aarch64/arm_neon.h
25632 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25633
25634 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25635
25636 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25637 target ISA is AVX.
25638 (ix86_option_override_internal):Turn on all -mavx target flags by
25639 default as they are dependent on AVX anyway.
25640
25641 2013-07-02 Cary Coutant <ccoutant@google.com>
25642
25643 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25644 deterministic hash.
25645 (loc_checksum_ordered): Likewise.
25646 (hash_loc_operands): Remove inline keyword.
25647
25648 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25649
25650 PR tree-optimization/57741
25651 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25652 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25653 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25654 Allow REAL_CST step_exprs if flag_associative_math.
25655 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25656
25657 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25658
25659 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25660
25661 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25662
25663 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25664
25665 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25666
25667 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25668 encoding.
25669 (iorsi3_insn): Likewise.
25670 (arm_xorsi3): Likewise.
25671
25672 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25673
25674 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25675 to ...
25676 (attribute "type"): ... here, and prefix with "wmmx_".
25677 (attribute "core_cycles"): Update for attribute changes.
25678 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25679 (tbcstv4hi): Likewise.
25680 (tbcstv2si): Likewise.
25681 (iwmmxt_iordi3): Likewise.
25682 (iwmmxt_xordi3): Likewise.
25683 (iwmmxt_anddi3): Likewise.
25684 (iwmmxt_nanddi3): Likewise.
25685 (iwmmxt_arm_movdi): Likewise.
25686 (iwmmxt_movsi_insn): Likewise.
25687 (mov<mode>_internal): Likewise.
25688 (and<mode>3_iwmmxt): Likewise.
25689 (ior<mode>3_iwmmxt): Likewise.
25690 (xor<mode>3_iwmmxt): Likewise.
25691 (add<mode>3_iwmmxt): Likewise.
25692 (ssaddv8qi3): Likewise.
25693 (ssaddv4hi3): Likewise.
25694 (ssaddv2si3): Likewise.
25695 (usaddv8qi3): Likewise.
25696 (usaddv4hi3): Likewise.
25697 (usaddv2si3): Likewise.
25698 (sub<mode>3_iwmmxt): Likewise.
25699 (sssubv8qi3): Likewise.
25700 (sssubv4hi3): Likewise.
25701 (sssubv2si3): Likewise.
25702 (ussubv8qi3): Likewise.
25703 (ussubv4hi3): Likewise.
25704 (ussubv2si3): Likewise.
25705 (mulv4hi3_iwmmxt): Likewise.
25706 (smulv4hi3_highpart): Likewise.
25707 (umulv4hi3_highpart): Likewise.
25708 (iwmmxt_wmacs): Likewise.
25709 (iwmmxt_wmacsz): Likewise.
25710 (iwmmxt_wmacu): Likewise.
25711 (iwmmxt_wmacuz): Likewise.
25712 (iwmmxt_clrdi): Likewise.
25713 (iwmmxt_clrv8qi): Likewise.
25714 (iwmmxt_clr4hi): Likewise.
25715 (iwmmxt_clr2si): Likewise.
25716 (iwmmxt_uavgrndv8qi3): Likewise.
25717 (iwmmxt_uavgrndv4hi3): Likewise.
25718 (iwmmxt_uavgv8qi3): Likewise.
25719 (iwmmxt_uavgv4hi3): Likewise.
25720 (iwmmxt_tinsrb): Likewise.
25721 (iwmmxt_tinsrh): Likewise.
25722 (iwmmxt_tinsrw): Likewise.
25723 (iwmmxt_textrmub): Likewise.
25724 (iwmmxt_textrmsb): Likewise.
25725 (iwmmxt_textrmuh): Likewise.
25726 (iwmmxt_textrmsh): Likewise.
25727 (iwmmxt_textrmw): Likewise.
25728 (iwmxxt_wshufh): Likewise.
25729 (eqv8qi3): Likewise.
25730 (eqv4hi3): Likewise.
25731 (eqv2si3): Likewise.
25732 (gtuv8qi3): Likewise.
25733 (gtuv4hi3): Likewise.
25734 (gtuv2si3): Likewise.
25735 (gtv8qi3): Likewise.
25736 (gtv4hi3): Likewise.
25737 (gtv2si3): Likewise.
25738 (smax<mode>3_iwmmxt): Likewise.
25739 (umax<mode>3_iwmmxt): Likewise.
25740 (smin<mode>3_iwmmxt): Likewise.
25741 (umin<mode>3_iwmmxt): Likewise.
25742 (iwmmxt_wpackhss): Likewise.
25743 (iwmmxt_wpackwss): Likewise.
25744 (iwmmxt_wpackdss): Likewise.
25745 (iwmmxt_wpackhus): Likewise.
25746 (iwmmxt_wpackwus): Likewise.
25747 (iwmmxt_wpackdus): Likewise.
25748 (iwmmxt_wunpckihb): Likewise.
25749 (iwmmxt_wunpckihh): Likewise.
25750 (iwmmxt_wunpckihw): Likewise.
25751 (iwmmxt_wunpckilb): Likewise.
25752 (iwmmxt_wunpckilh): Likewise.
25753 (iwmmxt_wunpckilw): Likewise.
25754 (iwmmxt_wunpckehub): Likewise.
25755 (iwmmxt_wunpckehuh): Likewise.
25756 (iwmmxt_wunpckehuw): Likewise.
25757 (iwmmxt_wunpckehsb): Likewise.
25758 (iwmmxt_wunpckehsh): Likewise.
25759 (iwmmxt_wunpckehsw): Likewise.
25760 (iwmmxt_wunpckelub): Likewise.
25761 (iwmmxt_wunpckeluh): Likewise.
25762 (iwmmxt_wunpckeluw): Likewise.
25763 (iwmmxt_wunpckelsb): Likewise.
25764 (iwmmxt_wunpckelsh): Likewise.
25765 (iwmmxt_wunpckelsw): Likewise.
25766 (ror<mode>3): Likewise.
25767 (ashr<mode>3_iwmmxt): Likewise.
25768 (lshr<mode>3_iwmmxt): Likewise.
25769 (ashl<mode>3_iwmmxt): Likewise.
25770 (ror<mode>3_di): Likewise.
25771 (ashr<mode>3_di): Likewise.
25772 (lshr<mode>3_di): Likewise.
25773 (ashl<mode>3_di): Likewise.
25774 (iwmmxt_wmadds): Likewise.
25775 (iwmmxt_wmaddu): Likewise.
25776 (iwmmxt_tmia): Likewise.
25777 (iwmmxt_tmiaph): Likewise.
25778 (iwmmxt_tmiabb): Likewise.
25779 (iwmmxt_tmiatb): Likewise.
25780 (iwmmxt_tmiabt): Likewise.
25781 (iwmmxt_tmiatt): Likewise.
25782 (iwmmxt_tmovmskb): Likewise.
25783 (iwmmxt_tmovmskh): Likewise.
25784 (iwmmxt_tmovmskw): Likewise.
25785 (iwmmxt_waccb): Likewise.
25786 (iwmmxt_wacch): Likewise.
25787 (iwmmxt_waccw): Likewise.
25788 (iwmmxt_waligni): Likewise.
25789 (iwmmxt_walignr): Likewise.
25790 (iwmmxt_walignr0): Likewise.
25791 (iwmmxt_walignr1): Likewise.
25792 (iwmmxt_walignr2): Likewise.
25793 (iwmmxt_walignr3): Likewise.
25794 (iwmmxt_wsadb): Likewise.
25795 (iwmmxt_wsadh): Likewise.
25796 (iwmmxt_wsadbz): Likewise.
25797 (iwmmxt_wsadhz): Likewise.
25798 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25799 (iwmmxt_wabsdiffb): Likewise.
25800 (iwmmxt_wabsdiffh): Likewise.
25801 (iwmmxt_wabsdiffw): Likewise.
25802 (iwmmxt_waddsubhx): Likewise
25803 (iwmmxt_wsubaddhx): Likewise.
25804 (addc<mode>3): Likewise.
25805 (iwmmxt_avg4): Likewise.
25806 (iwmmxt_avg4r): Likewise.
25807 (iwmmxt_wmaddsx): Likewise.
25808 (iwmmxt_wmaddux): Likewise.
25809 (iwmmxt_wmaddsn): Likewise.
25810 (iwmmxt_wmaddun): Likewise.
25811 (iwmmxt_wmulwsm): Likewise.
25812 (iwmmxt_wmulwum): Likewise.
25813 (iwmmxt_wmulsmr): Likewise.
25814 (iwmmxt_wmulumr): Likewise.
25815 (iwmmxt_wmulwsmr): Likewise.
25816 (iwmmxt_wmulwumr): Likewise.
25817 (iwmmxt_wmulwl): Likewise.
25818 (iwmmxt_wqmulm): Likewise.
25819 (iwmmxt_wqmulwm): Likewise.
25820 (iwmmxt_wqmulmr): Likewise.
25821 (iwmmxt_wqmulwmr): Likewise.
25822 (iwmmxt_waddbhusm): Likewise.
25823 (iwmmxt_waddbhusl): Likewise.
25824 (iwmmxt_wqmiabb): Likewise.
25825 (iwmmxt_wqmiabt): Likewise.
25826 (iwmmxt_wqmiatb): Likewise.
25827 (iwmmxt_wqmiatt): Likewise.
25828 (iwmmxt_wqmiabbn): Likewise.
25829 (iwmmxt_wqmiabtn): Likewise.
25830 (iwmmxt_wqmiatbn): Likewise.
25831 (iwmmxt_wqmiattn): Likewise.
25832 (iwmmxt_wmiabb): Likewise.
25833 (iwmmxt_wmiabt): Likewise.
25834 (iwmmxt_wmiatb): Likewise.
25835 (iwmmxt_wmiatt): Likewise.
25836 (iwmmxt_wmiabbn): Likewise.
25837 (iwmmxt_wmiabtn): Likewise.
25838 (iwmmxt_wmiatbn): Likewise.
25839 (iwmmxt_wmiattn): Likewise.
25840 (iwmmxt_wmiawbb): Likewise.
25841 (iwmmxt_wmiawbt): Likewise.
25842 (iwmmxt_wmiawtb): Likewise.
25843 (iwmmxt_wmiawtt): Likewise.
25844 (iwmmxt_wmiawbbn): Likewise.
25845 (iwmmxt_wmiawbtn): Likewise.
25846 (iwmmxt_wmiawtbn): Likewise.
25847 (iwmmxt_wmiawttn): Likewise.
25848 (iwmmxt_wmerge): Likewise.
25849 (iwmmxt_tandc<mode>3): Likewise.
25850 (iwmmxt_torc<mode>3): Likewise.
25851 (iwmmxt_torvsc<mode>3): Likewise.
25852 (iwmmxt_textrc<mode>3): Likewise.
25853 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25854 (wmmxt_pack): Likewise.
25855 (wmmxt_mult_c1): Likewise.
25856 (wmmxt_mult_c2): Likewise.
25857 (wmmxt_alu_c1): Likewise.
25858 (wmmxt_alu_c2): Likewise.
25859 (wmmxt_alu_c3): Likewise.
25860 (wmmxt_transfer_c1): Likewise.
25861 (wmmxt_transfer_c2): Likewise.
25862 (wmmxt_transfer_c3): Likewise.
25863 (marvell_f_iwmmxt_wstr): Likewise.
25864 (marvell_f_iwmmxt_wldr): Likewise.
25865
25866 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25867
25868 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25869
25870 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25871
25872 Revert:
25873 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25874 * lra-constraints.c (need_for_split_p): Check call used hard regs
25875 living through calls.
25876
25877 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25878 call used regs for call insn.
25879
25880 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25881
25882 PR target/57736
25883 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25884 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25885
25886 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25887
25888 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25889
25890 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25891
25892 * lra-constraints.c (need_for_split_p): Check call used hard regs
25893 living through calls.
25894
25895 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25896
25897 PR target/57744
25898 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25899 to tie with any other modes. Eliminate Altivec vector mode tests,
25900 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25901 code, to return 0 if testing MODE2 for a condition, if we've
25902 already tested MODE1 for the same condition.
25903
25904 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25905
25906 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25907 layout.
25908
25909 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25910
25911 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25912 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25913
25914 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25915
25916 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25917 Define.
25918 (aarch64_symbolic_constant_p): Remove.
25919 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25920 static. Fix line length and white space.
25921 (aarch64_symbolic_constant_p): Remove.
25922 * config/aarch64/predicates.md (aarch64_valid_symref):
25923 Use aarch64_classify_symbol_expression.
25924
25925 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25926
25927 * config/arm/constraints.md (Ts): New constraint.
25928 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25929 16-bit encodings.
25930 (compare_scc): Use "Ts" constraint for operand 0.
25931 (ior_scc_scc): Likewise.
25932 (and_scc_scc): Likewise.
25933 (and_scc_scc_nodom): Likewise.
25934 (ior_scc_scc_cmp): Likewise for operand 7.
25935 (and_scc_scc_cmp): Likewise.
25936 * config/arm/thumb2.md (thumb2_movsi_insn):
25937 Add alternatives for 16-bit encodings.
25938 (thumb2_movhi_insn): Likewise.
25939 (thumb2_movsicc_insn): Likewise.
25940 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25941 (thumb2_negscc): Use "Ts" constraint.
25942 Move mvn instruction outside cond_exec block.
25943 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25944 for 16-bit encodings.
25945
25946 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25947
25948 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25949 encoding.
25950 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25951 (mulsi3subsi): Likewise.
25952 (mulsidi3adddi): Likewise.
25953 (mulsidi3_v6): Likewise.
25954 (umulsidi3_v6): Likewise.
25955 (umulsidi3adddi_v6): Likewise.
25956 (smulsi3_highpart_v6): Likewise.
25957 (umulsi3_highpart_v6): Likewise.
25958 (mulhisi3tb): Likewise.
25959 (mulhisi3bt): Likewise.
25960 (mulhisi3tt): Likewise.
25961 (maddhisi4): Likewise.
25962 (maddhisi4tb): Likewise.
25963 (maddhisi4tt): Likewise.
25964 (maddhidi4): Likewise.
25965 (maddhidi4tb): Likewise.
25966 (maddhidi4tt): Likewise.
25967 (zeroextractsi_compare0_scratch): Likewise.
25968 (insv_zero): Likewise.
25969 (insv_t2): Likewise.
25970 (anddi_notzesidi_di): Likewise.
25971 (anddi_notsesidi_di): Likewise.
25972 (andsi_notsi_si): Likewise.
25973 (iordi_zesidi_di): Likewise.
25974 (xordi_zesidi_di): Likewise.
25975 (andsi_iorsi3_notsi): Likewise.
25976 (smax_0): Likewise.
25977 (smax_m1): Likewise.
25978 (smin_0): Likewise.
25979 (not_shiftsi): Likewise.
25980 (unaligned_loadsi): Likewise.
25981 (unaligned_loadhis): Likewise.
25982 (unaligned_loadhiu): Likewise.
25983 (unaligned_storesi): Likewise.
25984 (unaligned_storehi): Likewise.
25985 (extv_reg): Likewise.
25986 (extzv_t2): Likewise.
25987 (divsi3): Likewise.
25988 (udivsi3): Likewise.
25989 (arm_zero_extendhisi2addsi): Likewise.
25990 (arm_zero_extendqisi2addsi): Likewise.
25991 (compareqi_eq0): Likewise.
25992 (arm_extendhisi2_v6): Likewise.
25993 (arm_extendqisi2addsi): Likewise.
25994 (arm_movt): Likewise.
25995 (thumb2_ldrd): Likewise.
25996 (thumb2_ldrd_base): Likewise.
25997 (thumb2_ldrd_base_neg): Likewise.
25998 (thumb2_strd): Likewise.
25999 (thumb2_strd_base): Likewise.
26000 (thumb2_strd_base_neg): Likewise.
26001 (arm_negsi2): Add alternative for 16-bit encoding.
26002 (arm_one_cmplsi2): Likewise.
26003
26004 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26005
26006 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
26007 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
26008 (movdfcc): Likewise.
26009 * config/arm/vfp.md (*thumb2_movsf_vfp):
26010 Disable predication for arm_restrict_it.
26011 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
26012 (*thumb2_movdfcc_vfp): Likewise.
26013 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
26014 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
26015 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
26016 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
26017 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
26018 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
26019 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
26020 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
26021 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
26022 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
26023 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
26024 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
26025 Disable predication for arm_restrict_it.
26026
26027 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
26028
26029 * config/i386/bmiintrin.h (_bextr_u32): New.
26030 (_bextr_u64): Ditto.
26031
26032 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
26033
26034 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26035 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26036 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26037 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26038 * config/mips/n32-elf.h: ...this new file.
26039
26040 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
26041
26042 PR target/57224
26043 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26044 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26045
26046 2013-06-27 Catherine Moore <clm@codesourcery.com>
26047
26048 * config/mips/mips-tables.opt: Regenerate.
26049 * config/mips/mips-cpus.def: Add m14ke and m14kec.
26050 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26051 * doc/invoke.texi: Add -m14kc.
26052
26053 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26054
26055 PR target/57623
26056 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26057 constraints of operand 1 and 2.
26058
26059 PR target/57623
26060 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26061 to match RTL canonicalization. Swap predicates and
26062 constraints of operand 1 and 2.
26063
26064 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
26065
26066 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26067 Process OP_INOUT regs for splitting too.
26068
26069 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26070
26071 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26072 decl before the loop, initialize to NULL.
26073 (vectorizable_load): Initialize ptr_incr to NULL.
26074
26075 2013-06-27 Martin Jambor <mjambor@suse.cz>
26076
26077 PR lto/57208
26078 * ipa-ref.h (ipa_maybe_record_reference): Declare.
26079 * ipa-ref.c (ipa_maybe_record_reference): New function.
26080 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26081 * ipa-cp.c (create_specialized_node): Record potential references from
26082 aggvals.
26083 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26084
26085 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26086
26087 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26088 parameter 'mode' of type 'enum machine_mode mode'; change to pass
26089 'mode' to force_reg.
26090 (aarch64_add_offset): Update calls to aarch64_force_temporary.
26091 (aarch64_expand_mov_immediate): Likewise.
26092
26093 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26094
26095 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26096 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26097
26098 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26099
26100 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26101 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26102 (struct machine_function): Add tbegin_p.
26103 (s390_canonicalize_comparison): Fold CC mode compares to
26104 conditional jump if possible.
26105 (s390_emit_jump): Return the emitted jump.
26106 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26107 Handle CCRAWmode compares.
26108 (s390_option_override): Default to -mhtm if available.
26109 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26110 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26111 FPRs instead of df_regs_ever_live_p.
26112 (s390_optimize_nonescaping_tx): New function.
26113 (s390_init_frame_layout): Extend clobbered_regs array to cover
26114 FPRs as well.
26115 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26116 (s390_expand_tbegin): New function.
26117 (enum s390_builtin): New enum definition.
26118 (code_for_builtin): New array definition.
26119 (s390_init_builtins): New function.
26120 (s390_expand_builtin): New function.
26121 (TARGET_INIT_BUILTINS): Define.
26122 (TARGET_EXPAND_BUILTIN): Define.
26123 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26124 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26125 (s390_alc_comparison): Likewise.
26126 * config/s390/s390-modes.def: Add CCRAWmode.
26127 * config/s390/s390.h (processor_flags): Add PF_TX.
26128 (TARGET_CPU_HTM): Define macro.
26129 (TARGET_HTM): Define macro.
26130 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26131 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26132 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26133 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26134 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26135 (TBEGIN_MASK, TBEGINC_MASK): New constants.
26136 ("*cc_to_int"): Move up.
26137 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26138 constants other than 0.
26139 ("*ccraw_to_int"): New insn and splitter definition.
26140 ("tbegin", "tbegin_nofloat", "tbegin_retry")
26141 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26142 ("tx_assist"): New expander.
26143 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26144 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26145 * config/s390/s390.opt: Add -mhtm option.
26146 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26147 * config/s390/htmxlintrin.h: New file.
26148 * config/s390/htmintrin.h: New file.
26149 * config/s390/s390intrin.h: New file.
26150 * doc/extend.texi: Document htm builtins.
26151 * config.gcc: Add the new header files to extra_headers.
26152
26153 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
26154
26155 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26156 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26157
26158 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26159 Pat Haugen <pthaugen@us.ibm.com>
26160 Peter Bergner <bergner@vnet.ibm.com>
26161
26162 * config/rs6000/power8.md: New.
26163 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26164 setting for power8 entry.
26165 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26166 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26167 test for Power4/Power5 only.
26168 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26169 support.
26170 (force_new_group): Adjust comment.
26171 * config/rs6000/rs6000.md: Include power8.md.
26172
26173 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
26174
26175 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26176 * config/arm/arm-protos.h (arm_max_conditional_execute): New
26177 declaration.
26178 (tune_params): Update comment.
26179 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26180 (arm_max_conditional_execute): New function.
26181 (thumb2_final_prescan_insn): Use max_insn_skipped and
26182 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26183
26184 2013-06-25 Jakub Jelinek <jakub@redhat.com>
26185
26186 PR tree-optimization/57705
26187 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26188 SSA_NAME step, provided that it is not defined inside the loop.
26189 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26190 (get_initial_def_for_induction): Handle SSA_NAME IV step.
26191
26192 2013-06-25 Martin Jambor <mjambor@suse.cz>
26193
26194 PR middle-end/57670
26195 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26196 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26197 calls in the dump.
26198 (ipa_note_param_call): Initialize member_ptr flag.
26199 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26200 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26201 (ipa_write_indirect_edge_info): Stream member_ptr flag.
26202 (ipa_read_indirect_edge_info): Likewise.
26203
26204 2013-06-25 Richard Biener <rguenther@suse.de>
26205
26206 PR middle-end/56977
26207 * passes.c (init_optimization_passes): Move pass_fold_builtins
26208 and pass_dce earlier with -Og.
26209
26210 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
26211
26212 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26213 <BIT_FIELD_REF>: Remove trailing TAB.
26214 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26215 remove blank line.
26216
26217 2013-06-24 Martin Jambor <mjambor@suse.cz>
26218
26219 PR tree-optimization/57358
26220 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26221 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26222 (ipa_analyze_params_uses): Generate pessimistic info when true.
26223
26224 2013-06-24 Martin Jambor <mjambor@suse.cz>
26225
26226 PR tree-optimization/57539
26227 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26228 global.inlined_to of the new node to it. All callers changed.
26229 * ipa-inline-transform.c (clone_inlined_nodes): New variable
26230 inlining_into, pass it to cgraph_clone_node.
26231 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26232 ipa_free_edge_args_substructures.
26233 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26234 rdesc linked list. Do not assert rdesc edges have inlined caller.
26235 Assert we have found an rdesc in the rdesc list.
26236
26237 2013-06-24 Richard Biener <rguenther@suse.de>
26238
26239 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26240 (pointer_set_lookup): Declare.
26241 (class pointer_map): New template class implementing a
26242 generic pointer to T map.
26243 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26244 pointer_map<T>::contains, pointer_map<T>::insert,
26245 pointer_map<T>::traverse): New functions.
26246 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26247 (pointer_set_lookup): New function.
26248 (pointer_set_contains): Use pointer_set_lookup.
26249 (pointer_set_insert): Likewise.
26250 (insert_aux): Remove.
26251 (struct pointer_map_t): Embed a pointer_set_t.
26252 (pointer_map_create): Adjust.
26253 (pointer_map_destroy): Likewise.
26254 (pointer_map_contains): Likewise.
26255 (pointer_map_insert): Likewise.
26256 (pointer_map_traverse): Likewise.
26257 * tree-streamer.h (struct streamer_tree_cache_d): Use a
26258 pointer_map<unsigned> instead of a pointer_map_t.
26259 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26260 (streamer_tree_cache_lookup): Likewise.
26261 (streamer_tree_cache_create): Likewise.
26262 (streamer_tree_cache_delete): Likewise.
26263 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26264 pointer_map<unsigned> instead of a pointer_map_t.
26265 (lto_init_tree_ref_encoder): Adjust.
26266 (lto_destroy_tree_ref_encoder): Likewise.
26267 * lto-section-out.c (lto_output_decl_index): Likewise.
26268 (lto_record_function_out_decl_state): Likewise.
26269 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26270
26271 2013-06-24 Richard Biener <rguenther@suse.de>
26272
26273 PR tree-optimization/57488
26274 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26275
26276 2013-06-24 Alan Modra <amodra@gmail.com>
26277
26278 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26279 (gen_easy_altivec_constant): Likewise.
26280 * config/rs6000/predicates.md (easy_vector_constant_add_self,
26281 easy_vector_constant_msb): Likewise.
26282
26283 2013-06-23 Jakub Jelinek <jakub@redhat.com>
26284
26285 PR target/57688
26286 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26287 add missing return true.
26288
26289 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
26290
26291 PR target/52483
26292 * config/sh/predicates.md (general_extend_operand): Invoke
26293 general_movsrc_operand for memory operands.
26294 (general_movsrc_operand): Allow reg+reg addressing, do not use
26295 general_operand for memory operands.
26296
26297 2013-06-23 Sriraman Tallam <tmsriram@google.com>
26298
26299 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
26300 when current target options does not apply.
26301 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26302 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26303 * config/i386/bmiintrin.h: Pass appropriate target
26304 attributes to header.
26305 * config/i386/mmintrin.h: Ditto.
26306 * config/i386/nmmintrin.h: Ditto.
26307 * config/i386/avx2intrin.h: Ditto.
26308 * config/i386/fxsrintrin.h: Ditto.
26309 * config/i386/tbmintrin.h: Ditto.
26310 * config/i386/xsaveintrin.h: Ditto.
26311 * config/i386/f16cintrin.h: Ditto.
26312 * config/i386/xtestintrin.h: Ditto.
26313 * config/i386/xsaveoptintrin.h: Ditto.
26314 * config/i386/bmi2intrin.h: Ditto.
26315 * config/i386/lzcntintrin.h: Ditto.
26316 * config/i386/smmintrin.h: Ditto.
26317 * config/i386/wmmintrin.h: Ditto.
26318 * config/i386/x86intrin.h: Remove all header include guards.
26319 * config/i386/prfchwintrin.h: Ditto.
26320 * config/i386/pmmintrin.h: Ditto.
26321 * config/i386/tmmintrin.h: Ditto.
26322 * config/i386/xmmintrin.h: Ditto.
26323 * config/i386/popcntintrin.h: Ditto.
26324 * config/i386/rdseedintrin.h: Ditto.
26325 * config/i386/ammintrin.h: Ditto.
26326 * config/i386/emmintrin.h: Ditto.
26327 * config/i386/immintrin.h: Remove all header include guards.
26328 * config/i386/fma4intrin.h: Ditto.
26329 * config/i386/lwpintrin.h: Ditto.
26330 * config/i386/xopintrin.h: Ditto.
26331 * config/i386/ia32intrin.h: Ditto.
26332 * config/i386/avxintrin.h: Ditto.
26333 * config/i386/rtmintrin.h: Ditto.
26334 * config/i386/fmaintrin.h: Ditto.
26335 * config/i386/mm3dnow.h: Ditto.
26336
26337 2013-06-22 Sriraman Tallam <tmsriram@google.com>
26338
26339 * common/config/i386/i386-common.c: Handle LZCNT.
26340
26341 2013-06-22 Andi Kleen <ak@linux.intel.com>
26342
26343 * doc/extend.texi: Use __atomic_store_n instead of
26344 __atomic_store in HLE example.
26345
26346 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
26347
26348 * config/sh/sh.c: Remove <cstdlib> workaround.
26349
26350 2013-06-21 Andi Kleen <ak@linux.intel.com>
26351
26352 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
26353
26354 2013-06-21 Andi Kleen <ak@linux.intel.com>
26355
26356 * doc/extend.texi: Document that __atomic_clear and
26357 __atomic_test_and_set should only be used with bool.
26358
26359 2013-06-20 Jan Hubicka <jh@suse.cz>
26360
26361 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26362 types_same_for_odr.
26363 * tree.c (decls_same_for_odr): New function.
26364 (same_for_edr): New function.
26365 (types_same_for_odr): New function.
26366 (get_binfo_at_offset): Use it.
26367 * tree.h (types_same_for_odr): Declare.
26368
26369 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
26370 Jason Merrill <jason@redhat.com>
26371
26372 * system.h: Include <cstdlib> as well as <stdlib.h>.
26373
26374 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
26375
26376 PR target/57655
26377 * config/i386/i386.c (construct_container): Report error if
26378 long double is used with disabled x87 float returns.
26379
26380 2013-06-20 Jan Hubicka <jh@suse.cz>
26381
26382 * lto-cgraph.c (input_symtab): Do not set cgraph state.
26383
26384 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
26385
26386 PR rtl-optimization/57425
26387 PR rtl-optimization/57569
26388 * alias.c (write_dependence_p): Remove parameters mem_mode and
26389 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
26390 Changed all callers.
26391 (canon_anti_dependence): Get comments and semantics in sync.
26392 Add parameter mem_canonicalized. Changed all callers.
26393 * rtl.h (canon_anti_dependence): Update prototype.
26394
26395 2013-06-20 Richard Biener <rguenther@suse.de>
26396
26397 * data-streamer-in.c (streamer_read_uhwi): Optimize single
26398 byte case, inline streamer_read_uchar and defer section
26399 overrun check.
26400
26401 2013-06-20 Richard Biener <rguenther@suse.de>
26402
26403 PR tree-optimization/57584
26404 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26405 SSA names into the expanded expression that take part in
26406 abnormal coalescing.
26407
26408 2013-06-19 Sharad Singhai <singhai@google.com>
26409
26410 * gcov.c (print_usage): Handle new option.
26411 (process_args): Ditto.
26412 (get_gcov_intermediate_filename): New function.
26413 (output_intermediate_file): New function.
26414 (output_gcov_file): New function
26415 (generate_results): Handle new option.
26416 (release_function): Relase demangled name.
26417 (read_graph_file): Handle demangled name.
26418 (output_lines): Ditto.
26419 * doc/gcov.texi: Document gcov intermediate format.
26420
26421 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
26422
26423 PR bootstrap/57604
26424 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26425 (lra_emit_add): Use the functions. Add comment about Y as an
26426 address segment.
26427
26428 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
26429
26430 PR driver/57652
26431 * collect2.c (collect_atexit): New.
26432 (collect_exit): Delete.
26433 (main): Register collect_atexit with atexit.
26434 (collect_wait): Change collect_exit to exit.
26435 (do_wait): Same.
26436 * collect2.h (collect_exit): Delete.
26437 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26438
26439 2013-06-19 Wei Mi <wmi@google.com>
26440
26441 PR rtl-optimization/57518
26442 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26443 if regno is used in paradoxical subreg.
26444 (update_equiv_regs): Check pdx_subregs[regno] before
26445 set a reg to be equivalent with a mem.
26446
26447 2013-06-19 Matthias Klose <doko@ubuntu.com>
26448
26449 PR driver/57651
26450 * file-find.h (find_a_file): Add a mode parameter.
26451 * file-find.c (find_a_file): Likewise.
26452 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26453 with X_OK for the executables.
26454 * collect2.c (main): Call find_a_file with X_OK.
26455
26456 2013-06-19 Steve Ellcey <sellcey@mips.com>
26457
26458 PR target/56942
26459 * config/mips/mips.md (casesi_internal_mips16_<mode>):
26460 Use NEXT_INSN instead of next_real_insn.
26461
26462 2013-06-19 Jan Hubicka <jh@suse.cz>
26463
26464 * cgraph.h (const_value_known_p): Replace by ...
26465 (ctor_for_folding): .. this one.
26466 * cgraphunit.c (process_function_and_variable_attributes): Use it.
26467 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26468 * expr.c (expand_expr_real_1): Likewise.
26469 (string_constant): Likewise.
26470 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26471 * ipa.c (process_references): Likewise.
26472 (symtab_remove_unreachable_nodes): Likewise.
26473 * ipa-inline-analysis.c (param_change_prob): Likewise.
26474 * gimple-fold.c (canonicalize_constructor_val): Likewise.
26475 (get_base_constructor): Likwise.
26476 * varpool.c (varpool_remove_node): Likewise.
26477 (varpool_remove_initializer): LIkewise.
26478 (dump_varpool_node): LIkwise.
26479 (const_value_known_p): Rewrite to ...
26480 (ctor_for_folding): ... this one.
26481
26482 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26483
26484 PR driver/57651
26485 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26486 PERSONALITY in $PATH derived prefixes.
26487
26488 2013-06-19 Jeff Law <law@redhat.com>
26489
26490 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26491 in comment.
26492
26493 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26494 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26495 booleans.
26496
26497 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26498
26499 * config/arm/vfp.md: Move VFP instruction classification documentation
26500 to ...
26501 * config/arm/arm.md: ... here. Update instruction classification
26502 documentation.
26503
26504 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26505
26506 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26507 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26508 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26509
26510 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26511
26512 PR target/57609
26513 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26514 with NEXT_INSN. Use tablejump_p to check for jump table data
26515 insns.
26516
26517 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26518
26519 PR c++/56544
26520 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26521 that now in C++ the value is correct per the C++ standards.
26522
26523 2013-06-19 Richard Biener <rguenther@suse.de>
26524
26525 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26526 for global context.
26527
26528 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26529
26530 Revert:
26531 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26532
26533 PR target/57609
26534 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26535 with next_active_insn.
26536
26537 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26538
26539 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26540 functions are inlined during failures to flag an error.
26541 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26542 in early inline pass.
26543
26544 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26545
26546 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26547 in comments.
26548
26549 2013-06-18 Julian Brown <julian@codesourcery.com>
26550
26551 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26552 Permit virtual register pre-reload if !strict.
26553 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26554 change.
26555 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26556 prototype.
26557 * config/arm/neon.md (movmisalign<mode>): Use
26558 neon_perm_struct_or_reg_operand instead of
26559 neon_struct_or_register_operand.
26560 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26561 neon_permissive_struct_operand instead of neon_struct_operand.
26562 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26563 neon_vector_mem_operand.
26564 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26565 neon_vector_mem_operand.
26566 (neon_permissive_struct_operand): New.
26567 (neon_struct_or_register_operand): Rename to...
26568 (neon_perm_struct_or_reg_operand): This. Adjust call to
26569 neon_vector_mem_operand.
26570
26571 2013-06-18 Richard Biener <rguenther@suse.de>
26572
26573 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26574 * lto-streamer.h: Include pointer-set.h.
26575 (struct lto_decl_slot): Remove.
26576 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26577 Remove next_index entry.
26578 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26579 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26580 (lto_init_tree_ref_encoder): Adjust.
26581 (lto_destroy_tree_ref_encoder): Likewise.
26582 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26583 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26584 (lto_output_decl_index): Adjust.
26585 (lto_new_out_decl_state): Likewise.
26586 (lto_record_function_out_decl_state): Likewise.
26587 * lto-streamer-out.c (copy_function): Likewise.
26588
26589 2013-06-18 Richard Biener <rguenther@suse.de>
26590
26591 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26592 * cgraphunit.c: Include cfgloop.h.
26593 (init_lowered_empty_function): Initialize the loop tree.
26594 (assemble_thunk): Insert new BBs into loops.
26595
26596 2013-06-18 Richard Biener <rguenther@suse.de>
26597
26598 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26599 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26600 the map from cache entry to cache index optional.
26601 (streamer_tree_cache_replace_tree): Adjust accordingly.
26602 (streamer_tree_cache_append): Likewise.
26603 (streamer_tree_cache_delete): Likewise.
26604 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26605 streamer cache map from cache entry to cache index.
26606 * lto-streamer-out.c (create_output_block): Adjust.
26607
26608 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26609
26610 * config/arm/arm.md (attribute "insn"): Move multiplication and
26611 division attributes to...
26612 (attribute "type"): ... here. Remove mult.
26613 (attribute "mul32"): New attribute.
26614 (attribute "mul64"): Add umaal.
26615 (*arm_mulsi3): Update attributes.
26616 (*arm_mulsi3_v6): Likewise.
26617 (*thumb_mulsi3): Likewise.
26618 (*thumb_mulsi3_v6): Likewise.
26619 (*mulsi3_compare0): Likewise.
26620 (*mulsi3_compare0_v6): Likewise.
26621 (*mulsi_compare0_scratch): Likewise.
26622 (*mulsi_compare0_scratch_v6): Likewise.
26623 (*mulsi3addsi): Likewise.
26624 (*mulsi3addsi_v6): Likewise.
26625 (*mulsi3addsi_compare0): Likewise.
26626 (*mulsi3addsi_compare0_v6): Likewise.
26627 (*mulsi3addsi_compare0_scratch): Likewise.
26628 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26629 (*mulsi3subsi): Likewise.
26630 (*mulsidi3adddi): Likewise.
26631 (*mulsi3addsi_v6): Likewise.
26632 (*mulsidi3adddi_v6): Likewise.
26633 (*mulsidi3_nov6): Likewise.
26634 (*mulsidi3_v6): Likewise.
26635 (*umulsidi3_nov6): Likewise.
26636 (*umulsidi3_v6): Likewise.
26637 (*umulsidi3adddi): Likewise.
26638 (*umulsidi3adddi_v6): Likewise.
26639 (*smulsi3_highpart_nov6): Likewise.
26640 (*smulsi3_highpart_v6): Likewise.
26641 (*umulsi3_highpart_nov6): Likewise.
26642 (*umulsi3_highpart_v6): Likewise.
26643 (mulhisi3): Likewise.
26644 (*mulhisi3tb): Likewise.
26645 (*mulhisi3bt): Likewise.
26646 (*mulhisi3tt): Likewise.
26647 (maddhisi4): Likewise.
26648 (*maddhisi4tb): Likewise.
26649 (*maddhisi4tt): Likewise.
26650 (maddhidi4): Likewise.
26651 (*maddhidi4tb): Likewise.
26652 (*maddhidi4tt): Likewise.
26653 (divsi3): Likewise.
26654 (udivsi3): Likewise.
26655 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26656 (thumb2_mulsi_short_compare0): Likewise.
26657 (thumb2_mulsi_short_compare0_scratch): Likewise.
26658 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26659 (1020mult2): Likewise.
26660 (1020mult3): Likewise.
26661 (1020mult4): Likewise.
26662 (1020mult5): Likewise.
26663 (1020mult6): Likewise.
26664 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26665 change.
26666 (cortex_a15_mult64): Likewise.
26667 (cortex_a15_sdiv): Likewise.
26668 (cortex_a15_udiv): Likewise.
26669 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26670 (mult2): Likewise.
26671 (mult3): Likewise.
26672 (mult4): Likewise.
26673 (mult5): Likewise.
26674 (mult6): Likewise.
26675 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26676 (pj4_ir_div): Likewise.
26677 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26678 (11_mult2): Likewise.
26679 (11_mult3): Likewise.
26680 (11_mult4): Likewise.
26681 (11_mult5): Likewise.
26682 (11_mult6): Likewise.
26683 (11_mult7): Likewise.
26684 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26685 (cortex_a8_mla): Likewise.
26686 (cortex_a8_mull): Likewise.
26687 (cortex_a8_smulwy): Likewise.
26688 (cortex_a8_smlald): Likewise.
26689 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26690 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26691 (cortex_r4_mul_3): Likewise.
26692 (cortex_r4_mla_4): Likewise.
26693 (cortex_r4_mla_3): Likewise.
26694 (cortex_r4_smlald): Likewise.
26695 (cortex_r4_mull): Likewise.
26696 (cortex_r4_sdiv): Likewise.
26697 (cortex_r4_udiv): Likewise.
26698 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26699 (cortex_a7_idiv): Likewise.
26700 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26701 (9_mult2): Likewise.
26702 (9_mult3): Likewise.
26703 (9_mult4): Likewise.
26704 (9_mult5): Likewise.
26705 (9_mult6): Likewise.
26706 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26707 (cortex_a53_sdiv): Likewise.
26708 (cortex_a53_udiv): Likewise.
26709 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26710 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26711 (mp626_mult2): Likewise.
26712 (mp626_mult3): Likewise.
26713 (mp626_mult4): Likewise.
26714 * config/arm/fa526.md (526_mult1): Update attribute change.
26715 (526_mult2): Likewise.
26716 * config/arm/arm-generic.md (mult): Update attribute change.
26717 (mult_ldsched_strongarm): Likewise.
26718 (mult_ldsched): Likewise.
26719 (multi_cycle): Likewise.
26720 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26721 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26722 (606te_mult2): Likewise.
26723 (606te_mult3): Likewise.
26724 (606te_mult4): Likewise.
26725 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26726 (cortex_a9_mac16): Likewise.
26727 (cortex_a9_multiply): Likewise.
26728 (cortex_a9_mac): Likewise.
26729 (cortex_a9_multiply_long): Likewise.
26730 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26731 (626te_mult2): Likewise.
26732 (626te_mult3): Likewise.
26733 (626te_mult4): Likewise.
26734
26735 2013-06-18 Richard Biener <rguenther@suse.de>
26736
26737 PR lto/57334
26738 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26739
26740 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26741
26742 PR target/57609
26743 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26744 with next_active_insn.
26745
26746 2013-06-18 Alan Modra <amodra@gmail.com>
26747
26748 * config/rs6000/rs6000.h (enum data_align): New.
26749 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26750 (DATA_ABI_ALIGNMENT): Define.
26751 (CONSTANT_ALIGNMENT): Correct comment.
26752 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26753 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26754
26755 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26756
26757 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26758 ATTRIBUTE_UNUSED marking.
26759
26760 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26761
26762 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26763 alternative and update.
26764 (aarch64_dup_lanedi): Delete.
26765 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26766 * config/aarch64/aarch64-simd-builtins.def: Update.
26767
26768 2013-06-17 Richard Biener <rguenther@suse.de>
26769
26770 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26771 (lto_input_scc): Declare.
26772 (lto_input_tree_1): Likewise.
26773 (struct lto_stats_d): Add num_tree_bodies_output and
26774 num_pickle_refs_output.
26775 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26776 (lto_read_tree_1): Split out from ...
26777 (lto_read_tree): ... this.
26778 (lto_input_scc): New function.
26779 (lto_input_tree_1): Split out from ...
26780 (lto_input_tree): ... this. Handle LTO_tree_scc.
26781 (lto_data_in_create): Create the streamer cache without hashes.
26782 * lto-streamer-out.c (create_output_block): Create the streamer
26783 cache with hashes when not doing WPA.
26784 (lto_write_tree_1): Split out from ...
26785 (lto_write_tree): ... this.
26786 (get_symbol_initial_value): New function.
26787 (lto_output_tree_1): Split out from ...
26788 (lto_output_tree): ... this. Write trees as series of SCCs
26789 using a DFS walk via DFS_write_tree.
26790 (struct sccs, struct scc_entry): New types.
26791 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26792 (DFS_write_tree_body): New function.
26793 (DFS_write_tree): Likewise.
26794 (hash_tree): Likewise.
26795 (scc_entry_compare): Likewise.
26796 (hash_scc): Likewise.
26797 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26798 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26799 TREE_CHAIN as regular reference.
26800 (streamer_read_integer_cst): Remove.
26801 (streamer_get_pickled_tree): Adjust.
26802 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26803 of DECL_EXTERNALs in BLOCK_VARS for now.
26804 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26805 reference.
26806 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26807 Add hash value argument and record that if hashes are recorded
26808 in the cache.
26809 (streamer_tree_cache_insert_1): Adjust.
26810 (streamer_tree_cache_insert): Likewise.
26811 (streamer_tree_cache_insert_at): Rename to ...
26812 (streamer_tree_cache_replace_tree): ... this and adjust.
26813 (streamer_tree_cache_append): Adjust.
26814 (record_common_node): Likewise.
26815 (streamer_tree_cache_create): Add argument whether to
26816 record hash values together with trees.
26817 (streamer_tree_cache_delete): Adjust.
26818 * tree-streamer.h (struct streamer_tree_cache_d): Add
26819 vector of hashes.
26820 (streamer_read_integer_cst): Remove.
26821 (streamer_tree_cache_insert): Adjust.
26822 (streamer_tree_cache_append): Likewise.
26823 (streamer_tree_cache_insert_at): Rename to ...
26824 (streamer_tree_cache_replace_tree): ... this and adjust.
26825 (streamer_tree_cache_create): Add argument whether to record hashes.
26826 (streamer_tree_cache_get): Rename to ...
26827 (streamer_tree_cache_get_tree): ... this.
26828 (streamer_tree_cache_get_hash): New function.
26829 * tree.c (cache_integer_cst): New function.
26830 * tree.h (cache_integer_cst): Declare.
26831 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26832 * lto-symtab.c (lto_varpool_replace_node): Only release
26833 DECL_INITIAL of non-prevailing decls.
26834 * varpool.c (varpool_remove_initializer): Do not release
26835 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26836
26837 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26838
26839 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26840 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26841 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26842 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26843 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26844 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26845 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26846 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26847 instead of TARGET_64BIT.
26848 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26849 Require ISA_HAS_<D>DIV.
26850
26851 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26852
26853 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26854 (mips*-*-linux*): Move default with_llsc setting to where other
26855 defaults are set.
26856 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26857 with_arch block.
26858 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26859 Likewise. Remove default with_tune setting. Move default float
26860 setting to its own block. Handle with_llsc in the same block as above.
26861
26862 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26863
26864 PR rtl-optimization/57425
26865 PR rtl-optimization/57569
26866 * alias.c (write_dependence_p): Add new parameters mem_mode,
26867 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26868 Changed all callers.
26869 (canon_anti_dependence): New function.
26870 * cse.c (check_dependence): Use canon_anti_dependence.
26871 * cselib.c (cselib_invalidate_mem): Likewise.
26872 * rtl.h (canon_anti_dependence): Declare.
26873
26874 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26875
26876 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26877 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26878 ".set mips3" for 64-bit targets.
26879
26880 2013-06-15 Dehao Chen <dehao@google.com>
26881
26882 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26883 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26884 (gimple_check_call_args): Likewise.
26885 * value-prof.c (check_ic_target): Likewise.
26886 * ipa-inline.c (early_inliner): Likewise.
26887 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26888 * cgraph.c (cgraph_create_edge_1): Likewise.
26889 (cgraph_make_edge_direct): Likewise.
26890
26891 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26892
26893 PR target/57615
26894 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26895 rs6000_output_move_128bit to handle emitting quad memory
26896 operations. Set attribute length to 8 bytes.
26897
26898 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26899
26900 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26901 New pattern.
26902 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26903 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26904 (aarch64_<su>mlsl<mode>): Likewise.
26905
26906 2013-06-14 Mike Stump <mikestump@comcast.net>
26907
26908 * Makefile.in (TARGET_H): Add insn-codes.h.
26909
26910 2013-06-14 Alan Modra <amodra@gmail.com>
26911
26912 PR middle-end/57134
26913 PR middle-end/57586
26914 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26915 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26916 bitfield expansion when EXPAND_MEMORY.
26917 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26918
26919 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26920
26921 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26922 test for clearing quad memory on 32-bit later.
26923
26924 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26925
26926 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26927 (fold_negate_expr): Likewise.
26928 (fold_real_zero_addition_p): Handle vectors.
26929 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26930
26931 2013-06-14 Alan Modra <amodra@gmail.com>
26932
26933 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26934
26935 2013-06-13 Jan Hubicka <jh@suse.cz>
26936
26937 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26938 Local comdats are not externally visible.
26939 * symtab.c (dump_symtab_base): Dump externally visible.
26940 (verify_symtab_base): Verify back links in the symtab hash.
26941
26942 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26943
26944 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26945 CONVERT_EXPR as equal nodes.
26946
26947 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26948
26949 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26950
26951 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26952
26953 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26954 Generalize to complex and vector.
26955 * tree.c (build_all_ones_cst): New function.
26956 * tree.h (build_all_ones_cst): Declare it.
26957
26958 2013-06-13 Alan Modra <amodra@gmail.com>
26959
26960 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26961 * config/rs6000/rs6000.md (signbittf2): New insn.
26962 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26963 (abstf2_internal, cmptf_internal2): Likewise.
26964 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26965
26966 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26967 Pat Haugen <pthaugen@us.ibm.com>
26968 Peter Bergner <bergner@vnet.ibm.com>
26969
26970 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26971 power8 byte, half-word, and quad-word atomic instructions.
26972 (emit_store_conditional): Likewise.
26973 (rs6000_expand_atomic_compare_and_swap): Likewise.
26974 (rs6000_expand_atomic_op): Likewise.
26975
26976 * config/rs6000/sync.md (larx): Add new modes for power8.
26977 (stcx): Likewise.
26978 (AINT): New mode iterator to include TImode as well as normal
26979 integer modes on power8.
26980 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26981 that VSX registers are not considered. Use AINT mode iterator
26982 instead of INT1 to allow inclusion of quad word atomic operations
26983 on power8.
26984 (load_locked<mode>): Likewise.
26985 (store_conditional<mode>): Likewise.
26986 (atomic_compare_and_swap<mode>): Likewise.
26987 (atomic_exchange<mode>): Likewise.
26988 (atomic_nand<mode>): Likewise.
26989 (atomic_fetch_<fetchop_name><mode>): Likewise.
26990 (atomic_nand_fetch<mode>): Likewise.
26991 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26992 each type.
26993 (ATOMIC): On power8, add QImode, HImode modes.
26994 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26995 modes that promote to SImode.
26996 (load_lockedti): Convert TImode arguments to PTImode, so that we
26997 get a guaranteed even/odd register pair.
26998 (load_lockedpti): Likewise.
26999 (store_conditionalti): Likewise.
27000 (store_conditionalpti): Likewise.
27001
27002 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
27003 atomic load/store instructions.
27004 (HSI): Likewise.
27005
27006 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
27007
27008 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
27009 loads.
27010 (insn_count): New attribute, with most cases extracted from...
27011 (length): ...here. Redefine most cases in terms of insn_count.
27012 (single_insn): Delete.
27013 (can_delay): Use insn_count to check for single instructions.
27014 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
27015 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
27016 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
27017 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
27018 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
27019 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
27020 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
27021 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
27022 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
27023 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
27024 rather than "length".
27025 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
27026 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
27027 Use "insn_count" rather than "length".
27028 * config/mips/mips-dsp.md
27029 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27030 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27031 length attributes.
27032
27033 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
27034
27035 PR tree-optimization/57361
27036 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27037
27038 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
27039
27040 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27041 to split.
27042 (aarch64_simd_combine<mode>): New instruction expansion.
27043 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27044 function prototype.
27045 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27046 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27047
27048 2013-06-12 Jan Hubicka <jh@suse.cz>
27049
27050 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27051 decl has when in streaming stage.
27052 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27053 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27054
27055 2013-06-12 Roland Stigge <stigge@antcom.de>
27056
27057 PR target/57578
27058 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27059
27060 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27061
27062 PR tree-optimization/57537
27063 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27064 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27065
27066 2013-06-12 Richard Biener <rguenther@suse.de>
27067
27068 * data-streamer.h (streamer_write_char_stream): CSE
27069 obs->current_pointer.
27070 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27071 streamer_write_char_stream manually and optimize the resulting loop.
27072 (streamer_write_hwi_stream): Likewise.
27073
27074 2013-06-12 Jan Hubicka <jh@suse.cz>
27075
27076 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27077 * cgraph.h (varpool_create_empty_node): Declare.
27078 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27079 duplicated nodes.
27080 * symtab.c (symtab_unregister_node): Be lax about missin entries
27081 in node hash.
27082 (symtab_get_node): Update comment.
27083 * varpool.c (varpool_create_empty_node): Break out from ...
27084 (varpool_node_for_decl): ... here.
27085 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27086
27087 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
27088
27089 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27090 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27091 part. Use straight-line flow at the end.
27092 <COMPONENT_REF>: Remove superfluous else.
27093 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27094
27095 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27096
27097 PR target/56564
27098 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27099 target hook even for !TREE_PUBLIC decls. If no resolution info
27100 is available, return false for common and external decls.
27101
27102 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27103
27104 * config/rl78/constraints.md (U): New constraint.
27105 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27106 valloc attribute.
27107
27108 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27109
27110 PR target/57589
27111 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27112 to allow returning address to AT_PLATFORM name.
27113
27114 2013-06-11 Jan Hubicka <jh@suse.cz>
27115
27116 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27117 * cgraph.h (symtab_node_base): Add weakref flag.
27118 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27119 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27120 (output_weakrefs): Use weakref flag.
27121 * fold-const.c (simple_operand_p): Handle WEAK.
27122 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27123 * ipa.c (varpool_externally_visible_p): Drop weakref.
27124 (function_and_variable_visibility): Update comment; fix weakref
27125 sanity checks; do not clear DECL_WEAK on them.
27126 * lto-cgraph.c (lto_output_node): update.
27127 (lto_output_varpool_node): Update.
27128 (input_overwrite_node): Update.
27129 (input_node): Update.
27130 (input_varpool_node): Update.
27131 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27132 (lto_symtab_merge_symbols): Add sanity check.
27133 (lto_symtab_prevailing_decl): Do not special case weakrefs.
27134 * passes.c (rest_of_decl_compilation): Set static flag, too.
27135 * symtab.c (dump_symtab_base): Dump weakref.
27136 (verify_symtab_base): Sanity check weakrefs.
27137 (symtab_make_decl_local): Remove duplicated code.
27138 (symtab_alias_ultimate_target): Simplify.
27139 * varpool.c (varpool_create_variable_alias): Set weakref flag.
27140
27141 2013-06-11 Tom de Vries <tom@codesourcery.com>
27142
27143 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
27144 sequence_vect == NULL.
27145
27146 2013-06-11 DJ Delorie <dj@redhat.com>
27147
27148 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27149 (rl78_unwind_word_mode): New.
27150
27151 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27152
27153 * final.c (debug_prefix_maps): Make static.
27154
27155 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27156
27157 * function.c (initial_trampoline): Remove stray copy.
27158
27159 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
27160
27161 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27162
27163 2013-06-11 Martin Jambor <mjambor@suse.cz>
27164
27165 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27166 within bounds at the beginning of the function.
27167
27168 2013-06-11 Alan Modra <amodra@gmail.com>
27169
27170 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
27171 reporting.
27172 (get_named_section): Don't NULL !DECL_P decl.
27173
27174 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
27175
27176 * doc/invoke.texi (core-avx2): Document.
27177 (slm): Likewise.
27178 (atom): Updated with MOVBE.
27179
27180 2013-06-11 Richard Biener <rguenther@suse.de>
27181
27182 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27183
27184 2013-06-11 Anton Blanchard <anton@samba.org>
27185
27186 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27187 correct shift value in little-endian mode.
27188
27189 2013-06-11 Jakub Jelinek <jakub@redhat.com>
27190
27191 PR target/56564
27192 * varasm.c (get_variable_align): Move #endif to the right place.
27193
27194 2013-06-10 Cary Coutant <ccoutant@google.com>
27195
27196 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27197 for hash so that hash table traversal order is deterministic.
27198
27199 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27200 Pat Haugen <pthaugen@us.ibm.com>
27201 Peter Bergner <bergner@vnet.ibm.com>
27202
27203 * config/rs6000/vector.md (GPR move splitter): Do not split moves
27204 of vectors in GPRS if they are direct moves or quad word load or
27205 store moves.
27206
27207 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27208 declaration.
27209 (direct_move_p): Likewise.
27210 (quad_load_store_p): Likewise.
27211
27212 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27213 classes into bins based on the physical register type.
27214 (reg_class_to_reg_type): Likewise.
27215 (IS_STD_REG_TYPE): Likewise.
27216 (IS_FP_VECT_REG_TYPE): Likewise.
27217 (reload_fpr_gpr): Arrays to determine what insn to use if we can
27218 use direct move instructions.
27219 (reload_gpr_vsx): Likewise.
27220 (reload_vsx_gpr): Likewise.
27221 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27222 information that is a simplification of register classes. Also
27223 precalculate direct move reload helpers.
27224 (direct_move_p): New function to return true if the operation can
27225 be done as a direct move instruciton.
27226 (quad_load_store_p): New function to return true if the operation
27227 is a quad memory operation.
27228 (rs6000_legitimize_address): If quad memory, only allow register
27229 indirect for TImode addresses.
27230 (rs6000_legitimate_address_p): Likewise.
27231 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27232 (rs6000_reload_register_type): Likewise.
27233 (register_to_reg_type): Return register type.
27234 (rs6000_secondary_reload_simple_move): New helper function for
27235 secondary reload and secondary memory needed to identify anything
27236 that is a simple move, and does not need reloading.
27237 (rs6000_secondary_reload_direct_move): New helper function for
27238 secondary reload to identify cases that can be done with several
27239 instructions via the direct move instructions.
27240 (rs6000_secondary_reload_move): New helper function for secondary
27241 reload to identify moves between register types that can be done.
27242 (rs6000_secondary_reload): Add support for quad memory operations
27243 and for direct move.
27244 (rs6000_secondary_memory_needed): Likewise.
27245 (rs6000_debug_secondary_memory_needed): Change argument names.
27246 (rs6000_output_move_128bit): New function to return the move to
27247 use for 128-bit moves, including knowing about the various
27248 limitations of quad memory operations.
27249
27250 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27251 memory operations. call rs6000_output_move_128bit for the actual
27252 instruciton(s) to generate.
27253 (vsx_movti_64bit): Likewise.
27254
27255 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27256 (UNSPEC_P8V_MTVSRWZ): Likewise.
27257 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27258 (UNSPEC_P8V_MTVSRD): Likewise.
27259 (UNSPEC_P8V_XXPERMDI): Likewise.
27260 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27261 (UNSPEC_FUSION_GPR): Likewise.
27262 (FMOVE128_GPR): New iterator for direct move.
27263 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27264 (f32_sv): Likewise.
27265 (f32_dm): Likewise.
27266 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27267 loads and direct move instructions.
27268 (zero_extendsidi2_lfiwzx): Likewise.
27269 (extendsidi2_lfiwax): Likewise.
27270 (extendsidi2_nocell): Likewise.
27271 (floatsi<mode>2_lfiwax): Likewise.
27272 (lfiwax): Likewise.
27273 (floatunssi<mode>2_lfiwzx): Likewise.
27274 (lfiwzx): Likewise.
27275 (fix_trunc<mode>_stfiwx): Likewise.
27276 (fixuns_trunc<mode>_stfiwx): Likewise.
27277 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27278 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27279 (parity<mode>2_cmpb): Set length/type attr.
27280 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27281 for 'mr.' to fast_compare.
27282 (bpermd_<mode>): Change type attr to popcnt.
27283 (p8_fmrgow_<mode>): New insns for power8 direct move support.
27284 (p8_mtvsrwz_1): Likewise.
27285 (p8_mtvsrwz_2): Likewise.
27286 (reload_fpr_from_gpr<mode>): Likewise.
27287 (p8_mtvsrd_1): Likewise.
27288 (p8_mtvsrd_2): Likewise.
27289 (p8_xxpermdi_<mode>): Likewise.
27290 (reload_vsx_from_gpr<mode>): Likewise.
27291 (reload_vsx_from_gprsf): Likewise.
27292 (p8_mfvsrd_3_<mode>): LIkewise.
27293 (reload_gpr_from_vsx<mode>): Likewise.
27294 (reload_gpr_from_vsxsf): Likewise.
27295 (p8_mfvsrd_4_disf): Likewise.
27296 (multi-word GPR splits): Do not split direct moves or quad memory
27297 operations.
27298
27299 2013-06-10 David Malcolm <dmalcolm@redhat.com>
27300
27301 * tree-into-ssa.c (interesting_blocks): Make static.
27302
27303 2013-06-10 Jakub Jelinek <jakub@redhat.com>
27304
27305 PR target/56564
27306 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27307 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27308 Use DATA_ABI_ALIGNMENT for that case instead if defined.
27309 (get_variable_align): New function.
27310 (get_variable_section, emit_bss, emit_common,
27311 assemble_variable_contents, place_block_symbol): Use
27312 get_variable_align instead of DECL_ALIGN.
27313 (assemble_noswitch_variable): Add align argument, use it
27314 instead of DECL_ALIGN.
27315 (assemble_variable): Adjust caller. Use get_variable_align
27316 instead of DECL_ALIGN.
27317 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27318 caller.
27319 (DATA_ABI_ALIGNMENT): Define.
27320 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27321 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
27322 opt is false, only return the psABI mandated alignment increase.
27323 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27324 (DATA_ABI_ALIGNMENT): ... this.
27325 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27326 (DATA_ABI_ALIGNMENT): ... this.
27327 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27328 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27329 (DATA_ABI_ALIGNMENT): ... this.
27330 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27331 * doc/tm.texi: Regenerated.
27332
27333 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
27334
27335 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27336 cmp_code to construct REG_EQUAL note.
27337
27338 2013-06-09 Jakub Jelinek <jakub@redhat.com>
27339
27340 PR target/57568
27341 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27342 that operands[2] doesn't overlap with operands[0].
27343
27344 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
27345 Jan Hubicka <jh@suse.cz>
27346
27347 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27348 hack to mark symbols as used.
27349
27350 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
27351
27352 PR rtl-optimization/57559
27353 * lra-constraints.c (process_alt_operands): Don't discourage
27354 memory with known offset for offsetable memory constraint.
27355 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27356
27357 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
27358
27359 * varasm.c (struct oc_local_state): Reorder fields.
27360 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27361 and adjust accordingly.
27362 (output_constructor): Reorder initialization code and adjust call to
27363 output_constructor_bitfield.
27364
27365 2013-06-07 Jan Hubicka <jh@suse.cz>
27366
27367 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27368
27369 2013-06-07 David Malcolm <dmalcolm@redhat.com>
27370
27371 * tree-object-size.c (unknown): Make const.
27372
27373 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27374
27375 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27376 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27377 for last alternative in the cpu_facility attribute.
27378
27379 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27380
27381 PR target/56315
27382 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27383 (xordi3): Change operand 2 constraint to arm_xordi_operand.
27384 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27385 * config/arm/constraints.md (Dg): New constraint.
27386 * config/arm/neon.md (xordi3_neon): Remove.
27387 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27388 * config/arm/predicates.md (arm_xordi_operand): New predicate.
27389
27390 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27391
27392 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27393 Clean up alternatives.
27394
27395 2013-06-07 Alan Modra <amodra@gmail.com>
27396
27397 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27398 va_list_gpr_size.
27399
27400 2013-06-07 Alan Modra <amodra@gmail.com>
27401
27402 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27403
27404 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27405
27406 * config/arm/constraints.md (Df): New constraint.
27407 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27408 Correct length attribute for last two alternatives.
27409
27410 2013-06-07 Alan Modra <amodra@gmail.com>
27411
27412 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27413 override user -mfp-in-toc.
27414 (offsettable_ok_by_alignment): Consider just the current access
27415 rather than the whole object, unless BLKmode. Handle
27416 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27417 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27418 for -mcmodel=medium.
27419 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27420 override user -mfp-in-toc or -msum-in-toc. Default to
27421 -mno-fp-in-toc for -mcmodel=medium.
27422
27423 2013-06-06 DJ Delorie <dj@redhat.com>
27424
27425 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27426 TARGET_VALID_POINTER_MODE.
27427
27428 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27429 Pat Haugen <pthaugen@us.ibm.com>
27430 Peter Bergner <bergner@vnet.ibm.com>
27431
27432 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27433 Document new power8 builtins.
27434
27435 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27436 condition code register, to allow 128-bit logical operations to be
27437 done in the VSX or GPR registers.
27438 (nor<mode>3): Use the canonical form for nor.
27439 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27440 vclz*, and vpopcnt* vector instructions.
27441 (nand<mode>3): Likewise.
27442 (orc<mode>3): Likewise.
27443 (clz<mode>2): LIkewise.
27444 (popcount<mode>2): Likewise.
27445
27446 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27447 that only the GPRs are recognized.
27448
27449 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27450 support for new power8 builtins.
27451
27452 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27453 builtin functions.
27454 (xscvdpspn): Likewise.
27455 (vclz): Likewise.
27456 (vclzb): Likewise.
27457 (vclzh): Likewise.
27458 (vclzw): Likewise.
27459 (vclzd): Likewise.
27460 (vpopcnt): Likewise.
27461 (vpopcntb): Likewise.
27462 (vpopcnth): Likewise.
27463 (vpopcntw): Likewise.
27464 (vpopcntd): Likewise.
27465 (vgbbd): Likewise.
27466 (vmrgew): Likewise.
27467 (vmrgow): Likewise.
27468 (eqv): Likewise.
27469 (eqv_v16qi3): Likewise.
27470 (eqv_v8hi3): Likewise.
27471 (eqv_v4si3): Likewise.
27472 (eqv_v2di3): Likewise.
27473 (eqv_v4sf3): Likewise.
27474 (eqv_v2df3): Likewise.
27475 (nand): Likewise.
27476 (nand_v16qi3): Likewise.
27477 (nand_v8hi3): Likewise.
27478 (nand_v4si3): Likewise.
27479 (nand_v2di3): Likewise.
27480 (nand_v4sf3): Likewise.
27481 (nand_v2df3): Likewise.
27482 (orc): Likewise.
27483 (orc_v16qi3): Likewise.
27484 (orc_v8hi3): Likewise.
27485 (orc_v4si3): Likewise.
27486 (orc_v2di3): Likewise.
27487 (orc_v4sf3): Likewise.
27488 (orc_v2df3): Likewise.
27489
27490 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27491 allow power8 quad mode in 64-bit.
27492 (rs6000_builtin_vectorized_function): Add support to vectorize
27493 ISA 2.07 count leading zeros, population count builtins.
27494 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27495 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27496 (builtin_function_type): Add vgbbd builtin function which takes an
27497 unsigned argument.
27498 (altivec_expand_vec_perm_const): Add support for new power8 merge
27499 instructions.
27500
27501 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27502 that does not include TImdoe for use with 32-bit.
27503 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27504 instructions.
27505 (UNSPEC_VSX_CVDPSPN): Likewise.
27506 (vsx_xscvdpspn): Likewise.
27507 (vsx_xscvspdpn): Likewise.
27508 (vsx_xscvdpspn_scalar): Likewise.
27509 (vsx_xscvspdpn_directmove): Likewise.
27510 (vsx_and<mode>3): Split logical operations into 32-bit and
27511 64-bit. Add support to do logical operations on TImode as well as
27512 VSX vector types. Allow logical operations to be done in either
27513 VSX registers or in general purpose registers in 64-bit mode. Add
27514 splitters if GPRs were used. For AND, add clobber of CCmode to
27515 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27516 encoding.
27517 (vsx_and<mode>3_32bit): Likewise.
27518 (vsx_and<mode>3_64bit): Likewise.
27519 (vsx_ior<mode>3): Likewise.
27520 (vsx_ior<mode>3_32bit): Likewise.
27521 (vsx_ior<mode>3_64bit): Likewise.
27522 (vsx_xor<mode>3): Likewise.
27523 (vsx_xor<mode>3_32bit): Likewise.
27524 (vsx_xor<mode>3_64bit): Likewise.
27525 (vsx_one_cmpl<mode>2): Likewise.
27526 (vsx_one_cmpl<mode>2_32bit): Likewise.
27527 (vsx_one_cmpl<mode>2_64bit): Likewise.
27528 (vsx_nor<mode>3): Likewise.
27529 (vsx_nor<mode>3_32bit): Likewise.
27530 (vsx_nor<mode>3_64bit): Likewise.
27531 (vsx_andc<mode>3): Likewise.
27532 (vsx_andc<mode>3_32bit): Likewise.
27533 (vsx_andc<mode>3_64bit): Likewise.
27534 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27535 and xxlorc instructions.
27536 (vsx_eqv<mode>3_64bit): Likewise.
27537 (vsx_nand<mode>3_32bit): Likewise.
27538 (vsx_nand<mode>3_64bit): Likewise.
27539 (vsx_orc<mode>3_32bit): Likewise.
27540 (vsx_orc<mode>3_64bit): Likewise.
27541
27542 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27543
27544 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27545 instruction.
27546 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27547 (p8_vmrgow): Likewise.
27548 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27549 GPRs to be split under VSX.
27550 (p8v_clz<mode>2): Add power8 count leading zero support.
27551 (p8v_popcount<mode>2): Add power8 population count support.
27552 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27553 support.
27554
27555 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27556 instruction.
27557
27558 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27559 builtin functions.
27560 (vec_nand): Likewise.
27561 (vec_vclz): Likewise.
27562 (vec_vclzb): Likewise.
27563 (vec_vclzd): Likewise.
27564 (vec_vclzh): Likewise.
27565 (vec_vclzw): Likewise.
27566 (vec_vgbbd): Likewise.
27567 (vec_vmrgew): Likewise.
27568 (vec_vmrgow): Likewise.
27569 (vec_vpopcnt): Likewise.
27570 (vec_vpopcntb): Likewise.
27571 (vec_vpopcntd): Likewise.
27572 (vec_vpopcnth): Likewise.
27573 (vec_vpopcntw): Likewise.
27574
27575 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27576
27577 PR rtl-optimization/57468
27578 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27579 spilled pseudos.
27580
27581 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27582
27583 PR rtl-optimization/57459
27584 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27585 type when setting live regs.
27586
27587 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27588
27589 * config/s390/s390.opt (mlra): New option.
27590 * config/s390/s390.c (s390_decompose_address): Check displacement
27591 for all registers for LRA.
27592 (s390_secondary_reload): Don't used secondary reloads for LRA.
27593 (s390_lra_p): New function.
27594 (TARGET_LRA_P): Define.
27595 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27596 of attribute cpu_facility to zarch for the last alternative.
27597 (*cmpmem_short): Ditto.
27598
27599 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27600
27601 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27602 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27603 (arm_expand_prologue): Likewise.
27604
27605 2013-06-06 Teresa Johnson <tejohnson@google.com>
27606
27607 PR c++/53743
27608 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27609 as this is now done by redirect_edge_and_branch_force.
27610 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27611 barriers, and fix interaction with splitting.
27612 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27613 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27614 reflect changes made in the routine.
27615 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27616 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27617 since this is called in cfglayout mode, and replace partition fixup
27618 with assert as that is now done by force_nonfallthru_and_redirect.
27619 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27620 already be marked with region crossing note.
27621 (insert_section_boundary_note): Make non-static, gate on flag
27622 has_bb_partition, rewrite to also check for multiple partitions.
27623 (rest_of_handle_reorder_blocks): Remove call to
27624 insert_section_boundary_note, now done later during free_cfg.
27625 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27626 * bb-reorder.h (insert_section_boundary_note): Declare.
27627 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27628 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27629 invoke insert_section_boundary_note.
27630 (try_redirect_by_replacing_jump): Remove unnecessary
27631 check for region crossing note.
27632 (fixup_partition_crossing): New function.
27633 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27634 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27635 in non-cfglayout mode.
27636 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27637 remove old code that tried to do this. Emit barrier correctly
27638 when we are in cfglayout mode.
27639 (last_bb_in_partition): New function.
27640 (rtl_split_edge): Correctly fixup partition boundaries.
27641 (commit_one_edge_insertion): Remove old code that tried to
27642 fixup region crossing edge since this is now handled in
27643 split_block, and set up insertion point correctly since
27644 block may now end in a jump.
27645 (verify_hot_cold_block_grouping): Guard against checking when not in
27646 linearized RTL mode.
27647 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27648 notes.
27649 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27650 rtl_verify_flow_info, so not called in cfglayout mode.
27651 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27652 (fixup_reorder_chain): Remove old code that attempted to fixup region
27653 crossing note as this is now handled in force_nonfallthru_and_redirect.
27654 (duplicate_insn_chain): Don't duplicate switch section notes.
27655 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27656 note.
27657 * basic-block.h (emit_barrier_after_bb): Declare.
27658
27659 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27660
27661 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27662 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27663 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27664
27665 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27666
27667 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27668 where appropriate.
27669 * config/arm/ldmstm.md: Regenerate.
27670
27671 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27672
27673 * config/arm/sync.md (atomic_loaddi_1):
27674 Disable predication for arm_restrict_it.
27675 (arm_load_exclusive<mode>): Likewise.
27676 (arm_load_exclusivesi): Likewise.
27677 (arm_load_exclusivedi): Likewise.
27678 (arm_load_acquire_exclusive<mode>): Likewise.
27679 (arm_load_acquire_exclusivesi): Likewise.
27680 (arm_load_acquire_exclusivedi): Likewise.
27681 (arm_store_exclusive<mode>): Likewise.
27682 (arm_store_exclusive<mode>): Likewise.
27683 (arm_store_release_exclusivedi): Likewise.
27684 (arm_store_release_exclusive<mode>): Likewise.
27685
27686 2013-06-06 Richard Biener <rguenther@suse.de>
27687
27688 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27689 after LTO_null.
27690 (lto_tag_is_tree_code_p): Adjust.
27691 (lto_tag_is_gimple_code_p): Likewise.
27692 (lto_gimple_code_to_tag): Likewise.
27693 (lto_tag_to_gimple_code): Likewise.
27694 (lto_tree_code_to_tag): Likewise.
27695 (lto_tag_to_tree_code): Likewise.
27696 * data-streamer.h (streamer_write_hwi_in_range): Use
27697 uhwi streaming to stream the normalized range.
27698 (streamer_read_hwi_in_range): Likewise.
27699
27700 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27701
27702 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27703 (predicable_short_it): Likewise.
27704 (predicated): Likewise.
27705 (enabled): Handle above.
27706 (define_cond_exec): Set predicated attribute to yes.
27707
27708 2013-06-05 Mike Stump <mikestump@comcast.net>
27709
27710 * gdbinit.in (__FUNCTION__): Add.
27711
27712 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27713
27714 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27715 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27716
27717 2013-06-05 Jan Hubicka <jh@suse.cz>
27718
27719 * varasm.c (mark_decl_referenced): Revert the removal until targets
27720 are fixed.
27721
27722 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27723
27724 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27725 instead of mark_decl_referenced.
27726
27727 2013-06-05 Jan Hubicka <jh@suse.cz>
27728
27729 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27730 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27731 and symtab_used_from_object_file_p.
27732 (cgraph_make_node_local_1): Clear forced_by_abi.
27733 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27734 * cgraph.h (symtab_node_base): Add forced_by_abi.
27735 (decide_is_variable_needed): Remove.
27736 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27737 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27738 (decide_is_symbol_needed): ... this one; handle symbols in general;
27739 always analyze virtuals; honnor forced_by_abi.
27740 (cgraph_finalize_function): Update.
27741 (varpool_finalize_decl): Update.
27742 (symbol_defined_and_needed): Remove.
27743 (analyze_functions): Update.
27744 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27745 output_refs, input_overwrite_node): Handle forced_by_abi.
27746 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27747 (address_taken_from_non_vtable_p): ... this one.
27748 (comdat_can_be_unshared_p_1): New function.
27749 (cgraph_comdat_can_be_unshared_p): Rename to ...
27750 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27751 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27752 (function_and_variable_visibility): Clear forced_by_abi as needed.
27753 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27754 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27755 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27756 * varpool.c (decide_is_variable_needed): Remove.
27757
27758 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27759
27760 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27761 (arm_option_override): Override arm_restrict_it where appropriate.
27762 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27763 * config/arm/arm.opt (mrestrict-it): New command-line option.
27764 * doc/invoke.texi: Document -mrestrict-it.
27765
27766 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27767
27768 * tsan.c (tsan_atomic_table): Make const.
27769
27770 2013-06-05 Richard Biener <rguenther@suse.de>
27771
27772 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27773 index associated with the tree we are supposed to replace.
27774 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27775 TREE_ASM_WRITTEN as zero for everything but SSA names.
27776
27777 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27778
27779 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27780
27781 2013-06-04 Jan Hubicka <jh@suse.cz>
27782
27783 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27784 (input_node, input_varpool_node): Handle correctly external same
27785 body aliases.
27786 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27787 nodes at ltrans stage.
27788
27789 2013-06-04 Jan Hubicka <jh@suse.cz>
27790
27791 * ipa-inline.c (update_caller_keys): Fix availability test.
27792 (update_callee_keys): Likewise.
27793 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27794 to follow ELF standard.
27795
27796 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27797
27798 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27799 (mips64r5900el-*-elf*): New configurations.
27800 * config/mips/mips-cpus.def (r5900): New processor.
27801 * config/mips/mips-tables.opt: Regenerate.
27802 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27803 (mips_issue_rate): Handle PROCESSOR_R5900.
27804 (mips_reorg_process_insns): Force reorder mode for the R5900.
27805 * config/mips/mips.h (TARGET_MIPS5900): Define.
27806 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27807 TARGET_MIPS5900.
27808 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27809 TARGET_MIPS5900.
27810 * config/mips/mips.md (processor): Add r5900.
27811 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27812
27813 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27814
27815 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27816 into function to generate MOVI instruction.
27817 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27818 (aarch64_preferred_simd_mode): Turn into wrapper.
27819 (aarch64_output_scalar_simd_mov_immediate): New function.
27820 * config/aarch64/aarch64-protos.h: Add prototype for above.
27821
27822 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27823
27824 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27825 element_char member.
27826 (sizetochar): Return signed char.
27827 (aarch64_simd_valid_immediate): Remove elchar and other
27828 unnecessary variables.
27829 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27830 Calculate element_char as required.
27831 * config/aarch64/aarch64-protos.h: Update and move prototype
27832 for aarch64_output_simd_mov_immediate.
27833 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27834 Update arguments.
27835
27836 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27837
27838 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27839 information completed by aarch64_simd_valid_immediate.
27840 (aarch64_legitimate_constant_p): Update arguments.
27841 (aarch64_simd_valid_immediate): Work with struct rather than many
27842 pointers.
27843 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27844 (aarch64_simd_make_constant): Update arguments.
27845 (aarch64_output_simd_mov_immediate): Work with struct rather than
27846 many pointers. Output immediate directly rather than as operand.
27847 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27848 Update prototype.
27849 * config/aarch64/constraints.md (Dn): Update arguments.
27850
27851 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27852
27853 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27854 longer static.
27855 (aarch64_simd_immediate_valid_for_move): Remove.
27856 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27857 (aarch64_simd_make_constant): Update call.
27858 (aarch64_output_simd_mov_immediate): Update call.
27859 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27860 Add prototype.
27861 * config/aarch64/constraints.md (Dn): Update call.
27862
27863 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27864
27865 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27866 return type to bool for prototype.
27867 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27868 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27869 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27870
27871 2013-06-04 Catherine Moore <clm@codesourcery.com>
27872
27873 * config/mips/mips.opt (meva): New.
27874 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27875 (ASM_SPEC): Handle -meva.
27876 * doc/invoke.texi (meva): Document.
27877
27878 2013-06-04 Alan Modra <amodra@gmail.com>
27879
27880 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27881 constant output.
27882
27883 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27884
27885 * rtl.def: Add extra fourth optional field to define_cond_exec.
27886 * gensupport.c (process_one_cond_exec): Process attributes from
27887 define_cond_exec.
27888 * doc/md.texi: Document fourth field in define_cond_exec.
27889
27890 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27891
27892 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27893 out the processing order as in store_bit_field_1.
27894
27895 2013-06-04 Jan Hubicka <jh@suse.cz>
27896
27897 PR middle-end/57500
27898 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27899 non-VAR_DECL node if it does not exist yet.
27900
27901 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27902
27903 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27904 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27905 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27906 target_cpu_default setting.
27907
27908 2013-06-03 Teresa Johnson <tejohnson@google.com>
27909
27910 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27911 default to -fopt-info=optimized instead of all.
27912 * doc/invoke.texi: Ditto.
27913 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27914 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27915 (execute_vect_slp): Emit BB vectorization success under
27916 MSG_OPTIMIZED_LOCATIONS.
27917 * tree-vect-slp.c (vect_slp_transform_bb): Change
27918 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27919 * tree-vect-loop.c (vect_transform_loop): Ditto.
27920
27921 2013-06-03 Jason Merrill <jason@redhat.com>
27922
27923 PR c++/57415
27924 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27925 Use TARGET_EXPR for C++.
27926
27927 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27928
27929 PR rtl-optimization/57268
27930 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27931 if DEBUG_INSN_P (insn).
27932
27933 Reapply
27934 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27935
27936 PR rtl-optimization/57268
27937 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27938 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27939
27940 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27941
27942 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27943 (ix86_avoid_lea_for_addr): Likewise.
27944 (exact_dependency_1): Likewise.
27945 (ix86_adjust_cost): Likewise.
27946 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27947 removed.
27948 (do_reorder_for_imul): Fix typo, formatting and
27949 !reload_completed check removed.
27950 (ix86_sched_reorder): Fix typo and formatting.
27951 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27952 list.
27953
27954 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27955
27956 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27957
27958 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27959
27960 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27961 <STRING_CST>: Likewise.
27962 <VECTOR_CST>: Likewise.
27963
27964 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27965 Mikael Morin <mikael@gcc.gnu.org>
27966
27967 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27968 * config.in: Regenerated.
27969 * configure: Regenerated.
27970
27971 2013-06-01 Jan Hubicka <jh@suse.cz>
27972
27973 PR middle-end/57366
27974 * cgraphunit.c (compile): When weakref is not supported,
27975 set up transparent aliases before final output pass.
27976 * varasm.c (assemble_alias): Do not try to do it here.
27977
27978 2013-06-01 Jan Hubicka <jh@suse.cz>
27979
27980 PR middle-end/57467
27981 * passes.c (for_per_function): Skip unanalyzed functions.
27982
27983 2013-06-01 Jan Hubicka <jh@suse.cz>
27984
27985 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27986 (lto_symtab_merge_symbols_1): ... this one.
27987 (lto_symtab_merge_cgraph_nodes): Rename to ...
27988 (lto_symtab_merge_symbols): ... this one; simplify.
27989 * cgraph.c (same_body_aliases_done): Rename to ...
27990 (cpp_implicit_aliases_done): ... this one.
27991 (cgraph_create_function_alias): Update.
27992 (cgraph_same_body_alias): Update.
27993 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27994 (verify_edge_corresponds_to_fndecl): Simplify.
27995 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27996 (cgraph_node): Remove same_body_alias.
27997 (varpool_node): Remove alias_of and extra_name_alias.
27998 (same_body_aliases_done): Rename to ..
27999 (cpp_implicit_aliases_done): ... this one.
28000 (symtab_alias_ultimate_target): Add default parameter.
28001 (symtab_resolve_alias): New function.
28002 (fixup_same_cpp_alias_visibility): Declare.
28003 (cgraph_function_node): Add default parameter.
28004 (cgraph_node_asm_name): Likewise.
28005 (cgraph_function_or_thunk_node): Add default parameter; do
28006 not ICE when it is NULL.
28007 (varpool_variable_node): Likewise.
28008 * tree-emutls.c (create_emultls_var): Update.
28009 (ipa_lower_emutls): Update.
28010 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
28011 (cgraph_reset_node): Reset alias info.
28012 (cgraph_finalize_function): Update.
28013 (fixup_same_cpp_alias_visibility): Move to symtab.c.
28014 (analyze_function): Simplify.
28015 (cgraph_process_same_body_aliases): Simplify.
28016 (analyze_functions): Fixup same body aliases.
28017 (handle_alias_pairs): Simplify.
28018 (assemble_thunk): Update.
28019 (assemble_thunks_and_aliases): Update.
28020 (output_weakrefs): Rewrite.
28021 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
28022 (lto_output_varpool_node): Likewise.
28023 (compute_ltrans_boundary): Remve assert.
28024 (get_alias_symbol): New functoin.
28025 (input_node): Rewrite alias handling.
28026 (input_varpool_node): Likewise.
28027 * ipa-pure-const.c (propagate_pure_const): Fix formating.
28028 * ipa.c (process_references): Handle weakrefs correctly.
28029 (symtab_remove_unreachable_nodes): Likewise.
28030 * trans-mem.c (get_cg_data): Update.
28031 (ipa_tm_create_version_alias): Update.
28032 (ipa_tm_execute): Update.
28033 * symtab.c (dump_symtab_base): Dump aliases.
28034 (verify_symtab_base): Verify aliases.
28035 (symtab_node_availability): New function.
28036 (symtab_alias_ultimate_target): Simplify.
28037 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28038 handle all the fixup cases.
28039 (symtab_resolve_alias): New function.
28040 * passes.c (ipa_write_summaries): Handle weakrefs.
28041 * varpool.c (varpool_analyze_node): Simplify.
28042 (assemble_aliases): Update.
28043 (varpool_create_variable_alias): Simplify.
28044 (varpool_extra_name_alias): Simplify.
28045 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28046 (lto_symtab_merge_symbols): ... this one.
28047
28048 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
28049
28050 Revert
28051 PR rtl-optimization/57268
28052 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28053 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28054
28055 2013-06-01 Tobias Burnus <burnus@net-b.de>
28056
28057 Partially reverted:
28058 2013-05-31 Tobias Burnus <burnus@net-b.de>
28059
28060 PR middle-end/57073
28061 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28062 further up.
28063
28064 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28065
28066 PR rtl-optimization/57268
28067 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28068 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28069
28070 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28071
28072 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28073 unordered comparison operators when -fno-trapping-math is in effect
28074 on the e500.
28075 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28076 and implement unordered comparison operators properly on the e500.
28077
28078 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28079
28080 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28081 for constant scalar integers.
28082 (simplify_relational_operation_1): Likewise.
28083
28084 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
28085
28086 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28087 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
28088 Fix comment.
28089
28090 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28091 Igor Zamyatin <igor.zamyatin@intel.com>
28092
28093 Silvermont (SLM) architecture performance tuning.
28094 * config/i386/i386.h (enum ix86_tune_indices): Add
28095 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28096 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28097
28098 * config/i386/i386.c (initial_ix86_tune_features)
28099 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28100 (ix86_lea_outperforms): Handle Silvermont tuning.
28101 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28102 call.
28103 (ix86_use_lea_for_mov): Likewise.
28104 (ix86_avoid_lea_for_addr): Likewise.
28105 (ix86_lea_for_add_ok): Likewise.
28106 (exact_dependency_1): New function.
28107 (exact_store_load_dependency): Likewise.
28108 (ix86_adjust_cost): Handle Silvermont tuning.
28109 (do_reoder_for_imul): Likewise.
28110 (swap_top_of_ready_list): New function.
28111 (ix86_sched_reorder): Changed to handle Silvermont tuning.
28112
28113 * config/i386/i386.md (peepholes that split memory operand in fp
28114 converts): New.
28115
28116 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28117
28118 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28119 Remove un-necessary braces.
28120
28121 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28122
28123 * config/aarch64/aarch64.c (aarch64_classify_symbol):
28124 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28125
28126 2013-05-31 Tobias Burnus <burnus@net-b.de>
28127
28128 PR middle-end/57073
28129 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28130
28131 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28132
28133 PR target/56315
28134 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28135 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28136 * config/arm/neon.md (iordi3_neon): Remove.
28137 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28138 * config/arm/predicates.md (imm_for_neon_logic_operand):
28139 Move to earlier in the file.
28140 (neon_logic_op2): Likewise.
28141 (arm_iordi_operand_neon): New predicate.
28142
28143 2013-05-31 Richard Biener <rguenther@suse.de>
28144
28145 PR tree-optimization/57478
28146 PR tree-optimization/57453
28147 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28148 are life as well.
28149
28150 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28151
28152 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28153 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28154
28155 2013-05-30 Tobias Burnus <burnus@net-b.de>
28156 Thomas Koenig <tkoenig@gcc.gnu.org>
28157
28158 PR middle-end/57073
28159 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28160 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28161
28162 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
28163
28164 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28165
28166 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
28167
28168 * target.def (register_usage_leveling_p): New hook.
28169 * targhooks.c (default_register_usage_leveling_p): New.
28170 * targhooks.h (default_register_usage_leveling_p): New prototype.
28171 * lra-assigns.c (register_usage_leveling_p): Use the hook.
28172 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28173 * doc/tm.texi: Update.
28174 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28175
28176 2013-05-30 Ian Bolton <ian.bolton@arm.com>
28177
28178 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28179 (*insv_reg<mode>): New define_insn.
28180
28181 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
28182
28183 PR rtl-optimization/57439
28184 * postreload.c (move2add_valid_value_p): Check that we have
28185 a zero subreg_regno_offset when accessing the register in
28186 the requested mode.
28187
28188 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28189 Igor Zamyatin <igor.zamyatin@intel.com>
28190
28191 Silvermont (SLM) architecture pipeline model, tuning and
28192 insn selection.
28193 * config.gcc: Add slm config options and target.
28194
28195 * config/i386/slm.md: New.
28196
28197 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28198
28199 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28200 PROCESSOR_SLM.
28201 (ix86_target_macros_internal): Likewise.
28202
28203 * config/i386/i386.c (slm_cost): New cost.
28204 (m_SLM): New macro flag.
28205 (initial_ix86_tune_features): Set m_SLM.
28206 (x86_accumulate_outgoing_args): Likewise.
28207 (x86_arch_always_fancy_math_387): Likewise.
28208 (processor_target_table): Add slm cost.
28209 (cpu_names): Add slm cpu name.
28210 (x86_option_override_internal): Set SLM ISA.
28211 (ix86_issue_rate): New case PROCESSOR_SLM.
28212 (ia32_multipass_dfa_lookahead): Likewise.
28213 (fold_builtin_cpu): Add slm.
28214
28215 * config/i386/i386.h (TARGET_SLM): New target macro.
28216 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28217 (processor_type): Add PROCESSOR_SLM.
28218
28219 * config/i386/i386.md (cpu): Add new value "slm".
28220 (slm.md): Include slm.md.
28221
28222 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
28223 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28224
28225 * config/arm/arm-protos.h: Add and update function protos.
28226 * config/arm/arm.c (use_simple_return_p): New added.
28227 (thumb2_expand_return): Check simple_return flag.
28228 * config/arm/arm.md: Add simple_return and conditional simple_return.
28229 * config/arm/iterators.md: Add iterator for return and simple_return.
28230
28231 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28232
28233 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28234 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28235 (arm_emit_vfp_multi_reg_pop): Likewise.
28236 (thumb2_emit_ldrd_pop): Likewise.
28237 (arm_expand_epilogue): Add misc REG_CFA notes.
28238 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28239
28240 2013-05-29 Lawrence Crowl <crowl@google.com>
28241
28242 * config/arm/t-arm: Update for below.
28243
28244 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28245 Change type to hash_table. Update dependent calls and types.
28246
28247 * config/i386/t-cygming: Update for below.
28248
28249 * config/i386/t-interix: Update for below.
28250
28251 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28252 Change type to hash_table. Update dependent calls and types.
28253 (i386_find_on_wrapper_list::wrappers): Likewise.
28254
28255 * config/ia64/t-ia64: Update for below.
28256
28257 * config/ia64/ia64.c (bundle_state_table):
28258 Change type to hash_table. Update dependent calls and types.
28259
28260 * config/mips/mips.c (mips_reorg_process_insns::htab):
28261 Change type to hash_table. Update dependent calls and types.
28262
28263 * config/sol2.c (solaris_comdat_htab):
28264 Change type to hash_table. Update dependent calls and types.
28265
28266 * config/t-sol2: Update for above.
28267
28268 2013-05-29 Teresa Johnson <tejohnson@google.com>
28269
28270 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28271 functions are not yet marked as defined.
28272
28273 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
28274 Pat Haugen <pthaugen@us.ibm.com>
28275 Peter Bergner <bergner@vnet.ibm.com>
28276
28277 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28278 instructions.
28279 (VEC_A): Likewise.
28280 (VEC_C): Likewise.
28281 (vrotl<mode>3): Likewise.
28282 (vashl<mode>3): Likewise.
28283 (vlshr<mode>3): Likewise.
28284 (vashr<mode>3): Likewise.
28285
28286 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28287 support for power8 V2DI builtins.
28288
28289 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28290 power8 V2DI builtins.
28291 (vupkhsw): Likewise.
28292 (vupklsw): Likewise.
28293 (vaddudm): Likewise.
28294 (vminsd): Likewise.
28295 (vmaxsd): Likewise.
28296 (vminud): Likewise.
28297 (vmaxud): Likewise.
28298 (vpkudum): Likewise.
28299 (vpksdss): Likewise.
28300 (vpkudus): Likewise.
28301 (vpksdus): Likewise.
28302 (vrld): Likewise.
28303 (vsld): Likewise.
28304 (vsrd): Likewise.
28305 (vsrad): Likewise.
28306 (vsubudm): Likewise.
28307 (vcmpequd): Likewise.
28308 (vcmpgtsd): Likewise.
28309 (vcmpgtud): Likewise.
28310 (vcmpequd_p): Likewise.
28311 (vcmpgtsd_p): Likewise.
28312 (vcmpgtud_p): Likewise.
28313 (vupkhsw): Likewise.
28314 (vupklsw): Likewise.
28315 (vaddudm): Likewise.
28316 (vmaxsd): Likewise.
28317 (vmaxud): Likewise.
28318 (vminsd): Likewise.
28319 (vminud): Likewise.
28320 (vpksdss): Likewise.
28321 (vpksdus): Likewise.
28322 (vpkudum): Likewise.
28323 (vpkudus): Likewise.
28324 (vrld): Likewise.
28325 (vsld): Likewise.
28326 (vsrad): Likewise.
28327 (vsrd): Likewise.
28328 (vsubudm): Likewise.
28329
28330 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28331 support for power8 V2DI instructions.
28332
28333 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28334 power8 V2DI instructions. Combine pack and unpack insns to use an
28335 iterator for each mode. Check whether a particular mode supports
28336 Altivec instructions instead of just checking TARGET_ALTIVEC.
28337 (UNSPEC_VPKUWUM): Likewise.
28338 (UNSPEC_VPKSHSS): Likewise.
28339 (UNSPEC_VPKSWSS): Likewise.
28340 (UNSPEC_VPKUHUS): Likewise.
28341 (UNSPEC_VPKSHUS): Likewise.
28342 (UNSPEC_VPKUWUS): Likewise.
28343 (UNSPEC_VPKSWUS): Likewise.
28344 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28345 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28346 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28347 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28348 (UNSPEC_VUPKHSB): Likewise.
28349 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28350 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28351 (UNSPEC_VUPKHSH): Likewise.
28352 (UNSPEC_VUPKLSB): Likewise.
28353 (UNSPEC_VUPKLSH): Likewise.
28354 (VI2): Likewise.
28355 (VI_char): Likewise.
28356 (VI_scalar): Likewise.
28357 (VI_unit): Likewise.
28358 (VP): Likewise.
28359 (VP_small): Likewise.
28360 (VP_small_lc): Likewise.
28361 (VU_char): Likewise.
28362 (add<mode>3): Likewise.
28363 (altivec_vaddcuw): Likewise.
28364 (altivec_vaddu<VI_char>s): Likewise.
28365 (altivec_vadds<VI_char>s): Likewise.
28366 (sub<mode>3): Likewise.
28367 (altivec_vsubcuw): Likewise.
28368 (altivec_vsubu<VI_char>s): Likewise.
28369 (altivec_vsubs<VI_char>s): Likewise.
28370 (altivec_vavgs<VI_char>): Likewise.
28371 (altivec_vcmpbfp): Likewise.
28372 (altivec_eq<mode>): Likewise.
28373 (altivec_gt<mode>): Likewise.
28374 (altivec_gtu<mode>): Likewise.
28375 (umax<mode>3): Likewise.
28376 (smax<mode>3): Likewise.
28377 (umin<mode>3): Likewise.
28378 (smin<mode>3): Likewise.
28379 (altivec_vpkuhum): Likewise.
28380 (altivec_vpkuwum): Likewise.
28381 (altivec_vpkshss): Likewise.
28382 (altivec_vpkswss): Likewise.
28383 (altivec_vpkuhus): Likewise.
28384 (altivec_vpkshus): Likewise.
28385 (altivec_vpkuwus): Likewise.
28386 (altivec_vpkswus): Likewise.
28387 (altivec_vpks<VI_char>ss): Likewise.
28388 (altivec_vpks<VI_char>us): Likewise.
28389 (altivec_vpku<VI_char>us): Likewise.
28390 (altivec_vpku<VI_char>um): Likewise.
28391 (altivec_vrl<VI_char>): Likewise.
28392 (altivec_vsl<VI_char>): Likewise.
28393 (altivec_vsr<VI_char>): Likewise.
28394 (altivec_vsra<VI_char>): Likewise.
28395 (altivec_vsldoi_<mode>): Likewise.
28396 (altivec_vupkhsb): Likewise.
28397 (altivec_vupkhs<VU_char>): Likewise.
28398 (altivec_vupkls<VU_char>): Likewise.
28399 (altivec_vupkhsh): Likewise.
28400 (altivec_vupklsb): Likewise.
28401 (altivec_vupklsh): Likewise.
28402 (altivec_vcmpequ<VI_char>_p): Likewise.
28403 (altivec_vcmpgts<VI_char>_p): Likewise.
28404 (altivec_vcmpgtu<VI_char>_p): Likewise.
28405 (abs<mode>2): Likewise.
28406 (vec_unpacks_hi_v16qi): Likewise.
28407 (vec_unpacks_hi_v8hi): Likewise.
28408 (vec_unpacks_lo_v16qi): Likewise.
28409 (vec_unpacks_hi_<VP_small_lc>): Likewise.
28410 (vec_unpacks_lo_v8hi): Likewise.
28411 (vec_unpacks_lo_<VP_small_lc>): Likewise.
28412 (vec_pack_trunc_v8h): Likewise.
28413 (vec_pack_trunc_v4si): Likewise.
28414 (vec_pack_trunc_<mode>): Likewise.
28415
28416 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28417 V2DI builtins.
28418 (vec_vmaxsd): Likewise.
28419 (vec_vmaxud): Likewise.
28420 (vec_vminsd): Likewise.
28421 (vec_vminud): Likewise.
28422 (vec_vpksdss): Likewise.
28423 (vec_vpksdus): Likewise.
28424 (vec_vpkudum): Likewise.
28425 (vec_vpkudus): Likewise.
28426 (vec_vrld): Likewise.
28427 (vec_vsld): Likewise.
28428 (vec_vsrad): Likewise.
28429 (vec_vsrd): Likewise.
28430 (vec_vsubudm): Likewise.
28431 (vec_vupkhsw): Likewise.
28432 (vec_vupklsw): Likewise.
28433
28434 2013-05-29 Jan Hubicka <jh@suse.cz>
28435
28436 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28437 flags; reorder rest of fields in more consistent way.
28438 (varpool_node): Remove analyzed, finalized and alias.
28439 (cgraph_ndoe): Likewise.
28440 (symtab_alias_ultimate_target): New function.
28441 (cgraph_function_node): Move offline.
28442 (cgraph_reset_node): Declare.
28443 (cgraph_comdat_can_be_unshared_p): Remove.
28444 (varpool_remove_initializer): Declare.
28445 (varpool_first_defined_variable, varpool_next_defined_variable
28446 cgraph_first_defined_function, cgraph_next_defined_function): Update.
28447 (cgraph_function_with_gimple_body_p): Update.
28448 (varpool_all_refs_explicit_p): Update.
28449 (symtab_alias_target): New function.
28450 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28451 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28452 (cgraph_function_or_thunk_node): Simplify using
28453 symtab_alias_ultimate_target.
28454 (varpool_variable_node): Likewise.
28455 * cgraph.c (cgraph_create_function_alias): Update.
28456 (cgraph_add_thunk): Update.
28457 (cgraph_remove_node): Update.
28458 (dump_cgraph_node): Do not dump removed flags.
28459 (cgraph_function_body_availability): Update.
28460 (cgraph_propagate_frequency): Update.
28461 (verify_cgraph_node): Check sanity of local flag.
28462 (cgraph_function_node): Move here from cgraph.h; revamp for
28463 cgraph_function_or_thunk_node.
28464 * lto-symtab.c (lto_varpool_replace_node): Update.
28465 (lto_symtab_resolve_can_prevail_p): Update.
28466 (lto_symtab_merge_cgraph_nodes): Update.
28467 * ipa-cp.c (determine_versionability, initialize_node_lattices,
28468 propagate_constants_accross_call, devirtualization_time_bonus,
28469 ipcp_propagate_stage): Update.
28470 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28471 * ipa-inline-transform.c (clone_inlined_nodes,
28472 preserve_function_body_p): Update.
28473 * ipa-reference.c (propagate): Update.
28474 (write_node_summary_p): Update.
28475 * toplev.c (wrapup_global_declaration_2): Update.
28476 * cgraphunit.c (cgraph_analyze_function): Rename to ...
28477 (analyze_function) ... this one.
28478 (cgraph_process_new_functions): Update.
28479 (cgraph_reset_node): Export.
28480 (cgraph_finalize_function): Update.
28481 (cgraph_add_new_function): Update.
28482 (process_function_and_variable_attributes): Update.
28483 (varpool_finalize_decl): Update.
28484 (symbol_finalized): Remove.
28485 (symbol_finalized_and_needed): Rename to ...
28486 (symbol_defined_and_needed): ... update.
28487 (cgraph_analyze_functions): Update.
28488 (handle_alias_pairs): Update.
28489 (mark_functions_to_output): Update.
28490 (assemble_thunk): Update.
28491 (output_in_order): Update.
28492 (output_weakrefs): Update.
28493 (finalize_compilation_unit): Update.
28494 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28495 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28496 input_node, input_varpool_node): Update.
28497 * dbxout.c (dbxout_expand_expr): Update.
28498 * cgraphclones.c (cgraph_clone_node): Update.
28499 (cgraph_copy_node_for_versioning): Update.
28500 (cgraph_materialize_clone): Update.
28501 (cgraph_materialize_all_clones): Update.
28502 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28503 propagate_pure_const, propagate_nothrow): Update.
28504 * lto-streamer-out.c (lto_output, write_symbol): Update.
28505 * ipa-utils.c (ipa_reverse_postorder): Update.
28506 * ipa-inline.c (can_inline_edge_p): Update.
28507 (update_caller_keys, ipa_inline): Update.
28508 * dwarf2out.c (reference_to_unused,
28509 premark_types_used_by_global_vars_helper): Update.
28510 * tree-eh.c (tree_could_trap_p): Update.
28511 * ipa-split.c (consider_split, execute_split_functions): Update.
28512 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28513 has_addr_references_p): Update; move ahead in file for better
28514 readability.
28515 (process_references): Simplify.
28516 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28517 bodies are removed.
28518 (cgraph_comdat_can_be_unshared_p): Make static.
28519 (cgraph_externally_visible_p): Update.
28520 (varpool_externally_visible_p): Update.
28521 (function_and_variable_visibility): Update.
28522 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28523 ipa_tm_mark_force_output_node): Update.
28524 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28525 estimate_edge_devirt_benefit, inline_generate_summary,
28526 inline_write_summary): Update.
28527 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28528 * ipa-prop.c (ipa_compute_jump_functions): Update.
28529 (ipa_print_node_params, ipa_prop_read_section,
28530 ipa_update_after_lto_read, read_replacements_section): Update.
28531 * varasm.c (mark_decl_referenced): Update.
28532 (assemble_alias, dump_tm_clone_pairs): Update.
28533 * tree-inline.c (copy_bb): Update.
28534 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28535 Update.
28536 * symtab.c (dump_symtab_base): Print new flags.
28537 (verify_symtab_base): Verify new flags.
28538 (symtab_alias_ultimate_target): New function.
28539 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28540 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28541 Update.
28542 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28543 Update.
28544 * i386.c (ix86_get_function_versions_dispatcher,
28545 ix86_generate_version_dispatcher_body): Update.
28546 (fold_builtin_cpu): Use varpool_add_new_variable.
28547 * varpool.c (varpool_remove_initializer): Break out from ...
28548 (varpool_remove_node): ... this one.
28549 (dump_varpool_node, varpool_node_for_asm,
28550 cgraph_variable_initializer_availability, varpool_analyze_node,
28551 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28552 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28553 Update.
28554
28555 2013-05-29 Jan Hubicka <jh@suse.cz>
28556
28557 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28558
28559 2013-05-29 Easwaran Raman <eraman@google.com>
28560
28561 PR tree-optimization/57442
28562 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28563 when control exits the main loop.
28564
28565 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28566
28567 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28568 and RX600.
28569 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28570 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28571 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28572 option.
28573
28574 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28575
28576 PR tree-optimization/57441
28577 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28578 Don't limit size of incr_vec to number of candidates.
28579
28580 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28581
28582 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28583 and mips16 directories.
28584 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28585 (MULTILIB_DIRNAMES): Ditto.
28586 (MULTILIB_EXCEPTIONS): Add new exceptions.
28587 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28588 (MULTILIB_DIRNAMES): Ditto.
28589 (MULTILIB_EXCEPTIONS): Add new exceptions.
28590
28591 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28592 Marcus Shawcroft <marcus.shawcroft@arm.com>
28593
28594 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28595 SYMBOL_TINY_ABSOLUTE.
28596 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28597 SYMBOL_TINY_ABSOLUTE.
28598 (aarch64_expand_mov_immediate): Likewise.
28599 (aarch64_classify_symbol): Likewise.
28600 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28601 Permit SYMBOL_TINY_ABSOLUTE.
28602 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28603
28604 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28605 Marcus Shawcroft <marcus.shawcroft@arm.com>
28606
28607 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28608 Refactor if/switch. Replace gcc_assert with if.
28609
28610 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28611
28612 * config/i386/i386.c (initial_ix86_tune_features): Enable
28613 FP Reassociation for AMD bdver1 and bdver2.
28614
28615 2013-05-29 Martin Jambor <mjambor@suse.cz>
28616
28617 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28618 and IMAGPART_EXPR do not occur within other handled_components.
28619
28620 2013-05-29 Richard Biener <rguenther@suse.de>
28621
28622 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28623 access on whether the use is in the BB we currently try to
28624 vectorize.
28625 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28626 vectorize to vect_bb_slp_scalar_cost.
28627
28628 2013-05-29 Richard Biener <rguenther@suse.de>
28629
28630 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28631 computing scalar cost offsetted by stmts that are kept live
28632 by scalar uses.
28633 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28634 for computation of scalar cost.
28635
28636 2013-05-28 Steve Ellcey <sellcey@mips.com>
28637
28638 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28639
28640 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28641
28642 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28643 array notation built-in reduction functions.
28644 * doc/passes.texi (Passes): Added documentation about changes done
28645 for Cilk Plus.
28646 * doc/invoke.texi (C Dialect Options): Added documentation about
28647 the -fcilkplus flag.
28648 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28649 (BUILTINS_DEF): Depend on cilkplus.def.
28650 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28651 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28652 * cilkplus.def: New file.
28653
28654 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28655
28656 PR rtl-optimization/57439
28657 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28658
28659 2013-05-28 Easwaran Raman <eraman@google.com>
28660
28661 PR tree-optimization/57337
28662 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28663 (find_insert_point): Correctly identify the insertion point
28664 when two statements with the same UID is compared.
28665
28666 2013-05-28 Richard Biener <rguenther@suse.de>
28667
28668 PR tree-optimization/56787
28669 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28670 from the list of data references.
28671 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28672 clobbers.
28673 (vect_analyze_loop_operations): Likewise.
28674 (vect_transform_loop): Remove clobbers.
28675
28676 2013-05-28 Martin Jambor <mjambor@suse.cz>
28677
28678 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28679 and REALPART_EXPRs have scalar type.
28680
28681 2013-05-28 Richard Biener <rguenther@suse.de>
28682
28683 PR tree-optimization/57411
28684 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28685 virtual operands.
28686 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28687 virtual operand propagation.
28688
28689 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28690
28691 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28692 destination register for bmasksi_vis.
28693 (vector_init_bshuffle): Likewise.
28694 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28695
28696 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28697
28698 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28699 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28700 mode if the instruction isn't available in the original mode.
28701 * config/sparc/sparc.opt (mfix-ut699): New option.
28702 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28703 (divdf3): Turn into expander.
28704 (divdf3_nofix): New insn.
28705 (divdf3_fix): Likewise.
28706 (divsf3): Disable if -mfix-ut699.
28707 (sqrtdf2): Turn into expander.
28708 (sqrtdf2_nofix): New insn.
28709 (sqrtdf2_fix): Likewise.
28710 (sqrtsf2): Disable if -mfix-ut699.
28711
28712 2013-05-27 Richard Biener <rguenther@suse.de>
28713
28714 PR middle-end/57412
28715 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28716 block for the new loop.
28717
28718 2013-05-27 Richard Biener <rguenther@suse.de>
28719
28720 PR tree-optimization/57343
28721 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28722 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28723 (number_of_iterations_cond): Do not build the folded tree.
28724
28725 2013-05-27 Richard Biener <rguenther@suse.de>
28726
28727 Revert
28728 PR middle-end/57381
28729 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28730 OEP_CONSTANT_ADDRESS_OF retained.
28731
28732 PR tree-optimization/57417
28733 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28734 for unchanged base.
28735 (set_ssa_val_to): Compare addresses using
28736 get_addr_base_and_unit_offset.
28737
28738 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28739
28740 PR rtl-optimization/56833
28741 * postreload.c (move2add_record_mode): New function.
28742 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28743 (move2add_use_add2_insn): Use move2add_record_sym_value.
28744 (move2add_use_add3_insn): Likewise.
28745 (reload_cse_move2add): Use move2add_valid_value_p and
28746 move2add_record_mode. Invalidate call-clobbered and REG_INC
28747 affected regs by setting reg_mode to VOIDmode.
28748 (move2add_note_store): Don't pretend the inside of a SUBREG is
28749 the actual destination. Invalidate single/leading registers by
28750 setting reg_mode to VOIDmode.
28751 Use move2add_record_sym_value, move2add_valid_value_p and
28752 move2add_record_mode.
28753
28754 2013-05-27 Richard Biener <rguenther@suse.de>
28755
28756 PR tree-optimization/57396
28757 * tree-affine.c (double_int_constant_multiple_p): Properly
28758 return false for val == 0 and div != 0.
28759
28760 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28761
28762 * config/mips/mips.h: Use #elif in preprocessor conditions.
28763
28764 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28765
28766 PR target/53916
28767 * config/mips/constraints.md (kl): New constraint.
28768 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28769 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28770 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28771 from LO for MIPS16.
28772 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28773
28774 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28775
28776 PR target/55777
28777 * config/mips/mips.c (mips_can_inline_p): New function.
28778 (TARGET_CAN_INLINE_P): Define.
28779
28780 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28781
28782 * sched-int.h (ds_t, dw_t): Make unsigned int.
28783 Fix documentation that describes how all the ds_t bits are used.
28784 Reserve the last bit for delayed-branch scheduling.
28785 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28786 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28787 (gen_dep_weak_1): Remove prototype.
28788 * sched-deps.c (get_dep_weak_1): Make static.
28789 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28790 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28791 * doc/tm.texi: Regenerate.
28792 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28793
28794 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28795
28796 PR debug/56950
28797 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28798
28799 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28800 Sandra Loosemore <sandra@codesourcery.com>
28801
28802 * config.gcc (powerpc-*): Allow native for with-cpu.
28803
28804 2013-05-24 Jeff Law <law@redhat.com>
28805
28806 PR tree-optimization/57124
28807 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28808 conversion feeding a condition if the range has an overflow
28809 if -fstrict-overflow. Add warnings for when we do make the
28810 transformation.
28811
28812 2013-05-24 Dehao Chen <dehao@google.com>
28813
28814 * tree-cfg.c (locus_discrim_map): Fix the typo.
28815 (locus_discrim_hasher): Likewise.
28816 (locus_discrim_hasher::hash): Likewise.
28817 (locus_discrim_hasher::equal): Likewise.
28818
28819 2013-05-24 Martin Jambor <mjambor@suse.cz>
28820
28821 PR tree-optimization/57294
28822 * cgraph.h (ipa_record_stmt_references): Declare.
28823 * cgraphbuild.c (ipa_record_stmt_references): New function.
28824 (build_cgraph_edges): Use ipa_record_stmt_references.
28825 (rebuild_cgraph_edges): Likewise.
28826 (cgraph_rebuild_references): Likewise.
28827 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28828 associated with the old statement and build references from the
28829 newly built statements.
28830 * ipa-ref.c (ipa_remove_stmt_references): New function.
28831 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28832
28833 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28834
28835 * lra-constraints.c (emit_spill_move): Use smaller mode for
28836 mem-mem moves.
28837 (check_and_process_move): Consider mem-reg moves for secondary
28838 too.
28839 (curr_insn_transform): Don't lose insns emitted before for
28840 secondary memory moves.
28841 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28842 reg set up in the current insn.
28843
28844 2013-05-24 Dehao Chen <dehao@google.com>
28845
28846 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28847 hash function.
28848 (locus_descrim_hasher::equal): Likewise.
28849 (build_gimple_cfg): New discriminator assignment algorithm.
28850 (make_edges): Likewise.
28851 (next_discriminator_for_locus): Likewise.
28852 (same_line_p): Likewise.
28853 (assign_discriminators): Likewise.
28854 (make_cond_expr_edges): Likewise.
28855 (make_gimple_switch_edges): Likewise.
28856 (make_goto_expr_edges): Likewise.
28857 (make_gimple_asm_edges): Likewise.
28858
28859 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28860
28861 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28862 X format specifier to only display bottom 16 bits.
28863 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28864 immediate to match for operand 2, since it will be masked.
28865
28866 2013-05-24 Richard Biener <rguenther@suse.de>
28867
28868 PR tree-optimization/57287
28869 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28870 all SSA names that occur in abnormal PHIs.
28871
28872 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28873
28874 PR tree-ssa/57385
28875 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28876 that index is not negative.
28877
28878 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28879
28880 PR rtl-optimization/55177
28881 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28882 (simplify_byte_swapping_operation): New.
28883 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28884 (simplify_relational_operation_1): Deal with BSWAP.
28885
28886 2013-05-23 Richard Henderson <rth@redhat.com>
28887
28888 PR target/56742
28889 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28890 (ix86_reorg): Call it.
28891
28892 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28893
28894 PR target/57379
28895 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28896 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28897 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28898
28899 2013-05-23 Christian Bruel <christian.bruel@st.com>
28900
28901 PR debug/57351
28902 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28903
28904 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28905 Marcus Shawcroft <marcus.shawcroft@arm.com>
28906
28907 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28908 * config/aarch64/constraints.md (Usa): Remove.
28909 * doc/md.texi (AArch64 Usa): Remove.
28910
28911 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28912 Marcus Shawcroft <marcus.shawcroft@arm.com>
28913
28914 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28915 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28916 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28917 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28918
28919 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28920
28921 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28922 instruction (AdvSIMD).
28923 * config/aarch64/aarch64-builtins.c
28924 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28925 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28926
28927 2013-05-23 Martin Jambor <mjambor@suse.cz>
28928
28929 PR middle-end/57347
28930 * tree.h (contains_bitfld_component_ref_p): Declare.
28931 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28932 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28933 caller.
28934 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28935 not access a bit-field. Assert all final offsets are byte-aligned.
28936
28937 2013-05-23 Richard Biener <rguenther@suse.de>
28938
28939 PR tree-optimization/57380
28940 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28941 least one invariant or re-used load.
28942 * passes.c (init_optimization_passes): Move pass_phiprop before
28943 pass_forwprop.
28944
28945 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28946
28947 * config/aarch64/aarch64-simd.md
28948 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28949
28950 2013-05-23 Richard Biener <rguenther@suse.de>
28951
28952 PR middle-end/57381
28953 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28954 OEP_CONSTANT_ADDRESS_OF retained.
28955
28956 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28957
28958 PR middle-end/57344
28959 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28960 don't lower unit. Handle unit not being always BITS_PER_WORD.
28961
28962 2013-05-23 Richard Biener <rguenther@suse.de>
28963
28964 PR rtl-optimization/57341
28965 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28966 instead of true_dependence.
28967
28968 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28969
28970 * bb-reorder.c (branch_threshold): Make const.
28971 (exec_threshold): Ditto.
28972
28973 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28974 Pat Haugen <pthaugen@us.ibm.com>
28975 Peter Bergner <bergner@vnet.ibm.com>
28976
28977 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28978 documentation for the power8 crypto builtins.
28979
28980 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28981
28982 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28983 macros for defining power8 builtin functions.
28984 (BU_P8V_AV_2): Likewise.
28985 (BU_P8V_AV_P): Likewise.
28986 (BU_P8V_VSX_1): Likewise.
28987 (BU_P8V_OVERLOAD_1): Likewise.
28988 (BU_P8V_OVERLOAD_2): Likewise.
28989 (BU_CRYPTO_1): Likewise.
28990 (BU_CRYPTO_2): Likewise.
28991 (BU_CRYPTO_3): Likewise.
28992 (BU_CRYPTO_OVERLOAD_1): Likewise.
28993 (BU_CRYPTO_OVERLOAD_2): Likewise.
28994 (XSCVSPDP): Fix typo, point to the correct instruction.
28995 (VCIPHER): Add power8 crypto builtins.
28996 (VCIPHERLAST): Likewise.
28997 (VNCIPHER): Likewise.
28998 (VNCIPHERLAST): Likewise.
28999 (VPMSUMB): Likewise.
29000 (VPMSUMH): Likewise.
29001 (VPMSUMW): Likewise.
29002 (VPERMXOR_V2DI): Likewise.
29003 (VPERMXOR_V4SI: Likewise.
29004 (VPERMXOR_V8HI: Likewise.
29005 (VPERMXOR_V16QI: Likewise.
29006 (VSHASIGMAW): Likewise.
29007 (VSHASIGMAD): Likewise.
29008 (VPMSUM): Likewise.
29009 (VPERMXOR): Likewise.
29010 (VSHASIGMA): Likewise.
29011
29012 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
29013 __CRYPTO__ if the crypto instructions are available.
29014 (altivec_overloaded_builtins): Add support for overloaded power8
29015 builtins.
29016
29017 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
29018 support for power8 crypto builtins.
29019 (builtin_function_type): Likewise.
29020 (altivec_init_builtins): Add support for builtins that take vector
29021 long long (V2DI) arguments.
29022
29023 * config/rs6000/crypto.md: New file, define power8 crypto
29024 instructions.
29025
29026 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29027 Pat Haugen <pthaugen@us.ibm.com>
29028 Peter Bergner <bergner@vnet.ibm.com>
29029
29030 * doc/invoke.texi (Option Summary): Add power8 options.
29031 (RS/6000 and PowerPC Options): Likewise.
29032
29033 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29034 constraints.md instead of rs6000.h. Reorder w* constraints. Add
29035 wm, wn, wr documentation.
29036
29037 * config/rs6000/constraints.md (wm): New constraint for VSX
29038 registers if direct move instructions are enabled.
29039 (wn): New constraint for no registers.
29040 (wq): New constraint for quad word even GPR registers.
29041 (wr): New constraint if 64-bit instructions are enabled.
29042 (wv): New constraint if power8 vector instructions are enabled.
29043 (wQ): New constraint for quad word memory locations.
29044
29045 * config/rs6000/predicates.md (const_0_to_15_operand): New
29046 constraint for 0..15 for crypto instructions.
29047 (gpc_reg_operand): If VSX allow registers in VSX registers as well
29048 as GPR and floating point registers.
29049 (int_reg_operand): New predicate to match only GPR registers.
29050 (base_reg_operand): New predicate to match base registers.
29051 (quad_int_reg_operand): New predicate to match even GPR registers
29052 for quad memory operations.
29053 (vsx_reg_or_cint_operand): New predicate to allow vector logical
29054 operations in both GPR and VSX registers.
29055 (quad_memory_operand): New predicate for quad memory operations.
29056 (reg_or_indexed_operand): New predicate for direct move support.
29057
29058 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29059 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29060 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29061 (POWERPC_MASKS): Add power8 options.
29062 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29063 various options.
29064
29065 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29066 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29067
29068 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29069 (-mpower8-fusion): New power8 options.
29070 (-mpower8-fusion-sign): Likewise.
29071 (-mpower8-vector): Likewise.
29072 (-mcrypto): Likewise.
29073 (-mdirect-move): Likewise.
29074 (-mquad-memory): Likewise.
29075
29076 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29077 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29078 registers.
29079 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29080 (rs6000_debug_vector_unit): Add p8_vector.
29081 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29082 definitions. Also print fusion state.
29083 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29084 (rs6000_builtin_mask_calculate): Add power8 builtin support.
29085 (rs6000_option_override_internal): Add support for power8.
29086 (rs6000_common_init_builtins): Add debugging for skipped builtins
29087 if -mdebug=builtin.
29088 (rs6000_adjust_cost): Add power8 support.
29089 (rs6000_issue_rate): Likewise.
29090 (insn_must_be_first_in_group): Likewise.
29091 (insn_must_be_last_in_group): Likewise.
29092 (force_new_group): Likewise.
29093 (rs6000_register_move_cost): Likewise.
29094 (rs6000_opt_masks): Likewise.
29095
29096 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29097 power8 capable assembler, default to power7 options.
29098 (TARGET_DIRECT_MOVE): Likewise.
29099 (TARGET_CRYPTO): Likewise.
29100 (TARGET_P8_VECTOR): Likewise.
29101 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29102 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29103 (VECTOR_MEM_P8_VECTOR_P): Likewise.
29104 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29105 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29106 (TARGET_XSCVDPSPN): Likewise.
29107 (TARGET_XSCVSPDPN): Likewsie.
29108 (TARGET_SYNC_HI_QI): Likewise.
29109 (TARGET_SYNC_TI): Likewise.
29110 (MASK_CRYPTO): Likewise.
29111 (MASK_DIRECT_MOVE): Likewise.
29112 (MASK_P8_FUSION): Likewise.
29113 (MASK_P8_VECTOR): Likewise.
29114 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29115 temporary used by some of the direct move instructions to get two FP
29116 temporary registers does not force creation of a stack frame.
29117 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29118 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29119 that any VSX registers are tieable, even if they are also an
29120 Altivec vector mode.
29121 (r6000_reg_class_enum): Add wm, wr, wv constraints.
29122 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29123 (RS6000_BTM_CRYPTO): Likewise.
29124 (RS6000_BTM_COMMON): Likewise.
29125
29126 * config/rs6000/rs6000.md (cpu attribute): Add power8.
29127 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29128 (enum rs6000_vector): Add power8 vector support.
29129
29130 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29131
29132 PR target/19599
29133 PR target/57340
29134 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29135 (any_sibcall_could_use_r3): this and handle indirect calls.
29136 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29137
29138 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29139
29140 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29141
29142 2013-05-22 Richard Biener <rguenther@suse.de>
29143
29144 PR middle-end/57349
29145 * profile.c (branch_prob): Do not split blocks that are
29146 abnormally receiving from ECF_RETURNS_TWICE functions.
29147
29148 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29149
29150 * recog.c (offsettable_address_addr_space_p): Fix calculation of
29151 address mode. Move pointer mode initialization to the same place.
29152
29153 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29154
29155 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29156 while it has any effect.
29157
29158 2013-05-21 Easwaran Raman <eraman@google.com>
29159
29160 PR tree-optimization/57322
29161 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29162 UID of the statement added to the BB to be 1.
29163
29164 2013-05-21 Jakub Jelinek <jakub@redhat.com>
29165
29166 PR tree-optimization/57331
29167 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29168 of conversion from pointer type to integral type with integer.
29169
29170 2013-05-21 Martin Jambor <mjambor@suse.cz>
29171
29172 PR lto/57289
29173 * ipa-prop.c (ipa_read_node_info): Process param_used and
29174 controlled_uses in the same order as when writing.
29175
29176 2013-05-21 Magnus Granberg <baldrick@free.fr>
29177
29178 PR plugins/56754
29179 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29180
29181 2013-05-21 Richard Biener <rguenther@suse.de>
29182
29183 PR tree-optimization/57318
29184 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29185 estimate stmts with side-effects as likely eliminated.
29186
29187 2013-05-21 Richard Biener <rguenther@suse.de>
29188
29189 PR tree-optimization/57330
29190 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29191 preserve the call stmts fntype.
29192
29193 2013-05-21 Richard Biener <rguenther@suse.de>
29194
29195 PR tree-optimization/57303
29196 * tree-ssa-sink.c (statement_sink_location): Improve killing
29197 stmt detection and properly handle self-assignments.
29198
29199 2013-05-21 Christian Bruel <christian.bruel@st.com>
29200
29201 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29202 spanning registers. LEAF_REG_REMAP is supported only for contiguous
29203 registers. Set register size out of the PARALLEL loop.
29204
29205 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
29206
29207 PR target/56547
29208 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29209 (*fmasf4, *fmasf4_media): New insns.
29210
29211 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29212
29213 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29214 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29215 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29216 (mips_idiv_insns): Update the comments to say that the returned
29217 instruction counts are in units of BASE_INSN_LENGTH.
29218 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29219 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
29220 using 2 rather than 4 as the length of indirect MIPS16 and
29221 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
29222 length of a NOP. Don't divide MIPS16 lengths by 2.
29223 (mips16_split_long_branches): Assume a branch is long if the
29224 length is greater than 4 rather than 8.
29225 * config/mips/mips.md (length): Give MIPS16 lengths directly,
29226 rather than multiplying them by 2. Multiply instruction counts
29227 by BASE_INSN_LENGTH rather than 4.
29228 (*jump_mips16, tls_get_tp_mips16_<mode>)
29229 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29230
29231 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29232
29233 * config/mips/mips.md (extended_mips16): Remove branch case.
29234 (length): Remove duplicated extended_mips16 test.
29235
29236 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29237
29238 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29239
29240 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
29241
29242 * recog.h (Recog_data): Rename to...
29243 (recog_data_d): ...this.
29244 (recog_data): Update accordingly.
29245 * recog.c (recog_data): Likewise.
29246 * reload.c (save_recog_data): Likewise.
29247 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29248 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29249
29250 2013-05-17 Julian Brown <julian@codesourcery.com>
29251
29252 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29253 found in a REG_EQUAL note, invalidate it.
29254
29255 2013-05-17 Easwaran Raman <eraman@google.com>
29256
29257 * tree-ssa-reassoc.c (find_insert_point): New function.
29258 (insert_stmt_after): Likewise.
29259 (get_def_stmt): Likewise.
29260 (ensure_ops_are_available): Likewise.
29261 (not_dominated_by): Likewise.
29262 (rewrite_expr_tree): Do not move statements beyond what is
29263 necessary. Remove call to swap_ops_for_binary_stmt...
29264 (reassociate_bb): ... and move it here.
29265 (build_and_add_sum): Assign UIDs for new statements.
29266 (linearize_expr): Likewise.
29267 (do_reassoc): Renumber gimple statement UIDs.
29268
29269 2013-05-17 Jan Hubicka <jh@suse.cz>
29270
29271 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29272 weakrefs.
29273 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29274 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29275 weakrefs.
29276 (output_weakrefs): Update.
29277
29278 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
29279 Martin Jambor <mjambor@suse.cz>
29280
29281 PR middle-end/57276
29282 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29283 value that corresponds to the given aggval is found in values vector.
29284
29285 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
29286
29287 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29288 sse, sse2, sse3, ssse3 and sse4a flags to options.
29289
29290 2013-05-17 David Malcolm <dmalcolm@redhat.com>
29291
29292 * gengtype-state.c: (s_expr_writer): New class, to handle
29293 prettifying of output layout of s-expressions.
29294 (state_writer): New class, to write out gtype.state.
29295 (state_written_type_count): Move this variable into member data of
29296 state_writer.
29297 (s_expr_writer::s_expr_writer): New code: constructor for new class
29298 (state_writer::state_writer(): ditto
29299 (s_expr_writer::write_new_line): New function
29300 (s_expr_writer::write_any_indent): ditto
29301 (s_expr_writer::begin_s_expr): ditto
29302 (s_expr_writer::end_s_expr): ditto
29303 (write_state_fileloc): convert to method of state_writer...
29304 (state_writer:: write_state_fileloc): ...and use methods of
29305 s_expr_writer to write indentation into the gtype.state output file
29306 to visually represent the hierarchical structure of the list
29307 structures
29308 (write_state_fields): ditto, renaming to...
29309 (state_writer::write_state_fields)
29310 (write_state_a_string): ditto, renaming to...
29311 (state_writer::write_state_a_string)
29312 (write_state_string_option): ditto, renaming to...
29313 (state_writer::write_state_string_option)
29314 (write_state_type_option): ditto, renaming to...
29315 (state_writer::write_state_type_option)
29316 (write_state_nested_option): ditto, renaming to...
29317 (state_writer::write_state_nested_option)
29318 (write_state_option): ditto, renaming to...
29319 (state_writer::write_state_option)
29320 (write_state_options): ditto, renaming to...
29321 (state_writer::write_state_options)
29322 (write_state_lang_bitmap): ditto, renaming to...
29323 (state_writer::write_state_lang_bitmap)
29324 (write_state_version): ditto, renaming to...
29325 (state_writer::write_state_version)
29326 (write_state_scalar_type): ditto, renaming to...
29327 (state_writer::write_state_scalar_type)
29328 (write_state_string_type): ditto, renaming to...
29329 (state_writer::write_state_string_type)
29330 (write_state_undefined_type): ditto, renaming to...
29331 (state_writer::write_state_undefined_type)
29332 (write_state_struct_union_type): ditto, renaming to...
29333 (state_writer::write_state_struct_union_type)
29334 (write_state_struct_type): ditto, renaming to...
29335 (state_writer::write_state_struct_type)
29336 (write_state_user_struct_type): ditto, renaming to...
29337 (state_writer::write_state_user_struct_type)
29338 (write_state_lang_struct_type): ditto, renaming to...
29339 (state_writer::write_state_lang_struct_type)
29340 (write_state_param_struct_type): ditto, renaming to...
29341 (state_writer::write_state_param_struct_type)
29342 (write_state_pointer_type): ditto, renaming to...
29343 (state_writer::write_state_pointer_type)
29344 (write_state_array_type): ditto, renaming to...
29345 (state_writer::write_state_array_type)
29346 (write_state_gc_used): ditto, renaming to...
29347 (state_writer::write_state_gc_used)
29348 (write_state_common_type_content): ditto, renaming to...
29349 (state_writer::write_state_common_type_content)
29350 (write_state_type): ditto, renaming to...
29351 (state_writer::write_state_type)
29352 (write_state_pair_list): ditto, renaming to...
29353 (state_writer::write_state_pair_list)
29354 (write_state_pair): ditto, renaming to...
29355 (state_writer::write_state_pair)
29356 (write_state_typedefs): ditto, renaming to...
29357 (state_writer::write_state_typedefs)
29358 (write_state_structures): ditto, renaming to...
29359 (state_writer::write_state_structures)
29360 (write_state_param_structs): ditto, renaming to...
29361 (state_writer::write_state_param_structs)
29362 (write_state_variables): ditto, renaming to...
29363 (state_writer::write_state_variables)
29364 (write_state_srcdir): ditto, renaming to...
29365 (state_writer::write_state_srcdir)
29366 (write_state_files_list): ditto, renaming to...
29367 (state_writer::write_state_files_list)
29368 (write_state_languages): ditto, renaming to...
29369 (state_writer::write_state_languages)
29370 (write_state): create a state_writer instance and use it when
29371 writing out the state file
29372
29373 2013-05-17 Mike Stump <mikestump@comcast.net>
29374
29375 PR rtl-optimization/57304
29376 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29377 accessing DF_REF_REAL_LOC.
29378
29379 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29380
29381 PR rtl-optimization/57281
29382 PR rtl-optimization/57300
29383 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29384 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29385 what the other splitter did if the registers are dead.
29386
29387 2013-05-17 Richard Biener <rguenther@suse.de>
29388
29389 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29390 MEM_REF offsets.
29391
29392 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29393
29394 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29395 linking.
29396
29397 2013-05-17 Marek Polacek <polacek@redhat.com>
29398
29399 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29400 length when doing non-zero store of storing '\0' to '\0'.
29401
29402 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29403
29404 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29405 vect_external_def oprnd1 with loop_vinfo, try to emit
29406 optional cast, negation and and stmts on the loop preheader
29407 edge instead of into the pattern def seq.
29408
29409 PR tree-optimization/57051
29410 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29411 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29412
29413 2013-05-16 Nick Clifton <nickc@redhat.com>
29414
29415 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29416 (rl78_is_naked_func): New function.
29417 (rl78_expand_prologue): Skip prologue generation for naked functions.
29418 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29419 * doc/extend.texi (naked): Add RL78 to the list of processors
29420 that supports this attribute.
29421
29422 2013-05-16 Jeff Law <law@redhat.com>
29423
29424 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29425
29426 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29427
29428 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29429 cache parameters using detect_caches_amd also for CYRIX,
29430 NSC and TM2 signatures.
29431
29432 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29433 Dzianis Kahanovich <mahatma@eu.by>
29434
29435 PR target/45359
29436 PR target/46396
29437 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29438 VIA/Centaur processors and determine their cache parameters
29439 using detect_caches_amd.
29440
29441 2013-05-16 Teresa Johnson <tejohnson@google.com>
29442
29443 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29444 (rtl_verify_edges): New function.
29445 (rtl_verify_bb_insns): Ditto.
29446 (rtl_verify_bb_pointers): Ditto.
29447 (rtl_verify_bb_insn_chain): Ditto.
29448 (rtl_verify_fallthru): Ditto.
29449 (rtl_verify_bb_layout): Ditto.
29450 (rtl_verify_flow_info_1): Outline checks into new functions.
29451 (rtl_verify_flow_info): Ditto.
29452
29453 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
29454
29455 * cfghooks.c (copy_bbs): Add update_dominance argument.
29456 * cfghooks.h (copy_bbs): Update prototype.
29457 * tree-cfg.c (gimple_duplicate_sese_region):
29458 Add update_dominance argument.
29459 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29460 * tree-ssa-loop-ch.c (copy_loop_headers): Update
29461 gimple_duplicate_sese_region call.
29462 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29463 Update copy_bbs call.
29464 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29465 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29466
29467 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29468
29469 * tree-vectorizer.h (NUM_PATTERNS): Increment.
29470 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29471 vect_recog_rotate_pattern.
29472 (vect_recog_rotate_pattern): New function.
29473
29474 2013-05-16 Jason Merrill <jason@redhat.com>
29475
29476 * Makefile.in (LLINKER): New variable.
29477 (mostlyclean): Remove link mutex.
29478 * configure.ac: Handle --enable-link-mutex.
29479 * lock-and-run.sh: New script.
29480
29481 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29482
29483 PR target/19599
29484 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29485 for NULL decl.
29486
29487 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29488
29489 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29490
29491 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29492
29493 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29494 * config/arm/arm.c (next_consecutive_mem): New function.
29495 (gen_movmem_ldrd_strd): Likewise.
29496 * config/arm/arm.md (movmemqi): Update condition and code.
29497 (unaligned_loaddi, unaligned_storedi): New patterns.
29498
29499 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29500
29501 * config.gcc: Obsolete *-*-solaris2.9*.
29502 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29503
29504 2013-05-16 Richard Biener <rguenther@suse.de>
29505
29506 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29507 earlier, after GRAPHITE transforms and IV canonicalization.
29508
29509 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29510
29511 * omp-low.c (extract_omp_for_data): For collapsed loops,
29512 if at least one of the loops is known at compile time to
29513 iterate zero times, set count to 0.
29514 (expand_omp_regimplify_p): New function.
29515 (expand_omp_for_generic): For collapsed loops, if at least
29516 one of the loops isn't known to iterate at least once,
29517 add runtime check with setting count to 0.
29518 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29519 For unsigned types if it isn't known at compile time that
29520 the loop will iterate at least once, add runtime check to bypass
29521 the whole loop if initial condition isn't true.
29522
29523 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29524
29525 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29526
29527 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29528
29529 PR middle-end/57286
29530 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29531 transformations to avoid an infinite loop.
29532
29533 2013-05-16 Marek Polacek <polacek@redhat.com>
29534
29535 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29536
29537 2013-05-15 Leif Ekblad <leif@rdos.net>
29538
29539 * config/i386/i386.c (ix86_decompose_address): Use
29540 DEFAULT_TLS_SEG_REG to access TLS segment register.
29541 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29542 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29543 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29544
29545 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29546
29547 PR target/57260
29548 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29549 sibling calls to functions that would normally be lazily bound,
29550 unless $gp is call-clobbered.
29551
29552 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29553
29554 * config/i386/i386.c (ix86_option_override_internal): Update
29555 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29556 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29557 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29558 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29559 of TARGET_3DNOW.
29560 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29561
29562 2013-05-15 Andreas Schwab <schwab@suse.de>
29563
29564 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29565 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29566 third operand.
29567
29568 2013-05-15 Teresa Johnson <tejohnson@google.com>
29569
29570 * loop-unroll.c (report_unroll_peel): Check decision before
29571 emitting unroll/peel message.
29572
29573 2013-05-15 Teresa Johnson <tejohnson@google.com>
29574
29575 * function.h (has_bb_partition): New rtl_data flag.
29576 (bb_reorder_complete): Ditto.
29577 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29578 instead of flag_reorder_blocks_and_partition.
29579 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29580 with some enhancements.
29581 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29582 * bb-reorder.c (connect_traces): Check for has_bb_partition
29583 instead of flag_reorder_blocks_and_partition.
29584 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29585 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29586 verify_hot_cold_block_grouping.
29587 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29588
29589 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29590
29591 PR target/19599
29592 * config/arm/predicates.md (call_insn_operand): New predicate.
29593 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29594 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29595 if insn is not a tail call.
29596 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29597 registers.
29598 * config/arm/arm.h (enum reg_class): New caller save register class.
29599 (REG_CLASS_NAMES): Likewise.
29600 (REG_CLASS_CONTENTS): Likewise.
29601 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29602 without decls.
29603
29604 2013-05-15 Richard Biener <rguenther@suse.de>
29605
29606 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29607 of MSG_OPTIMIZED_LOCATIONS.
29608 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29609 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29610 message.
29611 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29612 of MSG_OPTIMIZED_LOCATIONS.
29613 (execute_vect_slp): Likewise.
29614 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29615 (vect_create_cond_for_alias_checks): Likewise.
29616 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29617 (vect_recog_widen_mult_pattern): Likewise.
29618 (vect_recog_widen_sum_pattern): Likewise.
29619 (vect_recog_over_widening_pattern): Likewise.
29620 (vect_recog_widen_shift_pattern): Likewise.
29621 (vect_recog_vector_vector_shift_pattern): Likewise.
29622 (vect_recog_divmod_pattern): Likewise.
29623 (vect_recog_mixed_size_cond_pattern): Likewise.
29624 (vect_recog_bool_pattern): Likewise.
29625 (vect_pattern_recog_1): Likewise.
29626
29627 2013-05-15 Martin Jambor <mjambor@suse.cz>
29628
29629 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29630 non-functions to builtin_unreachable.
29631 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29632 correct when new direct edges were discovered.
29633
29634 2013-05-15 Martin Jambor <mjambor@suse.cz>
29635
29636 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29637 header, print symbol order instead of node uid, print more information
29638 about indirect edge targets.
29639 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29640 uids.
29641 (ipa_make_edge_direct_to_target): Likewise.
29642 (remove_described_reference): Likewise.
29643 (propagate_controlled_uses): Likewise.
29644 (ipa_print_node_params): Also print symbol order.
29645 (ipcp_transform_function): Print symbol order instead of node uids.
29646 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29647 (cgraph_get_create_real_symbol_node): Likewise.
29648 * ipa-cp.c (print_lattice): Likewise.
29649 (print_all_lattices): Likewise.
29650 (determine_versionability): Likewise.
29651 (initialize_node_lattices): Likewise.
29652 (estimate_local_effects): Likewise.
29653 (update_profiling_info): Likewise.
29654 (create_specialized_node): Likewise.
29655 (perhaps_add_new_callers): Likewise.
29656 (decide_about_value): Likewise.
29657 (decide_whether_version_node): Likewise.
29658 (identify_dead_nodes): Likewise.
29659 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29660 (dump_inline_summary): Likewise.
29661 (estimate_node_size_and_time): Likewise.
29662 (inline_analyze_function): Likewise.
29663 * ipa-inline.c (report_inline_failed_reason): Likewise.
29664 (want_early_inline_function_p): Likewise.
29665 (edge_badness): Likewise.
29666 (update_edge_key): Likewise.
29667 (inline_small_functions): Likewise. Add dumping of order to two other
29668 dumps.
29669 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29670 instead of node uids.
29671 (propagate_pure_const): Likewise.
29672 (propagate_pure_const): Likewise.
29673 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29674 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29675 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29676 of node uids.
29677 * tree-pretty-print.c (dump_function_header): Likewise.
29678 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29679 Print symbol order instead of node uids.
29680
29681 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29682
29683 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29684 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29685
29686 2013-05-15 Richard Biener <rguenther@suse.de>
29687
29688 PR tree-optimization/57275
29689 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29690 return value for fail to do runtime alias checks for gather loads.
29691
29692 2013-05-15 Jan Hubicka <jh@suse.cz>
29693
29694 PR lto/57038
29695 PR lto/47375
29696 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29697 weakrefs are not external.
29698 (lto_symtab_merge_decls): Fix thinko when dealing with
29699 non-lto_symtab decls.
29700 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29701 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29702 * varpool.c (dump_varpool_node): Dump more flags.
29703
29704 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29705
29706 * config/i386/i386.c (processor_alias_table): Add instruction
29707 FSGSBASE for AMD bdver3 architecture.
29708
29709 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29710
29711 * tree.c (warn_deprecated_use): Print file:line using locus color.
29712 * diagnostic.c (diagnostic_report_current_module): Print file:line
29713 and file:line:column using locus color.
29714
29715 2013-05-14 Mike Stump <mikestump@comcast.net>
29716
29717 * gdbinit.in: Add __null.
29718
29719 2013-05-14 Mike Stump <mikestump@comcast.net>
29720
29721 * recog.h: Rename struct recog_data to Recog_data.
29722 * recog.c: Likewise.
29723 * reload.c (can_reload_into): Likewise.
29724 * config/picochip/picochip.c: Likewise.
29725
29726 2013-05-14 Mike Stump <mikestump@comcast.net>
29727
29728 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29729
29730 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29731
29732 * resource.h (struct resources): Remove unch_memory member.
29733 (CLEAR_RESOURCE): Don't clear unch_memory.
29734 * resource.c (mark_referenced_resources): Don't set it.
29735 (mark_set_resources): Likewise.
29736 (mark_target_live_regs): Don't clear it.
29737 (init_resource_info): Likewise.
29738 * reorg.c (resource_conflicts_p): Don't compare it.
29739 (redundant_insn): Don't set it.
29740
29741 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29742 Remove prototypes.
29743 * emit-rtl.c (next_label): Remove unused function.
29744 (skip_consecutive_labels, link_cc0_insns): Move to ...
29745 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29746 only place where these functions are used, and make them static.
29747
29748 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29749
29750 * fold-const.c (fold_negate_expr): Handle vectors.
29751 (fold_truth_not_expr): Make it static.
29752 (fold_invert_truthvalue): New static function.
29753 (invert_truthvalue_loc): Handle vectors. Do not call
29754 fold_truth_not_expr directly.
29755 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29756 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29757 (fold_comparison): Handle vector constants.
29758 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29759 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29760 * tree.h (fold_truth_not_expr): Remove declaration.
29761
29762 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29763
29764 * config/aarch64/aarch64-simd.md
29765 (aarch64_vcond_internal<mode>): Rename to...
29766 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29767 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29768 float modes. Clarify all iterator modes.
29769 (vcond<mode><mode>): Use new name for vcond expanders.
29770 (vcond<v_cmp_result><mode>): Likewise.
29771 (vcondu<mode><mode>: Likewise.
29772 * config/aarch64/iterators.md (VDQF_COND): New.
29773
29774 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29775
29776 PR bootstrap/57266
29777 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29778 variable for the shift amount. Check that we shift by non-negative
29779 amounts.
29780
29781 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29782
29783 PR target/42017
29784 * config/arm/arm.h (EPILOGUE_USES): Only return true
29785 for LR_REGNUM after epilogue_completed.
29786
29787 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29788
29789 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29790 is error_mark_node.
29791
29792 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29793
29794 PR target/57261
29795 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29796 and Solaris 11+/x86 with gld.
29797 * configure: Regenerate.
29798
29799 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29800
29801 * expmed.c (expand_shift_1): Canonicalize rotates by
29802 constant bitsize / 2 to bitsize - 1.
29803 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29804 case ROTATERT>: Likewise.
29805
29806 Revert:
29807 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29808
29809 * config/i386/i386.md (rotateinv): New code attr.
29810 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29811 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29812 roll $31, %eax, etc.
29813
29814 2013-05-14 Richard Biener <rguenther@suse.de>
29815
29816 PR middle-end/57235
29817 * tree-eh.c (sink_clobbers): Give up for successors with
29818 multiple predecessors and no virtual uses.
29819
29820 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29821
29822 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29823 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29824
29825 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29826
29827 PR middle-end/57251
29828 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29829 the case when both op0 and op1 have VOIDmode.
29830
29831 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29832
29833 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29834 in multiply-accumulate mode.
29835
29836 2013-05-13 Guozhi Wei <carrot@google.com>
29837
29838 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29839
29840 2013-05-13 Kai Tietz <ktietz@redhat.com>
29841
29842 PR target/56975
29843 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29844 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29845 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29846 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29847 (ix86_expand_prologue): Likewise.
29848 (ix86_expand_split_stack_prologue): Likewise.
29849 (legitimate_pic_address_disp_p): Likewise.
29850 (legitimize_pic_address): Likewise.
29851 (legitimize_tls_address): Likewise.
29852 (legitimize_pe_coff_symbol): Likewise.
29853 (output_pic_addr_const): Likewise.
29854 (construct_plt_address): Likewise.
29855 (ix86_expand_call): Likewise.
29856 (x86_output_mi_thunk): Likewise.
29857 (x86_function_profiler): Likewise.
29858
29859 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29860
29861 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29862 similar switch cases.
29863 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29864 (aarch64_simd_mov_to_<mode>low): Delete.
29865 (aarch64_simd_mov_to_<mode>high): Delete.
29866 (move_lo_quad_<mode>): Add w<-r alternative.
29867 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29868 (aarch64_simd_mov_from_*): Update type attribute.
29869 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29870 statement.
29871
29872 2013-05-13 Jan Hubicka <jh@suse.cz>
29873
29874 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29875 * config/i386/i386.c (ix86_compute_frame_layout,
29876 ix86_expand_epilogue, emit_i387_cw_initialization,
29877 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29878 ix86_local_alignment): Fix use of size/speed predicates.
29879
29880 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29881
29882 PR tree-optimization/45216
29883 PR tree-optimization/57157
29884 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29885 the (-Y) & (B - 1) variant if OP is |.
29886 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29887 return shifted. Use (-op1) & (prec - 1) as other_amount
29888 instead of prec - op1.
29889
29890 2013-05-13 Martin Jambor <mjambor@suse.cz>
29891
29892 PR middle-end/42371
29893 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29894 (ipa_constant_data): New type.
29895 (ipa_jump_func): Use ipa_constant_data to hold information about
29896 constant jump functions.
29897 (ipa_get_jf_constant): Adjust to jump function type changes.
29898 (ipa_get_jf_constant_rdesc): New function.
29899 (ipa_param_descriptor): New field controlled_uses.
29900 (ipa_get_controlled_uses): New function.
29901 (ipa_set_controlled_uses): Likewise.
29902 * ipa-ref.h (ipa_find_reference): Declare.
29903 * ipa-prop.c (ipa_cst_ref_desc): New type.
29904 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29905 changes.
29906 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29907 New parameter cs. Adjust all callers.
29908 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29909 (remove_described_reference): New function.
29910 (jfunc_rdesc_usable): Likewise.
29911 (try_make_edge_direct_simple_call): Decrement controlled use count,
29912 attempt to remove reference if it hits zero.
29913 (combine_controlled_uses_counters): New function.
29914 (propagate_controlled_uses): Likewise.
29915 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29916 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29917 (ipa_print_node_params): Print described use counter.
29918 (ipa_write_jump_function): Adjust to jump function type changes.
29919 (ipa_read_jump_function): New parameter CS, pass it to
29920 ipa_set_jf_constant. Adjust caller.
29921 (ipa_write_node_info): Stream controlled use count
29922 (ipa_read_node_info): Likewise.
29923 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29924 asserting.
29925 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29926 count. Remove cloning-added reference if it reaches zero.
29927 * ipa-ref.c (ipa_find_reference): New function.
29928
29929 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29930
29931 * config/i386/i386.c (processor_target_table): Modified default
29932 alignment values for AMD BD and BT architectures.
29933
29934 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29935
29936 * tree-vect-generic.c (uniform_vector_p): Move ...
29937 * tree.c (uniform_vector_p): ... here.
29938 * tree.h (uniform_vector_p): Declare it.
29939 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29940 into a scalar.
29941
29942 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29943
29944 PR tree-optimization/57230
29945 * tree-ssa-strlen.c (handle_char_store): Record length for
29946 array store from STRING_CST.
29947
29948 PR tree-optimization/57230
29949 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29950 check.
29951
29952 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29953
29954 * config/epiphany/epiphany.c (epiphany_init): Check size of
29955 NUM_MODES_FOR_MODE_SWITCHING.
29956 (epiphany_expand_prologue):
29957 Remove CONFIG_REGNUM initial value handling code.
29958 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29959 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29960 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29961 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29962 Don't return 1 for FP_MODE_NONE.
29963 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29964 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29965 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29966 * config/epiphany/epiphany.md (save_config): New pattern.
29967
29968 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29969
29970 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29971
29972 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29973
29974 * config/i386/i386.md (memory): Handle sseishft1.
29975 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29976 (*vec_extractv2di_1): Ditto.
29977
29978 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29979
29980 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29981 saved registers.
29982
29983 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29984
29985 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29986 Add mthumb/march=armv7-a multilib.
29987 Add mthumb/march=armv7-r multilib.
29988 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29989
29990 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29991
29992 * config/v850/t-rtems: Add more multilibs.
29993
29994 2013-05-10 Richard Biener <rguenther@suse.de>
29995
29996 PR tree-optimization/57214
29997 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29998 not propagate from SSA names that occur in abnormal PHI nodes.
29999
30000 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
30001
30002 * stor-layout.c (element_precision): New function.
30003 * machmode.h (element_precision): Declare it.
30004 * tree.c (build_minus_one_cst): New function.
30005 (element_precision): Likewise.
30006 * tree.h (build_minus_one_cst): Declare new function.
30007 (element_precision): Likewise.
30008 * fold-const.c (operand_equal_p): Use element_precision.
30009 (fold_binary_loc): Handle vector types.
30010 * convert.c (convert_to_integer): Use element_precision.
30011 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
30012 separately.
30013
30014 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
30015
30016 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
30017 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
30018 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
30019 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30020 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
30021 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
30022 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
30023 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30024 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
30025 (Uuw8): New constraints.
30026 (Usb4): Move into alphabetical order.
30027 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
30028 (sd8_operand, ub8_operand, uw8_operand): New predicates.
30029 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30030 previously unnamed patterns.
30031 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30032 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30033 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30034 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30035 of set_attr_alternative/if_then_else. Use extended_mips16 instead
30036 of specific lengths.
30037
30038 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30039
30040 * config/i386/i386.md (rotateinv): New code attr.
30041 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30042 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30043 roll $31, %eax, etc.
30044
30045 PR tree-optimization/45216
30046 PR tree-optimization/57157
30047 * tree-ssa-forwprop.c (simplify_rotate): New function.
30048 (ssa_forward_propagate_and_combine): Call it.
30049
30050 2013-05-10 Richard Biener <rguenther@suse.de>
30051
30052 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30053 disable peeling when we version for aliasing.
30054 (vector_alignment_reachable_p): Honor explicit user alignment.
30055 (vect_supportable_dr_alignment): Likewise.
30056 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30057 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30058 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30059 then peeling to arrange for the cost-model check to come first.
30060
30061 2013-05-10 Alan Modra <amodra@gmail.com>
30062
30063 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30064 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30065 * configure: Regenerate.
30066
30067 2013-05-10 Alan Modra <amodra@gmail.com>
30068
30069 PR target/55033
30070 * varasm.c (default_elf_select_section): Move !DECL_P check..
30071 (get_named_section): ..to here before calling get_section_name.
30072 Adjust assertion.
30073 (default_section_type_flags): Add DECL_P check.
30074 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30075 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30076
30077 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
30078
30079 * config/epiphany/epiphany.c (epiphany_expand_prologue):
30080 When using gen_stack_adjust_str with a register offset, add a
30081 REG_FRAME_RELATED_EXPR note.
30082
30083 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
30084
30085 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30086 (*vec_extractv4si_zext_mem): Ditto.
30087 (*vec_extractv2di): Add 0->x and x->x alternatives.
30088 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30089 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30090
30091 2013-05-09 Jason Merrill <jason@redhat.com>
30092
30093 N3639 C++1y VLA support
30094 * gimplify.c (gimplify_vla_decl): Don't touch an existing
30095 DECL_VALUE_EXPR.
30096
30097 * tree.c (build_constructor_va): New.
30098 * tree.h: Declare it.
30099
30100 2013-05-09 Martin Jambor <mjambor@suse.cz>
30101
30102 PR lto/57084
30103 * gimple-fold.c (canonicalize_constructor_val): Call
30104 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30105
30106 2013-05-09 Jan Hubicka <jh@suse.cz>
30107 Richard Biener <rguenther@suse.de>
30108
30109 PR lto/54095
30110 * symtab.c (symtab_make_decl_local): Do not add private names.
30111
30112 2013-05-09 Jan Hubicka <jh@suse.cz>
30113
30114 PR lto/54095
30115 * symtab.c (insert_to_assembler_name_hash): Handle clones.
30116 (unlink_from_assembler_name_hash): Likewise.
30117 (symtab_prevail_in_asm_name_hash, symtab_register_node,
30118 symtab_unregister_node, symtab_initialize_asm_name_hash,
30119 change_decl_assembler_name): Update.
30120
30121 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
30122
30123 * config/aarch64/aarch64.md: New movtf split.
30124 (*movtf_aarch64): Update.
30125 (aarch64_movdi_tilow): Handle TF modes and rename to
30126 aarch64_movdi_<mode>low.
30127 (aarch64_movdi_tihigh): Handle TF modes and rename to
30128 aarch64_movdi_<mode>high
30129 (aarch64_movtihigh_di): Handle TF modes and rename to
30130 aarch64_mov<mode>high_di
30131 (aarch64_movtilow_di): Handle TF modes and rename to
30132 aarch64_mov<mode>low_di
30133 (aarch64_movtilow_tilow): Remove spurious whitespace.
30134 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30135 splits.
30136 (aarch64_print_operand): Update.
30137
30138 2013-05-09 Alan Modra <amodra@gmail.com>
30139
30140 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30141 powerpc64le.
30142 * configure: Regenerate.
30143
30144 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30145
30146 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30147 splitter preparation statements.
30148 * config/i386/sse.md (*vec_extract* splitters): Ditto.
30149 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30150 adjust_address_nv.
30151
30152 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30153
30154 * gimple-ssa-strength-reduction.c (count_candidates): Change
30155 return value to int.
30156 (analyze_candidates_and_replace): Change type of length to int.
30157
30158 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30159
30160 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30161 (*vec_extract<mode>): Use VI12_128 mode iterator.
30162 (*vec_extract<mode>_mem): Ditto.
30163 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30164 attribute.
30165
30166 2013-05-08 Diego Novillo <dnovillo@google.com>
30167
30168 PR bootstrap/54659
30169
30170 Revert:
30171 2012-08-17 Diego Novillo <dnovillo@google.com>
30172
30173 PR bootstrap/54281
30174 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30175 * config.in: Regenerate.
30176 * configure: Regenerate.
30177 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30178
30179 2013-05-08 Jan Hubicka <jh@suse.cz>
30180
30181 PR lto/54095
30182 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30183 * cgraph.h (symtab_node_base): Add unique_name.
30184 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30185 input_overwrite_node, input_varpool_node): Stream unique_name.
30186 * cgraphclones.c (cgraph_create_virtual_clone,
30187 cgraph_function_versioning): Set unique_name.
30188 * ipa.c (function_and_variable_visibility): Set unique_name.
30189
30190 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30191
30192 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30193 (alloc_cand_and_find_basis): Restrict conditional candidate
30194 processing to CAND_MULTs.
30195
30196 2013-05-08 Jan Hubicka <jh@suse.cz>
30197
30198 PR lto/54095
30199 lto-symtab.c (lto_symtab_symbol_p): New function.
30200 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30201 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30202 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30203 Skip static symbols.
30204
30205 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
30206
30207 PR tree-optimization/57200
30208 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30209 Only call inform if the preceding warning_at returns true.
30210
30211 2013-05-07 Han Shen <shenhan@google.com>
30212
30213 * cfgexpand.c (record_or_union_type_has_array_p): New function.
30214 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30215 * common.opt (fstack-protector-strong): New option.
30216 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30217 * doc/invoke.texi (Optimization Options): Document
30218 "-fstack-protector-strong".
30219 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30220
30221 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30222
30223 * config/mips/mips.c (mips_machine_reorg2): Return 0.
30224
30225 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
30226
30227 * ira.c (update_equiv_regs): Add insn having equiv memory even if
30228 it is not lhs of the insn.
30229 (setup_reg_equiv): Remove insn having equiv memory which it is not
30230 lhs of the insn.
30231 * lra-constraints.c (process_address): Try to improve generation
30232 code for address base + disp.
30233 (lra_constraints): Make correct the code for checking insn setting
30234 up backward equivalence. Remove insn only if it is in the init
30235 insn list.
30236 * lra-eliminations.c (update_reg_eliminate): Change return value.
30237 (lra_eliminate): Use the result.
30238
30239 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
30240
30241 * config/i386/sse.md (ssescalarnummask): New mode attribute.
30242 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30243 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30244 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30245 register target operands.
30246 (*vec_extractv8hi_sse2): New pattern.
30247 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30248 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30249 (*vec_extract<mode>_mem): New insn and split pattern.
30250
30251 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
30252
30253 * config/arm/arm.c (arm_asan_shadow_offset): New function.
30254 (TARGET_ASAN_SHADOW_OFFSET): Define.
30255 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30256 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30257
30258 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30259
30260 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30261 (incr_vec_index): Return -1 if increment not found.
30262 (create_add_on_incoming_edge): Assert if increment not found.
30263 (record_increment): Limit number of increments recorded.
30264 (all_phi_incrs_profitable): Return false if an increment not found.
30265 (replace_profitable_candidates): Don't process increments that were
30266 not recorded.
30267 (analyze_candidates_and_replace): Limit size of incr_vec.
30268
30269 2013-05-07 Richard Biener <rguenther@suse.de>
30270
30271 * calls.c (special_function_p): setjmp-like functions are leaf.
30272 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30273 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30274
30275 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
30276
30277 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30278 (aarch64_simd_mov<mode>): New expander.
30279 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30280 (aarch64_simd_mov_to_<mode>high): Likewise.
30281 (aarch64_simd_mov_from_<mode>low): Likewise.
30282 (aarch64_simd_mov_from_<mode>high): Likewise.
30283 (aarch64_dup_lane<mode>): Update.
30284 (aarch64_dup_lanedi): New instruction pattern.
30285 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30286 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30287
30288 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30289
30290 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30291 (replace_mult_candidate): Remove unnecessary argument; remove
30292 unnecessary parameter from call to introduce_cast_before_cand.
30293 (replace_unconditional_candidate): Remove unnecessary parameter
30294 from call to replace_mult_candidate.
30295 (replace_conditional_candidate): Likewise.
30296 (insert_initializers): Use make_temp_ssa_name.
30297 (introduce_cast_before_cand): Remove unnecessary argument; use
30298 make_temp_ssa_name.
30299 (replace_one_candidate): Remove unnecessary argument; remove
30300 unnecessary parameter from calls to introduce_cast_before_cand.
30301 (replace_profitable_candidates): Remove unnecessary parameters
30302 from calls to replace_one_candidate.
30303
30304 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30305
30306 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30307 phi def as possibly hiding a basis for a CAND_ADD whose operands
30308 have been commuted in the analysis.
30309 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30310
30311 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30312
30313 * config/aarch64/aarch64.md
30314 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30315 shift value between 0-4.
30316
30317 2013-05-07 Richard Biener <rguenther@suse.de>
30318
30319 * double-int.h (rshift): New overload.
30320 * double-int.c (rshift): New function.
30321 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30322 (create_reference_ops_from_ref): Remove.
30323 (vn_reference_insert): Use shared ops for constructing the
30324 reference and copy it.
30325
30326 2013-05-07 Richard Biener <rguenther@suse.de>
30327
30328 PR middle-end/57190
30329 * tree-eh.c (sink_clobbers): Properly propagate
30330 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30331
30332 2013-05-07 Jakub Jelinek <jakub@redhat.com>
30333
30334 PR tree-optimization/57149
30335 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30336 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30337 collect_phi_def_edges, execute_late_warn_uninitialized): Use
30338 uninit_undefined_value_p instead of ssa_undefined_value_p.
30339
30340 PR debug/57184
30341 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30342 for modifier == EXPAND_INITIALIZER.
30343
30344 2013-05-07 Anton Blanchard <anton@samba.org>
30345
30346 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30347 for powerpc64 little endian.
30348 * configure: Regenerate.
30349
30350 2013-05-06 Graham Stott <grahams@btinternet.com>
30351
30352 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30353 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30354 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30355 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30356
30357 2013-05-06 Graham Stott <grahams@btinternet.com>
30358
30359 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30360 codes which allow non-lvalues.
30361
30362 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
30363
30364 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30365 components are all 1s.
30366 (integer_minus_onep): New function.
30367 * tree.h (integer_minus_onep): Declare it.
30368 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30369 integer_minus_onep instead of integer_all_onesp.
30370
30371 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30372
30373 PR target/52933
30374 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30375 variations of these patterns.
30376
30377 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30378
30379 * config/i386/i386.md (isa): Add x64_sse4 member.
30380 (enabled): Handle x64_sse4.
30381 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30382 instruction for 64bit SSE4_1 targets. Update insn attributes.
30383 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30384 instruction for SSE4_1 targets. Update insn attributes.
30385 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30386 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30387 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30388 const_1 selector.
30389 (*vec_extractv4si): Rename from *sse4_1_pextrd.
30390 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30391 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30392
30393 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30394
30395 PR target/57108
30396 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30397
30398 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
30399
30400 * final.c (do_assembler_dialects): Don't handle curly braces and
30401 vertical bar escaped by % as dialect delimiters.
30402 (output_asm_insn): Print curly braces and vertical bar if escaped
30403 by % and ASSEMBLER_DIALECT defined.
30404 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30405 * doc/tm.texi: Regenerated.
30406
30407 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30408
30409 * config/mips/mips.c: Include tree-pass.h.
30410 (mips_reorg): Split in pre- and post-dbr_schedule parts.
30411 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30412 (pass_mips_machine_reorg2): New machine specific pass.
30413 (insert_pass_mips_machine_reorg2): New pass plugin definition.
30414 (mips_option_override): Register the new pass.
30415 * rtl.h (cleanup_barriers): Remove prototype.
30416 (dbr_schedule): Likewise.
30417 * jump.c (cleanup_barriers): Make static.
30418 * reorg.c (dbr_schedule): Likewise.
30419
30420 2013-05-06 Richard Biener <rguenther@suse.de>
30421
30422 PR tree-optimization/57185
30423 * tree-parloops.c (add_field_for_reduction): Handle anonymous
30424 SSA names properly.
30425
30426 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30427
30428 PR target/57106
30429 * config/i386/i386.c (add_parameter_dependencies): Add dependence
30430 between "first_arg" and "insn", not "last" and "insn".
30431
30432 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30433
30434 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30435 (find_candidates_in_block): Re-enable slsr_process_phi.
30436 (create_phi_basis): Fix double counting of candidate adjustment.
30437
30438 2013-05-06 Richard Biener <rguenther@suse.de>
30439
30440 PR middle-end/57147
30441 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30442 the edge is also fallthru, preserve it and just clear the
30443 abnormal flag.
30444 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30445 also complex, preserve that and just clear the fallthru flag.
30446 * tree-inline.c (update_ssa_across_abnormal_edges): Also
30447 update virtual operands.
30448
30449 2013-05-06 Alan Modra <amodra@gmail.com>
30450
30451 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30452 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30453 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30454 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30455 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30456 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30457
30458 2013-05-06 Alan Modra <amodra@gmail.com>
30459
30460 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30461 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
30462 (DEFAULT_ASM_ENDIAN): Define.
30463 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30464 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30465 Update -K PIC clause from sysv4.h.
30466 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30467 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30468
30469 2013-05-06 Alan Modra <amodra@gmail.com>
30470
30471 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30472 twice for little-endian.
30473 (ashrdi3_no_power, ashrdi3): Support little-endian.
30474
30475 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30476
30477 PR target/55303
30478 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30479 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30480 related expanders.
30481 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30482 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30483 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30484 New predicates.
30485
30486 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30487 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30488
30489 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30490 * config/pa/pa.opt: Make mbig-switch a no-op.
30491 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30492 (CASE_VECTOR_MODE): Always return SImode.
30493 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30494 for the !TARGET_BIG_SWITCH case.
30495 * config/pa/pa-linux.h: Likewise.
30496 * config/pa/pa-openbsd.h: Likewise.
30497 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30498 * config/pa/pa.md (short_jump): Remove define_insn.
30499 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30500 (casesi0): Remove define_insn.
30501 (type): Remove btable_branch.
30502 (pa_combine_type): Likewise.
30503 (in_nullified_branch_delay): Likewise.
30504 (in_call_delay): Likewise.
30505 (define_delay): Likewise.
30506 (define_insn_reservation "Z3"): Likewise.
30507 (define_insn_reservation "Z4"): Likewise.
30508 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30509 (pa_adjust_insn_length): Remove adjustment for btable branches.
30510 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30511 and mno-big-switch
30512
30513 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30514
30515 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30516 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30517 Add m->r,x alternatives.
30518 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30519 splitters using SWI48x mode iterator.
30520 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30521 TARGET_64BIT. Add m->x alternative.
30522 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30523 Add o->x alternative. Enable for TARGET_SSE.
30524 (sse_storeq): Remove expander.
30525 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30526 with memory input operand.
30527 (*vec_extractv2di_1 splitter): New.
30528 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30529 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30530
30531 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30532
30533 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30534 (INT_LOWPART): Delete.
30535 (extract_MB): Adjust.
30536 (extract_ME): Adjust.
30537 (print_operand): Adjust.
30538
30539 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30540
30541 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30542 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30543 (reg_or_logical_cint_operand, easy_fp_constant,
30544 logical_const_operand): Delete "CONST_DOUBLE" case.
30545 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30546 "HOST_BITS_PER_WIDE_INT == 64" test.
30547 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30548 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30549 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30550 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30551 test.
30552 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30553 CONST_DOUBLE DImode/VOIDmode case.
30554 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30555 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30556 CONST_DOUBLE VOIDmode case.
30557 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30558 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30559 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30560 Delete CONST_DOUBLE case.
30561 (splitters for mov FMOVE64 const_double): Delete
30562 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30563 "HOST_BITS_PER_WIDE_INT >= 64" test.
30564 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30565 case.
30566 (mov DI const_double): Delete.
30567
30568 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30569
30570 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30571 on op shows all bits zero in mode of a lowpart subreg, return zero.
30572
30573 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30574
30575 PR target/57150
30576 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30577 to save TFmode registers and DImode to save TImode registers for
30578 caller save operations.
30579 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30580 mark being partially clobbered since they only use the first
30581 double word.
30582
30583 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30584 and TDmode only use the upper 64-bits of each VSX register.
30585
30586 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30587
30588 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30589 (find_candidates_in_block): Disable slsr_process_phi.
30590
30591 2013-05-03 Guozhi Wei <carrot@google.com>
30592
30593 * coverage.c (coverage_obj_init): Move the construction of gcov
30594 constructor to ...
30595 (build_init_ctor): ... here.
30596
30597 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30598
30599 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30600 (slsr_cand_d): Redefine def_phi.
30601 (stride_status, phi_adjust_status, count_phis_status): New enums.
30602 (find_phi_def): New.
30603 (find_basis_for_base_expr): New.
30604 (find_basis_for_candidate): Handle hidden bases.
30605 (alloc_cand_and_find_basis): Handle phi candidates.
30606 (slsr_process_phi): New.
30607 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30608 (create_mul_imm_cand): Likewise.
30609 (create_add_ssa_cand): Exclude phi base candidates.
30610 (create_add_imm_cand): Likewise.
30611 (slsr_process_cast): Likewise.
30612 (slsr_process_copy): Likewise.
30613 (find_candidates_in_block): Handle phi candidates.
30614 (dump_candidate): Likewise.
30615 (unconditional_cands): Delete.
30616 (unconditional_cands_with_known_stride_p): Delete.
30617 (phi_dependent_cand_p): New.
30618 (cand_increment): Handle phi-dependent candidates.
30619 (replace_dependent): Delete.
30620 (replace_mult_candidate): New.
30621 (replace_unconditional_candidate): New.
30622 (incr_vec_index): Move to avoid forward reference.
30623 (create_add_on_incoming_edge): New.
30624 (create_phi_basis): New.
30625 (replace_dependents): Delete.
30626 (replace_conditional_candidate): New.
30627 (phi_add_costs): New.
30628 (replace_uncond_cands_and_profitable_phis): New.
30629 (record_increment): Handle phi adjustments.
30630 (record_phi_increments): New.
30631 (record_increments): Handle phi adjustments.
30632 (phi_incr_cost): New.
30633 (lowest_cost_path): Handle phis.
30634 (total_savings): Likewise.
30635 (analyze_increments): Likewise.
30636 (ncd_with_phi): New.
30637 (ncd_of_cand_and_phis): New.
30638 (nearest_common_dominator_for_cands): Handle phi increments.
30639 (all_phi_incrs_profitable): New.
30640 (replace_profitable_candidates): Handle phi-dependent candidates.
30641 (analyze_candidates_and_replace): Likewise.
30642
30643 2013-05-03 Teresa Johnson <tejohnson@google.com>
30644
30645 PR bootstrap/57154
30646 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30647 do not exceed REG_BR_PROB_BASE.
30648
30649 2013-05-03 Jeff Law <law@redhat.com>
30650
30651 PR tree-optimization/57144
30652 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30653 operand of the condition will bit into the new type when eliminating
30654 a cast feeding a condition.
30655
30656 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30657
30658 PR rtl-optimization/57130
30659 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30660 of COMPARE as in_code to the recursive call if needed.
30661
30662 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30663
30664 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30665 (enabled): Handle new members.
30666 * config/i386/sse.md (*vec_concatv2si): Merge from
30667 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30668 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30669
30670 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30671
30672 PR tree-optimization/57027
30673 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30674 for fnms opportunity, check we got the prerequisite kind
30675 of tree / gimple before using accessor functions.
30676
30677 2013-05-03 Richard Biener <rguenther@suse.de>
30678
30679 * double-int.h (lshift): New overload without precision
30680 and arith argument.
30681 (operator *=, operator +=, operator -=): Move ...
30682 * double-int.c (operator *=, operator +=, operator -=): ... here
30683 and implement more efficiently.
30684 (mul_double_with_sign): Remove.
30685 (lshift_double): Adjust to take unsinged shift argument, push
30686 dispatching code to callers.
30687 (mul_double_wide_with_sign): Add early out for callers that
30688 are not interested in high parts or overflow.
30689 (lshift): New function.
30690 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30691 dispatch code here.
30692 (lrotate, rrotate): Use logical shifts.
30693 * expr.c (get_inner_reference): Use lshift.
30694 * fixed-value.c (do_fixed_divide): Likewise.
30695 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30696 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30697 (indirect_refs_may_alias_p): Likewise.
30698 (stmt_kills_ref_p_1): Likewise.
30699
30700 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30701
30702 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30703
30704 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30705
30706 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30707 scalar form of FABD instruction.
30708
30709 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30710
30711 * lra-constraints.c (process_alt_operands): Add checking alt
30712 number to choose the best alternative.
30713
30714 2013-05-02 Richard Biener <rguenther@suse.de>
30715
30716 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30717 bitmap and its handling.
30718 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30719
30720 2013-05-02 Richard Biener <rguenther@suse.de>
30721
30722 PR middle-end/57140
30723 * tree-inline.c (copy_loops): Properly handle removed loops.
30724 (copy_cfg_body): Mark destination loops for fixup if source
30725 loops needed fixup.
30726
30727 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30728
30729 PR target/56732
30730 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30731 generating simple_return for naked functions.
30732
30733 2013-05-02 Martin Jambor <mjambor@suse.cz>
30734
30735 PR middle-end/56988
30736 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30737 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30738 flags match.
30739 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30740 ipa_agg_replacement_value structures.
30741 (known_aggs_to_agg_replacement_list): Likewise.
30742 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30743 (read_agg_replacement_chain): Likewise.
30744 (ipcp_transform_function): Also check that by_ref flags match.
30745
30746 2013-05-02 Richard Biener <rguenther@suse.de>
30747
30748 * graphds.h (struct graph): Add obstack member.
30749 * graphds.c (new_graph): Initialize obstack and allocate
30750 vertices from it.
30751 (add_edge): Allocate edge from the obstack.
30752 (free_graph): Free the obstack instead of all edges and vertices.
30753
30754 2013-05-02 Teresa Johnson <tejohnson@google.com>
30755
30756 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30757 divides.
30758 * cfg.c (update_bb_profile_for_threading): Ditto.
30759 * tree-inline.c (copy_bb): Ditto.
30760 (copy_edges_for_bb): Ditto.
30761 (initialize_cfun): Ditto.
30762 (copy_cfg_body): Ditto.
30763 (expand_call_inline): Ditto.
30764 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30765 (estimate_node_size_and_time): Ditto.
30766 (inline_merge_summary): Ditto.
30767 * cgraphclones.c (cgraph_clone_edge): Ditto.
30768 (cgraph_clone_node): Ditto.
30769 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30770 (compute_trg_info): Ditto.
30771
30772 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30773
30774 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30775 S reg when fp attribute set.
30776 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30777
30778 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30779
30780 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30781 New pattern.
30782 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30783 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30784 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30785
30786 2013-05-02 Richard Biener <rguenther@suse.de>
30787
30788 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30789 (struct instantiate_cache_entry): New type.
30790 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30791 (struct instantiate_cache_type): New type.
30792 (set_instantiated_value, get_instantiated_value): Remove.
30793 (get_instantiated_value_entry): New function.
30794 (instantiate_scev_name): Use the new cache and adjust.
30795 (instantiate_scev_poly): Adjust.
30796 (instantiate_scev_binary): Likewise.
30797 (instantiate_array_ref): Likewise.
30798 (instantiate_scev_convert): Likewise.
30799 (instantiate_scev_not): Likewise.
30800 (instantiate_scev_3): Likewise.
30801 (instantiate_scev_2): Likewise.
30802 (instantiate_scev_r): Likewise.
30803 (instantiate_scev): Likewise.
30804 (resolve_mixers): Likewise.
30805
30806 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30807
30808 PR target/57091
30809 * lra-constraints.c (best_small_class_operands_num): Remove.
30810 (process_alt_operands): Remove small_class_operands_num. Take
30811 small classes operands into losers and only if the operand is not
30812 matched. Modify debugging output.
30813 (curr_insn_transform): Remove best_small_class_operands_num.
30814 Print insn name.
30815
30816 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30817
30818 * config/aarch64/aarch64-builtins.c
30819 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30820 * config/aarch64/aarch64-simd-builtins.def
30821 (reduc_splus_): Add new modes.
30822 (reduc_uplus_): New.
30823 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30824 (reduc_uplus_v4sf): Likewise.
30825 (reduc_splus_v4sf): Likewise.
30826 (aarch64_addv<mode>): Likewise.
30827 (reduc_uplus_<mode>): Likewise.
30828 (reduc_splus_<mode>): Likewise.
30829 (aarch64_addvv2di): Likewise.
30830 (reduc_uplus_v2di): Likewise.
30831 (reduc_splus_v2di): Likewise.
30832 (aarch64_addvv2si): Likewise.
30833 (reduc_uplus_v2si): Likewise.
30834 (reduc_splus_v2si): Likewise.
30835 (reduc_<sur>plus_<mode>): New.
30836 (reduc_<sur>plus_v2di): Likewise.
30837 (reduc_<sur>plus_v2si): Likewise.
30838 (reduc_<sur>plus_v4sf): Likewise.
30839 (aarch64_addpv4sf): Likewise.
30840 * config/aarch64/arm_neon.h
30841 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30842 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30843 add UNSPEC_SADDV, UNSPEC_UADDV.
30844 (SUADDV): New.
30845 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30846
30847 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30848
30849 * config/aarch64/arm_neon.h
30850 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30851
30852 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30853
30854 * config/aarch64/aarch64-builtins
30855 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30856
30857 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30858
30859 * config/aarch64/aarch64-simd-builtins.def
30860 (reduc_smax_): New.
30861 (reduc_smin_): Likewise.
30862 (reduc_umax_): Likewise.
30863 (reduc_umin_): Likewise.
30864 (reduc_smax_nan_): Likewise.
30865 (reduc_smin_nan_): Likewise.
30866 (fmax): Remove.
30867 (fmin): Likewise.
30868 (smax): Update for V2SF, V4SF and V2DF modes.
30869 (smin): Likewise.
30870 (smax_nan): New.
30871 (smin_nan): Likewise.
30872 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30873 (<su><maxmin><mode>3): ...This, refactor.
30874 (s<maxmin><mode>3): New.
30875 (<maxmin_uns><mode>3): Likewise.
30876 (reduc_<maxmin_uns>_<mode>): Refactor.
30877 (reduc_<maxmin_uns>_v4sf): Likewise.
30878 (reduc_<maxmin_uns>_v2si): Likewise.
30879 (aarch64_<fmaxmin><mode>: Remove.
30880 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30881 new builtin names.
30882 (vmin<q>_f<32,64>): Likewise.
30883 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30884 (FMAXMIN): New.
30885 (su): Add mappings for smax, smin, umax, umin.
30886 (maxmin): New.
30887 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30888 (FMAXMIN): Rename as...
30889 (FMAXMIN_UNS): ...This.
30890 (maxminv): Remove.
30891 (fmaxminv): Likewise.
30892 (fmaxmin): Likewise.
30893 (maxmin_uns): New.
30894 (maxmin_uns_op): Likewise.
30895
30896 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30897
30898 * config/aarch64/arm_neon.h
30899 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30900 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30901 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30902
30903 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30904
30905 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30906 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30907
30908 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30909
30910 * config/aarch64/aarch64-simd.md
30911 (vcond<mode>_internal): Handle special cases for constant masks.
30912 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30913 (vcondu<mode><mode>): Likewise.
30914 (vcond<v_cmp_result><mode>): New.
30915
30916 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30917
30918 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30919 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30920 * config/aarch64/aarch64-simd-builtins.def
30921 (cmeq): Update to BUILTIN_VALLDI.
30922 (cmgt): Likewise.
30923 (cmge): Likewise.
30924 (cmle): Likewise.
30925 (cmlt): Likewise.
30926 * config/aarch64/arm_neon.h
30927 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30928 to builtins or C as appropriate.
30929
30930 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30931
30932 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30933 (cmgeu): ...This.
30934 (cmhi): Rename to...
30935 (cmgtu): ...This.
30936 * config/aarch64/aarch64-simd.md
30937 (simd_mode): Add SF.
30938 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30939 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30940 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30941 (cstore<mode>_neg): ...This.
30942 * config/aarch64/iterators.md
30943 (VALLF): new.
30944 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30945 (COMPARISONS): New.
30946 (UCOMPARISONS): Likewise.
30947 (optab): Add missing comparisons.
30948 (n_optab): New.
30949 (cmp_1): Likewise.
30950 (cmp_2): Likewise.
30951 (CMP): Likewise.
30952 (cmp): Remove.
30953 (VCMP_S): Likewise.
30954 (VCMP_U): Likewise.
30955 (V_cmp_result): Add DF, SF modes.
30956 (v_cmp_result): Likewise.
30957 (v): Likewise.
30958 (vmtype): Likewise.
30959 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30960
30961 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30962
30963 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30964 define_insn to define_insn_and_split.
30965 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30966 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30967 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30968 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30969 (thumb2_negscc): Likewise.
30970
30971 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30972
30973 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30974
30975 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30976
30977 * config/arm/thumb2.md: Remove trailing whitespaces.
30978
30979 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30980
30981 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30982 Use gen_int_mode rather than GEN_INT.
30983
30984 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30985
30986 * value-prof.c (stream_in_histogram_value): Remove the strayed
30987 debug_gimple_stmt.
30988
30989 2013-04-30 Richard Biener <rguenther@suse.de>
30990
30991 PR middle-end/57122
30992 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30993
30994 2013-04-30 Richard Biener <rguenther@suse.de>
30995
30996 PR middle-end/57107
30997 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30998
30999 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
31000
31001 PR rtl-optimization/56957
31002 PR rtl-optimization/57105
31003 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
31004 variable. Use just INSN_UID for determining whether an insn
31005 should be only disconnected from the insn stream.
31006 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
31007
31008 2013-04-30 Jakub Jelinek <jakub@redhat.com>
31009
31010 PR tree-optimization/57104
31011 * tsan.c (instrument_expr): Don't instrument accesses to
31012 DECL_HARD_REGISTER VAR_DECLs.
31013
31014 2013-04-30 Richard Biener <rguenther@suse.de>
31015
31016 * function.h (loops_for_fn): New inline function.
31017 (set_loops_for_fn): Likewise.
31018 * cfgloop.h (place_new_loop): Add struct function parameter.
31019 (get_loop): Likewise.
31020 (get_loops): Likewise.
31021 (number_of_loops): Likewise.
31022 (fel_next): Adjust.
31023 (fel_init): Likewise.
31024 * cfg.c (get_loop_copy): Adjust.
31025 * cfgloop.c (flow_loops_dump): Likewise.
31026 (record_loop_exits): Likewise.
31027 (verify_loop_structure): Likewise.
31028 * cfgloopanal.c (mark_irreducible_loops): Likewise.
31029 (estimate_reg_pressure_cost): Likewise.
31030 (mark_loop_exit_edges): Likewise.
31031 * cfgloopmanip.c (place_new_loop): Likewise.
31032 (add_loop): Likewise.
31033 (duplicate_loop): Likewise.
31034 * graph.c (draw_cfg_nodes): Likewise.
31035 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31036 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31037 (extract_affine_chrec): Likewise.
31038 (build_scop_iteration_domain): Likewise.
31039 * graphite.c (graphite_initialize): Likewise.
31040 * ira-build.c (create_loop_tree_nodes): Likewise.
31041 (more_one_region_p): Likewise.
31042 (rebuild_regno_allocno_maps): Likewise.
31043 (mark_loops_for_removal): Likewise.
31044 (mark_all_loops_for_removal): Likewise.
31045 (remove_unnecessary_regions): Likewise.
31046 (ira_build): Likewise.
31047 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31048 * loop-init.c (fix_loop_structure): Likewise.
31049 (gate_rtl_move_loop_invariants): Likewise.
31050 (gate_rtl_unswitch): Likewise.
31051 (gate_rtl_unroll_and_peel_loops): Likewise.
31052 (rtl_doloop): Likewise.
31053 * lto-streamer-in.c (input_cfg): Likewise.
31054 * lto-streamer-out.c (output_cfg): Likewise.
31055 * modulo-sched.c (sms_schedule): Likewise.
31056 * predict.c (tree_estimate_probability): Likewise.
31057 (tree_estimate_probability_driver): Likewise.
31058 (estimate_loops): Likewise.
31059 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31060 (move_sese_region_to_fn): Likewise.
31061 (debug_loop_num): Likewise.
31062 * tree-chrec.c (chrec_evaluate): Likewise.
31063 (hide_evolution_in_other_loops_than_loop): Likewise.
31064 (chrec_component_in_loop_num): Likewise.
31065 (reset_evolution_in_loop): Likewise.
31066 (evolution_function_is_invariant_rec_p): Likewise.
31067 * tree-if-conv.c (main_tree_if_conversion): Likewise.
31068 * tree-inline.c (copy_loops): Likewise.
31069 (copy_cfg_body): Likewise.
31070 (tree_function_versioning): Likewise.
31071 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31072 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31073 Likewise.
31074 (add_to_evolution_1): Likewise.
31075 (scev_const_prop): Likewise.
31076 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31077 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31078 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31079 (tree_ssa_lim_initialize): Likewise.
31080 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31081 (verify_loop_closed_ssa): Likewise.
31082 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
31083 (tree_ssa_loop_im): Likewise.
31084 (tree_ssa_loop_unswitch): Likewise.
31085 (tree_vectorize): Likewise.
31086 (check_data_deps): Likewise.
31087 (tree_ssa_loop_ivcanon): Likewise.
31088 (tree_ssa_loop_bounds): Likewise.
31089 (tree_complete_unroll): Likewise.
31090 (tree_complete_unroll_inner): Likewise.
31091 (tree_parallelize_loops): Likewise.
31092 (tree_ssa_loop_prefetch): Likewise.
31093 (tree_ssa_loop_ivopts): Likewise.
31094 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31095 * tree-vectorizer.c (vectorize_loops): Likewise.
31096
31097 2013-04-29 Mike Frysinger <vapier@gentoo.org>
31098
31099 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31100 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31101 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31102 with EABI_LINK_SPEC.
31103
31104 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31105
31106 PR target/44578
31107 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31108 alternative.
31109
31110 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
31111
31112 PR target/57097
31113 * lra-constraints.c (process_alt_operands): Discourage a bit more
31114 using memory for pseudos. Print cost dump for alternatives.
31115 Modify cost values for conflicts with early clobbers.
31116 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31117
31118 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31119
31120 PR target/57098
31121 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31122
31123 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31124
31125 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31126 from/to S register.
31127 (movdi_aarch64): Support LDR/STR from/to D register.
31128
31129 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31130
31131 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31132 or higher by default.
31133
31134 2013-04-29 Richard Biener <rguenther@suse.de>
31135
31136 PR middle-end/57075
31137 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31138 even if not adding abnormal edges for calls that can make
31139 abnormal gotos.
31140
31141 2013-04-29 Richard Biener <rguenther@suse.de>
31142
31143 PR middle-end/57103
31144 * tree-cfg.c (move_stmt_op): Fix condition under which to update
31145 TREE_BLOCK.
31146 (move_stmt_r): Remove redundant checking.
31147
31148 2013-04-29 Teresa Johnson <tejohnson@google.com>
31149
31150 PR bootstrap/57077
31151 * basic-block.h (apply_scale): New function.
31152 (apply_probability): Use apply_scale.
31153 * gimple-streamer-in.c (input_bb): Ditto.
31154 * lto-streamer-in.c (input_cfg): Ditto.
31155 * lto-cgraph.c (merge_profile_summaries): Ditto.
31156 * tree-optimize.c (execute_fixup_cfg): Ditto.
31157 * tree-inline.c (copy_bb): Update comment to use apply_scale.
31158 (copy_edges_for_bb): Ditto.
31159 (copy_cfg_body): Ditto.
31160
31161 2013-04-29 Tom de Vries <tom@codesourcery.com>
31162
31163 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31164 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31165 (tail_merge_optimize): Handle current_loops == NULL.
31166
31167 2013-04-26 Jeff Law <law@redhat.com>
31168
31169 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31170 (simplify_cond_using_ranges): Generalize code to simplify
31171 COND_EXPRs where one argument is a constant and the other
31172 is an SSA_NAME created by an integral type conversion.
31173
31174 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31175
31176 * config/arm/arm.md (store_minmaxsi): Use only when
31177 optimize_insn_for_size_p.
31178
31179 2013-04-29 Christian Bruel <christian.bruel@st.com>
31180
31181 PR target/57108
31182 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31183
31184 2013-04-29 Richard Biener <rguenther@suse.de>
31185
31186 PR middle-end/57089
31187 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31188 loop tree make sure to schedule a fixup for the child as well.
31189 (expand_omp_for_generic): Properly add loops.
31190 (expand_omp_for_static_nochunk): Likewise.
31191 (expand_omp_for_static_chunk): Likewise.
31192 (expand_omp_for): For the degenerate case fixup loops.
31193 (expand_omp_sections): Fix default bb placement in loops.
31194 (expand_omp_atomic_pipeline): Properly add loops.
31195
31196 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31197
31198 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31199
31200 2013-04-29 Tom de Vries <tom@codesourcery.com>
31201
31202 * tree-ssa-tail-merge.c: Update header comment.
31203
31204 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31205
31206 * config/aarch64/arm_neon.h
31207 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31208 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31209 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31210 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31211 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31212 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31213 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31214 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31215
31216 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31217
31218 * config/aarch64/aarch64-simd.md
31219 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31220 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31221 fix_trunc, fixuns_trunc.
31222 (ftrunc<VDQF:mode>2): New.
31223 * config/aarch64/iterators.md (optab): Add fix, fixuns.
31224 (fix_trunc_optab): New.
31225
31226 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31227
31228 * config/aarch64/aarch64-builtins.c
31229 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31230 iceilf, lround, iroundf.
31231
31232 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31233
31234 PR target/54349
31235 * config/i386/i386.h (enum ix86_tune_indices)
31236 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31237 New, split from X86_TUNE_INTER_UNIT_MOVES.
31238 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31239 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31240 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31241 (TARGET_INTER_UNIT_MOVES): Remove.
31242 * config/i386/i386.c (initial_ix86_tune_features): Update.
31243 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31244 (ix86_expand_convert_uns_didf_sse): Use
31245 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31246 (ix86_expand_vector_init_one_nonzero): Ditto.
31247 (ix86_expand_vector_init_interleave): Ditto.
31248 (inline_secondary_memory_needed): Return true for moves from SSE class
31249 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31250 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31251 * config/i386/constraints.md (Yi, Ym): Depend on
31252 TARGET_INTER_UNIT_MOVES_TO_VEC.
31253 (Yj, Yn): New constraints.
31254 * config/i386/i386.md (*movdi_internal): Change constraints of
31255 operand 1 from Yi to Yj and from Ym to Yn.
31256 (*movsi_internal): Ditto.
31257 (*movdf_internal): Ditto.
31258 (*movsf_internal): Ditto.
31259 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31260 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31261 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31262 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31263 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31264 * config/i386/sse.md (movdi_to_sse): Ditto.
31265 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31266 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31267 TARGET_INTER_UNIT_MOVES.
31268 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31269 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31270 instead of TARGET_INTER_UNIT_MOVES.
31271 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31272 operand 1 from Yi to Yj and from Ym to Yn.
31273
31274 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31275
31276 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31277 (float_truncate_hi_): Likewise.
31278 (float_extend_lo_): Likewise.
31279 (float_truncate_lo_): Likewise.
31280 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31281 (aarch64_float_extend_lo_v2df): Likewise.
31282 (vec_unpacks_hi_v4sf): Likewise.
31283 (aarch64_float_truncate_lo_v2sf): Likewise.
31284 (aarch64_float_truncate_hi_v4sf): Likewise.
31285 (vec_pack_trunc_v2df): Likewise.
31286 (vec_pack_trunc_df): Likewise.
31287
31288 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31289
31290 * config/aarch64/aarch64-builtins.c
31291 (aarch64_fold_builtin): Fold float conversions.
31292 * config/aarch64/aarch64-simd-builtins.def
31293 (floatv2si, floatv4si, floatv2di): New.
31294 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31295 * config/aarch64/aarch64-simd.md
31296 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31297 * config/aarch64/iterators.md (FLOATUORS): New.
31298 (optab): Add float, floatuns.
31299 (su_optab): Likewise.
31300
31301 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31302
31303 * config/aarch64/aarch64-builtins.c
31304 (aarch64_builtin_vectorized_function): Use new names for
31305 fcvt builtins.
31306 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31307 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31308 (fcvtzu): Split as...
31309 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31310 (fcvtas): Split as...
31311 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31312 (fcvtau): Split as...
31313 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31314 (fcvtps): Split as...
31315 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31316 (fcvtpu): Split as...
31317 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31318 (fcvtms): Split as...
31319 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31320 (fcvtmu): Split as...
31321 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31322 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31323 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31324 (lfrintnusf, lfrintnudf): Likewise.
31325 * config/aarch64/aarch64-simd.md
31326 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31327 define_insn.
31328 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31329 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31330 (fcvt_pattern): Likewise.
31331
31332 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31333
31334 * config/aarch64/aarch64-simd.md
31335 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31336 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31337
31338 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31339
31340 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31341 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31342 (vrnd<a,m,n,p>_f32): Implement using builtins.
31343 (vrnd<i,x><q>_f<32, 64>): New.
31344
31345 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31346
31347 * config/aarch64/aarch64-builtins.c
31348 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31349 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31350 (frintz): Rename to...
31351 (btrunc): ...this.
31352 (frintp): Rename to...
31353 (ceil): ...this.
31354 (frintm): Rename to...
31355 (floor): ...this.
31356 (frinti): Rename to...
31357 (nearbyint): ...this.
31358 (frintx): Rename to...
31359 (rint): ...this.
31360 (frinta): Rename to...
31361 (round): ...this.
31362 * config/aarch64/aarch64-simd.md
31363 (aarch64_frint<frint_suffix><mode>): Delete.
31364 (<frint_pattern><mode>2): Convert to insn.
31365 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31366 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31367 (frint_pattern): Likewise.
31368 (frint_suffix): Likewise.
31369
31370 2013-04-29 Richard Biener <rguenther@suse.de>
31371
31372 PR tree-optimization/57081
31373 * loop-init.c: Include tree-flow.h.
31374 (loop_optimizer_finalize): Free number of iteration estimates.
31375 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31376
31377 2013-04-29 Jakub Jelinek <jakub@redhat.com>
31378
31379 PR tree-optimization/57083
31380 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31381 non-singleton shift count range, zero extend low_bound for uns case.
31382
31383 * config/i386/predicates.md (general_vector_operand): New predicate.
31384 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31385 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31386 if they aren't nonimmediate operands. If their original values
31387 satisfy const_vector_equal_evenodd_p, don't shift them.
31388 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31389 predicates. For the SSE4.1 case force operands[{1,2}] into registers
31390 if not nonimmediate_operand.
31391 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31392 instead of register_operand.
31393 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31394
31395 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
31396
31397 * stor-layout.c (finalize_size_functions): Allocate a structure and
31398 reset cfun before dumping the functions.
31399
31400 2013-04-27 Jakub Jelinek <jakub@redhat.com>
31401
31402 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31403
31404 PR target/56866
31405 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31406 use xop_pmacsdqh if uns_p.
31407 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31408 the immediate rotate count.
31409
31410 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
31411
31412 * rtl.h (struct rtx_def): Add comment for field jump.
31413 (LRA_SUBREG_P): New macro.
31414 * recog.c (register_operand): Check LRA_SUBREG_P.
31415 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31416 stack frame.
31417 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31418 (lra_final_code_change): Skip subreg change for operators.
31419 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31420 if there are no operand changes.
31421 * lra-constraints.c (curr_insn_set): New.
31422 (match_reload): Set LRA_SUBREG_P.
31423 (emit_spill_move): Ditto.
31424 (check_and_process_move): Use curr_insn_set. Process only single
31425 set insns. Don't initialize sec_mem_p and change_p.
31426 (simplify_operand_subreg): Use LRA_SUBREG_P.
31427 (reg_in_class_p): New function.
31428 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31429 of #ifdef. Add code to remove cycling.
31430 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31431 non-null disp. Reload inner instead of disp when base and index
31432 are null. Try to put lo_sum into register.
31433 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31434 (check_and_process_move): Move code for move cost check to
31435 simple_move_p. Remove equiv_substitution.
31436 (simple_move_p): New function.
31437 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31438 curr_insn_set. Call check_and_process_move only for single set
31439 insns. Use the new function. Move call of check_and_process_move
31440 after operand equiv substitution and address process.
31441
31442 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31443
31444 PR go/57045
31445 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31446 with nonlocal goto receivers or returns twice calls, ignore
31447 unininitialized values from abnormal edges to nl goto receiver
31448 or returns twice call.
31449
31450 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31451
31452 PR tree-optimization/57051
31453 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31454 and VEC_RSHIFT_EXPR if shift count is a multiple of element
31455 bitsize.
31456
31457 2013-04-26 Richard Biener <rguenther@suse.de>
31458
31459 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31460 (expand_omp_taskreg): Likewise. Mark loops for fixup.
31461 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31462 (fixup_loop_arrays_after_move): New function.
31463 (move_sese_region_to_fn): Properly outline the loop tree parts
31464 of the SESE region.
31465
31466 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
31467
31468 * config/i386/i386.md (type, unit): Fix long lines.
31469
31470 2013-04-26 Richard Biener <rguenther@suse.de>
31471
31472 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31473 (lto-streamer-out.o): Likewise.
31474 * cfgloop.c (init_loops_structure): Export, add struct function
31475 argument and adjust.
31476 (flow_loops_find): Adjust.
31477 * cfgloop.h (enum loop_estimation): Add EST_LAST.
31478 (init_loops_structure): Declare.
31479 * lto-streamer-in.c: Include cfgloop.h.
31480 (input_cfg): Input the loop tree.
31481 * lto-streamer-out.c: Include cfgloop.h.
31482 (output_cfg): Output the loop tree.
31483 (output_struct_function_base): Do not drop PROP_loops.
31484
31485 2013-03-26 Richard Biener <rguenther@suse.de>
31486
31487 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31488 (pass_build_cfg): Provide PROP_loops.
31489 (move_sese_region_to_fn): Remove loops that are outlined into fn
31490 for now.
31491 * tree-inline.c: Include cfgloop.h.
31492 (initialize_cfun): Do not drop PROP_loops.
31493 (copy_loops): New function.
31494 (copy_cfg_body): Copy loop structure.
31495 (tree_function_versioning): Initialize destination loop tree.
31496 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31497 (pass_parallelize_loops): Do IL verification.
31498 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31499 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31500 the CFG make sure we fixup loops as well.
31501 * tree-ssa-tail-merge.c: Include cfgloop.h.
31502 (replace_block_by): When merging loop latches mark loops for fixup.
31503 * lto-streamer-out.c (output_struct_function_base): Drop
31504 PROP_loops for now.
31505 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31506 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31507 * ipa-split.c: Include cfgloop.h.
31508 (split_function): Add the new return block to the loop tree root.
31509 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31510 whether we have removed the forwarder block.
31511 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31512 * cfgloop.h (place_new_loop): Declare.
31513 * cfgloopmanip.c (place_new_loop): Export.
31514 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31515 (tree-switch-conversion.o): Likewise.
31516 (tree-complex.o): Likewise.
31517 (tree-inline.o): Likewise.
31518 (tree-ssa-tailmerge.o): Likewise.
31519 (ipa-split.o): Likewise.
31520 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31521 (tree-ssa-copy.o): Likewise.
31522 * tree-switch-conversion.c: Include cfgloop.h
31523 (process_switch): If we emit a bit-test cascade, schedule loops
31524 for fixup.
31525 * tree-complex.c: Include cfgloop.h.
31526 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31527 * asan.c: Include cfgloop.h.
31528 (create_cond_insert_point): Properly add new basic-blocks to
31529 loops, schedule loop fixup.
31530 * cfgloop.c (verify_loop_structure): Check that looks are not
31531 marked for fixup.
31532 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31533 to loops.
31534 (expand_omp_for_generic): Likewise.
31535 (expand_omp_sections): Likewise.
31536 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31537 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31538 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31539 is initialized, not when loops are present.
31540 * tree-parloops.c (parallelize_loops): Remove checking here.
31541 * passes.c (init_optimization_passes): Schedule a copy-propagation
31542 pass before complete unrolling of inner loops.
31543
31544 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31545
31546 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31547 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31548 (colorize_init): Add argument to _WIN32 version.
31549 * toplev.c: Include diagnostic-color.h.
31550 (process_options): Default to -fdiagnostics-color=auto if
31551 GCC_COLORS env var is in the environment.
31552 * common.opt (fdiagnostics-color=): Add Var and Init.
31553 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31554 env var is in the environment, the default is auto rather than never.
31555
31556 * diagnostic.h (file_name_as_prefix): Add context argument.
31557 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31558 the string as locus.
31559 * langhooks.c (lhd_print_error_function): Adjust caller.
31560
31561 2013-04-25 Lawrence Crowl <crowl@google.com>
31562
31563 * var-tracking.c (shared_hash_def::htab):
31564 Change type to hash_table. Update dependent calls and types.
31565
31566 2013-04-25 Lawrence Crowl <crowl@google.com>
31567
31568 * Makefile.in: Update as needed below.
31569
31570 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31571 Move declaration to after the type's method definitons.
31572
31573 * attribs.c (htab_t scoped_attributes::attribute_hash):
31574 Change type to hash_table. Update dependent calls and types.
31575
31576 * bitmap.c (htab_t bitmap_desc_hash):
31577 Change type to hash_table. Update dependent calls and types.
31578
31579 * cselib.c (htab_t cselib_hash_table):
31580 Change type to hash_table. Update dependent calls and types.
31581
31582 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31583 (hash_string_slot_node): Move implementation into lto-streamer.h
31584 struct string_slot_hasher.
31585 (eq_string_slot_node): Likewise.
31586
31587 * data-streamer-out.c: Update output_block::string_hash_table
31588 dependent calls and types.
31589
31590 * dwarf2cfi.c (htab_t trace_index):
31591 Change type to hash_table. Update dependent calls and types.
31592
31593 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31594 Change type to hash_table. Update dependent calls and types.
31595 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31596 (htab_t optimize_external_refs::map): Likewise.
31597 (htab_t output_comp_unit::extern_map): Likewise.
31598 (htab_t output_comdat_type_unit::extern_map): Likewise.
31599 (htab_t output_macinfo::macinfo_htab): Likewise.
31600 (htab_t optimize_location_lists::htab): Likewise.
31601 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31602
31603 * except.c (htab_t ehspec_hash_type):
31604 Change type to hash_table. Update dependent calls and types.
31605 (assign_filter_values::ttypes): Likewise.
31606 (assign_filter_values::ehspec): Likewise.
31607 (sjlj_assign_call_site_values::ar_hash): Likewise.
31608 (convert_to_eh_region_ranges::ar_hash): Likewise.
31609
31610 * gcse.c (htab_t pre_ldst_table):
31611 Change type to hash_table. Update dependent calls and types.
31612
31613 * ggc-common.c (htab_t saving_htab):
31614 Change type to hash_table. Update dependent calls and types.
31615 (htab_t loc_hash): Likewise.
31616 (htab_t ptr_hash): Likewise.
31617 (call_count): Rename ggc_call_count.
31618 (call_alloc): Rename ggc_call_alloc.
31619 (loc_descriptor): Rename make_loc_descriptor.
31620 (add_statistics): Rename ggc_add_statistics.
31621
31622 * ggc-common.c (saving_htab):
31623 Change type to hash_table. Update dependent calls and types.
31624
31625 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31626 (push_gimplify_context): Likewise.
31627 (pop_gimplify_context): Likewise.
31628 (struct gimple_temp_hash_elt): Added.
31629 (struct gimplify_hasher): Likewise.
31630 (struct gimplify_ctx.temp_htab):
31631 Change type to hash_table. Update dependent calls and types.
31632
31633 * gimple-fold.c: Include gimplify-ctx.h.
31634
31635 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31636 Change type to hash_table. Update dependent calls and types.
31637 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31638 avoid potential global name collision.
31639
31640 * gimplify.c: Include gimplify-ctx.h.
31641 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31642 (htab_t gimplify_ctx::temp_htab):
31643 Update dependent calls and types for new type hash_table.
31644 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31645 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31646
31647 * gimplify-ctx.h: New.
31648 (struct gimple_temp_hash_elt): Move from gimplify.c.
31649 (class gimplify_hasher): New.
31650 (struct gimplify_ctx): Move from gimple.h.
31651 (htab_t gimplify_ctx::temp_htab):
31652 Change type to hash_table. Update dependent calls and types.
31653
31654 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31655 (htab_t ivs_params::newivs_index):
31656 Change type to hash_table. Update dependent calls and types.
31657 (htab_t ivs_params::params_index): Likewise.
31658 (htab_t print_generated_program::params_index): Likewise.
31659 (htab_t gloog::newivs_index): Likewise.
31660 (htab_t gloog::params_index): Likewise.
31661
31662 * graphite.c: Include graphite-htab.h.
31663 4htab_t graphite_transform_loops::bb_pbb_mapping):
31664 Change type to hash_table. Update dependent calls and types.
31665
31666 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31667 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31668 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31669
31670 * graphite-dependences.c: Include graphite-htab.h.
31671 (loop_is_parallel_p): Change hash table type of parameter.
31672
31673 * graphite-htab.h: New.
31674 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31675 (extern find_pbb_via_hash): Move from graphite-poly.h.
31676 (extern loop_is_parallel_p): Move from graphite-poly.h.
31677 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31678
31679 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31680 (extern loop_is_parallel_p): Move to graphite-htab.h.
31681 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31682
31683 * haifa-sched.c (htab_t delay_htab):
31684 Change type to hash_table. Update dependent calls and types.
31685 (htab_t delay_htab_i2): Likewise.
31686
31687 * ira-color.c (htab_t allocno_hard_regs_htab):
31688 Change type to hash_table. Update dependent calls and types.
31689
31690 * ira-costs.c (htab_t cost_classes_htab):
31691 Change type to hash_table. Update dependent calls and types.
31692
31693 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31694 Change type to hash_table. Update dependent calls and types.
31695
31696 * loop-iv.c (htab_t bivs):
31697 Change type to hash_table. Update dependent calls and types.
31698
31699 * loop-unroll.c (htab_t opt_info::insns_to_split):
31700 Change type to hash_table. Update dependent calls and types.
31701 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31702
31703 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31704 (struct string_slot_hasher): New.
31705 (htab_t output_block::string_hash_table):
31706 Change type to hash_table. Update dependent calls and types.
31707
31708 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31709 (htab_t file_name_hash_table):
31710 Change type to hash_table. Update dependent calls and types.
31711
31712 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31713 calls and types.
31714
31715 * lto-streamer.c (htab_t tree_htab):
31716 Change type to hash_table. Update dependent calls and types.
31717
31718 * omp-low.c: Include gimplify-ctx.h.
31719
31720 * passes.c (htab_t name_to_pass_map):
31721 Change type to hash_table. Update dependent calls and types.
31722 (pass_traverse): Rename to passes_pass_traverse.
31723
31724 * plugin.c (htab_t event_tab):
31725 Change type to hash_table. Update dependent calls and types.
31726
31727 * postreload-gcse.c (htab_t expr_table):
31728 Change type to hash_table. Update dependent calls and types.
31729 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31730
31731 * sese.c (debug_rename_map_1): Make extern.
31732 (htab_t copy_bb_and_scalar_dependences::rename_map):
31733 Change type to hash_table. Update dependent calls and types.
31734
31735 * sese.h (extern debug_rename_map): Move to .c file.
31736
31737 * store-motion.c (htab_t store_motion_mems_table):
31738 Change type to hash_table. Update dependent calls and types.
31739
31740 * trans-mem.c (htab_t tm_new_mem_hash):
31741 Change type to hash_table. Update dependent calls and types.
31742
31743 * tree-browser.c (htab_t TB_up_ht):
31744 Change type to hash_table. Update dependent calls and types.
31745
31746 * tree-cfg.c (htab_t discriminator_per_locus):
31747 Change type to hash_table. Update dependent calls and types.
31748
31749 * tree-complex.c: Include tree-hasher.h
31750 (htab_t complex_variable_components):
31751 Change type to hash_table. Update dependent calls and types.
31752
31753 * tree-eh.c (htab_t finally_tree):
31754 Change type to hash_table. Update dependent calls and types.
31755
31756 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31757 struct int_tree_hasher.
31758 (extern int_tree_map_eq): Likewise.
31759 (uid_decl_map_hash): Removed.
31760 (extern decl_tree_map_eq): Likewise.
31761
31762 * tree-hasher.h: New.
31763 (struct int_tree_hasher): New.
31764 (typedef int_tree_htab_type): New.
31765
31766 * tree-inline.c: Include gimplify-ctx.h.
31767
31768 * tree-mudflap.c: Include gimplify-ctx.h.
31769
31770 * tree-parloops.c: Include tree-hasher.h.
31771 (htab_t eliminate_local_variables_stmt::decl_address):
31772 Change type to hash_table. Update dependent calls and types.
31773 (htab_t separate_decls_in_region::decl_copies): Likewise.
31774
31775 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31776 Change type to hash_table. Update dependent calls and types.
31777
31778 * tree-sra.c (candidates):
31779 Change type to hash_table. Update dependent calls and types.
31780
31781 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31782 in tree-flow.h.
31783 (int_tree_map_hash): Likewise.
31784
31785 * tree-ssa-dom.c (htab_t avail_exprs):
31786 Change type to hash_table. Update dependent calls and types.
31787
31788 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31789 Change type to hash_table. Update dependent calls and types.
31790
31791 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31792 Change type to hash_table. Update dependent calls and types.
31793
31794 * tree-ssa-phiopt.c (seen_ssa_names):
31795 Change type to hash_table. Update dependent calls and types.
31796
31797 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31798 Change type to hash_table. Update dependent calls and types.
31799
31800 * tree-ssa-uncprop.c (equiv):
31801 Change type to hash_table. Update dependent calls and types.
31802
31803 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31804
31805 PR rtl-optimization/57003
31806 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31807 call note_stores with kill_clobbered_value callback again after
31808 killing regs_invalidated_by_call.
31809
31810 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31811
31812 * config/aarch64/aarch64-simd.md
31813 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31814 (aarch64_simd_bsl<mode>): Likewise.
31815 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31816
31817 2013-04-25 Marek Polacek <polacek@redhat.com>
31818
31819 PR tree-optimization/57066
31820 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31821
31822 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31823
31824 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31825
31826 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31827
31828 * config/aarch64/aarch64-builtins.c
31829 (aarch64_fold_builtin): New.
31830 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31831 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31832 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31833 * config/aarch64/arm_neon.h
31834 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31835
31836 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31837 Tejas Belagod <tejas.belagod@arm.com>
31838
31839 * config/aarch64/aarch64-builtins.c
31840 (aarch64_gimple_fold_builtin): New.
31841 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31842 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31843 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31844 (addvv4sf): Update.
31845 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31846
31847 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31848
31849 * config/aarch64/aarch64.md
31850 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31851
31852 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31853
31854 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31855 (*ngcsi_uxtw): New pattern.
31856
31857 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31858 Julian Brown <julian@codesourcery.com>
31859
31860 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31861 (TB_DREG): Add T_V4HF.
31862 (v4hf_UP): New macro.
31863 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31864 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31865 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31866 built-ins.
31867 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31868 (arm_vector_mode_supported_p): Handle V4HF.
31869 (arm_mangle_map): Handle V4HFmode.
31870 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31871 * config/arm/arm_neon_builtins.def: Add entries for
31872 vcvtv4hfv4sf, vcvtv4sfv4hf.
31873 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31874 (neon_vcvtv4hfv4sf): Likewise.
31875 * config/arm/neon-gen.ml: Handle half-precision floating point
31876 features.
31877 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31878 * config/arm/arm_neon.h: Regenerate.
31879 * config/arm/neon.ml (type elts): Add F16.
31880 (type vectype): Add T_float16x4, T_floatHF.
31881 (type vecmode): Add V4HF.
31882 (type features): Add Requires_FP_bit feature.
31883 (elt_width): Handle F16.
31884 (elt_class): Likewise.
31885 (elt_of_class_width): Likewise.
31886 (mode_of_elt): Refactor.
31887 (type_for_elt): Handle F16, fix error messages.
31888 (vectype_size): Handle T_float16x4.
31889 (vcvt_sh): New function.
31890 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31891 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31892 (string_of_mode): Handle V4HF.
31893 * doc/arm-neon-intrinsics.texi: Regenerate.
31894
31895 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31896
31897 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31898 format specifier in 'X' case.
31899
31900 2013-04-25 Alan Modra <amodra@gmail.com>
31901
31902 PR target/57052
31903 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31904 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31905 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31906 Repeat for many other rotate/shift and mask patterns using subregs.
31907 Name lshiftrt insns.
31908 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31909 on WORDS_BIG_ENDIAN.
31910
31911 2013-04-25 Alan Modra <amodra@gmail.com>
31912
31913 * config.gcc: Support little-endian powerpc-linux targets.
31914 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31915 (LINK_OS_LINUX_SPEC): Define.
31916 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31917 Preserve MASK_LITTLE_ENDIAN.
31918 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31919 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31920 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31921 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31922 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31923 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31924 Correct fp word order for little-endian. Don't shift toc entries
31925 smaller than a word for little-endian.
31926 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31927 (bswapdi2 splits): Correct low-part subreg for little-endian.
31928 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31929 low/high where such is correct only for be.
31930 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31931 little-endian for -mcall-aixdesc.
31932
31933 2013-04-25 Alan Modra <amodra@gmail.com>
31934
31935 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31936 replace_equiv_address_nv.
31937
31938 2013-04-25 Alan Modra <amodra@gmail.com>
31939
31940 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31941
31942 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31943
31944 Revert:
31945 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31946 * rtl.h (struct rtx_def): ...
31947
31948 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31949
31950 PR rtl-optimizations/57046
31951 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31952 for multi-reg splits.
31953
31954 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31955
31956 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31957
31958 2013-04-24 Sterling Augustine <saugustine@google.com>
31959
31960 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31961 (comp_dir_string, debug_str_dwo_section): New.
31962 (DEBUG_STR_DWO_SECTION): Rename to ...
31963 (DEBUG_DWO_STR_SECTION): ... this.
31964 (DEBUG_NORM_STR_SECTION): Delete.
31965 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31966 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31967 (find_AT_string): Move most logic to ...
31968 (find_AT_string_in_table): ... here. New.
31969 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31970 add_skeleton_AT_string. Delete logic.
31971 (output_skeleton_debug_sections): Remove call to
31972 add_top_level_skeleton_die_attrs.
31973 (add_comp_dir_attribute): Move logic to comp_dir_string.
31974 (dwarf2out_init): Initialize debug_str_dwo_section.
31975 (output_indirect_string): Call find_string_form.
31976 (output_indirect_strings): Rewrite.
31977 (prune_unused_types): Empty skeleton_debug_str_hash.
31978 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31979 (dwarf2out_finish): Call output_indirect_strings.
31980
31981 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31982
31983 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31984
31985 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31986
31987 * rtl.h (struct rtx_def): Add comment for field jump.
31988 (LRA_SUBREG_P): New macro.
31989 * recog.c (register_operand): Check LRA_SUBREG_P.
31990 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31991 stack frame.
31992 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31993 (lra_final_code_change): Skip subreg change for operators.
31994 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31995 if there are no operand changes.
31996 * lra-constraints.c (curr_insn_set): New.
31997 (match_reload): Set LRA_SUBREG_P.
31998 (emit_spill_move): Ditto.
31999 (check_and_process_move): Use curr_insn_set. Process only single
32000 set insns. Don't initialize sec_mem_p and change_p.
32001 (simplify_operand_subreg): Use LRA_SUBREG_P.
32002 (reg_in_class_p): New function.
32003 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
32004 of #ifdef. Add code to remove cycling.
32005 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
32006 non-null disp. Reload inner instead of disp when base and index
32007 are null. Try to put lo_sum into register.
32008 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
32009 (check_and_process_move): Move code for move cost check to
32010 simple_move_p. Remove equiv_substitution.
32011 (simple_move_p): New function.
32012 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
32013 curr_insn_set. Call check_and_process_move only for single set
32014 insns. Use the new function. Move call of check_and_process_move
32015 after operand equiv substitution and address process.
32016
32017 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
32018
32019 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
32020 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
32021 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
32022
32023 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32024
32025 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
32026
32027 2013-04-24 Marek Polacek <polacek@redhat.com>
32028
32029 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32030 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32031 (select_loops_exit_conditions): Likewise.
32032 (number_of_iterations_for_all_loops): Likewise.
32033 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32034 (scev_analysis): Likewise.
32035
32036 2013-04-02 Catherine Moore <clm@codesourcery.com>
32037 Chao-ying Fu <fu@mips.com>
32038
32039 * config/mips/micromips.md (jraddiusp): New pattern.
32040 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32041 instruction if possible.
32042
32043 2013-04-24 Alan Modra <amodra@gmail.com>
32044
32045 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32046
32047 2013-04-24 Julian Brown <julian@codesourcery.com>
32048 Chung-Lin Tang <cltang@codesourcery.com>
32049
32050 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32051 dependency behavior in enumeration type DIE generation. Add TODO note
32052 to comments about future DW_FORM_sdata/udata re-work of related code.
32053
32054 2013-04-23 Lawrence Crowl <crowl@google.com>
32055
32056 * Makefile.in: Update as needed below.
32057
32058 * hash-table.h (class hash_table):
32059 Correct many methods with parameter types compare_type to the correct
32060 value_type. (Correct code was unlikely to notice the change.)
32061 (hash_table::elements_with_deleted) New.
32062 (class hashtable::iterator): New.
32063 (hashtable::begin()): New.
32064 (hashtable::end()): New.
32065 (FOR_EACH_HASH_TABLE_ELEMENT): New.
32066
32067 * statistics.c (statistics_hashes):
32068 Change type to hash_table. Update dependent calls and types.
32069
32070 * tree-into-ssa.c (var_infos):
32071 Change type to hash_table. Update dependent calls and types.
32072
32073 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32074 Change type to hash_table. Update dependent calls and types.
32075
32076 * tree-ssa-loop-im.c (struct mem_ref.refs):
32077 Change type to hash_table. Update dependent calls and types.
32078
32079 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32080 Change type to hash_table. Update dependent calls and types.
32081
32082 * tree-ssa-sccvn.c (vn_tables_s::nary):
32083 Change type to hash_table. Update dependent calls and types.
32084 (vn_tables_s::phis): Likewise.
32085 (vn_tables_s::references): Likewise.
32086
32087 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32088 (vn_reference_eq): Update parameter and return types.
32089
32090 * tree-ssa-structalias.c (pointer_equiv_class_table):
32091 Change type to hash_table. Update dependent calls and types.
32092 (location_equiv_class_table): Likewise.
32093
32094 * tree-vect-data-refs.c: Consequential changes for making
32095 peeling a hash_table.
32096
32097 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32098 (destroy_loop_vec_info): Dependent hash_table update.
32099
32100 * tree-vectorizer.h (peeling_htab):
32101 Change type to hash_table. Update dependent calls and types.
32102
32103 2013-04-23 Shiva Chen <shiva0217@gmail.com>
32104
32105 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32106 to check the register content is equal or not.
32107 * lra-constraints.c (match_reload): Use lra_assign_reg_val
32108 to assign register content record.
32109 * lra-eliminations.c (update_reg_eliminate): Use
32110 lra_update_reg_val_offset to update register content offset.
32111 * lra-int.h (struct lra_reg): Add offset member.
32112 (lra_reg_val_equal_p): New static inline function.
32113 (lra_update_reg_val_offset): New static inline function.
32114 (lra_assign_reg_val): New static inline function.
32115 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32116 to assign register content record.
32117 (initialize_lra_reg_info_element): Initial offset to zero.
32118
32119 2013-04-23 Catherine Moore <clm@codesourcery.com>
32120
32121 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32122 operands. Record compression.
32123
32124 2013-04-23 Xinliang David Li <davidxl@google.com>
32125
32126 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32127
32128 2013-04-23 Richard Biener <rguenther@suse.de>
32129
32130 PR middle-end/57036
32131 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32132 parameter, only add abnormal goto edges from the copied body
32133 if the call could perform abnormal gotos.
32134 (copy_cfg_body): Adjust.
32135
32136 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
32137
32138 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32139
32140 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
32141
32142 * coretypes.h (gimple_stmt_iterator): Add struct to make
32143 compatible with C.
32144
32145 2013-04-23 Richard Biener <rguenther@suse.de>
32146
32147 PR tree-optimization/57026
32148 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32149 from SSA names occuring in abnormal PHI nodes.
32150
32151 2013-04-22 Andi Kleen <ak@linux.intel.com>
32152
32153 * lto/lto.c (print_lto_report_1): Fix LTO report names.
32154
32155 2013-04-22 Andi Kleen <ak@linux.intel.com>
32156
32157 * lto/lto.c (print_lto_report_1): Declare early.
32158 (read_cgraph_and_symbols): Call print_lto_report_1 early.
32159
32160 2013-04-22 Andi Kleen <ak@linux.intel.com>
32161
32162 * common.opt (-flto-report-wpa): Add.
32163 * doc/invoke.texi (-flto-report-wpa): Add.
32164 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32165 (lto_main): dito.
32166
32167 2013-04-22 Xinliang David Li <davidxl@google.com>
32168
32169 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32170 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32171 * Makefile.in: New dependency
32172
32173 David Daney <ddaney.cavm@gmail.com>
32174
32175 * configure.ac (gcc_cv_as_micromips_support): Use the
32176 --fatal-warnings option.
32177 * configure: Regenerate.
32178
32179 2013-04-22 Marek Polacek <polacek@redhat.com>
32180
32181 PR sanitizer/56990
32182 * tsan.c (instrument_expr): Don't instrument expression
32183 in case its size is zero.
32184
32185 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
32186
32187 PR target/57032
32188 Revert:
32189 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32190
32191 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32192
32193 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32194
32195 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32196 (gimple_stmt_iterator): New typedef.
32197 * gimple.h (gimple_stmt_iterator): Rename to...
32198 (gimple_stmt_iterator_d): ... This.
32199 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32200 trees be valid for GIMPLE and GENERIC.
32201 (TARGET_GIMPLE_FOLD_BUILTIN): New.
32202 * gimple-fold.c (gimple_fold_call): Call target hook
32203 gimple_fold_builtin.
32204 * hooks.c (hook_bool_gsiptr_false): New.
32205 * hooks.h (hook_bool_gsiptr_false): New.
32206 * target.def (fold_stmt): New.
32207 * doc/tm.texi: Regenerate.
32208
32209 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
32210
32211 PR target/57018
32212 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32213 a set sp if no stack realignment.
32214
32215 2013-04-22 Nick Clifton <nickc@redhat.com>
32216
32217 * config.gcc (tilegx-linux): Extend extra_objs rather than
32218 overwriting it.
32219 (tilepro-linux): Likewise.
32220
32221 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32222
32223 * config/aarch64/aarch64-builtins.c
32224 (CF): Remove.
32225 (CF0, CF1, CF2, CF3, CF4, CF10): New.
32226 (VAR<1-12>): Add MAP parameter.
32227 (BUILTIN_*): Likewise.
32228 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32229 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32230 (aarch64_ushl_n<mode>): Likewise.
32231 (aarch64_sshr_n<mode>): Likewise.
32232 (aarch64_ushr_n<mode>): Likewise.
32233 (aarch64_<maxmin><mode>): Likewise.
32234 (aarch64_sqrt<mode>): Likewise.
32235 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32236 (vshr<q>_n_*): Likewise.
32237
32238 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32239
32240 * config/aarch64/aarch64-builtins.c
32241 (aarch64_simd_builtin_type_mode): Handle SF types.
32242 (sf_UP): Define.
32243 (BUILTIN_GPF): Define.
32244 (aarch64_init_simd_builtins): Handle SF types.
32245 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32246 (frecps): Likewise.
32247 (frecpx): Likewise.
32248 * config/aarch64/aarch64-simd.md
32249 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32250 (aarch64_frecpe<mode>): New.
32251 (aarch64_frecps<mode>): Likewise.
32252 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32253 (v8type): Add frecp<esx>.
32254 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32255 (aarch64_frecps<mode>): Likewise.
32256 * config/aarch64/iterators.md (FRECP): New.
32257 (frecp_suffix): Likewise.
32258 * config/aarch64/arm_neon.h
32259 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32260
32261 2013-04-22 Christian Bruel <christian.bruel@st.com>
32262
32263 PR target/56995
32264 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32265 (REG_CLASS_NAMES): Idem.
32266 (REG_CLASS_CONTENTS): Idem.
32267 (REGCLASS_HAS_FP_REG): Idem.
32268 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32269 (sh_conditional_register_usage): Idem.
32270
32271 2013-04-21 Jeff Law <law@redhat.com>
32272
32273 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32274 (ssa_forward_propagate_and_combine): Use it.
32275
32276 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32277
32278 * lra.c: Update the flow chart diagram.
32279
32280 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32281
32282 PR rtl-optimization/56847
32283 * lra-constraints.c (process_alt_operands): Discourage alternative
32284 with non-matche doffsettable memory constraint fro memory with
32285 known offset.
32286
32287 2013-04-19 Richard Biener <rguenther@suse.de>
32288
32289 PR tree-optimization/56982
32290 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32291 function.
32292 * gimplify.c (gimplify_call_expr): Notice special calls.
32293 (gimplify_modify_expr): Likewise.
32294 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32295 abnormal control flow receivers.
32296 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32297 in the same way as cfun->has_nonlocal_labels.
32298 (gimple_purge_dead_abnormal_call_edges): Likewise.
32299 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32300 receivers start a basic-block.
32301
32302 2013-04-19 Richard Biener <rguenther@suse.de>
32303
32304 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32305 member ...
32306 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
32307 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32308 (SLP_TREE_LOAD_PERMUTATION): Add.
32309 (vect_transform_slp_perm_load): Adjust prototype.
32310 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32311 (vect_free_slp_instance): Likewise.
32312 (vect_create_new_slp_node): Likewise.
32313 (vect_supported_slp_permutation_p): Remove.
32314 (vect_slp_rearrange_stmts): Adjust.
32315 (vect_supported_load_permutation_p): Likewise. Inline
32316 vect_supported_slp_permutation_p here.
32317 (vect_analyze_slp_instance): Compute load permutations per
32318 slp node instead of per instance.
32319 (vect_get_slp_defs): Adjust.
32320 (vect_transform_slp_perm_load): Likewise.
32321 (vect_schedule_slp_instance): Remove redundant code.
32322 (vect_schedule_slp): Remove hack for PR56270, add it ...
32323 * tree-vect-stmts.c (vectorizable_load): ... here, do not
32324 CSE loads for SLP. Adjust.
32325
32326 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32327
32328 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32329 spelling in two comments.
32330
32331 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32332
32333 PR target/56797
32334 * config/arm/arm.c (load_multiple_sequence): Require SP
32335 as base register for loads if SP is in the register list.
32336
32337 2013-04-19 Martin Jambor <mjambor@suse.cz>
32338
32339 PR tree-optimization/56718
32340 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32341 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32342 and made public. Adjusted all callers.
32343 (ipa_intraprocedural_devirtualization): New function.
32344 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32345 (ipa_intraprocedural_devirtualization): Likewise.
32346 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32347
32348 2013-04-19 Richard Biener <rguenther@suse.de>
32349
32350 PR tree-optimization/57000
32351 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32352
32353 2013-04-19 Terry Guo <terry.guo@arm.com>
32354
32355 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32356 Replace with ...
32357 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
32358 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32359 (cortex_m4_fmacs): Use new reservations.
32360 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32361
32362 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
32363
32364 PR rtl-optimization/56999
32365 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32366 related code.
32367 (lra_coalesce): Remove split_origin_bitmap and related code.
32368 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
32369 ranges if necessary.
32370
32371 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
32372
32373 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32374 New array.
32375 (ix86_expand_call): Remove clobbered_registers array and use
32376 x86_64_ms_sysv_extra_clobbered_registers instead.
32377 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32378 Declare here.
32379 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32380 predicate.
32381 * config/i386/i386.md (*call_rex64_ms_sysv): Use
32382 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
32383 (*call_value_rex64_ms_sysv): Ditto.
32384
32385 2013-04-18 Cary Coutant <ccoutant@google.com>
32386
32387 * dwarf2out.c (output_pubnames): Check die_perennial_p of
32388 parent instead of die_mark.
32389
32390 2013-04-18 Diego Novillo <dnovillo@google.com>
32391
32392 * gimple.c (create_gimple_tmp): New.
32393 (get_expr_type): New.
32394 (build_assign): New.
32395 (build_type_cast): New.
32396 * gimple.h (enum ssa_mode): Define.
32397 (gimple_seq_set_location): New.
32398 * asan.c (build_check_stmt): Change some gimple_build_* calls
32399 to use build_assign and build_type_cast.
32400
32401 2013-04-18 Richard Biener <rguenther@suse.de>
32402
32403 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32404 handle negative step. Remove redundant checks.
32405 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32406 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32407 for negative step and grouped loads fail to vectorize.
32408
32409 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32410
32411 * emit-rtl.c (reset_insn_used_flags): New function.
32412 (reset_all_used_flags): Use it.
32413 (verify_insn_sharing): New function.
32414 (verify_rtl_sharing): Fix verification for SEQUENCEs.
32415
32416 2013-04-18 Jakub Jelinek <jakub@redhat.com>
32417
32418 PR tree-optimization/56984
32419 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32420 and (x >> M) >= N don't register any assertion if N << M is the
32421 minimum value.
32422
32423 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32424
32425 * lower-subreg.c (resolve_simple_move): If called self-recursive,
32426 do not delete_insn insns that have not yet been emitted, only
32427 unlink them with remove_insn.
32428 * df-scan.c (df_insn_delete): Revert r197492.
32429
32430 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
32431
32432 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32433 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32434
32435 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32436
32437 * config/arm/arm.md (movsicc_insn): Convert define_insn into
32438 define_insn_and_split.
32439 (and_scc,ior_scc,negscc): Likewise.
32440 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32441
32442 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32443
32444 * config/arm/arm.c (use_return_insn): Return 0 for targets that
32445 can benefit from using a sequence of LDRD instructions in epilogue
32446 instead of a single LDM instruction.
32447
32448 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
32449
32450 PR 45688
32451 * doc/extend.texi: Fix typo.
32452
32453 2013-04-17 Richard Biener <rguenther@suse.de>
32454
32455 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32456 (vect_build_slp_tree): ... here.
32457 (vect_build_slp_tree_1): Compute which stmts of the SLP group
32458 match. Remove special-casing of mismatched complex loads.
32459 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32460 re-try the match with swapped commutative operands.
32461 (vect_supported_load_permutation_p): Remove special-casing of
32462 mismatched complex loads.
32463 (vect_analyze_slp_instance): Adjust.
32464
32465 2013-04-17 Richard Biener <rguenther@suse.de>
32466
32467 PR rtl-optimization/56921
32468 * cfgloop.h (struct loop): Add simple_loop_desc member.
32469 (struct niter_desc): Mark with GTY(()).
32470 (simple_loop_desc): Do not use aux field but simple_loop_desc.
32471 * loop-iv.c (get_simple_loop_desc): Likewise.
32472 (free_simple_loop_desc): Likewise.
32473
32474 Revert
32475 2013-04-16 Richard Biener <rguenther@suse.de>
32476
32477 PR rtl-optimization/56921
32478 * loop-init.c (pass_rtl_move_loop_invariants): Add
32479 TODO_do_not_ggc_collect to todo_flags_finish.
32480 (pass_rtl_unswitch): Same.
32481 (pass_rtl_unroll_and_peel_loops): Same.
32482 (pass_rtl_doloop): Same.
32483
32484 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32485
32486 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32487 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32488 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32489 references.
32490 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32491 * tree-streamer.c (record_common_node): Adjust reference in comment.
32492
32493 2013-04-17 Terry Guo <terry.guo@arm.com>
32494
32495 * config/arm/cortex-m4.md: Add a new bypass.
32496
32497 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32498
32499 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32500 New pattern.
32501 (*subs_<optab><mode>_multp2): New pattern.
32502 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32503 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32504
32505 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32506
32507 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32508 (*subs_mul_imm_<mode>): New pattern.
32509
32510 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32511
32512 PR target/56948
32513 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32514 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32515 (vsx_movti_32bit): Change j->wa to O->wa.
32516
32517 2013-04-16 Richard Biener <rguenther@suse.de>
32518
32519 PR rtl-optimization/56921
32520 * loop-init.c (pass_rtl_move_loop_invariants): Add
32521 TODO_do_not_ggc_collect to todo_flags_finish.
32522 (pass_rtl_unswitch): Same.
32523 (pass_rtl_unroll_and_peel_loops): Same.
32524 (pass_rtl_doloop): Same.
32525
32526 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
32527
32528 * config/arm/arm.c (emit_multi_reg_push): New declaration
32529 for an existing function.
32530 (arm_emit_strd_push): New function.
32531 (arm_expand_prologue): Used here.
32532 (arm_emit_ldrd_pop): New function.
32533 (arm_expand_epilogue): Used here.
32534 (arm_get_frame_offsets): Update condition.
32535 (arm_emit_multi_reg_pop): Add a special case for load of a single
32536 register with writeback.
32537
32538 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32539
32540 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32541 description.
32542
32543 2013-04-16 Richard Biener <rguenther@suse.de>
32544
32545 PR tree-optimization/56756
32546 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32547 (first_mem_ref_loc): New.
32548 (execute_sm): Place the load temporarily before a previous
32549 access instead of in the latch edge to ensure its SSA dependencies
32550 are defined at points dominating the load.
32551
32552 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32553
32554 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32555 correct fix by moving header and footer insn to the footer of
32556 the merged basic block. Clear BB_END of the merged-away block.
32557
32558 PR middle-end/43631
32559 * emit-rtl.c (make_note_raw): New function.
32560 (link_insn_into_chain): New static inline function.
32561 (add_insn): Use it.
32562 (add_insn_before, add_insn_after): Factor insn chain linking code...
32563 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32564 using link_insn_into_chain.
32565 (note_outside_basic_block_p): New helper function for emit_note_after
32566 and emit_note_before.
32567 (emit_note_after): Use nobb variant of add_insn_after if the note
32568 should not be contained in a basic block.
32569 (emit_note_before): Use nobb variant of add_insn_before if the note
32570 should not be contained in a basic block.
32571 (emit_note_copy): Use make_note_raw.
32572 (emit_note): Likewise.
32573 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32574 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32575 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32576 the moved barrier the tail of the basic block it follows.
32577 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32578
32579 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32580
32581 PR tree-optimization/56962
32582 * gimple-ssa-strength-reduction.c (record_increment): Only set
32583 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32584 either rhs1 or rhs2 is equal to c->base_expr.
32585
32586 2013-04-15 Richard Biener <rguenther@suse.de>
32587
32588 PR tree-optimization/56933
32589 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32590 member.
32591 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32592 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32593 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32594 dependence check ...
32595 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32596 ... here.
32597 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32598 GROUP_READ_WRITE_DEPENDENCE.
32599
32600 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32601
32602 * emit-rtl.c (reset_all_used_flags): New function.
32603 (verify_rtl_sharing): Call reset_all_used_flags before and after
32604 performing the checks.
32605
32606 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32607
32608 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32609 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32610 * config/arm/constraints.md (De): New constraint.
32611 * config/arm/neon.md (anddi3_neon): Delete.
32612 (neon_vand<mode>): Expand to standard anddi3 pattern.
32613 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32614 Move earlier in the file.
32615 (neon_inv_logic_op2): Likewise.
32616 (arm_anddi_operand_neon): New predicate.
32617
32618 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32619
32620 * configure.ac (gcc_cv_ld_as_needed): Set
32621 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32622 Use -z ignore, -z record on *-*-solaris2*.
32623 (HAVE_LD_AS_NEEDED): Update comment.
32624 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32625 * configure: Regenerate.
32626 * config.in: Regenerate.
32627 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32628 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32629 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32630 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32631 equivalents. Fix markup.
32632 * doc/tm.texi: Regenerate.
32633
32634 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32635
32636 * config/i386/i386.opt: New option mstack-protector-guard=.
32637 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32638 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32639 TARGET_SSP_TLS_GUARD.
32640 * config/i386/i386.c (ix86_option_override_internal): Set
32641 ix86_stack_protector_guard.
32642 * config/i386/i386.md (stack_protect_set): Enable for
32643 TARGET_SSP_TLS_GUARD only.
32644 (stack_protect_set_<mode>): Ditto.
32645 (stack_protect_test): Ditto.
32646 (stack_protect_test_<mode>): Ditto.
32647 * doc/invoke.texi (i386 Option): Document.
32648
32649 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32650
32651 PR target/56890
32652 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32653 (S_MODES): Set H_MODE bit.
32654 (SF_MODES): Set only S_MODE and SF_MODE bits.
32655 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32656 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32657 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32658 <MODE_FLOAT>: Likewise.
32659
32660 2013-04-15 Joey Ye <joey.ye@arm.com>
32661
32662 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32663
32664 2013-04-15 Joey Ye <joey.ye@arm.com>
32665
32666 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32667 for real far jump.
32668 (thumb_far_jump_used_p): Count instruction size and set
32669 far_jump_used.
32670
32671 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32672
32673 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32674 * resource.c (mark_target_live_regs): Reformat conditional block.
32675
32676 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32677
32678 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32679 notes, they are emitted only just before final.
32680 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32681
32682 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32683
32684 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32685 * cfgrtl.c (delete_insn): Call it here instead.
32686 * lra-spills.c (lra_final_code_change): Use delete_insn.
32687 * haifa-sched.c (sched_remove_insn): Likewise.
32688 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32689 returning to the nop pool.
32690 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32691 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32692
32693 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32694
32695 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32696 * doc/tm.texi: Regenerated.
32697
32698 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32699
32700 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32701 QImode checks.
32702
32703 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32704
32705 * df-core.c (df_find_def): Compare register numbers.
32706 (df_find_use): Likewise.
32707
32708 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32709
32710 PR target/56903
32711 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32712 lra_in_progress for return.
32713
32714 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32715
32716 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32717 define_insn into define_insn_and_split and emit movsicc patterns.
32718
32719 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32720
32721 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32722
32723 2013-04-12 Richard Biener <rguenther@suse.de>
32724
32725 * tree-pass.h (TODO_do_not_ggc_collect): New.
32726 * passes.c (execute_one_ipa_transform_pass): Honor
32727 TODO_do_not_ggc_collect.
32728 (execute_one_pass): Likewise.
32729
32730 Revert
32731 2013-04-10 Richard Biener <rguenther@suse.de>
32732
32733 * passes.c (init_optimization_passes): Remove reload pass.
32734 * ira.c (do_reload): Merge into ...
32735 (ira): ... this.
32736 (rest_of_handle_reload): Remove.
32737 (pass_reload): Likewise.
32738 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32739 of reload for vzeroupper pass placement.
32740
32741 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32742
32743 PR tree-optimization/56918
32744 PR tree-optimization/56920
32745 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32746 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32747 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32748 use wide_mul_with_sign method.
32749
32750 2013-04-12 Richard Biener <rguenther@suse.de>
32751
32752 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32753 not be considered a gimple constant.
32754
32755 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32756
32757 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32758 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32759 operations.
32760
32761 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32762 Jakub Jelinek <jakub@redhat.com>
32763
32764 * opts.c: Include diagnostic-color.h.
32765 (common_handle_option): Handle OPT_fdiagnostics_color_.
32766 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32767 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32768 (diagnostic-color.o): New.
32769 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32770 (diagnostic_color_rule): New enum.
32771 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32772 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32773 the location string.
32774 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32775 either NULL, or color kind.
32776 * diagnostic-color.c: New file.
32777 * diagnostic-color.h: New file.
32778 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32779 arguments.
32780 * doc/invoke.texi (-fdiagnostics-color): Document.
32781 * pretty-print.h (pp_show_color): Define.
32782 (struct pretty_print_info): Add show_color field.
32783 * diagnostic.c: Include diagnostic-color.h.
32784 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32785 macros. Colorize error:, warning: etc. strings and also the location
32786 string.
32787 (diagnostic_show_locus): Colorize the caret line.
32788 * pretty-print.c: Include diagnostic-color.h.
32789 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32790 inside of %< %> quotes or quoted through q format modifier.
32791
32792 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32793
32794 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32795
32796 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32797
32798 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32799 code in CC_NZ mode.
32800 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32801 pattern.
32802
32803 2013-04-11 Marek Polacek <polacek@redhat.com>
32804
32805 PR tree-optimization/48184
32806 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32807
32808 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32809
32810 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32811 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32812 (skip_simple_arithmetic): Tidy up.
32813 * tree.h (skip_simple_constant_arithmetic): Declare.
32814
32815 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32816
32817 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32818
32819 2013-04-11 Richard Biener <rguenther@suse.de>
32820
32821 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32822 generate vector constants.
32823
32824 2013-04-11 Richard Biener <rguenther@suse.de>
32825
32826 PR tree-optimization/56878
32827 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32828 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32829 New function.
32830 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32831 Prefer to align the DR with the most invariant base address.
32832
32833 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32834
32835 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32836 comment.
32837
32838 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32839
32840 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32841 floating-point vector comparisons against 0.
32842
32843 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32844
32845 PR tree-optimization/56899
32846 * fold-const.c (extract_muldiv_1): Apply distributive law
32847 only if TYPE_OVERFLOW_WRAPS (ctype).
32848
32849 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32850
32851 PR target/56124
32852 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32853 loading has side effect.
32854
32855 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32856
32857 * config/sparc/sparc.c: Include tree-pass.h.
32858 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32859 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32860 head of file. Change return type. Split off gate function.
32861 (sparc_gate_work_around_errata): New function.
32862 (pass_work_around_errata): New pass definition.
32863 (insert_pass_work_around_errata) New pass insert definition to
32864 insert pass_work_around_errata just after delayed-branch scheduling.
32865 (sparc_option_override): Insert the pass.
32866 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32867
32868 2013-04-10 David S. Miller <davem@davemloft.net>
32869
32870 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32871 or -mcpu=hypersparc.
32872
32873 * target.def (cstore_mode): New hook.
32874 * target.h: Include insn-codes.h
32875 * targhooks.c: Likewise.
32876 (default_cstore_mode): New function.
32877 * targhooks.h: Declare it.
32878 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32879 * doc/tm.texi: Rebuild.
32880 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32881 target hook, rather than inspecting the insn_data.
32882 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32883 (TARGET_CSTORE_MODE): Redefine.
32884 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32885 result patterns.
32886 * config/sparc/predicates.md (cstore_result_operand): New special
32887 predicate.
32888 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32889 Use it for operand 0.
32890 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32891 (*snesi_special): Likewise.
32892 (*snesi_zero): Likewise.
32893 (*seqsi_zero): Likewise.
32894 (*sltu_insn): Likewise.
32895 (*sgeu_insn): Likewise.
32896 (*seqdi_special): Make operand 0 and comparison operation be of
32897 DImode.
32898 (*snedi_special): Likewise.
32899 (*snedi_special_vis3): Likewise.
32900 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32901 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32902 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32903 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32904 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32905 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32906 (*sltu_extend_sp64): Likewise.
32907 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32908 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32909 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32910 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32911 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32912
32913 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32914
32915 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32916 (aarch64_start_file): Use the new function.
32917
32918 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32919 Jason Merrill <jason@redhat.com>
32920
32921 * common.opt: Add -gdwarf.
32922 * opts.c (common_handle_option): Handle it.
32923 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32924
32925 2013-04-10 Richard Biener <rguenther@suse.de>
32926
32927 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32928 (execute_one_ipa_transform_pass): But unconditionally here.
32929 (execute_one_pass): And here.
32930 (init_optimization_passes): Remove reload pass.
32931 * tree-pass.h (TODO_ggc_collect): Remove.
32932 (pass_reload): Likewise.
32933 * ira.c (do_reload): Merge into ...
32934 (ira): ... this.
32935 (rest_of_handle_reload): Remove.
32936 (pass_reload): Likewise.
32937 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32938 of reload for vzeroupper pass placement.
32939 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32940 and todo_flags_finish of all passes.
32941
32942 2013-04-10 Richard Biener <rguenther@suse.de>
32943
32944 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32945 first_const_oprnd field, rename first_def_type to first_op_type.
32946 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32947 (vect_get_and_check_slp_defs): Always use the type of the
32948 operand. Allow mixed vect_external_def, vect_constant_def types.
32949 (vect_get_constant_vectors): Handle mixed vect_external_def,
32950 vect_constant_def types.
32951
32952 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32953
32954 PR tree-optimization/55524
32955 * tree-ssa-math-opts.c
32956 (convert_mult_to_fma): Don't use an fms construct
32957 when we don't have an fms operation, but fnma, and it looks
32958 likely that we'll be able to use the latter.
32959
32960 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32961
32962 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32963 function.
32964 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32965 inline fail caused by overwritable functions.
32966
32967 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32968
32969 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32970 unnecessary bits in the constant power of two case.
32971
32972 2013-04-10 Richard Biener <rguenther@suse.de>
32973
32974 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32975 broken code swapping operands.
32976 (vect_build_slp_tree): Do not compute load permutations here.
32977 (vect_analyze_slp_instance): Compute load permutations here,
32978 after building the SLP tree.
32979
32980 2013-04-09 Christian Bruel <christian.bruel@st.com>
32981
32982 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32983 of next/prev_real_insn.
32984
32985 2013-04-09 Jan Hubicka <jh@suse.cz>
32986
32987 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32988 Drop aliased parameter.
32989 (function_and_variable_visibility): Do not handle alias pairs.
32990 * cgraph.c (varpool_externally_visible_p): Update prototype.
32991 * varpool.c (varpool_add_new_variable): Update.
32992
32993 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32994
32995 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32996
32997 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32998
32999 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
33000
33001 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
33002
33003 2013-04-09 Marek Polacek <polacek@redhat.com>
33004
33005 PR tree-optimization/48762
33006 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
33007
33008 2013-04-09 Richard Biener <rguenther@suse.de>
33009
33010 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
33011 dealing with cost.
33012 (vect_build_slp_tree): Likewise.
33013 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
33014 calculating the cost of a SLP instance.
33015 (vect_analyze_slp_instance): Use it from here, after building
33016 the SLP tree.
33017
33018 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33019
33020 PR middle-end/56883
33021 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
33022 expand_omp_for_static_chunk): Use simple_p = true in
33023 force_gimple_operand_gsi calls when assigning to addressable decls.
33024
33025 2013-04-09 Jeff Law <law@redhat.com>
33026
33027 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
33028 when the boolean was created by converting a wider object which
33029 had a boolean range.
33030
33031 2013-04-09 Richard Biener <rguenther@suse.de>
33032
33033 * tree-vectorizer.h (slp_void_p): Remove.
33034 (slp_tree): Typedef before _slp_tree declaration.
33035 (struct _slp_tree): Use a vector of slp_tree as children.
33036 (vect_get_place_in_interleaving_chain): Remove.
33037 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33038 Move ...
33039 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33040 and make static.
33041 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33042 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33043 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33044 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33045 Use slp_node instead of slp_void_p and adjust.
33046
33047 2013-04-09 Richard Biener <rguenther@suse.de>
33048
33049 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33050 work that is not necessary.
33051
33052 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33053
33054 PR tree-optimization/56854
33055 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33056 forward into clobber stmts if it would change MEM_REF lhs into
33057 non-MEM_REF.
33058
33059 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
33060
33061 * tree.c (type_hash_lookup, type_hash_add): Make static.
33062 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33063
33064 2013-04-09 Richard Biener <rguenther@suse.de>
33065
33066 * tree.h (unsave_expr_now): Remove.
33067 * tree-inline.c (mark_local_for_remap_r): Remove.
33068 (unsave_expr_1): Likewise.
33069 (unsave_r): Likewise.
33070 (unsave_expr_now): Likewise.
33071 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33072 (propagate_tree_value): Likewise.
33073
33074 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
33075
33076 * doc/rtl.texi (sequence): Rewrite documentation to match the
33077 current use of SEQUENCE rtl objects.
33078 * rtl.def (SEQUENCE): Likewise.
33079
33080 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33081 Update documentation.
33082 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33083 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33084
33085 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33086
33087 2013-04-08 Teresa Johnson <tejohnson@google.com>
33088
33089 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33090 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33091 methods.
33092 (estimate_edge_size_and_time): Add comment to suggest using rounding
33093 methods.
33094 (estimate_node_size_and_time): Ditto.
33095 (remap_edge_change_prob): Use helper rounding divide methods.
33096 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33097 (gimple_mod_pow2_value_transform): Ditto.
33098 (gimple_mod_subtract_transform): Ditto.
33099 (gimple_ic_transform): Ditto.
33100 (gimple_stringops_transform): Ditto.
33101 * stmt.c (conditional_probability): Ditto.
33102 (emit_case_dispatch_table): Ditto.
33103 * lto-cgraph.c (merge_profile_summaries): Ditto.
33104 * tree-optimize.c (execute_fixup_cfg): Ditto.
33105 * cfgcleanup.c (try_forward_edges): Ditto.
33106 * cfgloopmanip.c (scale_loop_profile): Ditto.
33107 (loopify): Ditto.
33108 (duplicate_loop_to_header_edge): Ditto.
33109 (lv_adjust_loop_entry_edge): Ditto.
33110 * tree-vect-loop.c (vect_transform_loop): Ditto.
33111 * profile.c (compute_branch_probabilities): Ditto.
33112 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33113 * lto-streamer-in.c (input_cfg): Ditto.
33114 * gimple-streamer-in.c (input_bb): Ditto.
33115 * ipa-cp.c (update_profiling_info): Ditto.
33116 (update_specialized_profile): Ditto.
33117 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33118 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33119 rounding methods.
33120 * sched-rgn.c (compute_dom_prob_ps): Ditto.
33121 (compute_trg_info): Ditto.
33122 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33123 (purge_dead_edges): Ditto.
33124 * loop-unswitch.c (unswitch_loop): Ditto.
33125 * cgraphclones.c (cgraph_clone_edge): Ditto.
33126 (cgraph_clone_node): Ditto.
33127 * tree-inline.c (copy_bb): Ditto.
33128 (copy_edges_for_bb): Ditto.
33129 (initialize_cfun): Ditto.
33130 (copy_cfg_body): Ditto.
33131 (expand_call_inline): Ditto.
33132
33133 2013-04-08 Kai Tietz <ktietz@redhat.com>
33134
33135 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33136 TARGET_CYGWIN64 by TARGET_64BIT.
33137
33138 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33139
33140 * config/epiphany/epiphany.md (GPR_1): New constant.
33141 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33142 * config/epiphany/epiphany.c (gen_compare_reg):
33143 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33144 is already in place.
33145 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33146 Don't require being called during rtl expansion; If y operlaps r0,
33147 return 0.
33148 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33149 (epiphany_expand_epilogue): Likewise.
33150
33151 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33152 Don't use CC_FPmode for ORDERED / UNORDERED.
33153 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33154
33155 * config/epiphany/constraints.md (CnL): New constraint.
33156 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33157 * config/epiphany/predicates.md (add_operand): Allow 1024.
33158
33159 * config/epiphany/epiphany.md (logical_op): New code iterator.
33160 (op_mnc): New code attribute.
33161 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33162 (mov_f+1, mov_f+2): New peephole2 patterns.
33163
33164 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33165 (cstoresi4): Also allow re-use of zero result when doing a NE
33166 comparison to a non-zero operand.
33167 Use (clobber (scratch)) for first insn if the gpr output is not needed.
33168
33169 * config/epiphany/epiphany.md (<insn_opname>v2si3):
33170 Use gen_addsi3_i / gen_subsi3_i.
33171
33172 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33173
33174 PR c++/34949
33175 PR c++/50243
33176 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33177 contain anything but clobbers, at most one __builtin_stack_restore,
33178 optionally debug stmts and final resx, and if it has at least one
33179 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
33180 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33181 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33182 which isn't defaut definition, remove them.
33183 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33184 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33185 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33186 with MEM_REF LHS with SSA_NAME address.
33187
33188 2013-04-08 Jeff Law <law@redhat.com>
33189
33190 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33191
33192 2013-04-08 Richard Biener <rguenther@suse.de>
33193
33194 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33195 extra newline.
33196 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33197 determined vector type.
33198 (vect_analyze_data_refs): Likewise.
33199 (vect_get_new_vect_var): Adjust.
33200 (vect_create_destination_var): Preserve SSA name versions.
33201 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33202 not dump anything here.
33203
33204 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33205
33206 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33207 Add member lr_slot_known.
33208 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33209 if necessary.
33210 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33211 Remove code that sets lr_slot_offset according to what a previous
33212 version of epiphany_emit_save_restore used to do.
33213 (epiphany_emit_save_restore): When doing an lr save or restore,
33214 set/verify lr_slot_known and lr_slot_offset.
33215
33216 2013-04-08 Xinyu Qi <xyqi@marvell.com>
33217
33218 PR target/54338
33219 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33220 in ALL_REGS.
33221
33222 2013-04-08 Richard Biener <rguenther@suse.de>
33223
33224 * alias.c (find_base_term): Fix thinko in previous change.
33225
33226 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33227
33228 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33229 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33230 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
33231 if possible to compute val.
33232 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33233 For QImode integers don't require anything about precision. Use
33234 const_with_all_bytes_same to find out if the constant doesn't have
33235 repeated bytes in it.
33236
33237 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33238
33239 * config/s390/s390.c (s390_expand_insv): Only accept insertions
33240 within mode size.
33241
33242 2013-04-08 Marek Polacek <polacek@redhat.com>
33243
33244 PR rtl-optimization/48182
33245 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33246 value to 1.
33247
33248 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33249
33250 PR target/55487
33251 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33252 nuses, make sure we have a label.
33253
33254 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33255
33256 PR target/56843
33257 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33258 (rs6000_emit_swdiv_low_precision): Remove.
33259 (rs6000_emit_swdiv): Rewrite to handle between one and four
33260 iterations of Newton-Raphson generally; modify required number of
33261 iterations for some cases.
33262 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33263
33264 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
33265
33266 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33267 set-but-unused variable.
33268
33269 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33270 basic blocks of released function bodies garbage-collectable.
33271
33272 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33273 (struct rtl_opt_pass): Add TODO_df_finish.
33274
33275 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33276
33277 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33278
33279 * config/arm/constraints.md (q): New constraint.
33280 * config/arm/ldrdstrd.md: New file.
33281 * config/arm/arm.md (ldrdstrd.md) New include.
33282 (arm_movdi): Use "q" instead of "r" constraint
33283 for double-word memory access.
33284 (movdf_soft_insn): Likewise.
33285 * config/arm/vfp.md (movdi_vfp): Likewise.
33286 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33287 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33288 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33289 (mem_ok_for_ldrd_strd): Likewise.
33290 (output_move_double): Update assertion.
33291
33292 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33293
33294 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33295
33296 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33297
33298 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33299 define_insn_and_split.
33300 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33301
33302 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33303
33304 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33305 define_insn_and_split.
33306 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33307 (shiftsi3_compare): New pattern.
33308 (rrx): New pattern.
33309 * config/arm/unspecs.md (UNSPEC_RRX): New.
33310
33311 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33312
33313 * config/arm/arm.md (negdi_extendsidi): New pattern.
33314 (negdi_zero_extendsidi): Likewise.
33315
33316 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33317
33318 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33319 define_insn_and_split.
33320 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33321 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33322
33323 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33324
33325 * config/arm/arm.md (arm_subdi3): Convert define_insn into
33326 define_insn_and_split.
33327 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33328 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33329
33330 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33331
33332 * config/arm/arm.md (subsi3_carryin): New pattern.
33333 (subsi3_carryin_const): Likewise.
33334 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33335 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33336
33337 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33338
33339 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33340
33341 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33342
33343 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33344 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33345
33346 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33347
33348 * config/arm/arm.c (arm_expand_builtin): Change fcode
33349 type to unsigned int.
33350
33351 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33352
33353 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33354
33355 2013-04-04 Ian Lance Taylor <iant@google.com>
33356
33357 * doc/standards.texi (Standards): The Go frontend supports the Go 1
33358 language standard.
33359
33360 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
33361
33362 PR middle-end/56729
33363 * df-scan.c (df_insn_delete): Disable failing assert.
33364
33365 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33366
33367 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33368 New function prototype.
33369 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33370 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33371 (arm_builtin_vectorized_function): New function.
33372
33373 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33374
33375 * config/arm/arm_neon_builtins.def: New file.
33376 * config/arm/arm.c (neon_builtin_data): Move contents to
33377 arm_neon_builtins.def.
33378 (enum arm_builtins): Include neon builtin definitions.
33379 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33380 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33381
33382 2013-04-04 Marek Polacek <polacek@redhat.com>
33383
33384 PR tree-optimization/48186
33385 * predict.c (maybe_hot_frequency_p): Return false if
33386 HOT_BB_FREQUENCY_FRACTION is 0.
33387 (cgraph_maybe_hot_edge_p): Likewise.
33388
33389 2013-04-04 Richard Biener <rguenther@suse.de>
33390
33391 PR tree-optimization/56826
33392 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33393 more accurately.
33394
33395 2013-04-04 Richard Biener <rguenther@suse.de>
33396
33397 PR tree-optimization/56213
33398 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33399 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33400
33401 2013-04-04 Richard Biener <rguenther@suse.de>
33402
33403 PR tree-optimization/56837
33404 * tree-loop-distribution.c (classify_partition): For non-zero
33405 values require that the value has the same precision as its
33406 mode to be useful as memset value.
33407
33408 2013-04-03 Nick Clifton <nickc@redhat.com>
33409
33410 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33411 (fmssf4): Use fmsf.s on E3V5 architectures.
33412 (fnmasf4): Use fnmaf.s on E3V5 architectures.
33413 (fnmssf4): Use fnmsf.s on E3V5 architectures.
33414
33415 2013-04-03 Jeff Law <law@redhat.com>
33416
33417 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33418 (lra-eliminations.o): Likewise.
33419
33420 2013-04-03 Teresa Johnson <tejohnson@google.com>
33421
33422 * gcov-io.c (compute_working_sets): Moved most of body of old
33423 compute_working_sets here from profile.c.
33424 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33425 (gcov_working_set_t): Moved typedef here from basic-block.h
33426 (compute_working_set): Declare.
33427 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33428 (get_working_sets): Renamed from compute_working_set,
33429 replace most of body with call to new compute_working_sets.
33430 (get_exec_counts): Replace call to compute_working_sets
33431 to get_working_sets.
33432 * profile.h (get_working_sets): Renamed from compute_working_set.
33433 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33434 to get_working_sets.
33435 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33436 * gcov-dump.c (dump_working_sets): New function.
33437
33438 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
33439
33440 * hwint.c (sext_hwi, zext_hwi): New functions.
33441 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33442 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33443 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33444 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33445 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33446 (sext_hwi, zext_hwi): New functions.
33447
33448 2013-04-03 Jeff Law <law@redhat.com>
33449
33450 PR tree-optimization/56799
33451 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33452 back test for widening conversion erroneously dropped in prior change.
33453
33454 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33455
33456 PR target/56809
33457 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33458 instead of next_real_insn.
33459
33460 2013-04-03 Marek Polacek <polacek@redhat.com>
33461
33462 PR sanitizer/55702
33463 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33464
33465 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33466
33467 PR target/56809
33468 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33469 next_real_insn.
33470 (thumb1_output_casesi): Likewise.
33471 (thumb2_output_casesi): Likewise.
33472
33473 2013-04-03 Richard Biener <rguenther@suse.de>
33474
33475 PR tree-optimization/56817
33476 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33477 Split out ...
33478 (tree_unroll_loops_completely_1): ... new function to manually
33479 walk the loop tree, properly defering outer loops of unrolled
33480 loops to later iterations.
33481
33482 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33483
33484 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33485 (vectorizable_load): Likewise.
33486 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33487 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33488
33489 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33490
33491 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33492 BIT_FIELD_REF.
33493
33494 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33495
33496 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33497
33498 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33499
33500 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33501
33502 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33503
33504 PR tree-optimization/56790
33505 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33506 folding.
33507
33508 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33509
33510 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33511 Handle VEC_MERGE.
33512 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33513 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33514 equal arguments.
33515
33516 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33517
33518 PR c/19449
33519 * tree.h (force_folding_builtin_constant_p): New decl.
33520 * builtins.c (force_folding_builtin_constant_p): New variable.
33521 (fold_builtin_constant_p): Fold immediately also if
33522 force_folding_builtin_constant_p.
33523
33524 2013-04-03 Richard Biener <rguenther@suse.de>
33525
33526 PR tree-optimization/56812
33527 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33528 DRs of the same interleaving chain are independent.
33529
33530 2013-04-02 Jason Merrill <jason@redhat.com>
33531
33532 * gdbinit.in (pbb): Use debug fn.
33533
33534 2013-04-02 Lawrence Crowl <crowl@google.com>
33535
33536 * sese.h (struct ivtype_map_elt_s): Remove unused.
33537 (extern debug_ivtype_map): Remove unused.
33538 (extern eq_ivtype_map_elts): Remove unused.
33539 * sese.c (debug_ivtype_map): Removed unused.
33540 (debug_ivtype_map_1): Removed unused.
33541 (debug_ivtype_elt): Remove unused.
33542 (eq_ivtype_map_elts): Remove unused.
33543
33544 2013-04-02 Kai Tietz <ktietz@redhat.com>
33545
33546 PR target/52790
33547 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33548 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33549 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33550 function.
33551 (legitimize_pe_coff_symbol): Likewise.
33552 (is_imported_p): New helper-function.
33553 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33554 for Windows x64 targets.
33555 (ix86_expand_prologue): Optimize for pe-coff targets.
33556 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33557 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33558 medium/large code-model.
33559 (legitimize_pic_address): Likewise.
33560 (legitimize_tls_address): Likewise.
33561 (ix86_expand_call): Likewise.
33562 (x86_output_mi_thunk): Likewise.
33563 (get_dllimport_decl): Add new beimport argument.
33564 (construct_plt_address): Don't assert for x64 pe-coff targets.
33565 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33566 targets.
33567 (SYMBOL_FLAG_STUBVAR): New macro.
33568 (SYMBOL_REF_STUBVAR_P): Likewise.
33569 * config/i386/winnt.c (stub_list): New structure.
33570 (stub_head): New local variable.
33571 (i386_pe_record_stub): New function.
33572 (i386_pe_file_end): Emit refptr-stubs.
33573
33574 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33575
33576 PR rtl-optimization/56745
33577 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33578 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33579
33580 PR c++/34949
33581 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33582 and both of them are MEM_REFs, just compare first argument for
33583 equality and attempt to deal even with differing offsets.
33584
33585 PR c++/34949
33586 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33587 of gimple_clobber_p to be MEM_REF.
33588 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33589 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33590 after gimplification.
33591 * asan.c (get_mem_ref_of_assignment): Don't instrument
33592 gimple_clobber_p stmts.
33593 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33594 gimple_clobber_p stmt if they have MEM_REF lhs and
33595 are dead because of another gimple_clobber_p stmt.
33596 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33597 gimple_clobber_p stmts like debug stmts.
33598 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33599 that refer to unused VAR_DECLs or uninitialized values.
33600 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33601 gimple_clobber_p stmts if they refer to removed parameters.
33602 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33603 formatting.
33604
33605 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33606
33607 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33608 using SWI48 mode attribute.
33609
33610 2013-04-02 Wei Mi <wmi@google.com>
33611
33612 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33613 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33614 *<rotate_insn><mode>3_mask in i386.md.
33615
33616 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33617
33618 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33619
33620 2013-04-02 Richard Biener <rguenther@suse.de>
33621
33622 PR tree-optimization/56778
33623 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33624 Runtime alias tests are not supported for gather loads.
33625 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33626 stmts referenced from SSA operands before updating SSA form.
33627
33628 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33629 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33630
33631 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33632 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33633 * config/arm/cortex-a53.md: New file.
33634 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33635 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33636 * config/arm/arm.c (arm_issue_rate): Likewise.
33637 * config/arm/arm-tune.md: Regenerate
33638 * config/arm/arm-tables.opt: Regenerate.
33639 * config/arm/arm-cores.def: Add cortex-a53.
33640
33641 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33642
33643 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33644 non-static link.
33645
33646 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33647
33648 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33649 scalar load/store operations using B/H registers.
33650 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33651
33652 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33653
33654 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33655 scalar move.
33656 * config/aarch64/aarch64.c
33657 (aarch64_simd_scalar_immediate_valid_for_move): New.
33658 * config/aarch64/aarch64-protos.h
33659 (aarch64_simd_scalar_immediate_valid_for_move): New.
33660 * config/aarch64/constraints.md (Dh, Dq): New.
33661 * config/aarch64/iterators.md (hq): New.
33662
33663 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33664
33665 * reorg.c (get_branch_condition): Deal with conditional returns.
33666 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33667
33668 2013-04-01 Wei Mi <wmi@google.com>
33669
33670 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33671 Truncate operand 2 using %b asm operand modifier.
33672 (*<shift_insn><mode>3_mask): Ditto.
33673 (*<rotate_insn><mode>3_mask): Ditto.
33674
33675 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33676
33677 PR middle-end/56798
33678 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33679
33680 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33681
33682 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33683 of next_real_insn.
33684 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33685
33686 2013-03-30 Lawrence Crowl <crowl@google.com>
33687
33688 * dse.c (clear_alias_sets): Remove never set.
33689 (disqualified_clear_alias_sets): Remove never set.
33690 (clear_alias_mode_pool): Remove never set.
33691 (dse_step0): Remove condition that is never true.
33692 (canon_address): Remove condition that is never true.
33693 (dse_step7): Remove condition that is never true.
33694 (rest_of_handle_dse): Remove condition that is never true.
33695 (rest_of_handle_dse::did_global): Remove never read from above.
33696 (dse_step2_spill): Remove never called from above.
33697 (dse_step5_spill): Remove never called from above.
33698
33699 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33700
33701 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33702 JUMP_TABLE_DATA changes.
33703 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33704 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33705 (Insns) <jump_table_data>: New entry.
33706 * doc/tm.texi: Regenerate.
33707
33708 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33709
33710 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33711 for table jump at the end of a basic block using tablejump_p.
33712 * targhooks.c (default_invalid_within_doloop): Likewise.
33713 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33714 target hook implementation that is identical to the default hook.
33715 (rs6000_invalid_within_doloop): Remove.
33716
33717 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33718 unused variable from tablejump_p call.
33719
33720 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33721 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33722 (INSN_DELETED_P): Likewise.
33723 (emit_jump_table_data): New prototype.
33724 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33725 after 4th as unused.
33726 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33727 * sched-vis.c (print_insn): Likewise.
33728 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33729 insn for compatibility with back ends that use next_active_insn to
33730 identify jump table data.
33731 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33732 (remove_insn): Likewise.
33733 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33734 to be emitted.
33735 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33736 (emit_jump_table_data): New function.
33737
33738 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33739 basic block, a JUMP_TABLE_DATA never is.
33740 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33741 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33742 off from code handling real insns.
33743 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33744 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33745 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33746 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33747 is not a NONDEBUG_INSN_P.
33748 * ira-costs.c (scan_one_insn): Likewise.
33749 * jump.c (mark_all_labels): Likewise.
33750 (mark_jump_label_1): Likewise.
33751 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33752 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33753 a basic block.
33754 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33755 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33756 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33757 JUMP_TABLE_DATA_P insns.
33758 (calculate_elim_costs_all_insns): Likewise.
33759 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33760 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33761 (delete_output_reload): Code style fixups.
33762 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33763 insn flags on this non-insn.
33764 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33765 as scheduling barriers, for pre-change compatibility.
33766 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33767 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33768
33769 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33770 redundant JUMP_TABLE_DATA_P test.
33771 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33772 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33773 (frv_for_each_packet): Likewise.
33774 * config/i386/i386.c (min_insn_size): Likewise.
33775 (ix86_avoid_jump_mispredicts): Likewise.
33776 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33777 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33778 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33779 (mips16_insn_length): Robustify.
33780 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33781 (mips16_split_long_branches): Likewise.
33782 * config/pa/pa.c (pa_combine_instructions): Likewise.
33783 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33784 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33785 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33786 as contributing to pool range lengths.
33787 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33788 Remove redundant JUMP_TABLE_DATA_P test.
33789 (sh_loop_align): Likewise.
33790 (split_branches): Likewise.
33791 (sh_insn_length_adjustment): Likewise.
33792 * config/spu/spu.c (get_branch_target): Likewise.
33793
33794 2013-03-29 Jan Hubicka <jh@suse.cz>
33795
33796 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33797 gcov streaming; stream hot bb threshold to ltrans.
33798 * predict.c (get_hot_bb_threshold): Break out from ....
33799 (maybe_hot_count_p): ... here.
33800 (set_hot_bb_threshold): New function.
33801 * lto-section-in.c (lto_section_name): Add profile.
33802 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33803 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33804 and data-streamer.h
33805 (histogram_entry): New structure.
33806 (histogram, histogram_pool): New global vars.
33807 (histogram_hash): New structure.
33808 (histogram_hash::hash): New method.
33809 (histogram_hash::equal): Likewise.
33810 (account_time_size): New function.
33811 (cmp_counts): New function.
33812 (dump_histogram): New function.
33813 (ipa_profile_generate_summary): New function.
33814 (ipa_profile_write_summary): New function.
33815 (ipa_profile_read_summary): New function.
33816 (ipa_profile): Decide on threshold.
33817 (pass_ipa_profile): Add ipa_profile_write_summary and
33818 ipa_profile_read_summary.
33819 * Makefile.in (ipa.o): Update dependencies.
33820 * lto-streamer.h (LTO_section_ipa_profile): New section.
33821
33822 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33823
33824 * tree.h (VAR_P): New.
33825
33826 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33827
33828 PR lto/56777
33829 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33830
33831 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33832
33833 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33834 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33835 (control_flow_insn_p): Likewise.
33836 * cfgrtl.c (duplicate_insn_chain): Likewise.
33837 * final.c (get_attr_length_1): Likewise.
33838 (shorten_branches): Likewise.
33839 (final_scan_insn): Likewise.
33840 * function.c (instantiate_virtual_regs): Likewise.
33841 * gcse.c (insert_insn_end_basic_block): Likewise.
33842 * ira-costs.c (scan_one_insn): Likewise.
33843 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33844 * lra.c (check_rtl): Likewise.
33845 * reload1.c (elimination_costs_in_insn): Likewise.
33846 * reorg.c (follow_jumps): Likewise.
33847
33848 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33849 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33850 (thumb_far_jump_used_p): Likewise.
33851 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33852 (workaround_speculation): Likewise.
33853 (add_sched_insns_for_speculation): Likewise.
33854 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33855 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33856 (frv_for_each_packet): Likewise.
33857 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33858 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33859 (final_emit_insn_group_barriers): Likewise.
33860 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33861 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33862 (mips16_insn_length): Likewise.
33863 * config/pa/pa.c (pa_reorg): Likewise.
33864 (pa_combine_instructions): Likewise.
33865 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33866 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33867 (sh_reorg): Likewise.
33868 (split_branches): Likewise.
33869 * config/spu/spu.c (get_branch_target): Likewise.
33870
33871 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33872 JUMP_TABLE_DATA_P.
33873
33874 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33875
33876 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33877 Fix declaration name.
33878
33879 2013-03-28 Lawrence Crowl <crowl@google.com>
33880
33881 * graphds.h (struct graph.indicies): Remove unused.
33882 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33883 (SCOP_ORIGINAL_PDDRS): Remove unused.
33884 * sese.h (extern insert_loop_close_phis): Removed unused.
33885 (extern insert_guard_phis): Removed unused.
33886 (extern ivtype_map_elt_info): Removed unused.
33887 (new_ivtype_map_elt): Removed unused.
33888 * sese.c (ivtype_map_elt_info): Removed unused.
33889
33890 2013-03-28 Lawrence Crowl <crowl@google.com>
33891
33892 * Makefile.in: Add several missing include dependences.
33893 (DUMPFILE_H): New.
33894 (test-dump.o): New. This object is not added to any executable,
33895 but is present for ad-hoc testing.
33896 * bitmap.c
33897 (debug (const bitmap_head_def &)): New.
33898 (debug (const bitmap_head_def *)): New.
33899 * bitmap.h
33900 (extern debug (const bitmap_head_def &)): New.
33901 (extern debug (const bitmap_head_def *)): New.
33902 * cfg.c
33903 (debug (edge_def &)): New.
33904 (debug (edge_def *)): New.
33905 * cfghooks.c
33906 (debug (basic_block_def &)): New.
33907 (debug (basic_block_def *)): New.
33908 * dumpfile.h
33909 (dump_node (const_tree, int, FILE *)): Correct source file.
33910 * dwarf2out.c
33911 (debug (die_struct &)): New.
33912 (debug (die_struct *)): New.
33913 * dwarf2out.h
33914 (extern debug (die_struct &)): New.
33915 (extern debug (die_struct *)): New.
33916 * gimple-pretty-print.c
33917 (debug (gimple_statement_d &)): New.
33918 (debug (gimple_statement_d *)): New.
33919 * gimple-pretty-print.h
33920 (extern debug (gimple_statement_d &)): New.
33921 (extern debug (gimple_statement_d *)): New.
33922 * ira-build.c
33923 (debug (ira_allocno_copy &)): New.
33924 (debug (ira_allocno_copy *)): New.
33925 (debug (ira_allocno &)): New.
33926 (debug (ira_allocno *)): New.
33927 * ira-int.h
33928 (extern debug (ira_allocno_copy &)): New.
33929 (extern debug (ira_allocno_copy *)): New.
33930 (extern debug (ira_allocno &)): New.
33931 (extern debug (ira_allocno *)): New.
33932 * ira-lives.c
33933 (debug (live_range &)): New.
33934 (debug (live_range *)): New.
33935 * lra-int.h
33936 (debug (lra_live_range &)): New.
33937 (debug (lra_live_range *)): New.
33938 * lra-lives.c
33939 (debug (lra_live_range &)): New.
33940 (debug (lra_live_range *)): New.
33941 * omega.c
33942 (debug (omega_pb_d &)): New.
33943 (debug (omega_pb_d *)): New.
33944 * omega.h
33945 (extern debug (omega_pb_d &)): New.
33946 (extern debug (omega_pb_d *)): New.
33947 * print-rtl.c
33948 (debug (const rtx_def &)): New.
33949 (debug (const rtx_def *)): New.
33950 * print-tree.c
33951 (debug_tree (tree): Move within file.
33952 (debug_raw (const tree_node &)): New.
33953 (debug_raw (const tree_node *)): New.
33954 (dump_tree_via_hooks (const tree_node *, int)): New.
33955 (debug (const tree_node &)): New.
33956 (debug (const tree_node *)): New.
33957 (debug_verbose (const tree_node &)): New.
33958 (debug_verbose (const tree_node *)): New.
33959 (debug_head (const tree_node &)): New.
33960 (debug_head (const tree_node *)): New.
33961 (debug_body (const tree_node &)): New.
33962 (debug_body (const tree_node *)): New.
33963 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33964 (debug (vec<tree, va_gc> &)): New.
33965 (debug (vec<tree, va_gc> *)): New.
33966 * rtl.h
33967 (extern debug (const rtx_def &)): New.
33968 (extern debug (const rtx_def *)): New.
33969 * sbitmap.c
33970 (debug_raw (simple_bitmap_def &)): New.
33971 (debug_raw (simple_bitmap_def *)): New.
33972 (debug (simple_bitmap_def &)): New.
33973 (debug (simple_bitmap_def *)): New.
33974 * sbitmap.h
33975 (extern debug (simple_bitmap_def &)): New.
33976 (extern debug (simple_bitmap_def *)): New.
33977 (extern debug_raw (simple_bitmap_def &)): New.
33978 (extern debug_raw (simple_bitmap_def *)): New.
33979 * sel-sched-dump.c
33980 (debug (vinsn_def &)): New.
33981 (debug (vinsn_def *)): New.
33982 (debug_verbose (vinsn_def &)): New.
33983 (debug_verbose (vinsn_def *)): New.
33984 (debug (expr_def &)): New.
33985 (debug (expr_def *)): New.
33986 (debug_verbose (expr_def &)): New.
33987 (debug_verbose (expr_def *)): New.
33988 (debug (vec<rtx> &)): New.
33989 (debug (vec<rtx> *)): New.
33990 * sel-sched-dump.h
33991 (extern debug (vinsn_def &)): New.
33992 (extern debug (vinsn_def *)): New.
33993 (extern debug_verbose (vinsn_def &)): New.
33994 (extern debug_verbose (vinsn_def *)): New.
33995 (extern debug (expr_def &)): New.
33996 (extern debug (expr_def *)): New.
33997 (extern debug_verbose (expr_def &)): New.
33998 (extern debug_verbose (expr_def *)): New.
33999 (extern debug (vec<rtx> &)): New.
34000 (extern debug (vec<rtx> *)): New.
34001 * sel-sched-ir.h
34002 (_list_iter_cond_expr): Make inline instead of static.
34003 * sreal.c
34004 (debug (sreal &)): New.
34005 (debug (sreal *)): New.
34006 * sreal.h
34007 (extern debug (sreal &)): New.
34008 (extern debug (sreal *)): New.
34009 * tree.h
34010 (extern debug_raw (const tree_node &)): New.
34011 (extern debug_raw (const tree_node *)): New.
34012 (extern debug (const tree_node &)): New.
34013 (extern debug (const tree_node *)): New.
34014 (extern debug_verbose (const tree_node &)): New.
34015 (extern debug_verbose (const tree_node *)): New.
34016 (extern debug_head (const tree_node &)): New.
34017 (extern debug_head (const tree_node *)): New.
34018 (extern debug_body (const tree_node &)): New.
34019 (extern debug_body (const tree_node *)): New.
34020 (extern debug (vec<tree, va_gc> &)): New.
34021 (extern debug (vec<tree, va_gc> *)): New.
34022 * tree-cfg.c
34023 (debug (struct loop &)): New.
34024 (debug (struct loop *)): New.
34025 (debug_verbose (struct loop &)): New.
34026 (debug_verbose (struct loop *)): New.
34027 * tree-dump.c: Add header dependence.
34028 * tree-flow.h
34029 (extern debug (struct loop &)): New.
34030 (extern debug (struct loop *)): New.
34031 (extern debug_verbose (struct loop &)): New.
34032 (extern debug_verbose (struct loop *)): New.
34033 * tree-data-ref.c
34034 (debug (data_reference &)): New.
34035 (debug (data_reference *)): New.
34036 (debug (vec<data_reference_p> &)): New.
34037 (debug (vec<data_reference_p> *)): New.
34038 (debug (vec<ddr_p> &)): New.
34039 (debug (vec<ddr_p> *)): New.
34040 * tree-data-ref.h
34041 (extern debug (data_reference &)): New.
34042 (extern debug (data_reference *)): New.
34043 (extern debug (vec<data_reference_p> &)): New.
34044 (extern debug (vec<data_reference_p> *)): New.
34045 (extern debug (vec<ddr_p> &)): New.
34046 (extern debug (vec<ddr_p> *)): New.
34047 * tree-ssa-alias.c
34048 (debug (pt_solution &)): New.
34049 (debug (pt_solution *)): New.
34050 * tree-ssa-alias.h
34051 (extern debug (pt_solution &)): New.
34052 (extern debug (pt_solution *)): New.
34053 * tree-ssa-alias.c
34054 (debug (_var_map &)): New.
34055 (debug (_var_map *)): New.
34056 (debug (tree_live_info_d &)): New.
34057 (debug (tree_live_info_d *)): New.
34058 * tree-ssa-alias.h
34059 (extern debug (_var_map &)): New.
34060 (extern debug (_var_map *)): New.
34061 (extern debug (tree_live_info_d &)): New.
34062 (extern debug (tree_live_info_d *)): New.
34063
34064 2013-03-28 Jan Hubicka <jh@suse.cz>
34065
34066 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34067
34068 2013-03-28 Ian Bolton <ian.bolton@arm.com>
34069
34070 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34071 record only when desired or required.
34072
34073 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
34074
34075 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34076 *vec_extractv2di_1_rex64. Use x64 isa attribute.
34077
34078 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34079
34080 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34081 (*andsi3_compare0_uxtw): New pattern.
34082 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34083 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34084
34085 2013-03-28 Jan Hubicka <jh@suse.cz>
34086
34087 * data-streamer-in.c (streamer_read_gcov_count): New function.
34088 * gimple-streamer-out.c: Include value-prof.h.
34089 (output_gimple_stmt): Output histogram.
34090 (output_bb): Use streamer_write_gcov_count.
34091 * value-prof.c: Include data-streamer.h
34092 (dump_histogram_value): Add HIST_TYPE_MAX.
34093 (stream_out_histogram_value): New function.
34094 (stream_in_histogram_value): New function.
34095 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34096 (stream_out_histogram_value, stream_in_histogram_value): Declare.
34097 * data-streamer-out.c (streamer_write_gcov_count): New function.
34098 (streamer_write_gcov_count_stream): New function.
34099 * lto-cgraph.c (lto_output_edge): Update counter streaming.
34100 (lto_output_node): Likewise.
34101 (input_node, input_edge): Likewise.
34102 * lto-streamer-out.c (output_cfg): Update streaming.
34103 * lto-streamer-in.c (input_cfg): Likewise.
34104 * data-streamer.h (streamer_write_gcov_count,
34105 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34106 * gimple-streamer-in.c: Include value-prof.h
34107 (input_gimple_stmt): Input histograms.
34108 (input_bb): Update profile streaming.
34109
34110 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34111
34112 * genmodes.c (emit_max_int): New function.
34113 (emit_insn_modes_h): Added call to emit_max_function.
34114 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34115 Added doc.
34116 * machmode.def: Fixed comment.
34117
34118 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34119
34120 * combine.c (try_combine): Removed useless assert.
34121 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34122
34123 2013-03-28 Marek Polacek <polacek@redhat.com>
34124 Richard Biener <rguenther@suse.de>
34125
34126 PR tree-optimization/56695
34127 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34128 build signed result of a vector comparison.
34129 * tree-cfg.c (verify_gimple_comparison): Check that a result
34130 of a vector comparison has signed type.
34131
34132 2013-03-28 Richard Biener <rguenther@suse.de>
34133
34134 PR tree-optimization/37021
34135 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34136 do not restrict gaps between groups.
34137 * tree-vect-stmts.c (vectorizable_load): Properly account for
34138 a gap between groups.
34139
34140 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
34141
34142 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34143 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34144 is not enabled.
34145
34146 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
34147
34148 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34149 * doc/extend.texi (Named Address Spaces): Ditto.
34150 (Variable Attributes): Ditto.
34151
34152 2013-03-27 Kai Tietz <ktietz@redhat.com>
34153
34154 * config.build: Add support for cygwin x64 target.
34155 * config.gcc: Likewise.
34156 * config.host: Likewise.
34157 * configure.ac: Likewise
34158 * configure: Regenerated.
34159
34160 2013-03-27 Kai Tietz <ktietz@redhat.com>
34161
34162 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34163 * config/i386/t-cygwin-w64: New file.
34164 * config/i386/cygwin-w64.h: New file.
34165 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34166 and add support for x64-cygwin target.
34167 (CPP_SPEC): Likewise.
34168 (CXX_WRAP_SPEC_LIST): Undefine before define.
34169 (LIBGCJ_SONAME): Use 15 as version.
34170
34171 2013-03-27 Richard Biener <rguenther@suse.de>
34172
34173 PR tree-optimization/56716
34174 * tree-ssa-structalias.c (perform_var_substitution): Adjust
34175 dumping for ref nodes.
34176
34177 2013-03-27 Martin Jambor <mjambor@suse.cz>
34178
34179 PR tree-optimization/55334
34180 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34181 restricted pointers to arrays.
34182
34183 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
34184
34185 * Makefile.in (.SUFFIXES): Add .cc.
34186 (.c.o): Apply same recipe for implicit rule .cc.o.
34187
34188 2013-03-27 Richard Biener <rguenther@suse.de>
34189
34190 PR tree-optimization/37021
34191 * tree-vect-data-refs.c (vect_check_strided_load): Allow
34192 REALPART/IMAGPART_EXPRs around the supported refs.
34193 * tree-ssa-structalias.c (find_func_aliases): Assume that
34194 floating-point values are not used to transfer pointers.
34195
34196 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
34197
34198 * target.def (TARGET_HAS_IFUNC_P): New target hook.
34199 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34200 * doc/tm.texi: Regenerate.
34201 * targhooks.h (default_has_ifunc_p): New.
34202 * targhooks.c (default_has_ifunc_p): Ditto.
34203 * config/linux-protos.h: New file.
34204 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34205 hook for linux which disables support of indirect functions in android.
34206 * config/linux-android.c: New file.
34207 * config/t-linux-android.c: Ditto.
34208 * config.gcc: Added new object file linux-android.o.
34209 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34210 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34211 * varasm.c (do_assemble_alias): Likewise.
34212 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34213 doesn't support indirect functions.
34214 * configure: Regenerate.
34215
34216 2013-03-27 Bin Cheng <bin.cheng@arm.com>
34217
34218 PR target/56102
34219 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34220 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34221 mult-word mode.
34222
34223 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34224
34225 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34226
34227 2013-03-27 Terry Guo <terry.guo@arm.com>
34228
34229 * config/arm/arm-cores.def: Added core cortex-r7.
34230 * config/arm/arm-tune.md: Regenerated.
34231 * config/arm/arm-tables.opt: Regenerated.
34232 * doc/invoke.texi: Added entry for core cortex-r7.
34233
34234 2013-03-27 Walter Lee <walt@tilera.com>
34235
34236 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34237 double-decrement of next_scratch_regno.
34238
34239 2013-03-27 Walter Lee <walt@tilera.com>
34240
34241 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34242 input operands.
34243 (insn_v1mulus): Ditto.
34244 (insn_v2muls): Ditto.
34245
34246 2013-03-27 Walter Lee <walt@tilera.com>
34247
34248 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34249 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34250
34251 2013-03-27 Walter Lee <walt@tilera.com>
34252
34253 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34254 (*sibcall_value): Ditto.
34255
34256 2013-03-27 Walter Lee <walt@tilera.com>
34257
34258 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34259 (insn_mnz_v8qi): ... this ...
34260 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
34261 vector equivalent.
34262 (insn_v<n>mnz): Replaced by ...
34263 (insn_v1mnz): ... this ...
34264 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
34265 equivalent.
34266 (insn_mz_<mode>): Replaced by ...
34267 (insn_mz_v8qi): ... this ...
34268 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
34269 vector equivalent.
34270 (insn_v<n>mz): Replaced by ...
34271 (insn_v1mz): ... this ...
34272 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
34273 equivalent.
34274
34275 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
34276
34277 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34278
34279 2013-03-26 Roland McGrath <mcgrathr@google.com>
34280
34281 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34282 than fprintf with a non-constant, non-format string.
34283
34284 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34285
34286 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34287 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
34288 operand 0 predicate.
34289 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34290 attribute. Use general_x64nomem_operand as operand 1 predicate.
34291 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34292 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34293 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34294 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34295 (mov<mode>_insv_1): Remove expander. Merge insn with
34296 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34297 Use general_x64nomem_operand as operand 1 predicate.
34298 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34299 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34300 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34301 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34302 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
34303 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34304 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34305 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34306 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
34307 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34308 (general_x64nomem_operand): Ditto.
34309
34310 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
34311
34312 * config/rtems.opt: Add -pthread option.
34313
34314 2013-03-26 Richard Biener <rguenther@suse.de>
34315
34316 * alias.c (find_base_term): Avoid redundant and not used recursion.
34317 (base_alias_check): Get the initial base term from the caller.
34318 (true_dependence_1): Compute and pass base terms to base_alias_check.
34319 (write_dependence_p): Likewise.
34320 (may_alias_p): Likewise.
34321
34322 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
34323
34324 * config/aarch64/aarch64.c (aarch64_classify_address): Support
34325 PC-relative load in SI modes and above only.
34326
34327 2013-03-26 Xinyu Qi <xyqi@marvell.com>
34328
34329 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34330 * config/arm/iwmmxt.md (WCGR0): Update.
34331 (WCGR1, WCGR2, WCGR3): Likewise.
34332
34333 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34334
34335 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34336 Use x64 and nox64 isa attributes.
34337
34338 2013-03-26 Richard Biener <rguenther@suse.de>
34339
34340 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34341 alignment computations and rely on get_object_alignment_1
34342 for the !TYPE_P case.
34343 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34344
34345 2013-03-26 Walter Lee <walt@tilera.com>
34346
34347 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34348 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34349
34350 2013-03-25 Jeff Law <law@redhat.com>
34351
34352 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34353 check for INTEGRAL_TYPE_P that was missing due to checking in
34354 wrong version of prior patch.
34355
34356 2013-03-25 Walter Lee <walt@tilera.com>
34357
34358 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34359 TILEGX_INSN_SHUFFLEBYTES1.
34360 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34361 shufflebytes1.
34362 (tilegx_builtins): Ditto.
34363 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34364
34365 2013-03-25 Walter Lee <walt@tilera.com>
34366
34367 * config/tilegx/tilegx.md (floatsisf2): New pattern.
34368 (floatunssisf2): New pattern.
34369 (floatsidf2): New pattern.
34370 (floatunssidf2): New pattern.
34371
34372 2013-03-25 Walter Lee <walt@tilera.com>
34373
34374 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34375 tests for constraint J, K, N, P.
34376
34377 2013-03-25 Walter Lee <walt@tilera.com>
34378
34379 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34380 Use indirect/pcrel encoding.
34381 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34382 Ditto.
34383
34384 2013-03-25 Steve Ellcey <sellcey@mips.com>
34385
34386 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34387 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34388 * config/mips/mips.c (mips_option_override): Set IMADD default.
34389 * config/mips/mips.h (PTF_AVOID_IMADD): New.
34390 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34391 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34392 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34393 * doc/invoke.texi (-mimadd/-mno-imadd): New.
34394
34395 2013-03-25 Jeff Law <law@redhat.com>
34396
34397 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34398 slightly to avoid creating and folding useless trees. Simplify
34399 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34400
34401 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
34402
34403 * config/i386/i386.md (*zero_extendsidi2): Merge with
34404 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
34405 * config/i386/predicates.md (x86_64_zext_operand): Rename from
34406 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
34407 targets. Clarify comment.
34408
34409 2013-03-25 Martin Jambor <mjambor@suse.cz>
34410
34411 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34412 pass-through jump functions differently.
34413 (ipa_read_jump_function): Likewise. Also use setter functions to set
34414 up jump functions.
34415
34416 2013-03-25 Martin Jambor <mjambor@suse.cz>
34417
34418 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34419 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34420 process it.
34421 (ipa_get_indirect_edge_target): New function.
34422 (devirtualization_time_bonus): New parameter known_aggs, pass it to
34423 ipa_get_indirect_edge_target. Update all callers.
34424 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
34425 ipa_get_indirect_edge_target_1 instead of calling
34426 ipa_get_indirect_edge_target.
34427 (create_specialized_node): Pass aggvlas to
34428 ipcp_discover_new_direct_edges.
34429
34430 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34431
34432 * config/arm/arm.md (f_sels, f_seld): New types.
34433 (*cmov<mode>): New pattern.
34434 * config/arm/predicates.md (arm_vsel_comparison_operator): New
34435 predicate.
34436
34437 2013-03-25 Kai Tietz <ktietz@redhat.com>
34438
34439 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34440 POSIX-printf for mingw-hosted builds.
34441
34442 2013-03-25 Richard Biener <rguenther@suse.de>
34443
34444 PR middle-end/56694
34445 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34446 must-not-throw stmt location.
34447
34448 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34449
34450 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34451 Emit load-acquire versions when acq is true.
34452 (arm_emit_store_exclusive): Add rel parameter.
34453 Emit store-release versions when rel is true.
34454 (arm_split_compare_and_swap): Use acquire-release instructions
34455 instead.
34456 of barriers when appropriate.
34457 (arm_split_atomic_op): Likewise.
34458 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34459 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34460 (VUNSPEC_SLX): Likewise.
34461 (VUNSPEC_LDA): Likewise.
34462 (VUNSPEC_STL): Likewise.
34463 * config/arm/sync.md (atomic_load<mode>): New pattern.
34464 (atomic_store<mode>): Likewise.
34465 (arm_load_acquire_exclusive<mode>): Likewise.
34466 (arm_load_acquire_exclusivesi): Likewise.
34467 (arm_load_acquire_exclusivedi): Likewise.
34468 (arm_store_release_exclusive<mode>): Likewise.
34469
34470 2013-03-25 Catherine Moore <clm@codesourcery.com>
34471
34472 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34473 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34474 * config/mip/predicates.md (lwsp_swsp_operand,
34475 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34476 sb16_operand, db4_operand, db7_operand, ib3_operand,
34477 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34478 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34479 andi16_operand): New predicates.
34480 * config/mips/mips.md (compression): New attribute.
34481 (enabled): New attribute.
34482 (length): Consider compression in computing length.
34483 (shift_compression): New code attribute.
34484 (*add<mode>3): New operands. Record compression.
34485 (sub<mode>3): Likewise.
34486 (one_cmpl<mode>2): Likewise.
34487 (*and<mode>3): Likewise.
34488 (*ior<mode>3): Likewise.
34489 (unnamed pattern for xor): Likewise.
34490 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34491 (*<optab><mode>3): Likewise.
34492 (*mov<mode>_internal: Likewise.
34493 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34494 (mips_unsigned_immediate_p): New.
34495 (umips_lwsp_swsp_address_p): New.
34496 (m16_based_address_p): New.
34497 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34498 (mips_unsigned_immediate_p): New prototype.
34499 (lwsp_swsp_address_p): New prototype.
34500 (m16_based_address_p): New prototype.
34501 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34502 (mips_signed_immediate_p): New function.
34503 (m16_based_address_p): New function.
34504 (lwsp_swsp_address_p): New function.
34505 (mips_print_operand_punctuation): Recognize short delay slot insns
34506 for microMIPS.add<mode>3"
34507
34508 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34509
34510 PR target/56720
34511 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34512 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34513
34514 2013-03-25 Richard Biener <rguenther@suse.de>
34515
34516 PR tree-optimization/56689
34517 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34518 any edge.
34519
34520 2013-03-25 Richard Biener <rguenther@suse.de>
34521
34522 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34523 of bitmap.
34524 (memory_references): Likewise.
34525 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34526 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34527 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34528 (gather_mem_refs_in_loops): Fold into ...
34529 (analyze_memory_references): ... this. Move initialization
34530 to tree_ssa_lim_initialize.
34531 (fill_always_executed_in): Rename to ...
34532 (fill_always_executed_in_1): ... this.
34533 (fill_always_executed_in): Move contains_call computation to
34534 this new function from ...
34535 (tree_ssa_lim_initialize): ... here.
34536 (tree_ssa_lim): Call fill_always_executed_in.
34537
34538 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34539
34540 * postreload.c (reload_combine): Fix code detecting returns.
34541
34542 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34543
34544 * function.c (emit_use_return_register_into_block): On cc0 targets,
34545 do not emit the sequence between cc0 setter and user.
34546
34547 2013-03-25 Kai Tietz <ktietz@redhat.com>
34548
34549 * config/i386/predicates.md (local_symbolic_operand): Interpret
34550 dll-imported symbols as none-local.
34551
34552 2013-03-25 Richard Biener <rguenther@suse.de>
34553
34554 * tree-ssa-loop-im.c (struct depend): Remove.
34555 (struct lim_aux_data): Make depends a vec of gimples.
34556 (free_lim_aux_data): Adjust.
34557 (add_dependency): Likewise.
34558 (set_level): Likewise.
34559
34560 2013-03-25 Richard Biener <rguenther@suse.de>
34561
34562 PR middle-end/56434
34563 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34564 the pointer returned by calls with ECF_MALLOC set.
34565
34566 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34567
34568 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34569
34570 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34571
34572 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34573 using MMXMODE mode iterator.
34574 (*move<mode>_internal): Merge with *movv2sf_internal and
34575 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34576
34577 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34578
34579 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34580 (record_last_mem_set_info): Likewise.
34581
34582 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34583 of XNEWVEC followed by memset.
34584 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34585
34586 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34587
34588 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34589 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34590 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34591 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34592 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34593 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34594 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34595 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34596 BARRIER_P instead of GET_CODE.
34597
34598 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34599
34600 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34601 inaccuracy in the probing code.
34602
34603 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34604 (ctrapdi4): Likewise.
34605
34606 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34607
34608 * calls.c (expand_call): Add missing guard to code handling return
34609 of non-BLKmode structures in MSB.
34610 * function.c (expand_function_end): Likewise.
34611
34612 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34613
34614 * combine.c (try_combine): Adjust comment. Do not add the set of
34615 insn #0 if the destination indirectly is set or dies in insn #2.
34616 Tidy up code to distribute a new note.
34617
34618 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34619
34620 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34621 also for alternatives 16 and 17.
34622
34623 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34624
34625 * config/i386/sse.md (*mov<mode>_internal): Merge with
34626 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34627 Emit insn template depending on type attribute. Use
34628 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34629 movd instead of movq mnemonic for interunit moves. Rewrite mode
34630 attribute calculation. Remove unit attribute calculation.
34631 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34632 Set prefix_data16 attribute for DImode ssemov types.
34633 Use Ym instead of y for SSE-MMX conversion alternatives.
34634 Reorder operand constraints.
34635
34636 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34637
34638 * df.h (df_insn_delete): Adjust prototype.
34639 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34640 and let it decide whether mark the basic block dirty.
34641 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34642 * df-scan.c (df_insn_info_delete): New helper function, split
34643 off from df_insn_delete.
34644 (df_scan_free_bb_info): Use it.
34645 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34646 Likewise.
34647 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34648 that the insn is actually an insn and it has a non-NULL basic block.
34649 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34650
34651 2013-03-22 Richard Biener <rguenther@suse.de>
34652
34653 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34654 dep_ref members.
34655 (mem_ref_alloc): Do not allocate them.
34656 (refs_independent_p): Do not query or maintain a cache.
34657
34658 2013-03-22 Richard Biener <rguenther@suse.de>
34659
34660 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34661 (gather_mem_refs_in_loops): Do not compute it.
34662 (analyze_memory_references): Do not allocate it.
34663 (tree_ssa_lim_finalize): Do not free it.
34664 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34665
34666 2013-03-22 Richard Biener <rguenther@suse.de>
34667
34668 * is-a.h (as_a): Use gcc_checking_assert.
34669
34670 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34671
34672 * config/aarch64/aarch64.c (aarch64_print_operand): New
34673 format specifier for printing a constant in hex.
34674 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34675 format specifier for printing second operand.
34676
34677 2013-03-22 Richard Biener <rguenther@suse.de>
34678
34679 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34680 bitmaps.
34681 (gather_mem_refs_in_loops): Perform store accumulation here.
34682 (create_vop_ref_mapping_loop): Remove.
34683 (create_vop_ref_mapping): Likewise.
34684 (analyze_memory_references): Initialize refs_stored_in_loop.
34685 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34686 (record_indep_loop): Remove.
34687 (record_dep_loop): New function.
34688 (ref_indep_loop_p_1): Adjust to only walk over references
34689 in the loop, not its subloops.
34690 (ref_indep_loop_p): Rename to ...
34691 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34692 maintaining a more fine-grained cache.
34693 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34694 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34695
34696 2013-03-22 Richard Biener <rguenther@suse.de>
34697
34698 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34699 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34700 aggregate mem_ref_loc.
34701 (free_mem_ref_locs): Inline into ...
34702 (memref_free): ... this and adjust.
34703 (mem_ref_alloc): Adjust.
34704 (mem_ref_locs_alloc): Remove.
34705 (record_mem_ref_loc): Adjust.
34706 (get_all_locs_in_loop): Rewrite into ...
34707 (for_all_locs_in_loop): ... this iterator.
34708 (rewrite_mem_ref_loc): New functor.
34709 (rewrite_mem_refs): Use for_all_locs_in_loop.
34710 (sm_set_flag_if_changed): New functor.
34711 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34712 (ref_always_accessed): New functor.
34713 (ref_always_accessed_p): Use for_all_locs_in_loop.
34714
34715 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34716
34717 * tree-pass.h (PROP_gimple_lvec): New.
34718 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34719 (init_optimization_passes): Move pass_lower_vector.
34720 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34721 PROP_gimple_lvec.
34722 (pass_lower_vector): Provide PROP_gimple_lvec.
34723 (pass_lower_vector_ssa): Likewise.
34724 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34725
34726 2013-03-21 Mark Wielaard <mjw@redhat.com>
34727
34728 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34729
34730 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34731
34732 * config/i386/i386.md (*movdi_internal): Disparage slightly
34733 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34734 conversion alternatives.
34735
34736 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34737
34738 PR middle-end/48087
34739 * diagnostic.def (DK_WERROR): New kind.
34740 * diagnostic.h (werrorcount): Define.
34741 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34742 promoted to DK_ERROR, increment DK_WERROR counter instead of
34743 DK_ERROR counter.
34744 * toplev.c (toplev_main): Call print_ignored_options even if
34745 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34746 even if just werrorcount is non-zero.
34747
34748 PR debug/55608
34749 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34750 on failure.
34751 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34752 (string_cst_pool_decl): New function.
34753 (optimize_one_addr_into_implicit_ptr): New function.
34754 (resolve_addr_in_expr): Optimize DWARF location expression
34755 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34756 which doesn't live in memory, but has DW_AT_location or
34757 DW_AT_const_value, or refers to a string literal, into
34758 DW_OP_GNU_implicit_pointer.
34759 (optimize_location_into_implicit_ptr): New function.
34760 (resolve_addr): If removing DW_AT_location of a variable because
34761 it was DW_OP_addr of address of the variable, but the variable doesn't
34762 live in memory, try to emit const value attribute for the initializer.
34763
34764 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34765
34766 * tree.h (VECTOR_TYPE_P): New macro.
34767 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34768 TYPE_MODE): Use it.
34769 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34770 VEC_COND_EXPR cannot be lvalues.
34771 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34772
34773 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34774
34775 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34776 Restrict the transformation to equal modes.
34777
34778 2013-03-21 Richard Biener <rguenther@suse.de>
34779
34780 PR tree-optimization/39326
34781 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34782 (MEM_ANALYZABLE): Adjust.
34783 (record_mem_ref_loc): Move bitmap ops ...
34784 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34785 unanalyzable refs, do not record locations for it.
34786 (analyze_memory_references): Allocate ref zero as shared
34787 unanalyzable ref.
34788 (refs_independent_p): Do not test for unanalyzed mems here.
34789 (ref_indep_loop_p_1): Special-case disambiguation against
34790 the unanalyzed ref.
34791 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34792
34793 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34794
34795 * config/arm/arm-protos.h (tune_params): Add
34796 prefer_neon_for_64bits field.
34797 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34798 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34799 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34800 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34801 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34802 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34803 (arm_option_override): Handle -mneon-for-64bits new option.
34804 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34805 (prefer_neon_for_64bits): Declare new variable.
34806 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34807 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34808 (arch_enabled): Handle new arch types. Remove support for onlya8
34809 and nota8.
34810 (one_cmpldi2): Use new arch names.
34811 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34812 * config/arm/arm.opt (mneon-for-64bits): Add option.
34813 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34814 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34815 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34816 of onlya8.
34817 * doc/invoke.texi (-mneon-for-64bits): Document.
34818
34819 2013-03-21 Richard Biener <rguenther@suse.de>
34820
34821 PR tree-optimization/39326
34822 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34823 (sort_bbs_in_loop_postorder_cmp): New function.
34824 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34825
34826 2013-03-21 Richard Biener <rguenther@suse.de>
34827
34828 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34829 (vect_insert_into_interleaving_chain): Likewise.
34830 (vect_drs_dependent_in_basic_block): Inline ...
34831 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34832 split out from ...
34833 (vect_analyze_data_ref_dependence): ... here. Simplify.
34834 (vect_check_interleaving): Simplify.
34835 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34836 (vect_slp_analyze_data_ref_dependences): ... this new function.
34837 (dr_group_sort_cmp): New function.
34838 (vect_analyze_data_ref_accesses): Compute data-reference groups
34839 here instead of in vect_analyze_data_ref_dependence. Use
34840 a more efficient algorithm.
34841 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34842 vect_slp_analyze_data_ref_dependences. Call
34843 vect_analyze_data_ref_accesses earlier.
34844 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34845 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34846 (vect_slp_analyze_data_ref_dependences): New prototype.
34847
34848 2013-03-21 Richard Biener <rguenther@suse.de>
34849
34850 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34851 ref is stored in the loop.
34852 (find_refs_for_sm): Walk only over all stores.
34853 (store_motion_loop): Allocate from lim_bitmap_obstack.
34854 (store_motion): Likewise.
34855
34856 2013-03-21 Richard Biener <rguenther@suse.de>
34857
34858 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34859 Update virtual SSA form.
34860
34861 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34862
34863 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34864 * configure: Regenerate.
34865 * config.in: Regenerate.
34866 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34867 if !HAVE_LD_EH_FRAME_CIEV3.
34868
34869 2013-03-21 Richard Biener <rguenther@suse.de>
34870
34871 * tree-cfg.c (verify_expr_no_block): New function.
34872 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34873 nor DECL_VALUE_EXPR have locations with associated blocks.
34874 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34875 (clear_unused_block_pointer): Remove code dealing with
34876 blocks in DECL_DEBUG_EXPR locations.
34877
34878 2013-03-21 Richard Biener <rguenther@suse.de>
34879
34880 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34881 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34882 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34883 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34884 instead of DECL_DEBUG_EXPR_IS_FROM.
34885 * gimplify.c (gimplify_modify_expr): Likewise.
34886 * tree-cfg.c (verify_expr_location_1): Likewise.
34887 * tree-complex.c (create_one_component_var): Likewise.
34888 * tree-sra.c (create_access_replacement): Likewise.
34889 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34890 (clear_unused_block_pointer): Likewise.
34891 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34892 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34893 * var-tracking.c (var_debug_decl): Likewise.
34894 (track_expr_p): Likewise.
34895 * tree-inline.c (add_local_variables): Likewise. Set
34896 DECL_HAS_DEBUG_EXPR_P after copying it.
34897 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34898 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34899
34900 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34901
34902 PR bootstrap/56656
34903 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34904 * configure: Regenerate.
34905 * config.in: Regenerate.
34906 * config/i386/i386.md (*movdf_internal): Use
34907 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34908 movd instead of movq mnemonic for interunit moves.
34909 (*movdi_internal): Ditto.
34910
34911 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34912
34913 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34914 (abd<mode>_3): New pattern.
34915 (aba<mode>_3): New pattern.
34916 (fabd<mode>_3): New pattern.
34917
34918 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34919
34920 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34921 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34922 occurrence of REGISTER_PREFIX as its empty string.
34923
34924 2013-03-20 Jeff Law <law@redhat.com>
34925
34926 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34927 addititional equivalences for equality comparisons between an SSA_NAME
34928 and a constant where the SSA_NAME was set from a widening conversion.
34929
34930 2013-03-20 Walter Lee <walt@tilera.com>
34931
34932 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34933
34934 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34935
34936 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34937 depending on type attribute.
34938 (*movti_internal): Ditto.
34939 (*movtf_internal): Ditto.
34940 (*movxf_internal): Ditto.
34941 (*movdf_internal): Ditto.
34942 (*movsf_internal): Ditto.
34943
34944 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34945
34946 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34947 maybe_vex for sselog1 and ssemov types.
34948 (*movdi_internal): Reorder operand constraints.
34949 (*movsi_internal): Ditto. Set prefix attribute to
34950 maybe_vex for sselog1 and ssemov types.
34951 (*movtf_internal): Set prefix attribute to maybe_vex
34952 for sselog1 and ssemov types.
34953 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34954 DImode ssemov types. Reorder operand constraints.
34955 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34956 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34957 attribute for SImode ssemov types. Reorder operand constraints.
34958
34959 2013-03-20 Martin Jambor <mjambor@suse.cz>
34960
34961 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34962 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34963
34964 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34965
34966 * config/rs6000/predicates.md (indexed_address, update_address_mem
34967 update_indexed_address_mem): New predicates.
34968 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34969 attribute for load/store instructions.
34970 * config/rs6000/dfp.md (movsd_store): Likewise.
34971 (movsd_load): Likewise.
34972 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34973 (unnamed HI->DI extend define_insn): Likewise.
34974 (unnamed SI->DI extend define_insn): Likewise.
34975 (unnamed QI->SI extend define_insn): Likewise.
34976 (unnamed QI->HI extend define_insn): Likewise.
34977 (unnamed HI->SI extend define_insn): Likewise.
34978 (unnamed HI->SI extend define_insn): Likewise.
34979 (extendsfdf2_fpr): Likewise.
34980 (movsi_internal1): Likewise.
34981 (movsi_internal1_single): Likewise.
34982 (movhi_internal): Likewise.
34983 (movqi_internal): Likewise.
34984 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34985 attribute for load/store instructions.
34986 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34987 instructions.
34988 (mov<mode>_softfloat): Likewise.
34989 (mov<mode>_hardfloat32): Likewise.
34990 (mov<mode>_hardfloat64): Likewise.
34991 (mov<mode>_softfloat64): Likewise.
34992 (movdi_internal32): Likewise.
34993 (movdi_internal64): Likewise.
34994 (probe_stack_<mode>): Likewise.
34995
34996 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34997
34998 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34999 floating point, and decimal floating point to reload iterator.
35000
35001 * config/rs6000/constraints.md (wl constraint): New constraints to
35002 return FLOAT_REGS if certain options are used to reduce the number
35003 of separate patterns that exist in the file.
35004 (wx constraint): Likewise.
35005 (wz constraint): Likewise.
35006
35007 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35008 -mdebug=reg, print wg, wl, wx, and wz constraints.
35009 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35010 Initialize the reload functions for 64-bit binary/decimal floating
35011 point types.
35012 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35013 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35014 create the buffer on the stack to overcome not having a 32-bit
35015 load and store.
35016 (rs6000_emit_move): Likewise.
35017 (rs6000_secondary_memory_needed_rtx): Likewise.
35018 (rs6000_alloc_sdmode_stack_slot): Likewise.
35019 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35020 via xxlxor, just like DFmode 0.0.
35021
35022 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
35023 define as 1 if we are running on a power7 or newer.
35024 (enum r6000_reg_class_enum): Add new constraints.
35025
35026 * config/rs6000/dfp.md (movsd): Delete, combine with binary
35027 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35028 with other moves by using conditional constraits (wg). Use LFIWZX
35029 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
35030 (movsd splitter): Likewise.
35031 (movsd_hardfloat): Likewise.
35032 (movsd_softfloat): Likewise.
35033
35034 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35035 binary and decimal floating point moves.
35036 (fmove_ok): New attributes to combine binary and decimal floating
35037 point moves, and to combine power6x (mfpgpr) moves along normal
35038 floating moves.
35039 (real_value_to_target): Likewise.
35040 (f32_lr): Likewise.
35041 (f32_lm): Likewise.
35042 (f32_li): Likewise.
35043 (f32_sr): Likewise.
35044 (f32_sm): Likewise.
35045 (f32_si): Likewise.
35046 (movsf): Combine binary and decimal floating point moves. Combine
35047 power6x (mfpgpr) moves with other moves by using conditional
35048 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
35049 (mov<mode> for SFmode/SDmode); Likewise.
35050 (SFmode/SDmode splitters): Likewise.
35051 (movsf_hardfloat): Likewise.
35052 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35053 (movsf_softfloat): Likewise.
35054 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35055
35056 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35057 wx and wz constraints.
35058
35059 * config/rs6000/constraints.md (wg constraint): New constraint to
35060 return FLOAT_REGS if -mmfpgpr (power6x) was used.
35061
35062 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35063 constraint.
35064
35065 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35066 -mdebug=reg, print wg, wl, wx, and wz constraints.
35067 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35068 Initialize the reload functions for 64-bit binary/decimal floating
35069 point types.
35070 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35071 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35072 create the buffer on the stack to overcome not having a 32-bit
35073 load and store.
35074 (rs6000_emit_move): Likewise.
35075 (rs6000_secondary_memory_needed_rtx): Likewise.
35076 (rs6000_alloc_sdmode_stack_slot): Likewise.
35077 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35078 via xxlxor, just like DFmode 0.0.
35079
35080 * config/rs6000/dfp.md (movdd): Delete, combine with binary
35081 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35082 with other moves by using conditional constraits (wg). Use LFIWZX
35083 and STFIWX for loading SDmode on power7.
35084 (movdd splitters): Likewise.
35085 (movdd_hardfloat32): Likewise.
35086 (movdd_softfloat32): Likewise.
35087 (movdd_hardfloat64_mfpgpr): Likewise.
35088 (movdd_hardfloat64): Likewise.
35089 (movdd_softfloat64): Likewise.
35090
35091 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35092 64-bit binary and decimal floating point moves.
35093 (FMOVE64X): Likewise.
35094 (movdf): Combine 64-bit binary and decimal floating point moves.
35095 Combine power6x (mfpgpr) moves with other moves by using
35096 conditional constraits (wg).
35097 (mov<mode> for DFmode/DDmode): Likewise.
35098 (DFmode/DDmode splitters): Likewise.
35099 (movdf_hardfloat32): Likewise.
35100 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35101 (movdf_softfloat32): Likewise.
35102 (movdf_hardfloat64_mfpgpr): Likewise.
35103 (movdf_hardfloat64): Likewise.
35104 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35105 (movdf_softfloat64): Likewise.
35106 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35107 (reload_<mode>_load): Move to later in the file so they aren't in
35108 the middle of the floating point move insns.
35109 (reload_<mode>_store): Likewise.
35110
35111 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35112 constraint.
35113
35114 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35115 constraint if -mdebug=reg.
35116 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35117 Enable using dd reload support if needed.
35118
35119 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35120 binary and decimal floating point moves in rs6000.md.
35121 (movtd_internal): Likewise.
35122
35123 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35124 decimal floating point moves.
35125 (movtf): Likewise.
35126 (movtf_internal): Likewise.
35127 (mov<mode>_internal, TDmode/TFmode): Likewise.
35128 (movtf_softfloat): Likewise.
35129 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35130
35131 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35132 movdi_internal64, using wg constraint for move direct operations.
35133 (movdi_internal64): Likewise.
35134
35135 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35136 MODES_TIEABLE_P for selected modes. Print the numerical value of
35137 the various virtual registers. Use GPR/FPR first/last values,
35138 instead of hard coding the register numbers. Print which modes
35139 have reload functions registered.
35140 (rs6000_option_override_internal): If -mdebug=reg, trace the options
35141 settings before/after setting cpu, target and subtarget settings.
35142 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35143 and for secondary reload failures in rs6000_secondary_reload_inner.
35144 (rs6000_secondary_reload_fail): Likewise.
35145 (rs6000_secondary_reload_inner): Likewise.
35146
35147 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35148 macros for first/last GPR and FPR registers.
35149 (LAST_GPR_REGNO): Likewise.
35150 (FIRST_FPR_REGNO): Likewise.
35151 (LAST_FPR_REGNO): Likewise.
35152
35153 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35154 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35155 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35156 (vcond<mode><mode>): Likewise.
35157 (vcondu<mode><mode>): Likewise.
35158 (vector_gtu<mode>): Likewise.
35159 (vector_gte<mode>): Likewise.
35160 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35161 to prevent the compiler from converting DImode operations to TImode.
35162 (ior<mode>3): Likewise.
35163 (and<mode>3): Likewise.
35164 (one_cmpl<mode>2): Likewise.
35165 (nor<mode>3): Likewise.
35166 (andc<mode>3): Likewise.
35167
35168 * config/rs6000/constraints.md (wt constraint): New constraint
35169 that returns VSX_REGS if TImode is allowed in VSX registers.
35170
35171 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35172 constant under VSX.
35173
35174 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35175 similar to TImode, but it is restricted to being in the GPRs.
35176
35177 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35178 TImode to occupy a single VSX register.
35179
35180 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35181 -mvsx-timode for power7/power8.
35182 (power7 cpu): Likewise.
35183 (power8 cpu): Likewise.
35184
35185 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35186 sure that TFmode/TDmode take up two registers if they are ever
35187 allowed in the upper VSX registers.
35188 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35189 registers.
35190 (rs6000_init_hard_regno_mode_ok): Likewise.
35191 (rs6000_debug_reg_global): Add debugging for PTImode and wt
35192 constraint. Print if LRA is turned on.
35193 (rs6000_option_override_internal): Give an error if -mvsx-timode
35194 and VSX is not enabled.
35195 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
35196 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35197 to reg+offset addressing. Use PTImode when checking offset
35198 addresses for validity.
35199 (reg_offset_addressing_ok_p): Likewise.
35200 (rs6000_legitimate_offset_address_p): Likewise.
35201 (rs6000_legitimize_address): Likewise.
35202 (rs6000_legitimize_reload_address): Likewise.
35203 (rs6000_legitimate_address_p): Likewise.
35204 (rs6000_eliminate_indexed_memrefs): Likewise.
35205 (rs6000_emit_move): Likewise.
35206 (rs6000_secondary_reload): Likewise.
35207 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
35208 reloads to fpr registers to continue to use reg+offset addressing,
35209 but 64-bit reloads to altivec registers need reg+reg addressing.
35210 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35211 it. Treat LO_SUM like a PLUS operation.
35212 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35213 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35214 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35215 registers to share a register with a smaller sized type, since VSX
35216 puts scalars in the upper 64-bits.
35217 (print_operand): Add support for PTImode.
35218 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35219 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35220 registers, but don't have arithmetic support.
35221 (rs6000_memory_move_cost): Add test for VSX.
35222 (rs6000_opt_masks): Add -mvsx-timode.
35223
35224 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35225 for TImode.
35226 (VSs): Likewise.
35227 (VSr): Use wt constraint for TImode.
35228 (VSv): Drop TImode support.
35229 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35230 (vsx_movti_64bit): Likewise.
35231 (vsx_movti_32bit): Likewise.
35232 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35233 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35234 one '?' on the appropriate output constraint. Do not allow TImode
35235 logical operations on 32-bit systems.
35236 (vsx_ior<mode>3): Likewise.
35237 (vsx_xor<mode>3): Likewise.
35238 (vsx_one_cmpl<mode>2): Likewise.
35239 (vsx_nor<mode>3): Likewise.
35240 (vsx_andc<mode>3): Likewise.
35241 (vsx_concat_<mode>): Likewise.
35242 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35243
35244 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35245 OPTION_MASK_VSX_TIMODE.
35246 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35247 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35248
35249 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35250 (TI2 iterator): New iterator for TImode, PTImode.
35251 (wd mode attribute): Add values for vector types.
35252 (movti_string): Replace TI move operations with operations for TImode
35253 and PTImode. Add support for TImode being allowed in VSX registers.
35254 (mov<mode>_string, TImode/PTImode): Likewise.
35255 (movti_ppc64): Likewise.
35256 (mov<mode>_ppc64, TImode/PTImode): Likewise.
35257 (TI mode splitters): Likewise.
35258
35259 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35260 constraint.
35261
35262 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
35263
35264 PR tree-optimization/56355
35265 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35266 Also handle integers with undefined overflow.
35267
35268 2013-03-20 Catherine Moore <clm@codesourcery.com>
35269 Maciej W. Rozycki <macro@codesourcery.com>
35270 Tom de Vries <tom@codesourcery.com>
35271 Nathan Sidwell <nathan@codesourcery.com>
35272 Iain Sandoe <iain@codesourcery.com>
35273 Nathan Froyd <froydnj@codesourcery.com>
35274 Chao-ying Fu <fu@mips.com>
35275
35276 * doc/extend.texi: (micromips, nomicromips, nocompression):
35277 Document new function attributes.
35278 * doc/invoke.texi (minterlink-compressed, mmicromips,
35279 m14k, m14ke, m14kec): Document new options.
35280 (minterlink-mips16): Update documentation.
35281 * doc/md.texi (ZC, ZD): Document new constraints.
35282 * configure.ac (gcc_cv_as_micromips): Check if linker
35283 supports the .set micromips directive.
35284 * configure: Regenerate.
35285 * config.in: Regenerate.
35286 * config/mips/mips-tables.opt: Regenerate.
35287 * config/mips/micromips.md: New file.
35288 * constraints.md (ZC, ZD): New constraints.
35289 * config/mips/predicates.md (movep_src_register): New predicate.
35290 (movep_src_operand): New predicate.
35291 (non_volatile_mem_operand): New predicate.
35292 * config/mips/mips.md (multimem): New type.
35293 (length): Differentiate between 17-bit and 18-bit branch offsets.
35294 (MOVEP1, MOVEP2): New mode iterator.
35295 (mov_<load>l): Use ZC constraint.
35296 (mov_<load>r): Likewise.
35297 (mov_<store>l): Likewise.
35298 (mov_<store>r): Likewise.
35299 (*branch_equality<mode>_inverted): Add microMIPS support.
35300 (*branch_equality<mode>): Likewise.
35301 (*jump_absolute): Likewise.
35302 (indirect_jump_<mode>): Likewise.
35303 (tablejump_<mode>): Likewise.
35304 (<optab>_internal): Likewise.
35305 (sibcall_internal): Likewise.
35306 (sibcall_value_internal): Likewise.
35307 (prefetch): Use constraint ZD.
35308 * config/mips/mips.opt (minterlink-compressed): New option.
35309 (minterlink-mips16): Now an alias for minterlink-compressed.
35310 (mmicromips): New option.
35311 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35312 (compare_and_swap_12): Likewise.
35313 (sync_add<mode>): Likewise.
35314 (sync_<optab>_12): Likewise.
35315 (sync_old_<optab>_12): Likewise.
35316 (sync_new_<optab>_12): Likewise.
35317 (sync_nand_12): Likewise.
35318 (sync_old_nand_12): Likewise.
35319 (sync_new_nand_12): Likewise.
35320 (sync_sub<mode>): Likewise.
35321 (sync_old_add<mode>): Likewise.
35322 (sync_old_sub<mode>): Likewise.
35323 (sync_new_add<mode>): Likewise.
35324 (sync_new_sub<mode>): Likewise.
35325 (sync_<optab><mode>): Likewise.
35326 (sync_old_<optab><mode>): Likewise.
35327 (sync_new_<optab><mode>): Likewise.
35328 (sync_nand<mode>): Likewise.
35329 (sync_old_nand<mode>): Likewise.
35330 (sync_new_nand<mode>): Likewise.
35331 (sync_lock_test_and_set<mode>): Likewise.
35332 (test_and_set_12): Likewise.
35333 (atomic_compare_and_swap<mode>): Likewise.
35334 (atomic_exchange<mode>_llsc): Likewise.
35335 (atomic_fetch_add<mode>_llsc): Likewise.
35336 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35337 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35338 (umips_save_restore_pattern_p): Likewise.
35339 (umips_load_store_pair_p): Likewise.
35340 (umips_output_load_store_pair): Likewise.
35341 (umips_movep_target_p): Likewise.
35342 (umips_12bit_offset_address_p): Likewise.
35343 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35344 (mips_base_mips16): Rename this...
35345 (mips_base_compression_flags): ...to this. Update all uses.
35346 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35347 (mips_mips16_decl_p): Delete.
35348 (mips_nomips16_decl_p): Delete.
35349 (mips_get_compress_on_flags): New function.
35350 (mips_get_compress_off_flags): New function.
35351 (mips_get_compress_mode): New function.
35352 (mips_get_compress_on_name): New function.
35353 (mips_get_compress_off_name): New function.
35354 (mips_insert_attributes): Support multiple compression types.
35355 (mips_merge_decl_attributes): Likewise.
35356 (umips_12bit_offset_address_p): New function.
35357 (mips_start_function_definition): Emit .set micromips directive.
35358 (mips_call_may_need_jalx_p): New function.
35359 (mips_function_ok_for_sibcall): Add microMIPS support.
35360 (mips_print_operand_punctuation): Support short delay slots and
35361 compact jumps.
35362 (umips_swm_mask, umips_swm_encoding): New.
35363 (umips_build_save_restore): New function.
35364 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35365 (was_mips16_p): Remove.
35366 (old_compression_mode): New.
35367 (mips_set_compression_mode): New function.
35368 (mips_set_current_function): Add microMIPS support.
35369 (mips_option_override): Likewise.
35370 (umips_save_restore_pattern_p): New function.
35371 (umips_output_save_restore): New function.
35372 (umips_load_store_pair_p_1): New function.
35373 (umips_load_store_pair_p): New function.
35374 (umips_output_load_store_pair_1): New function.
35375 (umips_output_load_store_pair): New function.
35376 (umips_movep_target_p) New function.
35377 (mips_prepare_pch_save): Add microMIPS support.
35378 * config/mips/mips.h (TARGET_COMPRESSION): New.
35379 (TARGET_CPU_CPP_BUILTINS): Update macro
35380 to use new compression flags and to support microMIPS.
35381 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35382 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35383 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35384 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35385 (ASM_SPEC): Support mmicromips and mno-micromips.
35386 (M16STORE_REG_P): New macro.
35387 (MIPS_CALL): Support TARGET_MICROMIPS.
35388 (MICROMIPS_J): New macro.
35389 (mips_base_mips16): Rename this...
35390 (mips_base_compression_flags): ...to this.
35391 (UMIPS_12BIT_OFFSET_P): New macro.
35392 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35393 (MULTILIB_DIRNAMES): Likewise.
35394 2013-03-20 Richard Biener <rguenther@suse.de>
35395
35396 PR tree-optimization/56661
35397 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35398 the result does not have to be distinct.
35399
35400 2013-03-20 Richard Biener <rguenther@suse.de>
35401
35402 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35403 remap_gimple_op_r.
35404
35405 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35406 Steven Bosscher <steven@gcc.gnu.org>
35407
35408 PR rtl-optimization/56605
35409 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35410
35411 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35412
35413 PR bootstrap/56656
35414 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35415 that require movd instead of movq.
35416
35417 2013-03-20 Richard Biener <rguenther@suse.de>
35418
35419 * tree-ssa-structalias.c (struct variable_info): Add pointer
35420 to the first field of an aggregate with sub-vars. Make
35421 this and the pointer to the next subfield its ID.
35422 (vi_next): New function.
35423 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35424 storedanything_id, integer_id): Increment by one.
35425 (new_var_info, get_call_vi, lookup_call_clobber_vi,
35426 get_call_clobber_vi): Adjust.
35427 (solution_set_expand): Simplify and speedup.
35428 (solution_set_add): Inline into ...
35429 (set_union_with_increment): ... this. Adjust accordingly.
35430 (do_sd_constraint): Likewise.
35431 (do_ds_constraint): Likewise.
35432 (do_complex_constraint): Simplify.
35433 (build_pred_graph): Adjust.
35434 (solve_graph): Likewise. Simplify and speedup.
35435 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35436 get_constraint_for_component_ref, get_constraint_for_1,
35437 first_vi_for_offset, first_or_preceding_vi_for_offset,
35438 create_function_info_for, create_variable_info_for_1,
35439 create_variable_info_for, intra_create_variable_infos): Adjust.
35440 (init_base_vars): Push NULL for ID zero.
35441 (compute_points_to_sets): Adjust.
35442
35443 2013-03-20 Richard Biener <rguenther@suse.de>
35444
35445 * cfgloop.c (verify_loop_structure): Streamline and avoid
35446 ICEing on corrupt loop tree.
35447 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35448 loop tree.
35449
35450 2013-03-20 Richard Biener <rguenther@suse.de>
35451
35452 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35453 check whether an SSA update is needed.
35454
35455 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
35456
35457 * config/mips/constraints.md (T): Rename to...
35458 (Yf): ...this.
35459 (U): Rename to...
35460 (Yd): ...this.
35461 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35462 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35463
35464 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35465
35466 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35467 (*subsi3_carryin_uxtw): Likewise.
35468
35469 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35470
35471 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35472 (*rorsi3_insn_uxtw): Likewise.
35473
35474 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35475
35476 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35477 (*extrsi5_insn_uxtw): Likewise.
35478
35479 2013-03-19 Richard Biener <rguenther@suse.de>
35480
35481 PR tree-optimization/56273
35482 * passes.c (init_optimization_passes): Move second VRP after DOM.
35483
35484 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35485
35486 * config/i386/i386.md (*movti_internal): Merge from
35487 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35488 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35489 nox64 isa attributes.
35490
35491 2013-03-18 Richard Biener <rguenther@suse.de>
35492
35493 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35494 (unite): Likewise.
35495 (merge_node_constraints): Likewise.
35496 (build_succ_graph): Likewise.
35497 (valid_graph_edge): Inline into single caller.
35498 (unify_nodes): Likewise. Use bitmap_set_bit return value
35499 and cache varinfo.
35500 (scc_visit): Fix formatting and variable use.
35501 (do_sd_constraint): Use gcc_checking_assert.
35502 (do_ds_constraint): Likewise.
35503 (do_complex_constraint): Likewise.
35504 (condense_visit): Likewise. Cleanup.
35505 (dump_pred_graph): New function.
35506 (perform_var_substitution): Dump the pred-graph before
35507 variable substitution.
35508 (find_equivalent_node): Use gcc_checking_assert.
35509 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35510
35511 2013-03-18 Richard Biener <rguenther@suse.de>
35512
35513 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35514 Remove cond_expr_stmt_list argument and do not gimplify the
35515 built expression.
35516 (vect_loop_versioning): Adjust.
35517 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35518 Cleanup to use less temporaries.
35519 (vect_create_data_ref_ptr): Cleanup.
35520
35521 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35522
35523 PR tree-optimization/56635
35524 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35525 require types_compatible_p types.
35526
35527 2013-03-18 Nick Clifton <nickc@redhat.com>
35528
35529 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35530 spurious backslash.
35531
35532 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35533 Add missing line to comment describing function.
35534
35535 2013-03-18 Richard Biener <rguenther@suse.de>
35536
35537 PR tree-optimization/56210
35538 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35539 Handle string / character search functions.
35540 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35541
35542 2013-03-18 Richard Biener <rguenther@suse.de>
35543
35544 PR middle-end/56483
35545 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35546 and implement properly.
35547 * gimple.h (gimple_cond_single_var_p): Remove.
35548
35549 2013-03-18 Richard Biener <rguenther@suse.de>
35550
35551 * tree-data-ref.h (find_data_references_in_loop): Declare.
35552 * tree-data-ref.c (get_references_in_stmt): Use a stack
35553 vector pre-allocated in the callers.
35554 (find_data_references_in_stmt): Adjust.
35555 (graphite_find_data_references_in_stmt): Likewise.
35556 (create_rdg_vertices): Likewise.
35557 (find_data_references_in_loop): Export.
35558 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35559 Compute dependences here...
35560 (vect_analyze_data_refs): ...not here. When we encounter
35561 a non-vectorizable data reference in basic-block vectorization
35562 truncate the data reference vector. Do not bother to
35563 fixup data-dependence information for gather loads.
35564 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35565 of data references, as reported.
35566
35567 2013-03-18 Richard Biener <rguenther@suse.de>
35568
35569 PR tree-optimization/3713
35570 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35571 has_constants and expr.
35572 (stmt_has_constants): Properly valueize SSA names when deciding
35573 whether the stmt has constants.
35574
35575 2013-03-18 Richard Biener <rguenther@suse.de>
35576
35577 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35578 whole function when there is nothing to do.
35579 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35580 * tree-vectorizer.c (vectorize_loops): Update virtual and
35581 loop-closed SSA once.
35582 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35583
35584 2013-03-18 Richard Biener <rguenther@suse.de>
35585
35586 PR middle-end/56113
35587 * domwalk.c (bb_postorder): New global static.
35588 (cmp_bb_postorder): New function.
35589 (walk_dominator_tree): Replace scheme imposing an order for
35590 visiting dominator sons by one sorting them at the time they
35591 are pushed on the stack.
35592
35593 2013-03-18 Richard Biener <rguenther@suse.de>
35594
35595 PR tree-optimization/39326
35596 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35597 (struct mem_ref): Replace mem member with ao_ref typed member.
35598 (MEM_ANALYZABLE): Adjust.
35599 (memref_eq): Likewise.
35600 (mem_ref_alloc): Likewise.
35601 (gather_mem_refs_stmt): Likewise.
35602 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35603 (execute_sm_if_changed_flag_set): Adjust.
35604 (execute_sm): Likewise.
35605 (ref_always_accessed_p): Likewise.
35606 (refs_independent_p): Likewise.
35607 (can_sm_ref_p): Likewise.
35608
35609 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35610
35611 PR c/56566
35612 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35613 return 1 even for !unsignedp.
35614
35615 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35616
35617 * config/i386/i386.md (isa): Add x64 and nox64.
35618 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35619 (*pushtf): Enable *roF alternative for x64 isa only.
35620 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35621 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35622 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35623 (*movtf_internal): Merge from *movtf_internal_rex64 and
35624 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35625 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35626 nox64 isa attributes.
35627 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35628 nox64 isa attributes.
35629 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35630
35631 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35632
35633 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35634
35635 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35636
35637 PR target/56640
35638 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35639 class names. Remove trailing comma after "ALL_REGS".
35640
35641 2013-03-16 Jan Hubicka <jh@suse.cz>
35642
35643 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35644 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35645 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35646 of cgraph_get_create_node.
35647 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35648
35649 2013-03-16 Jason Merrill <jason@redhat.com>
35650
35651 PR debug/49090
35652 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35653 with DW_AT_default_value.
35654
35655 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35656
35657 * BASE-VER: Set to 4.9.0.
35658
35659 2013-03-14 Andi Kleen <ak@linux.intel.com>
35660
35661 PR target/56619
35662 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35663 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35664 Document _x* TSX intrinsics.
35665
35666 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35667 David Holsgrove <david.holsgrove@xilinx.com>
35668
35669 * configure.ac: Add MicroBlaze TLS support detection.
35670 * configure: Regenerate.
35671 * config/microblaze/microblaze-protos.h
35672 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35673 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35674 * config/microblaze/microblaze.c (microblaze_address_type): Add
35675 ADDRESS_TLS and tls_reloc address types.
35676 (microblaze_address_info): Add tls_reloc.
35677 (TARGET_HAVE_TLS): Define.
35678 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35679 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35680 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35681 load_tls_operand, microblaze_call_tls_get_addr,
35682 microblaze_legitimize_tls_address): New functions.
35683 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35684 (get_base_reg): Use microblaze_tls_symbol_p.
35685 (microblaze_classify_address): Handle TLS.
35686 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35687 label_mentioned_p and microblaze_tls_referenced_p.
35688 (microblaze_legitimize_address): Handle TLS.
35689 (microblaze_address_insns): Handle ADDRESS_TLS.
35690 (pic_address_needs_scratch): Handle TLS.
35691 (print_operand_address): Handle TLS.
35692 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35693 (microblaze_expand_move): Handle TLS.
35694 (microblaze_legitimate_constant_p): Check
35695 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35696 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35697 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35698 (PIC_OFFSET_TABLE_REGNUM): Set.
35699 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35700 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35701 (addsi3, movsi_internal2, movdf_internal): Update constraints
35702 * config/microblaze/predicates.md (arith_plus_operand): Define
35703 (move_operand): Redefine as move_src_operand,
35704 check microblaze_tls_referenced_p.
35705
35706 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35707
35708 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35709 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35710
35711 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35712
35713 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35714 CC mode for AND.
35715
35716 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35717
35718 PR tree-optimization/53265
35719 * common.opt (Waggressive-loop-optimizations): New option.
35720 * tree-ssa-loop-niter.c: Include tree-pass.h.
35721 (do_warn_aggressive_loop_optimizations): New function.
35722 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35723 if number_of_latch_executions returned constant.
35724 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35725 early. If number_of_latch_executions returned constant, set
35726 nb_iterations_upper_bound back to it.
35727 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35728 field.
35729 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35730 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35731
35732 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35733 (MULTILIB_OSDIRNAMES): Set.
35734 * genmultilib: If defaultosdirname doesn't start with :: , set
35735 defaultosdirname2 instead, clear it and emit two . multilib_raw
35736 entries instead of just one.
35737
35738 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35739
35740 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35741 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35742 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35743 (SUBTARGET_OVERRIDE_OPTIONS): New.
35744
35745 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35746
35747 PR target/49880
35748 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35749 (musermode): Convert to Var(TARGET_USERMODE).
35750 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35751 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35752 * config/sh/sh.c (sh_option_override): Use
35753 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35754 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35755 condition.
35756 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35757 TARGET_SH4.
35758 (udivsi3_i4_single, divsi3_i4_single): Use
35759 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35760
35761 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35762
35763 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35764 default setting.
35765
35766 2013-03-13 Richard Biener <rguenther@suse.de>
35767
35768 PR tree-optimization/56608
35769 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35770 calls when vectorizing basic-blocks.
35771
35772 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35773
35774 PR plugins/45078
35775 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35776 tm_file.
35777
35778 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35779
35780 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35781
35782 2013-03-11 Jan Hubicka <jh@suse.cz>
35783
35784 PR lto/56557
35785 * lto-streamer-out.c (output_symbol_p): Skip references from
35786 constructors of external variables.
35787
35788 2013-03-11 Jan Hubicka <jh@suse.cz>
35789
35790 PR middle-end/56571
35791 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35792 from pseudos.
35793 * emit-rtl.c (verify_rtx_sharing): Likewise.
35794 (copy_insn_1): Likewise.
35795 * rtl.c (copy_rtx): Likewise.
35796
35797 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35798
35799 PR target/56591
35800 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35801 output_operand_lossage message.
35802
35803 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35804
35805 PR target/56470
35806 * arm.c (shift_op): Validate RTL pattern on the fly.
35807 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35808 the RTL.
35809
35810 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35811
35812 PR target/56347
35813 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35814 new call patterns that clobber %fr12.
35815 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35816 split and postreload patterns.
35817 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35818 registers %fr12 and %fr12R as call used.
35819
35820 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35821
35822 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35823 (canon_address, record_store, replace_read, check_mem_read_rtx,
35824 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35825 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35826 rest_of_handle_dse): Likewise.
35827
35828 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35829
35830 PR middle-end/56524
35831 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35832 Add base_optabs.
35833 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35834 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35835 (save_optabs_if_changed): Replace with...
35836 (init_tree_optimization_optabs): ...this.
35837 * optabs.c (save_optabs_if_changed): Rename to...
35838 (init_tree_optimization_optabs): ...this. Take the optimization node
35839 as argument. Do nothing if the base optabs are already correct.
35840 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35841 to recompute optabs.
35842 * function.h (function): Remove optabs field.
35843 * function.c (invoke_set_current_function_hook): Call
35844 init_tree_optimization_optabs. Use the result to initialize
35845 this_fn_optabs.
35846
35847 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35848
35849 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35850 if GTMA_HAS_NO_INSTRUMENTATION.
35851 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35852 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35853 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35854 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35855 GTMA_HAS_NO_INSTRUMENTATION.
35856
35857 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35858
35859 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35860 libasan_preinit.o.
35861
35862 2013-03-08 Marek Polacek <polacek@redhat.com>
35863 Jakub Jelinek <jakub@redhat.com>
35864
35865 PR tree-optimization/56478
35866 * predict.c (is_comparison_with_loop_invariant_p): Change the
35867 type of loop_step to tree.
35868 (predict_loops): Adjust.
35869 (predict_iv_comparison): Perform the computations on double_ints.
35870
35871 2013-03-08 Richard Biener <rguenther@suse.de>
35872
35873 PR tree-optimization/56570
35874 * tree-cfg.c (verify_expr_location_1): Verify locations for
35875 DECL_DEBUG_EXPR.
35876 * tree-sra.c (create_access_replacement): Strip locations
35877 from DECL_DEBUG_EXPRs.
35878
35879 2013-03-08 Richard Biener <rguenther@suse.de>
35880
35881 * tree-inline.c (expand_call_inline): Do not associate
35882 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35883 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35884
35885 2013-03-08 Richard Biener <rguenther@suse.de>
35886
35887 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35888 or block changes with -Og. Fix for location / block encoding
35889 changes and PHI arguments with locations.
35890
35891 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35892
35893 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35894 for all counters.
35895 (struct output_info): Likewise.
35896 (register_overhead): Remove bad gcc_assert.
35897 (bitmap_find_bit): If there is only a single bitmap element, do not
35898 count a miss as a search.
35899 (print_statistics): Update for counter type changes.
35900 (dump_bitmap_statistics): Likewise. Print headers such that they
35901 are properly lined up with the printed counters.
35902
35903 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35904
35905 PR tree-optimization/56559
35906 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35907 check that it has only a single use.
35908
35909 2013-03-07 Richard Biener <rguenther@suse.de>
35910
35911 * doc/invoke.texi (fwhole-program): Discourage use in combination
35912 with -flto.
35913
35914 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35915
35916 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35917
35918 PR tree-optimization/56539
35919 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35920 instead of GSI_CONTINUE_LINKING as last argument to
35921 force_gimple_operand_gsi. Adjust function comment.
35922
35923 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35924 aarch64-cores.def.
35925
35926 PR middle-end/56548
35927 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35928 promoted mode, convert the result back to the original mode.
35929
35930 2013-03-06 Richard Biener <rguenther@suse.de>
35931
35932 PR middle-end/56294
35933 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35934 (insert_updated_phi_nodes_compare_uids): New function.
35935 (update_ssa): Sort symbols_to_rename after UID before
35936 traversing it to insert PHI nodes.
35937
35938 2013-03-06 Richard Biener <rguenther@suse.de>
35939
35940 PR middle-end/50494
35941 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35942 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35943
35944 Revert
35945 2013-02-13 Richard Biener <rguenther@suse.de>
35946
35947 PR lto/50494
35948 * varasm.c (output_constant_def_1): Get the decl representing
35949 the constant as argument.
35950 (output_constant_def): Wrap output_constant_def_1.
35951 (make_decl_rtl): Use output_constant_def_1 with the decl
35952 representing the constant.
35953 (build_constant_desc): Optionally re-use a decl already
35954 representing the constant.
35955 (tree_output_constant_def): Adjust.
35956
35957 2013-03-06 Joey Ye <joey.ye@arm.com>
35958
35959 PR lto/50293
35960 * gcc.c (convert_white_space): New function.
35961 (main): Handles white space in function name.
35962
35963 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35964
35965 PR target/56529
35966 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35967 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35968 to SH_DIV_CALL_TABLE for TARGET_SH2.
35969 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35970 list.
35971 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35972 call-table options.
35973
35974 2013-03-05 Sterling Augustine <saugustine@google.com>
35975 Cary Coutant <ccoutant@google.com>
35976
35977 PR debug/55364
35978 * dwarf2out.c (resolve_addr): Don't call
35979 remove_loc_list_addr_table_entries a second time for the same
35980 expression.
35981
35982 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35983
35984 PR debug/56510
35985 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35986 (avoid_complex_debug_insns): New function.
35987 (expand_debug_locations): Call it.
35988
35989 PR rtl-optimization/56484
35990 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35991 lifetimes of hard registers on small register class machines.
35992
35993 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35994
35995 * config/microblaze/microblaze-protos.h: Rename
35996 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35997 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35998 fast_interrupt.
35999 (microblaze_fast_interrupt_function_p): New function.
36000 (microblaze_is_interrupt_handler): Rename to
36001 microblaze_is_interrupt_variant and add fast_interrupt check.
36002 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
36003 (save_restore_insns): Likewise.
36004 (compute_frame_size): Likewise.
36005 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
36006 (microblaze_globalize_label): Likewise.
36007 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
36008 * config/microblaze/microblaze.md: Use wrapper
36009 microblaze_is_interrupt_variant.
36010
36011 2013-03-05 Kai Tietz <ktietz@redhat.com>
36012
36013 * sdbout.c (sdbout_one_type): Switch to current function's section
36014 supporting cold/hot.
36015
36016 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36017
36018 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
36019 -mxl-reorder.
36020
36021 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36022
36023 PR middle-end/56461
36024 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
36025 if VALGRIND_GET_VBITS is defined, temporarily make object
36026 memory all defined, and restore previous valgrind addressability
36027 and definability afterwards. Free this_object at the end.
36028
36029 PR middle-end/56461
36030 * lra.c (lra): Call lra_clear_live_ranges if live_p,
36031 right before calling lra_create_live_ranges, also call it
36032 when clearing live_p. Only call lra_clear_live_ranges
36033 at the end if live_p.
36034
36035 PR middle-end/56461
36036 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36037
36038 2013-03-05 Richard Biener <rguenther@suse.de>
36039
36040 PR tree-optimization/56521
36041 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36042 value-id.
36043
36044 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
36045
36046 PR c++/55135
36047 * except.h (remove_unreachable_eh_regions): New prototype.
36048 * except.c (remove_eh_handler_splicer): New function, split out
36049 of remove_eh_handler.
36050 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
36051 warning about running it on many EH regions one at a time.
36052 (remove_unreachable_eh_regions_worker): New function, walk the
36053 EH tree in depth-first order and remove non-marked regions.
36054 (remove_unreachable_eh_regions): New function.
36055 * tree-eh.c (mark_reachable_handlers): New function, split out
36056 from remove_unreachable_handlers.
36057 (remove_unreachable_handlers): Use mark_reachable_handlers and
36058 remove_unreachable_eh_regions.
36059 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36060 and remove_unreachable_eh_regions.
36061
36062 2013-03-05 Richard Biener <rguenther@suse.de>
36063
36064 PR middle-end/56525
36065 * loop-init.c (fix_loop_structure): Remove loops in two stages,
36066 not freeing them until the end.
36067
36068 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36069
36070 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36071
36072 2013-03-05 Richard Biener <rguenther@suse.de>
36073
36074 PR tree-optimization/56270
36075 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36076 of loads after scheduling an SLP instance.
36077
36078 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36079
36080 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36081 tic6x.exp.
36082 (check_gcc_parallelize): Run guality.exp as a separate job from
36083 vect.exp with unsorted.exp and $(dg_target_exps) separately from
36084 struct-layout-1.exp with stackalign.exp.
36085
36086 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36087
36088 PR middle-end/56461
36089 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36090 load_index sbitmap even if some bit in it isn't set.
36091
36092 PR middle-end/56461
36093 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36094 (discover_iteration_bound_by_body_walk): Change queues to
36095 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
36096 spelling in comment. Call safe_push on queues[bound_index] directly.
36097 Release queues[queue_index] in every iteration unconditionally.
36098 Release bounds vector.
36099
36100 PR middle-end/56461
36101 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36102 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36103 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36104 inner_phis vector.
36105
36106 2013-03-05 Richard Biener <rguenther@suse.de>
36107
36108 PR lto/56515
36109 * tree-inline.c (remap_blocks_to_null): New function.
36110 (expand_call_inline): When expanding a call stmt without
36111 an associated block inline remap all callee blocks to NULL.
36112
36113 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36114
36115 PR rtl-optimization/56494
36116 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36117 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36118 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36119
36120 PR middle-end/56461
36121 * sel-sched-ir.c (free_sched_pools): Release
36122 succs_info_pool.stack[succs_info_pool.max_top] vectors too
36123 if succs_info_pool.max_top isn't -1.
36124
36125 PR bootstrap/56509
36126 * opts.c (opts_obstack, opts_concat): Moved to...
36127 * opts-common.c (opts_obstack, opts_concat): ... here.
36128
36129 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36130
36131 PR middle-end/56461
36132 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36133
36134 2013-03-04 Martin Jambor <mjambor@suse.cz>
36135
36136 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36137 all appropriate places.
36138
36139 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
36140
36141 PR tree-optimization/56424
36142 * ipa-split.c (split_function): Do not set the RSO flag if result is
36143 not by reference and its type is a register type.
36144
36145 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
36146
36147 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36148 (microblaze_legitimate_pic_operand): Likewise
36149 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36150 new function microblaze_legitimate_pic_operand
36151 * config/microblaze/microblaze-protos.h
36152 (microblaze_legitimate_pic_operand): Declare.
36153
36154 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36155
36156 * config/microblaze/predicates.md (call_insn_simple_operand):
36157 New predicate for supported rtx code types.
36158 * config/microblaze/microblaze.md (call_internal1): Use
36159 call_insn_simple_operand predicate.
36160
36161 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36162
36163 PR middle-end/56461
36164 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36165 partitions.ordered_remove.
36166
36167 PR middle-end/56461
36168 * tree-vect-stmts.c (vectorizable_conversion): Don't call
36169 vec_oprnds0.create (1) for modifier == NONE.
36170
36171 PR middle-end/56461
36172 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36173 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36174 vec_oprnds1 right before pushing anything to it for
36175 scalar_shift_arg.
36176
36177 PR middle-end/56461
36178 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36179 set nbbs to 0 instead of having separate code path.
36180 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36181 instead of false as last argument if returning NULL.
36182
36183 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
36184
36185 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36186 the attribute is now called "target" instead of "option".
36187 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36188 * doc/tm.texi.in (Target Attributes): Likewise document the correct
36189 attribute/pragma name for TARGET_OPTION_VALID_P and
36190 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
36191 * doc/tm.texi: Regenerated.
36192
36193 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
36194
36195 * config/microblaze/microblaze.c:
36196 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36197 * config/microblaze/microblaze.h: Add -mxl-reorder to
36198 DRIVER_SELF_SPECS.
36199 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36200 instructions emitted if TARGET_REORDER.
36201 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36202 or 0 for -m/-mno case, but initialises as 2 to detect default use case
36203 separately.
36204
36205 2013-03-01 Xinliang David Li <davidxl@google.com>
36206
36207 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36208 walk length.
36209
36210 2013-03-01 Jakub Jelinek <jakub@redhat.com>
36211
36212 PR middle-end/56461
36213 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36214 vector even when returning true. Fix up function comment formatting.
36215
36216 PR middle-end/56461
36217 * ira-build.c (ira_loop_nodes_count): New variable.
36218 (create_loop_tree_nodes): Initialize it.
36219 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36220
36221 PR middle-end/56461
36222 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36223 method on dr_chain and result_chain.
36224 * tree-vect-stmts.c (vectorizable_store): Only call
36225 result_chain.create if j == 0.
36226
36227 PR middle-end/56461
36228 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36229 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36230 before overwriting it.
36231
36232 2013-03-01 Tobias Burnus <burnus@net-b.de>
36233
36234 * doc/extended.texi (C Extensions): Change order in @menu
36235 to match @node.
36236 (Other MIPS Built-in Functions): Move last MIPS entry before
36237 "picoChip Built-in Functions".
36238 (SH Built-in Functions): Move after RX Built-in Functions.
36239 * doc/gcc.texi (Introduction): Change order in @menu
36240 to match @node.
36241 * doc/md.texi (Constraints): Ditto.
36242 * gty.texi (Type Information): Ditto.
36243 (User-provided marking routines for template types): Make
36244 subsection.
36245 * doc/invoke.texi (AArch64 Options): Move before
36246 "Adapteva Epiphany Options".
36247
36248 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
36249 Jakub Jelinek <jakub@redhat.com>
36250
36251 PR sanitizer/56454
36252 * asan.c (gate_asan): Lookup no_sanitize_address instead of
36253 no_address_safety_analysis attribute.
36254 * doc/extend.texi (no_address_safety_attribute): Rename to
36255 no_sanitize_address attribute, mention no_address_safety_analysis
36256 attribute as deprecated alias.
36257
36258 2013-02-28 Jakub Jelinek <jakub@redhat.com>
36259
36260 PR middle-end/56461
36261 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36262 type to vec<vec<tree> > *.
36263 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
36264 to be vec<tree> instead of vec<tree> *, set vec_defs
36265 to vNULL and call vec_defs.create (number_of_vects), adjust other
36266 uses of vec_defs.
36267 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36268 vectorizable_condition): Adjust vect_get_slp_defs callers.
36269
36270 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36271
36272 * config/aarch64/aarch64.c
36273 (aarch64_float_const_representable): Remove unused variable.
36274
36275 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36276
36277 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36278
36279 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36280
36281 * config/aarch64/aarch64-builtins.c
36282 (aarch64_init_simd_builtins): Make static.
36283
36284 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36285
36286 * config/aarch64/aarch64.c
36287 (aarch64_simd_make_constant): Make static.
36288
36289 2013-02-28 Martin Jambor <mjambor@suse.cz>
36290
36291 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36292 with no initialization to the RHS of debug statements.
36293
36294 2013-02-28 Martin Jambor <mjambor@suse.cz>
36295
36296 PR tree-optimization/56294
36297 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36298 Adjust dumping.
36299 (get_access_replacement): Do not call create_access_replacement.
36300 Assert a replacement exists.
36301 (get_repl_default_def_ssa_name): Create the replacement declaration
36302 itself.
36303
36304 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36305
36306 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36307 final_end_function.
36308
36309 2013-02-28 Marek Polacek <polacek@redhat.com>
36310
36311 PR rtl-optimization/56466
36312 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36313 if we're changing a loop.
36314 (peel_loops_completely): Likewise.
36315
36316 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
36317
36318 PR c++/55813
36319 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36320
36321 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36322
36323 PR target/56445
36324 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36325 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36326 INTX_FTYPE_FX, FX_FTYPE_INTX.
36327 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36328
36329 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36330
36331 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36332 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36333 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36334 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36335 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36336 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36337 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36338 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36339 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36340 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36341 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36342 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36343 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36344 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36345 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36346 (avrxmega6): Increase max flash segments from 5 to 6.
36347 * config/avr/t-multilib: Regenerate.
36348 * config/avr/avr-tables.opt: Regenerate.
36349 * doc/avr-mmcu.texi: Regenerate.
36350
36351 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36352
36353 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36354 (avr_device_to_arch): Rename to avr_device_to_ld.
36355 (avr_device_to_as): New prototype.
36356 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36357 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36358 * config/avr/driver-avr.c (avr_device_to_as): New.
36359 (avr_device_to_arch): Rename to avr_device_to_ld.
36360
36361 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36362
36363 PR middle-end/56461
36364 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36365 method on dr_chain and result_chain.
36366
36367 PR middle-end/56461
36368 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36369 pointer_set_destroy on not_executed_last_iteration.
36370
36371 PR middle-end/56461
36372 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36373
36374 PR middle-end/56461
36375 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36376 FOR_EACH_DEFINED_FUNCTION when freeing state.
36377
36378 PR middle-end/56461
36379 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36380 pool_free.
36381 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36382 overwriting it.
36383
36384 PR middle-end/56461
36385 * ipa-cp.c (decide_whether_version_node): Call vec_free on
36386 known_aggs[i].items and release known_aggs vector.
36387
36388 PR middle-end/56461
36389 * ipa-reference.c (propagate): Free node_info even for alias nodes.
36390
36391 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36392
36393 * config/microblaze/microblaze.c (microblaze_emit_compare):
36394 Use xor for EQ/NE comparisions.
36395 * config/microblaze/microblaze.md (cstoresf4): Add constraints
36396 (cbranchsf4): Adjust operator to comparison_operator.
36397
36398 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36399
36400 PR middle-end/56461
36401 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36402 vector.
36403 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36404 vec_safe_push, always update *slot.
36405 (redirect_edge_var_map_clear): Use vec_free.
36406 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36407 (free_var_map_entry): Use vec_free.
36408 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36409 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36410
36411 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
36412
36413 PR middle-end/45472
36414 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36415 when the may_trap_p bit of the exprs being merged differs.
36416 Reorder tests for speculativeness in the logical and operator.
36417
36418 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36419
36420 * incpath.c (add_standard_paths): Use reconcat instead of concat
36421 where appropriate and avoid leaking memory.
36422
36423 * opts.h: Include obstack.h.
36424 (opts_concat): New prototype.
36425 (opts_obstack): New declaration.
36426 * opts.c (opts_concat): New function.
36427 (opts_obstack): New variable.
36428 (init_options_struct): Call gcc_init_obstack on opts_obstack.
36429 (finish_options): Use opts_concat instead of concat
36430 and XOBNEWVEC instead of XNEWVEC.
36431 * opts-common.c (generate_canonical_option, decode_cmdline_option,
36432 generate_option): Likewise.
36433 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36434 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36435
36436 PR target/56455
36437 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36438 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36439
36440 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36441
36442 PR middle-end/56461
36443 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36444
36445 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36446
36447 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36448 (arm_block_move_unaligned_straight): Likewise.
36449 (arm_adjust_block_mem): Likewise.
36450
36451 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36452
36453 PR target/48901
36454 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36455 temp, cond and label.
36456 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36457
36458 PR target/52500
36459 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36460 * config/c6x/c6x.h (dbx_register_map): Update declaration.
36461
36462 PR target/52501
36463 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36464 of prologue/epilogue functions.
36465
36466 PR target/52550
36467 * config/tilegx/tilegx.c (tilegx_expand_prologue):
36468 Remove unused variable cfa_offset.
36469 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36470
36471 PR target/54639
36472 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36473 type promotion to unsigned.
36474
36475 PR target/54640
36476 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36477 for HOST_WIDE_INT of 32 bit / same size as int.
36478 (arm_block_move_unaligned_straight): Likewise.
36479 (arm_adjust_block_mem): Likewise.
36480
36481 PR target/54662
36482 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36483 ALL_CFLAGS.
36484
36485 2013-02-26 Marek Polacek <polacek@redhat.com>
36486
36487 PR tree-optimization/56426
36488 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36489
36490 2013-02-26 Richard Biener <rguenther@suse.de>
36491
36492 PR target/56444
36493 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36494 unused variable loops.
36495
36496 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36497
36498 PR tree-optimization/56448
36499 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36500 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36501 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36502 later operands of the references, or even first operand for
36503 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36504
36505 PR tree-optimization/56443
36506 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36507 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36508 to type_for_mode langhook.
36509
36510 2013-02-25 Matt Turner <mattst88@gmail.com>
36511
36512 * doc/invoke.texi: Document r4700.
36513
36514 2013-02-25 Richard Biener <rguenther@suse.de>
36515
36516 PR tree-optimization/56175
36517 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36518 split out from ...
36519 (simplify_bitwise_binary): ... here. Also guard the conversion
36520 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36521
36522 2013-02-25 Catherine Moore <clm@codesourcery.com>
36523
36524 Revert:
36525 2013-02-24 Catherine Moore <clm@codesourcery.com>
36526 Maciej W. Rozycki <macro@codesourcery.com>
36527 Tom de Vries <tom@codesourcery.com>
36528 Nathan Sidwell <nathan@codesourcery.com>
36529 Iain Sandoe <iain@codesourcery.com>
36530 Nathan Froyd <froydnj@codesourcery.com>
36531 Chao-ying Fu <fu@mips.com>
36532
36533 * doc/extend.texi: (micromips, nomicromips, nocompression):
36534 Document new function attributes.
36535 * doc/invoke.texi (minterlink-compressed, mmicromips,
36536 m14k, m14ke, m14kec): Document new options.
36537 (minterlink-mips16): Update documentation.
36538 * doc/md.texi (ZC, ZD): Document new constraints.
36539 * configure.ac (gcc_cv_as_micromips): Check if linker
36540 supports the .set micromips directive.
36541 * configure: Regenerate.
36542 * config.in: Regenerate.
36543 * config/mips/mips-tables.opt: Regenerate.
36544 * config/mips/micromips.md: New file.
36545 * constraints.md (ZC, AD): New constraints.
36546 * config/mips/predicates.md (movep_src_register): New predicate.
36547 (movep_src_operand): New predicate.
36548 (non_volatile_mem_operand): New predicate.
36549 * config/mips/mips.md (multimem): New type.
36550 (length): Differentiate between 17-bit and 18-bit branch offsets.
36551 (MOVEP1, MOVEP2): New mode iterator.
36552 (mov_<load>l): Use ZC constraint.
36553 (mov_<load>r): Likewise.
36554 (mov_<store>l): Likewise.
36555 (mov_<store>r): Likewise.
36556 (*branch_equality<mode>_inverted): Add microMIPS support.
36557 (*branch_equality<mode>): Likewise.
36558 (*jump_absolute): Likewise.
36559 (indirect_jump_<mode>): Likewise.
36560 (tablejump_<mode>): Likewise.
36561 (<optab>_internal): Likewise.
36562 (sibcall_internal): Likewise.
36563 (sibcall_value_internal): Likewise.
36564 (prefetch): Use constraint ZD.
36565 * config/mips/mips.opt (minterlink-compressed): New option.
36566 (minterlink-mips16): Now an alias for minterlink-compressed.
36567 (mmicromips): New option.
36568 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36569 (compare_and_swap_12): Likewise.
36570 (sync_add<mode>): Likewise.
36571 (sync_<optab>_12): Likewise.
36572 (sync_old_<optab>_12): Likewise.
36573 (sync_new_<optab>_12): Likewise.
36574 (sync_nand_12): Likewise.
36575 (sync_old_nand_12): Likewise.
36576 (sync_new_nand_12): Likewise.
36577 (sync_sub<mode>): Likewise.
36578 (sync_old_add<mode>): Likewise.
36579 (sync_old_sub<mode>): Likewise.
36580 (sync_new_add<mode>): Likewise.
36581 (sync_new_sub<mode>): Likewise.
36582 (sync_<optab><mode>): Likewise.
36583 (sync_old_<optab><mode>): Likewise.
36584 (sync_new_<optab><mode>): Likewise.
36585 (sync_nand<mode>): Likewise.
36586 (sync_old_nand<mode>): Likewise.
36587 (sync_new_nand<mode>): Likewise.
36588 (sync_lock_test_and_set<mode>): Likewise.
36589 (test_and_set_12): Likewise.
36590 (atomic_compare_and_swap<mode>): Likewise.
36591 (atomic_exchange<mode>_llsc): Likewise.
36592 (atomic_fetch_add<mode>_llsc): Likewise.
36593 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36594 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36595 (umips_save_restore_pattern_p): Likewise.
36596 (umips_load_store_pair_p): Likewise.
36597 (umips_output_load_store_pair): Likewise.
36598 (umips_movep_target_p): Likewise.
36599 (umips_12bit_offset_address_p): Likewise.
36600 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36601 (mips_base_mips16): Rename this...
36602 (mips_base_compression_flags): ...to this. Update all uses.
36603 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36604 (mips_mips16_decl_p): Delete.
36605 (mips_nomips16_decl_p): Delete.
36606 (mips_get_compress_on_flags): New function.
36607 (mips_get_compress_off_flags): New function.
36608 (mips_get_compress_mode): New function.
36609 (mips_get_compress_on_name): New function.
36610 (mips_get_compress_off_name): New function.
36611 (mips_insert_attributes): Support multiple compression types.
36612 (mips_merge_decl_attributes): Likewise.
36613 (umips_12bit_offset_address_p): New function.
36614 (mips_start_function_definition): Emit .set micromips directive.
36615 (mips_call_may_need_jalx_p): New function.
36616 (mips_function_ok_for_sibcall): Add microMIPS support.
36617 (mips_print_operand_punctuation): Support short delay slots and
36618 compact jumps.
36619 (umips_swm_mask, umips_swm_encoding): New.
36620 (umips_build_save_restore): New function.
36621 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36622 (was_mips16_p): Remove.
36623 (old_compression_mode): New.
36624 (mips_set_compression_mode): New function.
36625 (mips_set_current_function): Add microMIPS support.
36626 (mips_option_override): Likewise.
36627 (umips_save_restore_pattern_p): New function.
36628 (umips_output_save_restore): New function.
36629 (umips_load_store_pair_p_1): New function.
36630 (umips_load_store_pair_p): New function.
36631 (umips_output_load_store_pair_1): New function.
36632 (umips_output_load_store_pair): New function.
36633 (umips_movep_target_p) New function.
36634 (mips_prepare_pch_save): Add microMIPS support.
36635 * config/mips/mips.h (TARGET_COMPRESSION): New.
36636 (TARGET_CPU_CPP_BUILTINS): Update macro
36637 to use new compression flags and to support microMIPS.
36638 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36639 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36640 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36641 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36642 (ASM_SPEC): Support mmicromips and mno-micromips.
36643 (M16STORE_REG_P): New macro.
36644 (MIPS_CALL): Support TARGET_MICROMIPS.
36645 (MICROMIPS_J): New macro.
36646 (mips_base_mips16): Rename this...
36647 (mips_base_compression_flags): ...to this.
36648 (UMIPS_12BIT_OFFSET_P): New macro.
36649 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36650 (MULTILIB_DIRNAMES): Likewise.
36651
36652 2013-02-25 Tom de Vries <tom@codesourcery.com>
36653
36654 PR rtl-optimization/56131
36655 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36656 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36657 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36658
36659 2013-02-25 Tobias Burnus <burnus@net-b.de>
36660
36661 * doc/invoke.texi (-fsanitize=): Move from optimization
36662 to debugging options.
36663
36664 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36665
36666 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36667
36668 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36669 Alexander Monakov <amonakov@ispras.ru>
36670
36671 PR middle-end/56077
36672 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36673 flush pending lists also on non-jumps. Adjust comment.
36674
36675 2013-02-24 Catherine Moore <clm@codesourcery.com>
36676 Maciej W. Rozycki <macro@codesourcery.com>
36677 Tom de Vries <tom@codesourcery.com>
36678 Nathan Sidwell <nathan@codesourcery.com>
36679 Iain Sandoe <iain@codesourcery.com>
36680 Nathan Froyd <froydnj@codesourcery.com>
36681 Chao-ying Fu <fu@mips.com>
36682
36683 * doc/extend.texi: (micromips, nomicromips, nocompression):
36684 Document new function attributes.
36685 * doc/invoke.texi (minterlink-compressed, mmicromips,
36686 m14k, m14ke, m14kec): Document new options.
36687 (minterlink-mips16): Update documentation.
36688 * doc/md.texi (ZC, ZD): Document new constraints.
36689 * configure.ac (gcc_cv_as_micromips): Check if linker
36690 supports the .set micromips directive.
36691 * configure: Regenerate.
36692 * config.in: Regenerate.
36693 * config/mips/mips-tables.opt: Regenerate.
36694 * config/mips/micromips.md: New file.
36695 * constraints.md (ZC, AD): New constraints.
36696 * config/mips/predicates.md (movep_src_register): New predicate.
36697 (movep_src_operand): New predicate.
36698 (non_volatile_mem_operand): New predicate.
36699 * config/mips/mips.md (multimem): New type.
36700 (length): Differentiate between 17-bit and 18-bit branch offsets.
36701 (MOVEP1, MOVEP2): New mode iterator.
36702 (mov_<load>l): Use ZC constraint.
36703 (mov_<load>r): Likewise.
36704 (mov_<store>l): Likewise.
36705 (mov_<store>r): Likewise.
36706 (*branch_equality<mode>_inverted): Add microMIPS support.
36707 (*branch_equality<mode>): Likewise.
36708 (*jump_absolute): Likewise.
36709 (indirect_jump_<mode>): Likewise.
36710 (tablejump_<mode>): Likewise.
36711 (<optab>_internal): Likewise.
36712 (sibcall_internal): Likewise.
36713 (sibcall_value_internal): Likewise.
36714 (prefetch): Use constraint ZD.
36715 * config/mips/mips.opt (minterlink-compressed): New option.
36716 (minterlink-mips16): Now an alias for minterlink-compressed.
36717 (mmicromips): New option.
36718 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36719 (compare_and_swap_12): Likewise.
36720 (sync_add<mode>): Likewise.
36721 (sync_<optab>_12): Likewise.
36722 (sync_old_<optab>_12): Likewise.
36723 (sync_new_<optab>_12): Likewise.
36724 (sync_nand_12): Likewise.
36725 (sync_old_nand_12): Likewise.
36726 (sync_new_nand_12): Likewise.
36727 (sync_sub<mode>): Likewise.
36728 (sync_old_add<mode>): Likewise.
36729 (sync_old_sub<mode>): Likewise.
36730 (sync_new_add<mode>): Likewise.
36731 (sync_new_sub<mode>): Likewise.
36732 (sync_<optab><mode>): Likewise.
36733 (sync_old_<optab><mode>): Likewise.
36734 (sync_new_<optab><mode>): Likewise.
36735 (sync_nand<mode>): Likewise.
36736 (sync_old_nand<mode>): Likewise.
36737 (sync_new_nand<mode>): Likewise.
36738 (sync_lock_test_and_set<mode>): Likewise.
36739 (test_and_set_12): Likewise.
36740 (atomic_compare_and_swap<mode>): Likewise.
36741 (atomic_exchange<mode>_llsc): Likewise.
36742 (atomic_fetch_add<mode>_llsc): Likewise.
36743 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36744 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36745 (umips_save_restore_pattern_p): Likewise.
36746 (umips_load_store_pair_p): Likewise.
36747 (umips_output_load_store_pair): Likewise.
36748 (umips_movep_target_p): Likewise.
36749 (umips_12bit_offset_address_p): Likewise.
36750 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36751 (mips_base_mips16): Rename this...
36752 (mips_base_compression_flags): ...to this. Update all uses.
36753 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36754 (mips_mips16_decl_p): Delete.
36755 (mips_nomips16_decl_p): Delete.
36756 (mips_get_compress_on_flags): New function.
36757 (mips_get_compress_off_flags): New function.
36758 (mips_get_compress_mode): New function.
36759 (mips_get_compress_on_name): New function.
36760 (mips_get_compress_off_name): New function.
36761 (mips_insert_attributes): Support multiple compression types.
36762 (mips_merge_decl_attributes): Likewise.
36763 (umips_12bit_offset_address_p): New function.
36764 (mips_start_function_definition): Emit .set micromips directive.
36765 (mips_call_may_need_jalx_p): New function.
36766 (mips_function_ok_for_sibcall): Add microMIPS support.
36767 (mips_print_operand_punctuation): Support short delay slots and
36768 compact jumps.
36769 (umips_swm_mask, umips_swm_encoding): New.
36770 (umips_build_save_restore): New function.
36771 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36772 (was_mips16_p): Remove.
36773 (old_compression_mode): New.
36774 (mips_set_compression_mode): New function.
36775 (mips_set_current_function): Add microMIPS support.
36776 (mips_option_override): Likewise.
36777 (umips_save_restore_pattern_p): New function.
36778 (umips_output_save_restore): New function.
36779 (umips_load_store_pair_p_1): New function.
36780 (umips_load_store_pair_p): New function.
36781 (umips_output_load_store_pair_1): New function.
36782 (umips_output_load_store_pair): New function.
36783 (umips_movep_target_p) New function.
36784 (mips_prepare_pch_save): Add microMIPS support.
36785 * config/mips/mips.h (TARGET_COMPRESSION): New.
36786 (TARGET_CPU_CPP_BUILTINS): Update macro
36787 to use new compression flags and to support microMIPS.
36788 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36789 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36790 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36791 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36792 (ASM_SPEC): Support mmicromips and mno-micromips.
36793 (M16STORE_REG_P): New macro.
36794 (MIPS_CALL): Support TARGET_MICROMIPS.
36795 (MICROMIPS_J): New macro.
36796 (mips_base_mips16): Rename this...
36797 (mips_base_compression_flags): ...to this.
36798 (UMIPS_12BIT_OFFSET_P): New macro.
36799 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36800 (MULTILIB_DIRNAMES): Likewise.
36801
36802 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36803
36804 PR target/52555
36805 * target-globals.c (save_target_globals): For init_reg_sets and
36806 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36807
36808 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36809
36810 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36811 * config/aarch64/t-aarch64
36812 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36813
36814 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36815
36816 PR inline-asm/56148
36817 * lra-constraints.c (process_alt_operands): Reload operand
36818 conflicting with earlier clobber only if no more other conflicting
36819 operands.
36820
36821 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36822
36823 PR sanitizer/56393
36824 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36825 if not linking a shared library.
36826
36827 2013-02-22 Seth LaForge <sethml@google.com>
36828
36829 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36830
36831 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36832
36833 * config/arm/arm.md (split for extendsidi): Update condition.
36834 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36835 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36836 (qhs_zextenddi_cstr): Likewise.
36837
36838 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36839
36840 PR middle-end/56420
36841 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36842 avoid signed wrapping.
36843 (expand_mult): Handle properly multiplication by
36844 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36845 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36846 in the compiler if coeff is HOST_WIDE_INT_MIN.
36847 (expand_divmod): Don't make ext_op1 static, change it's type to
36848 uhwi. Avoid undefined behavior in -INTVAL (op1).
36849
36850 PR rtl-optimization/50339
36851 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36852 field.
36853 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36854 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36855 into splitting_ashiftrt field.
36856 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36857 ASHIFTRT.
36858 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36859 choices.
36860
36861 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36862
36863 PR middle-end/56108
36864 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36865 are sure to go irrevocable.
36866
36867 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36868
36869 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36870 scalars are valid operands.
36871
36872 2013-02-21 Martin Jambor <mjambor@suse.cz>
36873
36874 PR tree-optimization/56310
36875 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36876 only matching indices and non-negative final offsets.
36877 (intersect_aggregates_with_edge): Pass src_idx to
36878 agg_replacements_to_vector. Pass src_idx insstead of index to
36879 intersect_with_agg_replacements.
36880
36881 2013-02-21 Martin Jambor <mjambor@suse.cz>
36882
36883 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36884 instead of hard-wired defaults.
36885
36886 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36887
36888 * doc/invoke.texi (MIPS Options): Update documentation of the
36889 floating-point multiply-accumulate instruction restrictions.
36890
36891 2013-02-21 Kostya Serebryany <kcc@google.com>
36892
36893 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36894 asan_shadow_offset on x86_64 linux.
36895
36896 2013-02-21 Richard Biener <rguenther@suse.de>
36897
36898 PR tree-optimization/56415
36899 Revert
36900 2013-02-11 Richard Biener <rguenther@suse.de>
36901
36902 PR tree-optimization/56273
36903 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36904 first VRP run.
36905
36906 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36907
36908 PR bootstrap/56258
36909 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36910 instead of @itemx.
36911
36912 PR inline-asm/56405
36913 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36914 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36915
36916 2013-02-20 Jan Hubicka <jh@suse.cz>
36917
36918 PR tree-optimization/56265
36919 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36920 when target is referenced for first time.
36921
36922 2013-02-20 Richard Biener <rguenther@suse.de>
36923
36924 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36925 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36926 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36927 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36928 not return anything.
36929 (rename_ssa_copies): Do not remove unused locals.
36930 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36931 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36932 * passes.c (execute_function_todo): Do not schedule unused locals
36933 removal if cleanup_tree_cfg did something.
36934 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36935 about the number of removed locals.
36936
36937 2013-02-20 Richard Biener <rguenther@suse.de>
36938
36939 PR tree-optimization/56398
36940 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36941
36942 2013-02-20 Martin Jambor <mjambor@suse.cz>
36943
36944 PR tree-optimization/55334
36945 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36946 restricted pointers to arrays.
36947
36948 2013-02-20 Richard Biener <rguenther@suse.de>
36949 Jakub Jelinek <jakub@redhat.com>
36950
36951 PR tree-optimization/56396
36952 * tree-ssa-ccp.c (n_const_val): New static variable.
36953 (get_value): Return NULL for SSA names we don't have a lattice
36954 entry for.
36955 (ccp_initialize): Initialize n_const_val.
36956 * tree-ssa-copy.c (n_copy_of): New static variable.
36957 (init_copy_prop): Initialize n_copy_of.
36958 (get_value): Return NULL_TREE for SSA names we don't have a
36959 lattice entry for.
36960
36961 2013-02-20 Martin Jambor <mjambor@suse.cz>
36962
36963 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36964
36965 2013-02-20 Richard Biener <rguenther@suse.de>
36966
36967 * genpreds.c (write_lookup_constraint): Do not compare first
36968 letter of the constraint again.
36969
36970 2013-02-20 Richard Biener <rguenther@suse.de>
36971
36972 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36973 and ceil_log2.
36974 (get_use_iv_cost): Terminate hashtable walk when coming across
36975 an empty entry.
36976
36977 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36978
36979 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36980 reassociation for avx2 targets.
36981
36982 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36983
36984 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36985 Add version check for v8.10.a to enable microblaze_has_clz
36986 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36987 version and TARGET_PATTERN_COMPARE check
36988 * config/microblaze/microblaze.md: New clzsi2 instruction
36989
36990 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36991
36992 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36993 function before branching.
36994
36995 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36996
36997 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36998 DUMP_INSN_RTX_UID.
36999 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
37000
37001 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
37002
37003 PR middle-end/55889
37004 * sel-sched.c: Include ira.h.
37005 (implicit_clobber_conflict_p): New function.
37006 (moveup_expr): Use it.
37007 * Makefile.in (sel-sched.o): Depend on ira.h.
37008
37009 2013-02-19 Richard Biener <rguenther@suse.de>
37010
37011 PR tree-optimization/56384
37012 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
37013 (vn_hash_type): Split out from ...
37014 (vn_hash_constant_with_type): ... here.
37015 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
37016 (vn_phi_eq): Compare types from vn_phi_s structure.
37017 (vn_phi_lookup): Populate vn_phi_s type.
37018 (vn_phi_insert): Likewise.
37019
37020 2013-02-19 Jakub Jelinek <jakub@redhat.com>
37021
37022 PR tree-optimization/56350
37023 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
37024 if haven't found reduction or nested cycle operand, rather than
37025 asserting we must find it.
37026
37027 PR tree-optimization/56381
37028 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37029 to fold_build3.
37030
37031 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
37032 Jakub Jelinek <jakub@redhat.com>
37033
37034 PR target/52555
37035 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37036 (swap_optab_enable): Same.
37037 (init_all_optabs): Use argument instead of global.
37038 * tree.h (struct tree_optimization_option): New field target_optabs.
37039 * expr.h (init_all_optabs): Add argument to prototype.
37040 (TREE_OPTIMIZATION_OPTABS): New.
37041 (save_optabs_if_changed): Protoize.
37042 * optabs.h: Declare this_fn_optabs.
37043 * optabs.c (save_optabs_if_changed): New.
37044 Declare this_fn_optabs.
37045 (init_optabs): Add argument to init_all_optabs() call.
37046 * function.c (invoke_set_current_function_hook): Handle per
37047 function optabs.
37048 * function.h (struct function): New field optabs.
37049 * config/mips/mips.c (mips_set_mips16_mode): Handle when
37050 optimization_current_node has changed.
37051 * target-globals.h (save_target_globals_default_opts): Protoize.
37052 * target-globals.c (save_target_globals_default_opts): New.
37053
37054 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37055
37056 PR target/56347
37057 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37058 registers %fr12 and %fr12R as call used.
37059
37060 PR target/56214
37061 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37062 and HImode, require all displacements to be an integer multiple of
37063 their mode size.
37064 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37065 only allow QImode and HImode when reload is in progress and strict is
37066 true. Likewise for symbolic addresses. Use base14_operand to check
37067 displacements in REG+BASE addresses.
37068
37069 2013-02-18 Richard Biener <rguenther@suse.de>
37070
37071 PR tree-optimization/56366
37072 * tree-vect-loop.c (get_initial_def_for_induction): Properly
37073 handle sign-conversion of outer-loop initial induction value.
37074
37075 2013-02-18 Richard Biener <rguenther@suse.de>
37076
37077 PR middle-end/56349
37078 * cfghooks.c (merge_blocks): If we merge a latch into another
37079 block adjust references to it.
37080 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37081 (verify_loop_structure): Verify that a recorded latch is in fact
37082 a latch.
37083
37084 2013-02-18 Richard Biener <rguenther@suse.de>
37085
37086 PR tree-optimization/56321
37087 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37088 order SSA name release and virtual operand unlinking.
37089
37090 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37091
37092 * config/microblaze/microblaze.md (save_stack_block): Define.
37093 (restore_stack_block): Likewise.
37094
37095 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37096
37097 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37098 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37099 * config/microblaze/microblaze.c (microblaze_option_override):
37100 Bail out early for PIC modes when target does not support PIC.
37101
37102 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37103
37104 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37105 Replace with a microblaze version.
37106 (microblaze_trampoline_init): Adapt for microblaze.
37107 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37108 microblaze.
37109
37110 2013-02-16 Jakub Jelinek <jakub@redhat.com>
37111 Dodji Seketeli <dodji@redhat.com>
37112
37113 PR asan/56330
37114 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37115 (instrument_mem_region_access): Do not forget to always put
37116 instrumentation of the of 'base' and 'base + len' in a "if (len !=
37117 0) statement, even for cases where either 'base' or 'base + len'
37118 are not instrumented -- because they have been previously
37119 instrumented. Simplify the logic by putting all the statements
37120 instrument 'base + len' inside a sequence, and then insert that
37121 sequence right before the current insertion point. Then, to
37122 instrument 'base + len', just get an iterator on that statement.
37123 And do not forget to update the pointer to iterator the function
37124 received as argument.
37125
37126 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
37127
37128 PR rtl-optimization/56348
37129 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37130
37131 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
37132
37133 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37134 (clean_graph_dump_file): Pass base to start_graph_dump.
37135
37136 2013-02-14 Richard Henderson <rth@redhat.com>
37137
37138 PR target/55941
37139 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37140
37141 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
37142
37143 * collect2-aix.h: Define F_LOADONLY.
37144
37145 2013-02-14 Richard Biener <rguenther@suse.de>
37146
37147 PR lto/50494
37148 * varasm.c (output_constant_def_1): Get the decl representing
37149 the constant as argument.
37150 (output_constant_def): Wrap output_constant_def_1.
37151 (make_decl_rtl): Use output_constant_def_1 with the decl
37152 representing the constant.
37153 (build_constant_desc): Optionally re-use a decl already
37154 representing the constant.
37155 (tree_output_constant_def): Adjust.
37156
37157 2013-02-14 Dodji Seketeli <dodji@redhat.com>
37158
37159 Fix an asan crash
37160 * asan.c (instrument_builtin_call): Really put the length of the
37161 second source argument into src1_len.
37162
37163 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37164
37165 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37166 argument. If it is false, don't create edge from then_bb to
37167 fallthru_bb.
37168 (insert_if_then_before_iter): Pass true to it.
37169 (build_check_stmt): Pass false to it.
37170 (transform_statements): Flush hash table only on extended basic
37171 block boundaries, rather than at the beginning of every bb.
37172 Don't flush hash table on nonfreeing_call_p calls.
37173 * tree-flow.h (nonfreeing_call_p): New prototype.
37174 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37175
37176 2013-02-13 David S. Miller <davem@davemloft.net>
37177
37178 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37179
37180 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
37181
37182 PR target/56184
37183 * ira.c (max_regno_before_ira): Move from ...
37184 (ira): ... here.
37185 (fix_reg_equiv_init): Use max_regno_before_ira instead of
37186 vec_safe_length.
37187
37188 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37189
37190 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37191
37192 2013-02-13 Richard Biener <rguenther@suse.de>
37193
37194 PR lto/56295
37195 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37196 globals in MEM_REFs.
37197
37198 2013-02-13 Richard Biener <rguenther@suse.de>
37199
37200 * loop-init.c (loop_optimizer_init): Clear loop state when
37201 re-initializing preserved loops.
37202 * loop-unswitch.c (unswitch_single_loop): Return whether
37203 we unswitched the loop. Do not verify loop state here.
37204 (unswitch_loops): When we unswitched a loop discover new loops.
37205
37206 2013-02-13 Kostya Serebryany <kcc@google.com>
37207
37208 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37209 on x86_64 linux.
37210 * sanitizer.def: Rename __asan_init to __asan_init_v1.
37211
37212 2013-02-12 Dodji Seketeli <dodji@redhat.com>
37213
37214 Avoid instrumenting duplicated memory access in the same basic block
37215 * Makefile.in (asan.o): Add new dependency on hash-table.h
37216 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37217 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37218 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37219 (free_mem_ref_resources, has_mem_ref_been_instrumented)
37220 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37221 (get_mem_ref_of_assignment): New functions.
37222 (get_mem_refs_of_builtin_call): Extract from
37223 instrument_builtin_call and tweak a little bit to make it fit with
37224 the new signature.
37225 (instrument_builtin_call): Use the new
37226 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
37227 of is_gimple_builtin_call.
37228 (instrument_derefs, instrument_mem_region_access): Insert the
37229 instrumented memory reference into the hash table.
37230 (maybe_instrument_assignment): Renamed instrument_assignment into
37231 this, and change it to advance the iterator when instrumentation
37232 actually happened and return true in that case. This makes it
37233 homogeneous with maybe_instrument_assignment, and thus give a
37234 chance to callers to be more 'regular'.
37235 (transform_statements): Clear the memory reference hash table
37236 whenever we enter a new BB, when we cross a function call, or when
37237 we are done transforming statements. Use
37238 maybe_instrument_assignment instead of instrumentation. No more
37239 need to special case maybe_instrument_assignment and advance the
37240 iterator after calling it; it's now handled just like
37241 maybe_instrument_call. Update comment.
37242
37243 2013-02-13 Richard Biener <rguenther@suse.de>
37244
37245 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37246 Fix loop discovery code.
37247
37248 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
37249
37250 PR inline-asm/56148
37251 * lra-constraints.c (process_alt_operands): Match early clobber
37252 operand with itself. Check conflicts with earlyclobber only if
37253 the operand is not reloaded. Prefer to reload conflicting operand
37254 if earlyclobber and matching operands are the same.
37255
37256 2013-02-12 Richard Biener <rguenther@suse.de>
37257
37258 PR lto/56297
37259 * lto-streamer-out.c (write_symbol): Do not output symbols
37260 for hard register variables.
37261
37262 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
37263
37264 PR target/54222
37265 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37266 (umulsidi3_insn, mulsidi3_insn): New insns.
37267
37268 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
37269
37270 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37271 (struct tune_params): Add vec_costs field.
37272 * config/arm/arm.c (arm_builtin_vectorization_cost)
37273 (arm_add_stmt_cost): New functions.
37274 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37275 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37276 (arm_default_vec_cost): New struct of type cpu_vec_costs.
37277 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37278 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37279 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37280 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37281
37282 2013-02-12 Richard Biener <rguenther@suse.de>
37283
37284 PR lto/56295
37285 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37286 decls again if possible.
37287
37288 2013-02-12 Richard Biener <rguenther@suse.de>
37289
37290 PR middle-end/56288
37291 * tree-ssa.c (verify_ssa_name): Fix check, move
37292 SSA_NAME_IN_FREE_LIST check up.
37293
37294 2013-02-12 Jakub Jelinek <jakub@redhat.com>
37295 Steven Bosscher <steven@gcc.gnu.org>
37296
37297 PR rtl-optimization/56151
37298 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37299 equal to op0 or op1, and last_insn pattern is CODE operation
37300 with MEM dest and one of the operands matches that MEM.
37301
37302 2013-02-11 Sriraman Tallam <tmsriram@google.com>
37303
37304 * doc/extend.texi: Document Function Multiversioning and "default"
37305 parameter string to target attribute.
37306 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37307 target attribute parameter is "default".
37308 (ix86_compare_version_priority): Remove checks for target attribute.
37309 (ix86_mangle_function_version_assembler_name): Change error to sorry.
37310 Remove check for target attribute equal to NULL. Add assert.
37311 (ix86_generate_version_dispatcher_body): Change error to sorry.
37312
37313 2013-02-11 Iain Sandoe <iain@codesourcery.com>
37314 Jack Howarth <howarth@bromo.med.uc.edu>
37315 Patrick Marlier <patrick.marlier@gmail.com>
37316
37317 PR libitm/55693
37318 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37319 define ENDFILE_SPEC as TM_DESTRUCTOR.
37320 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37321
37322 2013-02-11 Alexander Potapenko <glider@google.com>
37323 Jack Howarth <howarth@bromo.med.uc.edu>
37324 Jakub Jelinek <jakub@redhat.com>
37325
37326 PR sanitizer/55617
37327 * config/darwin.c (cdtor_record): Rename ctor_record.
37328 (sort_cdtor_records): Rename sort_ctor_records.
37329 (finalize_dtors): New routine to sort destructors by
37330 priority before use in assemble_integer.
37331 (machopic_asm_out_destructor): Use finalize_dtors if needed.
37332
37333 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
37334
37335 PR rtl-optimization/56275
37336 * simplify-rtx.c (avoid_constant_pool_reference): Check that
37337 offset is non-negative and less than cmode size before
37338 calling simplify_subreg.
37339
37340 2013-02-11 Richard Biener <rguenther@suse.de>
37341
37342 PR tree-optimization/56264
37343 * cfgloop.h (fix_loop_structure): Adjust prototype.
37344 * loop-init.c (fix_loop_structure): Return the number of
37345 newly discovered loops.
37346 * tree-cfgcleanup.c (repair_loop_structures): When new loops
37347 are discovered, do a full loop-closed SSA rewrite.
37348
37349 2013-02-11 Richard Biener <rguenther@suse.de>
37350
37351 PR tree-optimization/56273
37352 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37353 first VRP run.
37354 (check_array_ref): Fix missing newline in dumps.
37355 (search_for_addr_array): Likewise.
37356
37357 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
37358
37359 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37360
37361 2013-02-09 Jakub Jelinek <jakub@redhat.com>
37362
37363 PR target/56256
37364 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37365
37366 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
37367
37368 PR rtl-optimization/56246
37369 * lra-constraints.c (simplify_operand_subreg): Try to reuse
37370 reload pseudo.
37371 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37372 constraints are satisfied.
37373
37374 2013-02-08 Jeff Law <law@redhat.com>
37375
37376 PR debug/53948
37377 * emit-rtl.c (reg_is_parm_p): New function.
37378 * regs.h (reg_is_parm_p): New prototype.
37379 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37380 callee-clobbered registers.
37381
37382 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
37383
37384 PR target/56043
37385 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37386 If there is no implicit builtin declaration, just return NULL.
37387
37388 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37389
37390 * config/i386/sse.md (FMAMODEM): New mode iterator.
37391 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37392 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37393
37394 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37395
37396 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37397 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37398 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37399
37400 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37401
37402 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37403 (microblaze*-*-elf): Likewise.
37404 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37405 LINK_SPEC.
37406 * config/microblaze/microblaze-c.c: Add builtin defines for
37407 _LITTLE_ENDIAN and _BIG_ENDIAN.
37408 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37409 add to TARGET_DEFAULT flags.
37410 Expand ASM_SPEC and LINK_SPEC.
37411 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37412 * config/microblaze/microblaze.md: Update extendsidi2 and
37413 movdi_internal instructions to use low-order / high-order reg
37414 print_operands.
37415 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37416 options and inversemask / mask of LITTLE_ENDIAN.
37417 * config/microblaze/t-microblaze: Expand multilib options to
37418 include mlittle-endian (le) and update exceptions patterns.
37419
37420 2013-02-08 Jakub Jelinek <jakub@redhat.com>
37421
37422 PR rtl-optimization/56195
37423 * lra-constraints.c (get_reload_reg): Don't reuse regs
37424 if they have smaller mode than requested, if they have
37425 wider mode than requested, try to return a SUBREG.
37426
37427 PR tree-optimization/56250
37428 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37429 if type is unsigned and code isn't MULT_EXPR.
37430
37431 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37432
37433 PR tree-optimization/56064
37434 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37435 bits according to mode.
37436 * fixed-value.h (fixed_from_double_int)
37437 (const_fixed_from_double_int): Adjust comments.
37438
37439 2013-02-08 Richard Biener <rguenther@suse.de>
37440
37441 PR lto/56231
37442 * lto-streamer.h (struct data_in): Remove current_file, current_line
37443 and current_col members.
37444 * lto-streamer-out.c (lto_output_location): Stream changed bits
37445 en-block for efficiency.
37446 * lto-streamer-in.c (clear_line_info): Remove.
37447 (lto_input_location): Cache current file, line and column
37448 globally via local statics. Read changed bits en-block.
37449 (input_function): Do not call clear_line_info.
37450 (lto_read_body): Likewise.
37451 (lto_input_toplevel_asms): Likewise.
37452
37453 2013-02-08 Michael Matz <matz@suse.de>
37454
37455 PR tree-optimization/52448
37456 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37457 (nt_call_phase): New static.
37458 (add_or_mark_expr): Only mark accesses with newer phase than any
37459 call seen.
37460 (nonfreeing_call_p): New.
37461 (nt_init_block): Update nt_call_phase, mark blocks as visited.
37462 (nt_fini_block): Keep blocks marked as visited.
37463 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37464
37465 2013-02-08 Richard Biener <rguenther@suse.de>
37466
37467 * ira.c (ira): Free broken dominator information.
37468
37469 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37470
37471 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37472
37473 2013-02-08 Marek Polacek <polacek@redhat.com>
37474
37475 * cfgloop.c (verify_loop_structure): Add more checking of headers.
37476
37477 2013-02-08 Richard Biener <rguenther@suse.de>
37478
37479 PR middle-end/56181
37480 * cfgloop.h (flow_loops_find): Adjust.
37481 (bb_loop_header_p): Declare.
37482 * cfgloop.c (bb_loop_header_p): New function split out from ...
37483 (flow_loops_find): ... here. Adjust function signature,
37484 support incremental loop structure update.
37485 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37486 * cfgloopmanip.c (fix_loop_structure): Move ...
37487 * loop-init.c (fix_loop_structure): ... here.
37488 (apply_loop_flags): Split out from ...
37489 (loop_optimizer_init): ... here.
37490 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37491 in incremental mode, only remove dead loops here.
37492
37493 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37494
37495 PR target/54222
37496 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37497 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37498 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37499 (*round<mode>3.libgcc): New insns for fixed-modes.
37500 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37501 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37502 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37503 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37504 implementations. Define to __builtin_avr_absFX,
37505 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37506 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37507 __builtin_avr_countlsFX, respectively.
37508 * config/avr/avr-c.c (target.h): Include it.
37509 (enum avr_builtin_id): New enum.
37510 (avr_resolve_overloaded_builtin): New static function.
37511 (avr_register_target_pragmas): Use it to set
37512 targetm.resolve_overloaded_builtin.
37513 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37514 tree nodes used by DEF_BUILTIN.
37515 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37516 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37517 <AVR_BUILTIN_xxBITS>: Same.
37518
37519 2013-02-08 Richard Biener <rguenther@suse.de>
37520
37521 * cfgloop.c (verify_loop_structure): Properly handle
37522 a loop exiting to another loop header.
37523 * ira-int.h (ira_loops): Remove.
37524 * ira.c (ira_loops): Remove.
37525 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37526 (do_reload): Use loop_optimizer_finalize.
37527 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37528 number_of_loops to access the loop tree.
37529 (more_one_region_p): Likewise.
37530 (finish_loop_tree_nodes): Likewise.
37531 (rebuild_regno_allocno_maps): Likewise.
37532 (mark_loops_for_removal): Likewise.
37533 (mark_all_loops_for_removal): Likewise.
37534 (remove_unnecessary_regions): Likewise.
37535 (ira_build): Likewise.
37536 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37537
37538 2013-02-08 Richard Biener <rguenther@suse.de>
37539
37540 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37541 * ipa-pure-const.c (analyze_function): Avoid calling
37542 mark_irreducible_loops twice.
37543 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37544
37545 2013-02-07 David S. Miller <davem@davemloft.net>
37546
37547 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37548 on 'reg'.
37549 * var-tracking.c (vt_add_function_parameter): Test the presence of
37550 HAVE_window_save properly and do not remap argument registers when
37551 we have a leaf function.
37552
37553 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37554
37555 PR bootstrap/56227
37556 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37557 instead of "ll".
37558 * config/i386/i386.c (ix86_print_operand): Ditto.
37559
37560 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37561
37562 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37563
37564 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37565
37566 PR rtl-optimization/56225
37567 * lra-constraints.c (process_alt_operands): Check that reload hard
37568 reg can hold value for strict_low_part.
37569
37570 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37571
37572 PR debug/56154
37573 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37574 dwarf2out_end_function.
37575 (in_first_function_p, maybe_at_text_label_p,
37576 first_loclabel_num_not_at_text_label): New variables.
37577 (dwarf2out_var_location): In the first function find out
37578 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37579 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37580 functions.
37581
37582 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37583
37584 PR rtl-optimization/56178
37585 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37586 SUBREG of a register. Tidy up related block of code.
37587 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37588 note if the source is a register or a SUBREG of a register.
37589
37590 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37591
37592 PR target/56228
37593 * config/rs6000/rs6000.md (ptrm): New mode attr.
37594 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37595 call_value_indirect_aix<pttrsize>,
37596 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37597 m in constraints.
37598
37599 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37600
37601 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37602 if -bnortl. Convert to strcmp and strncmp.
37603
37604 2013-02-07 Alan Modra <amodra@gmail.com>
37605
37606 PR target/54009
37607 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37608 addresses won't wrap when offsetting.
37609 (rs6000_secondary_reload): Provide secondary reloads needed for
37610 wrapping LO_SUM addresses.
37611
37612 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37613
37614 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37615 MACH, just __MACH__.
37616
37617 2013-02-06 Richard Biener <rguenther@suse.de>
37618
37619 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37620 instead of calling fix_loop_structure.
37621
37622 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37623
37624 PR middle-end/56217
37625 * omp-low.c (use_pointer_for_field): Return false if
37626 lower_send_shared_vars doesn't generate any copy-out code.
37627
37628 2013-02-06 Tom de Vries <tom@codesourcery.com>
37629
37630 PR rtl-optimization/56131
37631 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37632 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37633 of the label is NULL. Add comment.
37634
37635 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37636
37637 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37638
37639 PR sanitizer/55374
37640 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37641 (STATIC_LIBTSAN_LIBS): Likewise.
37642 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37643 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37644 is defined, don't add anything else beyond that.
37645 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37646 (LINK_COMMAND_SPEC): Use them.
37647
37648 PR tree-optimization/56205
37649 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37650 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37651 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37652
37653 2013-02-05 Richard Biener <rguenther@suse.de>
37654
37655 PR tree-optimization/53342
37656 PR tree-optimization/53185
37657 * tree-vectorizer.h (vect_check_strided_load): Remove.
37658 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37659 not disallow peeling for vectorized strided loads.
37660 (vect_check_strided_load): Make static and simplify.
37661 (vect_analyze_data_refs): Adjust.
37662 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37663 correctly when vectorizing strided loads.
37664
37665 2013-02-05 Richard Biener <rguenther@suse.de>
37666
37667 * doc/install.texi: Refer to ISL, not PPL.
37668
37669 2013-02-05 Jan Hubicka <jh@suse.cz>
37670
37671 PR tree-optimization/55789
37672 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37673
37674 2013-02-05 Jan Hubicka <jh@suse.cz>
37675
37676 PR tree-optimization/55789
37677 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37678 the dead call anyway.
37679
37680 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37681
37682 PR sanitizer/55374
37683 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37684
37685 2013-02-04 Alexander Potapenko <glider@google.com>
37686 Jack Howarth <howarth@bromo.med.uc.edu>
37687 Jakub Jelinek <jakub@redhat.com>
37688
37689 PR sanitizer/55617
37690 * config/darwin.c (sort_ctor_records): Stabilized qsort
37691 on constructor priority by using original position.
37692 (finalize_ctors): New routine to sort constructors by
37693 priority before use in assemble_integer.
37694 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37695
37696 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37697
37698 PR libstdc++/54314
37699 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37700 about visibility on artificial decls.
37701 * config/sol2.c (solaris_assemble_visibility): Likewise.
37702
37703 2013-02-04 Kai Tietz <ktietz@redhat.com>
37704
37705 PR target/56186
37706 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37707 argument and improve checking of return-argument types for 16-byte
37708 modes.
37709 (ix86_function_value_1): Add additional valtype argument on call
37710 of function_value_64.
37711 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37712 handling infunction_value_64 function.
37713
37714 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37715
37716 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37717
37718 2013-02-04 Richard Biener <rguenther@suse.de>
37719
37720 PR tree-optimization/56188
37721 * tree-ssa-structalias.c (label_visit): Consider case with
37722 initially non-empty points-to set.
37723 (perform_var_substitution): Dump node mapping and clean up.
37724
37725 2013-02-04 Richard Guenther <rguenther@suse.de>
37726
37727 PR lto/56168
37728 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37729 node prevail as last resort.
37730 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37731 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37732
37733 2013-02-04 Richard Biener <rguenther@suse.de>
37734
37735 PR tree-optimization/56113
37736 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37737 Merge into ...
37738 (equiv_class_lookup_or_add): ... this.
37739 (label_visit): Adjust and fix error in previous patch.
37740 (perform_var_substitution): Adjust.
37741
37742 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37743
37744 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37745 * config/sh/sh4-300.md: Likewise.
37746 * config/sh/sh4a.md: Likewise.
37747 * config/sh/constraints.md: Likewise.
37748 * config/sh/sh.md: Likewise.
37749 * config/sh/netbsd-elf.h: Likewise.
37750 * config/sh/predicates.md: Likewise.
37751 * config/sh/sh-protos.h: Likewise.
37752 * config/sh/ushmedia.h: Likewise.
37753 * config/sh/linux.h: Likewise.
37754 * config/sh/sh.c: Likewise.
37755 * config/sh/superh.h: Likewise.
37756 * config/sh/elf.h: Likewise.
37757 * config/sh/sh4.md: Likewise.
37758 * config/sh/sh.h: Likewise.
37759
37760 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37761
37762 * config/pa/constraints.md: Adjust unused letters. Change "T"
37763 constraint to match_test floating_point_store_memory_operand().
37764 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37765 (base14_operand): New.
37766 (floating_point_store_memory_operand): New.
37767 (integer_store_memory_operand): Revise to use base14_operand and
37768 reg_plus_base_memory_operand.
37769 (move_dest_operand): Allow symbolic_memory_operands.
37770 (symbolic_memory_operand): Check for LO_SOM.
37771 (symbolic_operand): Change default case to break.
37772 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37773 CONST_DOUBLE values to be reloaded by putting them into memory when
37774 the destination is a floating point register.
37775 (movdf): Remove code to handle CONST_DOUBLE.
37776 (movsf): Likewise.
37777 (reload_indf_r1): New.
37778 (reload_insf_r1): New.
37779 Consistently use "Q" and "T" constraints with integer and floating
37780 point move instructions, respectively.
37781 (movdi): Remove FAIL.
37782 Change predicate for source operand unamed DImode move from
37783 general_operand to move_src_operand.
37784 (umulsidi3): Change predicate for destination operand to
37785 register_operand.
37786 Likewise for similar unamed patterns.
37787 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37788 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37789 (hppa_legitimize_address): Simplify mask calculation.
37790 (pa_emit_move_sequence): Revised handling of secondary reloads from
37791 REG+D addresses for floating point loads and stores. Directly handle
37792 loading CONST0_RTX (mode) to a floating point register.
37793 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37794 to floating point registers. Don't restrict secondary reloads to
37795 floating point registers to integer modes. Revise some comments and
37796 cleanup some code.
37797 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37798 (pa_legitimate_address_p): New.
37799 (pa_legitimize_reload_address): New.
37800 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37801 (STRICT_REG_OK_FOR_BASE_P): New.
37802 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37803 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37804
37805 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37806 Andrew Dixie <andrewd@gentrack.com>
37807
37808 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37809 flag set.
37810
37811 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37812
37813 * expmed.c (extract_bit_field_1): Pass the full width of the
37814 structure to get_best_reg_extraction_insn.
37815
37816 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37817
37818 PR target/54601
37819 * configure.ac (use_cxa_atexit): Add AIX.
37820 * configure: Regenerate.
37821
37822 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37823
37824 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37825
37826 PR debug/54793
37827 * final.c (need_profile_function): New variable.
37828 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37829 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37830 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37831 notes, targetm.asm_out.function_prologue doesn't emit anything,
37832 HAVE_prologue and profiler should be emitted before prologue,
37833 set need_profile_function instead of emitting it.
37834 (final_scan_insn): If need_profile_function, emit
37835 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37836 NOTE_INSN_FUNCTION_BEG note.
37837
37838 2013-02-01 Richard Henderson <rth@redhat.com>
37839
37840 * config/rs6000/rs6000.md (smulditi3): New.
37841 (umulditi3): New.
37842
37843 * config/alpha/alpha.md (umulditi3): New.
37844
37845 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37846
37847 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37848 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37849
37850 2013-02-01 Richard Biener <rguenther@suse.de>
37851
37852 PR tree-optimization/56113
37853 * tree-ssa-structalias.c (label_visit): Reduce work for
37854 single-predecessor nodes.
37855
37856 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37857
37858 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37859 range isn't testing for zero.
37860
37861 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37862
37863 PR middle-end/56113
37864 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37865
37866 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37867 Nick Clifton <nickc@redhat.com>
37868
37869 * config/v850/constraints.md (Q): Define as a memory constraint.
37870 * config/v850/predicates.md (label_ref_operand): New predicate.
37871 (e3v5_shift_operand): New predicate.
37872 (ior_operator): New predicate.
37873 * config/v850/t-v850: Add e3v5 multilib.
37874 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37875 (v850_gen_movdi): Prototype.
37876 * config/v850/v850.c: Add support for e3v5 architecture.
37877 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37878 TARGET_V850E_UP.
37879 (construct_save_jarl): Add e3v5 long JARL support.
37880 (v850_adjust_insn_length): New function. Adjust length of call
37881 insns when using e3v5 instructions.
37882 (v850_gen_movdi): New function: Generate instructions to move a
37883 DImode value.
37884 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37885 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37886 (TARGET_USE_FPU): Enable for e3v5.
37887 (CONST_OK_FOR_W): New macro.
37888 (ADJUST_INSN_LENGTH): Define.
37889 * config/v850/v850.md (UNSPEC_LOOP): Define.
37890 (attr cpu): Add v850e3v5.
37891 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37892 (movdi): New pattern.
37893 (movdi_internal): New pattern.
37894 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37895 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37896 (cstoresf4): Likewise.
37897 (cstoredf4): Likewise.
37898 (insv): New pattern.
37899 (rotlso3_a): New pattern.
37900 (rotlsi3_b): New pattern
37901 (rotlsi3_v850e3v5): New pattern.
37902 (doloop_begin): New pattern.
37903 (fix_loop_counter): New pattern.
37904 (doloop_end): New pattern.
37905 (branch_normal): Add e3v5 long branch support.
37906 (branch_invert): Likewise.
37907 (branch_z_normal): Likewise.
37908 (branch_z_invert): Likewise.
37909 (branch_nz_normal): Likewise.
37910 (branch_nz_invert): Likewise.
37911 (call_internal_short): Add e3v5 register-indirect JARL support.
37912 (call_internal_long): Likewise.
37913 (call_value_internal_short): Likewise.
37914 (call_value_internal_long): Likewise.
37915 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37916 (mloop): New option.
37917 * config.gcc: Add support for configuring v840e3v5 target.
37918 * doc/invoke.texi: Document new v850 specific command line options.
37919
37920 2013-01-31 Paul Koning <ni1d@arrl.net>
37921
37922 PR debug/55059
37923 PR debug/54508
37924 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37925 children if parent is a class.
37926 (prune_unused_types_prune): Don't add DW_AT_declaration.
37927
37928 2013-01-31 Richard Biener <rguenther@suse.de>
37929
37930 PR tree-optimization/56157
37931 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37932 match up operand with SLP child.
37933
37934 2013-01-31 Jason Merrill <jason@redhat.com>
37935
37936 PR debug/54410
37937 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37938 parameters the first time.
37939 (gen_scheduled_generic_parms_dies): Check completeness here.
37940
37941 2013-01-31 Richard Biener <rguenther@suse.de>
37942
37943 PR middle-end/53073
37944 * common.opt (faggressive-loop-optimizations): New flag,
37945 enabled by default.
37946 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37947 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37948 infer_loop_bounds_from_undefined by it.
37949
37950 2013-01-31 Richard Biener <rguenther@suse.de>
37951
37952 PR tree-optimization/56150
37953 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37954 visit virtual operands.
37955 (find_uses_to_rename_bb): Likewise.
37956
37957 2013-01-31 Richard Biener <rguenther@suse.de>
37958
37959 PR tree-optimization/56150
37960 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37961 mixed store non-store stmts.
37962
37963 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37964
37965 PR sanitizer/55374
37966 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37967 LIBASAN_EARLY_SPEC is defined.
37968 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37969 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37970 before %o.
37971 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37972
37973 PR c++/55742
37974 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37975 invalid args instead of ICEing on it.
37976 (ix86_valid_target_attribute_tree): Return error_mark_node if
37977 ix86_valid_target_attribute_inner_p failed.
37978 (ix86_valid_target_attribute_p): Return false only if
37979 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37980 target("default") attribute.
37981 (sorted_attr_string): Change argument from const char * to tree,
37982 merge in all target attribute arguments rather than just one.
37983 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37984 instead of free. Avoid using strcat.
37985 (ix86_mangle_function_version_assembler_name): Mangle
37986 target("default") as if no target attribute is present. Adjust
37987 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37988 instead of xmalloc and XDELETEVEC instead of free.
37989 (ix86_function_versions): Don't return true if one of the decls
37990 doesn't have target attribute. If they don't and one of the decls
37991 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37992 sorted_attr_string caller. Use XDELETEVEC instead of free.
37993 (ix86_supports_function_versions): Remove.
37994 (make_name): Fix up formatting.
37995 (make_dispatcher_decl): Remove resolver_name and its initialization.
37996 Avoid leaking memory.
37997 (is_function_default_version): Return true if there is
37998 target("default") attribute rather than no target attribute at all.
37999 (make_resolver_func): Avoid leaking memory.
38000 (ix86_generate_version_dispatcher_body): Likewise.
38001 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
38002 * target.def (supports_function_versions): Remove.
38003 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
38004 * doc/tm.texi: Regenerated.
38005
38006 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
38007
38008 PR rtl-optimization/56144
38009 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
38010 for values with side effects.
38011
38012 2013-01-30 Richard Biener <rguenther@suse.de>
38013
38014 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
38015 (sparseset_pop): Likewise.
38016 * cfganal.c (compute_idf): Likewise. Increase work-stack size
38017 to be able to use quick_push in the worker loop.
38018
38019 2013-01-30 Marek Polacek <polacek@redhat.com>
38020
38021 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
38022
38023 2013-01-30 Richard Biener <rguenther@suse.de>
38024
38025 PR lto/56147
38026 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
38027
38028 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
38029
38030 PR tree-optimization/56064
38031 * fixed-value.c (fixed_from_double_int): New function.
38032 * fixed-value.h (fixed_from_double_int): New prototype.
38033 (const_fixed_from_double_int): New static inline function.
38034 * fold-const.c (native_interpret_fixed): New static function.
38035 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38036 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38037 (native_encode_fixed): New static function.
38038 (native_encode_expr) <FIXED_CST>: Use it.
38039 (native_interpret_int): Move double_int worker code to...
38040 * double-int.c (double_int::from_buffer): ...this new static method.
38041 * double-int.h (double_int::from_buffer): Prototype it.
38042
38043 2013-01-30 Richard Biener <rguenther@suse.de>
38044
38045 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38046 New pointer-map and obstack.
38047 (init_alias_vars): Allocate pointer-map and obstack.
38048 (delete_points_to_sets): Free them.
38049 (find_what_var_points_to): Cache result.
38050 (find_what_p_points_to): Adjust for changed interface of
38051 find_what_var_points_to.
38052 (compute_points_to_sets): Likewise.
38053 (ipa_pta_execute): Likewise.
38054
38055 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38056
38057 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38058 * configure: Regenerate.
38059 * config.in: Regenerate.
38060 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38061 #nobits/#progbits if supported.
38062
38063 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
38064
38065 PR target/56121
38066 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38067 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38068 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38069
38070 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38071
38072 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38073 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38074
38075 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38076
38077 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38078 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38079
38080 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38081
38082 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38083 declaration.
38084 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38085 * config/arm/cortex-a7.md: New bypasses using
38086 arm_mac_accumulator_is_result.
38087
38088 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38089
38090 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
38091 (cortex_a7_neon_mla): Likewise.
38092 (cortex_a7_fpfmad): New reservation.
38093 (cortex_a7_fpmacs): Use ffmas and update required units.
38094 (cortex_a7_fpmuld): Update required units and latency.
38095 (cortex_a7_fpmacd): Likewise.
38096 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38097 (cortex_a7_neon). Likewise.
38098 (bypass) Update participating units.
38099
38100 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38101
38102 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38103 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38104 from fmac to ffma.
38105 * config/arm/vfp11.md (vfp_farith): Use ffmas.
38106 (vfp_fmul): Use ffmad.
38107 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38108 (cortex_r4_fmacd): Use ffmad.
38109 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38110 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
38111 (cortex_a9_fmacd): Use ffmad.
38112 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38113 (cortex_a8_vfp_macd): Use ffmad.
38114 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38115 (cortex_a5_fpmacd): Use ffmad.
38116 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38117 (cortex_a15_vfp_macd): Use ffmad.
38118 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38119
38120 2013-01-29 Jason Merrill <jason@redhat.com>
38121
38122 PR libstdc++/54314
38123 * varasm.c (default_assemble_visibility): Don't warn about
38124 visibility on artificial decls.
38125
38126 2013-01-29 Richard Biener <rguenther@suse.de>
38127
38128 PR tree-optimization/56113
38129 * tree-ssa-structalias.c (equiv_class_lookup): Also return
38130 the bitmap leader.
38131 (label_visit): Free duplicate bitmaps and record the leader instead.
38132 (perform_var_substitution): Adjust.
38133
38134 2013-01-29 Richard Biener <rguenther@suse.de>
38135
38136 PR tree-optimization/55270
38137 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38138 the CFG, schedule loops for fixup.
38139
38140 2013-01-29 Nick Clifton <nickc@redhat.com>
38141
38142 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38143 SP_REG.
38144
38145 2013-01-28 Leif Ekblad <leif@rdos.net>
38146
38147 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38148 * config/i386/i386.h (TARGET_RDOS): New macro.
38149 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38150 * config/i386/i386.c (ix86_option_override_internal): For 64bit
38151 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38152 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38153 DEFAULT_LARGE_SECTION_THRESHOLD.
38154 * config/i386/i386.md (R14_REG, R15_REG): New constants.
38155 * config/i386/rdos.h: New file.
38156 * config/i386/rdos64.h: New file.
38157
38158 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
38159
38160 PR other/54814
38161 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38162 TEST_HARD_REG_BIT.
38163
38164 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38165
38166 PR rtl-optimization/56117
38167 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38168 call cselib_lookup_from_insn on the MEM before calling
38169 add_insn_mem_dependence.
38170
38171 2013-01-28 Richard Biener <rguenther@suse.de>
38172
38173 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38174 to a stmt that didn't have one.
38175 (copy_phis_for_bb): Likewise for PHI arguments.
38176 (copy_debug_stmt): Likewise for debug stmts.
38177
38178 2013-01-28 Richard Biener <rguenther@suse.de>
38179
38180 PR tree-optimization/56034
38181 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38182 (partition_builtin_p): Adjust.
38183 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
38184 it is the last partition.
38185 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38186 up the vertex for the definition.
38187 (classify_partition): Classify whether a partition is a
38188 PKIND_REDUCTION, thus has uses outside of the loop.
38189 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38190 Merge all PKIND_REDUCTION partitions into the last partition.
38191 (tree_loop_distribution): Seed partitions from reductions as well.
38192
38193 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38194
38195 PR tree-optimization/56125
38196 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38197 pow(x,c) into sqrt(x) * powi(x, n/2) or
38198 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38199 optimizing for size.
38200 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38201 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38202 integer.
38203
38204 PR tree-optimization/56094
38205 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38206 to UNKNOWN_LOCATION while gimplifying expr.
38207
38208 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
38209
38210 PR target/56114
38211 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38212 operand 0 in movabs insn template for -masm=intel asm alternative.
38213 (*movabs<mode>_2): Ditto for operand 1.
38214
38215 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
38216
38217 PR target/54663
38218 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38219 of microblaze-c.o
38220
38221 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38222
38223 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38224 tm_file.
38225
38226 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38227
38228 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38229 Undef to avoid warning.
38230
38231 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38232
38233 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38234 * configure: Regenerate.
38235
38236 2013-01-25 Jakub Jelinek <jakub@redhat.com>
38237
38238 PR tree-optimization/56098
38239 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38240 for stmts with volatile ops.
38241 (cond_store_replacement): Don't optimize if assign has volatile ops.
38242 (cond_if_else_store_replacement_1): Don't optimize if either
38243 then_assign or else_assign have volatile ops.
38244 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38245 volatile ops.
38246
38247 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38248
38249 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38250
38251 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38252
38253 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38254 missing ':' in asm example.
38255
38256 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
38257
38258 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38259 entries into lane and laneq entries.
38260 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38261 Remove AdvSIMD scalar modes.
38262 (aarch64_sq<r>dmulh_laneq<mode>): New.
38263 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38264 modes.
38265 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38266 builtin implementations to relfect changes in RTL in aarch64-simd.md.
38267 * config/aarch64/iterators.md (VCOND): New.
38268 (VCONQ): New.
38269
38270 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38271
38272 PR target/54222
38273 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38274 Add NULL LIBNAME argument to existing definitions.
38275 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38276 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38277 * config/avr/avr.c (DEF_BUILTIN): Same.
38278 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38279 (avr_expand_builtin): Expand to a vanilla call if a libgcc
38280 implementation is available (DECL_ASSEMBLER_NAME is set).
38281 (avr_fold_absfx): New static function.
38282 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38283 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38284 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38285 AVR_BUILTIN_ABSLLK.
38286 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38287 (abshk, absk, abslk, absllk): Provide as static inline functions.
38288
38289 2013-01-25 Marek Polacek <polacek@redhat.com>
38290
38291 PR tree-optimization/56035
38292 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38293
38294 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
38295
38296 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38297 (*movtf_internal_rex64): Add (!o,C) alternative
38298 (*movxf_internal_rex64): Ditto.
38299 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38300
38301 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
38302
38303 * doc/invoke.texi: fix typo.
38304 * doc/objc.texi: fix typo.
38305
38306 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
38307
38308 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38309 for the first two alternatives.
38310
38311 2013-01-24 Diego Novillo <dnovillo@google.com>
38312
38313 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
38314 (ggc-zone.o): Remove.
38315 * configure.ac: Remove option --with-gc.
38316 * configure: Re-generate.
38317 * doc/install.texi: Remove documentation for --with-gc.
38318 * gengtype.c (write_enum_defn): Remove. Update all users.
38319 (write_Types_process_field): Remove generation of gt_e_* argument.
38320 (output_type_enum): Remove. Update all users.
38321 (write_enum_defn): Remove. Update all users.
38322 (enum alloc_zone): Remove. Update all users.
38323 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38324 * ggc-common.c (ggc_splay_alloc): Remove first argument.
38325 Update all callers.
38326 (struct ptr_data): Remove field TYPE. Update all users.
38327 (gt_pch_note_object): Remove argument TYPE. Update all users.
38328 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38329 Update all users.
38330 * ggc-none.c (ggc_alloc_typed_stat): Remove.
38331 (struct alloc_zone): Remove.
38332 (ggc_internal_alloc_zone_stat): Remove.
38333 (ggc_internal_cleared_alloc_zone_stat): Remove.
38334 * ggc-page.c (ggc_alloc_typed_stat): Remove.
38335 (ggc_pch_count_object): Remove last argument. Update all users.
38336 (ggc_pch_alloc_object): Remove last argument. Update all users.
38337 (struct alloc_zone): Remove.
38338 * ggc-zone.c: Remove.
38339 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
38340 (struct alloc_zone): Remove.
38341 (ggc_alloc_typed_stat): Remove.
38342 (ggc_alloc_typed): Remove.
38343 (ggc_splay_alloc): Remove first argument.
38344 (rtl_zone): Remove. Update all users.
38345 (tree_zone): Remove. Update all users.
38346 (tree_id_zone): Remove. Update all users.
38347 (ggc_internal_zone_alloc_stat): Remove. Update all users.
38348 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
38349 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
38350 * tree-ssanames.c: Remove references to zone allocator in comments.
38351
38352 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
38353
38354 * config/avr/avr.c (avr_out_fract): Make register numbers that
38355 might be outside of source operand signed.
38356
38357 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
38358
38359 * config/i386/constraints.md (Yf): New constraint.
38360 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38361 of f constraint to conditionaly disable x87 register preferences.
38362 (*movdf_internal): Ditto.
38363 (*movsf_internal): Ditto.
38364
38365 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
38366
38367 PR inline-asm/55934
38368 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38369 that have operands with impossible constraints.
38370 Add a FIXME for a speed-up opportunity.
38371 * lra-constraints.c (process_alt_operands): Verify that a class
38372 selected from constraints on asms is valid for the operand mode.
38373 (curr_insn_transform): Remove incorrect comment.
38374
38375 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
38376
38377 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38378 TOC operand is a valid symbol ref in the constant pool.
38379
38380 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38381
38382 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38383
38384 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
38385
38386 PR target/54222
38387 * config/avr/stdfix.h: New file.
38388 * t-avr (stdfix-gcc.h): New rule to build it.
38389 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38390
38391 2013-01-23 Kostya Serebryany <kcc@google.com>
38392
38393 * config/darwin.h: remove dependency on
38394 CoreFoundation (asan on Mac OS).
38395
38396 2013-01-23 Jakub Jelinek <jakub@redhat.com>
38397
38398 PR target/49069
38399 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38400 instead of cmpdi_operand for first comparison operand.
38401 Don't assert that comparison operands aren't both constants.
38402
38403 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38404
38405 * doc/install.texi (Downloading the Source): Update references to
38406 downloading separate components.
38407
38408 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38409
38410 * doc/extend.texi (__int128): Improve grammar.
38411
38412 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
38413
38414 PR target/56028
38415 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38416 alternative to (o,r).
38417 (*movdi_internal_rex64): Remove (!o,n) alternative.
38418 (DImode immediate->memory splitter): Remove.
38419 (DImode immediate->memory peephole2): Remove.
38420 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38421 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38422 alternative to (!o,*r).
38423 (*movtf_internal_sse): New pattern.
38424 (*movxf_internal_rex64): New pattern.
38425 (*movxf_internal): Disable for TARGET_64BIT.
38426 (*movdf_internal_rex64): Remove (!o,F) alternative.
38427
38428 2013-01-22 Jakub Jelinek <jakub@redhat.com>
38429
38430 PR middle-end/56074
38431 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38432 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38433 * tree-vect-loop-manip.c (find_loop_location): Also ignore
38434 stmt locations where LOCATION_LOCUS of the stmt location is
38435 UNKNOWN_LOCATION or BUILTINS_LOCATION.
38436
38437 PR target/55686
38438 * config/i386/i386.md (UNSPEC_STOS): New.
38439 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38440 *strsetqi_1): Add UNSPEC_STOS.
38441
38442 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
38443
38444 PR c++/56067
38445 * doc/invoke.texi: Remove left over -Wsynth example.
38446
38447 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38448
38449 PR tree-optimization/56051
38450 * fold-const.c (fold_binary_loc): Don't fold
38451 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38452 a narrowing conversion, or widening conversion from signed
38453 to unsigned.
38454
38455 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38456
38457 PR rtl-optimization/56023
38458 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38459 dependent on debug instruction.
38460
38461 2013-01-21 Martin Jambor <mjambor@suse.cz>
38462
38463 PR middle-end/56022
38464 * function.c (allocate_struct_function): Call
38465 invoke_set_current_function_hook earlier.
38466
38467 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38468
38469 * reload1.c (init_reload): Only initialize reload_obstack
38470 during the first call.
38471
38472 2013-01-21 Marek Polacek <polacek@redhat.com>
38473
38474 * cfgloop.c (verify_loop_structure): Fix up grammar.
38475
38476 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
38477
38478 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38479 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38480
38481 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38482
38483 PR target/56058
38484 * config/arm/marvell-pj4.md: Update copyright year.
38485 Fix up use of alu to alu_reg and simple_alu_imm.
38486
38487 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38488
38489 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38490
38491 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38492
38493 PR target/55433
38494 * lra-constraints.c (curr_insn_transform): Don't reuse original
38495 insn for secondary memory move when memory mode should be different.
38496
38497 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38498
38499 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38500 atomic_storedi_1): New patterns.
38501
38502 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38503
38504 btver2 pipeline descriptions.
38505 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38506 descriptions.
38507 * config/i386/i386.md (btver2_decode): New type attributes.
38508 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38509 type attributes.
38510 * config/i386/btver2.md: New file describing btver2 pipelines.
38511
38512 2013-01-19 Andrew Pinski <apinski@cavium.com>
38513
38514 PR tree-optimization/52631
38515 * tree-ssa-sccvn (visit_use): Before looking up the original
38516 statement, try looking up the simplified expression.
38517
38518 2013-01-19 Anthony Green <green@moxielogic.com>
38519
38520 * config/moxie/moxie.c (moxie_expand_prologue): Set
38521 current_function_static_stack_size.
38522
38523 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38524
38525 PR tree-optimization/56029
38526 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38527 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38528
38529 2013-01-18 Sharad Singhai <singhai@google.com>
38530
38531 PR tree-optimization/55995
38532 * dumpfile.c (dump_loc): Print location only if available.
38533 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38534
38535 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38536
38537 PR target/55433
38538 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38539 secondary memory move.
38540 (inherit_reload_reg): Use rclass instead of cl for
38541 check_secondary_memory_needed_p.
38542
38543 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38544
38545 PR middle-end/56015
38546 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38547 the case where writing real complex part of target modifies op1.
38548
38549 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38550
38551 * config/aarch64/aarch64-simd.md
38552 (aarch64_vcond_internal<mode>): Handle unordered cases.
38553 * config/aarch64/iterators.md (v_cmp_result): New.
38554
38555 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38556 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38557
38558 * config/arm/marvell-pj4.md: New file.
38559 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38560 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38561 (generic_vfp): Likewise.
38562 * config/arm/arm-cores.def: Add marvell-pj4.
38563 * config/arm/arm-tune.md: Regenerate.
38564 * config/arm/arm-tables.opt: Regenerate.
38565 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38566 * doc/invoke.texi: Document marvell-pj4.
38567
38568 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38569
38570 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38571
38572 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38573
38574 PR debug/54114
38575 PR debug/54402
38576 PR debug/49888
38577 * var-tracking.c (negative_power_of_two_p): New.
38578 (global_get_addr_cache, local_get_addr_cache): New.
38579 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38580 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38581 heading comment.
38582 (vt_stack_offset_p): Remove.
38583 (vt_canon_true_dep): Always canonicalize loc's address.
38584 (clobber_overlapping_mems): Make sure we have a MEM.
38585 (local_get_addr_clear_given_value): New.
38586 (val_reset): Clear local cached entries.
38587 (compute_bb_dataflow): Create and release the local cache.
38588 Disable duplicate MEMs clobbering.
38589 (emit_notes_in_bb): Clobber MEMs likewise.
38590 (vt_emit_notes): Create and release the local cache.
38591 (vt_initialize, vt_finalize): Create and release the global
38592 cache, respectively.
38593 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38594
38595 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38596
38597 PR libmudflap/53359
38598 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38599 not found in the symtab.
38600
38601 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38602
38603 PR debug/56006
38604 PR rtl-optimization/55547
38605 PR rtl-optimization/53827
38606 PR debug/53671
38607 PR debug/49888
38608 * alias.c (offset_overlap_p): New, factored out of...
38609 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38610 the conservative special case for symbolic constants. Don't
38611 adjust zero sizes on alignment.
38612
38613 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38614
38615 PR rtl-optimization/52573
38616 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38617 REG_UNUSED for the same register.
38618
38619 2013-01-17 Richard Biener <rguenther@suse.de>
38620 Marek Polacek <polacek@redhat.com>
38621
38622 PR rtl-optimization/55833
38623 * loop-unswitch.c (unswitch_loops): Move loop verification...
38624 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38625 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38626 Set it to true when we're removing a loop from hierarchy tree in
38627 an irreducible region.
38628 (fix_bb_placements): Adjust caller.
38629 (fix_loop_placements): Likewise.
38630
38631 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38632
38633 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38634 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38635 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38636 Remove ID. Adjust comments.
38637 * config/avr/avr-c.c (avr_builtin_name): Remove.
38638 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38639 * config/avr/avr.c (avr_tolower): New static function.
38640 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38641 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38642 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38643 default expansion.
38644
38645 2013-01-17 Jan Hubicka <jh@suse.cz>
38646
38647 PR tree-optimization/55273
38648 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38649
38650 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38651
38652 PR target/55981
38653 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38654 store through atomic_store<mode>_1.
38655 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38656
38657 2013-01-17 Martin Jambor <mjambor@suse.cz>
38658
38659 PR tree-optimizations/55264
38660 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38661 for virtual methods.
38662 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38663 virtual methods before inlining is over.
38664 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38665 virtual functions.
38666 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38667 non-virtual.
38668
38669 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38670
38671 PR rtl-optimization/56005
38672 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38673 pending reads for prefetch.
38674
38675 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38676
38677 * config/aarch64/aarch64.md
38678 (*cstoresi_neg_uxtw): New pattern.
38679 (*cmovsi_insn_uxtw): New pattern.
38680 (*<optab>si3_uxtw): New pattern.
38681 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38682 (*<optab>si3_insn_uxtw): New pattern.
38683 (*bswapsi2_uxtw): New pattern.
38684
38685 2013-01-16 Richard Biener <rguenther@suse.de>
38686
38687 * tree-inline.c (tree_function_versioning): Remove set but
38688 never used variable.
38689
38690 2013-01-16 Richard Biener <rguenther@suse.de>
38691
38692 PR tree-optimization/55964
38693 * tree-flow.h (rename_variables_in_loop): Remove.
38694 (rename_variables_in_bb): Likewise.
38695 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38696 (copy_loop_before): Adjust and delete update-ssa status.
38697 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38698 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38699 (rename_variables_in_loop): Remove.
38700 (slpeel_update_phis_for_duplicate_loop): Likewise.
38701 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38702 use available cfg machinery instead of duplicating it.
38703 Update PHI nodes and perform poor-mans SSA update here.
38704 (slpeel_tree_peel_loop_to_edge): Adjust.
38705
38706 2013-01-16 Richard Biener <rguenther@suse.de>
38707
38708 PR tree-optimization/54767
38709 PR tree-optimization/53465
38710 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38711 (vrp_visit_phi_node): For PHI arguments coming via backedges
38712 drop all symbolical range information.
38713 (execute_vrp): Compute backedges.
38714
38715 2013-01-16 Richard Biener <rguenther@suse.de>
38716
38717 * doc/install.texi: Update CLooG and ISL requirements to
38718 0.18.0 and 0.11.1.
38719
38720 2013-01-16 Christian Bruel <christian.bruel@st.com>
38721
38722 PR target/55301
38723 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38724 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38725 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38726
38727 2013-01-16 DJ Delorie <dj@redhat.com>
38728
38729 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38730 (UNSPECV_SP_SWITCH_E): New.
38731 (sp_switch_1): Change to an unspec.
38732 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38733 replace $r15.
38734
38735 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38736
38737 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38738 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38739 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38740 (expand_mem_thread_fence): Ditto.
38741 (expand_mem_signal_fence): Ditto.
38742 (expand_atomic_load): Ditto.
38743 (expand_atomic_store): Ditto.
38744
38745 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38746
38747 PR rtl-optimization/55547
38748 PR rtl-optimization/53827
38749 PR debug/53671
38750 PR debug/49888
38751 * alias.c (memrefs_conflict_p): Set sizes to negative after
38752 AND adjustments.
38753
38754 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38755
38756 PR target/55940
38757 * function.c (thread_prologue_and_epilogue_insns): Always
38758 add crtl->drap_reg to set_up_by_prologue.set, even if
38759 stack_realign_drap is false.
38760
38761 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38762
38763 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38764 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38765 *call): Fix indention.
38766
38767 2013-01-15 Tom de Vries <tom@codesourcery.com>
38768
38769 PR target/55876
38770 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38771 Update comment.
38772
38773 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38774
38775 PR rtl-optimization/55153
38776 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38777
38778 2013-01-15 Martin Jambor <mjambor@suse.cz>
38779
38780 PR tree-optimization/55920
38781 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38782 accesses as grp_to_be_debug_replaced.
38783
38784 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38785
38786 PR tree-optimization/55920
38787 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38788 there is non-useless type conversion needed from debug rhs to lhs,
38789 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38790
38791 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38792 Mikael Pettersson <mikpe@it.uu.se>
38793
38794 PR target/43961
38795 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38796 Thumb.
38797 (ASM_OUTPUT_CASE_LABEL): Remove.
38798 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38799 * final.c (shorten_branches): Update alignment of labels before
38800 jump tables if CASE_VECTOR_SHORTEN_MODE.
38801
38802 2013-01-15 Richard Biener <rguenther@suse.de>
38803
38804 PR bootstrap/55961
38805 * system.h: Do not include gmp.h for building host tools.
38806
38807 2013-01-15 Richard Biener <rguenther@suse.de>
38808
38809 PR middle-end/55882
38810 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38811 account for bitpos when computing alignment.
38812
38813 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38814
38815 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38816 (ix86_target_macros_internal): Likewise.
38817
38818 * config/i386/i386.c (m_CORE2I7): Removed.
38819 (m_CORE_HASWELL): New macro.
38820 (m_CORE_ALL): Likewise.
38821 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38822 (initial_ix86_arch_features): Likewise.
38823 (processor_target_table): Initializations for Core avx2.
38824 (cpu_names): New names "core-avx2".
38825 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38826 PROCESSOR_CORE_HASWELL.
38827 (ix86_issue_rate): New case.
38828 (ia32_multipass_dfa_lookahead): Likewise.
38829 (ix86_sched_init_global): Likewise.
38830
38831 * config/i386/i386.h (TARGET_HASWELL): New macro.
38832 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38833 (processor_type): New PROCESSOR_HASWELL.
38834
38835 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38836
38837 PR tree-optimization/55955
38838 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38839 *SHIFT_EXPR and *ROTATE_EXPR codes.
38840
38841 PR tree-optimization/48766
38842 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38843 -ftrapv disable -fwrapv.
38844
38845 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38846
38847 PR target/55974
38848 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38849 etc. to 1 and not to __flash.
38850 Use LL suffix for __INT24_MAX__ with -mint8.
38851 Use ULL suffix for __UINT24_MAX__ with -mint8.
38852
38853 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38854
38855 * config/avr/avr-arch.h
38856 (struct base_arch_s): Use typedef avr_arch_t instead.
38857 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38858 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38859 * config/avr/avr.c: Same.
38860 * config/avr/avr-devices.c: Same.
38861 * config/avr/driver-avr.c: Same.
38862 * config/avr/gen-avr-mmcu-texi.c: Same.
38863 * config/avr/avr-mcus.def: Adjust comment.
38864
38865 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38866
38867 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38868 * config/aarch64/iterators.md (VALLDI): New.
38869
38870 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38871 Andi Kleen <ak@linux.intel.com>
38872
38873 PR target/55948
38874 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38875 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38876 memmodel flag.
38877
38878 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38879
38880 * config/avr/avr-stdint.h: Remove trailing blanks.
38881 * config/avr/avr-log.h: Same.
38882 * config/avr/avr-arch.h: Same.
38883 * config/avr/avr-devices.c: Same.
38884 * config/avr/avr-dimode.md: Same.
38885 * config/avr/predicates.md: Same.
38886 * config/avr/avr-c.c: Same. And fix typo.
38887
38888 * config/avr/avr-protos.h: Same. And:
38889 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38890 (init_cumulative_args): Rename to avr_init_cumulative_args.
38891 (expand_prologue): Rename to avr_expand_prologue.
38892 (expand_epilogue): Rename to avr_expand_epilogue.
38893 (adjust_insn_length): Rename to avr_adjust_insn_length.
38894 (notice_update_cc): Rename to avr_notice_update_cc.
38895 (final_prescan_insn): Rename to avr_final_prescan_insn.
38896 * config/avr/avr.c: Same.
38897 * config/avr/avr.h: Same.
38898 * config/avr/avr.md: Remove trailing blanks.
38899 (prologue): Use avr_expand_prologue.
38900 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38901
38902 2013-01-14 Richard Biener <rguenther@suse.de>
38903
38904 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38905 verify_location, collect_subblocks): New functions.
38906 (verify_gimple_in_cfg): Verify that locations only reference
38907 BLOCKs in the functions BLOCK tree.
38908
38909 2013-01-14 Richard Biener <rguenther@suse.de>
38910
38911 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38912 PHI argument.
38913 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38914 unshare reference.
38915 (insert_out_of_ssa_copy_on_edge): Likewise.
38916 (rewrite_close_phi_out_of_ssa): Likewise.
38917 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38918 debug expressions.
38919 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38920 propagated constants.
38921 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38922 can not be shared.
38923
38924 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38925
38926 * config/avr/avr-modes.def: Add GPL copyright notice.
38927
38928 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38929
38930 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38931 MEMMODEL_MASK to determine memory model.
38932 (atomic_store<mode>): Ditto from operands[2].
38933 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38934
38935 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38936
38937 PR fortran/55935
38938 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38939 (fold_gimple_assign): Don't call unshare_expr here.
38940 (fold_ctor_reference): Call unshare_expr.
38941
38942 2013-01-13 Terry Guo <terry.guo@arm.com>
38943
38944 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38945 * doc/fragments.texi: Document MULTILIB_REUSE.
38946 * gcc.c (multilib_reuse): New internal spec.
38947 (set_multilib_dir): Also search multilib from multilib_reuse.
38948 * genmultilib (tmpmultilib3): Refactor code.
38949 (tmpmultilib4): Ditto.
38950 (multilib_reuse): New multilib argument.
38951
38952 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38953
38954 * Makefile.in: Update copyright.
38955
38956 2013-01-12 Tom de Vries <tom@codesourcery.com>
38957
38958 PR middle-end/55890
38959 * calls.c (expand_call): Check if arg_nr is valid.
38960
38961 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38962
38963 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38964 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38965 documentation. Add missing '__' in front of
38966 __builtin_ia32_packssdw256.
38967
38968 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38969
38970 PR target/55719
38971 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38972 NO_REGS for larl operands.
38973 (s390_reload_larl_operand): Use s390_load_address instead of
38974 emit_move_insn.
38975
38976 2013-01-11 Richard Biener <rguenther@suse.de>
38977
38978 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38979 (verify_node_sharing): ... here.
38980 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38981
38982 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38983
38984 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38985 Substitute TREECHECKING.
38986 * configure: Regenerate.
38987 * Makefile.in (TREECHECKING): New.
38988
38989 2013-01-11 Richard Guenther <rguenther@suse.de>
38990
38991 PR tree-optimization/44061
38992 * tree-vrp.c (extract_range_basic): Compute zero as
38993 value-range for __builtin_constant_p of function parameters.
38994
38995 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38996
38997 Update copyright years.
38998
38999 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
39000
39001 PR rtl-optimization/55672
39002 * lra-eliminations.c (mark_not_eliminable): Permit addition with
39003 const to be eliminable.
39004
39005 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
39006
39007 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
39008 * configure: Regenerate.
39009
39010 2013-01-10 Richard Biener <rguenther@suse.de>
39011
39012 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
39013
39014 2013-01-10 Richard Biener <rguenther@suse.de>
39015
39016 PR bootstrap/55792
39017 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
39018 locations for virtual PHI arguments.
39019 (rewrite_update_phi_arguments): Likewise.
39020
39021 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
39022
39023 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
39024 on to assembler.
39025
39026 2013-01-10 Jakub Jelinek <jakub@redhat.com>
39027
39028 PR tree-optimization/55921
39029 * tree-complex.c (expand_complex_asm): New function.
39030 (expand_complex_operations_1): Call it for GIMPLE_ASM.
39031
39032 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39033
39034 PR target/55718
39035 * config/s390/s390.c (s390_symref_operand_p)
39036 (s390_loadrelative_operand_p): Merge the two functions.
39037 (s390_check_qrst_address, print_operand_address): Add parameters
39038 to s390_loadrelative_operand_p invokation.
39039 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39040 (s390_reload_larl_operand, s390_secondary_reload): Use
39041 s390_loadrelative_operand_p instead of s390_symref_operand_p.
39042 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39043
39044 2013-01-09 Mike Stump <mikestump@comcast.net>
39045
39046 * dse.c (record_store): Remove unnecessary assert.
39047
39048 2013-01-09 Jan Hubicka <jh@suse.cz>
39049
39050 PR tree-optimization/55569
39051 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39052 * cfgloop.h (scale_loop_profile): Likewise.
39053
39054 2013-01-09 Jan Hubicka <jh@suse.cz>
39055
39056 PR lto/45375
39057 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39058 functions.
39059 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39060
39061 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
39062
39063 PR middle-end/55114
39064 * expr.h (maybe_emit_group_store): Declare.
39065 * expr.c (maybe_emit_group_store): New function.
39066 * builtins.c (expand_builtin_int_roundingfn): Call it.
39067 (expand_builtin_int_roundingfn_2): Likewise.
39068
39069 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
39070
39071 PR rtl-optimization/55829
39072 * lra-constraints.c (match_reload): Add code for absent output.
39073 (curr_insn_transform): Add code for reloads of matched inputs
39074 without output.
39075
39076 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
39077
39078 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39079 attribute of movddup insn to DF.
39080 (*vec_interleave_lowv2df): Ditto.
39081 (vec_dupv2df): Ditto.
39082
39083 2013-01-09 Jan Hubicka <jh@suse.cz>
39084
39085 PR tree-optimiation/55875
39086 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39087 EVERY_ITERATION parameter.
39088 (number_of_iterations_exit): Check if exit is executed every iteration.
39089 (idx_infer_loop_bounds): Similarly here.
39090 (n_of_executions_at_most): Simplify
39091 to only test for cases where statement is dominated by the
39092 particular bound; handle correctly the "postdominance" test.
39093 (scev_probably_wraps_p): Use max loop iterations info
39094 as a global bound first.
39095
39096 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
39097 Nick Clifton <nickc@redhat.com>
39098
39099 * config/v850/v850.md (cbranchsf4): New pattern.
39100 (cstoresf4): New pattern.
39101 (cbranchdf4): New pattern.
39102 (cstoredf4): New pattern.
39103 (movsicc): Disallow floating point comparisons.
39104 (cmpsf_le_insn): Fix order of operators.
39105 (cmpsf_lt_insn): Likewise.
39106 (cmpsf_eq_insn): Likewise.
39107 (cmpdf_le_insn): Likewise.
39108 (cmpdf_lt_insn): Likewise.
39109 (cmpdf_eq_insn): Likewise.
39110 (cmpsf_ge_insn): Use LE comparison.
39111 (cmpdf_ge_insn): Likewise.
39112 (cmpsf_gt_insn): Use LT comparison.
39113 (cmpdf_gt_insn): Likewise.
39114 (cmpsf_ne_insn): Delete pattern.
39115 (cmpdf_ne_insn): Delete pattern.
39116 * config/v850/v850.c (v850_gen_float_compare): Use
39117 gen_cmpdf_eq_insn for NE comparison.
39118 (v850_float_z_comparison_operator)
39119 (v850_float_nz_comparison_operator): Move from here ...
39120 * config/v850/predicates.md: ... to here. Move GT and GE
39121 comparisons into v850_float_z_comparison_operator.
39122 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39123 Delete prototype.
39124 (v850_float_nz_comparison_operator): Likewise.
39125
39126 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39127
39128 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39129 with calls to gen_insvsi/gen_insvdi.
39130
39131 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39132
39133 * config/i386/i386.c (initial_ix86_tune_features): Set up
39134 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39135
39136 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
39137 Jakub Jelinek <jakub@redhat.com>
39138
39139 PR tree-optimization/48189
39140 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39141 If nitercst is 0, don't predict the exit edge.
39142
39143 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39144
39145 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39146 in asm_fprintf with reg_names.
39147 (aarch64_print_operand_address): Likewise.
39148 (aarch64_return_addr): Likewise.
39149 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39150
39151 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39152
39153 * config/pa/pa.h (VAL_U6_BITS_P): Define.
39154 (INT_U6_BITS): Likewise.
39155 * config/pa/predicates.md (uint6_operand): New predicate.
39156 (shift5_operand, shift6_operand): Likewise.
39157 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39158 arith32_operand.
39159 (lshrdi3): Use shift6_operand.
39160 (shrpsi4, shrpdi4): New insn patterns.
39161 (extzv): Delete expander.
39162 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
39163 predicates in unamed zero extract patterns. Tighten common constraint.
39164 (extv): Delete expander.
39165 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
39166 predicates in unamed sign extract patterns. Tighten common constraint.
39167 (insv): Delete expander.
39168 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
39169 predicates in unamed insert patterns. Tighten common constraint.
39170 Change uint32_operand predicate to uint6_operand predicate in unamed
39171 DImode pattern to insert constant values of type 1...1xxxx.
39172
39173 2013-01-04 Jan Hubicka <jh@suse.cz>
39174
39175 PR tree-optimization/55823
39176 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39177 issue.
39178
39179 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39180 Uros Bizjak <ubizjak@gmail.com>
39181
39182 PR rtl-optimization/55845
39183 * df-problems.c (can_move_insns_across): Stop scanning at
39184 volatile_insn_p source instruction or give up if
39185 across_from .. across_to range contains any volatile_insn_p
39186 instructions.
39187
39188 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39189
39190 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39191 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39192 Declare.
39193 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39194 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39195
39196 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39197
39198 PR fortran/55341
39199 * asan.c (asan_clear_shadow): New function.
39200 (asan_emit_stack_protection): Use it.
39201
39202 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39203
39204 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39205 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39206 with tab instead of space.
39207
39208 2013-01-08 Nick Clifton <nickc@redhat.com>
39209
39210 * config/rl78/rl78.c (rl78_expand_prologue): Always select
39211 register bank 0 at the start of an interrupt handler.
39212 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39213 MDBH registers.
39214
39215 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39216
39217 * config/aarch64/aarch64-simd.md
39218 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39219 (aarch64_simd_bsl): Likewise.
39220 (aarch64_vcond_internal<mode>): Likewise.
39221 (vcond<mode><mode>): Likewise.
39222 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39223 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39224
39225 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39226
39227 * config/aarch64/aarch64-builtins.c
39228 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39229
39230 2013-01-08 Martin Jambor <mjambor@suse.cz>
39231
39232 PR debug/55579
39233 * tree-sra.c (analyze_access_subtree): Return true also after
39234 potentially creating a debug-only replacement.
39235
39236 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39237
39238 PR middle-end/55890
39239 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39240
39241 PR tree-optimization/54120
39242 * tree-vrp.c (range_fits_type_p): Don't allow
39243 src_precision < precision from signed vr to unsigned_p
39244 if vr->min or vr->max is negative.
39245 (simplify_float_conversion_using_ranges): Test can_float_p
39246 against CODE_FOR_nothing.
39247
39248 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39249 Richard Biener <rguenther@suse.de>
39250
39251 PR middle-end/55851
39252 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39253 types instead of just INTEGER_TYPE types.
39254
39255 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
39256
39257 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39258 TF_SIZE): Define.
39259
39260 2013-01-07 Steve Ellcey <sellcey@mips.com>
39261
39262 PR target/42661
39263 * config/mips/mips.opt: Change mad to mmad to match documentation.
39264
39265 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39266
39267 PR target/55897
39268 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39269 .progmemx.data now.
39270
39271 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39272
39273 PR target/55897
39274 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39275 (avr_addrspace_t): Add .section_name field.
39276 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39277 array size.
39278 (avr_addrspace): Same. Initialize .section_name. Remove last
39279 NULL entry. Put __memx into .progmemx.data.
39280 (progmem_section_prefix): Remove.
39281 (avr_asm_init_sections): No need to initialize progmem_section.
39282 (avr_asm_named_section): Use avr_addrspace[].section_name to get
39283 section name prefix.
39284 (avr_asm_select_section): Ditto. And use get_unnamed_section to
39285 retrieve the progmem section.
39286 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39287 boundary to run over avr_addrspace[].
39288 (avr_register_target_pragmas): Ditto.
39289
39290 2013-01-06 Jakub Jelinek <jakub@redhat.com>
39291
39292 * varasm.c (output_constant_def_contents): For asan_protect_global
39293 protected strings, adjust DECL_ALIGN if needed, before testing for
39294 anchored symbols.
39295 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39296 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
39297 normal decls.
39298 (output_object_block): For asan protected decls, emit asan padding
39299 after their contents.
39300 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39301 (asan_finish_file): Test it here instead.
39302
39303 2013-01-07 Nick Clifton <nickc@redhat.com>
39304 Matthias Klose <doko@debian.org>
39305 Doug Kwan <dougkwan@google.com>
39306 H.J. Lu <hongjiu.lu@intel.com>
39307
39308 PR driver/55470
39309 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39310
39311 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39312
39313 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39314
39315 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39316
39317 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39318
39319 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39320
39321 PR target/54461
39322 * doc/install.texi (Cross-Compiler-Specific Options): Document
39323 --with-avrlibc.
39324
39325 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
39326
39327 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39328 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39329 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39330 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39331 vqmovun_high_s64): Fix source operand number and update copyright.
39332
39333 2013-01-07 Richard Biener <rguenther@suse.de>
39334
39335 PR middle-end/55890
39336 * gimple.h (gimple_call_builtin_p): New overload.
39337 * gimple.c (validate_call): New function.
39338 (gimple_call_builtin_p): Likewise.
39339 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39340 Use gimple_call_builtin_p.
39341 (find_func_clobbers): Likewise.
39342 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39343 (strlen_optimize_stmt): Likewise.
39344
39345 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39346
39347 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39348 (vld1q_dup_*): Likewise.
39349 (vld1_*): Likewise.
39350 (vld1q_*): Likewise.
39351 (vld1_lane_*): Likewise.
39352 (vld1q_lane_*): Likewise.
39353
39354 2013-01-07 Richard Biener <rguenther@suse.de>
39355
39356 * lto-streamer.h (LTO_minor_version): Bump to 2.
39357
39358 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39359
39360 * config/aarch64/aarch64-protos.h
39361 (aarch64_const_double_zero_rtx_p): Rename to...
39362 (aarch64_float_const_zero_rtx_p): ...this.
39363 (aarch64_float_const_representable_p): New.
39364 (aarch64_output_simd_mov_immediate): Likewise.
39365 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39366 move immediate case.
39367 * config/aarch64/aarch64.c
39368 (aarch64_const_double_zero_rtx_p): Rename to...
39369 (aarch64_float_const_zero_rtx_p): ...this.
39370 (aarch64_print_operand): Allow printing of new constants.
39371 (aarch64_valid_floating_const): New.
39372 (aarch64_legitimate_constant_p): Check for valid floating-point
39373 constants.
39374 (aarch64_simd_valid_immediate): Likewise.
39375 (aarch64_vect_float_const_representable_p): New.
39376 (aarch64_float_const_representable_p): Likewise.
39377 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39378 (aarch64_output_simd_mov_immediate): New.
39379 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39380 (*movdf_aarch64): Likewise.
39381 * config/aarch64/constraints.md (Ufc): New.
39382 (Y): call aarch64_float_const_zero_rtx.
39383 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39384
39385 2013-01-07 Richard Biener <rguenther@suse.de>
39386
39387 PR tree-optimization/55888
39388 PR tree-optimization/55862
39389 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39390 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39391 not if it is contained therein.
39392
39393 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39394
39395 * config/avr/t-avr: Typo.
39396
39397 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39398
39399 PR55243
39400 * config/avr/t-avr: Don't automatically rebuild
39401 $(srcdir)/config/avr/t-multilib
39402 $(srcdir)/config/avr/avr-tables.opt
39403 $(srcdir)/doc/avr-mmcu.texi
39404 (avr-mcus): New phony target to build them on request.
39405 (s-avr-mlib, s-avr-mmcu-texi): Remove.
39406 * avr/avr-mcus.def: Adjust comments.
39407
39408 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
39409
39410 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39411
39412 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39413
39414 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39415
39416 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39417
39418 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39419
39420 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
39421
39422 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39423 to generate profiling.
39424 * config/rs6000/aix64.h (LIB_SPEC): Same.
39425
39426 2013-01-04 Andrew Pinski <apinski@cavium.com>
39427
39428 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39429 New function.
39430 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39431
39432 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
39433
39434 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39435 unconditionally.
39436 (ix86_expand_move): Ditto.
39437 (ix86_zero_extend_to_Pmode): Ditto.
39438 (ix86_expand_call): Ditto.
39439 (ix86_expand_special_args_builtin): Ditto.
39440 (ix86_expand_builtin): Ditto.
39441
39442 2013-01-04 Richard Biener <rguenther@suse.de>
39443
39444 PR tree-optimization/55862
39445 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39446 translating them through PHI nodes.
39447
39448 2013-01-04 Martin Jambor <mjambor@suse.cz>
39449
39450 PR tree-optimization/55755
39451 * tree-sra.c (sra_modify_assign): Do not check that an access has no
39452 children when trying to avoid producing a VIEW_CONVERT_EXPR.
39453
39454 2013-01-04 Marek Polacek <polacek@redhat.com>
39455
39456 PR middle-end/55859
39457 * opts.c (default_options_optimization): Clarify error message.
39458
39459 2013-01-04 Richard Biener <rguenther@suse.de>
39460
39461 PR middle-end/55863
39462 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39463 reassociation.
39464
39465 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39466
39467 PR target/53789
39468 * config/pa/pa.md (movsi): Revert previous change.
39469 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39470 references.
39471
39472 2013-01-03 Richard Henderson <rth@redhat.com>
39473
39474 * config/i386/i386.c (ix86_expand_move): Always assign to op1
39475 after eliminating TLS symbols.
39476
39477 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39478
39479 PR bootstrap/50167
39480 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39481 * graphite-poly.c (debug_gmp_value): Likewise.
39482
39483 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39484
39485 PR target/55712
39486 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39487 selected code model, define __code_mode_small__, __code_model_medium__,
39488 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39489 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39490 xchg temporary register with %k. Declare temporary register as
39491 early clobbered.
39492 [__x86_64__]: For medium and large code models, preserve %rbx register.
39493
39494 2013-01-03 Richard Biener <rguenther@suse.de>
39495
39496 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39497 (dump_subscript): Adjust.
39498 (finalize_ddr_dependent): Do not dump redundant info.
39499 (analyze_siv_subscript): Adjust.
39500 (subscript_dependence_tester): Likewise.
39501 (compute_affine_dependence): Likewise.
39502
39503 2013-01-03 Richard Biener <rguenther@suse.de>
39504
39505 Revert
39506 2013-01-03 Richard Biener <rguenther@suse.de>
39507
39508 PR tree-optimization/55857
39509 * tree-vect-stmts.c (vectorizable_load): Do not setup
39510 re-alignment for invariant loads.
39511
39512 2013-01-02 Richard Biener <rguenther@suse.de>
39513
39514 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39515 invariant load do not generate a vector load from the scalar location.
39516
39517 2013-01-03 Richard Biener <rguenther@suse.de>
39518
39519 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39520 for not vectorizing.
39521 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39522 not build INDIRECT_REFs, call get_name once only.
39523 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39524 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39525
39526 2013-01-03 Richard Biener <rguenther@suse.de>
39527
39528 PR tree-optimization/55857
39529 * tree-vect-stmts.c (vectorizable_load): Do not setup
39530 re-alignment for invariant loads.
39531
39532 2013-01-03 Richard Biener <rguenther@suse.de>
39533
39534 PR lto/55848
39535 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39536 prefer a built-in decl.
39537
39538 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39539
39540 * gcc.c (process_command): Update copyright notice dates.
39541 * gcov.c (print_version): Likewise.
39542 * gcov-dump.c (print_version): Likewise.
39543
39544 PR rtl-optimization/55838
39545 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39546 iv0.step, iv1.step and step.
39547
39548 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39549 Marc Glisse <marc.glisse@inria.fr>
39550
39551 PR tree-optimization/55832
39552 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39553 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39554 integer_{one,zero}_node.
39555
39556 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39557
39558 PR debug/54402
39559 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39560 * var-tracking.c (reverse_op): Don't add reverse ops to
39561 VALUEs that have already
39562 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39563
39564 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39565
39566 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39567
39568 2013-01-02 Teresa Johnson <tejohnson@google.com>
39569
39570 * dumpfile.c (dump_loc): Print filename with location.
39571 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39572 new location_t parameter to emit complete unroll message with
39573 new dump framework.
39574 (canonicalize_loop_induction_variables): Compute loops location
39575 and pass to try_unroll_loop_completely.
39576 * loop-unroll.c (report_unroll_peel): New function.
39577 (peel_loops_completely): Use new dump format with location
39578 for main dumpfile message, and invoke report_unroll_peel on success.
39579 (decide_unrolling_and_peeling): Ditto.
39580 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39581 by report_unroll_peel.
39582 (decide_peel_completely): Ditto.
39583 (decide_unroll_constant_iterations): Ditto.
39584 (decide_unroll_runtime_iterations): Ditto.
39585 (decide_peel_simple): Ditto.
39586 (decide_unroll_stupid): Ditto.
39587 * cfgloop.c (get_loop_location): New function.
39588 * cfgloop.h (get_loop_location): Declare.
39589
39590 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39591
39592 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39593 NULL.
39594
39595 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39596
39597 PR middle-end/55198
39598 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39599 BLKmode objects when EXPAND_MEMORY is specified.
39600
39601 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39602
39603 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39604 in loop predicate.
39605 (fold_builtin_cpu): Do not share cpu model decls across statements.
39606
39607 2013-01-02 Jason Merrill <jason@redhat.com>
39608
39609 PR c++/55804
39610 * tree.c (build_array_type_1): Revert earlier change.
39611
39612 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39613
39614 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39615 "cortex-a57".
39616 * config/aarch64/aarch64-tune.md: Re-generate.
39617
39618 2013-01-02 Richard Biener <rguenther@suse.de>
39619
39620 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39621 invariant load do not generate a vector load from the scalar location.
39622
39623 2013-01-02 Richard Biener <rguenther@suse.de>
39624
39625 PR bootstrap/55784
39626 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39627 * configure: Regenerate.
39628
39629 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39630
39631 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39632 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39633 (expand_builtin_int_roundingfn_2): Keep the original target around
39634 for the fallback case.
39635
39636 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39637
39638 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39639 to be clear for sign changes.
39640
39641 2013-01-01 Jan Hubicka <jh@suse.cz>
39642
39643 * ipa-inline-analysis.c: Fix formatting.
39644
39645 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39646
39647 PR tree-optimization/55831
39648 * tree-vect-loop.c (get_initial_def_for_induction): Use
39649 gsi_after_labels instead of gsi_start_bb.
39650 \f
39651 Copyright (C) 2013 Free Software Foundation, Inc.
39652
39653 Copying and distribution of this file, with or without modification,
39654 are permitted in any medium without royalty provided the copyright
39655 notice and this notice are preserved.