re PR target/59605 (error: wrong number of branch edges after unconditional jump...
[gcc.git] / gcc / ChangeLog
1 2013-12-30 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR target/59605
4 * config/i386/i386.c (ix86_expand_set_or_movmem): Create
5 jump_around_label only if it doesn't exist.
6
7 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
8
9 * doc/invoke.texi (output file options): Document -fada-spec-parent.
10
11 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
12 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13 Sergey Lega <sergey.s.lega@intel.com>
14 Anna Tikhonova <anna.tikhonova@intel.com>
15 Ilya Tocar <ilya.tocar@intel.com>
16 Andrey Turetskiy <andrey.turetskiy@intel.com>
17 Ilya Verbin <ilya.verbin@intel.com>
18 Kirill Yukhin <kirill.yukhin@intel.com>
19 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20
21 * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
22 EVEX's RC.
23 (avx512f_sfixupimm<mode>_maskz): Ditto.
24 * config/i386/subst.md (round_saeonly_expand_name): New.
25 (round_saeonly_expand_nimm_predicate): Ditto.
26 (round_saeonly_expand_operand6): Ditto.
27 (round_saeonly_expand): Ditto.
28
29 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
30 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
31 Sergey Lega <sergey.s.lega@intel.com>
32 Anna Tikhonova <anna.tikhonova@intel.com>
33 Ilya Tocar <ilya.tocar@intel.com>
34 Andrey Turetskiy <andrey.turetskiy@intel.com>
35 Ilya Verbin <ilya.verbin@intel.com>
36 Kirill Yukhin <kirill.yukhin@intel.com>
37 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
38
39 * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
40 EVEX's RC.
41 (avx512f_fmaddsub_<mode>_maskz): Ditto.
42 * config/i386/subst.md (round_expand_name): New.
43 (round_expand_nimm_predicate): Ditto.
44 (round_expand_operand): Ditto.
45 (round_expand): Ditto.
46
47 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
48 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
49 Sergey Lega <sergey.s.lega@intel.com>
50 Anna Tikhonova <anna.tikhonova@intel.com>
51 Ilya Tocar <ilya.tocar@intel.com>
52 Andrey Turetskiy <andrey.turetskiy@intel.com>
53 Ilya Verbin <ilya.verbin@intel.com>
54 Kirill Yukhin <kirill.yukhin@intel.com>
55 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
56
57 * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
58 EVEX's SAE mode.
59 (*<code><mode>3_finite<mask_name>): Ditto.
60 (*<code><mode>3<mask_name>): Ditto.
61 (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
62 (avx512f_vmcmp<mode>3): Ditto.
63 (avx512f_vmcmp<mode>3_mask): Ditto.
64 (<sse>_comi): Ditto.
65 (<sse>_ucomi): Ditto.
66 (sse_cvttss2si): Ditto.
67 (sse_cvttss2siq): Ditto.
68 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
69 (avx512f_vcvttss2usi): Ditto.
70 (avx512f_vcvttss2usiq): Ditto.
71 (avx512f_vcvttsd2usi): Ditto.
72 (avx512f_vcvttsd2usiq): Ditto.
73 (sse2_cvttsd2si): Ditto.
74 (sse2_cvttsd2siq): Ditto.
75 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
76 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
77 (avx512f_getexp<mode><mask_name>): Ditto.
78 (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
79 (avx512f_fixupimm<mode>_mask): Ditto.
80 (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
81 (avx512f_sfixupimm<mode>_mask): Ditto.
82 (avx512f_rndscale<mode><mask_name>): Ditto.
83 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
84 (avx512f_getmant<mode><mask_name>): Ditto.
85 * config/i386/subst.md (round_saeonly_name): New.
86 (round_saeonly_mask_operand2): Ditto.
87 (round_saeonly_mask_operand3): Ditto.
88 (round_saeonly_mask_scalar_operand3): Ditto.
89 (round_saeonly_mask_scalar_operand4): Ditto.
90 (round_saeonly_mask_scalar_merge_operand4): Ditto.
91 (round_saeonly_sd_mask_operand5): Ditto.
92 (round_saeonly_op2): Ditto.
93 (round_saeonly_op4): Ditto.
94 (round_saeonly_op5): Ditto.
95 (round_saeonly_op6): Ditto.
96 (round_saeonly_mask_op2): Ditto.
97 (round_saeonly_mask_op3): Ditto.
98 (round_saeonly_mask_scalar_op3): Ditto.
99 (round_saeonly_mask_scalar_op4): Ditto.
100 (round_saeonly_mask_scalar_merge_op4): Ditto.
101 (round_saeonly_sd_mask_op5): Ditto.
102 (round_saeonly_constraint): Ditto.
103 (round_saeonly_constraint2): Ditto.
104 (round_saeonly_nimm_predicate): Ditto.
105 (round_saeonly_mode512bit_condition): Ditto.
106 (round_saeonly): Ditto.
107
108 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
109 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
110 Sergey Lega <sergey.s.lega@intel.com>
111 Anna Tikhonova <anna.tikhonova@intel.com>
112 Ilya Tocar <ilya.tocar@intel.com>
113 Andrey Turetskiy <andrey.turetskiy@intel.com>
114 Ilya Verbin <ilya.verbin@intel.com>
115 Kirill Yukhin <kirill.yukhin@intel.com>
116 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
117
118 * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
119 * config/i386/i386.md (define_constants): Define EVEx's RC constants.
120 * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
121 to support EVEX's rounding control.
122 (*<plusminus_insn><mode>3<mask_name>): Ditto.
123 (mul<mode>3<mask_name>): Ditto.
124 (*mul<mode>3<mask_name>): Ditto.
125 (<sse>_div<mode>3<mask_name>): Ditto.
126 (<sse>_sqrt<mode>2<mask_name>): Ditto.
127 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
128 (avx512f_fmadd_<mode>_mask): Ditto.
129 (avx512f_fmadd_<mode>_mask3): Ditto.
130 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
131 (avx512f_fmsub_<mode>_mask): Ditto.
132 (avx512f_fmsub_<mode>_mask3): Ditto.
133 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
134 (avx512f_fnmadd_<mode>_mask): Ditto.
135 (avx512f_fnmadd_<mode>_mask3): Ditto.
136 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
137 (avx512f_fnmsub_<mode>_mask): Ditto.
138 (avx512f_fnmsub_<mode>_mask3): Ditto.
139 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
140 (avx512f_fmaddsub_<mode>_mask): Ditto.
141 (avx512f_fmaddsub_<mode>_mask3): Ditto.
142 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
143 (avx512f_fmsubadd_<mode>_mask): Ditto.
144 (avx512f_fmsubadd_<mode>_mask3): Ditto.
145 (fmai_vmfmadd_<mode>): Ditto.
146 (*fmai_fmadd_<mode>): Ditto.
147 (*fmai_fmsub_<mode>): Ditto.
148 (*fmai_fnmadd_<mode>): Ditto.
149 (*fmai_fnmsub_<mode>): Ditto.
150 (sse_cvtsi2ss): Ditto.
151 (sse_cvtsi2ssq): Ditto.
152 (sse_cvtss2si): Ditto.
153 (sse_cvtss2siq): Ditto.
154 (cvtusi2<ssescalarmodesuffix>32): Ditto.
155 (cvtusi2<ssescalarmodesuffix>64): Ditto.
156 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
157 (ufloatv16siv16sf2<mask_name>): Ditto.
158 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
159 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
160 (sse2_cvtsi2sdq): Ditto.
161 (avx512f_vcvtss2usi): Ditto.
162 (avx512f_vcvtss2usiq): Ditto.
163 (avx512f_vcvtsd2usi): Ditto.
164 (avx512f_vcvtsd2usiq): Ditto.
165 (sse2_cvtsd2si): Ditto.
166 (sse2_cvtsd2siq): Ditto.
167 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
168 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
169 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
170 (avx512f_scalef<mode><mask_name>): Ditto.
171 (<code><mode>3<mask_name>): Ditto.
172 (*avx2_<code><mode>3<mask_name>): Ditto.
173 (avx512er_exp2<mode><mask_name): Ditto.
174 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
175 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
176 (avx512f_fmadd_<mode>_maskz): New.
177 * config/i386/subst.md (SUBST_A): New.
178 (round_name): Ditto.
179 (round_mask_operand2): Ditto.
180 (round_mask_operand3): Ditto.
181 (round_mask_scalar_operand3): Ditto.
182 (round_sd_mask_operand4): Ditto.
183 (round_op2): Ditto.
184 (round_op3): Ditto.
185 (round_op4): Ditto.
186 (round_op5): Ditto.
187 (round_op6): Ditto.
188 (round_mask_op2): Ditto.
189 (round_mask_op3): Ditto.
190 (round_mask_scalar_op3): Ditto.
191 (round_sd_mask_op4): Ditto.
192 (round_constraint): Ditto.
193 (round_constraint2): Ditto.
194 (round_constraint3): Ditto.
195 (round_nimm_predicate): Ditto.
196 (round_mode512bit_condition): Ditto.
197 (round_modev4sf_condition): Ditto.
198 (round_codefor): Ditto.
199 (round_opnum): Ditto.
200 (round): Ditto.
201
202 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR target/59588
205 * config/i386/i386.c (ix86_option_override_internal): Don't
206 check generic tuning. Don't change i686 tuning.
207
208 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
209
210 PR target/59601
211 * config/i386/i386.c (get_builtin_code_for_version): Map
212 PROCESSOR_NEHALEM to "corei7".
213
214 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
215
216 * config/i386/i386.c (get_builtin_code_for_version): Rename AMD
217 CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR
218 to M_AMD_BTVER2.
219 (processor_model): Likewise.
220 (arch_names_table): Likewise.
221
222 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
223
224 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
225
226 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
227
228 PR target/59587
229 * config/i386/i386.c (struct ptt): Add a field for processor name.
230 (processor_target_table): Sync with processor_type.
231 Add processor names.
232 (cpu_names): Removed.
233 (ix86_option_override_internal): Default x_ix86_tune_string
234 to processor_target_table[TARGET_CPU_DEFAULT].name.
235 (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
236 Use processor_target_table to print arch and tune names.
237 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
238 PROCESSOR_GENERIC.
239 (target_cpu_default): Removed.
240 (processor_type): Reordered.
241
242 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org>
243 H.J. Lu <hongjiu.lu@intel.com>
244
245 PR target/59422
246 * config/i386/i386.c (get_builtin_code_for_version): Handle
247 PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
248 PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
249 Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
250 (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
251 "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a",
252 "fma4", "xop" and "fma" ISA names.
253
254 2013-12-24 H.J. Lu <hongjiu.lu@intel.com>
255
256 * config/i386/i386.c (ix86_option_override_internal): Check
257 opts->x_ix86_arch_string instead of ix86_arch_string.
258
259 2013-12-24 Renlin Li <Renlin.Li@arm.com>
260
261 * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
262 * config/arm/constraints.md (Dp): Define new constraint.
263 * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
264 new predicate.
265 * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
266 (vfp3_const_double_for_bits): New function.
267 * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
268
269 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
270
271 PR target/59203
272 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
273 checking t1 twice instead of t1 and t2 respectively.
274
275 PR middle-end/59584
276 * config/cris/predicates.md (cris_nonsp_register_operand):
277 New define_predicate.
278 * config/cris/cris.md: Replace register_operand with
279 cris_nonsp_register_operand for destinations in all
280 define_splits where a register is set more than once.
281
282 2013-12-23 Jason Merrill <jason@redhat.com>
283
284 * gdbinit.in (input_line, input_filename): Define.
285
286 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
287 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
288 * cif-code.def: Add USES_COMDAT_LOCAL.
289 * symtab.c (verify_symtab_base): Make sure we don't refer to a
290 comdat-local symbol from outside its comdat.
291 * cgraph.c (verify_cgraph_node): Likewise.
292 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
293 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
294 (function_and_variable_visibility): Handle comdat-local fns.
295 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
296 * ipa-inline-analysis.c (compute_inline_parameters): Update
297 calls_comdat_local.
298 * ipa-inline-transform.c (inline_call): Likewise.
299 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
300 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
301 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
302 (lto_output_node): Write it.
303 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
304 DECL_COMDAT_GROUP for comdat-locals.
305
306 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
307
308 * config/i386/i386.c (processor_target_table): Move Bonnell and
309 Silvermont entries before generic.
310
311 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
312
313 PR middle-end/59569
314 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
315 consant/external operand, and add a few missing \n.
316
317 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
318 Tocar Ilya <ilya.tocar@intel.com>
319
320 * config/i386/core2.md: Replace corei7 with nehalem.
321
322 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
323 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
324 for cpu names.
325
326 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
327 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
328 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
329 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
330 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
331 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
332 __tune_haswell__, __bonnell/__bonnell__,
333 __silvermont/__silvermont__, __tune_bonnell__,
334 __tune_silvermont__.
335
336 * config/i386/i386.c (m_COREI7): Renamed to ...
337 (m_NEHALEM): This.
338 (m_COREI7_AVX): Renamed to ...
339 (m_SANDYBRIDGE): This.
340 (m_ATOM): Renamed to ...
341 (m_BONNELL): This.
342 (m_SLM): Renamed to ...
343 (m_SILVERMONT): This.
344 (m_CORE_ALL): Updated.
345 (cpu_names): Add "nehalem", "westmere", "sandybridge",
346 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
347 (PTA_CORE2): New.
348 (PTA_NEHALEM): Likewise.
349 (PTA_WESTMERE): Likewise.
350 (PTA_SANDYBRIDGE): Likewise.
351 (PTA_IVYBRIDGE): Likewise.
352 (PTA_HASWELL): Likewise.
353 (PTA_BROADWELL): Likewise.
354 (PTA_BONNELL): Likewise.
355 (PTA_SILVERMONT): Likewise.
356 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
357 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
358 (ix86_lea_outperforms): Updated.
359 (ix86_issue_rate): Likewise.
360 (ix86_adjust_cost): Likewise.
361 (ia32_multipass_dfa_lookahead): Likewise.
362 (do_reorder_for_imul): Likewise.
363 (swap_top_of_ready_list): Likewise.
364 (ix86_sched_reorder): Likewise.
365 (ix86_sched_init_global): Likewise.
366 (get_builtin_code_for_version): Likewise.
367 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
368 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
369 (arch_names_table): Updated.
370
371 * config/i386/i386.h (TARGET_COREI7): Removed.
372 (TARGET_COREI7_AVX): Likewise.
373 (TARGET_ATOM): Likewise.
374 (TARGET_SLM): Likewise.
375 (TARGET_NEHALEM): New.
376 (TARGET_SANDYBRIDGE): Likewise.
377 (TARGET_BONNELL): Likewise.
378 (TARGET_SILVERMONT): Likewise.
379 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
380 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
381 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
382 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
383 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
384 before TARGET_CPU_DEFAULT_broadwell.
385 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
386 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
387 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
388
389 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
390
391 * config/i386/x86-tune.def: Updated.
392
393 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
394 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
395 haswell, bonnel, silvermont. Add westmere.
396
397 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
398
399 PR rtl-optimization/57422
400 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
401 can always be scheduled in its current form.
402
403 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
404
405 PR rtl-optimization/57422
406 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
407 add_to_hard_reg_set.
408
409 2013-12-20 Sharad Singhai <singhai@google.com>
410
411 * Makefile.in: Add optinfo.texi.
412 * doc/invoke.texi: Fix typo.
413 * doc/optinfo.texi: New documentation for optimization info.
414 * doc/passes.texi: Add new node.
415
416 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
417
418 * vec.h (stack_vec): Convert to a templaate specialization of
419 auto_vec.
420 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
421 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
422 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
423 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
424 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
425 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
426 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
427 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
428 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
429
430 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
431
432 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
433 arguments to push onto the stack and no varargs, save ip into the last
434 stack slot if r3 isn't available on entry.
435
436 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
437
438 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
439 * config/arm/arm_neon.h: Regenerate.
440 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
441 * doc/arm-neon-intrinsics.texi: Regenerate.
442
443 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
444
445 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
446 NO_REGS for LRA.
447
448 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
449
450 * config/arm/arm_acle.h: Add underscores before variables.
451
452 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
453
454 PR tree-optimization/59544
455 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
456 vectorizable_store.
457 (vectorizable_store): Handle negative step.
458
459 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
460
461 * config.gcc: Support march=broadwell.
462 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
463 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
464 * doc/invoke.texi: Document march=broadwell.
465
466 2013-12-20 Jakub Jelinek <jakub@redhat.com>
467
468 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
469 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
470 like INTEGER_TYPE.
471 (instrument_bool_enum_load): New function.
472 (ubsan_pass): Call it.
473 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
474 * asan.c (create_cond_insert_point): No longer static.
475 * asan.h (create_cond_insert_point): Declare.
476 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
477 built-in.
478 * opts.c (common_handle_option): Handle -fsanitize=bool and
479 -fsanitize=enum.
480 * builtins.c (fold_builtin_memory_op): When sanitizing bool
481 and enum loads, don't use enum or bool types for memcpy folding.
482 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
483 (SANITIZE_UNDEFINED): Or these in.
484
485 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
486
487 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
488 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
489 to determine available register number.
490 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
491 macro NDS32_MODE_TYPE_ALIGN.
492 (nds32_function_arg): Refine code layout.
493
494 2013-12-19 Jeff Law <law@redhat.com>
495
496 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
497 handles both zero and sign extension.
498
499 2013-12-19 Teresa Johnson <tejohnson@google.com>
500
501 PR gcov-profile/59542
502 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
503 if we have made any changes.
504
505 2013-12-19 Jakub Jelinek <jakub@redhat.com>
506
507 PR other/59545
508 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
509 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
510 to unsigned.
511 (attr_rtx_1): Change hashcode variable to unsigned.
512 (attr_string): Likewise. Perform first multiplication in
513 unsigned type.
514 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
515 overflows.
516 * double-int.c (neg_double): Likewise.
517 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
518 * combine.c (force_to_mode): Likewise.
519 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
520 reload_cse_move2add, move2add_note_store): Likewise.
521 * simplify-rtx.c (simplify_const_unary_operation,
522 simplify_const_binary_operation): Likewise.
523 * ipa-split.c (find_split_points): Initialize first.can_split
524 and first.non_ssa_vars.
525 * gengtype-state.c (read_state_files_list): Fix up check.
526 * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
527
528 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
529
530 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
531 * doc/arm-neon-intrinsics.texi: Regenerate.
532
533 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
534
535 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
536
537 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
538
539 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
540 (arm_init_neon_builtins): Handle crypto builtins.
541 (bdesc_2arg): Likewise.
542 (bdesc_1arg): Likewise.
543 (bdesc_3arg): New table.
544 (arm_expand_ternop_builtin): New function.
545 (arm_expand_unop_builtin): Handle sha1h explicitly.
546 (arm_expand_builtin): Handle ternary builtins.
547 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
548 Define __ARM_FEATURE_CRYPTO.
549 * config/arm/arm.md: Include crypto.md.
550 (is_neon_type): Add crypto types.
551 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
552 * config/arm/crypto.def: New.
553 * config/arm/crypto.md: Likewise.
554 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
555 (CRYPTO_BINARY): Likewise.
556 (CRYPTO_TERNARY): Likewise.
557 (CRYPTO_SELECTING): Likewise.
558 (crypto_pattern): New int attribute.
559 (crypto_size_sfx): Likewise.
560 (crypto_mode): Likewise.
561 (crypto_type): Likewise.
562 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
563 Handle crypto intrinsics.
564 * config/arm/neon.ml: Add support for poly64 and polt128 types
565 and intrinsics. Define crypto intrinsics.
566 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
567 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
568 (neon_vreinterpretv8hi<mode>): Likewise.
569 (neon_vreinterpretv4si<mode>): Likewise.
570 (neon_vreinterpretv4sf<mode>): Likewise.
571 (neon_vreinterpretv2di<mode>): Likewise.
572 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
573 (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
574 (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
575 (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
576 * config/arm/arm_neon.h: Regenerate.
577
578 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
579
580 PR driver/59321
581 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
582 DEFAULT_LINKER is defined.
583 * common.opt (fuse-ld=bfd): Add Driver.
584 (fuse-ld=gold): Likewise.
585 * gcc.c (use_ld): New variable.
586 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
587 OPT_fuse_ld_gold.
588 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
589
590 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
591
592 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
593 * config.gcc (extra_headers): Add arm_acle.h.
594 * config/arm/arm.c (FL_CRC32): Define.
595 (arm_have_crc): Likewise.
596 (arm_option_override): Set arm_have_crc.
597 (arm_builtins): Add CRC32 builtins.
598 (bdesc_2arg): Likewise.
599 (arm_init_crc32_builtins): New function.
600 (arm_init_builtins): Initialise CRC32 builtins.
601 (arm_file_start): Handle architecture extensions.
602 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
603 __ARM_FEATURE_CRC32. Define __ARM_32BIT_STATE.
604 (TARGET_CRC32): Define.
605 * config/arm/arm-arches.def: Add armv8-a+crc.
606 * config/arm/arm-tables.opt: Regenerate.
607 * config/arm/arm.md (type): Add crc.
608 (<crc_variant>): New insn.
609 * config/arm/arm_acle.h: New file.
610 * config/arm/iterators.md (CRC): New int iterator.
611 (crc_variant, crc_mode): New int attributes.
612 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
613 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
614 * doc/invoke.texi: Document -march=armv8-a+crc option.
615 * doc/extend.texi: Document ACLE intrinsics.
616
617 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
618
619 PR target/59142
620 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
621 patterns.
622 * config/arm/ldmstm.md: Regenerate.
623
624 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
625
626 PR target/59142
627 * config/arm/predicates.md (arm_hard_general_register_operand):
628 New predicate.
629 (arm_hard_register_operand): Remove.
630 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
631 for all patterns.
632 * config/arm/ldmstm.md: Regenerate.
633
634 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
635
636 PR target/59142
637 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
638 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
639 vfp_hard_register_operand.
640
641 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
642
643 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
644 Define builtin types for poly64_t poly128_t.
645 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
646 * aarch64/aarch64-simd-builtins.def: Update builtins table.
647 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
648 aarch64_crypto_pmullv2di): New.
649 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
650 poly64x2_t mangler.
651 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
652 (vmull_p64, vmull_high_p64): New.
653 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
654
655 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
656
657 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
658 * config/aarch64/aarch64-simd.md
659 (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
660 aarch64_crypto_sha256su1v4si): New.
661 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
662 vsha256su0q_u32, vsha256su1q_u32): New.
663 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
664 New.
665 (CRYPTO_SHA256): New int iterator.
666 (sha256_op): New int attribute.
667
668 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
669
670 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
671 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
672 TYPES_TERNOPU): New.
673 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
674 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
675 aarch64_crypto_sha1su0v4si): New.
676 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
677 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
678 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
679 New.
680 (CRYPTO_SHA1): New int iterator.
681 (sha1_op): New int attribute.
682
683 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
684
685 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
686 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
687 TYPES_BINOPU): New.
688 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
689 aarch64_crypto_aes<aesmc_op>v16qi): New.
690 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
691 vaesimcq_u8): New.
692 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
693 UNSPEC_AESIMC): New.
694 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
695 (aes_op, aesmc_op): New int attributes.
696
697 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
698
699 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
700 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
701 crypto_sha256_slow): New.
702
703 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
704
705 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
706 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
707
708 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
709 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
710
711 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
712 constant.
713 (s390_hotpatch_trampoline_halfwords_max): New constant.
714 (s390_hotpatch_trampoline_halfwords): New static variable.
715 (get_hotpatch_attribute): New function.
716 (s390_handle_hotpatch_attribute): New function.
717 (s390_attribute_table): New target specific attribute table to
718 implement the hotpatch attribute.
719 (s390_option_override): Parse hotpatch options.
720 (s390_function_num_hotpatch_trampoline_halfwords): New function.
721 (s390_can_inline_p): Implement target hook to
722 suppress hotpatching for explicitly inlined functions.
723 (s390_asm_output_function_label): Generate hotpatch prologue.
724 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
725 (TARGET_CAN_INLINE_P): Define to implement target hook.
726 * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
727 -mhotpatch=.
728 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
729 prototype.
730 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
731 function label generation for hotpatching.
732 (FUNCTION_BOUNDARY): Align functions to eight bytes.
733 * doc/extend.texi: Document hotpatch attribute.
734 * doc/invoke.texi: Document -mhotpatch option.
735
736 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
737
738 * config/i386/i386.c: Include cfgloop.h.
739 (ix86_loop_memcount): New function.
740 (ix86_loop_unroll_adjust): New function.
741 (TARGET_LOOP_UNROLL_ADJUST): Define.
742 * config/i386/i386.h
743 (TARGET_ADJUST_UNROLL): Define.
744 * config/i386/x86-tune.def
745 (X86_TUNE_ADJUST_UNROLL): Define.
746
747 2013-12-19 Marek Polacek <polacek@redhat.com>
748
749 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
750 variable alg. Use index variable i directly.
751
752 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
753
754 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
755 for all types.
756
757 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
758
759 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
760 Consider TARGET_CPU_DEFAULT settings.
761
762 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
763
764 * config/aarch64/aarch64-cores.def: Add support for
765 -mcpu=cortex-a57.cortex-a53.
766 * config/aarch64/aarch64-tune.md: Regenerate.
767 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
768
769 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
770
771 * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
772 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
773 * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
774 (aarch64_parse_cpu): mcpu implies a default value for mtune.
775 * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
776
777 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
778
779 * common/config/aarch64/aarch64-common.c
780 (aarch64_rewrite_selected_cpu): New.
781 (aarch64_rewrite_mcpu): New.
782 * config/aarch64/aarch64-protos.h
783 (aarch64_rewrite_selected_cpu): New.
784 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
785 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
786 (ASM_CPU_SPEC): Likewise.
787 (EXTRA_SPEC_FUNCTIONS): Likewise.
788 (EXTRA_SPECS): Likewise.
789 (ASM_SPEC): Likewise.
790 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
791 CPU name.
792
793 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
794
795 * omp-low.c (simd_clone_clauses_extract): Replaced the string
796 "cilk simd elemental" with "cilk simd function."
797 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
798 Removed a carriage-return from a warning string.
799
800 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
801
802 * passes.c (execute_function_dump): Set graph_dump_initialized
803 appropriately.
804 (pass_init_dump_file): Similarly.
805 (execute_one_pass): Pass new argument to do_per_function.
806 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
807
808 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
809
810 * doc/tree-ssa.texi (SSA Operands): Remove reference to
811 SSA_OP_VMAYUSE.
812 Synchronize SSA_OP* definitions with source.
813 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
814 Add not to SSA_OP* macro definitions.
815
816 2013-12-18 Jakub Jelinek <jakub@redhat.com>
817
818 PR target/59539
819 * config/i386/sse.md
820 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
821 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
822 prefix existing define_insn names with *.
823
824 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
825
826 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
827
828 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
829 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
830
831 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
832 cortex-a57, cortex-a57.cortex-a53.
833
834 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
835
836 PR debug/59418
837 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
838 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
839 (dwarf2out_frame_debug_expr): Tidy.
840
841 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
842 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
843 Sergey Lega <sergey.s.lega@intel.com>
844 Anna Tikhonova <anna.tikhonova@intel.com>
845 Ilya Tocar <ilya.tocar@intel.com>
846 Andrey Turetskiy <andrey.turetskiy@intel.com>
847 Ilya Verbin <ilya.verbin@intel.com>
848 Kirill Yukhin <kirill.yukhin@intel.com>
849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
850
851 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
852 (*fma_fmsub_<mode>): Ditto.
853 (*fma_fnmadd_<mode>): Ditto.
854 (*fma_fnmsub_<mode>): Ditto.
855 (*fma_fmaddsub_<mode>): Ditto.
856 (*fma_fmsubadd_<mode>): Ditto.
857 (avx512f_vternlog<mode>): Ditto.
858 (avx512f_fixupimm<mode>): Ditto.
859 (avx512f_sfixupimm<mode>): Ditto.
860 (avx512f_vpermi2var<mode>3): Ditto.
861 (avx512f_vpermt2var<mode>3): Ditto.
862 (avx512f_fmaddsub_<mode>_maskz): New.
863 (avx512f_vternlog<mode>_maskz): Ditto.
864 (avx512f_fixupimm<mode>_maskz): Ditto.
865 (avx512f_sfixupimm<mode>_maskz): Ditto.
866 (avx512f_vpermi2var<mode>3_maskz): Ditto.
867 (avx512f_vpermt2var<mode>3_maskz): Ditto.
868 (avx512f_expand<mode>_maskz): Ditto.
869 * config/i386/subst.md (sd_maskz_name): Ditto.
870 (sd_mask_op4): Ditto.
871 (sd_mask_op5): Ditto.
872 (sd_mask_codefor): Ditto.
873 (sd_mask_mode512bit_condition): Ditto.
874 (sd): Ditto.
875
876 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
878 Sergey Lega <sergey.s.lega@intel.com>
879 Anna Tikhonova <anna.tikhonova@intel.com>
880 Ilya Tocar <ilya.tocar@intel.com>
881 Andrey Turetskiy <andrey.turetskiy@intel.com>
882 Ilya Verbin <ilya.verbin@intel.com>
883 Kirill Yukhin <kirill.yukhin@intel.com>
884 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
885
886 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
887 (avx512f_ucmp<mode>3): Ditto.
888 (avx512f_eq<mode>3): Ditto.
889 (avx512f_gt<mode>3): Ditto.
890 (avx512f_testm<mode>3): Ditto.
891 (avx512f_testnm<mode>3): Ditto.
892 * config/i386/subst.md (SUBST_S): New.
893 (mask_scalar_merge_name): Ditto.
894 (mask_scalar_merge_operand3): Ditto.
895 (mask_scalar_merge_operand4): Ditto.
896 (mask_scalar_merge): Ditto.
897
898 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
899
900 PR middle-end/35545
901 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
902 OBJ_TYPE_REF.
903 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
904
905 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
906
907 PR middle-end/35545
908 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
909
910 2013-12-17 Teresa Johnson <tejohnson@google.com>
911
912 PR gcov-profile/59527
913 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
914 branch, which can't be eliminated.
915
916 2013-12-18 Martin Liska <marxin.liska@gmail.com>
917 Jan Hubicka <jh@suse.cz>
918
919 * cgraphunit.c (node_cmp): New function.
920 (expand_all_functions): Function ordering added.
921 * common.opt: New profile based function reordering flag introduced.
922 * lto-partition.c: Support for time profile added.
923 * lto.c: Likewise.
924 * predict.c (handle_missing_profiles): Time profile handled in
925 missing profiles.
926
927 2013-12-17 Jakub Jelinek <jakub@redhat.com>
928
929 PR tree-optimization/59523
930 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
931 on updated stmts.
932
933 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
934
935 * ipa-inline.c (gate_ipa_inline): Remove.
936 (const pass_data pass_data_ipa_inline): Unset has_gate.
937 (class pass_ipa_inline): Remove gate() method.
938
939 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
940
941 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
942 in contains_type_p query.
943
944 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
945
946 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
947
948 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
949 declaration.
950
951 * omp-low.c: Remove leftover comment.
952
953 * omp-low.c (check_combined_parallel): Reflect reality in comment.
954
955 * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
956 * doc/passes.texi (Pass manager): Refer to passes.def.
957
958 * doc/gccint.texi (Top): Fix inclusion order.
959
960 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
961
962 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
963 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
964 * config/arm/arm.md (generic_vfp): Remove cortexa12.
965
966 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
967
968 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
969 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
970 * config/arm/arm-tables.opt: Regenerate.
971 * config/arm/arm-tune.md: Regenerate.
972 * config/arm/bpabi.h
973 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
974
975 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
976
977 * config/arm/arm-cores.def (cortex-a57): New.
978 * doc/invoke.texi: Document -mcpu=cortex-a57.
979 * config/arm/arm-tables.opt: Regenerate.
980 * config/arm/arm-tune.md: Regenerate.
981 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
982
983 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
984
985 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
986 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
987 * config/arm/arm-tables.opt: Regenerate.
988 * config/arm/arm-tune.md: Regenerate.
989 * config/arm/bpabi.h
990 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
991
992 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
993
994 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
995 * config/arm/genopt.sh: Improve layout.
996 * config/arm/arm-tune.md: Regenerate.
997 * config/arm/arm-tables.opt: Regenerate.
998 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
999 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
1000 (arm_option_override): When a CPU is chosen, that should also
1001 form the tune target.
1002 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
1003
1004 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1005
1006 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1007 (arm_rewrite_mcpu): Likewise.
1008 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1009 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1010 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1011 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1012 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1013 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1014
1015 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
1016
1017 * expmed.c (lowpart_bit_field_p): Fix comment.
1018 (store_bit_field_using_insv): Fix formatting.
1019 (store_bit_field): Likewise.
1020 (store_fixed_bit_field): More declaration and remove return.
1021 (store_fixed_bit_field_1): Fix formatting.
1022 (extract_fixed_bit_field): Move declaration.
1023 (extract_fixed_bit_field_1): Simplify.
1024
1025 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1026
1027 * ipa-utils.h (possible_polymorphic_call_targets): Determine
1028 context of the call.
1029 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1030
1031 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1032
1033 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1034 instead of x as last gen_lowpart argument.
1035
1036 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1037
1038 * predict.h (PROB_LIKELY): Fix the value.
1039 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1040 for overflow checking for modes without 2xwider supported mode,
1041 if the mode has 2xnarrower mode.
1042
1043 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1044 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1045 try to improve generated code if one of the arguments is constant
1046 or get_range_info says that one of the argument is always
1047 negative or always non-negative.
1048 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1049 (simplify_stmt_using_ranges): Call it.
1050
1051 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
1052
1053 PR rtl-optimization/59466
1054 * emit-rtl.c (change_address_1): Don't validate address for LRA.
1055 * recog.c (general_operand): Accept any memory for LRA.
1056 * lra.c (lra_set_insn_recog_data): Add an assert.
1057
1058 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1059
1060 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1061
1062 2013-12-14 Jan Hubicka <jh@suse.cz>
1063 Markus Trippelsdorf <octoploid@yandex.com>
1064
1065 PR ipa/59265
1066 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1067 call is already devirtualized.
1068
1069 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1070
1071 * Makefile.in (version.o): Restore dependencies on
1072 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1073
1074 2013-12-14 Jan Hubicka <jh@suse.cz>
1075
1076 PR ipa/59473
1077 * ipa-devirt.c (get_class_context): Do not ICE when type is found
1078 at wrong offset.
1079
1080 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1081
1082 PR libgomp/58756
1083 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1084 reductions without placeholder if is_simd, but when not using
1085 GOMP_SIMD* internal calls, also perform the reduction operation
1086 on the outer var rather than simple assignment.
1087
1088 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1089
1090 PR middle-end/58956
1091 PR middle-end/59470
1092 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1093 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1094 for callback params.
1095 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1096 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
1097 calls to supply the gimple operand containing the base tree
1098 as an extra argument.
1099 * tree-ssa-ter.c: Include gimple-walk.h.
1100 (find_ssaname, find_ssaname_in_store): New helper functions.
1101 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1102 same_root_var if USE is used somewhere in the stores of the stmt.
1103 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1104 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1105 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1106 check_ipa_store): Likewise.
1107 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1108 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1109 (verify_non_ssa_vars, visit_bb): Adjust their callers.
1110 * cfgexpand.c (add_scope_conflicts_1): Use
1111 walk_stmt_load_store_addr_fn type for visit variable.
1112 (visit_op, visit_conflict): Remove name of the stmt
1113 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1114 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
1115 argument and ATTRIBUTE_UNUSED.
1116 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1117 unnamed tree argument.
1118 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
1119 ATTRIBUTE_UNUSED from stmt parameter.
1120
1121 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
1122
1123 * opts-common.c (integral_argument): Add support for
1124 hexadecimal command option integer arguments. Update comments.
1125
1126 2013-12-14 Jan Hubicka <jh@suse.cz>
1127
1128 PR ipa/59265
1129 * ipa-prop.c (ipa_analyze_call_uses): Skip already
1130 devirtualized calls.
1131
1132 2013-12-14 Jan Hubicka <jh@suse.cz>
1133
1134 PR middle-end/58477
1135 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1136
1137 2013-12-14 Jan Hubicka <jh@suse.cz>
1138
1139 PR middle-end/58477
1140 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1141
1142 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
1143
1144 PR target/59492
1145 * config/i386/i386.c (ix86_function_specific_restore): Don't
1146 change -fPIC.
1147
1148 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
1149
1150 * var-tracking.c (add_stores): Fix oversight in latest commit.
1151
1152 2013-12-14 Marek Polacek <polacek@redhat.com>
1153
1154 PR sanitizer/59503
1155 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1156 expand_binop with correct optab depending on code.
1157
1158 2013-12-14 Tom de Vries <tom@codesourcery.com>
1159
1160 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1161
1162 2013-12-13 DJ Delorie <dj@redhat.com>
1163
1164 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1165
1166 * config/msp430/msp430.md (movqi): replace general_operand with
1167 msp_general_operand and nonimmediate_operand with
1168 msp_nonimmediate_operand to allow volatile operands.
1169 (movhi): Likewise.
1170 (movpsi): Likewise.
1171 (addpsi3): Likewise.
1172 (addhi3): Likewise.
1173 (addhi3_cy): Likewise.
1174 (addchi4_cy): Likewise.
1175 (xor<mode>3): Likewise.
1176 (ome_cmpl<mode>2): Likewise.
1177 (extendqihi2): Likewise.
1178 (zero_extendqihi2): Likewise.
1179 (zero_extendhipsi2): Likewise.
1180 (truncpsihi2): Likewise.
1181 (srai_1): Likewise.
1182
1183 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
1184
1185 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1186 * ira.c: Ditto.
1187 * lra-int.h (lra_init_equiv): New prototype.
1188 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1189 (loc_equivalence_callback): Use the 3rd arg.
1190 (lra_constraints): Update equivalences. Pass curr_insn to
1191 simplify_replace_fn_rtx.
1192 * lra.c (lra): Call lra_init_equiv.
1193
1194 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1195
1196 * genmodes.c (emit_max_int): Fixed missing parens.
1197
1198 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
1199
1200 PR tree-optimization/59149
1201 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1202 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1203 if no type or decl.
1204
1205 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1206
1207 * config/arc/arc.h (BITS_PER_UNIT): Removed.
1208 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1209 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1210 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1211 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1212 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1213 * config/spu/spu.h (BITS_PER_UNIT): Removed.
1214 * defaults.h (BITS_PER_UNIT): Removed.
1215 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1216 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1217 (MAX_BITSIZE_MODE_ANY_INT): Updated.
1218 * doc/tm.texi (BITS_PER_UNIT): Removed.
1219 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1220 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1221 (create_modes): Added code to set bits_per_unit and
1222 max_bitsize_mode_any_int.
1223 (emit_max_int): Changed code generation.
1224 * mkconfig.sh: Added insn-modes.h.
1225
1226 2013-12-13 Jeff Law <law@redhat.com>
1227
1228 PR tree-optimization/45685
1229 * tree-ssa-phiopt.c (neg_replacement): New function.
1230 (tree_ssa_phiopt_worker): Call it.
1231
1232 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1233
1234 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1235
1236 2013-12-13 Bin Cheng <bin.cheng@arm.com>
1237
1238 PR tree-optimization/58296
1239 PR tree-optimization/41488
1240 * tree-scalar-evolution.c: Include necessary header files.
1241 (simplify_peeled_chrec): New function.
1242 (analyze_evolution_in_loop): New static variable.
1243 Call simplify_peeled_chrec.
1244 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1245 (add_old_iv_candidates): Don't add candidate for peeled IV.
1246 * tree-affine.h (aff_combination_zero_p): New function.
1247
1248 2013-12-13 Nick Clifton <nickc@redhat.com>
1249
1250 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
1251 true if the current function has the wakeup attribute.
1252 (msp430_start_function): Note if the function has the wakeup
1253 attribute.
1254 (msp430_attribute_table): Add wakeup attribute.
1255 (msp430_expand_epilogue): Add support for wakeup functions.
1256 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1257 the DINT instruction.
1258 * doc/extend.texi: Document the wakeup attribute.
1259
1260 2013-12-13 Kai Tietz <kitetz@redhat.com>
1261
1262 PR c++/57897
1263 * config/i386/i386.c (ix86_option_override_internal): Set for
1264 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1265 was explicit set.
1266
1267 2013-12-12 Jeff Law <law@redhat.com>
1268
1269 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1270 for zero-extended MULT simple LEA pattern.
1271
1272 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
1273
1274 PR middle-end/59470
1275 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1276 values if necessary.
1277
1278 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1279
1280 PR libgomp/59467
1281 * gimplify.c (omp_check_private): Add copyprivate argument, if it
1282 is true, don't check omp_privatize_by_reference.
1283 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1284 decl is private in outer context. Adjust omp_check_private caller.
1285
1286 2013-12-11 Jeff Law <law@redhat.com>
1287
1288 PR rtl-optimization/59446
1289 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1290 test for crossing a loop header.
1291
1292 2013-12-11 Sriraman Tallam <tmsriram@google.com>
1293
1294 PR target/59390
1295 * config/i386/i386.c (get_builtin): New function.
1296 (ix86_builtin_vectorized_function): Replace all instances of
1297 ix86_builtins[...] with get_builtin(...).
1298 (ix86_builtin_reciprocal): Ditto.
1299
1300 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1301
1302 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1303 (lang_hooks_for_cilkplus): Remove.
1304 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1305 (lhd_install_body_with_frame_cleanup): Likewise.
1306 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1307 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1308 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1309 (LANG_HOOKS_CILKPLUS): Likewise.
1310 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1311 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1312 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1313 (gimplify_call_expr): Likewise.
1314
1315 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1316
1317 * expr.c (expand_assignment): Remove dependency on
1318 flag_strict_volatile_bitfields. Always set the memory access mode.
1319 (expand_expr_real_1): Likewise.
1320
1321 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1322
1323 PR middle-end/59134
1324 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1325 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1326 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
1327 to do the real work.
1328 (store_fixed_bit_field_1): New function.
1329 (store_split_bit_field): Limit the unit size to the memory mode size,
1330 to prevent recursion.
1331
1332 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1333 Sandra Loosemore <sandra@codesourcery.com>
1334
1335 PR middle-end/23623
1336 PR middle-end/48784
1337 PR middle-end/56341
1338 PR middle-end/56997
1339 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1340 and bitregion_end parameters. Test for compliance with C++
1341 memory model.
1342 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1343 Add fallback logic for cases where -fstrict-volatile-bitfields
1344 is supposed to apply, but cannot.
1345 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1346 extract_fixed_bit_field_1 to do the extraction.
1347 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1348 Call extract_fixed_bit_field_1 to do the real work.
1349 (extract_fixed_bit_field_1): New function.
1350
1351 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
1352
1353 PR middle-end/23623
1354 PR middle-end/48784
1355 PR middle-end/56341
1356 PR middle-end/56997
1357 * expmed.c (strict_volatile_bitfield_p): New function.
1358 (store_bit_field_1): Don't special-case strict volatile
1359 bitfields here.
1360 (store_bit_field): Handle strict volatile bitfields here instead.
1361 (store_fixed_bit_field): Don't special-case strict volatile
1362 bitfields here.
1363 (extract_bit_field_1): Don't special-case strict volatile
1364 bitfields here.
1365 (extract_bit_field): Handle strict volatile bitfields here instead.
1366 (extract_fixed_bit_field): Don't special-case strict volatile
1367 bitfields here. Simplify surrounding code to resemble that in
1368 store_fixed_bit_field.
1369 * doc/invoke.texi (Code Gen Options): Update
1370 -fstrict-volatile-bitfields description.
1371
1372 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1373
1374 * configure.ac: Add check for aarch64 assembler -mabi support.
1375 * configure: Regenerate.
1376 * config.in: Regenerate.
1377 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1378 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1379 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1380 if assembler does not support -mabi and option ilp32 is selected.
1381 * doc/install.texi: Added note that building gcc 4.9 and after
1382 with pre 2.24 binutils will not support -mabi=ilp32.
1383
1384 2013-12-11 Marek Polacek <polacek@redhat.com>
1385
1386 PR sanitizer/59399
1387 * expr.c (expand_expr_real_1): Remove assert dealing with
1388 internal calls and turn that into a condition instead.
1389
1390 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
1391
1392 * config/arm/arm.opt (mlra): Enable LRA by default.
1393
1394 2013-12-11 Jakub Jelinek <jakub@redhat.com>
1395
1396 PR tree-optimization/59417
1397 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1398 in a different bb rhan var, only duplicate points-to info and
1399 not alignment info and don't duplicate range info.
1400 * tree-ssa-loop-niter.c (determine_value_range): Instead of
1401 assertion failure handle inconsistencies in range info by only
1402 using var's range info and not PHI result range infos.
1403
1404 PR tree-optimization/59386
1405 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1406 unshare_expr (id->retval) before passing it to gimple_build_assign.
1407
1408 2013-12-11 Bin Cheng <bin.cheng@arm.com>
1409
1410 Reverted:
1411 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1412 PR tree-optimization/41488
1413 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1414 for PEELED_CHREC kind IV.
1415 * tree-scalar-evolution.c: Include necessary header files.
1416 (peeled_chrec_map, simplify_peeled_chrec): New.
1417 (analyze_evolution_in_loop): New static variable.
1418 Call simplify_peeled_chrec.
1419 (scev_initialize): Initialize peeled_chrec_map.
1420 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1421
1422 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1423
1424 PR target/59458
1425 * config/i386/i386.md (*movsf_internal): Set mode to SI for
1426 alternative 13.
1427
1428 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1429
1430 PR rtl-optimization/58295
1431 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1432 WORD_REGISTER_OPERATIONS targets.
1433
1434 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1435
1436 * genrecog.c (validate_pattern): Treat all messages except missing
1437 modes as errors.
1438 * config/epiphany/epiphany.md: Remove constraints from
1439 define_peephole2s.
1440 * config/h8300/h8300.md: Remove constraints from define_splits.
1441 * config/msp430/msp430.md: Likewise.
1442 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1443 nonimmediate_operand rather than general_operand for operand 0.
1444 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1445 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1446 Use match_operator rather than match_test to invoke general_operand.
1447 * config/v850/v850.md (*movqi_internal, *movhi_internal)
1448 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1449
1450 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1451
1452 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1453 register_operand rather than pointer_operand. Add modes to the
1454 operands.
1455 (insn_ldna_add<bitsuffix>): Likewise.
1456 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1457 (insn_ldnt_add<bitsuffix>): Likewise.
1458 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1459 (insn_ld_add_L2<bitsuffix>): Likewise.
1460 (insn_ldna_add_L2<bitsuffix>): Likewise.
1461 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1462 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1463 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1464 (insn_ld_add_miss<bitsuffix>): Likewise.
1465 (insn_ldna_add_miss<bitsuffix>): Likewise.
1466 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1467 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1468 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1469 (insn_st_add<bitsuffix>): Likewise.
1470 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1471 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1472 (insn_stnt_add<bitsuffix>): Likewise.
1473 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1474 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1475 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1476 reg_or_0_operand for operand 0.
1477 (insn_v2<pack_insn>): Likewise.
1478 (vec_pack_hipart_v4hi): Likewise.
1479 (insn_v2packh): Likewise.
1480 (vec_pack_ssat_v2si): Likewise.
1481 (insn_v4packsc): Likewise.
1482
1483 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1484
1485 * basic-block.h (gcov_working_set_t): Put back typedef.
1486 * gcov-io.h (gcov_bucket_type): Likewise.
1487 (gcov_working_set_info, gcov_working_set_t): Likewise.
1488
1489 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1490
1491 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1492 Remove typedef.
1493 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1494 rename to cgraph_inline_failed_t.
1495 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1496 to ao_ref.
1497 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1498 to reg_equivs_t.
1499 * conditions.h (CC_STATUS): Remove typedef.
1500 * bitmap.h (bitmap_obstack): Remove typedef.
1501 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1502 bitmap_element.
1503 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1504 bitmap_head.
1505 (bitmap_iterator): Remove typedef.
1506 * target.h (cumulative_args_t, print_switch_type,
1507 secondary_reload_info): Remove typedef.
1508 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1509 dw_cfi_oprnd_struct alias.
1510 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1511 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1512 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1513 dw_cfa_location.
1514 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1515 dw_vec_const.
1516 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1517 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1518 dw_loc_descr_node.
1519 * params.h (param_info, compiler_param): Remove typedef.
1520 * opts.h (cl_deferred_param): Remove typedef.
1521 * sreal.h (sreal): Remove typedef.
1522 * ddg.h (dep_type, dep_data_type): Remove typedef.
1523 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1524 typedef.
1525 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1526 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1527 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1528 and rename to aff_tree.
1529 * sched-int.h (region): Remove typedef.
1530 * diagnostic.h (diagnostic_info,
1531 diagnostic_classification_change_t): Remove typedef.
1532 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1533 affine_iv.
1534 * sbitmap.h (sbitmap_iterator): Remove typedef.
1535 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1536 Remove typedef and rename to imm_use_iterator.
1537 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1538 ssa_op_iter.
1539 * ggc-internal.h (ggc_statistics): Remove typedef.
1540 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1541 rename to cselib_val.
1542 * tree-core.h (alias_pair): Remove typedef.
1543 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1544 constructor_elt.
1545 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1546 ssa_use_operand_t.
1547 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1548 * tree-data-ref.h (conflict_function): Remove typedef.
1549 * tree-inline.h (copy_body_data): Remove typedef.
1550 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1551 edge_growth_cache_entry): Remove typedef.
1552 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1553 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1554 Remove typedef and rename to gimple_stmt_iterator.
1555 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1556 rename to ce_if_block.
1557 (edge_iterator): Remove typedef.
1558 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1559 and rename to ipa_agg_jf_item.
1560 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1561 ipa_parm_adjustment_t): Remove typedef.
1562 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1563 ipa_jump_func.
1564 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1565 ipa_edge_args.
1566 * gcov-io.h (gcov_bucket_type): Remove typedef.
1567 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1568 to gcov_working_set_t.
1569 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1570 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1571 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1572 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1573 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1574 replace_label_data): Remove typedef.
1575 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1576 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1577 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1578 sel_region_bb_info_def, succ_iterator): Remove typedef.
1579 (deps_where_def, deps_where_t): Remove typedef and rename to
1580 deps_where_t.
1581 * coretypes.h: Adapt forward declarations.
1582 * tree-scalar-evolution.h: Likewise.
1583 * tree-ssa-address.h: Likewise.
1584 * tree-ssa-operands.h: Likewise.
1585 * function.h: Likewise.
1586 * config/frv/frv-protos.h: Likewise.
1587 * targhooks.h: Likewise.
1588 * basic_block.h: Likewise.
1589 * rtl.def: Adapt documentation.
1590 * doc/tm.texi: Likewise.
1591 * ipa-cp.c: Adapt uses.
1592 * bitmap.c: Likewise.
1593 * dwarf2out.c: Likewise.
1594 * target.def: Likewise.
1595 * ipa-inline-analysis.c: Likewise.
1596 * dwarf2cfi.c: Likewise.
1597 * tree-ssa-loop-ivopts.c: Likewise.
1598 * lto-cgraph.c: Likewise.
1599 * config/frv/frv.c: Likewise.
1600 * ifcvt.c: Likewise.
1601 * ipa-prop.c: Likewise.
1602
1603 2013-12-10 Kai Tietz <ktietz@redhat.com>
1604
1605 PR target/56807
1606 * config/i386/i386.c (ix86_expand_prologue): Address saved
1607 registers stack-relative, not via frame-pointer.
1608
1609 2013-12-10 Richard Biener <rguenther@suse.de>
1610
1611 PR middle-end/38474
1612 * tree-ssa-structalias.c (solution_set_expand): Expand into
1613 a different possibly cached bitmap and return the result.
1614 (set_union_with_increment): Pass in a shared expanded bitmap
1615 and adjust.
1616 (do_sd_constraint): Likewise.
1617 (do_ds_constraint): Likewise.
1618 (do_complex_constraint): Likewise.
1619 (solve_graph): Manage the shared expanded bitmap.
1620
1621 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1622
1623 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1624 (LOOP_VINFO_SCALAR_LOOP): Define.
1625 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1626 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1627 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1628 MASK_STORE.
1629 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1630 internal fns.
1631 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1632 tree-ssa-address.h.
1633 (release_bb_predicate): New function.
1634 (free_bb_predicate): Use it.
1635 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1636 just to immediately allocate it again.
1637 (add_to_predicate_list): Add loop argument. If basic blocks that
1638 dominate loop->latch don't insert any predicate.
1639 (add_to_dst_predicate_list): Adjust caller.
1640 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1641 handle it like flag_tree_loop_if_convert_stores.
1642 (insert_gimplified_predicates): Likewise.
1643 (ifcvt_can_use_mask_load_store): New function.
1644 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1645 argument, check if some conditional loads or stores can't be
1646 converted into MASK_LOAD or MASK_STORE.
1647 (if_convertible_stmt_p): Add any_mask_load_store argument,
1648 pass it down to if_convertible_gimple_assign_stmt_p.
1649 (predicate_bbs): Don't return bool, only check if the last stmt
1650 of a basic block is GIMPLE_COND and handle that. Adjust
1651 add_to_predicate_list caller.
1652 (if_convertible_loop_p_1): Only call predicate_bbs if
1653 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1654 afterwards, check gimple_code of stmts here. Replace is_predicated
1655 check with dominance check. Add any_mask_load_store argument,
1656 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1657 call if_convertible_phi_p only after all if_convertible_stmt_p calls.
1658 (if_convertible_loop_p): Add any_mask_load_store argument,
1659 pass it down to if_convertible_loop_p_1.
1660 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1661 (combine_blocks): Add any_mask_load_store argument, pass
1662 it down to insert_gimplified_predicates and call predicate_mem_writes
1663 if it is set. Call predicate_bbs.
1664 (version_loop_for_if_conversion): New function.
1665 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1666 calls. Return todo flags instead of bool, call
1667 version_loop_for_if_conversion if if-conversion should be just
1668 for the vectorized loops and nothing else.
1669 (main_tree_if_conversion): Adjust caller. Don't call
1670 tree_if_conversion for dont_vectorize loops if if-conversion
1671 isn't explicitly enabled.
1672 * tree-vect-data-refs.c (vect_check_gather): Handle
1673 MASK_LOAD/MASK_STORE.
1674 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1675 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1676 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1677 expand_MASK_STORE): New functions.
1678 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1679 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1680 (vectorize_loops): Don't try to vectorize loops with
1681 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1682 loops, fold LOOP_VECTORIZED internal call depending on if loop
1683 has been vectorized or not.
1684 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1685 New function.
1686 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1687 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1688 still to loop's entry or exit edge.
1689 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1690 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1691 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1692 Adjust callers.
1693 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1694 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1695 right place in the CFG afterwards.
1696 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1697 MASK_STORE.
1698 * cfgloop.h (struct loop): Add dont_vectorize field.
1699 * tree-loop-distribution.c (copy_loop_before): Adjust
1700 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1701 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1702 * passes.def: Add a note that pass_vectorize must immediately follow
1703 pass_if_conversion.
1704 * tree-predcom.c (split_data_refs_to_components): Give up if
1705 DR_STMT is a call.
1706 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
1707 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1708 and MASK_STORE.
1709 (vectorizable_mask_load_store): New function.
1710 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1711 (vect_transform_stmt): Handle MASK_STORE.
1712 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1713 DR_STMT where lhs is NULL.
1714 * optabs.h (can_vec_perm_p): Fix up comment typo.
1715 (can_vec_mask_load_store_p): New prototype.
1716 * optabs.c (can_vec_mask_load_store_p): New function.
1717
1718 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1719
1720 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1721 the extraction of a bit-field of null size.
1722
1723 2013-12-10 Marek Polacek <polacek@redhat.com>
1724
1725 PR sanitizer/59437
1726 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1727 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1728 instead of gimple_code.
1729
1730 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1731
1732 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1733 Add android definitions.
1734 (s390x-*-linux*): Use linux-protos.h.
1735
1736 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1737
1738 PR tree-optimization/41488
1739 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1740 for PEELED_CHREC kind IV.
1741 * tree-scalar-evolution.c: Include necessary header files.
1742 (peeled_chrec_map, simplify_peeled_chrec): New.
1743 (analyze_evolution_in_loop): New static variable.
1744 Call simplify_peeled_chrec.
1745 (scev_initialize): Initialize peeled_chrec_map.
1746 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1747
1748 2013-12-09 Andrew Pinski <apinski@cavium.com>
1749
1750 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1751 that options are conflicting ones.
1752
1753 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1754
1755 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1756
1757 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1758
1759 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1760
1761 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1762 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1763
1764 * cfganal.c (inverted_post_order_compute): Likewise.
1765 * cfgcleanup.c (try_optimize_cfg): Likewise.
1766 * cfgexpand.c (add_scope_conflicts): Likewise.
1767 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1768 * cfgrtl.c (relink_block_chain): Likewise.
1769 * dce.c (mark_artificial_uses): Likewise.
1770 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1771 * df-problems.c (df_lr_verify_solution_start,
1772 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1773 df_live_verify_solution_start, df_live_verify_solution_end,
1774 df_live_set_all_dirty, df_live_verify_transfer_functions,
1775 df_md_local_comput): Likewise.
1776 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1777 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1778 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1779 free_dominance_info): Likewise.
1780 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1781 * graph.c (draw_cfg_edges): Likewise.
1782 * graphite-scop-detection.c (print_graphite_scop_statistics,
1783 dot_all_scops_1): Likewise.
1784 * graphite.c (print_global_statistics,
1785 print_graphite_scop_statistics): Likewise.
1786 * ira.c (do_reload): Likewise.
1787 * loop-init.c (loop_optimizer_finalize): Likewise.
1788 * lto-streamer-in.c (input_function): Likewise.
1789 * lto-streamer-out.c (output_function): Likewise.
1790 * mcf.c (adjust_cfg_counts): Likewise.
1791 * predict.c (estimate_loops): Likewise.
1792 * sched-rgn.c (haifa_find_rgns): Likewise.
1793 * tree-cfg.c (split_critical_edges): Likewise.
1794 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1795 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1796 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1797 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1798 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1799 * vtable-verify.c (vtable_verify_main): Likewise.
1800 * web.c (web_main): Likewise.
1801
1802 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1803
1804 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1805
1806 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1807 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1808 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1809 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1810 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1811 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1812 * config/sh/sh.c (sh_md_init_global): Likewise.
1813 * config/sh/sh_optimize_sett_clrt.cc
1814 (sh_optimize_sett_clrt::execute): Likewise.
1815 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1816 Likewise.
1817 * dominance.c (calc_dfs_tree): Likewise.
1818 * final.c (final): Likewise.
1819 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1820 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1821 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1822 * lcm.c (compute_antinout_edge): Likewise.
1823 * mode-switching.c (optimize_mode_switching): Likewise.
1824 * postreload.c (reload_combine): Likewise.
1825 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1826 * tree-ssa-live.c (live_worklist): Likewise.
1827
1828 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1829
1830 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1831
1832 * asan.c (transform_statements, execute_sanopt): Eliminate
1833 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1834 explicit.
1835 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1836 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1837 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1838 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1839 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1840 duplicate_computed_gotos): Likewise.
1841 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1842 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1843 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1844 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1845 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1846 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1847 Likewise.
1848 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1849 verify_loop_structure): Likewise.
1850 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1851 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1852 verify_hot_cold_block_grouping, purge_all_dead_edges,
1853 fixup_abnormal_edges, record_effective_endpoints,
1854 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1855 break_superblocks): Likewise.
1856 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1857 cgraph_rebuild_references): Likewise.
1858 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1859 * combine.c (delete_noop_moves, create_log_links,
1860 combine_instructions): Likewise.
1861 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1862 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1863 Likewise.
1864 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1865 c6x_reorg): Likewise.
1866 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1867 * config/frv/frv.c (frv_optimize_membar): Likewise.
1868 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1869 * config/ia64/ia64.c (ia64_reorg): Likewise.
1870 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1871 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1872 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1873 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1874 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1875 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1876 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1877 reorder_var_tracking_notes): Likewise.
1878 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1879 reorder_var_tracking_notes): Likewise.
1880 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1881 * cprop.c (compute_hash_table_work, compute_cprop_data,
1882 local_cprop_pass, find_implicit_sets): Likewise.
1883 * cse.c (cse_condition_code_reg): Likewise.
1884 * dce.c (prescan_insns_for_dce): Likewise.
1885 * df-core.c (df_compact_blocks): Likewise.
1886 * df-problems.c (df_word_lr_alloc): Likewise.
1887 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1888 df_update_entry_exit_and_calls): Likewise.
1889 * dominance.c (calculate_dominance_info, verify_dominators,
1890 debug_dominance_info): Likewise.
1891 * dse.c (dse_step5_nospill): Likewise.
1892 * except.c (finish_eh_generation): Likewise.
1893 * final.c (compute_alignments): Likewise.
1894 * function.c (thread_prologue_and_epilogue_insns,
1895 rest_of_match_asm_constraints): Likewise.
1896 * gcse.c (compute_hash_table_work, prune_expressions,
1897 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1898 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1899 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1900 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1901 find_explicit_erroneous_behaviour): Likewise.
1902 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1903 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1904 * haifa-sched.c (haifa_sched_init): Likewise.
1905 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1906 Likewise.
1907 * ifcvt.c (if_convert): Likewise.
1908 * init-regs.c (initialize_uninitialized_regs): Likewise.
1909 * ipa-prop.c (ipcp_transform_function): Likewise.
1910 * ipa-pure-const.c (analyze_function): Likewise.
1911 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1912 * ira-build.c (form_loop_tree): Likewise.
1913 * ira-costs.c (find_costs_and_classes): Likewise.
1914 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1915 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1916 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1917 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1918 * jump.c (mark_all_labels): Likewise.
1919 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1920 compute_nearerout, compute_rev_insert_delete): Likewise.
1921 * loop-init.c (fix_loop_structure): Likewise.
1922 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1923 * lower-subreg.c (decompose_multiword_subregs,
1924 decompose_multiword_subregs): Likewise.
1925 * lra-assigns.c (assign_by_spills): Likewise.
1926 * lra-coalesce.c (lra_coalesce): Likewise.
1927 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1928 Likewise.
1929 * lra-eliminations.c (lra_init_elimination): Likewise.
1930 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1931 lra_final_code_change): Likewise.
1932 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1933 update_inc_notes): Likewise.
1934 * mcf.c (adjust_cfg_counts): Likewise.
1935 * mode-switching.c (optimize_mode_switching): Likewise.
1936 * modulo-sched.c (rest_of_handle_sms): Likewise.
1937 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1938 expand_omp_target): Likewise.
1939 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1940 * postreload.c (reload_cse_regs_1): Likewise.
1941 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1942 tree_estimate_probability, expensive_function_p,
1943 estimate_bb_frequencies, compute_function_frequency): Likewise.
1944 * profile.c (is_inconsistent, compute_branch_probabilities,
1945 branch_prob): Likewise.
1946 * ree.c (find_removable_extensions): Likewise.
1947 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1948 * regcprop.c (copyprop_hardreg_forward): Likewise.
1949 * reginfo.c (init_subregs_of_mode): Likewise.
1950 * regrename.c (regrename_analyze): Likewise.
1951 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1952 Likewise.
1953 * reload1.c (has_nonexceptional_receiver, reload,
1954 calculate_elim_costs_all_insns): Likewise.
1955 * resource.c (init_resource_info, free_resource_info): Likewise.
1956 * sched-ebb.c (schedule_ebbs): Likewise.
1957 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1958 haifa_find_rgns, sched_rgn_local_init): Likewise.
1959 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1960 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1961 make_regions_from_the_rest): Likewise.
1962 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1963 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1964 * store-motion.c (compute_store_table, build_store_vectors,
1965 one_store_motion_pass): Likewise.
1966 * tracer.c (tail_duplicate): Likewise.
1967 * trans-mem.c (compute_transaction_bits): Likewise.
1968 * tree-call-cdce.c (tree_call_cdce): Likewise.
1969 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1970 fold_cond_expr_cond, make_edges, assign_discriminators,
1971 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1972 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1973 execute_fixup_cfg): Likewise.
1974 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1975 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1976 Likewise.
1977 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1978 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1979 mark_reachable_handlers): Likewise.
1980 * tree-emutls.c (lower_emutls_function_body): Likewise.
1981 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1982 * tree-inline.c (optimize_inline_calls): Likewise.
1983 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1984 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1985 * tree-object-size.c (compute_object_sizes): Likewise.
1986 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1987 insert_backedge_copies, tree_profiling): Likewise.
1988 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1989 * tree-sra.c (scan_function, sra_modify_function_body,
1990 propagate_dereference_distances, ipa_sra_modify_function_body,
1991 convert_callers): Likewise.
1992 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1993 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1994 create_outofssa_var_map, coalesce_partitions): Likewise.
1995 * tree-ssa-copy.c (init_copy_prop): Likewise.
1996 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1997 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1998 eliminate_unnecessary_stmts): Likewise.
1999 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
2000 Likewise.
2001 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2002 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
2003 new_tree_live_info, calculate_live_on_exit, dump_live_info,
2004 analyze_memory_references, fill_always_executed_in,
2005 tree_ssa_lim_finalize): Likewise.
2006 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2007 Likewise.
2008 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2009 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2010 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2011 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2012 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2013 Likewise.
2014 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2015 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2016 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2017 tree_ssa_uncprop): Likewise.
2018 * tree-ssa-uninit.c (warn_uninitialized_vars,
2019 execute_late_warn_uninitialized): Likewise.
2020 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2021 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2022 Likewise.
2023 * tree-switch-conversion.c (do_switchconv): Likewise.
2024 * tree-vect-generic.c (expand_vector_operations): Likewise.
2025 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2026 execute_vect_slp): Likewise.
2027 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2028 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2029 Likewise.
2030 * ubsan.c (ubsan_pass): Likewise.
2031 * value-prof.c (verify_histograms,
2032 gimple_value_profile_transformations, gimple_find_values_to_profile):
2033 Likewise.
2034 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2035 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2036
2037 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2038
2039 * basic-block.h (last_basic_block): Eliminate macro.
2040
2041 * asan.c (transform_statements): Eliminate use of last_basic_block
2042 in favor of last_basic_block_for_fn, in order to make use of cfun
2043 explicit.
2044 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2045 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2046 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2047 * cfg.c (compact_blocks): Likewise.
2048 * cfganal.c (mark_dfs_back_edges,
2049 control_dependences::control_dependences, post_order_compute,
2050 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2051 single_pred_before_succ_order): Likewise.
2052 * cfgbuild.c (make_edges): Likewise.
2053 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2054 * cfghooks.c (verify_flow_info): Likewise.
2055 * cfgloop.c (verify_loop_structure): Likewise.
2056 * cfgloopanal.c (just_once_each_iteration_p,
2057 mark_irreducible_loops): Likewise.
2058 * cfgloopmanip.c (fix_bb_placements, remove_path,
2059 update_dominators_in_loop): Likewise.
2060 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2061 break_superblocks, rtl_flow_call_edges_add): Likewise.
2062 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2063 * config/frv/frv.c (frv_optimize_membar): Likewise.
2064 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2065 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2066 * cprop.c (compute_local_properties, find_implicit_sets,
2067 bypass_conditional_jumps, one_cprop_pass): Likewise.
2068 * cse.c (cse_main): Likewise.
2069 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2070 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2071 * df-problems.c (df_lr_verify_solution_start,
2072 df_live_verify_solution_start, df_md_local_compute): Likewise.
2073 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2074 calc_idoms): Likewise.
2075 * domwalk.c (dom_walker::walk): Likewise.
2076 * dse.c (dse_step0, dse_step3): Likewise.
2077 * function.c (epilogue_done): Likewise.
2078 * gcse.c (alloc_gcse_mem, compute_local_properties,
2079 prune_insertions_deletions, compute_pre_data,
2080 pre_expr_reaches_here_p, one_pre_gcse_pass,
2081 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2082 one_code_hoisting_pass): Likewise.
2083 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2084 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2085 * haifa-sched.c (unlink_bb_notes): Likewise.
2086 * ipa-split.c (execute_split_functions): Likewise.
2087 * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2088 Likewise.
2089 * ira-emit.c (ira_emit): Likewise.
2090 * ira.c (find_moveable_pseudos, ira): Likewise.
2091 * lcm.c (compute_antinout_edge, compute_laterin,
2092 compute_insert_delete, pre_edge_lcm, compute_available,
2093 compute_nearerout, compute_rev_insert_delete,
2094 pre_edge_rev_lcm): Likewise.
2095 * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2096 Likewise.
2097 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2098 * lra-lives.c (lra_create_live_ranges): Likewise.
2099 * lra.c (lra): Likewise.
2100 * mode-switching.c (optimize_mode_switching): Likewise.
2101 * recog.c (split_all_insns): Likewise.
2102 * regcprop.c (copyprop_hardreg_forward): Likewise.
2103 * regrename.c (regrename_analyze): Likewise.
2104 * reload1.c (reload): Likewise.
2105 * resource.c (init_resource_info): Likewise.
2106 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2107 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2108 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2109 recompute_rev_top_order, sel_init_pipelining,
2110 make_regions_from_the_rest): Likewise.
2111 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2112 Likewise.
2113 * tracer.c (tail_duplicate): Likewise.
2114 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2115 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2116 gimple_flow_call_edges_add): Likewise.
2117 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2118 cleanup_tree_cfg_1): Likewise.
2119 * tree-complex.c (tree_lower_complex): Likewise.
2120 * tree-inline.c (copy_cfg_body): Likewise.
2121 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2122 prepare_def_site_for, update_ssa): Likewise.
2123 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2124 * tree-ssa-dom.c (record_edge_info): Likewise.
2125 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2126 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2127 * tree-ssa-loop-manip.c (copy_phi_node_args
2128 gimple_duplicate_loop_to_header_edge): Likewise.
2129 * tree-ssa-pre.c (compute_antic): Likewise.
2130 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2131 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2132 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2133 * tree-ssa-tail-merge.c (init_worklist): Likewise.
2134 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2135 * tree-stdarg.c (reachable_at_most_once): Likewise.
2136 * tree-vrp.c (find_assert_locations): Likewise.
2137 * var-tracking.c (vt_find_locations): Likewise.
2138
2139 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2140
2141 * basic-block.h (profile_status): Eliminate macro.
2142
2143 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2144 profile_status macro in favor of profile_status_for_fn, making
2145 use of cfun explicit.
2146 * cfghooks.c (account_profile_record): Likewise.
2147 * cfgloopanal.c (single_likely_exit):
2148 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2149 * graphite.c (graphite_finalize):
2150 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2151 ubsan_expand_si_overflow_neg_check,
2152 ubsan_expand_si_overflow_mul_check): Likewise.
2153 * ipa-split.c (consider_split, execute_split_functions):
2154 * loop-unroll.c (decide_peel_simple):
2155 * optabs.c (emit_cmp_and_jump_insn_1):
2156 * predict.c (maybe_hot_edge_p, probably_never_executed,
2157 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2158 tree_estimate_probability_driver, estimate_bb_frequencies,
2159 compute_function_frequency, rebuild_frequencies): Likewise.
2160 * profile.c (compute_branch_probabilities): Likewise.
2161 * tree-cfg.c (gimple_account_profile_record): Likewise.
2162 * tree-inline.c (optimize_inline_calls): Likewise.
2163
2164 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2165
2166 * basic-block.h (label_to_block_map): Eliminate macro.
2167
2168 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2169 uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2170 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2171 (verify_gimple_label): Likewise.
2172
2173 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2174
2175 * basic-block.h (basic_block_info): Eliminate macro.
2176
2177 * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2178 with basic_block_info_for_fn, making uses of cfun be explicit.
2179 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2180
2181 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2182
2183 * basic-block.h (BASIC_BLOCK): Eliminate macro.
2184
2185 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2186 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2187 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2188 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2189 * caller-save.c (insert_one_insn): Likewise.
2190 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2191 * cfgexpand.c (add_scope_conflicts): Likewise.
2192 * cfghooks.c (verify_flow_info): Likewise.
2193 * cfgloop.c (flow_loops_find): Likewise.
2194 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2195 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2196 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2197 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2198 * cse.c (cse_main): Likewise.
2199 * dce.c (fast_dce): Likewise.
2200 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2201 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2202 df_bb_replace, df_dump_region): Likewise.
2203 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2204 df_live_bb_local_compute, df_chain_remove_problem)
2205 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2206 df_md_bb_local_compute, df_md_local_compute,
2207 df_md_transfer_function): Likewise.
2208 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2209 df_reorganize_refs_by_insn, df_bb_refs_collect,
2210 df_record_entry_block_defs, df_update_entry_block_defs,
2211 df_record_exit_block_uses): Likewise.
2212 * dominance.c (nearest_common_dominator_for_set): Likewise.
2213 * gcse.c (hoist_code): Likewise.
2214 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2215 * ipa-inline-analysis.c (param_change_prob,
2216 estimate_function_body_sizes): Likewise.
2217 * ipa-split.c (dominated_by_forbidden): Likewise.
2218 * loop-unroll.c (apply_opt_in_copies): Likewise.
2219 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2220 * lra-lives.c (lra_create_live_ranges): Likewise.
2221 * predict.c (propagate_freq): Likewise.
2222 * regrename.c (regrename_analyze): Likewise.
2223 * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2224 Likewise.
2225 * resource.c (mark_target_live_regs): Likewise.
2226 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2227 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2228 * sched-rgn.c (debug_region, dump_region_dot, too_large,
2229 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2230 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2231 * sched-vis.c (debug_bb_n_slim): Likewise.
2232 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2233 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2234 * sel-sched.c (remove_insns_that_need_bookkeeping)
2235 (current_region_empty_p, sel_region_init, simplify_changed_insns):
2236 Likewise.
2237 * trans-mem.c (execute_tm_mark, execute_tm_edges,
2238 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2239 * tree-cfg.c (make_edges, end_recording_case_labels,
2240 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2241 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2242 gimple_purge_all_dead_eh_edges,
2243 gimple_purge_all_dead_abnormal_call_edges): Likewise.
2244 * tree-cfgcleanup.c (fixup_noreturn_call,
2245 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2246 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2247 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2248 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2249 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2250 * tree-ssa-live.c (live_worklist): Likewise.
2251 * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2252 find_uses_to_rename, copy_phi_node_args): Likewise.
2253 * tree-ssa-pre.c (compute_antic): Likewise.
2254 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2255 Likewise.
2256 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2257 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2258 same_succ_flush_bbs, update_worklist, set_cluster,
2259 same_phi_alternatives, find_clusters_1, apply_clusters,
2260 update_debug_stmts): Likewise.
2261 * tree-ssa-threadupdate.c (mark_threaded_blocks,
2262 thread_through_all_blocks): Likewise.
2263 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2264 * tree-vrp.c (find_assert_locations): Likewise.
2265
2266 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2267
2268 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2269
2270 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2271 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2272 (expunge_block): Likewise.
2273 * cfgrtl.c (create_basic_block_structure): Likewise.
2274 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2275 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2276 * tree-cfg.c (create_bb): Likewise.
2277
2278 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2279
2280 * basic-block.h (profile_status_for_function): Rename to...
2281 (profile_status_for_fn): ...this.
2282
2283 * cfg.c (check_bb_profile): Update for renaming.
2284 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2285 * lto-streamer-in.c (input_cfg): Likewise.
2286 * lto-streamer-out.c (output_cfg): Likewise.
2287 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2288 maybe_hot_bb_p, probably_never_executed)
2289 (handle_missing_profiles): Likewise.
2290 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2291 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2292
2293 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2294
2295 * basic-block.h (label_to_block_map_for_function): Rename to...
2296 (label_to_block_map_for_fn): ...this.
2297
2298 * lto-streamer-in.c (input_cfg): Update for renaming.
2299 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2300
2301 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2302
2303 * basic-block.h (last_basic_block_for_function): Rename to...
2304 (last_basic_block_for_fn): ...this.
2305
2306 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2307 last_basic_block_for_function to last_basic_block_for_fn.
2308 * lto-streamer-in.c (input_cfg): Likewise.
2309 * lto-streamer-out.c (output_cfg): Likewise.
2310 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2311 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2312 Likewise.
2313
2314 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2315
2316 * basic-block.h (basic_block_info_for_function): Rename to...
2317 (basic_block_info_for_fn): ...this.
2318 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2319 (BASIC_BLOCK_FOR_FN): ...this.
2320 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2321 (SET_BASIC_BLOCK_FOR_FN): ...this.
2322
2323 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2324 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2325 * ipa-utils.c (ipa_merge_profiles): Likewise.
2326 * lto-streamer-in.c (make_new_block): Update for renaming of
2327 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2328 (input_cfg): Update for renamings.
2329 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2330 (dump_function_to_file): Update for renaming of
2331 basic_block_info_for_function to basic_block_info_for_fn.
2332
2333 2013-12-09 Richard Biener <rguenther@suse.de>
2334
2335 PR middle-end/38474
2336 * tree-ssa-structalias.c (set_union_with_increment): Remove
2337 unreachable code.
2338 (do_complex_constraint): Call set_union_with_increment with
2339 the solution delta, not the full solution.
2340 (make_transitive_closure_constraints): Merge the two constraints.
2341
2342 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
2343
2344 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
2345 more address validation checks.
2346
2347 2013-12-09 Marek Polacek <polacek@redhat.com>
2348
2349 PR sanitizer/59415
2350 * vtable-verify.c (verify_bb_vtables): Check the return value
2351 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
2352
2353 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2354
2355 * config/arm/arm.md (generic_sched): Add cortexa12.
2356 (generic_vfp): Likewise.
2357 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2358 (arm_cortex_a12_tune): New tuning struct.
2359 * config/arm/arm-cores.def: Add cortex-a12.
2360 * config/arm/arm-tables.opt: Regenerate.
2361 * config/arm/arm-tune.md: Likewise.
2362 * config/arm/bpabi.h: Add cortex-a12.
2363 * doc/invoke.texi: Document -mcpu=cortex-a12.
2364
2365 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2366
2367 * doc/install.texi (Prerequisites): Explicitly mention C library
2368 and its headers for multilib builds.
2369
2370 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
2371
2372 PR target/52898
2373 PR target/51697
2374 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2375 OPT_mcbranchdi entry.
2376 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2377 emit a warning.
2378 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2379 and TARGET_CMPEQDI_T variables.
2380 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2381
2382 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2383
2384 * config/linux.h: Fix typo in a comment.
2385
2386 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2387
2388 * config.gcc (*linux*): Split libc selection from Android support.
2389 Add libc selection to all *linux* targets. Add Android support to
2390 architectures that support it.
2391 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2392 (mips*-*-linux*): Add Android support.
2393
2394 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
2395 Maxim Kuvyrkov <maxim@kugelworks.com>
2396
2397 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2398 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2399 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2400 to linux.h.
2401 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2402 to linux.h.
2403 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2404 Define appropriately for Linux and uClinux targets.
2405
2406 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2407
2408 * config/linux.c (linux_has_ifunc_p): Use correct test.
2409
2410 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2411
2412 * config/linux.c (linux_android_has_ifunc_p): Rename to
2413 linux_has_ifunc_p.
2414 (linux_android_libc_has_function): Rename to linux_libc_has_function.
2415 * config/linux-protos.h (linux_android_has_ifunc_p,)
2416 (linux_android_libc_has_function): Update declarations.
2417 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2418 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2419
2420 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2421
2422 * linux-android.c: Rename to linux.c.
2423 * t-linux-android: Rename to t-linux. Update references
2424 to linux-android.c
2425 * config.gcc: Update references to t-linux-android and linux-android.o.
2426
2427 2013-12-07 Alan Modra <amodra@gmail.com>
2428
2429 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2430 alternative.
2431
2432 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2433
2434 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2435
2436 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
2437
2438 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2439 constraint.
2440
2441 2013-12-06 Caroline Tice <cmtice@google.com>
2442
2443 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2444 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2445 vtable pointer with the results of the verification call, rather than
2446 only the uses in the next statement.
2447
2448 2013-12-06 Andrew Pinski <apinski@cavium.com>
2449
2450 PR target/59092
2451 * config/aarch64/aarch64.md (trap): New pattern.
2452
2453 2013-12-06 Jakub Jelinek <jakub@redhat.com>
2454
2455 PR tree-optimization/59388
2456 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2457 gimplify tem after stmt rather than before it.
2458
2459 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2460 (get_references_in_stmt): Don't record operand addresses, but
2461 operands themselves.
2462 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2463 Adjust for the pos -> ref change.
2464
2465 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2466
2467 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2468
2469 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2470 (processor_alias_table): Likewise.
2471 (ix86_option_override_internal): Likewise.
2472 * config/i386/i386.h (target_cpu_default): Replace
2473 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2474
2475 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2476
2477 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2478
2479 PR target/59405
2480 * config/i386/i386.c (type_natural_mode): Properly handle
2481 size 8 for !TARGET_64BIT.
2482
2483 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2484
2485 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2486 vec::release.
2487
2488 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2489 Mark Mitchell <mark@codesourcery.com>
2490
2491 PR target/59091
2492 * config/arm/arm.md (trap): New pattern.
2493 * config/arm/types.md: Added a type for trap.
2494
2495 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2496
2497 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2498
2499 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2500
2501 PR target/59316
2502 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2503 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2504 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2505 (TARGET_BUILTIN_DECL): Define.
2506 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2507 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2508 (enum sparc_builtins): New enumeral type.
2509 (sparc_builtins): New static array.
2510 (sparc_builtins_icode): Likewise.
2511 (def_builtin): Accept a separate icode and save the result.
2512 (def_builtin_const): Likewise.
2513 (sparc_fpu_init_builtins): New function.
2514 (sparc_vis_init_builtins): Pass the builtin code.
2515 (sparc_init_builtins): Call it if TARGET_FPU.
2516 (sparc_builtin_decl): New function.
2517 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2518 (sparc_handle_vis_mul8x16): Use the builtin code.
2519 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2520 and SPARC_BUILTIN_PDISTN.
2521 (compound_expr): New helper function.
2522 (sparc_atomic_assign_expand_fenv): New function.
2523 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2524 and UNSPECV_STFSR.
2525 (flush, flushdi): Merge into single pattern.
2526 (ldfsr): New instruction.
2527 (stfsr): Likewise.
2528
2529 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2530
2531 * asan.c: Remove struct tags when referring to class varpool_node.
2532 * cgraph.h: Likewise.
2533 * cgraphbuild.c: Likewise.
2534 * cgraphunit.c: Likewise.
2535 * dbxout.c: Likewise.
2536 * dwarf2out.c: Likewise.
2537 * gimple-fold.c: Likewise.
2538 * ipa-devirt.c: Likewise.
2539 * ipa-ref-inline.h: Likewise.
2540 * ipa-ref.h: Likewise.
2541 * ipa-reference.c: Likewise.
2542 * ipa-utils.c: Likewise.
2543 * ipa.c: Likewise.
2544 * lto-cgraph.c: Likewise.
2545 * lto-streamer-out.c: Likewise.
2546 * lto-streamer.h: Likewise.
2547 * passes.c: Likewise.
2548 * toplev.c: Likewise.
2549 * tree-eh.c: Likewise.
2550 * tree-emutls.c: Likewise.
2551 * tree-pass.h: Likewise.
2552 * tree-ssa-structalias.c: Likewise.
2553 * tree-vectorizer.c: Likewise.
2554 * tree.c: Likewise.
2555 * varasm.c: Likewise.
2556 * varpool.c: Likewise.
2557
2558 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2559
2560 * cgraphunit.c: Remove struct tags when referring to class
2561 ipa_opt_pass_d or class opt_pass.
2562 * function.h: Likewise.
2563 * lto-cgraph.c: Likewise.
2564 * pass_manager.h: Likewise.
2565 * passes.c: Likewise.
2566 * tree-pass.h: Likewise.
2567
2568 2013-12-06 Richard Biener <rguenther@suse.de>
2569
2570 PR tree-optimization/59058
2571 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2572 (LOOP_VINFO_NITERSM1): New macro.
2573 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2574 the vector loop entry test in terms of scalar latch executions.
2575 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2576 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2577 number of latch executions.
2578 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2579 (vect_analyze_loop_form): Likewise.
2580 (vect_generate_tmps_on_preheader): Compute the number of
2581 vectorized iterations differently.
2582
2583 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2584
2585 * config/score/score.c (score_force_temporary): Delete function.
2586 (score_split_symbol): Ditto.
2587 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2588 parentheses to silence ambiguity warning and reindent.
2589
2590 2013-12-05 Marek Polacek <polacek@redhat.com>
2591
2592 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2593
2594 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2595
2596 * config.gcc: Support --with-cpu=ia.
2597
2598 * config/i386/i386.c (cpu_names): Add "ia".
2599 (processor_alias_table): Likewise.
2600 (ix86_option_override_internal): Disallow -march=ia.
2601 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2602
2603 * doc/invoke.texi: Document -mtune=ia.
2604
2605 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2606
2607 PR rtl-optimization/59317
2608 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2609 as a source.
2610
2611 2013-12-05 Martin Jambor <mjambor@suse.cz>
2612
2613 PR ipa/58253
2614 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2615 non-BLKmode in their naturally aligned type.
2616
2617 2013-12-05 Marek Polacek <polacek@redhat.com>
2618
2619 PR sanitizer/59333
2620 PR sanitizer/59397
2621 * ubsan.c: Include rtl.h and expr.h.
2622 (ubsan_encode_value): Add new parameter. If expanding, assign
2623 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2624 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2625 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2626 * ubsan.h (ubsan_encode_value): Adjust declaration.
2627 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2628 ubsan_build_overflow_builtin above expand_normal call. Surround
2629 this call with push_temp_slots and pop_temp_slots.
2630 (ubsan_expand_si_overflow_neg_check): Likewise.
2631 (ubsan_expand_si_overflow_mul_check): Likewise.
2632
2633 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2634
2635 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2636 the get_alternative_base call with flag_expensive_optimizations.
2637 (alloc_cand_and_find_basis): Likewise.
2638
2639 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2640
2641 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2642 vec_select for overlapping register lanes.
2643
2644 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2645
2646 * config/i386/i386.c (ix86_expand_builtin): Generate
2647 reg for readflags built-in when optimizing.
2648 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2649 (pushfl<mode>2): This. Fix iterator.
2650 (*popfl<mode>): Rename to ...
2651 (*popfl<mode>1): This. Fix iterator.
2652
2653 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2654
2655 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2656 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2657 (ix86_init_mmx_sse_builtins): Define
2658 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2659 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2660 (ix86_expand_builtin): Expand them.
2661 * config/i386/ia32intrin.h (__readeflags): New.
2662 (__writeeflags): Ditto.
2663 * config/i386/i386.md (*pushfl<mode>): Ditto.
2664 (*popfl<mode>1): Ditto.
2665
2666 2013-12-05 Richard Biener <rguenther@suse.de>
2667
2668 PR tree-optimization/59374
2669 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2670 Commonize known and unknown dependence case fixing the allowed
2671 read-write dependence case and dropping code that should not matter.
2672
2673 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2674
2675 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2676 generation of predicated version.
2677 (epilogue_deallocate_stack): Ditto.
2678 (prologue_allocate_stack_pr): Add explicit predicated version.
2679 (epilogue_deallocate_stack_pr): Ditto.
2680 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2681
2682 2013-12-05 Alan Modra <amodra@gmail.com>
2683
2684 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2685 build != host.
2686 <recursive call for build != host>: Clear GMPINC. Don't bother
2687 saving CFLAGS.
2688
2689 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2690 Marek Polacek <polacek@redhat.com>
2691
2692 * opts.c (common_handle_option): Handle
2693 -fsanitize=signed-integer-overflow.
2694 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2695 negv<mode>3, negv<mode>3_1): Define expands.
2696 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2697 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2698 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2699 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2700 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2701 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2702 PROB_ALWAYS): Define.
2703 (ubsan_build_overflow_builtin): Declare.
2704 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2705 internal functions.
2706 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2707 (ubsan_build_overflow_builtin): New function.
2708 (instrument_si_overflow): Likewise.
2709 (ubsan_pass): Add signed integer overflow checking.
2710 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2711 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2712 * internal-fn.c: Include ubsan.h and target.h.
2713 (ubsan_expand_si_overflow_addsub_check): New function.
2714 (ubsan_expand_si_overflow_neg_check): Likewise.
2715 (ubsan_expand_si_overflow_mul_check): Likewise.
2716 (expand_UBSAN_CHECK_ADD): Likewise.
2717 (expand_UBSAN_CHECK_SUB): Likewise.
2718 (expand_UBSAN_CHECK_MUL): Likewise.
2719 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2720 (-A) + B -> B - A when doing the signed integer overflow checking.
2721 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2722 Define.
2723 * tree-vrp.c (extract_range_basic): Handle internal calls.
2724 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2725 optabs.
2726 * asan.c: Include predict.h.
2727 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2728 * predict.c: Move the PROB_* macros...
2729 * predict.h (enum br_predictor): ...here.
2730 (PROB_LIKELY, PROB_UNLIKELY): Define.
2731 * trans-mem.c: Include predict.h.
2732 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2733 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2734
2735 2013-12-04 Jeff Law <law@redhat.com>
2736
2737 * common.opt: Split up -fisolate-erroneous-paths into
2738 -fisolate-erroneous-paths-dereference and
2739 -fisolate-erroneous-paths-attribute.
2740 * invoke.texi: Corresponding changes.
2741 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2742 what kind of statements can be used to infer a non-null range.
2743 * gimple.h (infer_nonnull_range): Update prototype.
2744 * tree-vrp.c (infer_value_range): Corresponding changes.
2745 * opts.c (default_options_table): Update due to option split.
2746 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2747 (find_implicit_erroneous_behaviour): Pass additional arguments
2748 to infer_nonnull_range.
2749 (find_explicit_erroneous_behaviour): Similarly.
2750 (gate_isolate_erroneous_paths): Check both of the new options.
2751
2752 2013-12-04 Jeff Law <law@redhat.com>
2753
2754 * expr.c (expand_assignment): Update comments.
2755
2756 2013-12-04 Tobias Burnus <burnus@net-b.de>
2757
2758 PR debug/37132
2759 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2760 * tree.def (NAMELIST_DECL): Add.
2761 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2762 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2763 * dwarf2out.c (gen_namelist_decl): New function.
2764 (gen_decl_die, dwarf2out_decl): Call it.
2765 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2766 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2767 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2768 call.
2769 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2770
2771 2013-12-03 Xinliang David Li <davidxl@google.com>
2772
2773 * tree-ssa-structalias.c (constraint_set_union): Change return type
2774 from void to bool.
2775 (merge_node_constraints): Ditto.
2776 (unify_nodes): Update changed set when constraints set changes.
2777
2778 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2779
2780 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2781 -fsanitize=address.
2782 * configure: Regenerated.
2783
2784 * gdbasan.in: New file.
2785
2786 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2787
2788 PR rtl-optimization/58726
2789 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2790 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2791
2792 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2793 Uros Bizjak <ubizjak@gmail.com>
2794
2795 PR target/59163
2796 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2797 !TARGET_AVX there is misaligned MEM operand with vector mode
2798 and get_attr_ssememalign is 0, return false.
2799 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2800 computed alignment and for non-temporal loads/stores also
2801 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2802 * config/i386/sse.md
2803 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2804 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2805 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2806 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2807 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2808 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2809 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2810 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2811 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2812 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2813 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2814 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2815 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2816 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2817 * config/i386/i386.md (ssememalign): New define_attr.
2818
2819 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2820
2821 PR tree-optimization/59355
2822 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2823 * opts.c (common_handle_option): Fix comment spelling.
2824
2825 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2826
2827 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2828 (name_expansions): New static variable.
2829 (alt_base_map): Ditto.
2830 (get_alternative_base): New function.
2831 (find_basis_for_candidate): For CAND_REF, optionally call
2832 find_basis_for_base_expr with the returned value from
2833 get_alternative_base.
2834 (record_potential_basis): Add new parameter 'base' of type 'tree';
2835 add an assertion of non-NULL base; use base to set node->base_expr.
2836 (alloc_cand_and_find_basis): Update; call record_potential_basis
2837 for CAND_REF with the returned value from get_alternative_base.
2838 (replace_refs): Dump details on the replacing.
2839 (execute_strength_reduction): Call pointer_map_create for
2840 alt_base_map; call free_affine_expand_cache with &name_expansions.
2841
2842 2013-12-03 Wei Mi <wmi@google.com>
2843
2844 PR rtl-optimization/59020
2845 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2846 (sched_analyze_insn): Call try_group_insn.
2847 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2848 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2849 (group_insns_for_macro_fusion): Removed.
2850 (sched_init): Remove calling group_insns_for_macro_fusion.
2851
2852 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2853
2854 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2855 typo in macro name.
2856 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2857
2858 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2859
2860 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2861 LR_REGNUM.
2862 (aarch64_can_eliminate): Don't check elimination source when
2863 frame_pointer_required is false.
2864
2865 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2866
2867 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2868 position independent code.
2869 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2870
2871 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2872
2873 PR target/59363
2874 * config/i386/i386.c (emit_memset): Adjust destination address
2875 after gen_strset.
2876 (expand_setmem_epilogue): Likewise.
2877
2878 2013-12-03 Marek Polacek <polacek@redhat.com>
2879
2880 PR middle-end/56344
2881 * calls.c (expand_call): Disallow passing huge arguments by value.
2882
2883 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2884
2885 PR tree-optimization/59362
2886 * tree-object-size.c (object_sizes): Change into array of
2887 vec<unsigned HOST_WIDE_INT>.
2888 (compute_builtin_object_size): Check computed bitmap for
2889 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2890 vector if new SSA_NAMEs appeared.
2891 (init_object_sizes): Check computed bitmap for non-NULL.
2892 Call safe_grow on object_sizes elements instead of initializing
2893 it with XNEWVEC.
2894 (fini_object_sizes): Call release on object_sizes elements, don't
2895 set it to NULL.
2896
2897 PR middle-end/59011
2898 * gimplify.c (nonlocal_vla_vars): New variable.
2899 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2900 nonlocal_vla_vars chain.
2901 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2902 if outer_bind has DECL_INITIAL (current_function_decl) block.
2903
2904 PR target/58864
2905 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2906 New functions.
2907 * expr.h (struct saved_pending_stack_adjust): New type.
2908 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2909 prototypes.
2910 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2911 and get_last_insn before do_pending_stack_adjust, call
2912 restore_pending_stack_adjust after delete_insns_since.
2913 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2914 before calling emit_conditional_move.
2915 * expmed.c (expand_sdiv_pow2): Likewise.
2916 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2917
2918 2013-12-02 Jeff Law <law@redhat.com>
2919
2920 PR tree-optimization/59322
2921 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2922 Remove code which copied jump threading paths.
2923
2924 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2925
2926 PR target/58944
2927 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2928 for saving in cl_target_option.
2929 (ix86_tune_string): Ditto.
2930 (ix86_cmodel): Ditto.
2931 (ix86_abi): Ditto.
2932 (ix86_asm_dialect): Ditto.
2933 (ix86_branch_cost): Ditto.
2934 (ix86_dump_tunes): Ditto.
2935 (ix86_force_align_arg_pointer): Ditto.
2936 (ix86_force_drap): Ditto.
2937 (ix86_incoming_stack_boundary_arg): Ditto.
2938 (ix86_pmode): Ditto.
2939 (ix86_preferred_stack_boundary_arg): Ditto.
2940 (ix86_recip_name): Ditto.
2941 (ix86_regparm): Ditto.
2942 (ix86_section_threshold): Ditto.
2943 (ix86_sse2avx): Ditto.
2944 (ix86_stack_protector_guard): Ditto.
2945 (ix86_stringop_alg): Ditto.
2946 (ix86_tls_dialect): Ditto.
2947 (ix86_tune_ctrl_string): Ditto.
2948 (ix86_tune_memcpy_strategy): Ditto.
2949 (ix86_tune_memset_strategy): Ditto.
2950 (ix86_tune_no_default): Ditto.
2951 (ix86_veclibabi_type): Ditto.
2952 * config/i386/i386.c (function_specific_save): Save the above
2953 variables in gcc_options to cl_target_option.
2954 (function_specific_restore): Do the reverse done in
2955 function_specific_save.
2956 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2957 and ix86_tune_string to use the opts structure.
2958 (ix86_option_override_internal):Change
2959 ix86_incoming_stack_boundary_arg to
2960 opts->x_ix86_incoming_stack_boundary_arg
2961
2962 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2963
2964 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2965 in #ifndef IN_LIBGCC2 / #endif.
2966
2967 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2968
2969 PR tree-optimization/59358
2970 * tree-vrp.c (union_ranges): To check for the partially overlapping
2971 ranges or adjacent ranges, also compare *vr0max with vr1max.
2972
2973 2013-12-02 Sterling Augustine  <saugustine@google.com>
2974
2975 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2976 when there isn't a skeleton die.
2977
2978 2013-12-02 Marek Polacek <polacek@redhat.com>
2979
2980 PR sanitizer/59353
2981 * doc/invoke.texi: Document -fsanitize=return.
2982
2983 2013-12-02 Tobias Burnus <burnus@net-b.de>
2984 Manuel López-Ibáñez <manu@gcc.gnu.org>
2985
2986 PR middle-end/59257
2987 * doc/invoke.texi: Add missing @opindex.
2988 (-fsanitize=): Use @gcctabopt instead of @itemize.
2989
2990 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2991
2992 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2993 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2994 targets like arm-none-eabi.
2995 * expr.c (expand_assignment): Handle normal fields like bit regions.
2996
2997 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2998
2999 PR target/58115
3000 * function.c (invoke_set_current_function_hook): Call
3001 targetm.set_current_function after setting this_fn_optabs.
3002
3003 2013-12-02 Richard Biener <rguenther@suse.de>
3004
3005 PR tree-optimization/59139
3006 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3007 code in get_val_for.
3008 (get_val_for): Use gcc_checking_asserts.
3009
3010 2013-12-02 Richard Biener <rguenther@suse.de>
3011
3012 PR middle-end/59199
3013 * tree-ssa-operands.c (opf_implicit): Remove.
3014 (opf_address_taken): New flag.
3015 (get_expr_operands): Remove early out, pass down opf_address_taken for
3016 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3017 (get_indirect_ref_operands): Rename to ...
3018 (get_mem_ref_operands): ... this.
3019 (get_asm_expr_operands): Rename to ...
3020 (get_asm_stmt_operands): ... this.
3021
3022 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3023
3024 * ipa-inline.c (check_callers): Add missed pointer de-reference.
3025
3026 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
3027
3028 PR tree-optimization/59356
3029 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3030 offset computation using the precision of the index type.
3031
3032 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
3033
3034 PR target/58785
3035 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3036 when rclass is GENERAL_REGS.
3037
3038 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3039
3040 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3041 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3042
3043 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
3044
3045 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3046 identifier node.
3047
3048 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3049
3050 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3051
3052 2013-11-30 Paulo Matos <pmatos@broadcom.com>
3053 Eric Botcazou <ebotcazou@adacore.com>
3054
3055 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3056 as applied to nonzero_sign_valid when last_set_mode has less precision
3057 than mode.
3058
3059 2013-11-30 Tobias Burnus <burnus@net-b.de>
3060
3061 PR sanitizer/59275
3062 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3063 environment variable and link to a list with flags.
3064 (-fsanitize=thread): Ditto and update link.
3065
3066 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
3067
3068 PR rtl-optimization/59340
3069 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3070
3071 Revert
3072 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3073
3074 * lra.c (lra): Set lra_in_progress before check_rtl call.
3075 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3076 adding clobber regs when LRA is running.
3077
3078 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3079
3080 PR target/59289
3081 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3082
3083 2013-11-29 Richard Biener <rguenther@suse.de>
3084
3085 PR middle-end/59208
3086 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3087 free_stmt_operands, update_stmt_operands): Add struct function
3088 argument.
3089 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3090 function argument from fini_ssa_operands, verify_ssa_operands,
3091 free_stmt_operands and update_stmt_operands everywhere.
3092 * tree-ssanames.h (release_ssa_name_fn): New.
3093 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3094 * tree-ssanames.c (release_ssa_name): Rename to ...
3095 (release_ssa_name_fn): ... this and add struct function argument.
3096 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3097 (update_stmt_fn): New function.
3098 * tree-cfg.c (move_block_to_fn): Adjust.
3099 * tree-if-conv.c (free_bb_predicate): Likewise.
3100 * tree-ssa.c (verify_ssa): Likewise.
3101 (delete_tree_ssa): Likewise.
3102 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3103 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3104 update_stmt_fn instead of update_stmt.
3105
3106 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3107
3108 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3109 for LRA.
3110
3111 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3112
3113 * config/arm/arm.md (store_minmaxsi): Use only when
3114 optimize_function_for_size_p.
3115
3116 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3117 Yury Gribov <y.gribov@samsung.com>
3118
3119 PR sanitizer/59063
3120 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3121 * gcc.c: Using libsanitizer spec instead of explicit libs.
3122
3123 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
3124
3125 Reverted:
3126 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3127 * cgraph.h (varpool_node): Add need_bounds_init field.
3128 * lto-cgraph.c (lto_output_varpool_node): Output
3129 need_bounds_init value.
3130 (input_varpool_node): Read need_bounds_init value.
3131 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3132
3133 Reverted:
3134 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3135 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3136 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3137 (gen_type_die_with_usage): Skip pointer bounds.
3138 (dwarf2out_global_decl): Likewise.
3139
3140 Reverted:
3141 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3142 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3143 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3144 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3145 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3146 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3147 (gimple_call_with_bounds_p): New.
3148 (gimple_call_set_with_bounds): New.
3149 (gimple_call_num_nobnd_args): Remove.
3150 (gimple_call_nobnd_arg): Remove.
3151 * tree.h (CALL_WITH_BOUNDS_P): New.
3152 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3153
3154 Reverted:
3155 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3156 * common.opt (fcheck-pointer-bounds): Move to ...
3157 * c-family/c.opt: ... here.
3158 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3159 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3160 * langhooks.h (lang_hooks): Remove chkp_supported field.
3161 * toplev.c (process_options): Remove chkp_supported check.
3162
3163 Reverted:
3164 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3165 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3166 * tree.h (POINTER_BOUNDS_P): New.
3167 (BOUNDED_TYPE_P): New.
3168 (BOUNDED_P): New.
3169 (pointer_bounds_type_node): New.
3170 * tree.c (build_common_tree_nodes): Initialize
3171 pointer_bounds_type_node.
3172 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3173 (gimple_call_num_nobnd_args): New.
3174 (gimple_call_nobnd_arg): New.
3175 (gimple_return_retbnd): New.
3176 (gimple_return_set_retbnd): New
3177 * gimple.c (gimple_build_return): Increase number of ops
3178 for return statement.
3179 (gimple_call_get_nobnd_arg_index): New.
3180 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3181
3182 Reverted:
3183 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3184 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3185 with "chkp ctor" and "bnd_legacy" attributes.
3186 * gimplify.c (gimplify_init_constructor): Avoid infinite
3187 loop during gimplification of bounds initializer.
3188
3189 Reverted:
3190 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3191 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3192 (handle_bnd_legacy): New.
3193 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3194 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3195 attributes.
3196
3197 Reverted:
3198 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3199 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3200 (BT_FN_PTR_CONST_PTR): New.
3201 (BT_FN_CONST_PTR_CONST_PTR): New.
3202 (BT_FN_PTR_CONST_PTR_SIZE): New.
3203 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3204 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3205 (BT_FN_VOID_CONST_PTR_SIZE): New.
3206 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3207 * chkp-builtins.def: New.
3208 * builtins.def: include chkp-builtins.def.
3209 (DEF_CHKP_BUILTIN): New.
3210 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3211 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3212 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3213 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3214 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3215 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3216 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3217 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3218 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3219 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3220 * common.opt (fcheck-pointer-bounds): New.
3221 * toplev.c (process_options): Check Pointer Bounds Checker is
3222 supported.
3223 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3224
3225 Reverted:
3226 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3227 * target.def (builtin_chkp_function): New.
3228 (chkp_bound_type): New.
3229 (chkp_bound_mode): New.
3230 (fn_abi_va_list_bounds_size): New.
3231 (load_bounds_for_arg): New.
3232 (store_bounds_for_arg): New.
3233 * targhooks.h (default_load_bounds_for_arg): New.
3234 (default_store_bounds_for_arg): New.
3235 (default_fn_abi_va_list_bounds_size): New.
3236 (default_chkp_bound_type): New.
3237 (default_chkp_bound_mode): New.
3238 (default_builtin_chkp_function): New.
3239 * targhooks.c (default_load_bounds_for_arg): New.
3240 (default_store_bounds_for_arg): New.
3241 (default_fn_abi_va_list_bounds_size): New.
3242 (default_chkp_bound_type): New.
3243 (default_chkp_bound_mode); New.
3244 (default_builtin_chkp_function): New.
3245 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3246 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3247 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3248 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3249 (TARGET_CHKP_BOUND_TYPE): New.
3250 (TARGET_CHKP_BOUND_MODE): New.
3251 * doc/tm.texi: Regenerated.
3252 * langhooks.h (lang_hooks): Add chkp_supported field.
3253 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3254 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3255
3256 Reverted:
3257 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3258 * config/i386/constraints.md (B): New.
3259 (Ti): New.
3260 (Tb): New.
3261 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3262 * config/i386/i386-modes.def (BND32): New.
3263 (BND64): New.
3264 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3265 * config/i386/i386.c (isa_opts): Add mmpx.
3266 (regclass_map): Add bound registers.
3267 (dbx_register_map): Likewise.
3268 (dbx64_register_map): Likewise.
3269 (svr4_dbx_register_map): Likewise.
3270 (PTA_MPX): New.
3271 (ix86_option_override_internal): Support MPX ISA.
3272 (ix86_conditional_register_usage): Support bound registers.
3273 (print_reg): Likewise.
3274 (ix86_code_end): Add MPX bnd prefix.
3275 (output_set_got): Likewise.
3276 (ix86_output_call_insn): Likewise.
3277 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3278 (ix86_print_operand_punct_valid_p): Likewise.
3279 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3280 UNSPEC_BNDMK_ADDR.
3281 (ix86_class_likely_spilled_p): Add bound regs support.
3282 (ix86_hard_regno_mode_ok): Likewise.
3283 (x86_order_regs_for_local_alloc): Likewise.
3284 (ix86_bnd_prefixed_insn_p): New.
3285 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3286 (FIXED_REGISTERS): Add bound registers.
3287 (CALL_USED_REGISTERS): Likewise.
3288 (REG_ALLOC_ORDER): Likewise.
3289 (HARD_REGNO_NREGS): Likewise.
3290 (TARGET_MPX): New.
3291 (VALID_BND_REG_MODE): New.
3292 (FIRST_BND_REG): New.
3293 (LAST_BND_REG): New.
3294 (reg_class): Add BND_REGS.
3295 (REG_CLASS_NAMES): Likewise.
3296 (REG_CLASS_CONTENTS): Likewise.
3297 (BND_REGNO_P): New.
3298 (ANY_BND_REG_P): New.
3299 (BNDmode): New.
3300 (HI_REGISTER_NAMES): Add bound registers.
3301 * config/i386/i386.md (UNSPEC_BNDMK): New.
3302 (UNSPEC_BNDMK_ADDR): New.
3303 (UNSPEC_BNDSTX): New.
3304 (UNSPEC_BNDLDX): New.
3305 (UNSPEC_BNDLDX_ADDR): New.
3306 (UNSPEC_BNDCL): New.
3307 (UNSPEC_BNDCU): New.
3308 (UNSPEC_BNDCN): New.
3309 (UNSPEC_MPX_FENCE): New.
3310 (BND0_REG): New.
3311 (BND1_REG): New.
3312 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3313 (length_immediate): Likewise.
3314 (prefix_0f): Likewise.
3315 (memory): Likewise.
3316 (prefix_rep): Check for bnd prefix.
3317 (length_nobnd): New.
3318 (length): Use length_nobnd if specified.
3319 (BND): New.
3320 (bnd_ptr): New.
3321 (BNDCHECK): New.
3322 (bndcheck): New.
3323 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3324 (*jcc_2): Likewise.
3325 (jump): Likewise.
3326 (simple_return_internal): Likewise.
3327 (simple_return_pop_internal): Likewise.
3328 (*indirect_jump): Add MPX bnd prefix.
3329 (*tablejump_1): Likewise.
3330 (simple_return_internal_long): Likewise.
3331 (simple_return_indirect_internal): Likewise.
3332 (<mode>_mk): New.
3333 (*<mode>_mk): New.
3334 (mov<mode>): New.
3335 (*mov<mode>_internal_mpx): New.
3336 (<mode>_<bndcheck>): New.
3337 (*<mode>_<bndcheck>): New.
3338 (<mode>_ldx): New.
3339 (*<mode>_ldx): New.
3340 (<mode>_stx): New.
3341 (*<mode>_stx): New.
3342 * config/i386/predicates.md (lea_address_operand): Rename to...
3343 (address_no_seg_operand): ... this.
3344 (address_mpx_no_base_operand): New.
3345 (address_mpx_no_index_operand): New.
3346 (bnd_mem_operator): New.
3347 * config/i386/i386.opt (mmpx): New.
3348 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3349 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3350
3351 Reverted:
3352 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3353 * mode-classes.def (MODE_POINTER_BOUNDS): New.
3354 * tree.def (POINTER_BOUNDS_TYPE): New.
3355 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3356 (POINTER_BOUNDS_MODE): New.
3357 (make_pointer_bounds_mode): New.
3358 * machmode.h (POINTER_BOUNDS_MODE_P): New.
3359 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3360 (layout_type): Support POINTER_BOUNDS_TYPE.
3361 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3362 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3363 (type_contains_placeholder_1): Likewise.
3364 * tree.h (POINTER_BOUNDS_TYPE_P): New.
3365 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3366 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3367
3368 2013-11-29 Richard Biener <rguenther@suse.de>
3369
3370 PR middle-end/59338
3371 * tree-cfg.c (verify_expr): Restrict bounds verification of
3372 BIT_FIELD_REF arguments to non-aggregate typed base objects.
3373
3374 2013-11-29 Richard Biener <rguenther@suse.de>
3375
3376 PR tree-optimization/59334
3377 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3378 in previous commit.
3379
3380 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3381 Richard Biener <rguenther@suse.de>
3382
3383 PR lto/59326
3384 * omp-low.c (simd_clone_create): Return NULL if for definition
3385 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
3386 before calling cgraph_function_versioning.
3387 (expand_simd_clones): Look for "omp declare simd" attribute first.
3388 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3389 Punt if node->global.inlined_to.
3390 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3391 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3392 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3393
3394 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3395
3396 PR lto/59326
3397 * tree-core.h (enum omp_clause_schedule_kind): Add
3398 OMP_CLAUSE_SCHEDULE_LAST.
3399 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3400 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3401 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3402 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3403 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3404 (DFS_write_tree_body): Handle OMP_CLAUSE.
3405 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3406 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3407 (write_ts_omp_clause_tree_pointers): New function.
3408 (streamer_write_tree_body): Call it for OMP_CLAUSE.
3409 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3410 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3411 (unpack_value_fields): Call it for OMP_CLAUSE.
3412 (streamer_alloc_tree): Handle OMP_CLAUSE.
3413 (lto_input_ts_omp_clause_tree_pointers): New function.
3414 (streamer_read_tree_body): Call it for OMP_CLAUSE.
3415
3416 2013-11-29 Joseph Myers <joseph@codesourcery.com>
3417
3418 * doc/implement-c.texi: Document C11 implementation-defined
3419 behavior. Refer to -ffp-contract=fast for contraction behavior.
3420 * doc/invoke.texi (-std=c99, std=c11): Update description of
3421 completeness.
3422 (-std=gnu99): Don't mention as future default.
3423 (-std=gnu11): Mention as intended future default.
3424 * doc/standards.texi: Update descriptions of C99 and C11 support.
3425 Limit statement about C99 facilities for freestanding
3426 implementations to some platforms only.
3427
3428 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3429
3430 PR middle-end/59327
3431 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3432
3433 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
3434
3435 PR target/57293
3436 * ira.h (ira_setup_eliminable_regset): Remove parameter.
3437 * ira.c (ira_setup_eliminable_regset): Ditto. Add
3438 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3439 Don't call lra_init_elimination.
3440 (ira): Call ira_setup_eliminable_regset without arguments.
3441 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3442 from ira_setup_eliminable_regset call.
3443 * gcse.c (calculate_bb_reg_pressure): Ditto.
3444 * haifa-sched.c (sched_init): Ditto.
3445 * lra.h (lra_init_elimination): Remove the prototype.
3446 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
3447 used_insn_alternative upper.
3448 (lra_eliminate_regs_1): Add one more parameter.
3449 (lra-eliminate): Ditto.
3450 * lra.c (lra_invalidate_insn_data): Set sp_offset.
3451 (setup_sp_offset): New.
3452 (lra_process_new_insns): Call setup_sp_offset.
3453 (lra): Add argument to lra_eliminate calls.
3454 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3455 (get_equiv_with_elimination): New.
3456 (process_addr_reg): Call get_equiv_with_elimination instead of
3457 get_equiv_substitution.
3458 (equiv_address_substitution): Ditto.
3459 (loc_equivalence_change_p): Ditto.
3460 (loc_equivalence_callback, lra_constraints): Ditto.
3461 (curr_insn_transform): Ditto. Print the sp offset
3462 (process_alt_operands): Prevent stack pointer reloads.
3463 (lra_constraints): Remove one argument from lra_eliminate call.
3464 Move it up. Mark used hard regs bfore it. Use
3465 get_equiv_with_elimination instead of get_equiv_substitution.
3466 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3467 assert for param values combination. Use sp offset. Add argument
3468 to lra_eliminate_regs_1 calls.
3469 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3470 (curr_sp_change): New static var.
3471 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3472 Don't prevent elimination to sp if we can calculate its change.
3473 Pass the argument to mark_not_eliminable calls.
3474 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3475 argument to lra_eliminate_regs_1 call.
3476 (update_reg_eliminate): Move calculation of hard regs for spill
3477 lower. Switch off lra_in_progress temporarily to generate regs
3478 involved into elimination.
3479 (lra_init_elimination): Rename to init_elimination. Make it
3480 static. Set up insn sp offset, check the offsets at the end of BBs.
3481 (process_insn_for_elimination): Add parameter. Pass its value to
3482 eliminate_regs_in_insn.
3483 (lra_eliminate): : Add parameter. Pass its value to
3484 process_insn_for_elimination. Add assert for param values
3485 combination. Call init_elimination. Don't update offsets in
3486 equivalence substitutions.
3487 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3488 for created stack slot.
3489 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3490 onto stack slot.
3491
3492 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3493
3494 * config/arm/iterators.md (vrint_conds): New int attribute.
3495 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3496 (smax<mode>3): Likewise.
3497 (smin<mode>3): Likewise.
3498
3499 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3500
3501 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3502 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3503 * tree-ssanames.h (set_range_info): Add range_type argument.
3504 (duplicate_ssa_name_range_info): Likewise.
3505 * tree-ssanames.c (set_range_info): Take the range type as argument
3506 and store it in SSA_NAME_ANTI_RANGE_P.
3507 (duplicate_ssa_name_range_info): Likewise.
3508 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3509 (set_nonzero_bits): Update call to set_range_info.
3510 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3511 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3512 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3513 (vrp_finalize): Likewise, passing anti-ranges directly.
3514
3515 2013-11-28 Richard Biener <rguenther@suse.de>
3516
3517 PR tree-optimization/59330
3518 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3519 and fix delayed marking of free calls not necessary.
3520
3521 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3522
3523 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3524 is_gimple_reg_type.
3525 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3526
3527 2013-11-28 Terry Guo <terry.guo@arm.com>
3528
3529 * config/arm/arm.c (v7m_extra_costs): New table.
3530 (arm_v7m_tune): Use it.
3531
3532 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3533
3534 * config/sol2.h (TIME_LIBRARY): Define.
3535
3536 2013-11-28 Richard Biener <rguenther@suse.de>
3537
3538 PR lto/59323
3539 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3540 CONST_DECLs in function context are not indexable.
3541
3542 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3543
3544 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3545 not optimized for size.
3546
3547 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3548
3549 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3550 fields.
3551 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3552 data->asan_base as base for vars and update asan_alignb.
3553 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3554 Pass them to asan_emit_stack_protection.
3555 * asan.c (asan_detect_stack_use_after_return): New variable.
3556 (asan_emit_stack_protection): Add pbase and alignb arguments.
3557 Implement use after return sanitization.
3558 * asan.h (asan_emit_stack_protection): Adjust prototype.
3559 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3560
3561 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3562
3563 * common.opt: Introduced a new option -fsimd-cost-model.
3564 * doc/invoke.texi: Introduced a new openmp-simd warning and
3565 a new -fsimd-cost-model option.
3566 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3567 to rely on the particular loop info.
3568 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3569 (vect_peeling_hash_choose_best_peeling): Ditto.
3570 (vect_enhance_data_refs_alignment): Ditto.
3571 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3572 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3573 plus added openmp-simd warining.
3574
3575 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3576
3577 PR rtl-optimization/59311
3578 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3579 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3580
3581 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3582
3583 * var-tracking.c (track_expr_p): Do not track declarations for parts
3584 of tracked parameters.
3585 (add_stores): Do not track values for tracked parameters passed in
3586 multiple locations.
3587 (vt_get_decl_and_offset): Handle PARALLEL.
3588 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3589
3590 2013-11-27 Jeff Law <law@redhat.com>
3591
3592 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3593 clobber the loop structure thread_block was unsuccessful. If
3594 thread_block was unsuccessful, cleanup appropriately.
3595
3596 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3597
3598 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3599 (score_char_to_class): Likewise.
3600
3601 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3602
3603 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3604 the overflow bit set.
3605
3606 2013-11-27 Richard Biener <rguenther@suse.de>
3607
3608 PR middle-end/58723
3609 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3610 for internal calls.
3611 (rebuild_cgraph_edges): Likewise.
3612 * ipa-inline-analysis.c (estimate_function_body_sizes):
3613 Skip internal calls.
3614 * tree-inline.c (estimate_num_insns): Estimate size of internal
3615 calls as 0.
3616 (gimple_expand_calls_inline): Do not try inline-expanding
3617 internal calls.
3618 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3619 force_vect and simduid.
3620 (input_struct_function_base): Stream has_force_vect_loops
3621 and has_simduid_loops.
3622 (input_function): Adjust.
3623 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3624 force_vect and simduid.
3625 (output_struct_function_base): Stream has_force_vect_loops
3626 and has_simduid_loops.
3627
3628 2013-11-27 Kai Tietz <ktietz@redhat.com>
3629
3630 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3631 pointer cast.
3632
3633 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3634
3635 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3636 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3637
3638 2013-11-27 Marek Polacek <polacek@redhat.com>
3639
3640 PR sanitizer/59306
3641 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3642 instead of walk_gimple_op.
3643 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3644
3645 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3646 Jakub Jelinek <jakub@redhat.com>
3647
3648 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3649 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3650 (struct cgraph_node): Add simdclone and simd_clones fields.
3651 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3652 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3653 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3654 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3655 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3656 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3657 * doc/tm.texi: Regenerated.
3658 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3659 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3660 attribute is present.
3661 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3662 (simd_clone_vector_of_formal_parm_types): New function.
3663 (simd_clone_struct_alloc, simd_clone_struct_copy,
3664 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3665 simd_clone_compute_base_data_type, simd_clone_mangle,
3666 simd_clone_create, simd_clone_adjust_return_type,
3667 create_tmp_simd_array, simd_clone_adjust_argument_types,
3668 simd_clone_init_simd_arrays): New functions.
3669 (struct modify_stmt_info): New type.
3670 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3671 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3672 functions.
3673 (pass_data_omp_simd_clone): New variable.
3674 (pass_omp_simd_clone): New class.
3675 (make_pass_omp_simd_clone): New function.
3676 * passes.def (pass_omp_simd_clone): New.
3677 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3678 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3679 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3680 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3681 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3682 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3683 * tree-vect-data-refs.c: Include cgraph.h.
3684 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3685 and find_data_references_in_bb, if find_data_references_in_stmt
3686 fails, still allow calls to #pragma omp declare simd functions
3687 in #pragma omp simd loops unless they contain data references among
3688 the call arguments or in lhs.
3689 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3690 calls with no lhs.
3691 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3692 without lhs.
3693 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3694 call_simd_clone_vec_info_type.
3695 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3696 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3697 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3698 tree-scalar-evolution.h and cgraph.h.
3699 (vectorizable_call): Handle calls without lhs. Assert
3700 !stmt_can_throw_internal instead of failing for it. Don't update
3701 EH stuff.
3702 (struct simd_call_arg_info): New.
3703 (vectorizable_simd_clone_call): New function.
3704 (vect_transform_stmt): Call it.
3705 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3706 calls without lhs.
3707 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3708 if cgraph_function_with_gimple_body_p is true.
3709
3710 2013-11-27 Tom de Vries <tom@codesourcery.com>
3711 Marc Glisse <marc.glisse@inria.fr>
3712
3713 PR middle-end/59037
3714 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3715 BIT_FIELD_REF.
3716 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3717 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3718 out-of-bounds.
3719
3720 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3721
3722 PR middle-end/59138
3723 * expr.c (emit_group_store): Don't write past the end of the structure.
3724 (store_bit_field): Fix formatting.
3725
3726 2013-11-27 Richard Biener <rguenther@suse.de>
3727
3728 PR tree-optimization/59288
3729 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3730 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3731
3732 2013-11-27 Marek Polacek <polacek@redhat.com>
3733
3734 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3735 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3736 rather than ADDR_EXPRs.
3737
3738 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3739
3740 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3741
3742 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3743
3744 * gengtype.c (struct seen_tag): New.
3745 (already_seen_tag): New.
3746 (mark_tag_as_seen): New.
3747 (walk_subclasses): Support having multiple subclasses using the
3748 same tag by tracking which tags have already been seen, and using
3749 this to avoid adding duplicate cases to the "switch" statement.
3750 The call to already_seen_tag introduces an O(N^2) when running
3751 gengtype on N, the number of tags, due to the repeated linear
3752 search, but currently max(N) is relatively small (the number of
3753 GSS codes, which is 26).
3754 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3755 recursion.
3756
3757 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3758 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3759 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3760 GIMPLE_OMP_RETURN happens to share the data layout of
3761 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3762 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3763 underlying GSS value from GSS_OMP_PARALLEL to
3764 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3765 not directly related; they merely share in-memory layout.
3766 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3767 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3768
3769 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3770 Rename to...
3771 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3772 ...these.
3773 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3774 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3775 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3776 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3777 ...these.
3778
3779 * gimple.h (gimple_statement_resx): New subclass of
3780 gimple_statement_eh_ctrl, with the invariant that
3781 stmt->code == GIMPLE_RESX.
3782 (gimple_statement_eh_dispatch): New subclass of
3783 gimple_statement_eh_ctrl, with the invariant that
3784 stmt->code == GIMPLE_EH_DISPATH.
3785
3786 (gimple_statement_omp_parallel): The existing class expressed
3787 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3788 are not all related, so it makes more sense for this class to
3789 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3790 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3791 rename the existing gimple_statement_omp_parallel class to...
3792 (gimple_statement_omp_parallel_layout): ...this, expressing
3793 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3794 (gimple_statement_omp_taskreg): New subclass of
3795 gimple_statement_omp_parallel_layout, expressing the invariant
3796 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3797 as used by the various gimple_omp_taskreg_ accessors.
3798 (gimple_statement_omp_parallel): Reintroduce this class, this time
3799 as a subclass of gimple_statement_omp_taskreg to express the
3800 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3801 (gimple_statement_omp_target) New class, subclassing
3802 gimple_statement_omp_parallel_layout, to express the invariant
3803 stmt->code == GIMPLE_OMP_TARGET.
3804 (gimple_statement_omp_task): Update to inherit from
3805 gimple_statement_omp_taskreg rather than
3806 gimple_statement_omp_parallel.
3807
3808 (gimple_statement_omp_single): Rename to...
3809 (gimple_statement_omp_single_layout): ...this, expressing the
3810 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3811 (gimple_statement_omp_single): ...and reintroduce this name as
3812 a subclass of gimple_statement_omp_single_layout, expressing
3813 the invariant that code == GIMPLE_OMP_SINGLE.
3814 (gimple_statement_omp_teams): New class, subclassing
3815 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3816
3817 (gimple_statement_omp_atomic_store): Rename to...
3818 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3819 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3820 (gimple_statement_omp_atomic_store): ...and reintroduce this
3821 name as a subclass of gimple_statement_omp_atomic_store_layout
3822 with code == GIMPLE_OMP_ATOMIC_STORE.
3823 (gimple_statement_omp_return): New class, subclassing
3824 gimple_statement_omp_atomic_store_layout for the code
3825 GIMPLE_OMP_RETURN.
3826
3827 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3828 (is_a_helper <gimple_statement_resx>::test): New.
3829 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3830 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3831 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3832 (is_a_helper <gimple_statement_omp_return>::test): New.
3833 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3834 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3835 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3836 GIMPLE_OMP_TARGET.
3837 (is_a_helper <gimple_statement_omp_target>::test): New.
3838 (is_a_helper <gimple_statement_omp_single>::test): Only check
3839 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3840 (is_a_helper <gimple_statement_omp_teams>::test): New.
3841
3842 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3843 (is_a_helper <const gimple_statement_resx>::test): New.
3844 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3845 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3846 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3847 (is_a_helper <const gimple_statement_omp_return>::test): New.
3848 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3849 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3850 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3851 GIMPLE_OMP_TARGET.
3852 (is_a_helper <const gimple_statement_omp_target>::test): New.
3853 (is_a_helper <const gimple_statement_omp_single>::test): Only
3854 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3855 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3856
3857 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3858 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3859 gimple_statement_omp_atomic_store with downcasts to
3860 gimple_statement_omp_return, thus requiring that the code be
3861 GIMPLE_OMP_RETURN.
3862 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3863 downcasts to gimple_statement_eh_ctrl with downcasts to
3864 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3865 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3866 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3867 downcasts to gimple_statement_eh_dispatch, thus requiring that
3868 the code be GIMPLE_EH_DISPATCH.
3869 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3870 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3871 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3872 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3873 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3874 gimple_statement_omp_parallel with downcasts to
3875 gimple_statement_omp_taskreg, thus requiring that the code be
3876 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3877 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3878 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3879 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3880 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3881 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3882 gimple_statement_omp_parallel with downcasts to
3883 gimple_statement_omp_target, thus requiring that the code be
3884 GIMPLE_OMP_TARGET.
3885 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3886 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3887 gimple_statement_omp_single with downcasts to
3888 gimple_statement_omp_teams, thus requiring that the code be
3889 GIMPLE_OMP_TEAMS.
3890
3891 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3892 gimple_statement_resx.
3893 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3894 gimple_statement_eh_dispatch.
3895
3896 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3897
3898 PR tree-optimization/59014
3899 * tree-vrp.c (register_edge_assert_for_1): Don't look
3900 through conversions from non-integral types or through
3901 narrowing conversions.
3902
3903 PR target/59229
3904 * config/i386/i386.c (device_alg): Fix up formatting.
3905 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3906 similarly to count && count < epilogue_size_needed. Fix up
3907 comment typo.
3908 * builtins.c (determine_block_size): Fix comment typo.
3909
3910 PR sanitizer/59258
3911 * ubsan.c (ubsan_source_location): Don't add any location
3912 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3913 (ubsan_create_data): Strip block info from LOC.
3914
3915 PR middle-end/59273
3916 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3917 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3918
3919 PR rtl-optimization/59166
3920 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3921 DF_REF_LOC in validate_change call.
3922 (split_live_ranges_for_shrink_wrap): Likewise.
3923
3924 PR middle-end/59150
3925 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3926 of references to constant size types in simd loops, defer emitting
3927 initializer for the new_var, emit it later on only if not using
3928 SIMD arrays for it.
3929
3930 PR middle-end/59152
3931 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3932 for the inner loop if collapse_bb is non-NULL.
3933 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3934
3935 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3936
3937 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3938 a constant immediate before force_reg.
3939
3940 2013-11-26 Richard Biener <rguenther@suse.de>
3941
3942 PR tree-optimization/59245
3943 * tree-vrp.c (set_value_range): Assert that we don't have
3944 overflowed constants (but our infinities).
3945 (set_value_range_to_value): Drop all overflow flags.
3946 (vrp_visit_phi_node): Likewise.
3947 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3948 to set a constant range.
3949
3950 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3951
3952 PR target/59290
3953 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3954 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3955 for zero_extend case.
3956
3957 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3958
3959 PR bootstrap/55552
3960 * configure.ac (install_gold_as_default): New. Set to yes for
3961 --disable-ld or --enable-gold=default.
3962 (gcc_cv_ld_gold_srcdir): New.
3963 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3964 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3965 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3966 * configure: Regenerated.
3967
3968 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3969 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3970 (original) [collect-ld && -fuse-ld=bfd]: Set to
3971 $ORIGINAL_LD_BFD_FOR_TARGET.
3972 (original) [collect-ld && -fuse-ld=gold]: Set to
3973 $ORIGINAL_LD_GOLD_FOR_TARGET.
3974 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3975 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3976
3977 2013-11-26 Terry Guo <terry.guo@arm.com>
3978
3979 * config/arm/arm.c (require_pic_register): Handle high pic base
3980 register for thumb-1.
3981 (arm_load_pic_register): Also initialize high pic base register.
3982 * doc/invoke.texi: Update documentation for option -mpic-register.
3983
3984 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3985
3986 PR target/58314
3987 PR target/50751
3988 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3989 Prefix function names with 'sh_'. Make them non-static.
3990 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3991 sh_max_mov_insn_displacement): Add declarations.
3992 * config/sh/constraints.md (Q): Reject QImode.
3993 (Sdd): Use match_code "mem".
3994 (Snd): Fix erroneous matching of non-memory operands.
3995 * config/sh/predicates.md (short_displacement_mem_operand): New
3996 predicate.
3997 (general_movsrc_operand): Disallow PC relative QImode loads.
3998 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3999 (*movqi, *movhi): Merge both insns into...
4000 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
4001 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
4002 on the operand types.
4003
4004 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
4005
4006 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4007 Remove unused variable save_config.
4008 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4009 assert.
4010
4011 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4012
4013 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4014 using other intrinsics.
4015 (vtbx3_<psu>8): Likewise.
4016
4017 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4018
4019 * config/aarch64/aarch64-builtins.c
4020 (aarch64_types_bsl_p_qualifiers): New.
4021 (aarch64_types_bsl_s_qualifiers): Likewise.
4022 (aarch64_types_bsl_u_qualifiers): Likewise.
4023 (TYPES_BSL_P): Likewise.
4024 (TYPES_BSL_S): Likewise.
4025 (TYPES_BSL_U): Likewise.
4026 (BUILTIN_VALLDIF): Likewise.
4027 (BUILTIN_VDQQH): Likewise.
4028 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4029 * config/aarch64/aarch64-simd.md
4030 (aarch64_simd_bsl<mode>_internal): Handle more modes.
4031 (aarch64_simd_bsl<mode>): Likewise.
4032 * config/aarch64/arm_neon.h
4033 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4034 * config/aarch64/iterators.md (VALLDIF): New.
4035 (Vbtype): Handle more modes.
4036
4037 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4038
4039 * config/aarch64/aarch64-builtins.c
4040 (aarch64_type_qualifiers): Add qualifier_poly.
4041 (aarch64_build_scalar_type): Also build Poly types.
4042 (aarch64_build_vector_type): Likewise.
4043 (aarch64_build_type): Likewise.
4044 (aarch64_build_signed_type): New.
4045 (aarch64_build_unsigned_type): Likewise.
4046 (aarch64_build_poly_type): Likewise.
4047 (aarch64_init_simd_builtins): Also handle Poly types.
4048
4049 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4050
4051 * config/aarch64/aarch64-builtins.c
4052 (VAR1): Use new naming scheme for aarch64_builtins.
4053 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4054
4055 2013-11-26 Richard Biener <rguenther@suse.de>
4056
4057 PR tree-optimization/59287
4058 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4059 Remove no longer necessary special-casing of union accesses.
4060
4061 2013-11-26 Richard Biener <rguenther@suse.de>
4062
4063 * pretty-print.c (output_buffer::~output_buffer): Really
4064 free the obstacks.
4065
4066 2013-11-25 Jeff Law <law@redhat.com>
4067
4068 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4069 invalidate loop information.
4070
4071 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4072
4073 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4074
4075 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4076
4077 PR target/53976
4078 PR target/59243
4079 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4080 comments.
4081 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4082 previously visited basic blocks before recursing instead of only one
4083 basic block.
4084
4085 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4086
4087 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4088 * config/aarch64/aarch64-cores.def (cortex-a53):
4089 Use cortexa53 tuning struct.
4090
4091 2013-11-25 Andrew Macleod <amacleod@redhat.com>
4092
4093 PR bootstrap/59260
4094 * fold-const.c: Include hash-table.h.
4095
4096 2013-11-25 Marek Polacek <polacek@redhat.com>
4097
4098 PR sanitizer/59258
4099 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4100
4101 2013-11-25 Richard Biener <rguenther@suse.de>
4102
4103 * tree-dfa.c: Remove unused convert.h include.
4104
4105 2013-11-25 Terry Guo <terry.guo@arm.com>
4106
4107 * doc/invoke.texi (-mslow-flash-data): Document new option.
4108 * config/arm/arm.opt (mslow-flash-data): New option.
4109 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4110 Declare it.
4111 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4112 are disabled.
4113 (arm_disable_literal_pool): Declare it.
4114 * config/arm/arm.c (arm_disable_literal_pool): New variable.
4115 (arm_option_override): Handle new option.
4116 (thumb2_legitimate_address_p): Don't allow symbol references when
4117 literal pools are disabled.
4118 (arm_max_const_double_inline_cost): New function.
4119 * config/arm/arm.md (types.md): Include it before ...
4120 (use_literal_pool): New attribute.
4121 (enabled): Use new attribute.
4122 (split pattern): Replace symbol+offset with MOVW/MOVT.
4123
4124 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4125
4126 PR bootstrap/59279
4127 Revert previous commit.
4128
4129 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4130
4131 * jump.c (reset_insn_reg_label_operand_notes): New function,
4132 split out from ...
4133 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
4134 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4135 split out from ...
4136 (delete_dead_jumptables): ... here. Handle cfglayout mode.
4137 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4138 expensive CFG cleanup is called for.
4139 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4140 (cfg_layout_finalize): Delete dead jump tables before re-building
4141 the insns chain.
4142 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4143 basic blocks, not before.
4144 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4145
4146 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4147 insns chain of a scheduling extended basic block, they cannot appear
4148 there in cfglayout mode.
4149
4150 2013-11-24 Tobias Burnus <burnus@net-b.de>
4151
4152 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4153
4154 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4155
4156 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4157 for little endian.
4158
4159 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
4160
4161 * graphite-sese-to-poly.c: Don't include extra "expr.h".
4162
4163 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4164
4165 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4166
4167 2013-11-23 David Edelson <dje.gcc@gmail.com>
4168 Andrew Dixie <andrewd@gentrack.com>
4169
4170 PR target/33704
4171 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4172 (COLLECT_SHARED_FINI_FUNC): Define.
4173
4174 * collect2.c (aix_shared_initname): Declare.
4175 (aix_shared_fininame): Declare.
4176 (symkind): Add SYM_AIXI and SYM_AIXD.
4177 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4178 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4179 (aixlazy_flag): Parse.
4180 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4181 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4182
4183 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
4184
4185 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4186 (rs6000_xcoff_select_section): Place decls with stricter alignment
4187 into named sections.
4188 (rs6000_xcoff_unique_section): Allow unique sections for
4189 uninitialized data with strict alignment.
4190
4191 2013-11-23 Jakub Jelinek <jakub@redhat.com>
4192
4193 PR tree-optimization/59154
4194 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4195 rhs1 of a cast and new_op is invariant, fold_convert it.
4196 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4197 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4198
4199 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
4200
4201 PR target/56788
4202 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4203 Declare as MULTI_ARG_1_SF instruction.
4204 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4205 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4206 from *xop_vmfrcz_<mode>.
4207 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4208 to merge scalar result with __A.
4209 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4210 result with __A.
4211
4212 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4213
4214 * gimplify.h (recalculate_side_effects): Delete.
4215 * gimplify.c (recalculate_side_effects): Make static and add comment.
4216
4217 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4218
4219 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4220 for the destination of a define_peephole2. Likewise register_operand
4221 rather than arith_reg_operand. Remove constraints from
4222 define_peephole2s.
4223
4224 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4225
4226 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4227 Delete.
4228 (mn10300_store_multiple_operation_p): Declare.
4229 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4230 Rename to...
4231 (mn10300_store_multiple_operation_p): ...this and remove mode
4232 argument.
4233 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4234 Define.
4235
4236 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4237
4238 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4239 (pop_multiple_operation): Delete.
4240 (analyze_push_multiple_operation): Declare.
4241 (analyze_pop_multiple_operation): Declare.
4242 * config/bfin/bfin.c (push_multiple_operation): Rename to...
4243 (analyze_push_multiple_operation): ...this and remove mode argument.
4244 (pop_multiple_operation): Rename to...
4245 (analyze_pop_multiple_operation): ...this and remove mode argument.
4246 * config/bfin/predicates.md (push_multiple_operation): Define.
4247 (pop_multiple_operation): Likewise.
4248
4249 2013-11-23 Alan Modra <amodra@gmail.com>
4250
4251 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4252
4253 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4254
4255 PR sanitizer/59061
4256 * common.opt (static-liblsan): Add.
4257 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4258 Define.
4259 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
4260 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4261 SANITIZE_RETURN.
4262 * opts.c (common_handle_option): Handle -fsanitize=leak.
4263 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4264 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4265 (LIBUBSAN_EARLY_SPEC): Remove.
4266 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4267 (SANITIZER_SPEC): Add -fsanitize=leak handling.
4268 (sanitize_spec_function): Handle %sanitize(leak).
4269 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4270
4271 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
4272 Jakub Jelinek <jakub@redhat.com>
4273
4274 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4275 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4276 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
4277 (ipa_modify_formal_parameters): Adjust caller. Remove
4278 synth_parm_prefix argument. Use operator enum instead of bit fields.
4279 Add assert for properly handling vector of references. Handle
4280 creating brand new parameters.
4281 (ipa_modify_call_arguments): Use operator enum instead of bit
4282 fields.
4283 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
4284 used.
4285 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4286 New functions.
4287 (ipa_dump_param_adjustments): Rename reduction to new_decl.
4288 Use operator enum instead of bit fields.
4289 * ipa-prop.h (enum ipa_parm_op): New.
4290 (struct ipa_parm_adjustment): New field op. Rename reduction
4291 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4292 and copy_param.
4293 (ipa_modify_formal_parameters): Remove last argument.
4294 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4295 ipa_get_adjustment_candidate): New prototypes.
4296 * tree-sra.c (turn_representatives_into_adjustments): Use operator
4297 enum. Set arg_prefix.
4298 (get_adjustment_for_base): Use operator enum.
4299 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4300 ipa-prop.c.
4301 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4302 (ipa_sra_modify_function_body): Same. No longer static.
4303 (sra_ipa_reset_debug_stmts): Use operator enum.
4304 (modify_function): Do not pass prefix argument.
4305
4306 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4307
4308 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4309 (ubsan_pass): Ignore clobber stmts.
4310
4311 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4312 * opts.c (common_handle_option): Add -fsanitize=return.
4313 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4314 or it into SANITIZE_UNDEFINED.
4315
4316 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4317 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4318 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4319 Don't instrument accesses to VAR_DECLs which are known to fit
4320 into their bounds and the vars are known to have shadow bytes
4321 indicating allowed access.
4322 (asan_dynamic_init_call): New function.
4323 (asan_add_global): If vnode->dynamically_initialized,
4324 set __has_dynamic_init to 1 instead of 0.
4325 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4326 * asan.h (asan_dynamic_init_call): New prototype.
4327 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4328
4329 2013-11-22 Martin Jambor <mjambor@suse.cz>
4330
4331 PR rtl-optimization/10474
4332 * ira.c (interesting_dest_for_shprep_1): New function.
4333 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4334 also check parallels.
4335
4336 2013-11-22 Jeff Law <law@redhat.com>
4337
4338 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4339 NULL for RHS, which we used to invalidate equivalences.
4340 (record_temporary_equivalences_from_phis): New bitmap arguments
4341 and a boolean indicating if we have passed a backedge. If we
4342 have passed a backedge, then set the appropriate bit in the
4343 bitmaps for the SRC & DEST of PHIs creating equivalences.
4344 (invalidate_equivalences, dummy_simplify): New functions.
4345 (cond_arg_set_in_b): Remove.
4346 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4347 arguments and a boolean indicating if we have passed a backedge.
4348 If we have passed a backedge, then perform invalidations as needed.
4349 (thread_around_empty_blocks): If we have seen a backedge, then
4350 use the dummy simplify routine.
4351 (thread_through_normal_block): Likewise. Pass bitmaps and
4352 backedge status to children. Do not pessimize so much when
4353 traversing backedges in the CFG.
4354 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4355 If we have seen a backedge, then use the dummy simplify routine.
4356 Do not pessimize so much when traversing backedges.
4357
4358 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
4359
4360 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4361 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4362
4363 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
4364
4365 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4366 PTA_PCLMUL and PTA_RDRND for Silvermont.
4367 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4368 for Silvermont.
4369
4370 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4371
4372 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4373
4374 * hooks.h (hook_uint_mode_0): Add Prototype.
4375 * hooks.c (hook_uint_mode_0): New default function.
4376 * target.def (atomic_align_for_mode): New target hook.
4377 * tree.c (build_atomic_base): Add alignment override parameter.
4378 (build_common_tree_nodes): Use atomic alignment override.
4379 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4380 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4381
4382 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4383
4384 * gimple.h: Remove all includes.
4385 (recalculate_side_effects): Move prototype to gimplify.h.
4386 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4387 * gengtype.c (open_base_files): Add gimple.h include list.
4388 * gimplify.h (recalculate_side_effects): Relocate prototype here.
4389 * gimple.c: Adjust include list.
4390 (recalculate_side_effects): Move to gimplify.c.
4391 * gimplify.c: Adjust include list.
4392 (recalculate_side_effects): Relocate from gimple.c.
4393 * alias.c: Add required include files removed from gimple.h.
4394 * asan.c: Likewise.
4395 * builtins.c: Likewise.
4396 * calls.c: Likewise.
4397 * cfgexpand.c: Likewise.
4398 * cfgloop.c: Likewise.
4399 * cfgloopmanip.c: Likewise.
4400 * cgraphbuild.c: Likewise.
4401 * cgraph.c: Likewise.
4402 * cgraphclones.c: Likewise.
4403 * cgraphunit.c: Likewise.
4404 * cilk-common.c: Likewise.
4405 * data-streamer.c: Likewise.
4406 * data-streamer-in.c: Likewise.
4407 * data-streamer-out.c: Likewise.
4408 * dse.c: Likewise.
4409 * dwarf2out.c: Likewise.
4410 * emit-rtl.c: Likewise.
4411 * except.c: Likewise.
4412 * expr.c: Likewise.
4413 * fold-const.c: Likewise.
4414 * function.c: Likewise.
4415 * gimple-builder.c: Likewise.
4416 * gimple-expr.c: Likewise.
4417 * gimple-fold.c: Likewise.
4418 * gimple-iterator.c: Likewise.
4419 * gimple-low.c: Likewise.
4420 * gimple-pretty-print.c: Likewise.
4421 * gimple-ssa-isolate-paths.c: Likewise.
4422 * gimple-ssa-strength-reduction.c: Likewise.
4423 * gimple-streamer-in.c: Likewise.
4424 * gimple-streamer-out.c: Likewise.
4425 * gimple-walk.c: Likewise.
4426 * gimplify-me.c: Likewise.
4427 * graphite-blocking.c: Likewise.
4428 * graphite.c: Likewise.
4429 * graphite-clast-to-gimple.c: Likewise.
4430 * graphite-dependences.c: Likewise.
4431 * graphite-interchange.c: Likewise.
4432 * graphite-optimize-isl.c: Likewise.
4433 * graphite-poly.c: Likewise.
4434 * graphite-scop-detection.c: Likewise.
4435 * graphite-sese-to-poly.c: Likewise.
4436 * internal-fn.c: Likewise.
4437 * ipa.c: Likewise.
4438 * ipa-cp.c: Likewise.
4439 * ipa-devirt.c: Likewise.
4440 * ipa-inline-analysis.c: Likewise.
4441 * ipa-inline.c: Likewise.
4442 * ipa-profile.c: Likewise.
4443 * ipa-prop.c: Likewise.
4444 * ipa-pure-const.c: Likewise.
4445 * ipa-reference.c: Likewise.
4446 * ipa-split.c: Likewise.
4447 * ipa-utils.c: Likewise.
4448 * langhooks.c: Likewise.
4449 * lto-cgraph.c: Likewise.
4450 * lto-compress.c: Likewise.
4451 * lto-opts.c: Likewise.
4452 * lto-section-in.c: Likewise.
4453 * lto-section-out.c: Likewise.
4454 * lto-streamer.c: Likewise.
4455 * lto-streamer-in.c: Likewise.
4456 * lto-streamer-out.c: Likewise.
4457 * omp-low.c: Likewise.
4458 * opts-global.c: Likewise.
4459 * passes.c: Likewise.
4460 * predict.c: Likewise.
4461 * profile.c: Likewise.
4462 * sese.c: Likewise.
4463 * stmt.c: Likewise.
4464 * stor-layout.c: Likewise.
4465 * symtab.c: Likewise.
4466 * targhooks.c: Likewise.
4467 * toplev.c: Likewise.
4468 * tracer.c: Likewise.
4469 * trans-mem.c: Likewise.
4470 * tree-affine.c: Likewise.
4471 * tree.c: Likewise.
4472 * tree-call-cdce.c: Likewise.
4473 * tree-cfg.c: Likewise.
4474 * tree-cfgcleanup.c: Likewise.
4475 * tree-chrec.c: Likewise.
4476 * tree-complex.c: Likewise.
4477 * tree-data-ref.c: Likewise.
4478 * tree-dfa.c: Likewise.
4479 * tree-eh.c: Likewise.
4480 * tree-emutls.c: Likewise.
4481 * tree-if-conv.c: Likewise.
4482 * tree-inline.c: Likewise.
4483 * tree-into-ssa.c: Likewise.
4484 * tree-loop-distribution.c: Likewise.
4485 * tree-nested.c: Likewise.
4486 * tree-nrv.c: Likewise.
4487 * tree-object-size.c: Likewise.
4488 * tree-outof-ssa.c: Likewise.
4489 * tree-parloops.c: Likewise.
4490 * tree-phinodes.c: Likewise.
4491 * tree-predcom.c: Likewise.
4492 * tree-pretty-print.c: Likewise.
4493 * tree-profile.c: Likewise.
4494 * tree-scalar-evolution.c: Likewise.
4495 * tree-sra.c: Likewise.
4496 * tree-ssa-address.c: Likewise.
4497 * tree-ssa-alias.c: Likewise.
4498 * tree-ssa.c: Likewise.
4499 * tree-ssa-ccp.c: Likewise.
4500 * tree-ssa-coalesce.c: Likewise.
4501 * tree-ssa-copy.c: Likewise.
4502 * tree-ssa-copyrename.c: Likewise.
4503 * tree-ssa-dce.c: Likewise.
4504 * tree-ssa-dom.c: Likewise.
4505 * tree-ssa-dse.c: Likewise.
4506 * tree-ssa-forwprop.c: Likewise.
4507 * tree-ssa-ifcombine.c: Likewise.
4508 * tree-ssa-live.c: Likewise.
4509 * tree-ssa-loop.c: Likewise.
4510 * tree-ssa-loop-ch.c: Likewise.
4511 * tree-ssa-loop-im.c: Likewise.
4512 * tree-ssa-loop-ivcanon.c: Likewise.
4513 * tree-ssa-loop-ivopts.c: Likewise.
4514 * tree-ssa-loop-manip.c: Likewise.
4515 * tree-ssa-loop-niter.c: Likewise.
4516 * tree-ssa-loop-prefetch.c: Likewise.
4517 * tree-ssa-loop-unswitch.c: Likewise.
4518 * tree-ssa-math-opts.c: Likewise.
4519 * tree-ssanames.c: Likewise.
4520 * tree-ssa-operands.c: Likewise.
4521 * tree-ssa-phiopt.c: Likewise.
4522 * tree-ssa-phiprop.c: Likewise.
4523 * tree-ssa-pre.c: Likewise.
4524 * tree-ssa-propagate.c: Likewise.
4525 * tree-ssa-reassoc.c: Likewise.
4526 * tree-ssa-sccvn.c: Likewise.
4527 * tree-ssa-sink.c: Likewise.
4528 * tree-ssa-strlen.c: Likewise.
4529 * tree-ssa-structalias.c: Likewise.
4530 * tree-ssa-tail-merge.c: Likewise.
4531 * tree-ssa-ter.c: Likewise.
4532 * tree-ssa-threadedge.c: Likewise.
4533 * tree-ssa-threadupdate.c: Likewise.
4534 * tree-ssa-uncprop.c: Likewise.
4535 * tree-ssa-uninit.c: Likewise.
4536 * tree-stdarg.c: Likewise.
4537 * tree-streamer.c: Likewise.
4538 * tree-streamer-in.c: Likewise.
4539 * tree-streamer-out.c: Likewise.
4540 * tree-switch-conversion.c: Likewise.
4541 * tree-tailcall.c: Likewise.
4542 * tree-vect-data-refs.c: Likewise.
4543 * tree-vect-generic.c: Likewise.
4544 * tree-vect-loop.c: Likewise.
4545 * tree-vect-loop-manip.c: Likewise.
4546 * tree-vectorizer.c: Likewise.
4547 * tree-vect-patterns.c: Likewise.
4548 * tree-vect-slp.c: Likewise.
4549 * tree-vect-stmts.c: Likewise.
4550 * tree-vrp.c: Likewise.
4551 * tsan.c: Likewise.
4552 * ubsan.c: Likewise.
4553 * value-prof.c: Likewise.
4554 * varpool.c: Likewise.
4555 * var-tracking.c: Likewise.
4556 * vtable-verify.c: Likewise.
4557 * config/darwin.c: Likewise.
4558 * config/aarch64/aarch64-builtins.c: Likewise.
4559 * config/aarch64/aarch64.c: Likewise.
4560 * config/alpha/alpha.c: Likewise.
4561 * config/i386/i386.c: Likewise.
4562 * config/i386/winnt.c: Likewise.
4563 * config/ia64/ia64.c: Likewise.
4564 * config/m32c/m32c.c: Likewise.
4565 * config/mep/mep.c: Likewise.
4566 * config/mips/mips.c: Likewise.
4567 * config/rs6000/rs6000.c: Likewise.
4568 * config/s390/s390.c: Likewise.
4569 * config/sh/sh.c: Likewise.
4570 * config/sparc/sparc.c: Likewise.
4571 * config/spu/spu.c: Likewise.
4572 * config/stormy16/stormy16.c: Likewise.
4573 * config/tilegx/tilegx.c: Likewise.
4574 * config/tilepro/tilepro.c: Likewise.
4575 * config/xtensa/xtensa.c: Likewise.
4576
4577 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4578
4579 PR target/59216
4580 * arm.md (negdi_extendsidi): Fix invalid split.
4581
4582 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4583
4584 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4585 (vmov_n_f64): Likewise.
4586 (vmov_n_p8): Likewise.
4587 (vmov_n_p16): Likewise.
4588 (vmov_n_s8): Likewise.
4589 (vmov_n_s16): Likewise.
4590 (vmov_n_s32): Likewise.
4591 (vmov_n_s64): Likewise.
4592 (vmov_n_u8): Likewise.
4593 (vmov_n_u16): Likewise.
4594 (vmov_n_u32): Likewise.
4595 (vmov_n_u64): Likewise.
4596 (vmovq_n_f32): Likewise.
4597 (vmovq_n_f64): Likewise.
4598 (vmovq_n_p8): Likewise.
4599 (vmovq_n_p16): Likewise.
4600 (vmovq_n_s8): Likewise.
4601 (vmovq_n_s16): Likewise.
4602 (vmovq_n_s32): Likewise.
4603 (vmovq_n_s64): Likewise.
4604 (vmovq_n_u8): Likewise.
4605 (vmovq_n_u16): Likewise.
4606 (vmovq_n_u32): Likewise.
4607 (vmovq_n_u64): Likewise.
4608
4609 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4610
4611 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4612 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4613 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4614 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4615 and also change to float UNSPEC.
4616 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4617 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4618 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4619 result access for big-endian.
4620 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4621 intrinsics for big-endian.
4622 * config/aarch64/iterators.md (VDQV): Add V2DI.
4623 (VDQV_S): New.
4624 (vp): New mode attribute.
4625
4626 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4627
4628 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4629 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4630 big-endian.
4631
4632 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4633
4634 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4635 for big-endian element order.
4636 (aarch64_simd_vec_setv2di): Likewise.
4637 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4638 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4639 (vec_extract): Expand using aarch64_get_lane.
4640 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4641
4642 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4643
4644 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4645 and stores to be ABI compliant.
4646
4647 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4648
4649 * input.h (input_line): Remove.
4650 (input_filename): Likewise.
4651 (in_system_header): Likewise.
4652 * tree.h (EXPR_LOC_OR_HERE): Remove.
4653 * config/bfin/bfin.c (output_file_start): Remove use of
4654 input_filename macro.
4655 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4656 * gimplify.c (internal_get_tmp_var): Likewise.
4657 EXPR_LOC_OR_HERE macro.
4658 (shortcut_cond_expr): Likewise.
4659 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4660 use of input_filename macro.
4661 * tree.c (get_file_function_name): Likewise.
4662
4663 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4664
4665 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4666
4667 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4668
4669 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4670 (same sized) elements even if the type of the CONSTRUCTOR has
4671 vector mode and target is a REG.
4672
4673 2013-11-22 Richard Biener <rguenther@suse.de>
4674
4675 Revert
4676 2013-11-21 Richard Biener <rguenther@suse.de>
4677
4678 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4679 nb_iterations_upper_bound by one.
4680
4681 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4682
4683 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4684 for Silvermont.
4685
4686 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4687 core-avx-i, core-avx2 and slm.
4688
4689 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4690
4691 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4692
4693 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4694
4695 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4696 (stzx_24_<mode>): Likewise mra_operand.
4697
4698 2013-11-22 Jeff Law <law@redhat.com>
4699
4700 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4701 (thread_block_1): Do not cancel jump threads which go from
4702 inside a loop, through the header, then back inside the loop.
4703 (bb_ends_with_multiway_branch): New function.
4704 (thread_through_all_blocks): Handle threading cases which start
4705 in a loop through the loop header to a point in the loop.
4706
4707 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4708 jump thread path properly.
4709
4710 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4711
4712 * vec.h (auto_vec): New class.
4713 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4714 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4715 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4716 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4717 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4718 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4719 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4720 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4721 appropriate instead of vec for local variables.
4722
4723 2013-11-21 Teresa Johnson <tejohnson@google.com>
4724
4725 PR target/59233
4726 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4727 not understood by old_insns_match_p.
4728
4729 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4730
4731 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4732 little endian change.
4733 (vec_pack_sfix_trunc_v2df): Likewise.
4734 (vec_pack_ufix_trunc_v2df): Likewise.
4735 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4736 double checking of endianness.
4737
4738 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4739
4740 * tree-vect-generic.c (optimize_vector_constructor): New function.
4741 (expand_vector_operations_1): Call it.
4742
4743 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4744
4745 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4746 ix86_zero_extend_to_Pmode where appropriate.
4747 (ix86_expand_builtin): Ditto.
4748
4749 2013-11-21 Cary Coutant <ccoutant@google.com>
4750
4751 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4752 (add_linkage_name): Don't add linkage name for -g1.
4753 (decls_for_scope): Process subblocks for -g1.
4754 (dwarf2out_source_line): Output line tables for -g1.
4755 (dwarf2out_finish): Likewise.
4756 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4757 unused scopes for -g1.
4758 * opts.c (common_handle_option): Handle -g same as -g2.
4759 * doc/invoke.texi: Update description for -g1.
4760
4761 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4762
4763 * doc/extend.texi: Document htm builtins.
4764
4765 2013-11-21 Jeff Law <law@redhat.com>
4766
4767 PR tree-optimization/59221
4768 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4769 temporary equivalences when threading through joiner blocks.
4770
4771 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4772
4773 PR rtl-optimization/55950
4774 * real.c (real_sqrt): Remove function.
4775 * real.h (real_sqrt): Remove prototype.
4776 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4777 SQRT using real_sqrt.
4778
4779 2013-11-21 Richard Biener <rguenther@suse.de>
4780
4781 PR tree-optimization/59058
4782 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4783 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4784 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4785 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4786 (NITERS_KNOWN_P): Fold into ...
4787 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4788 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4789 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4790 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4791 (vect_do_peeling_for_alignment): Re-use precomputed niter
4792 instead of re-emitting it.
4793 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4794 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4795 * tree-vect-loop.c (vect_get_loop_niters): Use
4796 number_of_latch_executions.
4797 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4798 (vect_analyze_loop_form): Simplify.
4799 (vect_analyze_loop_operations): Move epilogue peeling code ...
4800 (vect_analyze_loop_2): ... here and adjust it to compute
4801 LOOP_VINFO_PEELING_FOR_NITER.
4802 (vect_estimate_min_profitable_iters): Use
4803 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4804 (vect_build_loop_niters): Emit on the preheader.
4805 (vect_generate_tmps_on_preheader): Likewise.
4806 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4807 of recomputing it. Adjust.
4808
4809 2013-11-21 Richard Biener <rguenther@suse.de>
4810
4811 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4812 LOC_LINE): Remove wrappers and fix all users.
4813 (struct _loop_vec_info): Remove loop_line_number member.
4814 (LOOP_VINFO_LOC): Remove.
4815 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4816 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4817 and LOC_LINE.
4818
4819 2013-11-21 Richard Biener <rguenther@suse.de>
4820
4821 * tree-ssa-forwprop.c (simplify_vce): New function.
4822 (ssa_forward_propagate_and_combine): Call it.
4823
4824 2013-11-21 Richard Biener <rguenther@suse.de>
4825
4826 * tree-vect-loop-manip.c (vect_build_loop_niters,
4827 vect_generate_tmps_on_preheader): Move ...
4828 * tree-vect-loop.c (vect_build_loop_niters,
4829 vect_generate_tmps_on_preheader): ... here and simplify.
4830 (vect_transform_loop): Call them here and pass down results
4831 to consumers.
4832 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4833 Get niter variables from caller.
4834 (vect_do_peeling_for_alignment): Likewise.
4835 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4836 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4837 Adjust prototypes.
4838
4839 2013-11-21 Richard Biener <rguenther@suse.de>
4840
4841 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4842 nb_iterations_upper_bound by one.
4843
4844 2013-11-21 Richard Biener <rguenther@suse.de>
4845
4846 PR tree-optimization/59058
4847 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4848 (build_size_arg_loc): Apply niter adjustment here.
4849 (generate_memset_builtin): Adjust.
4850 (generate_memcpy_builtin): Likewise.
4851 (classify_partition): Do not use number_of_exit_cond_executions
4852 but record whether niter needs to be adjusted.
4853
4854 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4855
4856 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4857 could throw.
4858
4859 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4860
4861 PR target/53976
4862 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4863 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4864 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4865 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4866 sh_optimize_sett_clrt pass.o to extra_objs.
4867
4868 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4869
4870 * cfg.c (dump_edge_info): Remove redundant comment.
4871 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4872 EXIT_BLOCK_PTR in comment.
4873 (try_optimize_cfg): Likewise.
4874 * cfgrtl.c (last_bb_in_partition): Likewise.
4875 * cgraph.c (cgraph_node_cannot_return): Likewise.
4876 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4877 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4878 * ipa-split.c (consider_split): Likewise.
4879 * profile.c (find_spanning_tree): Likewise.
4880 * sched-int.h (common_sched_info_def.add_block): Likewise.
4881 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4882 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4883 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4884 in comments to now removed ENTRY_BLOCK_PTR macro.
4885 (tree_forwarder_block_p): Reword reference in comment to
4886 EXIT_BLOCK_PTR.
4887 * tree-inline.c (copy_cfg_body): Reword references in comments to
4888 now removed ENTRY_BLOCK_PTR macro.
4889 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4890 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4891 a comma to the comment to clarify the meaning.
4892
4893 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4894
4895 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4896 Move to gimplify.c.
4897 (free_gimplify_stack): Add prototype.
4898 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4899 (struct gimplify_ctx): Relocate here.
4900 (gimplify_ctxp): Make static.
4901 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4902 list of struct gimplify_ctx.
4903 (push_gimplify_context): Add default parameters and allocate a struct
4904 from the pool.
4905 (pop_gimplify_context): Free a struct back to the pool.
4906 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4907 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4908 use a local 'struct gimplify_ctx'.
4909 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4910 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4911 Likewise.
4912 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4913 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4914 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4915 lower_omp_teams, execute_lower_omp): Likewise.
4916 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4917 * tree-inline.c (optimize_inline_calls): Likewise.
4918
4919 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4920
4921 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4922 (vsx_extract_<mode>): Likewise.
4923 (*vsx_extract_<mode>_one_le): New LE variant on
4924 *vsx_extract_<mode>_zero.
4925 (vsx_extract_v4sf): Adjust for little endian.
4926
4927 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4928
4929 PR rtl-optimization/59133
4930 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4931 new pseudos.
4932 (lra_create_new_reg_with_unique_value): Pass new argument value.
4933 (lra_emit_add, lra_emit_move): Ditto.
4934 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4935 (change_class): Rename to lra_change_class. Move to lra-int.h.
4936 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4937 change_class.
4938 (process_addr_reg, process_addr): Ditto.
4939 (curr_insn_transform): Ditto. Add check on old pseudo for
4940 optional reload.
4941 * lra-int.h (lra_get_regno_hard_regno): Move below.
4942 (lra_change_class): Renamed change_class from lra.c.
4943
4944 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4945
4946 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4947 the children of a NULL pointer.
4948
4949 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4950
4951 * lra.c (lra): Set lra_in_progress before check_rtl call.
4952 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4953 adding clobber regs when LRA is running.
4954
4955 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4956
4957 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4958 restriction for ISA_MIPS32R2.
4959 (ISA_HAS_LXC1_SXC1): New macro.
4960 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4961 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4962 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4963 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4964 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4965 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4966 (*<ANYF:storex>_<P:mode>): Likewise.
4967
4968 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4969
4970 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4971 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4972 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4973 * config/mips/mips.md (recip_condition): Remove mode attribute.
4974 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4975 <recip_condition>.
4976 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4977
4978 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4979
4980 PR target/59207
4981 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4982 Make sure neg2_ovf is set before being used.
4983
4984 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4985
4986 * plugin.def: Add comment about register_callback and
4987 invoke_plugin_callbacks_full.
4988
4989 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4990 Handle PLUGIN_INCLUDE_FILE event.
4991
4992 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4993
4994 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4995 allow subregs of TDmode in FPRs of smaller size in little-endian.
4996 (rs6000_split_multireg_move): When splitting an access to TDmode
4997 in FPRs, do not use simplify_gen_subreg.
4998
4999 2013-11-20 Joseph Myers <joseph@codesourcery.com>
5000
5001 PR middle-end/21718
5002 * real.c: Remove comment about decimal string conversion and
5003 rounding errors.
5004 (real_from_string): Use MPFR to convert nonzero decimal constant
5005 to REAL_VALUE_TYPE.
5006
5007 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5008
5009 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5010 endianness of the D registers for the legacy encodings.
5011
5012 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
5013
5014 PR rtl-optimization/54300
5015 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5016 outputs in a single-set are killed from the value chains.
5017
5018 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5019
5020 * cgraph.h (varpool_node): Add need_bounds_init field.
5021 * lto-cgraph.c (lto_output_varpool_node): Output
5022 need_bounds_init value.
5023 (input_varpool_node): Read need_bounds_init value.
5024 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5025
5026 2013-11-20 Jan Hubicka <jh@suse.cz>
5027
5028 * opts.c (finish_options): Imply -ffat-lto-objects with
5029 -fno-use-linker-plugin.
5030 * common.opt (fuse-linker-plugin): Add var.
5031
5032 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5033
5034 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5035 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5036 (gen_type_die_with_usage): Skip pointer bounds.
5037 (dwarf2out_global_decl): Likewise.
5038
5039 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5040
5041 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5042 from all insns.
5043
5044 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
5045
5046 PR target/57756
5047 * config/i386/i386.c (ix86_option_override_internal): Add missed
5048 argument prefix for 'ix86_fpmath'.
5049 * config/i386/ssemath.h: Add missed definition of
5050 TARGET_FPMATH_DEFAULT_P macros.
5051
5052 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5053 Mike Stump <mikestump@comcast.net>
5054 Richard Sandiford <rdsandiford@googlemail.com>
5055
5056 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5057 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5058 tree_fits_shwi_p or tree_fits_uhwi_p.
5059 * builtins.c (fold_builtin_powi): Likewise.
5060 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5061 Likewise.
5062 * dbxout.c (dbxout_symbol): Likewise.
5063 * expr.c (expand_expr_real_1): Likewise.
5064 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5065 (fold_binary_loc): Likewise.
5066 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5067 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5068 * omp-low.c (lower_omp_for_lastprivate): Likewise.
5069 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5070 * stor-layout.c (compute_record_mode): Likewise.
5071 * tree-cfg.c (verify_expr): Likewise.
5072 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5073 * tree-pretty-print.c (dump_array_domain): Likewise.
5074 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5075 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5076 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5077 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5078 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5079 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5080 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5081 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5082 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5083 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5084 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5085 (create_variable_info_for_1): Likewise.
5086 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5087 (vect_verify_datarefs_alignment): Likewise.
5088 (vect_analyze_data_ref_accesses): Likewise.
5089 (vect_prune_runtime_alias_test_list): Likewise.
5090 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5091
5092 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5093
5094 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5095 overflow. Use tree_to_shwi.
5096
5097 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5098
5099 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5100 HOST_WIDE_INTs when folding (x >> c) << c.
5101
5102 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5103 Dominik Vogt <vogt@linux.vnet.ibm.com>
5104
5105 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5106 int comparisons with an out of range condition code.
5107 (s390_optimize_nonescaping_tx): Skip empty BBs.
5108 Generate the new tbegin RTX when removing the FPR clobbers (with
5109 two SETs).
5110 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
5111 result before doing the retry calculations.
5112 (s390_init_builtins): Make tbegin "returns_twice" and tabort
5113 "noreturn".
5114 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5115 the TDB setting part of an tbegin.
5116 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5117 ("tx_assist"): Set unused argument to an immediate zero instead of
5118 loading zero into a GPR and pass it as argument.
5119 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5120 Remove inline and related attributes.
5121 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5122 (__TM_is_illegal, __TM_is_footprint_exceeded)
5123 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5124
5125 2013-11-20 Richard Biener <rguenther@suse.de>
5126
5127 PR lto/59035
5128 * lto-opts.c (lto_write_options): Write defaults only if
5129 they were not explicitely specified. Also write
5130 -ffp-contract default.
5131 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5132 conservatively.
5133 (run_gcc): Pass through -ffp-contract.
5134
5135 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5136
5137 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5138
5139 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5140
5141 * config/aarch64/aarch64-builtins.c
5142 (aarch64_simd_itype): Remove.
5143 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5144 (VAR1): Use qualifiers.
5145 (aarch64_build_scalar_type): New.
5146 (aarch64_build_vector_type): Likewise.
5147 (aarch64_build_type): Likewise.
5148 (aarch64_init_simd_builtins): Refactor, remove special cases,
5149 consolidate main loop.
5150 (aarch64_simd_expand_args): Likewise.
5151
5152 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5153
5154 PR c/53001
5155 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5156
5157 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
5158
5159 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5160
5161 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5162
5163 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5164 to "vec<>" instances.
5165 (build_pretty_printer): Register the vec<>* prettyprinter.
5166
5167 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5168
5169 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5170 (GdbSubprinter.handles_type): New.
5171 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5172 (GdbSubprinterRegex): New subclass of GdbSubprinter.
5173 (GdbPrettyPrinters.add_printer): Remove in favor of...
5174 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5175 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5176 (GdbPrettyPrinters.__call__): Update search for subprinter
5177 to use handles_type method.
5178 (build_pretty_printer): Update registration of subprinters to
5179 use the new API above, supporting multiple spelling of each type,
5180 and allowing for future regex-based subprinters.
5181
5182 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5183
5184 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5185 V16QI vector splat case for little endian.
5186
5187 2013-11-19 Jeff Law <law@redhat.com>
5188
5189 * tree-ssa-threadedge.c (thread_across_edge): After threading
5190 through a joiner, allow threading a normal block requiring duplication.
5191
5192 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5193 jump threading requests that would muck up the loop structures.
5194
5195 * tree-ssa-threadupdate.c: Fix trailing whitespace.
5196 * tree-ssa-threadupdate.h: Likewise.
5197
5198 2013-11-19 Mike Stump <mikestump@comcast.net>
5199
5200 * gdbinit.in: Add pmz to print out mpz values.
5201
5202 2013-11-20 Jan Hubicka <jh@suse.cz>
5203
5204 * common.opt (ffat-lto-objects): Disable by default.
5205 * doc/invoke.texi (fat-lto-objects): Update documentation.
5206 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5207
5208 2013-11-19 Martin Jambor <mjambor@suse.cz>
5209
5210 PR rtl-optimization/59099
5211 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5212 here.
5213 (ira): Move init_reg_equiv and call to
5214 split_live_ranges_for_shrink_wrap up, remove analyses around call
5215 to find_moveable_pseudos.
5216
5217 2013-11-20 Alan Modra <amodra@gmail.com>
5218
5219 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5220 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5221 to strict alignment on older processors when little-endian.
5222 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5223 for ELFv2.
5224
5225 2013-11-19 Teresa Johnson <tejohnson@google.com>
5226
5227 * common/config/i386/i386-common.c: Enable
5228 -freorder-blocks-and-partition at -O2 and up for x86.
5229 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5230 * opts.c (finish_options): Only warn if
5231 -freorder-blocks-and-partition was set on command line.
5232
5233 2013-11-19 Sriraman Tallam <tmsriram@google.com>
5234
5235 * final.c (final_scan_insn): Emit a label for the split
5236 cold function part. Label name is formed by suffixing
5237 the original function name with "cold".
5238
5239 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5240
5241 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5242 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5243 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5244 (EXIT_BLOCK_PTR_FOR_FN): ...this.
5245 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5246 cfun be explicit.
5247 (EXIT_BLOCK_PTR): Likewise.
5248 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5249 (FOR_ALL_BB_FN): Update for renaming of
5250 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5251
5252 * cfg.c (init_flow): Likewise.
5253 (check_bb_profile): Likewise.
5254 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5255 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5256 * cfghooks.c (account_profile_record): Likewise.
5257 * cfgloop.c (init_loops_structure): Likewise.
5258 * cgraphbuild.c (record_eh_tables): Likewise.
5259 (compute_call_stmt_bb_frequency): Likewise.
5260 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5261 * lto-streamer-in.c (input_cfg): Likewise.
5262 * predict.c (maybe_hot_frequency_p): Likewise.
5263 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5264 * tree-inline.c (initialize_cfun): Likewise.
5265 (copy_cfg_body): Likewise.
5266 (copy_body): Likewise.
5267 (tree_function_versioning): Likewise.
5268
5269 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5270 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5271 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5272 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5273 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5274 (connect_traces): Likewise.
5275 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5276 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5277 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5278 macro.
5279 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5280 EXIT_BLOCK_PTR.
5281 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5282 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5283 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5284 (rotate_loop): Likewise.
5285 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5286 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5287 EXIT_BLOCK_PTR.
5288 (alloc_aux_for_edges): Likewise.
5289 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5290 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5291 EXIT_BLOCK_PTR.
5292 (compact_blocks): Likewise.
5293 (clear_edges): Likewise.
5294 * cfganal.c (single_pred_before_succ_order): Remove usage of
5295 ENTRY_BLOCK_PTR macro.
5296 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5297 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5298 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5299 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5300 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5301 EXIT_BLOCK_PTR.
5302 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5303 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5304 EXIT_BLOCK_PTR.
5305 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5306 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5307 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5308 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5309 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5310 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5311 EXIT_BLOCK_PTR.
5312 (print_edge_list): Likewise.
5313 (create_edge_list): Likewise.
5314 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5315 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5316 EXIT_BLOCK_PTR.
5317 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5318 macro.
5319 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5320 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5321 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5322 (try_optimize_cfg): Likewise.
5323 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5324 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5325 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5326 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5327 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5328 (try_forward_edges): Likewise.
5329 (try_simplify_condjump): Likewise.
5330 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5331 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5332 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5333 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5334 EXIT_BLOCK_PTR.
5335 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5336 (expand_gimple_tailcall): Likewise.
5337 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5338 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5339 (tidy_fallthru_edges): Likewise.
5340 (verify_flow_info): Likewise.
5341 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5342 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5343 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5344 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5345 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5346 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5347 (get_loop_body_in_dom_order): Likewise.
5348 (get_loop_body): Likewise.
5349 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5350 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5351 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5352 macro.
5353 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5354 (fix_bb_placement): Likewise.
5355 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5356 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5357 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5358 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5359 EXIT_BLOCK_PTR.
5360 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5361 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5362 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5363 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5364 macro.
5365 (fixup_fallthru_exit_predecessor): Remove uses of macros:
5366 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5367 (fixup_reorder_chain): Likewise.
5368 (relink_block_chain): Likewise.
5369 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5370 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5371 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5372 (force_one_exit_fallthru): Likewise.
5373 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5374 EXIT_BLOCK_PTR.
5375 (rtl_verify_edges): Likewise.
5376 (commit_edge_insertions): Likewise.
5377 (commit_one_edge_insertion): Likewise.
5378 (rtl_split_edge): Likewise.
5379 (force_nonfallthru_and_redirect): Likewise.
5380 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5381 (skip_insns_after_block): Likewise.
5382 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5383 EXIT_BLOCK_PTR.
5384 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5385 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5386 EXIT_BLOCK_PTR.
5387 (contains_no_active_insn_p): Likewise.
5388 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5389 (entry_of_function): Likewise.
5390 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5391 (fixup_new_cold_bb): Likewise.
5392 (patch_jump_insn): Likewise.
5393 (try_redirect_by_replacing_jump): Likewise.
5394 (block_label): Likewise.
5395 (could_fall_through): Likewise.
5396 (can_fallthru): Likewise.
5397 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5398 ENTRY_BLOCK_PTR macro.
5399 (rebuild_cgraph_edges): Likewise.
5400 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5401 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5402 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5403 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5404 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5405 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5406 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5407 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5408 macro.
5409 (reg_nonzero_bits_for_combine): Likewise.
5410 (set_nonzero_bits_and_sign_copies): Likewise.
5411 (combine_instructions): Likewise.
5412 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5413 EXIT_BLOCK_PTR.
5414 (bypass_conditional_jumps): Likewise.
5415 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5416 (find_implicit_sets): Likewise.
5417 (cprop_jump): Likewise.
5418 * cse.c (cse_cc_succs): Likewise.
5419 (cse_find_path): Likewise.
5420 * df-problems.c (df_lr_confluence_0): Likewise.
5421 * df-scan.c (df_entry_block_defs_collect): Remove usage of
5422 ENTRY_BLOCK_PTR macro.
5423 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5424 * dominance.c (iterate_fix_dominators): Remove usage of
5425 ENTRY_BLOCK_PTR macro.
5426 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5427 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5428 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5429 EXIT_BLOCK_PTR.
5430 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5431 macro.
5432 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5433 EXIT_BLOCK_PTR.
5434 * domwalk.c (cmp_bb_postorder): Likewise.
5435 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5436 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5437 macro.
5438 (sjlj_emit_function_enter): Likewise.
5439 * final.c (compute_alignments): Likewise.
5440 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5441 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5442 (reposition_prologue_and_epilogue_notes): Remove usage of
5443 EXIT_BLOCK_PTR macro.
5444 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5445 EXIT_BLOCK_PTR.
5446 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5447 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5448 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5449 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5450 (compute_code_hoist_vbeinout): Likewise.
5451 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5452 (pre_expr_reaches_here_p_work): Likewise.
5453 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5454 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5455 EXIT_BLOCK_PTR.
5456 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5457 ENTRY_BLOCK_PTR macro.
5458 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5459 macro.
5460 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5461 ENTRY_BLOCK_PTR macro.
5462 * graphite-scop-detection.c (build_scops): Likewise.
5463 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5464 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5465 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5466 macro.
5467 (unlink_bb_notes): Likewise.
5468 (create_check_block_twin): Likewise.
5469 (init_before_recovery): Likewise.
5470 (sched_extend_bb): Likewise.
5471 (priority): Likewise.
5472 * hw-doloop.c (reorder_loops): Likewise.
5473 (discover_loop): Likewise.
5474 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5475 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5476 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5477 (block_has_only_trap): Likewise.
5478 (cond_exec_find_if_block): Likewise.
5479 (merge_if_block): Likewise.
5480 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5481 ENTRY_BLOCK_PTR macro.
5482 (record_modified): Likewise.
5483 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5484 EXIT_BLOCK_PTR macro.
5485 (local_pure_const): Likewise.
5486 * ipa-split.c (split_function): Remove uses of macros:
5487 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5488 (find_split_points): Likewise.
5489 (consider_split): Likewise.
5490 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5491 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5492 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5493 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5494 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5495 ENTRY_BLOCK_PTR macro.
5496 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5497 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5498 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5499 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5500 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5501 macro.
5502 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5503 EXIT_BLOCK_PTR.
5504 (compute_farthest): Likewise.
5505 (compute_available): Likewise.
5506 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5507 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5508 EXIT_BLOCK_PTR.
5509 (compute_earliest): Likewise.
5510 (compute_antinout_edge): Likewise.
5511 * loop-iv.c (simplify_using_initial_values): Remove usage of
5512 ENTRY_BLOCK_PTR macro.
5513 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5514 macro.
5515 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5516 macro.
5517 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5518 macro.
5519 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5520 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5521 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5522 macro.
5523 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5524 macro.
5525 * lto-streamer-out.c (output_cfg): Likewise.
5526 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5527 EXIT_BLOCK_PTR.
5528 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5529 * mode-switching.c (optimize_mode_switching): Likewise.
5530 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5531 * modulo-sched.c (rest_of_handle_sms): Likewise.
5532 (canon_loop): Likewise.
5533 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5534 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5535 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5536 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5537 macro.
5538 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5539 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5540 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5541 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5542 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5543 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5544 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5545 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5546 (gimple_predict_edge): Likewise.
5547 (probably_never_executed): Likewise.
5548 * profile.c (find_spanning_tree): Remove uses of macros:
5549 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5550 (branch_prob): Likewise.
5551 (compute_branch_probabilities): Likewise.
5552 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5553 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5554 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5555 (set_bb_counts): Likewise.
5556 (correct_negative_edge_counts): Likewise.
5557 (get_exec_counts): Likewise.
5558 (instrument_values): Likewise.
5559 (instrument_edges): Likewise.
5560 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5561 EXIT_BLOCK_PTR.
5562 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5563 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5564 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5565 (reg_to_stack): Likewise.
5566 * regs.h (REG_N_SETS): Likewise.
5567 * reload.c (find_dummy_reload): Likewise.
5568 (combine_reloads): Likewise.
5569 (push_reload): Likewise.
5570 * reload1.c (has_nonexceptional_receiver): Remove usage of
5571 EXIT_BLOCK_PTR macro.
5572 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5573 macro.
5574 (find_basic_block): Likewise.
5575 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5576 (schedule_ebbs): Likewise.
5577 * sched-int.h (sel_sched_p): Likewise.
5578 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5579 macro.
5580 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5581 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5582 EXIT_BLOCK_PTR.
5583 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5584 (extend_rgns): Likewise.
5585 (find_single_block_region): Likewise.
5586 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5587 ENTRY_BLOCK_PTR macro.
5588 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5589 (sel_create_recovery_block): Likewise.
5590 (bb_ends_ebb_p): Likewise.
5591 (sel_bb_end): Likewise.
5592 (sel_bb_head): Likewise.
5593 (free_lv_sets): Likewise.
5594 (init_lv_sets): Likewise.
5595 (tidy_control_flow): Likewise.
5596 (maybe_tidy_empty_bb): Likewise.
5597 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5598 (_succ_iter_start): Likewise.
5599 (sel_bb_empty_or_nop_p): Likewise.
5600 (get_loop_exit_edges_unique_dests): Likewise.
5601 (inner_loop_header_p): Likewise.
5602 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5603 (find_block_for_bookkeeping): Likewise.
5604 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5605 (insert_store): Likewise.
5606 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5607 ENTRY_BLOCK_PTR macro.
5608 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5609 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5610 (gate_tm_init): Likewise.
5611 (tm_region_init): Likewise.
5612 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5613 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5614 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5615 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5616 EXIT_BLOCK_PTR.
5617 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5618 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5619 EXIT_BLOCK_PTR.
5620 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5621 macro.
5622 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5623 EXIT_BLOCK_PTR.
5624 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5625 macro.
5626 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5627 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5628 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5629 (build_gimple_cfg): Likewise.
5630 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5631 (gimple_can_merge_blocks_p): Likewise.
5632 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5633 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5634 * tree-complex.c (update_parameter_components): Remove usage of
5635 ENTRY_BLOCK_PTR macro.
5636 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5637 EXIT_BLOCK_PTR macro.
5638 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5639 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5640 (delete_unreachable_blocks_update_callgraph): Likewise.
5641 (initialize_cfun): Likewise.
5642 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5643 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5644 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5645 * tree-into-ssa.c (update_ssa): Likewise.
5646 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5647 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5648 (rewrite_into_ssa): Likewise.
5649 (rewrite_debug_stmt_uses): Likewise.
5650 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5651 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5652 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5653 ENTRY_BLOCK_PTR macro.
5654 * tree-scalar-evolution.h (block_before_loop): Likewise.
5655 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5656 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5657 EXIT_BLOCK_PTR.
5658 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5659 macro.
5660 (propagate_dereference_distances): Remove uses of macros:
5661 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5662 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5663 macro.
5664 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5665 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5666 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5667 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5668 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5669 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5670 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5671 (mark_control_dependent_edges_necessary): Remove uses of macros:
5672 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5673 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5674 ENTRY_BLOCK_PTR macro.
5675 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5676 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5677 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5678 (calculate_live_on_exit): Likewise.
5679 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5680 (loe_visit_block): Likewise.
5681 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5682 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5683 (live_on_entry): Likewise.
5684 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5685 EXIT_BLOCK_PTR macro.
5686 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5687 ENTRY_BLOCK_PTR macro.
5688 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5689 (bound_difference): Likewise.
5690 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5691 of EXIT_BLOCK_PTR macro.
5692 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5693 of ENTRY_BLOCK_PTR macro.
5694 * tree-ssa-math-opts.c (register_division_in): Likewise.
5695 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5696 * tree-ssa-pre.c (compute_avail): Likewise.
5697 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5698 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5699 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5700 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5701 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5702 EXIT_BLOCK_PTR.
5703 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5704 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5705 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5706 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5707 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5708 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5709 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5710 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5711 (find_pdom): Likewise.
5712 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5713 * tree-stdarg.c (reachable_at_most_once): Likewise.
5714 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5715 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5716 (eliminate_tail_call): Likewise.
5717 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5718 macro.
5719 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5720 * var-tracking.c (vt_initialize): Remove uses of macros:
5721 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5722 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5723 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5724 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5725 EXIT_BLOCK_PTR.
5726 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5727 macro.
5728 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5729 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5730 of EXIT_BLOCK_PTR macro.
5731 * config/arm/arm.c (require_pic_register): Remove usage of
5732 ENTRY_BLOCK_PTR macro.
5733 (arm_r3_live_at_start_p): Likewise.
5734 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5735 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5736 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5737 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5738 ENTRY_BLOCK_PTR macro.
5739 * config/i386/i386.c (ix86_count_insn): Likewise.
5740 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5741 (ix86_pad_short_function): Likewise.
5742 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5743 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5744 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5745 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5746 (ix86_expand_epilogue): Likewise.
5747 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5748 (ia64_expand_prologue): Likewise.
5749
5750 2013-11-19 Catherine Moore <clm@codesourcery.com>
5751
5752 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5753 * config/mips/mips.opt (mfix-rm7000): New option.
5754 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5755 * config/mips/mips.c (mips_reorg_process_insns): Disable
5756 noreorder for TARGET_FIX_RM7000.
5757
5758 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5759
5760 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5761
5762 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5763
5764 * config/arm/arm.c (arm_new_rtx_costs):
5765 Handle narrow mode add-shifts properly.
5766 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5767 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5768 Declare extern.
5769
5770 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5771
5772 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5773
5774 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5775
5776 * config/rs6000/vector.md ("mov<mode>"): Do not call
5777 rs6000_emit_le_vsx_move to move into or out of GPRs.
5778 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5779 source and destination are not GPR hard regs.
5780
5781 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5782
5783 * basic-block.h (n_edges_for_function): Rename macro to...
5784 (n_edges_for_fn): ...this.
5785 (n_edges): Eliminate macro as work towards making uses of
5786 cfun be explicit.
5787
5788 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5789 to "n_edges_for_fn".
5790
5791 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5792 (clear_edges): Likewise.
5793 (free_edge): Likewise.
5794 * cfghooks.c (dump_flow_info): Likewise.
5795 * cprop.c (is_too_expensive): Likewise.
5796 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5797 * gcse.c (is_too_expensive): Likewise.
5798 (prune_insertions_deletions): Likewise.
5799 * mcf.c (create_fixup_graph): Likewise.
5800 * sched-rgn.c (haifa_find_rgns): Likewise.
5801 * tree-cfg.c (gimple_dump_cfg): Likewise.
5802 * var-tracking.c (variable_tracking_main_1): Likewise.
5803
5804 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5805
5806 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5807 length lines.
5808
5809 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5810
5811 * config/aarch64/aarch64.md
5812 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5813
5814 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5815
5816 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5817
5818 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5819
5820 * varasm.c (align_variable): Give error instead of warning for
5821 unsupported alignment.
5822 (assemble_noswitch_variable): Likewise.
5823
5824 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5825
5826 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5827 cb_file_change.
5828
5829 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5830
5831 * loop-doloop.c (doloop_optimize_loops): Remove unused
5832 loop iterator argument from FOR_EACH_LOOP.
5833
5834 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5835
5836 Convert gimple types from a union to C++ inheritance.
5837 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5838 * coretypes.h (union gimple_statement_d): Remove declaration.
5839 (gimple): Convert from being a "union gimple_statement_d *"
5840 to a "struct gimple_statement_base *".
5841 (const_gimple): Likewise (with "const").
5842 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5843 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5844 * gimple-pretty-print.c (debug): Change parameter from a
5845 "gimple_statement_d &" to a "gimple_statement_base &".
5846 (debug): Change parameter from a "gimple_statement_d *" to
5847 a "gimple_statement_base *".
5848 * gimple-pretty-print.h (debug): Update declarations as above.
5849 * gimple.c (gimple_alloc_stat): Update for renaming of
5850 ggc_alloc_cleared_gimple_statement_d_stat to
5851 ggc_alloc_cleared_gimple_statement_stat.
5852 * gimple.h: Include "is-a.h" for use by is_a_helper
5853 specializations in followup autogenerated patch.
5854 (struct gimple statement_base): Make this type usable as a base
5855 class by adding "desc", "tag" and "variable_size" to GTY, thus
5856 using opting-in to gengtype's support for simple inheritance.
5857 (gimple_statement_with_ops_base): Convert to a subclass of
5858 gimple_statement_base, dropping initial "gsbase" field. Note that
5859 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5860 (gimple_statement_with_ops): Convert to a subclass of
5861 gimple_statement_with_ops_base, dropping initial "opbase" field.
5862 Add tag value to GTY marking. Update marking of op field to
5863 reflect how num_ops field is accessed via inheritance.
5864 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5865 gimple_statement_with_ops_base, dropping initial "opbase" field.
5866 Add tag value to GTY marking.
5867 (gimple_statement_with_memory_ops): Convert to a subclass of
5868 public gimple_statement_with_memory_ops_base, dropping initial
5869 "membase" field. Add tag value to GTY marking. Update marking
5870 of op field to reflect how num_ops field is accessed via inheritance.
5871 (gimple_statement_call): Analogous changes that also update the
5872 marking of the "u" union.
5873 (gimple_statement_omp): Convert to a subclass of
5874 gimple_statement_base, dropping initial "gsbase" field, adding
5875 tag value to GTY marking.
5876 (gimple_statement_bind): Likewise.
5877 (gimple_statement_catch): Likewise.
5878 (gimple_statement_eh_filter): Likewise.
5879 (gimple_statement_eh_else): Likewise.
5880 (gimple_statement_eh_mnt): Likewise.
5881 (gimple_statement_phi): Likewise.
5882 (gimple_statement_eh_ctrl): Likewise.
5883 (gimple_statement_try): Likewise.
5884 (gimple_statement_wce): Likewise.
5885 (gimple_statement_asm): Convert to a subclass of
5886 gimple_statement_with_memory_ops_base, dropping initial
5887 "membase" field, adding tag value to GTY marking, and updating
5888 marking of op field.
5889 (gimple_statement_omp_critical): Convert to a subclass of
5890 gimple_statement_omp, dropping initial "omp" field, adding tag
5891 value to GTY marking.
5892 (gimple_statement_omp_for): Likewise.
5893 (gimple_statement_omp_parallel): Likewise.
5894 (gimple_statement_omp_task): Convert to a subclass of
5895 gimple_statement_omp_parallel, dropping initial "par" field,
5896 adding tag value to GTY marking.
5897 (gimple_statement_omp_sections): Convert to a subclass of
5898 gimple_statement_omp, dropping initial "omp" field, adding
5899 tag value to GTY marking.
5900 (gimple_statement_omp_continue): Convert to a subclass of
5901 gimple_statement_base, dropping initial "gsbase" field, adding
5902 tag value to GTY marking.
5903 (gimple_statement_omp_single): Convert to a subclass of
5904 gimple_statement_omp, dropping initial "omp" field, adding
5905 tag value to GTY marking.
5906 (gimple_statement_omp_atomic_load): Convert to a subclass of
5907 gimple_statement_base, dropping initial "gsbase" field, adding
5908 tag value to GTY marking.
5909 (gimple_statement_omp_atomic_store): Convert to a subclass of
5910 gimple_statement_base, dropping initial "gsbase" field, adding
5911 tag value to GTY marking.
5912 (gimple_statement_transaction): Convert to a subclass of
5913 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5914 field, adding tag value to GTY marking.
5915 (union gimple_statement_d): Remove.
5916 * system.h (CONST_CAST_GIMPLE): Update to use
5917 "struct gimple_statement_base *" rather than
5918 "union gimple_statement_d *".
5919 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5920 gimple_statement_d to gimple_statement_base.
5921
5922 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5923 (gimple_set_use_ops): Port from union to usage of as_a.
5924 (gimple_set_vuse): Likewise.
5925 (gimple_set_vdef): Likewise.
5926 (gimple_call_internal_fn): Port from union to a static_cast,
5927 given that the type has already been asserted.
5928 (gimple_omp_body_ptr): Port from unchecked union usage to
5929 a static_cast.
5930 (gimple_omp_set_body): Likewise.
5931
5932 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5933 gimple types to a true class hierarchy.
5934 (update_call_edge_frequencies): Likewise.
5935 (gsi_insert_seq_nodes_before): Likewise.
5936 (gsi_insert_seq_nodes_after): Likewise.
5937 (gsi_split_seq_after): Likewise.
5938 (gsi_set_stmt): Likewise.
5939 (gsi_split_seq_before): Likewise.
5940 (gsi_remove): Likewise.
5941 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5942 (gsi_next): Likewise.
5943 (gsi_prev): Likewise.
5944 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5945 * gimple-ssa.h (gimple_vuse_op): Likewise.
5946 (gimple_vdef_op): Likewise.
5947 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5948 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5949 * gimple.c (gimple_set_code): Likewise.
5950 (gimple_alloc_stat): Likewise.
5951 (gimple_set_subcode): Likewise.
5952 (gimple_build_call_internal_1): Likewise.
5953 (gimple_check_failed): Likewise.
5954 (gimple_call_flags): Likewise.
5955 (gimple_set_bb): Likewise.
5956 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5957 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5958 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5959 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5960 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5961 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5962 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5963 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5964 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5965 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5966 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5967 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5968 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5969 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5970 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5971 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5972 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5973 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5974 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5975 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5976 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5977 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5978 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5979 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5980 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5981 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5982 Likewise.
5983 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5984 Likewise.
5985 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5986 Likewise.
5987 (is_a_helper <const gimple_statement_omp_atomic_store>
5988 (const_gimple)): Likewise.
5989 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5990 Likewise.
5991 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5992 Likewise.
5993 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5994 Likewise.
5995 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5996 Likewise.
5997 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5998 Likewise.
5999 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
6000 Likewise.
6001 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
6002 Likewise.
6003 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
6004 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
6005 Likewise.
6006 (gimple_seq_last): Update for conversion of gimple types to a true
6007 class hierarchy.
6008 (gimple_seq_set_last): Likewise.
6009 (gimple_code): Likewise.
6010 (gimple_bb): Likewise.
6011 (gimple_block): Likewise.
6012 (gimple_set_block): Likewise.
6013 (gimple_location): Likewise.
6014 (gimple_location_ptr): Likewise.
6015 (gimple_set_location): Likewise.
6016 (gimple_no_warning_p): Likewise.
6017 (gimple_set_no_warning): Likewise.
6018 (gimple_set_visited): Likewise.
6019 (gimple_visited_p): Likewise.
6020 (gimple_set_plf): Likewise.
6021 (gimple_plf): Likewise.
6022 (gimple_set_uid): Likewise.
6023 (gimple_uid): Likewise.
6024 (gimple_init_singleton): Likewise.
6025 (gimple_modified_p): Likewise.
6026 (gimple_set_modified): Likewise.
6027 (gimple_expr_code): Likewise.
6028 (gimple_has_volatile_ops): Likewise.
6029 (gimple_set_has_volatile_ops): Likewise.
6030 (gimple_omp_subcode): Likewise.
6031 (gimple_omp_set_subcode): Likewise.
6032 (gimple_omp_return_set_nowait): Likewise.
6033 (gimple_omp_section_set_last): Likewise.
6034 (gimple_omp_parallel_set_combined_p): Likewise.
6035 (gimple_omp_atomic_set_need_value): Likewise.
6036 (gimple_omp_atomic_set_seq_cst): Likewise.
6037 (gimple_num_ops): Likewise.
6038 (gimple_set_num_ops): Likewise.
6039 (gimple_assign_nontemporal_move_p): Likewise.
6040 (gimple_assign_set_nontemporal_move): Likewise.
6041 (gimple_assign_rhs_code): Likewise.
6042 (gimple_assign_set_rhs_code): Likewise.
6043 (gimple_call_internal_p): Likewise.
6044 (gimple_call_with_bounds_p): Likewise.
6045 (gimple_call_set_with_bounds): Likewise.
6046 (gimple_call_set_tail): Likewise.
6047 (gimple_call_tail_p): Likewise.
6048 (gimple_call_set_return_slot_opt): Likewise.
6049 (gimple_call_return_slot_opt_p): Likewise.
6050 (gimple_call_set_from_thunk): Likewise.
6051 (gimple_call_from_thunk_p): Likewise.
6052 (gimple_call_set_va_arg_pack): Likewise.
6053 (gimple_call_va_arg_pack_p): Likewise.
6054 (gimple_call_set_nothrow): Likewise.
6055 (gimple_call_set_alloca_for_var): Likewise.
6056 (gimple_call_alloca_for_var_p): Likewise.
6057 (gimple_call_copy_flags): Likewise.
6058 (gimple_cond_code): Likewise.
6059 (gimple_cond_set_code): Likewise.
6060 (gimple_cond_make_false): Likewise.
6061 (gimple_cond_make_true): Likewise.
6062 (gimple_asm_volatile_p): Likewise.
6063 (gimple_asm_set_volatile): Likewise.
6064 (gimple_asm_set_input): Likewise.
6065 (gimple_asm_input_p): Likewise.
6066 (gimple_try_kind): Likewise.
6067 (gimple_try_set_kind): Likewise.
6068 (gimple_try_catch_is_cleanup): Likewise.
6069 (gimple_try_set_catch_is_cleanup): Likewise.
6070 (gimple_wce_cleanup_eh_only): Likewise.
6071 (gimple_wce_set_cleanup_eh_only): Likewise.
6072 (gimple_debug_bind_p): Likewise.
6073 (gimple_debug_source_bind_p): Likewise.
6074 (gimple_omp_for_set_kind): Likewise.
6075 (gimple_omp_for_set_combined_p): Likewise.
6076 (gimple_omp_for_set_combined_into_p): Likewise.
6077 (gimple_omp_target_set_kind): Likewise.
6078 (gimple_transaction_subcode): Likewise.
6079 (gimple_transaction_set_subcode): Likewise.
6080 (gimple_predict_predictor): Likewise.
6081 (gimple_predict_set_predictor): Likewise.
6082 (gimple_predict_outcome): Likewise.
6083 (gimple_predict_set_outcome): Likewise.
6084 (gimple_transaction_set_label): Likewise.
6085 (gimple_transaction_set_body): Likewise.
6086 (gimple_transaction_label_ptr): Likewise.
6087 (gimple_transaction_label): Likewise.
6088 (gimple_transaction_body_ptr): Likewise.
6089 (gimple_omp_continue_set_control_use): Likewise.
6090 (gimple_omp_continue_control_use_ptr): Likewise.
6091 (gimple_omp_continue_control_use): Likewise.
6092 (gimple_omp_continue_set_control_def): Likewise.
6093 (gimple_omp_continue_control_def_ptr): Likewise.
6094 (gimple_omp_continue_control_def): Likewise.
6095 (gimple_omp_atomic_load_rhs_ptr): Likewise.
6096 (gimple_omp_atomic_load_rhs): Likewise.
6097 (gimple_omp_atomic_load_set_rhs): Likewise.
6098 (gimple_omp_atomic_load_lhs_ptr): Likewise.
6099 (gimple_omp_atomic_load_lhs): Likewise.
6100 (gimple_omp_atomic_load_set_lhs): Likewise.
6101 (gimple_omp_atomic_store_val_ptr): Likewise.
6102 (gimple_omp_atomic_store_val): Likewise.
6103 (gimple_omp_atomic_store_set_val): Likewise.
6104 (gimple_omp_for_cond): Likewise.
6105 (gimple_omp_for_set_cond): Likewise.
6106 (gimple_omp_sections_set_control): Likewise.
6107 (gimple_omp_sections_control_ptr): Likewise.
6108 (gimple_omp_sections_control): Likewise.
6109 (gimple_omp_sections_set_clauses): Likewise.
6110 (gimple_omp_sections_clauses_ptr): Likewise.
6111 (gimple_omp_sections_clauses): Likewise.
6112 (gimple_omp_teams_set_clauses): Likewise.
6113 (gimple_omp_teams_clauses_ptr): Likewise.
6114 (gimple_omp_teams_clauses): Likewise.
6115 (gimple_omp_target_set_data_arg): Likewise.
6116 (gimple_omp_target_data_arg_ptr): Likewise.
6117 (gimple_omp_target_data_arg): Likewise.
6118 (gimple_omp_target_set_child_fn): Likewise.
6119 (gimple_omp_target_child_fn_ptr): Likewise.
6120 (gimple_omp_target_child_fn): Likewise.
6121 (gimple_omp_target_set_clauses): Likewise.
6122 (gimple_omp_target_clauses_ptr): Likewise.
6123 (gimple_omp_target_clauses): Likewise.
6124 (gimple_omp_single_set_clauses): Likewise.
6125 (gimple_omp_single_clauses_ptr): Likewise.
6126 (gimple_omp_single_clauses): Likewise.
6127 (gimple_omp_task_set_arg_align): Likewise.
6128 (gimple_omp_task_arg_align_ptr): Likewise.
6129 (gimple_omp_task_arg_align): Likewise.
6130 (gimple_omp_task_set_arg_size): Likewise.
6131 (gimple_omp_task_arg_size_ptr): Likewise.
6132 (gimple_omp_task_arg_size): Likewise.
6133 (gimple_omp_task_set_copy_fn): Likewise.
6134 (gimple_omp_task_copy_fn_ptr): Likewise.
6135 (gimple_omp_task_copy_fn): Likewise.
6136 (gimple_omp_task_set_data_arg): Likewise.
6137 (gimple_omp_task_data_arg_ptr): Likewise.
6138 (gimple_omp_task_data_arg): Likewise.
6139 (gimple_omp_task_set_child_fn): Likewise.
6140 (gimple_omp_task_child_fn_ptr): Likewise.
6141 (gimple_omp_task_child_fn): Likewise.
6142 (gimple_omp_task_set_clauses): Likewise.
6143 (gimple_omp_task_clauses_ptr): Likewise.
6144 (gimple_omp_task_clauses): Likewise.
6145 (gimple_omp_parallel_set_data_arg): Likewise.
6146 (gimple_omp_parallel_data_arg_ptr): Likewise.
6147 (gimple_omp_parallel_data_arg): Likewise.
6148 (gimple_omp_parallel_set_child_fn): Likewise.
6149 (gimple_omp_parallel_child_fn_ptr): Likewise.
6150 (gimple_omp_parallel_child_fn): Likewise.
6151 (gimple_omp_parallel_set_clauses): Likewise.
6152 (gimple_omp_parallel_clauses_ptr): Likewise.
6153 (gimple_omp_parallel_clauses): Likewise.
6154 (gimple_omp_for_set_pre_body): Likewise.
6155 (gimple_omp_for_pre_body_ptr): Likewise.
6156 (gimple_omp_for_set_incr): Likewise.
6157 (gimple_omp_for_incr_ptr): Likewise.
6158 (gimple_omp_for_incr): Likewise.
6159 (gimple_omp_for_set_final): Likewise.
6160 (gimple_omp_for_final_ptr): Likewise.
6161 (gimple_omp_for_final): Likewise.
6162 (gimple_omp_for_set_initial): Likewise.
6163 (gimple_omp_for_initial_ptr): Likewise.
6164 (gimple_omp_for_initial): Likewise.
6165 (gimple_omp_for_set_index): Likewise.
6166 (gimple_omp_for_index_ptr): Likewise.
6167 (gimple_omp_for_index): Likewise.
6168 (gimple_omp_for_collapse): Likewise.
6169 (gimple_omp_for_set_clauses): Likewise.
6170 (gimple_omp_for_clauses_ptr): Likewise.
6171 (gimple_omp_for_clauses): Likewise.
6172 (gimple_omp_critical_set_name): Likewise.
6173 (gimple_omp_critical_name_ptr): Likewise.
6174 (gimple_omp_critical_name): Likewise.
6175 (gimple_eh_dispatch_set_region): Likewise.
6176 (gimple_eh_dispatch_region): Likewise.
6177 (gimple_resx_set_region): Likewise.
6178 (gimple_resx_region): Likewise.
6179 (gimple_phi_set_arg): Likewise.
6180 (gimple_phi_arg): Likewise.
6181 (gimple_phi_set_result): Likewise.
6182 (gimple_phi_result_ptr): Likewise.
6183 (gimple_phi_result): Likewise.
6184 (gimple_phi_num_args): Likewise.
6185 (gimple_phi_capacity): Likewise.
6186 (gimple_wce_set_cleanup): Likewise.
6187 (gimple_wce_cleanup_ptr): Likewise.
6188 (gimple_try_set_cleanup): Likewise.
6189 (gimple_try_set_eval): Likewise.
6190 (gimple_try_cleanup_ptr): Likewise.
6191 (gimple_try_eval_ptr): Likewise.
6192 (gimple_eh_else_set_e_body): Likewise.
6193 (gimple_eh_else_set_n_body): Likewise.
6194 (gimple_eh_else_e_body_ptr): Likewise.
6195 (gimple_eh_else_n_body_ptr): Likewise.
6196 (gimple_eh_must_not_throw_set_fndecl): Likewise.
6197 (gimple_eh_must_not_throw_fndecl): Likewise.
6198 (gimple_eh_filter_set_failure): Likewise.
6199 (gimple_eh_filter_set_types): Likewise.
6200 (gimple_eh_filter_failure_ptr): Likewise.
6201 (gimple_eh_filter_types_ptr): Likewise.
6202 (gimple_eh_filter_types): Likewise.
6203 (gimple_catch_set_handler): Likewise.
6204 (gimple_catch_set_types): Likewise.
6205 (gimple_catch_handler_ptr): Likewise.
6206 (gimple_catch_types_ptr): Likewise.
6207 (gimple_catch_types): Likewise.
6208 (gimple_asm_string): Likewise.
6209 (gimple_asm_set_label_op): Likewise.
6210 (gimple_asm_label_op): Likewise.
6211 (gimple_asm_set_clobber_op): Likewise.
6212 (gimple_asm_clobber_op): Likewise.
6213 (gimple_asm_set_output_op): Likewise.
6214 (gimple_asm_output_op_ptr): Likewise.
6215 (gimple_asm_output_op): Likewise.
6216 (gimple_asm_set_input_op): Likewise.
6217 (gimple_asm_input_op_ptr): Likewise.
6218 (gimple_asm_input_op): Likewise.
6219 (gimple_asm_nlabels): Likewise.
6220 (gimple_asm_nclobbers): Likewise.
6221 (gimple_asm_noutputs): Likewise.
6222 (gimple_asm_ninputs): Likewise.
6223 (gimple_bind_set_block): Likewise.
6224 (gimple_bind_block): Likewise.
6225 (gimple_bind_add_seq): Likewise.
6226 (gimple_bind_add_stmt): Likewise.
6227 (gimple_bind_set_body): Likewise.
6228 (gimple_bind_body_ptr): Likewise.
6229 (gimple_bind_append_vars): Likewise.
6230 (gimple_bind_set_vars): Likewise.
6231 (gimple_bind_vars): Likewise.
6232 (gimple_call_clobber_set): Likewise.
6233 (gimple_call_use_set): Likewise.
6234 (gimple_call_set_internal_fn): Likewise.
6235 (gimple_call_set_fntype): Likewise.
6236 (gimple_call_fntype): Likewise.
6237 (gimple_omp_return_lhs_ptr): Likewise.
6238 (gimple_omp_return_lhs): Likewise.
6239 (gimple_omp_return_set_lhs): Likewise.
6240 (gimple_omp_taskreg_set_data_arg): Likewise.
6241 (gimple_omp_taskreg_data_arg_ptr): Likewise.
6242 (gimple_omp_taskreg_data_arg): Likewise.
6243 (gimple_omp_taskreg_set_child_fn): Likewise.
6244 (gimple_omp_taskreg_child_fn_ptr): Likewise.
6245 (gimple_omp_taskreg_child_fn): Likewise.
6246 (gimple_omp_taskreg_set_clauses): Likewise.
6247 (gimple_omp_taskreg_clauses_ptr): Likewise.
6248 (gimple_omp_taskreg_clauses): Likewise.
6249 (gimple_vuse): Likewise.
6250 (gimple_vdef): Likewise.
6251 (gimple_vuse_ptr): Likewise.
6252 (gimple_vdef_ptr): Likewise.
6253 * tree-inline.c (copy_debug_stmt): Likewise.
6254 * tree-phinodes.c (make_phi_node): Likewise.
6255
6256 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6257 (is_a_helper <gimple_statement_with_ops>::test): New.
6258 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6259 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6260
6261 * gimple-streamer-in.c (input_gimple_stmt): Port from union
6262 access to use of as_a.
6263 * gimple.c (gimple_build_asm_1): Likewise.
6264 (gimple_build_try): Likewise. Also, return a specific subclass
6265 rather than just gimple.
6266 (gimple_build_resx): Port from union access to use of as_a.
6267 (gimple_build_eh_dispatch): Likewise.
6268 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
6269 now that gengtype no longer provides a typed allocator function.
6270 (gimple_copy): Likewise.
6271 * gimple.h (gimple_build_try): Return a specific subclass rather
6272 than just gimple.
6273 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6274 with subclass access by making use of new return type of
6275 gimple_build_try.
6276 * tree-phinodes.c: (allocate_phi_node): Return a
6277 "gimple_statement_phi *" rather than just a gimple.
6278 (resize_phi_node): Likewise.
6279 (make_phi_node): Replace union access with subclass access by
6280 making use of new return type of allocate_phi_node.
6281 (reserve_phi_args_for_new_edge): Replace union access with as_a.
6282 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6283 than just a gimple.
6284 (remove_phi_args): Update for change to remove_phi_arg_num.
6285
6286 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6287 code field to reflect inheritance, rather than embedding of
6288 the base gimple type.
6289
6290 2013-11-19 Richard Biener <rguenther@suse.de>
6291
6292 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6293 and destructor and make fel_next a member function.
6294 (fel_next): Transform into ...
6295 (loop_iterator::next): ... this.
6296 (fel_init): Transform into ...
6297 (loop_iterator::loop_iterator): ... this.
6298 (loop_iterator::~loop_iterator): New.
6299 (FOR_EACH_LOOP): Remove loop-iterator argument.
6300 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6301 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6302 graphite-clast-to-gimple.c, graphite-scop-detection.c,
6303 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6304 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6305 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6306 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6307 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6308 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6309 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6310 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6311 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6312 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
6313 FOR_EACH_LOOP_BREAK with break.
6314
6315 2013-11-19 Richard Biener <rguenther@suse.de>
6316
6317 PR tree-optimization/59164
6318 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6319 Uncomment assert.
6320 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6321 whether we can create an epilogue loop to reflect thecases where
6322 we create one.
6323
6324 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
6325
6326 * graphite-sese-to-poly.c: Include expr.h.
6327
6328 2013-11-19 Richard Biener <rguenther@suse.de>
6329
6330 PR middle-end/58956
6331 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6332 loads into stmts that may clobber it.
6333
6334 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
6335
6336 * cgraphunit.c (symtab_terminator): New variable.
6337 (queued_nodes): Renamed from first. Use symtab_terminator as
6338 initializer.
6339 (analyze_functions): Adjust accordingly.
6340 (cgraph_process_new_functions): Return void.
6341 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6342
6343 2013-11-19 Marek Polacek <polacek@redhat.com>
6344
6345 * opts.c (common_handle_option): Add -fsanitize=null option.
6346 Turn off -fdelete-null-pointer-checks option when doing the
6347 NULL pointer checking.
6348 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6349 * tree-pass.h (make_pass_ubsan): Declare.
6350 (make_pass_sanopt): Declare.
6351 * timevar.def (TV_TREE_UBSAN): New timevar.
6352 * passes.def: Add pass_sanopt and pass_ubsan.
6353 * ubsan.h (ubsan_null_ckind): New enum.
6354 (ubsan_mismatch_data): New struct.
6355 (ubsan_expand_null_ifn): Declare.
6356 (ubsan_create_data): Adjust declaration.
6357 (ubsan_type_descriptor): Likewise.
6358 * asan.c: Include "ubsan.h".
6359 (pass_data_sanopt): New pass.
6360 (execute_sanopt): New function.
6361 (gate_sanopt): Likewise.
6362 (make_pass_sanopt): Likewise.
6363 (class pass_sanopt): New class.
6364 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6365 gimple-iterator.h and cfgloop.h.
6366 (PROB_VERY_UNLIKELY): Define.
6367 (tree_type_map_hash): New function.
6368 (ubsan_type_descriptor): Add new parameter.
6369 Improve type name generation.
6370 (ubsan_create_data): Add new parameter. Add pointer data into
6371 ubsan structure.
6372 (ubsan_expand_null_ifn): New function.
6373 (instrument_member_call): Likewise.
6374 (instrument_mem_ref): Likewise.
6375 (instrument_null): Likewise.
6376 (ubsan_pass): Likewise.
6377 (gate_ubsan): Likewise.
6378 (make_pass_ubsan): Likewise.
6379 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6380 (class pass_ubsan): New class.
6381 (pass_data_ubsan): New pass.
6382 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6383 * internal-fn.c (expand_UBSAN_NULL): New function.
6384 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6385 even when !flag_toplevel_reorder.
6386 * internal-fn.def (UBSAN_NULL): New.
6387
6388 2013-11-19 Jan Hubicka <jh@suse.cz>
6389
6390 * cgraph.c (cgraph_create_indirect_edge): Use
6391 get_polymorphic_call_info.
6392 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6393 maybe_in_construction and maybe_derived_type.
6394 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6395 (ipa_dummy_polymorphic_call_context): New global var.
6396 (possible_polymorphic_call_targets): Add context paramter.
6397 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6398 (possible_polymorphic_call_target_p): Likewise.
6399 (get_polymorphic_call_info): New function.
6400 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6401 (add_type_duplicate): Remove forgotten debug output.
6402 (method_class_type): Add sanity check.
6403 (maybe_record_node): Add FINALP parameter.
6404 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6405 by info by get_binfo_at_offset.
6406 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6407 parameters; pass them to record-binfo.
6408 (polymorphic_call_target_d): Add context and FINAL.
6409 (polymorphic_call_target_hasher::hash): Hash context.
6410 (polymorphic_call_target_hasher::equal): Compare context.
6411 (free_polymorphic_call_targets_hash):
6412 (get_class_context): New function.
6413 (contains_type_p): New function.
6414 (get_polymorphic_call_info): New function.
6415 (walk_bases): New function.
6416 (possible_polymorphic_call_targets): Add context parameter; honnor it.
6417 (dump_possible_polymorphic_call_targets): Dump context.
6418 (possible_polymorphic_call_target_p): Add context.
6419 (update_type_inheritance_graph): Update comment.s
6420 (ipa_set_jf_known_type): Assert that compoentn type is known.
6421 (ipa_note_param_call): Do not tamper with offsets.
6422 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6423 outer type.
6424 (update_indirect_edges_after_inlining): Likewise.
6425 (ipa_write_indirect_edge_info): Stream new fields.
6426 (ipa_read_indirect_edge_info): Stream in new fields.
6427
6428 2013-11-19 Jan Hubicka <jh@suse.cz>
6429
6430 * tree-pretty-print.c (dump_generic_node): Print class type of
6431 OBJ_TYPE_REF.
6432
6433 2013-11-19 Joey Ye <joey.ye@arm.com>
6434
6435 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6436 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6437 for new option.
6438 * config/arm/arm.c (arm_option_override): By default disable
6439 -marm-pic-data-is-text-relative.
6440 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6441 (arm_assemble_integer): Likewise.
6442 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6443 New macro to initialize -marm-pic-data-is-text-relative.
6444
6445 2013-11-19 Bin Cheng <bin.cheng@arm.com>
6446
6447 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6448 (address_cost_data): New field.
6449 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6450 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
6451
6452 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6453
6454 * config/aarch64/aarch64.md: Remove v8type from all insns.
6455
6456 2013-11-19 Richard Biener <rguenther@suse.de>
6457
6458 PR tree-optimization/57517
6459 * tree-predcom.c (combinable_refs_p): Verify the combination
6460 is always executed when the refs are.
6461
6462 2013-11-19 Jeff Law <law@redhat.com>
6463
6464 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6465 (copy_phi_arg_into_existing_phi): New function.
6466 (any_remaining_duplicated_blocks): Likewise.
6467 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6468 blocks on a jump threading path.
6469
6470 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6471 thread through a joiner which has the latch edge.
6472
6473 2013-11-19 Jan Hubicka <jh@suse.cz>
6474
6475 * md.texi (setmem): Document new parameter.
6476 * optabs.c (maybe_gen_insn): Support 9 operands.
6477 * builtins.c (determine_block_size): Add probable_max_size;
6478 support anti-ranges.
6479 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6480 probable_max_size.
6481 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6482 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6483 Likewise.
6484 * expr.h (emit_block_move_hints, clear_storage_hints,
6485 set_storage_via_setmem): Update prototype.
6486 * i386.md (setmem, movmem patterns): Add 9th operand.
6487 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6488 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6489 argument; pass it to decide_alg.
6490
6491 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6492
6493 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6494 (n_basic_blocks_for_fn): ...this.
6495
6496 (n_basic_blocks): Eliminate macro as work towards making uses of
6497 cfun be explicit.
6498
6499 * cfgloop.c (init_loops_structure): Update for renaming of
6500 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6501 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6502 * ipa-utils.c (ipa_merge_profiles): Likewise.
6503 * lto-streamer-in.c (make_new_block): Likewise.
6504 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6505 (dump_function_to_file): Likewise.
6506
6507 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6508 macro with "n_basic_blocks_for_fn (cfun)".
6509 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6510 (duplicate_computed_gotos): Likewise.
6511 (reorder_basic_blocks): Likewise.
6512 * bt-load.c (augment_live_range): Likewise.
6513 * cfg.c (expunge_block): Likewise.
6514 (compact_blocks): Likewise.
6515 * cfganal.c (single_pred_before_succ_order): Likewise.
6516 (compute_idf): Likewise.
6517 (flow_dfs_compute_reverse_init): Likewise.
6518 (pre_and_rev_post_order_compute): Likewise.
6519 (pre_and_rev_post_order_compute_fn): Likewise.
6520 (inverted_post_order_compute): Likewise.
6521 (post_order_compute): Likewise.
6522 (print_edge_list): Likewise.
6523 (find_unreachable_blocks): Likewise.
6524 (mark_dfs_back_edges): Likewise.
6525 * cfgcleanup.c (try_optimize_cfg): Likewise.
6526 (try_forward_edges): Likewise.
6527 * cfghooks.c (dump_flow_info): Likewise.
6528 * cfgloop.c (verify_loop_structure): Likewise.
6529 (get_loop_body): Likewise.
6530 (flow_loops_find): Likewise.
6531 * cfgloopmanip.c (add_loop): Likewise.
6532 (remove_path): Likewise.
6533 (find_path): Likewise.
6534 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6535 (rtl_verify_bb_layout): Likewise.
6536 (entry_of_function): Likewise.
6537 (rtl_create_basic_block): Likewise.
6538 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6539 * cprop.c (one_cprop_pass): Likewise.
6540 (is_too_expensive): Likewise.
6541 * df-core.c (df_compute_cfg_image): Likewise.
6542 (df_compact_blocks): Likewise.
6543 (df_worklist_dataflow_doublequeue): Likewise.
6544 * dominance.c (calculate_dominance_info): Likewise.
6545 (calc_dfs_tree): Likewise.
6546 (calc_dfs_tree_nonrec): Likewise.
6547 (init_dom_info): Likewise.
6548 * domwalk.c (cmp_bb_postorder): Likewise.
6549 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6550 (generate_setjmp_warnings): Likewise.
6551 * fwprop.c (build_single_def_use_links): Likewise.
6552 * gcse.c (is_too_expensive): Likewise.
6553 (one_code_hoisting_pass): Likewise.
6554 (one_pre_gcse_pass): Likewise.
6555 * graphite.c (graphite_initialize): Likewise.
6556 * haifa-sched.c (haifa_sched_init): Likewise.
6557 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6558 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6559 * ira-build.c (ira_build): Likewise.
6560 * lcm.c (compute_nearerout): Likewise.
6561 (compute_available): Likewise.
6562 (compute_laterin): Likewise.
6563 (compute_antinout_edge): Likewise.
6564 * lra-lives.c (lra_create_live_ranges): Likewise.
6565 * lra.c (has_nonexceptional_receiver): Likewise.
6566 * mcf.c (create_fixup_graph): Likewise.
6567 * profile.c (branch_prob): Likewise.
6568 * reg-stack.c (convert_regs_2): Likewise.
6569 * regrename.c (regrename_analyze): Likewise.
6570 * reload1.c (has_nonexceptional_receiver): Likewise.
6571 * reorg.c (dbr_schedule): Likewise.
6572 * sched-deps.c (sched_deps_init): Likewise.
6573 * sched-ebb.c (schedule_ebbs): Likewise.
6574 * sched-rgn.c (extend_regions): Likewise.
6575 (schedule_insns): Likewise.
6576 (sched_rgn_init): Likewise.
6577 (extend_rgns): Likewise.
6578 (haifa_find_rgns): Likewise.
6579 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6580 (sel_recompute_toporder): Likewise.
6581 * sel-sched.c (run_selective_scheduling): Likewise.
6582 * store-motion.c (one_store_motion_pass): Likewise.
6583 (remove_reachable_equiv_notes): Likewise.
6584 * tracer.c (tracer): Likewise.
6585 (tail_duplicate): Likewise.
6586 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6587 (dump_cfg_stats): Likewise.
6588 (gimple_dump_cfg): Likewise.
6589 (create_bb): Likewise.
6590 (build_gimple_cfg): Likewise.
6591 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6592 * tree-inline.c (optimize_inline_calls): Likewise.
6593 (fold_marked_statements): Likewise.
6594 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6595 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6596 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6597 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6598 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6599 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6600 * tree-ssa-pre.c (do_pre): Likewise.
6601 (init_pre): Likewise.
6602 (compute_avail): Likewise.
6603 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6604 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6605 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6606 (init_worklist): Likewise.
6607 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6608 * var-tracking.c (variable_tracking_main_1): Likewise.
6609 (vt_find_locations): Likewise.
6610 (vt_stack_adjustments): Likewise.
6611 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6612 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6613
6614 2013-11-18 Jan Hubicka <jh@suse.cz>
6615
6616 * profile.c (compute_branch_probabilities): Do not sanity check
6617 run_max.
6618
6619 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6620
6621 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6622 GET_MODE_PRECISION.
6623 * fold-const.c (fold_single_bit_test_into_sign_test)
6624 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6625
6626 2013-11-18 Teresa Johnson <tejohnson@google.com>
6627
6628 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6629 cfglayout after bb reordering.
6630 * passes.def: Move compgotos before bb reordering since it goes into
6631 cfglayout.
6632
6633 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6634
6635 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6636 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6637 static.
6638 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6639 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6640 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6641 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6642 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6643 Remove all_lto_gen_passes.
6644 * passes.c (pass_manager::dump_passes): Remove its use.
6645 (pass_manager::register_pass): Likewise.
6646 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6647 (pass_manager::pass_manager): Don't initialize or use it.
6648 (write_lto): New static function.
6649 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6650 instead of using all_lto_gen_passes.
6651 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6652 pass_ipa_lto_finish_out): Delete.
6653 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6654 make_pass_ipa_lto_finish_out): Don't declare.
6655
6656 2013-11-18 Jeff Law <law@redhat.com>
6657
6658 * tree-ssa-threadupdate.c (redirection_data): Record two
6659 duplicated blocks instead of just one.
6660 (local_info): Explain why we don't create a template for the
6661 second duplicated block in a thread path.
6662 (create_block_for_threading): Accept argument indicating array
6663 index into redirection_data to store its result.
6664 (lookup_redirection_data): Initialize both duplicate blocks.
6665 (ssa_create_duplicates): If a jump threading path needs multiple
6666 blocks duplicated, then duplicate them.
6667 (ssa_fix_duplicate_block_edges): Corresponding changes.
6668 (ssa_fixup_template_block, thread_single_edge): Likewise.
6669
6670 2013-11-18 Marek Polacek <polacek@redhat.com>
6671
6672 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6673
6674 2013-11-18 Andrew Pinski <apinski@cavium.com>
6675 Steve Ellcey <sellcey@mips.com>
6676
6677 PR target/56552
6678 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6679 type restriction from equality_operator on conditonal move.
6680 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6681 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6682
6683 2013-11-18 Jeff Law <law@redhat.com>
6684
6685 * tree-ssa-threadupdate.c: Fix file block comment.
6686 Fix minor indention issue.
6687
6688 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6689
6690 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6691 ix86_address_subreg_operand. Move subreg checks to
6692 ix86_validate_address_register. Move address override check to
6693 ix86_legitimate_address_p.
6694 (ix86_validate_address_register): New function.
6695 (ix86_legitimate_address_p): Call ix86_validate_address_register
6696 to validate base and index registers. Add address override check
6697 from ix86_decompose_address.
6698 (ix86_decompose_address): Remove.
6699
6700 2013-11-18 Richard Biener <rguenther@suse.de>
6701
6702 PR tree-optimization/59125
6703 PR tree-optimization/54570
6704 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6705 is not complete do not treat component-references with offset zero
6706 but different fields as equal.
6707 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6708 (compute_object_sizes): Apply TLC. Propagate the constant
6709 results into all uses and fold their stmts.
6710 * passes.def (pass_all_optimizations): Move pass_object_sizes
6711 after the first pass_forwprop and before pass_fre.
6712
6713 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6714
6715 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6716 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6717 (tree_ctz): Remove cast to unsigned type.
6718 * builtins.c (fold_builtin_memory_op): Likewise.
6719 * dwarf2out.c (descr_info_loc): Likewise.
6720 * godump.c (go_output_typedef): Likewise.
6721 * omp-low.c (expand_omp_simd): Likewise.
6722 * stor-layout.c (excess_unit_span): Likewise.
6723 * tree-object-size.c (addr_object_size): Likewise.
6724 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6725 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6726 (simplify_rotate): Likewise.
6727 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6728 (handle_pointer_plus): Likewise.
6729 * tree-switch-conversion.c (check_range): Likewise.
6730 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6731 * tsan.c (instrument_builtin_call): Likewise.
6732 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6733 * trans-mem.c (tm_log_add): Likewise.
6734 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6735 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6736 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6737 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6738
6739 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6740
6741 * tree.h (host_integerp, tree_low_cst): Delete.
6742 * tree.c (host_integerp, tree_low_cst): Delete.
6743
6744 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6745
6746 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6747 than tree_low_cst.
6748 * fold-const.c (fold_binary_loc): Likewise.
6749 * expr.c (store_constructor): Use tree_to_uhwi rather than
6750 tree_low_cst.
6751 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6752 * stmt.c (emit_case_dispatch_table): Likewise.
6753 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6754
6755 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6756
6757 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6758 config/aarch64/aarch64.c, config/alpha/predicates.md,
6759 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6760 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6761 config/mep/mep-pragma.c, config/mips/mips.c,
6762 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6763 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6764 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6765 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6766 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6767 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6768 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6769 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6770 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6771 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6772
6773 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6774
6775 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6776 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6777 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6778 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6779 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6780 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6781 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6782 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6783 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6784 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6785 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6786
6787 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6788
6789 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6790 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6791
6792 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6793
6794 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6795 than host_integerp.
6796
6797 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6798
6799 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6800 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6801 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6802 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6803 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6804 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6805 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6806 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6807 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6808 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6809 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6810 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6811 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6812 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6813 tree_fits_uhwi_p throughout.
6814
6815 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6816
6817 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6818 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6819 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6820 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6821 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6822 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6823 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6824 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6825 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6826 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6827 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6828 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6829 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6830 throughout.
6831
6832 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6833
6834 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6835 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6836
6837 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6838
6839 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6840 flag if it kills its address, not its post-increment.
6841
6842 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6843
6844 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6845 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6846 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6847 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6848 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6849 (gimple_call_with_bounds_p): New.
6850 (gimple_call_set_with_bounds): New.
6851 (gimple_call_num_nobnd_args): Remove.
6852 (gimple_call_nobnd_arg): Remove.
6853 * tree.h (CALL_WITH_BOUNDS_P): New.
6854 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6855
6856 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6857
6858 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6859 (symtab_node_name): Rename to symtab_node::name.
6860 (cgraph_node_asm_name): Remove.
6861 (varpool_node_asm_name): Remove.
6862 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6863 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6864 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6865 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6866 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6867
6868 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6869
6870 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6871 * config/arm/arm.c (arm_cortex_a53_tune): New.
6872 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6873
6874 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6875
6876 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6877 (case ${target}): Add bdver4.
6878 * config/i386/bdver3.md: Add bdver4.
6879 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6880 -march=native recognize bdver4 processors.
6881 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6882 bdver4 def_and_undef
6883 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6884 (m_BDVER4): New definition.
6885 (m_AMD_MULTIPLE): Includes m_BDVER4.
6886 (processor_target_table): Add bdver4 entry.
6887 (static const char *const cpu_names): Add bdver4 entry.
6888 (software_prefetching_beneficial_p): Add bdver3.
6889 (ix86_option_override_internal): Add bdver4 instruction sets.
6890 (ix86_issue_rate): Add bdver4.
6891 (ix86_adjust_cost): Add bdver4.
6892 (ia32_multipass_dfa_lookahead): Add bdver4.
6893 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6894 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6895 (has_dispatch): Add bdver4.
6896 * config/i386/i386.h (TARGET_BDVER4): New definition.
6897 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6898 (enum processor_type): Add PROCESSOR_BDVER4.
6899 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6900 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6901 * doc/extend.texi: Add details about bdver4.
6902 * doc/invoke.texi: Add details about bdver4. Add
6903 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6904
6905 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6906
6907 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6908 sdmode_stack_slot also in little-endian mode.
6909
6910 2013-11-17 Jan Hubicka <jh@suse.cz>
6911
6912 * doc/md.texi (setmem, movstr): Update documentation.
6913 * builtins.c (determine_block_size): New function.
6914 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6915 (expand_builtin_memset_args): Use it and pass it to
6916 set_storage_via_setmem.
6917 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6918 parameters; update call to expander.
6919 (emit_block_move_hints): Add min_size/max_size parameters.
6920 (clear_storage_hints): Likewise.
6921 (set_storage_via_setmem): Likewise.
6922 (clear_storage): Update.
6923 * expr.h (emit_block_move_hints, clear_storage_hints,
6924 set_storage_via_setmem): Update prototypes.
6925 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6926 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6927 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6928 * i386.md (movmem, setmem): Pass parameters.
6929
6930 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6931
6932 PR target/59153
6933 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6934 reject non-integer subregs.
6935 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6936 Move check for invalid x32 constant addresses ...
6937 (ix86_legitimate_address_p): ... here.
6938
6939 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6940
6941 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6942 parameter and use it in REG_FRAME_RELATED_EXPR note.
6943 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6944 parameter.
6945 (rs6000_emit_prologue): Likewise, but for little endian VSX
6946 stores, pass the source register of the store instead.
6947
6948 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6949
6950 * gimple.h: Reorder prototypes to match .c declaration order, and
6951 remove protyotypes for functions not in gimple.c.
6952 (LABEL): Move to tree-into-ssa.c.
6953 * gimple.c: Remove unused prototypes.
6954 (get_base_address): Move to tree.c.
6955 * tree.c (get_base_address): Relocate from gimple.c.
6956 * builtins.h (validate_gimple_arglist): Add prototype.
6957 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6958 * cfgexpand.h: New File.
6959 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6960 * tree.h (build_addr): Move to tree-nested.h.
6961 * tree-nested.h: New File.
6962 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6963 prototypes.
6964 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6965 * ipa-inline-analysis.c: Include cfgexpand.h.
6966 * cgraphunit.c: Include tree-nested.h.
6967 * omp-low.c: Likewise.
6968 * tree-parloops.c: Likewise.
6969 * gimple-low.h: Likewise.
6970 * tree-profile.h: Likewise.
6971 * expr.c: Include cfgexpand.h.
6972 * tree-affine.c: Likewise.
6973 * tree-ssa.c: Likewise.
6974 * tree-ssa-loop-im.c: Include trans-mem.h.
6975 * tree-ssa-tail-merge.c: Likewise.
6976 * value-prof.c: Include builtins.h and tree-nested.h.
6977 * tree-into-ssa.c (LABEL): Define here.
6978
6979 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6980
6981 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6982 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6983 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6984 (make_pass_arc_predicate_delay_insns): New function.
6985 (arc_init): Register pass_arc_predicate_delay_insns if
6986 flag_delayed_branch is active.
6987
6988 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6989
6990 * config/arc/constraints.md (Rcq): Simplify register number test.
6991
6992 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6993
6994 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6995
6996 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6997
6998 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6999 is null.
7000
7001 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7002
7003 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
7004 * gimple-pretty-print.c (dump_omp_for): Add case for
7005 GF_OMP_FOR_KIND_CILKSIMD.
7006 * gimple.h (enum gf_mask): Restructure entries to add
7007 GF_OMP_FOR_KIND_CILKSIMD.
7008 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7009 (gimplify_omp_for): Handle CILK_SIMD.
7010 (gimplify_expr): Add ccase for CILK_SIMD.
7011 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7012 (build_outer_var_ref): Same.
7013 (check_omp_nesting_restrictions): Same.
7014 (lower_rec_input_clauses): Same.
7015 (lower_lastprivate_clauses): Same.
7016 (expand_omp_for): Same.
7017 (execute_expand_omp): Check flag_enable_cilkplus.
7018 (execute_lower_omp): Same.
7019 (diagnose_sb_0): Handle CILK_SIMD.
7020 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7021 (setjmp_or_longjmp_p): New.
7022 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7023 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7024 * tree.def: Add tree code for CILK_SIMD.
7025
7026 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7027
7028 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7029 Remove.
7030 (altivec_vperm_<mode>): Revert earlier little endian change.
7031 (*altivec_vperm_<mode>_internal): Remove.
7032 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7033 (*altivec_vperm_<mode>_uns_internal): Remove.
7034 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7035
7036 2013-11-15 Jeff Law <law@redhat.com>
7037
7038 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7039 has_abnormal_or_outgoing_edge. Check for EH edges as well.
7040 * gimple-ssa-isolate-paths.c
7041 (find_implicit_erroneous_behaviour): Corresponding changes.
7042 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7043 (find_explicit_erroneous_behaviour): Likewise.
7044
7045 2013-11-15 Jeff Law <law@redhat.com>
7046
7047 * ifcvt.c (find_cond_trap): Properly handle case where
7048 trap_bb == else_bb.
7049
7050 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
7051
7052 * configure: Regenerate.
7053
7054 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
7055
7056 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7057 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7058 where it is incorrect or missing.
7059
7060 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7061
7062 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7063 host_integerp test.
7064 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7065 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7066 constant.
7067 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7068 pair with a TREE_CODE test and TREE_INT_CST_LOW.
7069 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7070
7071 2013-11-15 Richard Biener <rguenther@suse.de>
7072
7073 PR tree-optimization/50262
7074 * tree-ssa-alias.h (struct pt_solution): Split
7075 vars_contains_global into vars_contains_nonlocal,
7076 vars_contains_escaped and vars_contains_escaped_heap.
7077 * tree-ssa-structalias.c (label_visit): Expand comment.
7078 (handle_lhs_call): Adjust comment.
7079 (set_uids_in_ptset): Set the new flags appropriately.
7080 (pt_solution_set): Adjust.
7081 (pt_solution_set_var): Likewise.
7082 (pt_solution_ior_into): Likewise.
7083 (pt_solution_includes_global): Likewise.
7084 (pt_solutions_intersect_1): Optimize escaped handling.
7085 (compute_points_to_sets): Remove heap variable globalization.
7086 (ipa_escaped_pt): Adjust initializer.
7087 (pass_data_ipa_pta): Do not run TODO_update_ssa.
7088 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7089 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7090
7091 2013-11-15 Richard Biener <rguenther@suse.de>
7092
7093 * tree-loop-distribution.c (tree_loop_distribution): Make sure
7094 to distribute all stores.
7095
7096 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7097
7098 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7099
7100 2013-11-15 Joseph Myers <joseph@codesourcery.com>
7101
7102 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7103 * configure.ac: Determine target_header_dir earlier.
7104 (--with-glibc-version): New configure option.
7105 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7106 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7107 * configure: Regenerate.
7108 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7109 native toolchains for default.
7110 (--with-glibc-version): Document.
7111
7112 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
7113
7114 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7115
7116 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
7117
7118 * lto-streamer-in.c (input function): Call cgraph_create_node if
7119 cgraph_get_node failed.
7120
7121 2013-11-14 Olivier Hainque <hainque@adacore.com>
7122
7123 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7124 defer allocation of DECL_IGNORED_P variables at toplevel unless really
7125 small. Factorize size threshold computation from the existing one.
7126 (expand_used_vars): Refine comment.
7127
7128 2013-11-14 Cong Hou <congh@google.com>
7129
7130 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7131 address field as it can be obtained from dr. Rename the struct.
7132 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7133 steps of data references during sort.
7134 (vect_prune_runtime_alias_test_list): Adjust with the change to
7135 struct dr_with_seg_len.
7136 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7137 Adjust with the change to struct dr_with_seg_len.
7138
7139 2013-11-14 Jeff Law <law@redhat.com>
7140
7141 PR middle-end/59127
7142 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7143 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7144 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7145 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7146 edges, then ignore it. If the statement exhibiting erroneous
7147 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7148 then we can not optimize.
7149 (find_explicit_erroneous_behaviour): Likewise.
7150
7151 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
7152
7153 * gimplify-me.h: New file. Add prototypes.
7154 * gimplify.h: Don't include gimple.h.
7155 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7156 Relocate from gimple.h.
7157 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7158 is_gimple_sizepos): Move to gimplify.h.
7159 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7160 (enum gsi_iterator_update): Move to gimple-iterator.h.
7161 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7162 * gimplify-me.c: New File.
7163 (force_gimple_operand_1, force_gimple_operand,
7164 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7165 gimple_regimplify_operands): Relocate from gimplify.c.
7166 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7167 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7168 gimple_regimplify_operands): Move to gimplify-me.c.
7169 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7170 from gimple.h.
7171 * Makefile.in (OBJS): Add gimplify-me.o
7172 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7173 required.
7174 * cfgloopmanip.c: Likewise.
7175 * cgraphunit.c: Likewise.
7176 * cilk-common.c: Likewise.
7177 * fold-const.c: Likewise.
7178 * function.c: Likewise.
7179 * gimple-expr.c: Likewise.
7180 * gimple-fold.c: Likewise.
7181 * gimple-ssa-strength-reduction.c: Likewise.
7182 * gimple.c: Likewise.
7183 * graphite-clast-to-gimple.c: Likewise.
7184 * graphite-sese-to-poly.c: Likewise.
7185 * ipa-prop.c: Likewise.
7186 * ipa-split.c: Likewise.
7187 * ipa.c: Likewise.
7188 * langhooks.c: Likewise.
7189 * omp-low.c: Likewise.
7190 * sese.c: Likewise.
7191 * stor-layout.c: Likewise.
7192 * targhooks.c: Likewise.
7193 * trans-mem.c: Likewise.
7194 * tree-affine.c: Likewise.
7195 * tree-cfg.c: Likewise.
7196 * tree-cfgcleanup.c: Likewise.
7197 * tree-complex.c: Likewise.
7198 * tree-if-conv.c: Likewise.
7199 * tree-inline.c: Likewise.
7200 * tree-loop-distribution.c: Likewise.
7201 * tree-nested.c: Likewise.
7202 * tree-parloops.c: Likewise.
7203 * tree-predcom.c: Likewise.
7204 * tree-profile.c: Likewise.
7205 * tree-scalar-evolution.c: Likewise.
7206 * tree-sra.c: Likewise.
7207 * tree-ssa-address.c: Likewise.
7208 * tree-ssa-ccp.c: Likewise.
7209 * tree-ssa-dce.c: Likewise.
7210 * tree-ssa-forwprop.c: Likewise.
7211 * tree-ssa-ifcombine.c: Likewise.
7212 * tree-ssa-loop-im.c: Likewise.
7213 * tree-ssa-loop-ivopts.c: Likewise.
7214 * tree-ssa-loop-manip.c: Likewise.
7215 * tree-ssa-loop-niter.c: Likewise.
7216 * tree-ssa-loop-prefetch.c: Likewise.
7217 * tree-ssa-loop-unswitch.c: Likewise.
7218 * tree-ssa-math-opts.c: Likewise.
7219 * tree-ssa-phiopt.c: Likewise.
7220 * tree-ssa-phiprop.c: Likewise.
7221 * tree-ssa-pre.c: Likewise.
7222 * tree-ssa-propagate.c: Likewise.
7223 * tree-ssa-reassoc.c: Likewise.
7224 * tree-ssa-sccvn.c: Likewise.
7225 * tree-ssa-strlen.c: Likewise.
7226 * tree-ssa.c: Likewise.
7227 * tree-switch-conversion.c: Likewise.
7228 * tree-tailcall.c: Likewise.
7229 * tree-vect-data-refs.c: Likewise.
7230 * tree-vect-generic.c: Likewise.
7231 * tree-vect-loop-manip.c: Likewise.
7232 * tree-vect-loop.c: Likewise.
7233 * tree-vect-patterns.c: Likewise.
7234 * tree-vect-stmts.c: Likewise.
7235 * tree.c: Likewise.
7236 * tsan.c: Likewise.
7237 * value-prof.c: Likewise.
7238 * config/aarch64/aarch64.c: Likewise.
7239 * config/alpha/alpha.c: Likewise.
7240 * config/darwin.c: Likewise.
7241 * config/i386/i386.c: Likewise.
7242 * config/ia64/ia64.c: Likewise.
7243 * config/mep/mep.c: Likewise.
7244 * config/mips/mips.c: Likewise.
7245 * config/rs6000/rs6000.c: Likewise.
7246 * config/s390/s390.c: Likewise.
7247 * config/sh/sh.c: Likewise.
7248 * config/sparc/sparc.c: Likewise.
7249 * config/spu/spu.c: Likewise.
7250 * config/stormy16/stormy16.c: Likewise.
7251 * config/tilegx/tilegx.c: Likewise.
7252 * config/tilepro/tilepro.c: Likewise.
7253 * config/xtensa/xtensa.c: Likewise.
7254
7255 2013-11-14 Diego Novillo <dnovillo@google.com>
7256
7257 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7258
7259 2013-11-14 Diego Novillo <dnovillo@google.com>
7260
7261 * tree.h: Include fold-const.h.
7262 (aggregate_value_p): Moved to function.h.
7263 (alloca_call_p): Moved to calls.h.
7264 (allocate_struct_function): Moved to function.h.
7265 (apply_tm_attr): Moved to attribs.h.
7266 (array_at_struct_end_p): Moved to expr.h.
7267 (array_ref_element_size): Moved to tree-dfa.h.
7268 (array_ref_low_bound): Moved to tree-dfa.h.
7269 (array_ref_up_bound): Moved to tree.h.
7270 (assemble_alias): Moved to cgraph.h.
7271 (bit_from_pos): Moved to stor-layout.h.
7272 (build_addr): Moved to tree-nested.h.
7273 (build_duplicate_type): Moved to tree-inline.h.
7274 (build_fold_addr_expr): Moved to fold-const.h.
7275 (build_fold_addr_expr_with_type): Moved to fold-const.h.
7276 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7277 (build_fold_indirect_ref): Moved to fold-const.h.
7278 (build_fold_indirect_ref_loc): Moved to fold-const.h.
7279 (build_personality_function): Moved to tree.h.
7280 (build_range_check): Moved to fold-const.h.
7281 (build_simple_mem_ref): Moved to fold-const.h.
7282 (build_simple_mem_ref_loc): Moved to fold-const.h.
7283 (build_tm_abort_call): Moved to trans-mem.h.
7284 (byte_from_pos): Moved to stor-layout.h.
7285 (call_expr_flags): Moved to calls.h.
7286 (can_move_by_pieces): Moved to expr.h.
7287 (categorize_ctor_elements): Moved to expr.h.
7288 (change_decl_assembler_name): Moved to gcc-symtab.h.
7289 (combine_comparisons): Moved to fold-const.h.
7290 (complete_ctor_at_level_p): Moved to tree.h.
7291 (component_ref_field_offset): Moved to tree-dfa.h.
7292 (compute_builtin_object_size): Moved to tree-object-size.h.
7293 (compute_record_mode): Moved to stor-layout.h.
7294 (constant_boolean_node): Moved to fold-const.h.
7295 (constructor_static_from_elts_p): Moved to varasm.h.
7296 (cxx11_attribute_p): Moved to attribs.h.
7297 (debug_body): Moved to print-tree.h.
7298 (debug_find_tree): Moved to tree-inline.h.
7299 (debug_fold_checksum): Moved to fold-const.h.
7300 (debug_head): Moved to print-tree.h.
7301 (debug_head): Moved to print-tree.h.
7302 (debug_raw): Moved to print-tree.h.
7303 (debug_tree): Moved to print-tree.h.
7304 (debug_vec_tree): Moved to print-tree.h.
7305 (debug_verbose): Moved to print-tree.h.
7306 (debug_verbose): Moved to print-tree.h.
7307 (decl_attributes): Moved to attribs.h.
7308 (decl_binds_to_current_def_p): Moved to varasm.h.
7309 (decl_default_tls_model): Moved to varasm.h.
7310 (decl_replaceable_p): Moved to varasm.h.
7311 (div_if_zero_remainder): Moved to fold-const.h.
7312 (double_int mem_ref_offset): Moved to fold-const.h.
7313 (dump_addr): Moved to print-tree.h.
7314 (element_precision): Moved to machmode.h.
7315 (expand_dummy_function_end): Moved to function.h.
7316 (expand_function_end): Moved to function.h.
7317 (expand_function_start): Moved to function.h.
7318 (expand_label): Moved to stmt.h.
7319 (expr_first): Moved to tree-iterator.h.
7320 (expr_last): Moved to tree-iterator.h.
7321 (finalize_size_functions): Moved to stor-layout.h.
7322 (finish_builtin_struct): Moved to stor-layout.h.
7323 (finish_record_layout): Moved to stor-layout.h.
7324 (fixup_signed_type): Moved to stor-layout.h.
7325 (fixup_unsigned_type): Moved to stor-layout.h.
7326 (flags_from_decl_or_type): Moved to calls.h.
7327 (fold): Moved to fold-const.h.
7328 (fold_abs_const): Moved to fold-const.h.
7329 (fold_binary): Moved to fold-const.h.
7330 (fold_binary_loc): Moved to fold-const.h.
7331 (fold_binary_to_constant): Moved to fold-const.h.
7332 (fold_build1): Moved to fold-const.h.
7333 (fold_build1_initializer_loc): Moved to fold-const.h.
7334 (fold_build1_loc): Moved to fold-const.h.
7335 (fold_build1_stat_loc): Moved to fold-const.h.
7336 (fold_build2): Moved to fold-const.h.
7337 (fold_build2_initializer_loc): Moved to fold-const.h.
7338 (fold_build2_loc): Moved to fold-const.h.
7339 (fold_build2_stat_loc): Moved to fold-const.h.
7340 (fold_build3): Moved to fold-const.h.
7341 (fold_build3_loc): Moved to fold-const.h.
7342 (fold_build3_stat_loc): Moved to fold-const.h.
7343 (fold_build_call_array): Moved to fold-const.h.
7344 (fold_build_call_array_initializer): Moved to fold-const.h.
7345 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7346 (fold_build_call_array_loc): Moved to fold-const.h.
7347 (fold_build_cleanup_point_expr): Moved to fold-const.h.
7348 (fold_convert): Moved to fold-const.h.
7349 (fold_convert_loc): Moved to fold-const.h.
7350 (fold_convertible_p): Moved to fold-const.h.
7351 (fold_defer_overflow_warnings): Moved to fold-const.h.
7352 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7353 (fold_fma): Moved to fold-const.h.
7354 (fold_ignored_result): Moved to fold-const.h.
7355 (fold_indirect_ref): Moved to fold-const.h.
7356 (fold_indirect_ref_1): Moved to fold-const.h.
7357 (fold_indirect_ref_loc): Moved to fold-const.h.
7358 (fold_read_from_constant_string): Moved to fold-const.h.
7359 (fold_real_zero_addition_p): Moved to fold-const.h.
7360 (fold_single_bit_test): Moved to fold-const.h.
7361 (fold_strip_sign_ops): Moved to fold-const.h.
7362 (fold_ternary): Moved to fold-const.h.
7363 (fold_ternary_loc): Moved to fold-const.h.
7364 (fold_unary): Moved to tree-data-ref.h.
7365 (fold_unary_ignore_overflow): Moved to fold-const.h.
7366 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7367 (fold_unary_loc): Moved to fold-const.h.
7368 (fold_unary_to_constant): Moved to fold-const.h.
7369 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7370 (fold_undefer_overflow_warnings): Moved to fold-const.h.
7371 (folding_initializer): Moved to fold-const.h.
7372 (free_temp_slots): Moved to function.h.
7373 (generate_setjmp_warnings): Moved to function.h.
7374 (get_attribute_name): Moved to attribs.h.
7375 (get_identifier): Moved to stringpool.h.
7376 (get_identifier_with_length): Moved to stringpool.h.
7377 (get_inner_reference): Moved to tree.h.
7378 (gimple_alloca_call_p): Moved to calls.h.
7379 (gimplify_parameters): Moved to function.h.
7380 (highest_pow2_factor): Moved to expr.h.
7381 (indent_to): Moved to print-tree.h.
7382 (init_attributes): Moved to attribs.h.
7383 (init_dummy_function_start): Moved to function.h.
7384 (init_function_start): Moved to function.h.
7385 (init_inline_once): Moved to tree-inline.h.
7386 (init_object_sizes): Moved to tree-object-size.h.
7387 (init_temp_slots): Moved to function.h.
7388 (init_tree_optimization_optabs): Moved to optabs.h.
7389 (initialize_sizetypes): Moved to stor-layout.h.
7390 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7391 (initializer_constant_valid_p): Moved to varasm.h.
7392 (int_const_binop): Moved to fold-const.h.
7393 (internal_reference_types): Moved to stor-layout.h.
7394 (invert_tree_comparison): Moved to fold-const.h.
7395 (invert_truthvalue): Moved to fold-const.h.
7396 (invert_truthvalue_loc): Moved to fold-const.h.
7397 (is_tm_ending_fndecl): Moved to trans-mem.h.
7398 (is_tm_may_cancel_outer): Moved to trans-mem.h.
7399 (is_tm_pure): Moved to trans-mem.h.
7400 (is_tm_safe): Moved to trans-mem.h.
7401 (layout_decl): Moved to stor-layout.h.
7402 (layout_type): Moved to stor-layout.h.
7403 (lookup_attribute_spec): Moved to attribs.h.
7404 (make_accum_type): Moved to stor-layout.h.
7405 (make_decl_one_only): Moved to varasm.h.
7406 (make_decl_rtl): Moved to tree.h.
7407 (make_decl_rtl_for_debug): Moved to varasm.h.
7408 (make_fract_type): Moved to stor-layout.h.
7409 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7410 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7411 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7412 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7413 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7414 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7415 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7416 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7417 (make_range): Moved to fold-const.h.
7418 (make_range_step): Moved to fold-const.h.
7419 (make_sat_signed_accum_type): Moved to stor-layout.h.
7420 (make_sat_signed_fract_type): Moved to stor-layout.h.
7421 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7422 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7423 (make_signed_accum_type): Moved to stor-layout.h.
7424 (make_signed_fract_type): Moved to stor-layout.h.
7425 (make_signed_type): Moved to stor-layout.h.
7426 (make_unsigned_accum_type): Moved to stor-layout.h.
7427 (make_unsigned_fract_type): Moved to stor-layout.h.
7428 (make_unsigned_type): Moved to stor-layout.h.
7429 (mark_decl_referenced): Moved to varasm.h.
7430 (mark_referenced): Moved to varasm.h.
7431 (may_negate_without_overflow_p): Moved to fold-const.h.
7432 (maybe_get_identifier): Moved to stringpool.h.
7433 (merge_ranges): Moved to fold-const.h.
7434 (merge_weak): Moved to varasm.h.
7435 (mode_for_size_tree): Moved to stor-layout.h.
7436 (multiple_of_p): Moved to fold-const.h.
7437 (must_pass_in_stack_var_size): Moved to calls.h.
7438 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7439 (native_encode_expr): Moved to fold-const.h.
7440 (native_interpret_expr): Moved to fold-const.h.
7441 (non_lvalue): Moved to fold-const.h.
7442 (non_lvalue_loc): Moved to fold-const.h.
7443 (normalize_offset): Moved to stor-layout.h.
7444 (normalize_rli): Moved to stor-layout.h.
7445 (notice_global_symbol): Moved to varasm.h.
7446 (omit_one_operand): Moved to fold-const.h.
7447 (omit_one_operand_loc): Moved to fold-const.h.
7448 (omit_two_operands): Moved to fold-const.h.
7449 (omit_two_operands_loc): Moved to fold-const.h.
7450 (operand_equal_p): Moved to tree-data-ref.h.
7451 (parse_input_constraint): Moved to stmt.h.
7452 (parse_output_constraint): Moved to stmt.h.
7453 (place_field): Moved to stor-layout.h.
7454 (pop_function_context): Moved to function.h.
7455 (pop_temp_slots): Moved to function.h.
7456 (pos_from_bit): Moved to stor-layout.h.
7457 (preserve_temp_slots): Moved to function.h.
7458 (print_node): Moved to print-tree.h.
7459 (print_node_brief): Moved to print-tree.h.
7460 (print_rtl): Moved to rtl.h.
7461 (process_pending_assemble_externals): Moved to varasm.h.
7462 (ptr_difference_const): Moved to fold-const.h.
7463 (push_function_context): Moved to function.h.
7464 (push_struct_function): Moved to function.h.
7465 (push_temp_slots): Moved to function.h.
7466 (record_tm_replacement): Moved to trans-mem.h.
7467 (relayout_decl): Moved to stor-layout.h.
7468 (resolve_asm_operand_names): Moved to stmt.h.
7469 (resolve_unique_section): Moved to varasm.h.
7470 (rli_size_so_far): Moved to stor-layout.h.
7471 (rli_size_unit_so_far): Moved to stor-layout.h.
7472 (round_down): Moved to fold-const.h.
7473 (round_down_loc): Moved to fold-const.h.
7474 (round_up): Moved to fold-const.h.
7475 (round_up_loc): Moved to fold-const.h.
7476 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7477 (set_decl_rtl): Moved to tree.h.
7478 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7479 (set_user_assembler_name): Moved to varasm.h.
7480 (setjmp_call_p): Moved to calls.h.
7481 (size_binop): Moved to fold-const.h.
7482 (size_binop_loc): Moved to fold-const.h.
7483 (size_diffop): Moved to fold-const.h.
7484 (size_diffop_loc): Moved to fold-const.h.
7485 (size_int_kind): Moved to fold-const.h.
7486 (stack_protect_epilogue): Moved to function.h.
7487 (start_record_layout): Moved to stor-layout.h.
7488 (supports_one_only): Moved to varasm.h.
7489 (swap_tree_comparison): Moved to fold-const.h.
7490 (tm_malloc_replacement): Moved to trans-mem.h.
7491 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7492 (tree build_invariant_address): Moved to fold-const.h.
7493 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7494 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7495 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7496 (tree_expr_nonnegative_p): Moved to fold-const.h.
7497 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7498 (tree_output_constant_def): Moved to varasm.h.
7499 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7500 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7501 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7502 (tree_swap_operands_p): Moved to fold-const.h.
7503 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7504 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7505 (update_alignment_for_field): Moved to stor-layout.h.
7506 (use_register_for_decl): Moved to function.h.
7507 (variable_size): Moved to rtl.h.
7508 (vector_type_mode): Moved to stor-layout.h.
7509 * cgraph.h: Corresponding changes.
7510 * emit-rtl.h: Corresponding changes.
7511 * expr.h: Corresponding changes.
7512 * function.h: Corresponding changes.
7513 * optabs.h: Corresponding changes.
7514 * trans-mem.h: Corresponding changes.
7515 Protect against multiple inclusion.
7516 * tree-inline.h: Corresponding changes.
7517 * tree-iterator.h: Corresponding changes.
7518 * tree-dfa.h: Include expr.h.
7519 * tree-ssanames.h: Include stringpool.h.
7520 * attribs.h: New file.
7521 * calls.h: New file.
7522 * fold-const.h: New file.
7523 * gcc-symtab.h: New file.
7524 * print-rtl.h: New file.
7525 * print-tree.h: New file.
7526 * stmt.h: New file.
7527 * stor-layout.h: New file.
7528 * strinpool.h: New file.
7529 * tree-nested.h: New file
7530 * tree-object-size.h: New file.
7531 * varasm.h: New file.
7532
7533 2013-11-14 Diego Novillo <dnovillo@google.com>
7534
7535 * alias.c: Include varasm.h.
7536 Include expr.h.
7537 * asan.c: Include calls.h.
7538 Include stor-layout.h.
7539 Include varasm.h.
7540 * attribs.c: Include stringpool.h.
7541 Include attribs.h.
7542 Include stor-layout.h.
7543 * builtins.c: Include stringpool.h.
7544 Include stor-layout.h.
7545 Include calls.h.
7546 Include varasm.h.
7547 Include tree-object-size.h.
7548 * calls.c: Include stor-layout.h.
7549 Include varasm.h.
7550 Include stringpool.h.
7551 Include attribs.h.
7552 * cfgexpand.c: Include stringpool.h.
7553 Include varasm.h.
7554 Include stor-layout.h.
7555 Include stmt.h.
7556 Include print-tree.h.
7557 * cgraph.c: Include varasm.h.
7558 Include calls.h.
7559 Include print-tree.h.
7560 * cgraphclones.c: Include stringpool.h.
7561 Include function.h.
7562 Include emit-rtl.h.
7563 Move inclusion of rtl.h earlier in the file.
7564 * cgraphunit.c: Include varasm.h.
7565 Include stor-layout.h.
7566 Include stringpool.h.
7567 * cilk-common.c: Include stringpool.h.
7568 Include stor-layout.h.
7569 * combine.c: Include stor-layout.h.
7570 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7571 Include stringpool.h.
7572 Include calls.h.
7573 * config/aarch64/aarch64.c: Include stringpool.h.
7574 Include stor-layout.h.
7575 Include calls.h.
7576 Include varasm.h.
7577 * config/alpha/alpha.c: Include stor-layout.h.
7578 Include calls.h.
7579 Include varasm.h.
7580 * config/arc/arc.c: Include varasm.h.
7581 Include stor-layout.h.
7582 Include stringpool.h.
7583 Include calls.h.
7584 * config/arm/arm.c: Include stringpool.h.
7585 Include stor-layout.h.
7586 Include calls.h.
7587 Include varasm.h.
7588 * config/avr/avr-c.c: Include stor-layout.h.
7589 * config/avr/avr-log.c: Include print-tree.h.
7590 * config/avr/avr.c: Include print-tree.h.
7591 Include calls.h.
7592 Include stor-layout.h.
7593 Include stringpool.h.
7594 * config/bfin/bfin.c: Include varasm.h.
7595 Include calls.h.
7596 * config/c6x/c6x.c: Include stor-layout.h.
7597 Include varasm.h.
7598 Include calls.h.
7599 Include stringpool.h.
7600 * config/cr16/cr16.c: Include stor-layout.h.
7601 Include calls.h.
7602 * config/cris/cris.c: Include varasm.h.
7603 Include stor-layout.h.
7604 Include calls.h.
7605 Include stmt.h.
7606 * config/darwin.c: Include stringpool.h.
7607 Include varasm.h.
7608 Include stor-layout.h.
7609 * config/epiphany/epiphany.c: Include stor-layout.h.
7610 Include varasm.h.
7611 Include calls.h.
7612 Include stringpool.h.
7613 * config/fr30/fr30.c: Include stor-layout.h.
7614 Include varasm.h.
7615 * config/frv/frv.c: Include varasm.h.
7616 Include stor-layout.h.
7617 Include stringpool.h.
7618 * config/h8300/h8300.c: Include stor-layout.h.
7619 Include varasm.h.
7620 Include calls.h.
7621 Include stringpool.h.
7622 * config/i386/i386.c: Include stringpool.h.
7623 Include attribs.h.
7624 Include calls.h.
7625 Include stor-layout.h.
7626 Include varasm.h.
7627 * config/i386/winnt-cxx.c: Include stringpool.h.
7628 Include attribs.h.
7629 * config/i386/winnt.c: Include stringpool.h.
7630 Include varasm.h.
7631 * config/ia64/ia64-c.c: Include stringpool.h.
7632 * config/ia64/ia64.c: Include stringpool.h.
7633 Include stor-layout.h.
7634 Include calls.h.
7635 Include varasm.h.
7636 * config/iq2000/iq2000.c: Include stor-layout.h.
7637 Include calls.h.
7638 Include varasm.h.
7639 * config/lm32/lm32.c: Include calls.h.
7640 * config/m32c/m32c.c: Include stor-layout.h.
7641 Include varasm.h.
7642 Include calls.h.
7643 * config/m32r/m32r.c: Include stor-layout.h.
7644 Include varasm.h.
7645 Include stringpool.h.
7646 Include calls.h.
7647 * config/m68k/m68k.c: Include calls.h.
7648 Include stor-layout.h.
7649 Include varasm.h.
7650 * config/mcore/mcore.c: Include stor-layout.h.
7651 Include varasm.h.
7652 Include stringpool.h.
7653 Include calls.h.
7654 * config/mep/mep.c: Include varasm.h.
7655 Include calls.h.
7656 Include stringpool.h.
7657 Include stor-layout.h.
7658 * config/microblaze/microblaze.c: Include varasm.h.
7659 Include stor-layout.h.
7660 Include calls.h.
7661 * config/mips/mips.c: Include varasm.h.
7662 Include stringpool.h.
7663 Include stor-layout.h.
7664 Include calls.h.
7665 * config/mmix/mmix.c: Include varasm.h.
7666 Include stor-layout.h.
7667 Include calls.h.
7668 * config/mn10300/mn10300.c: Include stor-layout.h.
7669 Include varasm.h.
7670 Include calls.h.
7671 * config/moxie/moxie.c: Include stor-layout.h.
7672 Include varasm.h.
7673 Include calls.h.
7674 * config/msp430/msp430.c: Include stor-layout.h.
7675 Include calls.h.
7676 * config/nds32/nds32.c: Include stor-layout.h.
7677 Include varasm.h.
7678 Include calls.h.
7679 * config/pa/pa.c: Include stor-layout.h.
7680 Include stringpool.h.
7681 Include varasm.h.
7682 Include calls.h.
7683 * config/pdp11/pdp11.c: Include stor-layout.h.
7684 Include varasm.h.
7685 Include calls.h.
7686 * config/picochip/picochip.c: Include calls.h.
7687 Include stor-layout.h.
7688 Include stringpool.h.
7689 Include varasm.h.
7690 * config/rl78/rl78.c: Include varasm.h.
7691 Include stor-layout.h.
7692 Include calls.h.
7693 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7694 Include stringpool.h.
7695 * config/rs6000/rs6000.c: Include stringpool.h.
7696 Include stor-layout.h.
7697 Include calls.h.
7698 Include print-tree.h.
7699 Include varasm.h.
7700 * config/rx/rx.c: Include varasm.h.
7701 Include stor-layout.h.
7702 Include calls.h.
7703 * config/s390/s390.c: Include print-tree.h.
7704 Include stringpool.h.
7705 Include stor-layout.h.
7706 Include varasm.h.
7707 Include calls.h.
7708 * config/score/score.c: Include stringpool.h.
7709 Include calls.h.
7710 Include varasm.h.
7711 Include stor-layout.h.
7712 * config/sh/sh-c.c: Include stringpool.h.
7713 Include attribs.h.h.
7714 * config/sh/sh.c: Include stringpool.h.
7715 Include stor-layout.h.
7716 Include calls.h.
7717 Include varasm.h.
7718 * config/sol2-c.c: Include stringpool.h.
7719 Include attribs.h.
7720 * config/sol2-cxx.c: Include stringpool.h.
7721 * config/sol2.c: Include stringpool.h.
7722 Include varasm.h.
7723 * config/sparc/sparc.c: Include stringpool.h.
7724 Include stor-layout.h.
7725 Include calls.h.
7726 Include varasm.h.
7727 * config/spu/spu-c.c: Include stringpool.h.
7728 * config/spu/spu.c: Include stringpool.h.
7729 Include stor-layout.h.
7730 Include calls.h.
7731 Include varasm.h.
7732 * config/stormy16/stormy16.c: Include stringpool.h.
7733 Include stor-layout.h.
7734 Include varasm.h.
7735 Include calls.h.
7736 * config/tilegx/tilegx.c: Include stringpool.h.
7737 Include stor-layout.h.
7738 Include varasm.h.
7739 Include calls.h.
7740 * config/tilepro/tilepro.c: Include stringpool.h.
7741 Include stor-layout.h.
7742 Include varasm.h.
7743 Include calls.h.
7744 * config/v850/v850-c.c: Include stringpool.h.
7745 Include attribs.h.
7746 * config/v850/v850.c: Include stringpool.h.
7747 Include stor-layout.h.
7748 Include varasm.h.
7749 Include calls.h.
7750 * config/vax/vax.c: Include calls.h.
7751 Include varasm.h.
7752 * config/vms/vms.c: Include stringpool.h.
7753 * config/vxworks.c: Include stringpool.h.
7754 * config/xtensa/xtensa.c: Include stringpool.h.
7755 Include stor-layout.h.
7756 Include calls.h.
7757 Include varasm.h.
7758 * convert.c: Include stor-layout.h.
7759 * coverage.c: Include stringpool.h.
7760 Include stor-layout.h.
7761 * dbxout.c: Include varasm.h.
7762 Include stor-layout.h.
7763 * dojump.c: Include stor-layout.h.
7764 * dse.c: Include stor-layout.h.
7765 * dwarf2asm.c: Include stringpool.h.
7766 Include varasm.h.
7767 * dwarf2cfi.c: Include stor-layout.h.
7768 * dwarf2out.c: Include rtl.h.
7769 Include stringpool.h.
7770 Include stor-layout.h.
7771 Include varasm.h.
7772 Include function.h.
7773 Include emit-rtl.h.
7774 Move inclusion of rtl.h earlier in the file.
7775 * emit-rtl.c: Include varasm.h.
7776 * except.c: Include stringpool.h.
7777 Include stor-layout.h.
7778 * explow.c: Include stor-layout.h.
7779 * expmed.c: Include stor-layout.h.
7780 * expr.c: Include stringpool.h.
7781 Include stor-layout.h.
7782 Include attribs.h.
7783 Include varasm.h.
7784 * final.c: Include varasm.h.
7785 * fold-const.c: Include stor-layout.h.
7786 Include calls.h.
7787 Include tree-iterator.h.
7788 * function.c: Include stor-layout.h.
7789 Include varasm.h.
7790 Include stringpool.h.
7791 * genattrtab.c (write_header): Emit includes for varasm.h,
7792 stor-layout.h and calls.h.
7793 * genautomata.c (main): Likewise.
7794 * genemit.c: Likewise.
7795 * genopinit.c: Likewise.
7796 * genoutput.c (output_prologue): Likewise.
7797 * genpeep.c: Likewise.
7798 * genpreds.c (write_insn_preds_c): Likewise.
7799 * gengtype.c (open_base_files): Add stringpool.h.
7800 * gimple-expr.c: Include stringpool.h.
7801 Include stor-layout.h.
7802 * gimple-fold.c: Include stringpool.h.
7803 Include expr.h.
7804 Include stmt.h.
7805 Include stor-layout.h.
7806 * gimple-low.c: Include tree-nested.h.
7807 Include calls.h.
7808 * gimple-pretty-print.c: Include stringpool.h.
7809 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7810 Include expr.h.
7811 * gimple-walk.c: Include stmt.h.
7812 * gimple.c: Include calls.h.
7813 Include stmt.h.
7814 Include stor-layout.h.
7815 * gimplify.c: Include stringpool.h.
7816 Include calls.h.
7817 Include varasm.h.
7818 Include stor-layout.h.
7819 Include stmt.h.
7820 Include print-tree.h.
7821 Include expr.h.
7822 * gimplify-me.c: Include stmt.h
7823 Include stor-layout.h
7824 * internal-fn.c: Include stor-layout.h.
7825 * ipa-devirt.c: Include print-tree.h.
7826 Include calls.h.
7827 * ipa-inline-analysis.c: Include stor-layout.h.
7828 Include stringpool.h.
7829 Include print-tree.h.
7830 * ipa-inline.c: Include trans-mem.h.
7831 Include calls.h.
7832 * ipa-prop.c: Include expr.h.
7833 Include stor-layout.h.
7834 Include print-tree.h.
7835 * ipa-pure-const.c: Include print-tree.h.
7836 Include calls.h.
7837 * ipa-reference.c: Include calls.h.
7838 * ipa-split.c: Include stringpool.h.
7839 Include expr.h.
7840 Include calls.h.
7841 * ipa.c: Include calls.h.
7842 Include stringpool.h.
7843 * langhooks.c: Include stringpool.h.
7844 Include attribs.h.
7845 * lto-cgraph.c: Include stringpool.h.
7846 * lto-streamer-in.c: Include stringpool.h.
7847 * lto-streamer-out.c: Include stor-layout.h.
7848 Include stringpool.h.
7849 * omp-low.c: Include stringpool.h.
7850 Include stor-layout.h.
7851 Include expr.h.
7852 * optabs.c: Include stor-layout.h.
7853 Include stringpool.h.
7854 Include varasm.h.
7855 * passes.c: Include varasm.h.
7856 * predict.c: Include calls.h.
7857 * print-rtl.c: Include print-tree.h.
7858 * print-tree.c: Include varasm.h.
7859 Include print-rtl.h.
7860 Include stor-layout.h.
7861 * realmpfr.c: Include stor-layout.h.
7862 * reg-stack.c: Include varasm.h.
7863 * sdbout.c: Include varasm.h.
7864 Include stor-layout.h.
7865 * simplify-rtx.c: Include varasm.h.
7866 * stmt.c: Include varasm.h.
7867 Include stor-layout.h.
7868 * stor-layout.c: Include stor-layout.h.
7869 Include stringpool.h.
7870 Include varasm.h.
7871 Include print-tree.h.
7872 * symtab.c: Include rtl.h.
7873 Include print-tree.h.
7874 Include varasm.h.
7875 Include function.h.
7876 Include emit-rtl.h.
7877 * targhooks.c: Include stor-layout.h.
7878 Include varasm.h.
7879 * toplev.c: Include varasm.h.
7880 Include tree-inline.h.
7881 * trans-mem.c: Include calls.h.
7882 Include function.h.
7883 Include rtl.h.
7884 Include emit-rtl.h.
7885 * tree-affine.c: Include expr.h.
7886 * tree-browser.c: Include print-tree.h.
7887 * tree-call-cdce.c: Include stor-layout.h.
7888 * tree-cfg.c: Include trans-mem.h.
7889 Include stor-layout.h.
7890 Include print-tree.h.
7891 * tree-complex.c: Include stor-layout.h.
7892 * tree-data-ref.c: Include expr.h.
7893 * tree-dfa.c: Include stor-layout.h.
7894 * tree-eh.c: Include expr.h.
7895 Include calls.h.
7896 * tree-emutls.c: Include stor-layout.h.
7897 Include varasm.h.
7898 * tree-if-conv.c: Include stor-layout.h.
7899 * tree-inline.c: Include stor-layout.h.
7900 Include calls.h.
7901 * tree-loop-distribution.c: Include stor-layout.h.
7902 * tree-nested.c: Include stringpool.h.
7903 Include stor-layout.h.
7904 * tree-object-size.c: Include tree-object-size.h.
7905 * tree-outof-ssa.c: Include stor-layout.h.
7906 * tree-parloops.c: Include stor-layout.h.
7907 Include tree-nested.h.
7908 * tree-pretty-print.c: Include stor-layout.h.
7909 Include expr.h.
7910 * tree-profile.c: Include varasm.h.
7911 Include tree-nested.h.
7912 * tree-scalar-evolution.c: Include expr.h.
7913 * tree-sra.c: Include stor-layout.h.
7914 * tree-ssa-address.c: Include stor-layout.h.
7915 * tree-ssa-ccp.c: Include stor-layout.h.
7916 * tree-ssa-dce.c: Include calls.h.
7917 * tree-ssa-dom.c: Include stor-layout.h.
7918 * tree-ssa-forwprop.c: Include stor-layout.h.
7919 * tree-ssa-ifcombine.c: Include stor-layout.h.
7920 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7921 * tree-ssa-loop-niter.c: Include calls.h.
7922 Include expr.h.
7923 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7924 * tree-ssa-math-opts.c: Include stor-layout.h.
7925 * tree-ssa-operands.c: Include stmt.h.
7926 Include print-tree.h.
7927 * tree-ssa-phiopt.c: Include stor-layout.h.
7928 * tree-ssa-reassoc.c: Include stor-layout.h.
7929 * tree-ssa-sccvn.c: Include stor-layout.h.
7930 * tree-ssa-sink.c: Include stor-layout.h.
7931 * tree-ssa-strlen.c: Include stor-layout.h.
7932 * tree-ssa-structalias.c: Include stor-layout.h.
7933 Include stmt.h.
7934 * tree-ssa-tail-merge.c: Include stor-layout.h.
7935 Include trans-mem.h.
7936 * tree-ssa-uncprop.c: Include stor-layout.h.
7937 * tree-ssa.c: Include stor-layout.h.
7938 * tree-ssanames.c: Include stor-layout.h.
7939 * tree-streamer-in.c: Include stringpool.h.
7940 * tree-streamer-out.c: Include stor-layout.h.
7941 * tree-switch-conversion.c: Include varasm.h.
7942 Include stor-layout.h.
7943 * tree-tailcall.c: Include stor-layout.h.
7944 * tree-vect-data-refs.c: Include stor-layout.h.
7945 * tree-vect-generic.c: Include stor-layout.h.
7946 * tree-vect-loop.c: Include stor-layout.h.
7947 * tree-vect-patterns.c: Include stor-layout.h.
7948 * tree-vect-slp.c: Include stor-layout.h.
7949 * tree-vect-stmts.c: Include stor-layout.h.
7950 * tree-vectorizer.c: Include stor-layout.h.
7951 * tree-vrp.c: Include stor-layout.h.
7952 Include calls.h.
7953 * tree.c: Include stor-layout.h.
7954 Include calls.h.
7955 Include attribs.h.
7956 Include varasm.h.
7957 * tsan.c: Include expr.h.
7958 * ubsan.c: Include stor-layout.h.
7959 Include stringpool.h.
7960 * value-prof.c: Include tree-nested.h.
7961 Include calls.h.
7962 * var-tracking.c: Include varasm.h.
7963 Include stor-layout.h.
7964 * varasm.c: Include stor-layout.h.
7965 Include stringpool.h.
7966 Include gcc-symtab.h.
7967 Include varasm.h.
7968 * varpool.c: Include varasm.h.
7969 * vmsdbgout.c: Include varasm.h.
7970 * xcoffout.c: Include varasm.h.
7971
7972 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7973
7974 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7975 use (.&-4) idiom.
7976
7977 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7978
7979 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7980
7981 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7982 Alan Modra <amodra@gmail.com>
7983
7984 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7985 (RS6000_SAVE_TOC): Remove.
7986 (RS6000_TOC_SAVE_SLOT): New macro.
7987 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7988 (rs6000_parm_start): Use it.
7989 (rs6000_function_arg_advance_1): Likewise.
7990 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7991 (rs6000_emit_epilogue): Likewise.
7992 (rs6000_call_aix): Likewise.
7993 (rs6000_output_function_prologue): Do not save/restore r11
7994 around calling _mcount for ABI_ELFv2.
7995
7996 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7997 Alan Modra <amodra@gmail.com>
7998
7999 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
8000 Add prototype.
8001 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
8002 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
8003 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
8004 (rs6000_function_parms_need_stack): Likewise.
8005 (rs6000_reg_parm_stack_space): Likewise.
8006 (rs6000_function_arg): Do not replace BLKmode by Pmode when
8007 returning a register argument.
8008
8009 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8010 Michael Gschwind <mkg@us.ibm.com>
8011
8012 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8013 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8014 (FUNCTION_VALUE_REGNO_P): Use them.
8015 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8016 (rs6000_return_in_msb): New function.
8017 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8018 Handle aggregates of up to 16 bytes for ELFv2.
8019 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8020
8021 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8022 Michael Gschwind <mkg@us.ibm.com>
8023
8024 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8025 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8026 (rs6000_discover_homogeneous_aggregate): Likewise.
8027 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8028 (rs6000_function_arg_advance_1): Likewise.
8029 (rs6000_function_arg): Likewise.
8030 (rs6000_arg_partial_bytes): Likewise.
8031 (rs6000_psave_function_arg): Handle BLKmode arguments.
8032
8033 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8034 Michael Gschwind <mkg@us.ibm.com>
8035
8036 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8037 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8038 (rs6000_discover_homogeneous_aggregate): Likewise.
8039 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8040 (rs6000_function_arg_advance_1): Likewise.
8041 (rs6000_function_arg): Likewise.
8042 (rs6000_arg_partial_bytes): Likewise.
8043 (rs6000_psave_function_arg): Handle BLKmode arguments.
8044
8045 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8046
8047 * config/rs6000/rs6000.c (machine_function): New member
8048 r2_setup_needed.
8049 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8050 (rs6000_output_mi_thunk): Set r2_setup_needed.
8051 (rs6000_output_function_prologue): Output global entry point
8052 prologue and local entry point marker if needed for ABI_ELFv2.
8053 Output -mprofile-kernel code here.
8054 (output_function_profiler): Do not output -mprofile-kernel
8055 code here; moved to rs6000_output_function_prologue.
8056 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8057
8058 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8059 (rs6000_output_function_entry): Likewise.
8060 (rs6000_assemble_integer): Likewise.
8061 (rs6000_elf_encode_section_info): Likewise.
8062 (rs6000_elf_declare_function_name): Do not create dot symbols
8063 or .opd section for ABI_ELFv2.
8064
8065 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8066 (rs6000_trampoline_init): Likewise.
8067 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8068
8069 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
8070 for function descriptors in ABI_ELFv2.
8071
8072 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8073 on ABI_AIX only, not ABI_ELFv2.
8074 ("*call_value_indirect_aix<mode>"): Likewise.
8075 ("*call_indirect_elfv2<mode>"): New pattern.
8076 ("*call_value_indirect_elfv2<mode>"): Likewise.
8077
8078 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8079 check for function descriptors in ABI_ELFv2.
8080 ("current_file_function_operand"): Likewise.
8081
8082 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8083 (toc): Undefine.
8084 (FUNC_NAME): Define ELFv2 variant.
8085 (JUMP_TARGET): Likewise.
8086 (FUNC_START): Likewise.
8087 (HIDDEN_FUNC): Likewise.
8088 (FUNC_END): Likeiwse.
8089
8090 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8091
8092 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8093 and --with-abi=elfv2.
8094 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8095 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8096 (mabi=elfv2): Likewise.
8097 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8098 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8099 if !RS6000_BI_ARCH.
8100 (ELFv2_ABI_CHECK): New macro.
8101 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8102 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8103 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8104 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8105 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8106
8107 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8108 (debug_stack_info): Likewise.
8109 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8110 (rs6000_legitimize_tls_address): Likewise.
8111 (rs6000_conditional_register_usage): Likewise.
8112 (rs6000_emit_move): Likewise.
8113 (init_cumulative_args): Likewise.
8114 (rs6000_function_arg_advance_1): Likewise.
8115 (rs6000_function_arg): Likewise.
8116 (rs6000_arg_partial_bytes): Likewise.
8117 (rs6000_output_function_entry): Likewise.
8118 (rs6000_assemble_integer): Likewise.
8119 (rs6000_savres_strategy): Likewise.
8120 (rs6000_stack_info): Likewise.
8121 (rs6000_function_ok_for_sibcall): Likewise.
8122 (rs6000_emit_load_toc_table): Likewise.
8123 (rs6000_savres_routine_name): Likewise.
8124 (ptr_regno_for_savres): Likewise.
8125 (rs6000_emit_prologue): Likewise.
8126 (rs6000_emit_epilogue): Likewise.
8127 (rs6000_output_function_epilogue): Likewise.
8128 (output_profile_hook): Likewise.
8129 (output_function_profiler): Likewise.
8130 (rs6000_trampoline_size): Likewise.
8131 (rs6000_trampoline_init): Likewise.
8132 (rs6000_elf_output_toc_section_asm_op): Likewise.
8133 (rs6000_elf_encode_section_info): Likewise.
8134 (rs6000_elf_reloc_rw_mask): Likewise.
8135 (rs6000_elf_declare_function_name): Likewise.
8136 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8137 except that rs6000_compat_align_parm is always assumed false.
8138 (rs6000_gimplify_va_arg): Likewise.
8139 (rs6000_call_aix): Update comment.
8140 (rs6000_sibcall_aix): Likewise.
8141 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8142 Treat ABI_ELFv2 the same as ABI_AIX.
8143 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8144 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8145 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8146 ("load_toc_aix_si"): Likewise.
8147 ("load_toc_aix_di"): Likewise.
8148 ("call"): Likewise.
8149 ("call_value"): Likewise.
8150 ("*call_local_aix<mode>"): Likewise.
8151 ("*call_value_local_aix<mode>"): Likewise.
8152 ("*call_nonlocal_aix<mode>"): Likewise.
8153 ("*call_value_nonlocal_aix<mode>"): Likewise.
8154 ("*call_indirect_aix<mode>"): Likewise.
8155 ("*call_value_indirect_aix<mode>"): Likewise.
8156 ("sibcall"): Likewise.
8157 ("sibcall_value"): Likewise.
8158 ("*sibcall_aix<mode>"): Likewise.
8159 ("*sibcall_value_aix<mode>"): Likewise.
8160 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8161 ("current_file_function_operand"): Likewise.
8162
8163 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8164
8165 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8166 by making use of the fact that for vector / floating point arguments
8167 passed both in VRs/FPRs and in the fixed parameter area, the partial
8168 bytes mechanism is in fact not used.
8169
8170 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8171
8172 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8173 (rs6000_finish_function_arg): Likewise.
8174 (rs6000_function_arg): Use rs6000_psave_function_arg and
8175 rs6000_finish_function_arg to handle both vector and floating
8176 point arguments that are also passed in GPRs / the stack.
8177
8178 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8179
8180 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8181 (USE_ALTIVEC_FOR_ARG_P): Likewise.
8182 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8183 (rs6000_function_arg_advance_1):Likewise.
8184 (rs6000_darwin64_record_arg_recurse): Likewise.
8185 (rs6000_function_arg): Likewise.
8186 (rs6000_arg_partial_bytes): Likewise.
8187
8188 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8189
8190 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8191 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8192 (rs6000_savres_strategy): Likewise.
8193 (rs6000_return_addr): Likewise.
8194 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8195 testing for ABI_V4 (since ABI_DARWIN is impossible here).
8196 (rs6000_emit_prologue): Likewise.
8197 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8198 (rs6000_elf_declare_function_name): Remove duplicated test.
8199 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8200 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8201 ("load_toc_v4_PIC_1_normal"): Likewise.
8202 ("load_toc_v4_PIC_1_476"): Likewise.
8203 ("load_toc_v4_PIC_1b"): Likewise.
8204 ("load_toc_v4_PIC_1b_normal"): Likewise.
8205 ("load_toc_v4_PIC_1b_476"): Likewise.
8206 ("load_toc_v4_PIC_2"): Likewise.
8207 ("load_toc_v4_PIC_3b"): Likewise.
8208 ("load_toc_v4_PIC_3c"): Likewise.
8209 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8210 (RS6000_SAVE_AREA): Likewise.
8211 (FP_ARG_MAX_REG): Likewise.
8212 (RETURN_ADDRESS_OFFSET): Likewise.
8213 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8214 of ABI_AIX.
8215 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8216 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8217
8218 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8219
8220 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8221 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
8222 Create call insn directly instead of via various gen_... routines.
8223 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8224 (rs6000_sibcall_aix): New function.
8225 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8226 (TOC_SAVE_OFFSET_64BIT): Likewise.
8227 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8228 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8229 (AIX_FUNC_DESC_SC_32BIT): Likewise.
8230 (AIX_FUNC_DESC_SC_64BIT): Likewise.
8231 ("call" expander): Call rs6000_call_aix.
8232 ("call_value" expander): Likewise.
8233 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8234 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8235 ("*call_indirect_aix<mode>"): ... by this insn pattern.
8236 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8237 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8238 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8239 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8240 ("*call_nonlocal_aix<mode>"): ... this pattern.
8241 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8242 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8243 ("*call_local_aix<mode>"): New insn pattern.
8244 ("*call_value_local_aix<mode>"): Likewise.
8245 ("sibcall" expander): Call rs6000_sibcall_aix.
8246 ("sibcall_value" expander): Likewise. Move earlier in file.
8247 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8248 ("*sibcall_aix<mode>"): ... this pattern.
8249 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8250 ("*sibcall_value_aix<mode>"): ... this pattern.
8251 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8252 (rs6000_call_aix): Add prototype.
8253 (rs6000_sibcall_aix): Likewise.
8254
8255 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8256
8257 PR sanitizer/59122
8258 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8259 isn't confused by the artificial decl.
8260
8261 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8262
8263 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8264 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8265 Instead, add USEs of all modified call-saved CR fields to the
8266 insn storing the result to the stack slot, and provide an
8267 appropriate REG_FRAME_RELATED_EXPR for that insn.
8268 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8269 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8270
8271 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8272 Alan Modra <amodra@gmail.com>
8273
8274 * function.c (assign_parms): Use all.reg_parm_stack_space instead
8275 of re-evaluating REG_PARM_STACK_SPACE target macro.
8276 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
8277 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8278 (assign_parm_find_entry_rtl): Update call.
8279 * calls.c (initialize_argument_information): Update call.
8280 (emit_library_call_value_1): Likewise.
8281 * expr.h (locate_and_pad_parm): Update prototype.
8282
8283 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8284
8285 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8286 arguments.
8287
8288 2013-11-14 DJ Delorie <dj@redhat.com>
8289
8290 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8291 to 16 bits.
8292
8293 2013-11-14 Jeff Law <law@redhat.com>
8294
8295 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8296 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8297
8298 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8299
8300 * doc/invoke.texi: Update documentation for AArch64's -mcpu
8301 and -mtune options.
8302
8303 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8304
8305 * config/aarch64/aarch64-cores.def (example-1): Remove.
8306 (example-2): Likewise.
8307 * config/aarch64/aarch64-tune.md: Regenerate.
8308 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8309 (generic_sched): Remove "large", "small".
8310 * config/aarch64/large.md: Delete.
8311 * config/aarch64/small.md: Delete.
8312
8313 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8314
8315 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8316 * config/aarch64/aarch64-tune.md: Regenerate.
8317 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8318 (generic_sched): "no" if we are tuning for cortexa15.
8319 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8320 relative path.
8321
8322 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8323
8324 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8325 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8326 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8327 (all_cores): Use cortexa53 when tuning for "generic".
8328 (aarch64_override_options): Fix comment.
8329 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8330 * config/aarch64/aarch64-generic.md: Delete.
8331
8332 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8333
8334 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8335
8336 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8337
8338 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8339 (generic_rtx_cost_table): Remove.
8340 (aarch64_rtx_costs): Use fields from cpu_cost_table.
8341 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8342 insn_extra_cost.
8343 (cpu_rtx_cost_table): Remove.
8344
8345 2013-11-14 Julian Brown <julian@codesourcery.com>
8346 Joey Ye <joey.ye@arm.com>
8347
8348 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8349 (arm_v7m_tune): New.
8350 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8351 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8352 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8353 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8354
8355 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8356
8357 PR target/57491
8358 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8359 flag setting.
8360
8361 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8362 Uros Bizjak <ubizjak@gmail.com>
8363
8364 PR target/59101
8365 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8366 operands[2] satisfies_constraint_Z that might have bit 31 set.
8367
8368 2013-11-13 Jeff Law <law@redhat.com>
8369
8370 PR tree-optimization/59102
8371 * gimple-ssa-isolate-paths.c
8372 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8373 gimple assignment before looking at gimple_assign_lhs.
8374
8375 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8376
8377 * ira.c: Add comment about threads at the top of file.
8378
8379 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8380
8381 * ira-color.c (coalesce_allocnos): Don't allocate and free
8382 sorted_copies.
8383
8384 2013-11-14 Tom de Vries <tom@codesourcery.com>
8385
8386 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8387 equality for GIMPLE_ASSIGN.
8388
8389 2013-11-14 Tom de Vries <tom@codesourcery.com>
8390
8391 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8392 function out of ...
8393 (gimple_equal_p): ... here.
8394
8395 2013-11-14 Tom de Vries <tom@codesourcery.com>
8396
8397 * trans-mem.c (is_tm_ending): New function.
8398 * gimple.h (is_tm_ending): Declare.
8399 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8400 BUILT_IN_TM_COMMIT.
8401 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8402
8403 2013-11-14 Tom de Vries <tom@codesourcery.com>
8404
8405 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8406
8407 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
8408
8409 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
8410 (struct walk_stmt_info): Relocate here from gimple.h.
8411 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
8412 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8413 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8414 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8415 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8416 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8417 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8418 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8419 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8420 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8421 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8422 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8423 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8424 (struct walk_stmt_info): Move to gimple-walk.h.
8425 (gimple_seq_set_location): Move to gimple.c
8426 * gimple-walk.c: New File.
8427 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8428 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8429 walk_stmt_load_store_ops): Relocate here from gimple.c.
8430 * gimple-iterator.c: Include gimple-iterator.h.
8431 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8432 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8433 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8434 gimple-walk.c.
8435 (gimple_seq_set_location): Relocate from gimple.h.
8436 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8437 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8438 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8439 * Makefile.in (OBJS): Add gimple-walk.o
8440 * asan.c: Update Include list as required for gimple-iterator.h and
8441 gimple-walk.h.
8442 * cfgexpand.c: Likewise.
8443 * cfgloop.c: Likewise.
8444 * cfgloopmanip.c: Likewise.
8445 * cgraph.c: Likewise.
8446 * cgraphbuild.c: Likewise.
8447 * cgraphunit.c: Likewise.
8448 * gimple-fold.c: Likewise.
8449 * gimple-low.c: Likewise.
8450 * gimple-pretty-print.c: Likewise.
8451 * gimple-ssa-isolate-paths.c: Likewise.
8452 * gimple-ssa-strength-reduction.c: Likewise.
8453 * gimple-streamer-in.c: Likewise.
8454 * gimple-streamer-out.c: Likewise.
8455 * gimplify.c: Likewise.
8456 * graphite-blocking.c: Likewise.
8457 * graphite-clast-to-gimple.c: Likewise.
8458 * graphite-dependences.c: Likewise.
8459 * graphite-interchange.c: Likewise.
8460 * graphite-optimize-isl.c: Likewise.
8461 * graphite-poly.c: Likewise.
8462 * graphite-scop-detection.c: Likewise.
8463 * graphite-sese-to-poly.c: Likewise.
8464 * graphite.c: Likewise.
8465 * ipa-inline-analysis.c: Likewise.
8466 * ipa-profile.c: Likewise.
8467 * ipa-prop.c: Likewise.
8468 * ipa-pure-const.c: Likewise.
8469 * ipa-split.c: Likewise.
8470 * lto-streamer-in.c: Likewise.
8471 * lto-streamer-out.c: Likewise.
8472 * omp-low.c: Likewise.
8473 * predict.c: Likewise.
8474 * profile.c: Likewise.
8475 * sese.c: Likewise.
8476 * tracer.c: Likewise.
8477 * trans-mem.c: Likewise.
8478 * tree-call-cdce.c: Likewise.
8479 * tree-cfg.c: Likewise.
8480 * tree-cfgcleanup.c: Likewise.
8481 * tree-complex.c: Likewise.
8482 * tree-data-ref.c: Likewise.
8483 * tree-dfa.c: Likewise.
8484 * tree-eh.c: Likewise.
8485 * tree-emutls.c: Likewise.
8486 * tree-if-conv.c: Likewise.
8487 * tree-inline.c: Likewise.
8488 * tree-into-ssa.c: Likewise.
8489 * tree-loop-distribution.c: Likewise.
8490 * tree-nested.c: Likewise.
8491 * tree-nrv.c: Likewise.
8492 * tree-object-size.c: Likewise.
8493 * tree-outof-ssa.c: Likewise.
8494 * tree-parloops.c: Likewise.
8495 * tree-predcom.c: Likewise.
8496 * tree-profile.c: Likewise.
8497 * tree-scalar-evolution.c: Likewise.
8498 * tree-sra.c: Likewise.
8499 * tree-ssa-ccp.c: Likewise.
8500 * tree-ssa-coalesce.c: Likewise.
8501 * tree-ssa-copy.c: Likewise.
8502 * tree-ssa-copyrename.c: Likewise.
8503 * tree-ssa-dce.c: Likewise.
8504 * tree-ssa-dom.c: Likewise.
8505 * tree-ssa-dse.c: Likewise.
8506 * tree-ssa-forwprop.c: Likewise.
8507 * tree-ssa-ifcombine.c: Likewise.
8508 * tree-ssa-live.c: Likewise.
8509 * tree-ssa-loop-ch.c: Likewise.
8510 * tree-ssa-loop-im.c: Likewise.
8511 * tree-ssa-loop-ivcanon.c: Likewise.
8512 * tree-ssa-loop-ivopts.c: Likewise.
8513 * tree-ssa-loop-manip.c: Likewise.
8514 * tree-ssa-loop-niter.c: Likewise.
8515 * tree-ssa-loop-prefetch.c: Likewise.
8516 * tree-ssa-loop.c: Likewise.
8517 * tree-ssa-math-opts.c: Likewise.
8518 * tree-ssa-phiopt.c: Likewise.
8519 * tree-ssa-phiprop.c: Likewise.
8520 * tree-ssa-pre.c: Likewise.
8521 * tree-ssa-propagate.c: Likewise.
8522 * tree-ssa-reassoc.c: Likewise.
8523 * tree-ssa-sink.c: Likewise.
8524 * tree-ssa-strlen.c: Likewise.
8525 * tree-ssa-structalias.c: Likewise.
8526 * tree-ssa-tail-merge.c: Likewise.
8527 * tree-ssa-ter.c: Likewise.
8528 * tree-ssa-threadedge.c: Likewise.
8529 * tree-ssa-threadupdate.c: Likewise.
8530 * tree-ssa-uncprop.c: Likewise.
8531 * tree-ssa-uninit.c: Likewise.
8532 * tree-ssa.c: Likewise.
8533 * tree-stdarg.c: Likewise.
8534 * tree-switch-conversion.c: Likewise.
8535 * tree-tailcall.c: Likewise.
8536 * tree-vect-data-refs.c: Likewise.
8537 * tree-vect-generic.c: Likewise.
8538 * tree-vect-loop-manip.c: Likewise.
8539 * tree-vect-loop.c: Likewise.
8540 * tree-vect-patterns.c: Likewise.
8541 * tree-vect-slp.c: Likewise.
8542 * tree-vect-stmts.c: Likewise.
8543 * tree-vectorizer.c: Likewise.
8544 * tree-vrp.c: Likewise.
8545 * tree.c: Likewise.
8546 * tsan.c: Likewise.
8547 * value-prof.c: Likewise.
8548 * vtable-verify.c: Likewise.
8549
8550 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8551
8552 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8553 fix.
8554
8555 2013-11-13 Jeff Law <law@redhat.com>
8556
8557 * PR middle-end/59119
8558 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8559 function, extracted from gimple_ssa_isolate_erroneous_paths.
8560 (find_explicit_erroneous_behaviour): Similarly.
8561 (insert_trap_and_remove_trailing_statements): Remove statements
8562 in reverse order.
8563
8564 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8565
8566 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8567 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8568 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8569 looking at INSN_CODE.
8570 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8571 active_insn_p object, respect basic block boundaries.
8572 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8573 follows immediately after the jump table data label.
8574 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8575 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8576 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8577
8578 2013-11-13 Teresa Johnson <tejohnson@google.com>
8579
8580 PR ipa/58862
8581 * predict.c (drop_profile): Error is currently too strict.
8582 (handle_missing_profiles): Pass call_count to drop_profile.
8583
8584 2013-11-13 Teresa Johnson <tejohnson@google.com>
8585
8586 PR ipa/58862
8587 * ipa-inline.c (edge_badness): Fix overflow.
8588
8589 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8590
8591 PR rtl-optimization/59036
8592 * ira-color.c (struct allocno_color_data): Add new members
8593 first_thread_allocno, next_thread_allocno, thread_freq.
8594 (sorted_copies): New static var.
8595 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8596 (allocno_thread_conflict_p, merge_threads)
8597 (form_threads_from_copies, form_threads_from_bucket)
8598 (form_threads_from_colorable_allocno, init_allocno_threads): New
8599 functions.
8600 (bucket_allocno_compare_func): Add comparison by thread frequency
8601 and threads.
8602 (add_allocno_to_ordered_bucket): Rename to
8603 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8604 (push_only_colorable): Call form_threads_from_bucket.
8605 (color_pass): Call init_allocno_threads. Use
8606 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8607 for nuillify allocno color data.
8608 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8609 (coalesce_allocnos): Use static sorted copies.
8610
8611 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8612
8613 * passes.c (execute_todo): Don't call do_per_function if
8614 flags are zero.
8615 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8616 execute_function_dump if dump_file is NULL.
8617
8618 2013-11-13 Martin Jambor <mjambor@suse.cz>
8619
8620 * cgraph.c (cgraph_get_create_node): Do what
8621 cgraph_get_create_real_symbol_node used to do.
8622 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8623 call cgraph_get_create_node.
8624 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8625 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8626 cgraph_get_create_node. Assert we get a node.
8627
8628 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8629
8630 * config/aarch64/aarch64-simd.md (vec_extract): New.
8631
8632 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8633
8634 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8635 the constraint.
8636
8637 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8638
8639 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8640 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8641 or if optimization is enabled.
8642 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8643 require that all the names based on a PARM_DECL or a RESULT_DECL that
8644 isn't ignored for debug info be coalesced.
8645
8646 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8647
8648 * config/c6x/c6x.c: Include "gimple-expr.h".
8649
8650 2013-11-13 Richard Biener <rguenther@suse.de>
8651
8652 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8653 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8654 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8655 dealing with type mismatches inside component reference chains.
8656
8657 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8658
8659 PR tree-optimization/59077
8660 * ipa-pure-const.c (better_state): Update *state.
8661
8662 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8663
8664 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8665 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8666 Update offset calculations.
8667
8668 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8669
8670 PR ada/35998
8671 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8672 for fields. Do not add the attribute if the size is negative.
8673
8674 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8675
8676 * config/arm/arm.c: Include aarch-cost-tables.h.
8677 (generic_extra_costs): Move from here...
8678 * config/arm/aarch-cost-tables.h: ... To here. New file.
8679
8680 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8681 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8682 Sergey Lega <sergey.s.lega@intel.com>
8683 Anna Tikhonova <anna.tikhonova@intel.com>
8684 Ilya Tocar <ilya.tocar@intel.com>
8685 Andrey Turetskiy <andrey.turetskiy@intel.com>
8686 Ilya Verbin <ilya.verbin@intel.com>
8687 Kirill Yukhin <kirill.yukhin@intel.com>
8688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8689
8690 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8691 * config/i386/predicate.md (const_0_to_4_operand): New.
8692 (const_0_to_5_operand): Ditto.
8693 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8694 (UNSPEC_COMPRESS_STORE): Ditto.
8695 (UNSPEC_EXPAND): Ditto.
8696 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8697 (define_mode_attr ssescalarsize): Ditto.
8698 (avx512f_load<mode>_mask): Ditto.
8699 (avx512f_store<mode>_mask): Ditto.
8700 (avx512f_storedqu<mode>_mask): Ditto.
8701 (avx512f_vmcmp<mode>3_mask): Ditto.
8702 (avx512f_fmadd_<mode>_mask): Ditto.
8703 (avx512f_fmadd_<mode>_mask3): Ditto.
8704 (avx512f_fmsub_<mode>_mask): Ditto.
8705 (avx512f_fmsub_<mode>_mask3): Ditto.
8706 (avx512f_fnmadd_<mode>_mask): Ditto.
8707 (avx512f_fnmadd_<mode>_mask3): Ditto.
8708 (avx512f_fnmsub_<mode>_mask): Ditto.
8709 (avx512f_fnmsub_<mode>_mask3): Ditto.
8710 (avx512f_fmaddsub_<mode>_mask): Ditto.
8711 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8712 (avx512f_fmsubadd_<mode>_mask): Ditto.
8713 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8714 (vec_unpacku_float_lo_v16si): Ditto.
8715 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8716 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8717 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8718 (vec_extract_lo_<mode>_maskm): Ditto.
8719 (vec_extract_hi_<mode>_maskm): Ditto.
8720 (avx512f_vternlog<mode>_mask): Ditto.
8721 (avx512f_shufps512_mask): Ditto.
8722 (avx512f_fixupimm<mode>_mask): Ditto.
8723 (avx512f_shufpd512_mask): Ditto.
8724 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8725 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8726 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8727 (ashr<mode>3<mask_name>): Ditto.
8728 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8729 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8730 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8731 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8732 (avx512f_pshufdv3_mask): Ditto.
8733 (avx512f_perm<mode>_mask): Ditto.
8734 (avx512f_vpermi2var<mode>3_mask): Ditto.
8735 (avx512f_vpermt2var<mode>3_mask): Ditto.
8736 (avx512f_compress<mode>_mask): Ditto.
8737 (avx512f_compressstore<mode>_mask): Ditto.
8738 (avx512f_expand<mode>_mask): Ditto.
8739 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8740 to support masking.
8741 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8742 (<plusminus_insn><mode>3<mask_name>): Ditto.
8743 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8744 (mul<mode>3<mask_name>): Ditto.
8745 (*mul<mode>3<mask_name>): Ditto.
8746 (<sse>_div<mode>3<mask_name>): Ditto.
8747 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8748 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8749 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8750 (<code><mode>3<mask_name>/smaxmin): Ditto.
8751 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8752 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8753 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8754 (ufloatv16siv16sf2<mask_name>): Ditto.
8755 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8756 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8757 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8758 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8759 (ufloatv8siv8df<mask_name>): Ditto.
8760 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8761 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8762 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8763 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8764 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8765 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8766 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8767 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8768 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8769 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8770 (vec_extract_lo_<mode><mask_name>): Ditto.
8771 (vec_extract_hi_<mode><mask_name>): Ditto.
8772 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8773 (avx512f_movddup512<mask_name>): Ditto.
8774 (avx512f_unpcklpd512<mask_name>): Ditto.
8775 (*avx512f_unpcklpd512<mask_name>): Ditto.
8776 (*avx512f_vmscalef<mode>): Ditto.
8777 (avx512f_scalef<mode><mask_name>): Ditto.
8778 (avx512f_getexp<mode><mask_name>): Ditto.
8779 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8780 (avx512f_rndscale<mode><mask_name>): Ditto.
8781 (avx512f_shufps512_1<mask_name>): Ditto.
8782 (avx512f_shufpd512_1<mask_name>): Ditto.
8783 (<plusminus_insn><mode>3<mask_name>): Ditto.
8784 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8785 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8786 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8787 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8788 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8789 (mul<mode>3<mask_name>): Ditto.
8790 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8791 (<shift_insn><mode>3<mask_name>): Ditto.
8792 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8793 (avx512f_<rotate><mode><mask_name>): Ditto.
8794 (<code><mode>3<mask_name>/maxmin): Ditto.
8795 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8796 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8797 (*andnot<mode>3<mask_name>): Ditto.
8798 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8799 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8800 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8801 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8802 (vec_set_lo_<mode><mask_name>): Ditto.
8803 (vec_set_hi_<mode><mask_name>): Ditto.
8804 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8805 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8806 (avx512f_pshufd_1<mask_name>): Ditto.
8807 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8808 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8809 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8810 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8811 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8812 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8813 (avx512er_exp2<mode><mask_name>): Ditto.
8814 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8815 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8816 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8817 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8818 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8819 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8820 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8821 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8822 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8823 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8824 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8825 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8826 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8827 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8828 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8829 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8830 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8831 (avx512f_getmant<mode><mask_name>): Ditto.
8832 (clz<mode>2<mask_name>): Ditto.
8833 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8834 (*srcp14<mode>): Remove visibility.
8835 (*rsqrt14<mode>): Ditto.
8836 (*fma_fmsub_<mode>): Ditto.
8837 (*fma_fnmadd_<mode>): Ditto.
8838 (*avx512f_rndscale<mode>): Ditto.
8839 * config/i386/subst.md: New file.
8840
8841 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8842
8843 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8844 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8845 (atomic_load_explicit, atomic_exchange_explicit)
8846 (atomic_compare_exchange_strong_explicit)
8847 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8848 declare variable initialized with PTR argument.
8849
8850 2013-11-12 Jeff Law <law@redhat.com>
8851
8852 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8853 backedge_seen_p. Set, use and pass it to children appropriately.
8854 (thread_through_normal_block): Similarly.
8855 (thread_across_edge): Similarly.
8856
8857 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8858 memory references as volatile.
8859 (insert_trap_and_remove_trailing_statements): Fix comment.
8860
8861 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8862
8863 PR other/58712
8864 * ira-costs.c (record_operand_costs): Check operands number for
8865 the single set.
8866
8867 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8868
8869 PR target/59054
8870 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8871 constraints that would allow DImode into the traditional Altivec
8872 registers, but cause undesirable code generation when loading 0 as
8873 a constant.
8874 (movdi_internal64): Likewise.
8875 (cmp<mode>_fpr): Do not use %x for CR register output.
8876 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8877 -mallow-upper-sf debug switches are used.
8878
8879 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8880
8881 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8882 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8883 Relocate prototypes from gimple.h.
8884 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8885 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8886 from gimple.h.
8887 * gimple.h: Move some prototypes to gimplify.h.
8888 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8889 gimplify.h.
8890 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8891 Relocate from gimpify.c.
8892 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8893 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8894 is_gimple_reg_rhs) Relocate from gimplify.c.
8895 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8896 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8897 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8898 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8899 is_gimple_reg_rhs): Move to gimple-expr.c.
8900 (should_carry_location_p): Move to gimple.c.
8901 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8902 to gimple.h.
8903 (annotate_one_with_location, annotate_all_with_location_after,
8904 annotate_all_with_location): Move to gimple.c.
8905 (compare_case_labels, sort_case_labels,
8906 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8907 (rhs_predicate_for): Make static.
8908 (gimplify_assign): Relocate from gimple.c.
8909 * gimple.c (gimplify_assign): Move to gimplify.c.
8910 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8911 annotate_one_with_location, annotate_all_with_location_after,
8912 annotate_all_with_location, compare_case_labels, sort_case_labels,
8913 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8914 * tree.h (unshare_expr, unshare_expr_without_location,
8915 mark_addressable): Move prototypes to gimplify.h.
8916 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8917 tmp_var_id_num
8918 * asan.c: Include gimplify.h rather than gimple.h.
8919 * cfgloopmanip.c: Likewise.
8920 * cgraphunit.c: Likewise.
8921 * cilk-common.c: Likewise.
8922 * dwarf2out.c: Dont include gimple.h.
8923 * fold-const.c: Include gimplify.h rather than gimple.h.
8924 * function.c: Likewise.
8925 * gimple-fold.c: Likewise.
8926 * gimple-ssa-strength-reduction.c: Likewise.
8927 * graphite-clast-to-gimple.c: Likewise.
8928 * graphite-sese-to-poly.c: Likewise.
8929 * ipa-prop.c: Likewise.
8930 * ipa-split.c: Likewise.
8931 * ipa.c: Likewise.
8932 * langhooks.c: Dont include gimple.h.
8933 * loop-init.c: Include gimplify.h rather than gimple.h.
8934 * omp-low.c: Likewise.
8935 * sese.c: Likewise.
8936 * stor-layout.c: Likewise.
8937 * targhooks.c: Likewise.
8938 * trans-mem.c: Likewise.
8939 * tree-affine.c: Likewise.
8940 * tree-cfg.c: Likewise.
8941 * tree-cfgcleanup.c: Likewise.
8942 * tree-complex.c: Likewise.
8943 * tree-if-conv.c: Likewise.
8944 * tree-inline.c: Likewise.
8945 * tree-iterator.c: Likewise.
8946 * tree-loop-distribution.c: Likewise.
8947 * tree-nested.c: Likewise.
8948 * tree-parloops.c: Likewise.
8949 * tree-predcom.c: Likewise.
8950 * tree-profile.c: Likewise.
8951 * tree-scalar-evolution.c: Likewise.
8952 * tree-sra.c: Likewise.
8953 * tree-ssa-address.c: Likewise.
8954 * tree-ssa-ccp.c: Likewise.
8955 * tree-ssa-dce.c: Likewise.
8956 * tree-ssa-forwprop.c: Likewise.
8957 * tree-ssa-ifcombine.c: Likewise.
8958 * tree-ssa-loop-im.c: Likewise.
8959 * tree-ssa-loop-ivopts.c: Likewise.
8960 * tree-ssa-loop-manip.c: Likewise.
8961 * tree-ssa-loop-niter.c: Likewise.
8962 * tree-ssa-loop-prefetch.c: Likewise.
8963 * tree-ssa-loop-unswitch.c: Likewise.
8964 * tree-ssa-math-opts.c: Likewise.
8965 * tree-ssa-phiopt.c: Likewise.
8966 * tree-ssa-phiprop.c: Likewise.
8967 * tree-ssa-pre.c: Likewise.
8968 * tree-ssa-propagate.c: Likewise.
8969 * tree-ssa-reassoc.c: Likewise.
8970 * tree-ssa-sccvn.c: Likewise.
8971 * tree-ssa-strlen.c: Likewise.
8972 * tree-ssa.c: Likewise.
8973 * tree-switch-conversio: Likewise.n.c
8974 * tree-tailcall.c: Likewise.
8975 * tree-vect-data-refs.c: Likewise.
8976 * tree-vect-generic.c: Likewise.
8977 * tree-vect-loop-manip.c: Likewise.
8978 * tree-vect-loop.c: Likewise.
8979 * tree-vect-patterns.c: Likewise.
8980 * tree-vect-stmts.c: Likewise.
8981 * tsan.c: Likewise.
8982 * value-prof.c: Likewise.
8983 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8984 * config/alpha/alpha.c: Likewise.
8985 * config/darwin.c: Likewise.
8986 * config/i386/i386.c: Likewise.
8987 * config/ia64/ia64.c: Likewise.
8988 * config/mep/mep.c: Likewise.
8989 * config/mips/mips.c: Likewise.
8990 * config/rs6000/rs6000.c: Likewise.
8991 * config/s390/s390.c: Likewise.
8992 * config/sh/sh.c: Likewise.
8993 * config/sparc/sparc.c: Likewise.
8994 * config/spu/spu.c: Likewise.
8995 * config/stormy16/stormy16.c: Likewise.
8996 * config/tilegx/tilegx.c: Likewise.
8997 * config/tilepro/tilepro.c: Likewise.
8998 * config/xtensa/xtensa.c: Likewise.
8999
9000 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
9001
9002 * tree.c (grow_tree_vec_stat): New function ...
9003 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
9004 and macro front-end.
9005
9006 2013-11-12 Marek Polacek <polacek@redhat.com>
9007
9008 * final.c (update_alignments): Initialize label to NULL_RTX.
9009
9010 2013-11-12 Jeff Law <law@redhat.com>
9011
9012 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9013 (insert_trap_and_remove_trailing_statements): New argument OP which
9014 is the NULL pointer. Emit the trap after the load/store through
9015 the NULL pointer. Simplify the RHS of a store through a NULL pointer
9016 when trivial to do so.
9017 (isolate_path): Corresponding changes.
9018 (gimple_ssa_isolate_erroneous_path): Likewise.
9019
9020 2013-11-12 Teresa Johnson <tejohnson@google.com>
9021 Jan Hubicka <jh@suse.cz>
9022
9023 * predict.c (drop_profile): New function.
9024 (handle_missing_profiles): Ditto.
9025 (counts_to_freqs): Don't overwrite estimated frequencies
9026 when function has no profile counts.
9027 * predict.h (handle_missing_profiles): Declare.
9028 * tree-inline.c (freqs_to_counts): New function.
9029 (copy_cfg_body): Invoke freqs_to_counts as needed.
9030 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9031
9032 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9033
9034 PR target/59088
9035 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9036 Set for m_HASWELL.
9037 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9038
9039 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9040
9041 PR target/59084
9042 * config/i386/i386.c (ix86_option_override_internal): Check
9043 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9044 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9045 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9046 MASK_AVX256_SPLIT_UNALIGNED_STORE.
9047
9048 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9049 Clear m_COREI7_AVX and update comments.
9050 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9051
9052 2013-11-12 Martin Jambor <mjambor@suse.cz>
9053
9054 PR rtl-optimization/10474
9055 * ira.c (interesting_dest_for_shprep): New function.
9056 (split_live_ranges_for_shrink_wrap): Likewise.
9057 (find_moveable_pseudos): Move calculation of dominance info,
9058 df_analysios and the final anlyses to...
9059 (ira): ...here, call split_live_ranges_for_shrink_wrap.
9060
9061 2013-11-12 Bin Cheng <bin.cheng@arm.com>
9062
9063 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9064 Handle type conversion.
9065
9066 2013-11-11 Martin Liska <marxin.liska@gmail.com>
9067 Jan Hubicka <jh@suse.cz>
9068
9069 * cgraph.c (dump_cgraph_node): Profile dump added.
9070 * cgraph.h (struct cgraph_node): New time profile variable added.
9071 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9072 * gcov-io.h (gcov_type): New profiler type introduced.
9073 * ipa-profile.c (lto_output_node): Streaming for time profile added.
9074 (input_node): Time profiler is read from LTO stream.
9075 * predict.c (maybe_hot_count_p): Hot prediction changed.
9076 * profile.c (instrument_values): New case for time profiler added.
9077 (compute_value_histograms): Read of time profile.
9078 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9079 * tree-profile.c (init_ic_make_global_vars): Time profiler
9080 function added.
9081 (gimple_init_edge_profiler): TP function instrumentation.
9082 (gimple_gen_time_profiler): New.
9083 * value-prof.c (gimple_add_histogram_value): Support for time profiler
9084 added.
9085 (dump_histogram_value): TP type added to dumps.
9086 (visit_hist): More sensitive check that takes TP into account.
9087 (gimple_find_values_to_profile): TP instrumentation.
9088 * value-prof.h (hist_type): New histogram type added.
9089 (struct histogram_value_t): Pointer to struct function added.
9090 * libgcc/Makefile.in: New GCOV merge function for TP added.
9091 * libgcov.c: function_counter variable introduced.
9092 (_gcov_merge_time_profile): New.
9093 (_gcov_time_profiler): New.
9094
9095 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
9096 Jeff Law <law@redhat.com>
9097
9098 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9099 ao_ref_init_from_ptr_and_size for builtins.
9100
9101 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
9102 H.J. Lu <hongjiu.lu@intel.com>
9103
9104 PR target/58853
9105 * config/i386/x86-tune.def
9106 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9107 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9108 * config/i386/i386.h
9109 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9110 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
9111 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9112 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9113 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9114 misaligned_prologue_used. Check that
9115 desired_aling <= epilogue_size_needed.
9116
9117 2013-11-11 Cong Hou <congh@google.com>
9118
9119 PR tree-optimization/59050
9120 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9121
9122 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9123
9124 PR middle-end/59049
9125 * expmed.c (emit_store_flag): Fail for const-const comparison.
9126
9127 2013-11-11 Tristan Gingold <gingold@adacore.com>
9128 Eric Botcazou <ebotcazou@adacore.com>
9129
9130 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9131 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9132 * tree.def (CONSTRUCTOR): Likewise.
9133 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
9134 * gimplify.c (gimplify_init_constructor): Do not clear the object when
9135 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9136
9137 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
9138
9139 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9140 diagnostic_finish.
9141
9142 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9143
9144 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9145 comparisons.
9146
9147 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9148
9149 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9150
9151 2013-11-08 Jeff Law <law@redhat.com>
9152
9153 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9154 threading paths first, then perform PHI node checks if applicable.
9155
9156 2013-11-10 Karlson2k <k2k@narod.ru>
9157 Kai Tietz <ktietz@redhat.com>
9158
9159 PR plugin/52872
9160 * configure.ac: Adding for exported symbols check
9161 and for rdynamic-check executable-extension.
9162 * configure: Regenerated.
9163
9164 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
9165
9166 * mode-switching.c (optimize_mode_switching): Mark block as
9167 nontransparent, if last_mode at block exit is different from no_mode.
9168
9169 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9170
9171 * function.c (NAME__MAIN): Move to...
9172 * cfgexpand.c (NAME__MAIN): ...here.
9173
9174 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
9175
9176 * target.def (can_use_doloop_p): New hook.
9177 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9178 * doc/tm.texi: Regenerate.
9179 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9180 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9181 * hooks.c (hook_bool_dint_dint_uint_true): New function.
9182 * targhooks.h (can_use_doloop_if_innermost): Declare.
9183 * targhooks.c (can_use_doloop_if_innermost): New function.
9184 * target.h: Include double-int.h.
9185 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9186 Remove iteration count, maximum iteration count, loop depth and
9187 enter-at-top inputs from doloop_begin and doloop_end.
9188 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9189 interface.
9190 * config/arc/arc.c (arc_can_use_doloop_p): New function.
9191 (TARGET_CAN_USE_DOLOOP_P): Define.
9192 * config/arm/thumb2.md (doloop_end): Update for new interface.
9193 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9194 * config/bfin/bfin.md (doloop_end): Update for new interface.
9195 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9196 (TARGET_CAN_USE_DOLOOP_P): Define.
9197 * config/c6x/c6x.md (doloop_end): Update for new interface.
9198 * config/ia64/ia64.md (doloop_end): Update for new interface.
9199 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9200 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9201 interface.
9202 * config/mep/mep.c (mep_emit_doloop): Likewise.
9203 (TARGET_CAN_USE_DOLOOP_P): Define.
9204 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9205 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9206 * config/s390/s390.md (doloop_end): Update for new interface.
9207 * config/sh/sh.md (doloop_end): Likewise.
9208 * config/spu/spu.md (doloop_end): Likewise.
9209 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9210 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9211 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9212 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9213 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9214 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9215 interface.
9216 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9217
9218 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
9219
9220 PR other/59055
9221 * doc/extend.texi: Move Cilk Plus Builtins node before Other
9222 Builtins node.
9223
9224 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
9225 Joseph Myers <joseph@codesourcery.com>
9226
9227 * ginclude/stdatomic.h: New file.
9228 * Makefile.in (USER_H): Add stdatomic.h.
9229
9230 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9231
9232 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9233 comparisons.
9234
9235 2013-11-08 Jeff Law <law@redhat.com>
9236
9237 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9238 * tree-ssa-threadupdate.c (delete_thread_path): New function.
9239 (ssa_redirect_edges, thread_block_1): Use it.
9240 (thread_through_loop_header, mark_threaded_blocks): Likewise.
9241 (thread_through_all_blocks, register_jump_thread): Likewise.
9242 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9243
9244 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
9245
9246 * config/arm/aarch-common.c
9247 (search_term): New typedef.
9248 (shift_rtx_costs): New array.
9249 (arm_rtx_shift_left_p): New.
9250 (arm_find_sub_rtx_with_search_term): Likewise.
9251 (arm_find_sub_rtx_with_code): Likewise.
9252 (arm_early_load_addr_dep): Add sanity checking.
9253 (arm_no_early_alu_shift_dep): Likewise.
9254 (arm_no_early_alu_shift_value_dep): Likewise.
9255 (arm_no_early_mul_dep): Likewise.
9256 (arm_no_early_store_addr_dep): Likewise.
9257
9258 2013-11-08 Richard Biener <rguenther@suse.de>
9259
9260 PR tree-optimization/59047
9261 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9262
9263 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
9264
9265 * common.opt (fcheck-pointer-bounds): Move to ...
9266 * c-family/c.opt: ... here.
9267 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9268 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9269 * langhooks.h (lang_hooks): Remove chkp_supported field.
9270 * toplev.c (process_options): Remove chkp_supported check.
9271
9272 2013-11-08 Richard Biener <rguenther@suse.de>
9273
9274 PR tree-optimization/59038
9275 PR tree-optimization/58955
9276 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9277 previous change. Handle known dependences correctly.
9278
9279 2013-11-08 Tom de Vries <tom@codesourcery.com>
9280
9281 * config/rs6000/t-xilinx: Remove duplicate contents.
9282
9283 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
9284 Joseph Myers <joseph@codesourcery.com>
9285
9286 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9287 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9288 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9289 (struct tree_base): Add atomic_flag field.
9290 * tree.h (TYPE_ATOMIC): New accessor macro.
9291 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9292 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9293 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9294 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9295 * tree.c (set_type_quals): Set TYPE_ATOMIC.
9296 (find_atomic_core_type): New function.
9297 (build_qualified_type): Adjust alignment for qualified types.
9298 (build_atomic_base): New function
9299 (build_common_tree_nodes): Build atomicQI_type_node,
9300 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9301 atomicTI_type_node.
9302 * print-tree.c (print_node): Print atomic qualifier.
9303 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9304 * target.def (atomic_assign_expand_fenv): New hook.
9305 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9306 * doc/tm.texi: Regenerate.
9307 * targhooks.c (default_atomic_assign_expand_fenv): New function.
9308 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9309 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9310 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9311 function type.
9312 * config/i386/i386.c (enum ix86_builtins): Add
9313 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9314 IX86_BUILTIN_FNCLEX.
9315 (bdesc_special_args): Add __builtin_ia32_fnstenv,
9316 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9317 (ix86_expand_builtin): Handle the new built-in functions.
9318 (ix86_atomic_assign_expand_fenv): New function.
9319 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9320 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9321 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9322 (fnstenv, fldenv, fnstsw, fnclex): New insns.
9323
9324 2013-11-07 Steve Ellcey <sellcey@mips.com>
9325
9326 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9327 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9328 (MULTILIB_DIRNAMES): Add fp64 directory.
9329 (MULTILIB_EXCEPTIONS): Add new exclusions.
9330
9331 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
9332
9333 * gimplify.c (gimple_regimplify_operands): Do not set
9334 SSA_NAME_DEF_STMT.
9335 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9336 (rewrite_close_phi_out_of_ssa): Same.
9337 (rewrite_phi_out_of_ssa): Same.
9338 (rewrite_degenerate_phi): Same.
9339 (handle_scalar_deps_crossing_scop_limits): Same.
9340 * tree-if-conv.c (predicate_scalar_phi): Same.
9341 * tree-parloops.c (create_loads_for_reductions): Same.
9342 (create_final_loads_for_reduction): Same.
9343 (create_loads_and_stores_for_name): Same.
9344 (transform_to_exit_first_loop): Same.
9345 (create_parallel_loop): Same.
9346 * tree-ssa-loop-im.c
9347 (move_computations_dom_walker::before_dom_children): Same.
9348 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9349 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9350 * tree-ssa-propagate.c (substitute_and_fold): Same.
9351 * tree-vect-loop.c (vect_finalize_reduction): Same.
9352 * tree-vect-stmts.c (vectorizable_call): Same.
9353
9354 2013-11-07 Mike Stump <mikestump@comcast.net>
9355
9356 * config/pdp11/pdp11.c: Include dbxout.h.
9357 * config/picochip/picochip.c: Likewise.
9358
9359 2013-11-07 Cong Hou <congh@google.com>
9360
9361 PR tree-optimization/56764
9362 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9363 Combine alias checks if it is possible to amortize the runtime
9364 overhead. Return the number of alias checks after merging.
9365 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9366 Use the function vect_create_cond_for_alias_checks () to check
9367 the number of alias checks.
9368
9369 2013-11-07 Jeff Law <law@redhat.com>
9370
9371 * varpool.c (ctor_for_folding): Fix typo in comment.
9372
9373 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
9374
9375 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9376 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
9377
9378 2013-11-07 Jeff Law <law@redhat.com>
9379
9380 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9381
9382 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9383 No longer check if we have __builtin_trap, assume it's available.
9384
9385 2013-11-07 Diego Novillo <dnovillo@google.com>
9386
9387 * attribs.c (lookup_scoped_attribute_spec): Make static.
9388 (get_attribute_namespace): Likewise.
9389 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9390 (validate_arglist): Move earlier in the file. Make static.
9391 (expand_stack_restore): Move from stmt.c
9392 (expand_stack_save): Move from stmt.c
9393 (rewrite_call_expr_array): Move earlier in the file.
9394 (rewrite_call_expr_valist): Likewise.
9395 * cfgexpand.c: Include hard-reg-set.h before tree.h
9396 Include recog.h.
9397 Include output.h.
9398 (expand_asm_loc): Move from stmt.c.
9399 (n_occurrences): Move from stmt.c.
9400 (check_operand_nalternatives): Move from stmt.c.
9401 (tree_conflicts_with_clobbers_p): Move from stmt.c.
9402 (expand_asm_operands): Move from stmt.c
9403 (expand_asm_stmt): Move from stmt.c
9404 (expand_computed_goto): Move from stmt.c
9405 (expand_goto): Move from stmt.c
9406 (expand_null_return_1): Move from stmt.c
9407 (expand_null_return): Move from stmt.c
9408 (expand_value_return): Move from stmt.c
9409 (expand_return): Move from stmt.c
9410 (expand_main_function): Move from function.c
9411 (stack_protect_prologue): Move from function.c
9412 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9413 (build_function_decl_skip_args): Move from tree.c.
9414 * explow.c (tree_expr_size): Move from tree.c.
9415 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9416 (fields_length): Move from tree.c.
9417 * fold-const.c (size_low_cst): Move from tree.c.
9418 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9419 (tree_expr_nonzero_p): Make static. Move earlier in the file.
9420 (fold_build3_initializer_loc): Remove.
9421 (tree_invalid_nonnegative_warnv_p): Make static.
9422 * function.c (expand_main_function): Move to cfgexpand.c.
9423 (stack_protect_prologue): Move to cfgexpand.c.
9424 (set_insn_locations): Move earlier in the file.
9425 * gimple-fold.c: Include langhooks.h.
9426 (truth_type_for): Move from tree.c.
9427 * print-tree.c (print_vec_tree): Remove.
9428 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9429 (expand_goto): Move to cfgexpand.c.
9430 (n_occurrences): Move to cfgexpand.c.
9431 (expand_asm_loc): Move to cfgexpand.c
9432 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9433 (expand_asm_operands): Move to cfgexpand.c.
9434 (expand_asm_stmt): Move to cfgexpand.c.
9435 (check_operand_nalternatives): Move to cfgexpand.c
9436 (expand_null_return): Move to cfgexpand.c.
9437 (expand_value_return): Move to cfgexpand.c.
9438 (expand_null_return_1): Move to cfgexpand.c.
9439 (expand_return): Move to cfgexpand.c.
9440 (expand_stack_save): Move to builtins.c.
9441 (expand_stack_restore): Move to builtins.c
9442 * symtab.c: Include output.h.
9443 (decl_assembler_name_hash): Move from tree.c.
9444 (decl_assembler_name_equal): Move from tree.c.
9445 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9446 * tree-eh.c (in_array_bounds_p): Move from tree.c.
9447 (range_in_array_bounds_p): Move from tree.c.
9448 * tree-object-size.c (fini_object_sizes): Make static.
9449 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9450 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9451 * tree.c (decl_assembler_name_equal): Move to symtab.c.
9452 (tree_expr_size): Move to explow.c.
9453 (decl_assembler_name_hash): Move to symtab.c.
9454 (real_twop): Remove.
9455 (tree_expr_size): Move to explow.c.
9456 (stabilize_reference_1): Move earlier in the file. Make static.
9457 (omp_remove_redundant_declare_simd_attrs): Remove.
9458 (simple_cst_list_equal): Move earlier in the file. Make static.
9459 (size_low_cst): Move to fold-const.c.
9460 (build_type_no_quals): Remove.
9461 (build_function_type_skip_args): Move to cgraphclones.c.
9462 (build_function_decl_skip_args): Move to cgraphclones.c.
9463 (in_array_bounds_p): Move to tree-eh.c.
9464 (range_in_array_bounds_p): Move to tree-eh.c.
9465 (truth_type_for): Move to gimple-fold.c.
9466 (list_equal_p): Remove.
9467 * tree.h (decl_assembler_name_equal): Remove.
9468 (decl_assembler_name_hash): Remove.
9469 (truth_type_for): Remove.
9470 (build_type_no_quals): Remove.
9471 (build_function_decl_skip_args): Remove.
9472 (in_array_bounds_p): Remove.
9473 (range_in_array_bounds_p): Remove.
9474 (size_low_cst): Remove.
9475 (omp_remove_redundant_declare_simd_attrs): Remove.
9476 (tree_expr_size): Remove.
9477 (fields_length): Remove.
9478 (stabilize_reference_1): Remove.
9479 (expand_goto): Remove.
9480 (expand_stack_save): Remove.
9481 (expand_stack_restore): Remove.
9482 (expand_return): Remove.
9483 (fold_build3_initializer_loc): Remove.
9484 (tree_expr_nonzero_p): Remove.
9485 (tree_invalid_nonnegative_warnv_p): Remove.
9486 (tree_expr_nonzero_warnv_p): Remove.
9487 (fold_builtin_snprintf_chk): Remove.
9488 (validate_arglist): Remove.
9489 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9490 (simple_cst_list_equal): Remove.
9491 (real_twop): Remove.
9492 (expand_main_function): Remove.
9493 (stack_protect_prologue): Remove.
9494 (print_vec_tree): Remove.
9495 (lookup_scoped_attribute_spec): Remove.
9496 (get_attribute_namespace): Remove.
9497 (expand_computed_goto): Remove.
9498 (expand_asm_stmt): Remove.
9499 (list_equal_p): Remove.
9500 (ssa_name_nonnegative_p): Remove.
9501 (fini_object_sizes): Remove.
9502 (addr_expr_of_non_mem_decl_p): Remove.
9503 (is_tm_safe_or_pure): Move to trans-mem.c.
9504 (more_const_call_expr_args_p): Remove.
9505 (save_vtable_map_decl): Remove.
9506
9507 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9508
9509 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9510 linker plugins, too.
9511
9512 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9513 link to libgomp and its dependencies.
9514 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9515 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9516 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9517 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9518
9519 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9520
9521 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9522 (determine_value_range): Add loop argument. Use get_range_info to
9523 improve range.
9524 (bound_difference): Adjust caller.
9525
9526 2013-11-07 Richard Biener <rguenther@suse.de>
9527 Jakub Jelinek <jakub@redhat.com>
9528
9529 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9530 latches from header PHI arguments from the latch edge.
9531
9532 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9533
9534 PR c++/58176
9535 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9536
9537 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9538
9539 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9540 misaligned_prologue_used when it has been set.
9541
9542 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9543 Jakub Jelinek <jakub@redhat.com>
9544
9545 PR sanitizer/59029
9546 * asan.c (get_mem_refs_of_builtin_call): Allow
9547 integer literals as addresses in instrumented builtins.
9548
9549 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9550
9551 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9552 Explain why plus_constant is not used.
9553
9554 2013-11-07 Richard Biener <rguenther@suse.de>
9555
9556 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9557 (canonicalize_value): ... this. Also handle stripping of
9558 TREE_OVERFLOW.
9559 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9560 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9561 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9562
9563 2013-11-07 Richard Biener <rguenther@suse.de>
9564
9565 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9566
9567 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9568
9569 PR target/59034
9570 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9571 with stack_pointer_rtx.
9572
9573 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9574
9575 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9576 using operand_equal_p.
9577
9578 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9579
9580 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9581 * tree-affine.c (get_inner_reference_aff): Return base.
9582 * tree-affine.h (get_inner_reference_aff): Change prototype.
9583
9584 2013-11-06 Tobias Burnus <burnus@net-b.de>
9585
9586 * doc/invoke.texi (Wdate-time): Fix typo.
9587
9588 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9589
9590 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9591 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9592 fp_arith_reg_operand instead of arith_reg_operand.
9593
9594 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9595
9596 * config/sh/sh.md (adddi3): Remove empty constraints.
9597 Remove can_create_pseudo_p and arith_reg_operand check.
9598 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9599 Split before reload.
9600
9601 2013-11-06 Jeff Law <law@redhat.com>
9602 Tom Tromey <tromey@redhat.com>
9603
9604 * gdbinit.in: Disable strict type checking.
9605
9606 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9607
9608 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9609 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9610 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9611 (rest_of_handle_live_range_shrinkage): Ditto
9612 (class pass_live_range_shrinkage): Ditto.
9613 (pass_data_live_range_shrinkage): Ditto.
9614 (make_pass_live_range_shrinkage): Ditto.
9615 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9616 (finish_live_range_shrinkage): Ditto.
9617 * sched-deps.c (create_insn_reg_set): Make void return value.
9618 * passes.def: Add pass_live_range_shrinkage.
9619 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9620 * haifa-sched.c (live_range_shrinkage_p): New.
9621 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9622 New functions.
9623 (rank_for_schedule): Add code for pressure relief through live
9624 range shrinkage.
9625 (schedule_insn): Print more debug info.
9626 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9627 through live range shrinkage.
9628 * doc/invoke.texi (-flive-range-shrinkage): New.
9629 * common.opt (flive-range-shrinkage): New.
9630
9631 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9632
9633 PR target/59021
9634 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9635 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9636 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9637 RTXes that return in AVX256 register.
9638
9639 2013-11-06 Richard Biener <rguenther@suse.de>
9640
9641 PR tree-optimization/58653
9642 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9643 (prepare_initializers_chain): Adjust.
9644
9645 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9646
9647 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9648 (gimple_in_transaction): Use bb_in_transaction.
9649 * basic-block.h (bb_in_transaction): Relocate here and rename.
9650 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9651
9652 2013-11-06 Richard Biener <rguenther@suse.de>
9653
9654 * tree.c (drop_tree_overflow): New function.
9655 * tree.h (drop_tree_overflow): Declare.
9656 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9657 * tree-vrp.c (range_int_cst_singleton_p): Use
9658 is_overflow_infinity instead of testing TREE_OVERFLOW.
9659 (extract_range_from_assert): Likewise.
9660 (zero_nonzero_bits_from_vr): Likewise.
9661 (extract_range_basic): Likewise.
9662 (register_new_assert_for): Use drop_tree_overflow.
9663 (vrp_visit_phi_node): Likewise.
9664
9665 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9666
9667 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9668 checking for leaf functions without dynamic stack allocation.
9669 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9670 (ia64_expand_prologue): Likewise.
9671 * config/mips/mips.c (mips_expand_prologue): Likewise.
9672 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9673 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9674 (sparc_flat_expand_prologue): Likewise.
9675
9676 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9677
9678 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9679 (__ST3_LANE_FUNC): Likewise.
9680 (__ST4_LANE_FUNC): Likewise.
9681
9682 2013-11-06 Nick Clifton <nickc@redhat.com>
9683
9684 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9685 name returned by msp430_mcu_name.
9686 (LIB_SPEC): If a -T option has not been specified then set a
9687 default, mcu-specific, linker script.
9688 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9689 * config/msp430/msp430.c (msp430x_names): Likewise.
9690 Alpha sort the names for ease of comparison.
9691 (msp430_mcu_name): New function: Returns a string suitable for
9692 use as a C preprocessor symbol based upon the name of the MCU
9693 being targeted.
9694 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9695 mcu names.
9696 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9697
9698 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9699 unless it is the last part of a spec substring.
9700 * doc/invoke.texi (Spec Files): Document space insertion
9701 behaviour of %*.
9702
9703 2013-11-06 Christian Bruel <christian.bruel@st.com>
9704
9705 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9706 Factorize probabilities, Use adjust_address instead of
9707 adjust_automodify_address when possible. Enable for optimize.
9708 (sh_expand_strlen): New function.
9709 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9710 * config/sh/sh.md (strlensi): New pattern.
9711 (UNSPEC_BUILTIN_STRLEN): Define.
9712
9713 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9714
9715 PR middle-end/58970
9716 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9717 (expand_assignment): If *bitpos is negative, set *offset
9718 and adjust *bitpos, so that it is not negative.
9719
9720 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9721
9722 * config/i386/bdver3.md : Added two additional decoder units
9723 to support issue rate of 4 and remodeled vector unit.
9724 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9725 architectures is set to 4.
9726 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9727 lookahead is set to 4 for BD architectures.
9728
9729 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9730
9731 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9732 Remove restriction against use of VSX instructions when generating
9733 code for little endian mode.
9734
9735 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9736
9737 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9738 for both big and little endian.
9739 (mulv8hi3): Swap input operands for merge high and merge low
9740 instructions for little endian.
9741
9742 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9743
9744 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9745 define_insn to define_expand that uses even patterns for big
9746 endian and odd patterns for little endian.
9747 (vec_widen_smult_even_v16qi): Likewise.
9748 (vec_widen_umult_even_v8hi): Likewise.
9749 (vec_widen_smult_even_v8hi): Likewise.
9750 (vec_widen_umult_odd_v16qi): Likewise.
9751 (vec_widen_smult_odd_v16qi): Likewise.
9752 (vec_widen_umult_odd_v8hi): Likewise.
9753 (vec_widen_smult_odd_v8hi): Likewise.
9754 (altivec_vmuleub): New define_insn.
9755 (altivec_vmuloub): Likewise.
9756 (altivec_vmulesb): Likewise.
9757 (altivec_vmulosb): Likewise.
9758 (altivec_vmuleuh): Likewise.
9759 (altivec_vmulouh): Likewise.
9760 (altivec_vmulesh): Likewise.
9761 (altivec_vmulosh): Likewise.
9762
9763 2013-11-05 Mike Stump <mikestump@comcast.net>
9764
9765 * Makefile.in (mostlyclean): Remove c-family objects.
9766
9767 2013-11-05 Ian Lance Taylor <iant@google.com>
9768
9769 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9770 If possible, add .cfi directives to record change to bx.
9771 * config/i386/i386.c (ix86_emit_cfi): New function.
9772 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9773
9774 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9775
9776 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9777 immediately after a label for a tablejump pattern.
9778
9779 * config/arm/arm.c (is_jump_table): Remove.
9780 (create_fix_barrier): Use tablejump_p instead.
9781 (arm_reorg): Likewise.
9782 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9783 (thumb2_output_casesi): Likewise.
9784 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9785 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9786 casesi_shift_media, casesi_load_media): Likewise.
9787 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9788 * config/microblaze/microblaze.md: Likewise.
9789
9790 2013-11-05 Tobias Burnus <burnus@net-b.de>
9791
9792 * doc/invoke.texi (-Wdate-time): Document.
9793
9794 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9795
9796 * double-int.c (lshift_double, rshift_double): Remove
9797 SHIFT_COUNT_TRUNCATED handling.
9798
9799 2013-11-05 Jeff Law <law@redhat.com>
9800
9801 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9802 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9803 * gimple-ssa-isolate-paths.c: New file.
9804 * gimple.c (check_loadstore): New function.
9805 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9806 Verify OP is in the argument list and the argument corresponding
9807 to OP is a pointer type. Use operand_equal_p rather than
9808 pointer equality when testing if OP is on the nonnull list.
9809 Use check_loadstore rather than count_ptr_derefs. Handle
9810 GIMPLE_RETURN statements.
9811 * tree-vrp.c (infer_nonnull_range): Remove.
9812 * gimple.h (infer_nonnull_range): Declare.
9813 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9814 * passes.def: Add pass_isolate_erroneous_paths.
9815 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9816 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9817 * tree-ssa.c (struct count_ptr_d): Remove.
9818 (count_ptr_derefs, count_uses_and_derefs): Remove.
9819 * tree-ssa.h (count_uses_and_derefs): Remove.
9820
9821 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9822
9823 PR rtl-optimization/58997
9824 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9825 get_iv_value to be in iv->mode rather than iv->extend_mode.
9826 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9827 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9828 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9829 mode.
9830
9831 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9832
9833 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9834 list.
9835 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9836 Move to gimple-expr.h.
9837 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9838 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9839 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9840 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9841 Relocate here.
9842 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9843 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9844 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9845 is_gimple_address, is_gimple_invariant_address,
9846 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9847 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9848 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9849 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9850 gimple_decl_printable_name, useless_type_conversion_p,
9851 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9852 gimple-expr.[ch].
9853 * gimple-expr.c: New File.
9854 (useless_type_conversion_p, gimple_set_body, gimple_body,
9855 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9856 gimple_can_coalesce_p, extract_ops_from_tree_1,
9857 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9858 is_gimple_address, is_gimple_invariant_address,
9859 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9860 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9861 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9862 is_gimple_mem_ref_addr): Relocate here.
9863 * Makefile.in (OBJS): Add gimple-expr.o.
9864
9865 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9866
9867 * gengtype-parse.c (struct_field_seq): Support empty structs.
9868
9869 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9870
9871 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9872
9873 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9874
9875 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9876 for !TARGET_80387.
9877 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9878 _SOFT_FLOAT here.
9879 (LONG_DOUBLE_TYPE_SIZE): New define.
9880 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9881
9882 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9883
9884 PR c++/58724
9885 * doc/extend.texi [visibility ("visibility_type")]: Add example
9886 about visibility attribute on namespace declaration.
9887
9888 2013-11-05 Richard Biener <rguenther@suse.de>
9889
9890 PR ipa/58492
9891 * passes.def (all_passes): Start with pass_fixup_cfg again.
9892
9893 2013-11-05 Richard Biener <rguenther@suse.de>
9894
9895 PR tree-optimization/58955
9896 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9897 edge direction.
9898
9899 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9900
9901 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9902 little endian.
9903 (vec_pack_ufix_trunc_v2df): Likewise.
9904
9905 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9906
9907 PR middle-end/58981
9908 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9909 pattern, instead of word_mode.
9910
9911 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9912 Pmode for size.
9913 (set_storage_via_setmem): Likewise.
9914
9915 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9916
9917 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9918 gimple.h and the rest of the condition in eliminate_build.
9919 (eliminate_build): Call new routine.
9920 * gimple.h (phi_ssa_name_p): Delete.
9921
9922 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9923
9924 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9925 case of no prefix and reserving zero slots, because when that's the
9926 case we'll never get here.
9927 * vec.h (va_heap::reserve): Don't try and handle
9928 vec_prefix::calculate_allocation returning zero because that should
9929 never happen.
9930
9931 2013-11-05 Richard Biener <rguenther@suse.de>
9932
9933 PR middle-end/58941
9934 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9935 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9936 process trailing array detection before diving into the
9937 view-converted object (and possibly apply some extra offset).
9938
9939 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9940
9941 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9942 New function.
9943 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9944
9945 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9946
9947 PR tree-optimization/58958
9948 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9949 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9950
9951 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9952
9953 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9954 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9955
9956 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9957
9958 PR tree-optimization/58984
9959 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9960 set *SIZE_P if non-NULL on success.
9961 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9962 callers.
9963 (ipcp_transform_function): Likewise. Punt if size of access
9964 is different from TYPE_SIZE on v->value's type.
9965
9966 2013-11-05 Tobias Burnus <burnus@net-b.de>
9967
9968 * doc/invoke.texi (-fopenmp-simd): Document new option.
9969 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9970 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9971 * tree.c (attribute_value_equal): Ditto.
9972
9973 2013-11-04 Wei Mi <wmi@google.com>
9974
9975 * sched-rgn.c (add_branch_dependences): Keep insns in
9976 a SCHED_GROUP at the end of BB to remain their location.
9977
9978 2013-11-04 Wei Mi <wmi@google.com>
9979
9980 * config/i386/i386.c (memory_address_length): Extract a part
9981 of code to rip_relative_addr_p.
9982 (rip_relative_addr_p): New Function.
9983 (ix86_macro_fusion_p): Ditto.
9984 (ix86_macro_fusion_pair_p): Ditto.
9985 * config/i386/i386.h: Add new tune features about macro-fusion.
9986 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9987 * doc/tm.texi: Generated.
9988 * doc/tm.texi.in: Ditto.
9989 * haifa-sched.c (try_group_insn): New Function.
9990 (group_insns_for_macro_fusion): Ditto.
9991 (sched_init): Call group_insns_for_macro_fusion.
9992 * target.def: Add two hooks: macro_fusion_p and
9993 macro_fusion_pair_p.
9994
9995 2013-11-04 Kostya Serebryany <kcc@google.com>
9996
9997 Update to match the changed asan API.
9998 * asan.c (asan_function_start): New function.
9999 (asan_emit_stack_protection): Update the string stored in the
10000 stack red zone to match new API. Store the PC of the current
10001 function in the red zone.
10002 (asan_global_struct): Update the __asan_global definition to match
10003 the new API.
10004 (asan_add_global): Ditto.
10005 * asan.h (asan_function_start): New prototype.
10006 * final.c (final_start_function): Call asan_function_start.
10007 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10008 to __asan_init_v3.
10009
10010 2013-11-04 Wei Mi <wmi@google.com>
10011
10012 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10013 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10014 * config/i386/i386.c (ix86_option_override_internal): Ditto.
10015 (ix86_issue_rate): Ditto.
10016 (ix86_adjust_cost): Ditto.
10017 (ia32_multipass_dfa_lookahead): Ditto.
10018 (ix86_sched_init_global): Ditto.
10019 (get_builtin_code_for_version): Ditto.
10020 * config/i386/i386.h (enum target_cpu_default): Ditto.
10021 (enum processor_type): Ditto.
10022 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10023
10024 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10025
10026 PR rtl-optimization/58967
10027 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10028 !lra_in_progress for mode sizes bigger word.
10029
10030 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10031
10032 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10033 arguments to merge instruction for little endian.
10034 (vec_widen_umult_lo_v16qi): Likewise.
10035 (vec_widen_smult_hi_v16qi): Likewise.
10036 (vec_widen_smult_lo_v16qi): Likewise.
10037 (vec_widen_umult_hi_v8hi): Likewise.
10038 (vec_widen_umult_lo_v8hi): Likewise.
10039 (vec_widen_smult_hi_v8hi): Likewise.
10040 (vec_widen_smult_lo_v8hi): Likewise.
10041
10042 2013-11-04 Ian Lance Taylor <iant@google.com>
10043
10044 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10045 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10046 builtins that take pointers.
10047 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10048 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10049 (run_gcc): Pass -fnon-call-exceptions.
10050
10051 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10052
10053 * optabs.c (expand_vec_perm): Revert one incorrect line from
10054 2013-10-31 change.
10055
10056 PR tree-optimization/58978
10057 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10058 use_stmt by single_imm_use directly. Only call single_imm_use
10059 on SSA_NAMEs.
10060
10061 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10062
10063 PR rtl-optimization/58968
10064 * lra-spills.c (return_regno_p): New function.
10065 (lra_final_code_change): Use it.
10066
10067 2013-11-04 Joseph Myers <joseph@codesourcery.com>
10068
10069 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10070 * target.def (float_exceptions_rounding_supported_p): New hook.
10071 * targhooks.c (default_float_exceptions_rounding_supported_p): New
10072 function.
10073 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10074 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10075 New @hook.
10076 * doc/tm.texi: Regenerate.
10077 * config.gcc (powerpc*-*-linux*): Set extra_objs.
10078 * config/rs6000/rs6000-linux.c: New file.
10079 * config/rs6000/rs6000-protos.h
10080 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10081 * config/rs6000/linux.h
10082 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10083 * config/rs6000/linux64.h
10084 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10085 * config/rs6000/t-linux (rs6000-linux.o): New rule.
10086 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10087
10088 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10089
10090 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10091 Replace the define_insn_and_split with a define_insn and two
10092 define_splits, with the split after reload re-permuting the source
10093 register to its original value.
10094 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10095 (*vsx_le_perm_store_v8hi): Likewise.
10096 (*vsx_le_perm_store_v16qi): Likewise.
10097
10098 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10099
10100 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
10101 little endian.
10102
10103 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10104
10105 PR tree-optimization/58946
10106 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10107 bbs with bbinfo[idx].op != NULL before all blocks with
10108 bbinfo[idx].op == NULL.
10109
10110 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
10111
10112 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10113 (avr_dump_double_int_hex): Likewise.
10114 (avr_log_vadump): Remove %D and %X handling.
10115 * config/avr/avr.c (avr_double_int_push_digit): Delete.
10116 (avr_map_op_t): Change map from double_int to unsigned int.
10117 (avr_map_op): Update accordingly.
10118 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10119 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10120 unsigned ints rather than double_ints.
10121
10122 2013-11-03 Marek Polacek <polacek@redhat.com>
10123
10124 Implement -fsanitize=vla-bound.
10125 * opts.c (common_handle_option): Handle vla-bound.
10126 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10127 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10128 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10129
10130 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10131
10132 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10133 little endian.
10134
10135 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
10136
10137 * config/i386/constraints.md (Ts, Tv): New address constrains.
10138 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10139 constraint for address_no_seg_operand.
10140 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10141 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10142 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10143 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10144 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10145 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10146 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10147 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10148 constraint for vsib_address_operand.
10149
10150 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
10151
10152 * gcse.c (pre_delete): Remove references to regmove from comments.
10153 * recog.c: (validate_replace_rtx_1): Likewise.
10154 * config/rl78/rl78.c: Likewise.
10155 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10156 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10157 * common/config/mmix/mmix-common.c: Likewise.
10158
10159 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
10160
10161 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10162 * gimplify.c (gimplify_compound_lval): Likewise.
10163 * graphite-clast-to-gimple.c (gloog): Likewise.
10164 * graphite-dependences.c (loop_is_parallel_p): Likewise.
10165 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10166 (limit_scop); Likewise.
10167 (build_scops): Likewise.
10168 (dot_scop): Likewise.
10169 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10170 (build_scop_drs): Likewise.
10171 (insert_stmts): Likewise.
10172 (insert_out_of_ssa_copy): Likewise.
10173 (remove_phi): Likewise.
10174 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10175 * hw-doloop.c (discover_loop): Likewise.
10176 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10177 * tree-dfa.c (dump_enumerated_decls): Likewise.
10178 * tree-if-conv.c (if_convertable_loop_p): Likewise.
10179 * tree-inline.c (tree_function_versioning): Likewise.
10180 * tree-loop-distribution.c (build_rdg): Likewise.
10181 (rdg_flag_vertex_and_dependent): Likewise.
10182 (distribute_loop): Likewise.
10183 * tree-parloops.c (loop_parallel_p): Likewise.
10184 (eliminate_local_variables): Likewise.
10185 (separate_decls_in_region): Likewise.
10186 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10187 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10188 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10189 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10190 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10191 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10192 (vectorizable_condition): Likewise.
10193
10194 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
10195
10196 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10197 * configure: Regenerate.
10198 * config/i386/i386.md (*movdi_internal): Change
10199 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10200 (*movdf_internal): Ditto.
10201 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10202 * config/i386/sse.md (vec_concatv2di): Output interunit movq
10203 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10204
10205 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
10206
10207 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10208 after comment.
10209
10210 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10211
10212 Automated part of renaming of symtab_node_base to symtab_node.
10213
10214 Patch autogenerated by rename_symtab.py from
10215 https://github.com/davidmalcolm/gcc-refactoring-scripts
10216 revision 58bb219cc090b2f4516a9297d868c245495ee622
10217 with ChangeLog entry fixed up by hand.
10218
10219 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10220 symtab_node.
10221 (cgraph_node_for_asm): Likewise.
10222 * cgraph.h (symtab_node_base): Likewise.
10223 (cgraph_node): Likewise.
10224 (varpool_node): Likewise.
10225 (is_a_helper <cgraph_node>::test): Likewise.
10226 (is_a_helper <varpool_node>::test): Likewise.
10227 (symtab_nodes): Likewise.
10228 (symtab_register_node): Likewise.
10229 (symtab_unregister_node): Likewise.
10230 (symtab_remove_node): Likewise.
10231 (symtab_get_node): Likewise.
10232 (symtab_node_for_asm): Likewise.
10233 (symtab_node_asm_name): Likewise.
10234 (symtab_node_name): Likewise.
10235 (symtab_insert_node_to_hashtable): Likewise.
10236 (symtab_add_to_same_comdat_group): Likewise.
10237 (symtab_dissolve_same_comdat_group_list): Likewise.
10238 (dump_symtab_node): Likewise.
10239 (debug_symtab_node): Likewise.
10240 (dump_symtab_base): Likewise.
10241 (verify_symtab_node): Likewise.
10242 (verify_symtab_base): Likewise.
10243 (symtab_used_from_object_file_p): Likewise.
10244 (symtab_alias_ultimate_target): Likewise.
10245 (symtab_resolve_alias): Likewise.
10246 (fixup_same_cpp_alias_visibility): Likewise.
10247 (symtab_for_node_and_aliases): Likewise.
10248 (symtab_nonoverwritable_alias): Likewise.
10249 (availability symtab_node_availability): Likewise.
10250 (symtab_semantically_equivalent_p): Likewise.
10251 (fixup_same_cpp_alias_visibility): Likewise.
10252 (symtab_prevail_in_asm_name_hash): Likewise.
10253 (cgraph): Likewise.
10254 (varpool): Likewise.
10255 (varpool_first_variable): Likewise.
10256 (varpool_next_variable): Likewise.
10257 (varpool_first_static_initializer): Likewise.
10258 (varpool_next_static_initializer): Likewise.
10259 (varpool_first_defined_variable): Likewise.
10260 (varpool_next_defined_variable): Likewise.
10261 (cgraph_first_defined_function): Likewise.
10262 (cgraph_next_defined_function): Likewise.
10263 (cgraph_first_function): Likewise.
10264 (cgraph_next_function): Likewise.
10265 (cgraph_first_function_with_gimple_body): Likewise.
10266 (cgraph_next_function_with_gimple_body): Likewise.
10267 (symtab_alias_target): Likewise.
10268 (symtab_real_symbol_p): Likewise.
10269 (symtab_can_be_discarded): Likewise.
10270 * cgraphbuild.c (mark_address): Likewise.
10271 (mark_load): Likewise.
10272 (mark_store): Likewise.
10273 * cgraphunit.c (decide_is_symbol_needed): Likewise.
10274 (first): Likewise.
10275 (enqueue_node): Likewise.
10276 (referred_to_p): Likewise.
10277 (cgraph_process_same_body_aliases): Likewise.
10278 (analyze_functions): Likewise.
10279 (handle_alias_pairs): Likewise.
10280 (output_weakrefs): Likewise.
10281 (compile): Likewise.
10282 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10283 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10284 * ipa-prop.c (remove_described_reference): Likewise.
10285 (try_decrement_rdesc_refcount): Likewise.
10286 (ipa_edge_duplication_hook): Likewise.
10287 * ipa-ref.c (ipa_record_reference): Likewise.
10288 (ipa_maybe_record_reference): Likewise.
10289 (ipa_clone_ref): Likewise.
10290 (ipa_clone_references): Likewise.
10291 (ipa_clone_referring): Likewise.
10292 (ipa_find_reference): Likewise.
10293 (ipa_remove_stmt_references): Likewise.
10294 (ipa_clear_stmts_in_references): Likewise.
10295 * ipa-ref.h (symtab_node_base): Likewise.
10296 (ipa_ref): Likewise.
10297 (ipa_record_reference): Likewise.
10298 (ipa_maybe_record_reference): Likewise.
10299 (ipa_clone_references): Likewise.
10300 (ipa_clone_referring): Likewise.
10301 (ipa_clone_ref): Likewise.
10302 (ipa_find_reference): Likewise.
10303 (ipa_remove_stmt_references): Likewise.
10304 (ipa_clear_stmts_in_references): Likewise.
10305 * ipa-reference.c (ipa_reference_write_optimization_summary):
10306 Likewise.
10307 * ipa.c (enqueue_node): Likewise.
10308 (process_references): Likewise.
10309 (walk_polymorphic_call_targets): Likewise.
10310 (symtab_remove_unreachable_nodes): Likewise.
10311 (address_taken_from_non_vtable_p): Likewise.
10312 (comdat_can_be_unshared_p_1): Likewise.
10313 (comdat_can_be_unshared_p): Likewise.
10314 (can_replace_by_local_alias): Likewise.
10315 (function_and_variable_visibility): Likewise.
10316 * is-a.h: Likewise (within example in comment).
10317 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10318 (lto_symtab_encoder_encode): Likewise.
10319 (lto_symtab_encoder_delete_node): Likewise.
10320 (lto_symtab_encoder_in_partition_p): Likewise.
10321 (lto_set_symtab_encoder_in_partition): Likewise.
10322 (output_refs): Likewise.
10323 (compute_ltrans_boundary): Likewise.
10324 (output_symtab): Likewise.
10325 (input_node): Likewise.
10326 (input_ref): Likewise.
10327 (input_edge): Likewise.
10328 (input_cgraph_1): Likewise.
10329 (input_refs): Likewise.
10330 (output_cgraph_opt_summary): Likewise.
10331 (input_node_opt_summary): Likewise.
10332 (input_cgraph_opt_section): Likewise.
10333 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10334 Likewise.
10335 * lto-streamer-out.c (lto_output): Likewise.
10336 (output_symbol_p): Likewise.
10337 (produce_symtab): Likewise.
10338 * lto-streamer.h (lto_encoder_entry): Likewise.
10339 (lto_free_function_in_decl_state_for_node): Likewise.
10340 (lto_symtab_encoder_encode): Likewise.
10341 (lto_symtab_encoder_delete_node): Likewise.
10342 (lto_symtab_encoder_in_partition_p): Likewise.
10343 (lto_set_symtab_encoder_in_partition): Likewise.
10344 (lto_symtab_encoder_lookup): Likewise.
10345 (lsei_node): Likewise.
10346 (lto_symtab_encoder_deref): Likewise.
10347 * symtab.c (symtab_hash): Likewise.
10348 (assembler_name_hash): Likewise.
10349 (symtab_nodes): Likewise.
10350 (hash_node): Likewise.
10351 (eq_node): Likewise.
10352 (hash_node_by_assembler_name): Likewise.
10353 (eq_assembler_name): Likewise.
10354 (insert_to_assembler_name_hash): Likewise.
10355 (unlink_from_assembler_name_hash): Likewise.
10356 (symtab_prevail_in_asm_name_hash): Likewise.
10357 (symtab_register_node): Likewise.
10358 (symtab_insert_node_to_hashtable): Likewise.
10359 (symtab_unregister_node): Likewise.
10360 (symtab_get_node): Likewise.
10361 (symtab_remove_node): Likewise.
10362 (symtab_initialize_asm_name_hash): Likewise.
10363 (symtab_node_for_asm): Likewise.
10364 (symtab_add_to_same_comdat_group): Likewise.
10365 (symtab_dissolve_same_comdat_group_list): Likewise.
10366 (symtab_node_asm_name): Likewise.
10367 (symtab_node_name): Likewise.
10368 (dump_symtab_base): Likewise.
10369 (dump_symtab_node): Likewise.
10370 (dump_symtab): Likewise.
10371 (debug_symtab_node): Likewise.
10372 (verify_symtab_base): Likewise.
10373 (verify_symtab_node): Likewise.
10374 (verify_symtab): Likewise.
10375 (symtab_used_from_object_file_p): Likewise.
10376 (symtab_node_availability): Likewise.
10377 (symtab_alias_ultimate_target): Likewise.
10378 (fixup_same_cpp_alias_visibility): Likewise.
10379 (symtab_resolve_alias): Likewise.
10380 (symtab_for_node_and_aliases): Likewise.
10381 (symtab_for_node_and_aliases): Likewise.
10382 (symtab_nonoverwritable_alias_1): Likewise.
10383 (symtab_nonoverwritable_alias): Likewise.
10384 (symtab_semantically_equivalent_p): Likewise.
10385 * value-prof.c (init_node_map): Likewise.
10386 * varasm.c (find_decl): Likewise.
10387 * varpool.c (varpool_node_for_asm): Likewise.
10388 (varpool_remove_unreferenced_decls): Likewise.
10389
10390 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10391
10392 Manual part of renaming of symtab_node_base to symtab_node.
10393
10394 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10395 clashes with the preferred name for the base class.
10396 (const_symtab_node): Remove redundant typedef.
10397
10398 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10399
10400 * optabs.c (expand_vec_perm): Avoid vector mode punning
10401 SUBREGs in SET_DEST.
10402 * expmed.c (store_bit_field_1): Likewise.
10403 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10404 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10405 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10406 * config/i386/i386.c (ix86_expand_vector_move_misalign,
10407 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10408 ix86_expand_sse_unpack, ix86_expand_args_builtin,
10409 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10410 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10411 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10412 expand_vec_perm_vpshufb2_vpermq,
10413 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10414 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10415 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10416 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
10417 than *d itself.
10418
10419 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
10420
10421 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10422 Use gcc_unreachable for unhandled modes. Do not check results of
10423 expand_simple_binop. If not expanded to target, move the result.
10424
10425 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
10426 Shiva Chen <shiva0217@gmail.com>
10427
10428 * config.gcc (nds32*-*-*): Add nds32 target.
10429 * config/nds32/nds32.c: New file.
10430 * config/nds32/nds32.h: New file.
10431 * config/nds32/nds32.md: New file.
10432 * config/nds32/constants.md: New file.
10433 * config/nds32/constraints.md: New file.
10434 * config/nds32/iterators.md: New file.
10435 * config/nds32/nds32-doubleword.md: New file.
10436 * config/nds32/nds32-intrinsic.md: New file.
10437 * config/nds32/nds32_intrinsic.h: New file.
10438 * config/nds32/nds32-modes.def: New file.
10439 * config/nds32/nds32-multiple.md: New file.
10440 * config/nds32/nds32.opt: New file.
10441 * config/nds32/nds32-opts.h: New file.
10442 * config/nds32/nds32-protos.h: New file.
10443 * config/nds32/nds32-peephole2.md: New file.
10444 * config/nds32/pipelines.md: New file.
10445 * config/nds32/predicates.md: New file.
10446 * config/nds32/t-mlibs: New file.
10447 * common/config/nds32: New directory and files.
10448
10449 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10450 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10451 * doc/install.texi (Cross-Compiler-Specific Options): Document
10452 --with-nds32-lib for nds32 target.
10453 * doc/extend.texi (Function Attributes, Target Builtins): Document
10454 nds32 specific attributes.
10455
10456 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10457
10458 * lra-constraints (process_alt_operands): Use the result
10459 elimination register for operand when matching constraints.
10460
10461 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10462
10463 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10464 (remove_range_assertions): Call it.
10465
10466 * tree.c (tree_ctz): New function.
10467 * tree.h (tree_ctz): New prototype.
10468 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10469 first argument from tree to const_tree.
10470 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10471 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10472 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10473 static.
10474 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10475 * tree-vect-loop.c (vect_analyze_loop_operations,
10476 vect_transform_loop): Don't force scalar loop for bound just because
10477 number of iterations is unknown, only do it if it is not known to be
10478 a multiple of vectorization_factor.
10479 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10480
10481 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10482 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10483 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10484 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10485 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10486 a default def isn't partially constant.
10487 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10488 is known to be partially zero.
10489 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10490 to see if a default def isn't partially constant.
10491 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10492 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10493 the range.
10494 (set_nonzero_bits, get_nonzero_bits): New functions.
10495
10496 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10497 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10498 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10499 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10500 uses but in the condition and ASSERT_EXPR and the other successor of
10501 the predecessor bb is __builtin_unreachable (), set_range_info of the
10502 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10503
10504 2013-10-31 Martin Jambor <mjambor@suse.cz>
10505
10506 PR rtl-optimization/58934
10507 Revert:
10508 2013-10-30 Martin Jambor <mjambor@suse.cz>
10509 PR rtl-optimization/10474
10510 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10511 nor df analysis.
10512 (interesting_dest_for_shprep): New function.
10513 (split_live_ranges_for_shrink_wrap): Likewise.
10514 (ira): Calculate dominance info and df analysis. Call
10515 split_live_ranges_for_shrink_wrap.
10516
10517 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10518 Yury Gribov <y.gribov@samsung.com>
10519
10520 PR sanitizer/58543
10521 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10522 shadow pointer to avoid clobbering the main one.
10523
10524 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10525
10526 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10527
10528 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10529
10530 PR bootstrap/58933
10531 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10532 it for calling update_costs_from_allocno.
10533 (assign_hard_reg): Call restore_costs_from_copies only for
10534 !retry_p. Pass new argument to update_costs_from_copies.
10535 (color_pass): Pass new argument to update_costs_from_copies.
10536 (ira_mark_allocation_change): Ditto.
10537
10538 2013-10-30 Sharad Singhai <singhai@google.com>
10539
10540 PR middle-end/58134
10541 * opts.c (common_handle_option): Remove deprecated option
10542 -ftree-vectorizer-verbose.
10543 * doc/invoke.texi (Debugging Options): Ditto.
10544 * opts-global.c (handle_common_deferred_options): Ditto.
10545 (dump_remap_tree_vectorizer_verbose): Delete.
10546 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10547
10548 2013-10-30 DJ Delorie <dj@redhat.com>
10549
10550 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10551 that take no arguments.
10552
10553 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10554
10555 PR other/58545
10556 * reload1.c (update_eliminables_and_spill): New function, broken
10557 out of reload.
10558 (reload): Use it. Check for frame size change after frame size
10559 alignment, and call update_eliminables_and_spill first if continue-ing.
10560
10561 2013-10-30 Cong Hou <congh@google.com>
10562
10563 PR target/58762
10564 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10565 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10566 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10567
10568 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10569
10570 PR rtl-optimization/58369
10571 * reload1.c (compute_reload_subreg_offset): New function.
10572 (choose_reload_regs): Use it to pass endian-correct
10573 offset to subreg_regno_offset.
10574
10575 2013-10-30 Tobias Burnus <burnus@net-b.de>
10576
10577 PR other/33426
10578 * tree-cfg.c (replace_loop_annotate): Replace warning by
10579 warning_at.
10580
10581 2013-10-30 Jason Merrill <jason@redhat.com>
10582
10583 * configure.ac (loose_warn): Add -Wno-format if
10584 --disable-build-format-warnings.
10585
10586 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10587
10588 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10589 onto multiple lines to make things easier for rename_symtab.py.
10590
10591 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10592 (symtab_semantically_equivalent_p): Likewise.
10593
10594 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10595
10596 PR target/58784
10597 * lra.c (check_rtl): Remove address check before LRA work.
10598
10599 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10600
10601 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10602 POINTER_PLUS_EXPR in the defining statement.
10603
10604 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10605
10606 * regmove.c: Remove.
10607 * tree-pass.h (make_pass_regmove): Remove.
10608 * timevar.def (TV_REGMOVE): Remove.
10609 * passes.def (pass_regmove): Remove.
10610 * opts.c (default_options_table): Remove entry for regmove.
10611 * doc/passes.texi: Remove regmove pass description.
10612 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10613 options.
10614 (-fdump-rtl-regmove): Ditto.
10615 * common.opt (foptimize-register-move, fregmove): Ignore.
10616 * Makefile.in (OBJS): Remove regmove.o.
10617 * regmove.c: Remove.
10618 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10619 and type.
10620 (struct ira_allocno) New member allocno_prefs.
10621 (ALLOCNO_PREFS): New macro.
10622 (ira_prefs, ira_prefs_num): New external vars.
10623 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10624 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10625 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10626 Ditto.
10627 (ira_add_allocno_copy_to_list): Remove prototype.
10628 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10629 (ira_pref_iterator): New type.
10630 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10631 (FOR_EACH_PREF): New macro.
10632 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10633 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10634 code.
10635 (ira_setup_alts): New function.
10636 (decrease_live_ranges_number): New function.
10637 (ira): Call the above function.
10638 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10639 (ira_create_allocno): Initialize allocno prefs.
10640 (pref_pool, pref_vec): New static vars.
10641 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10642 functions.
10643 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10644 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10645 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10646 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10647 (ira_add_allocno_copy_to_list): Make static. Rename to
10648 add_allocno_copy_to_list.
10649 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10650 swap_allocno_copy_ends_if_necessary.
10651 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10652 ira_remove_allocno_prefs.
10653 (ira_flattening): Ditto.
10654 (ira_build): Call initiate_prefs, print_prefs.
10655 (ira_destroy): Call finish_prefs.
10656 * ira-color.c (struct update_cost_record): New.
10657 (struct allocno_color_data): Add new member update_cost_records.
10658 (update_cost_record_pool): New static var.
10659 (init_update_cost_records, get_update_cost_record): New functions.
10660 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10661 (struct update_cost_queue_elem): Add member from.
10662 (initiate_cost_update): Call init_update_cost_records.
10663 (finish_cost_update): Call finish_update_cost_records.
10664 (queue_update_cost, get_next_update_cost): Add new param from.
10665 (Update_allocno_cost, update_costs_from_allocno): New functions.
10666 (update_costs_from_prefs): Ditto.
10667 (update_copy_costs): Rename to update_costs_from_copies.
10668 (restore_costs_from_copies): New function.
10669 (update_conflict_hard_regno_costs): Don't go back.
10670 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10671 more debug info.
10672 (pop_allocnos): Add priniting more debug info.
10673 (color_allocnos): Remove prefs for conflicting hard regs.
10674 Call update_costs_from_prefs.
10675 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10676 (get_dup_num): Rename, modify, and move to ira.c
10677 (process_regs_for_copy): Add prefs.
10678 (add_insn_allocno_copies): Put src as first arg of
10679 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10680 * ira-costs.c (record_reg_classes): Modify and move code into
10681 record_operands_costs.
10682 (find_costs_and_classes): Create prefs for the hard reg of small
10683 reg class.
10684 (process_bb_node_for_hard_reg_moves): Add prefs.
10685
10686 2013-10-30 Richard Biener <rguenther@suse.de>
10687
10688 PR middle-end/57100
10689 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10690 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10691 as worker for ...
10692 (pre_and_rev_post_order_compute): ... which now wraps it.
10693 * graph.c (draw_cfg_nodes_no_loops): Use
10694 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10695 on cfun.
10696
10697 2013-10-30 Christian Bruel <christian.bruel@st.com>
10698
10699 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10700 (sh_expand_cmpstr): Handle known align and schedule improvements.
10701 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10702 * config/sh/sh.md (cmpstrnsi): New pattern.
10703
10704 2013-10-30 Martin Jambor <mjambor@suse.cz>
10705
10706 PR rtl-optimization/10474
10707 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10708 nor df analysis.
10709 (interesting_dest_for_shprep): New function.
10710 (split_live_ranges_for_shrink_wrap): Likewise.
10711 (ira): Calculate dominance info and df analysis. Call
10712 split_live_ranges_for_shrink_wrap.
10713
10714 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10715
10716 PR target/58854
10717 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10718
10719 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10720
10721 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10722 * tree.h (POINTER_BOUNDS_P): New.
10723 (BOUNDED_TYPE_P): New.
10724 (BOUNDED_P): New.
10725 (pointer_bounds_type_node): New.
10726 * tree.c (build_common_tree_nodes): Initialize
10727 pointer_bounds_type_node.
10728 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10729 (gimple_call_num_nobnd_args): New.
10730 (gimple_call_nobnd_arg): New.
10731 (gimple_return_retbnd): New.
10732 (gimple_return_set_retbnd): New
10733 * gimple.c (gimple_build_return): Increase number of ops
10734 for return statement.
10735 (gimple_call_get_nobnd_arg_index): New.
10736 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10737
10738 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10739
10740 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10741 with "chkp ctor" and "bnd_legacy" attributes.
10742 * gimplify.c (gimplify_init_constructor): Avoid infinite
10743 loop during gimplification of bounds initializer.
10744
10745 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10746
10747 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10748 (handle_bnd_legacy): New.
10749 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10750 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10751 attributes.
10752
10753 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10754
10755 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10756 (BT_FN_PTR_CONST_PTR): New.
10757 (BT_FN_CONST_PTR_CONST_PTR): New.
10758 (BT_FN_PTR_CONST_PTR_SIZE): New.
10759 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10760 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10761 (BT_FN_VOID_CONST_PTR_SIZE): New.
10762 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10763 * chkp-builtins.def: New.
10764 * builtins.def: include chkp-builtins.def.
10765 (DEF_CHKP_BUILTIN): New.
10766 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10767 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10768 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10769 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10770 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10771 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10772 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10773 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10774 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10775 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10776 * common.opt (fcheck-pointer-bounds): New.
10777 * toplev.c (process_options): Check Pointer Bounds Checker is
10778 supported.
10779 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10780
10781 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10782
10783 * target.def (builtin_chkp_function): New.
10784 (chkp_bound_type): New.
10785 (chkp_bound_mode): New.
10786 (fn_abi_va_list_bounds_size): New.
10787 (load_bounds_for_arg): New.
10788 (store_bounds_for_arg): New.
10789 * targhooks.h (default_load_bounds_for_arg): New.
10790 (default_store_bounds_for_arg): New.
10791 (default_fn_abi_va_list_bounds_size): New.
10792 (default_chkp_bound_type): New.
10793 (default_chkp_bound_mode): New.
10794 (default_builtin_chkp_function): New.
10795 * targhooks.c (default_load_bounds_for_arg): New.
10796 (default_store_bounds_for_arg): New.
10797 (default_fn_abi_va_list_bounds_size): New.
10798 (default_chkp_bound_type): New.
10799 (default_chkp_bound_mode); New.
10800 (default_builtin_chkp_function): New.
10801 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10802 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10803 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10804 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10805 (TARGET_CHKP_BOUND_TYPE): New.
10806 (TARGET_CHKP_BOUND_MODE): New.
10807 * doc/tm.texi: Regenerated.
10808 * langhooks.h (lang_hooks): Add chkp_supported field.
10809 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10810 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10811
10812 2013-10-29 Andrew Pinski <apinski@cavium.com>
10813
10814 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10815 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10816 fails, combining the branches anyways.
10817 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10818 increases the number of combinings.
10819 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10820
10821 2013-10-29 Mike Stump <mikestump@comcast.net>
10822
10823 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10824 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10825 (make_vector_mode): Increase namebuf to 16.
10826 (emit_insn_modes_h): When processing BImode, don't
10827 also match partial int modes.
10828 (emit_class_narrowest_mode): Likewise.
10829
10830 * config/bfin/bfin-modes.def: Add precision to PDI.
10831 * config/m32c/m32c-modes.def: Add precision to PSI.
10832 * config/msp430/msp430-modes.def: Add precision to PSI.
10833 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10834 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10835
10836 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10837
10838 PR target/54236
10839 * config/sh/sh.md (*addc): Rename existing variations to ...
10840 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10841 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10842 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10843 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10844
10845 2013-10-29 Teresa Johnson <tejohnson@google.com>
10846
10847 PR ipa/58862
10848 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10849 insanities when updating probabilities.
10850
10851 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10852
10853 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10854 prettyprinter for cgraph_node to reflect the conversion of the
10855 symtable types to a C++ class hierarchy: it now *is* a
10856 symtab_node_base, rather than having one (named "symbol").
10857
10858 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10859
10860 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10861 __cilkrts_pop_frame. If matched, then return true for built-in
10862 function name.
10863 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10864 BUILT_IN_CILK_POP_FRAME case.
10865 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10866 (lhs_cilk_detect_spawn): Likewise.
10867 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10868 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10869 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10870 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10871 (LANG_HOOKS_CILKPLUS): Likewise.
10872 * tree.h (CILK_SPAWN_FN): Likewise.
10873 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10874 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10875 (OBJS): Added cilk-common.o.
10876 (BUILTINS_DEF): Added cilk-builtins.def.
10877 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10878 (lhd_cilk_detect_spawn): Likewise.
10879 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10880 (struct lang_hooks): Added new field called "cilkplus."
10881 * cilk-common.c: New file.
10882 * cilk.h: Likewise.
10883 * cilk-builtins.def: Likewise.
10884 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10885 "__cilk" macro and set it to 200.
10886 * function.h (struct function::cilk_frame_decl): New field.
10887 (struct function::is_cilk_function): Likewise.
10888 (struct function::calls_cilk_spawn): Likewise.
10889 * gimplify.c (gimplify_call_expr): Added a check if the function call
10890 being gimplified is a spawn detach point. If so, then add pop_frame
10891 and detach function calls.
10892 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10893 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10894 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10895 function. If so, added a _Cilk_sync and gimplified it.
10896 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10897 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10898 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10899 spawner function.
10900 (can_inline_edge_p): Prevent inling of spawnee function.
10901 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10902 for functions that use Cilk keywords.
10903 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10904 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10905 CILK_SYNC_STMT cases.
10906 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10907 trees.
10908 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10909 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10910 * passes.texi (Cilk Keywords): New section that describes the compiler
10911 code changes for handling Cilk Keywords.
10912
10913 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10914
10915 Patch autogenerated by refactor_symtab.py from
10916 https://github.com/davidmalcolm/gcc-refactoring-scripts
10917 revision 58bb219cc090b2f4516a9297d868c245495ee622
10918
10919 * asan.c (asan_finish_file): Update for conversion of symtab types to
10920 a true class hierarchy.
10921 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10922 * cgraph.c (cgraph_get_body): Likewise.
10923 (cgraph_get_create_real_symbol_node): Likewise.
10924 (verify_cgraph_node): Likewise.
10925 (verify_edge_corresponds_to_fndecl): Likewise.
10926 (verify_edge_count_and_frequency): Likewise.
10927 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10928 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10929 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10930 (cgraph_node_cannot_return): Likewise.
10931 (cgraph_set_pure_flag_1): Likewise.
10932 (cgraph_set_const_flag_1): Likewise.
10933 (cgraph_set_nothrow_flag_1): Likewise.
10934 (cgraph_make_node_local_1): Likewise.
10935 (cgraph_for_node_and_aliases): Likewise.
10936 (cgraph_for_node_thunks_and_aliases): Likewise.
10937 (cgraph_node_can_be_local_p): Likewise.
10938 (cgraph_node_cannot_be_local_p_1): Likewise.
10939 (cgraph_function_body_availability): Likewise.
10940 (dump_cgraph_node): Likewise.
10941 (cgraph_rtl_info): Likewise.
10942 (cgraph_mark_address_taken_node): Likewise.
10943 (cgraph_remove_node): Likewise.
10944 (cgraph_release_function_body): Likewise.
10945 (cgraph_update_edges_for_call_stmt_node): Likewise.
10946 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10947 (cgraph_make_edge_direct): Likewise.
10948 (cgraph_resolve_speculation): Likewise.
10949 (cgraph_speculative_call_info): Likewise.
10950 (cgraph_turn_edge_to_speculative): Likewise.
10951 (cgraph_create_edge_1): Likewise.
10952 (cgraph_set_call_stmt): Likewise.
10953 (cgraph_node_for_asm): Likewise.
10954 (cgraph_add_thunk): Likewise.
10955 (cgraph_same_body_alias): Likewise.
10956 (cgraph_create_function_alias): Likewise.
10957 (cgraph_create_node): Likewise.
10958 (cgraph_create_empty_node): Likewise.
10959 (record_function_versions): Likewise.
10960 (used_from_object_file_p): Likewise.
10961 * cgraph.h (symtab_can_be_discarded): Likewise.
10962 (symtab_real_symbol_p): Likewise.
10963 (cgraph_mark_force_output_node): Likewise.
10964 (cgraph_edge_recursive_p): Likewise.
10965 (symtab_alias_target): Likewise.
10966 (varpool_all_refs_explicit_p): Likewise.
10967 (varpool_can_remove_if_no_refs): Likewise.
10968 (cgraph_only_called_directly_or_aliased_p): Likewise.
10969 (cgraph_next_function_with_gimple_body): Likewise.
10970 (cgraph_first_function_with_gimple_body): Likewise.
10971 (cgraph_function_with_gimple_body_p): Likewise.
10972 (cgraph_next_function): Likewise.
10973 (cgraph_first_function): Likewise.
10974 (cgraph_next_defined_function): Likewise.
10975 (cgraph_first_defined_function): Likewise.
10976 (varpool_next_defined_variable): Likewise.
10977 (varpool_first_defined_variable): Likewise.
10978 (varpool_next_static_initializer): Likewise.
10979 (varpool_first_static_initializer): Likewise.
10980 (varpool_next_variable): Likewise.
10981 (varpool_first_variable): Likewise.
10982 (varpool_node_name): Likewise.
10983 (varpool): Likewise.
10984 (cgraph): Likewise.
10985 (is_a_helper <varpool_node>::test): Likewise.
10986 (is_a_helper <cgraph_node>::test): Likewise.
10987 (varpool_variable_node): Likewise.
10988 (cgraph_function_or_thunk_node): Likewise.
10989 (varpool_alias_target): Likewise.
10990 (cgraph_alias_target): Likewise.
10991 (cgraph_node_name): Likewise.
10992 (varpool_node_asm_name): Likewise.
10993 (cgraph_node_asm_name): Likewise.
10994 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10995 (cgraph_rebuild_references): Likewise.
10996 (rebuild_cgraph_edges): Likewise.
10997 (record_eh_tables): Likewise.
10998 (build_cgraph_edges): Likewise.
10999 (mark_store): Likewise.
11000 (mark_load): Likewise.
11001 (mark_address): Likewise.
11002 (record_type_list): Likewise.
11003 (record_reference): Likewise.
11004 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
11005 (cgraph_materialize_clone): Likewise.
11006 (cgraph_function_versioning): Likewise.
11007 (cgraph_copy_node_for_versioning): Likewise.
11008 (update_call_expr): Likewise.
11009 (cgraph_find_replacement_node): Likewise.
11010 (cgraph_create_virtual_clone): Likewise.
11011 (cgraph_clone_node): Likewise.
11012 * cgraphunit.c (compile): Likewise.
11013 (output_weakrefs): Likewise.
11014 (output_in_order): Likewise.
11015 (expand_function): Likewise.
11016 (assemble_thunks_and_aliases): Likewise.
11017 (expand_thunk): Likewise.
11018 (mark_functions_to_output): Likewise.
11019 (handle_alias_pairs): Likewise.
11020 (analyze_functions): Likewise.
11021 (walk_polymorphic_call_targets): Likewise.
11022 (varpool_finalize_decl): Likewise.
11023 (process_function_and_variable_attributes): Likewise.
11024 (cgraph_process_same_body_aliases): Likewise.
11025 (analyze_function): Likewise.
11026 (cgraph_add_new_function): Likewise.
11027 (cgraph_finalize_function): Likewise.
11028 (referred_to_p): Likewise.
11029 (cgraph_reset_node): Likewise.
11030 (cgraph_process_new_functions): Likewise.
11031 (enqueue_node): Likewise.
11032 (decide_is_symbol_needed): Likewise.
11033 * coverage.c (coverage_compute_profile_id): Likewise.
11034 * dbxout.c (dbxout_expand_expr): Likewise.
11035 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11036 (reference_to_unused): Likewise.
11037 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11038 * gimplify.c (unvisit_body): Likewise.
11039 (unshare_body): Likewise.
11040 * ipa-cp.c (ipcp_generate_summary): Likewise.
11041 (ipcp_decision_stage): Likewise.
11042 (identify_dead_nodes): Likewise.
11043 (decide_whether_version_node): Likewise.
11044 (decide_about_value): Likewise.
11045 (perhaps_add_new_callers): Likewise.
11046 (create_specialized_node): Likewise.
11047 (update_profiling_info): Likewise.
11048 (ipcp_propagate_stage): Likewise.
11049 (estimate_local_effects): Likewise.
11050 (good_cloning_opportunity_p): Likewise.
11051 (devirtualization_time_bonus): Likewise.
11052 (propagate_constants_accross_call): Likewise.
11053 (initialize_node_lattices): Likewise.
11054 (ipcp_cloning_candidate_p): Likewise.
11055 (determine_versionability): Likewise.
11056 (print_all_lattices): Likewise.
11057 (print_lattice): Likewise.
11058 (ipcp_discover_new_direct_edges): Likewise.
11059 * ipa-devirt.c (ipa_devirt): Likewise.
11060 (likely_target_p): Likewise.
11061 (update_type_inheritance_graph): Likewise.
11062 (possible_polymorphic_call_target_p): Likewise.
11063 (dump_possible_polymorphic_call_targets): Likewise.
11064 (devirt_variable_node_removal_hook): Likewise.
11065 (record_binfo): Likewise.
11066 (maybe_record_node): Likewise.
11067 (build_type_inheritance_graph): Likewise.
11068 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11069 (inline_generate_summary): Likewise.
11070 (inline_analyze_function): Likewise.
11071 (do_estimate_growth): Likewise.
11072 (simple_edge_hints): Likewise.
11073 (estimate_node_size_and_time): Likewise.
11074 (estimate_edge_devirt_benefit): Likewise.
11075 (compute_inline_parameters): Likewise.
11076 (estimate_function_body_sizes): Likewise.
11077 (compute_bb_predicates): Likewise.
11078 (initialize_inline_failed): Likewise.
11079 (dump_inline_summary): Likewise.
11080 (dump_inline_edge_summary): Likewise.
11081 * ipa-inline-transform.c (inline_transform): Likewise.
11082 (preserve_function_body_p): Likewise.
11083 (save_inline_function_body): Likewise.
11084 (inline_call): Likewise.
11085 (clone_inlined_nodes): Likewise.
11086 (can_remove_node_now_p): Likewise.
11087 (can_remove_node_now_p_1): Likewise.
11088 * ipa-inline.c (early_inliner): Likewise.
11089 (early_inline_small_functions): Likewise.
11090 (inline_always_inline_functions): Likewise.
11091 (ipa_inline): Likewise.
11092 (flatten_function): Likewise.
11093 (inline_small_functions): Likewise.
11094 (speculation_useful_p): Likewise.
11095 (recursive_inlining): Likewise.
11096 (update_caller_keys): Likewise.
11097 (reset_edge_caches): Likewise.
11098 (update_edge_key): Likewise.
11099 (edge_badness): Likewise.
11100 (relative_time_benefit): Likewise.
11101 (want_inline_self_recursive_call_p): Likewise.
11102 (want_inline_small_function_p): Likewise.
11103 (want_early_inline_function_p): Likewise.
11104 (num_calls): Likewise.
11105 (can_early_inline_edge_p): Likewise.
11106 (can_inline_edge_p): Likewise.
11107 (report_inline_failed_reason): Likewise.
11108 * ipa-profile.c (ipa_profile): Likewise.
11109 (ipa_propagate_frequency): Likewise.
11110 (ipa_propagate_frequency_1): Likewise.
11111 (ipa_profile_generate_summary): Likewise.
11112 * ipa-prop.c (ipcp_transform_function): Likewise.
11113 (read_replacements_section): Likewise.
11114 (ipa_prop_read_section): Likewise.
11115 (ipa_modify_call_arguments): Likewise.
11116 (ipa_print_node_params): Likewise.
11117 (propagate_controlled_uses): Likewise.
11118 (update_indirect_edges_after_inlining): Likewise.
11119 (remove_described_reference): Likewise.
11120 (ipa_make_edge_direct_to_target): Likewise.
11121 (ipa_analyze_node): Likewise.
11122 (ipa_analyze_params_uses): Likewise.
11123 (ipa_compute_jump_functions): Likewise.
11124 (ipa_get_callee_param_type): Likewise.
11125 (ipa_print_node_jump_functions): Likewise.
11126 (ipa_initialize_node_params): Likewise.
11127 (ipa_populate_param_decls): Likewise.
11128 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11129 (write_agg_replacement_chain): Likewise.
11130 (ipa_write_node_info): Likewise.
11131 (ipa_edge_duplication_hook): Likewise.
11132 (try_decrement_rdesc_refcount): Likewise.
11133 * ipa-pure-const.c (propagate_nothrow): Likewise.
11134 (propagate_pure_const): Likewise.
11135 (pure_const_read_summary): Likewise.
11136 (pure_const_write_summary): Likewise.
11137 (analyze_function): Likewise.
11138 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11139 (ipa_ref_referring_ref_list): Likewise.
11140 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11141 (ipa_remove_stmt_references): Likewise.
11142 (ipa_find_reference): Likewise.
11143 (ipa_dump_referring): Likewise.
11144 (ipa_dump_references): Likewise.
11145 (ipa_record_reference): Likewise.
11146 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11147 (ipa_reference_write_optimization_summary): Likewise.
11148 (write_node_summary_p): Likewise.
11149 (propagate): Likewise.
11150 (read_write_all_from_decl): Likewise.
11151 (generate_summary): Likewise.
11152 (analyze_function): Likewise.
11153 (propagate_bits): Likewise.
11154 (ipa_reference_get_not_written_global): Likewise.
11155 (ipa_reference_get_not_read_global): Likewise.
11156 * ipa-split.c (execute_split_functions): Likewise.
11157 (split_function): Likewise.
11158 * ipa-utils.c (ipa_merge_profiles): Likewise.
11159 (dump_cgraph_node_set): Likewise.
11160 (ipa_reverse_postorder): Likewise.
11161 (ipa_edge_within_scc): Likewise.
11162 (ipa_get_nodes_in_cycle): Likewise.
11163 (ipa_free_postorder_info): Likewise.
11164 (ipa_reduced_postorder): Likewise.
11165 (searchc): Likewise.
11166 (recursive_call_p): Likewise.
11167 * ipa.c (ipa_cdtor_merge): Likewise.
11168 (record_cdtor_fn): Likewise.
11169 (function_and_variable_visibility): Likewise.
11170 (varpool_externally_visible_p): Likewise.
11171 (cgraph_externally_visible_p): Likewise.
11172 (comdat_can_be_unshared_p): Likewise.
11173 (comdat_can_be_unshared_p_1): Likewise.
11174 (address_taken_from_non_vtable_p): Likewise.
11175 (ipa_discover_readonly_nonaddressable_vars): Likewise.
11176 (symtab_remove_unreachable_nodes): Likewise.
11177 (walk_polymorphic_call_targets): Likewise.
11178 (process_references): Likewise.
11179 (enqueue_node): Likewise.
11180 (has_addr_references_p): Likewise.
11181 (cgraph_non_local_node_p_1): Likewise.
11182 * is-a.h (varpool_analyze_node): Likewise.
11183 * lto-cgraph.c (input_symtab): Likewise.
11184 (merge_profile_summaries): Likewise.
11185 (input_cgraph_1): Likewise.
11186 (input_edge): Likewise.
11187 (input_varpool_node): Likewise.
11188 (input_node): Likewise.
11189 (input_overwrite_node): Likewise.
11190 (compute_ltrans_boundary): Likewise.
11191 (output_refs): Likewise.
11192 (lto_output_varpool_node): Likewise.
11193 (lto_output_node): Likewise.
11194 (reachable_from_other_partition_p): Likewise.
11195 (referenced_from_other_partition_p): Likewise.
11196 (lto_output_edge): Likewise.
11197 (output_node_opt_summary): Likewise.
11198 (add_node_to): Likewise.
11199 (reachable_from_this_partition_p): Likewise.
11200 (lto_set_symtab_encoder_in_partition): Likewise.
11201 (lto_symtab_encoder_in_partition_p): Likewise.
11202 (lto_set_symtab_encoder_encode_initializer): Likewise.
11203 (lto_symtab_encoder_encode_initializer_p): Likewise.
11204 (lto_set_symtab_encoder_encode_body): Likewise.
11205 (lto_symtab_encoder_encode_body_p): Likewise.
11206 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11207 Likewise.
11208 * lto-streamer-in.c (lto_read_body): Likewise.
11209 (fixup_call_stmt_edges): Likewise.
11210 (fixup_call_stmt_edges_1): Likewise.
11211 * lto-streamer-out.c (produce_symtab): Likewise.
11212 (output_symbol_p): Likewise.
11213 (write_symbol): Likewise.
11214 (lto_output): Likewise.
11215 (copy_function): Likewise.
11216 (output_function): Likewise.
11217 * passes.c (function_called_by_processed_nodes_p): Likewise.
11218 (ipa_write_optimization_summaries): Likewise.
11219 (ipa_write_summaries): Likewise.
11220 (do_per_function_toporder): Likewise.
11221 (do_per_function): Likewise.
11222 (dump_passes): Likewise.
11223 * symtab.c (symtab_semantically_equivalent_p): Likewise.
11224 (symtab_nonoverwritable_alias): Likewise.
11225 (symtab_nonoverwritable_alias_1): Likewise.
11226 (symtab_for_node_and_aliases): Likewise.
11227 (symtab_resolve_alias): Likewise.
11228 (fixup_same_cpp_alias_visibility): Likewise.
11229 (symtab_alias_ultimate_target): Likewise.
11230 (symtab_used_from_object_file_p): Likewise.
11231 (verify_symtab_base): Likewise.
11232 (dump_symtab_base): Likewise.
11233 (symtab_node_name): Likewise.
11234 (symtab_node_asm_name): Likewise.
11235 (symtab_dissolve_same_comdat_group_list): Likewise.
11236 (symtab_add_to_same_comdat_group): Likewise.
11237 (symtab_unregister_node): Likewise.
11238 (symtab_insert_node_to_hashtable): Likewise.
11239 (symtab_register_node): Likewise.
11240 (unlink_from_assembler_name_hash): Likewise.
11241 (insert_to_assembler_name_hash): Likewise.
11242 (eq_assembler_name): Likewise.
11243 (hash_node_by_assembler_name): Likewise.
11244 (eq_node): Likewise.
11245 (hash_node): Likewise.
11246 * toplev.c (wrapup_global_declaration_2): Likewise.
11247 * trans-mem.c (ipa_tm_execute): Likewise.
11248 (ipa_tm_transform_clone): Likewise.
11249 (ipa_tm_transform_transaction): Likewise.
11250 (ipa_tm_transform_calls_redirect): Likewise.
11251 (ipa_tm_insert_gettmclone_call): Likewise.
11252 (ipa_tm_insert_irr_call): Likewise.
11253 (ipa_tm_create_version): Likewise.
11254 (ipa_tm_create_version_alias): Likewise.
11255 (ipa_tm_mark_forced_by_abi_node): Likewise.
11256 (ipa_tm_mark_force_output_node): Likewise.
11257 (ipa_tm_diagnose_tm_safe): Likewise.
11258 (ipa_tm_mayenterirr_function): Likewise.
11259 (ipa_tm_scan_irr_function): Likewise.
11260 (ipa_tm_note_irrevocable): Likewise.
11261 (ipa_tm_scan_calls_clone): Likewise.
11262 (get_cg_data): Likewise.
11263 * tree-eh.c (tree_could_trap_p): Likewise.
11264 * tree-emutls.c (ipa_lower_emutls): Likewise.
11265 (create_emultls_var): Likewise.
11266 (lower_emutls_function_body): Likewise.
11267 (gen_emutls_addr): Likewise.
11268 (emutls_decl): Likewise.
11269 (new_emutls_decl): Likewise.
11270 * tree-inline.c (tree_function_versioning): Likewise.
11271 (optimize_inline_calls): Likewise.
11272 (expand_call_inline): Likewise.
11273 (estimate_num_insns): Likewise.
11274 (copy_bb): Likewise.
11275 (delete_unreachable_blocks_update_callgraph): Likewise.
11276 * tree-nested.c (gimplify_all_functions): Likewise.
11277 (create_nesting_tree): Likewise.
11278 (check_for_nested_with_variably_modified): Likewise.
11279 * tree-pretty-print.c (dump_function_header): Likewise.
11280 * tree-profile.c (tree_profiling): Likewise.
11281 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11282 (modify_function): Likewise.
11283 (convert_callers): Likewise.
11284 (convert_callers_for_node): Likewise.
11285 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11286 (associate_varinfo_to_alias): Likewise.
11287 (create_variable_info_for): Likewise.
11288 (get_constraint_for_ssa_var): Likewise.
11289 * tree-vectorizer.c (increase_alignment): Likewise.
11290 * tree.c (find_decls_types_in_var): Likewise.
11291 (find_decls_types_in_node): Likewise.
11292 (free_lang_data_in_decl): Likewise.
11293 * value-prof.c (gimple_ic_transform): Likewise.
11294 (gimple_ic): Likewise.
11295 (check_ic_target): Likewise.
11296 (init_node_map): Likewise.
11297 * varasm.c (decl_binds_to_current_def_p): Likewise.
11298 (default_binds_local_p_1): Likewise.
11299 (dump_tm_clone_pairs): Likewise.
11300 (assemble_alias): Likewise.
11301 (find_decl): Likewise.
11302 (mark_decl_referenced): Likewise.
11303 * varpool.c (varpool_for_node_and_aliases): Likewise.
11304 (varpool_extra_name_alias): Likewise.
11305 (varpool_create_variable_alias): Likewise.
11306 (add_new_static_var): Likewise.
11307 (varpool_finalize_named_section_flags): Likewise.
11308 (varpool_remove_unreferenced_decls): Likewise.
11309 (enqueue_node): Likewise.
11310 (varpool_assemble_decl): Likewise.
11311 (assemble_aliases): Likewise.
11312 (varpool_analyze_node): Likewise.
11313 (cgraph_variable_initializer_availability): Likewise.
11314 (varpool_add_new_variable): Likewise.
11315 (ctor_for_folding): Likewise.
11316 (dump_varpool_node): Likewise.
11317 (varpool_remove_initializer): Likewise.
11318 (varpool_remove_node): Likewise.
11319 (varpool_node_for_decl): Likewise.
11320 (varpool_create_empty_node): Likewise.
11321 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11322 (ix86_get_function_versions_dispatcher): Likewise.
11323
11324 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11325
11326 * cgraph.h (symtab_node_base): Convert to a class;
11327 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11328 chain_next/prev from symtab_node_def.
11329 (cgraph_node): Inherit from symtab_node; add GTY option
11330 tag ("SYMTAB_FUNCTION").
11331 (varpool_node): Inherit from symtab_node; add GTY option
11332 tag ("SYMTAB_VARIABLE").
11333 (symtab_node_def): Remove.
11334 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11335 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11336 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11337 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11338
11339 * ipa-ref.h (symtab_node_def): Drop.
11340 (symtab_node): Change underlying type from symtab_node_def to
11341 symtab_node_base.
11342 (const_symtab_node): Likwise.
11343
11344 * is-a.h: Update examples in comment.
11345
11346 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11347 (assembler_name_hash): Likewise.
11348
11349 2013-10-29 Martin Liska <marxin.liska@gmail.com>
11350
11351 * doc/tree-ssa.texi (gimple_phi_result): Document.
11352 (gimple_phi_num_args, gimple_phi_arg): Likewise.
11353 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11354 (PHI_RESULT, PHI_NUM_ARGS): Remove.
11355 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11356
11357 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11358
11359 * expr.h: Revert change and include tree-core.h.
11360 * rtl.h: Revert change and don't include tree-core.h.
11361
11362 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11363
11364 * config/darwin.c: Include gimple.h.
11365 * config/i386/winnt.c: Likewise.
11366
11367 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
11368
11369 PR tree-optimization/19831
11370 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11371
11372 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11373
11374 * tree-outof-ssa.h: Remove include files.
11375 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11376 * expr.c: Likewise.
11377 * tree-ssa-coalesce.c: Likewise.
11378 * cfgexpand.c: Likewise.
11379 * tree-ssa-ter.c: Likewise.
11380 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11381 * lto-streamer.h: Likewise.
11382 * cgraphbuild.c: Add gimple.h to include list.
11383 * data-streamer-in.c: Likewise.
11384 * ipa-cp.c: Likewise.
11385 * tree-streamer.c: Likewise.
11386 * lto-compress.c: Likewise.
11387 * ipa-reference.c: Likewise.
11388 * data-streamer-out.c: Likewise.
11389 * lto-cgraph.c: Likewise.
11390 * cgraphclones.c: Likewise.
11391 * ipa-utils.c: Likewise.
11392 * data-streamer.c: Likewise.
11393 * ipa-split.c: Likewise.
11394 * lto-section-in.c: Likewise.
11395 * tree-streamer-out.c: Likewise.
11396 * ipa-prop.c: Likewise.
11397 * tree-streamer-in.c: Likewise.
11398 * symtab.c: Likewise.
11399 * opts-global.c: Likewise.
11400 * lto-opts.c: Likewise.
11401 * lto-section-out.c: Likewise.
11402 * lto-streamer.c: Likewise.
11403 * rtl.h: Add tree-core.h to include list.
11404 * expr.h: Remove tree-core.h from include list.
11405 * gimple.h: Likewise.
11406 * ipa-utils.h: Likewise.
11407 * streamer-hooks.h: Likewise.
11408 * streamer-hooks.c: Include input.h.
11409
11410 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11411
11412 * config/arm/arm.c (cortexa7_extra_costs): New table.
11413 (arm_cortex_a7_tune): New.
11414 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11415
11416 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
11417
11418 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11419
11420 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11421
11422 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11423 to use autogenerated markers for a class-hierarchy, every class
11424 must have a GTY marker.
11425 * gengtype.h (struct type): Add linked list of subclasses to
11426 the "s" member of the union.
11427 (add_subclass): New decl.
11428 * gengtype-state.c (read_state_struct_type): Set up subclass
11429 linked list.
11430 * gengtype.c (get_ultimate_base_class): New.
11431 (add_subclass): New.
11432 (new_structure): Set up subclass linked list.
11433 (set_gc_used_type): Propagate usage information to subclasses.
11434 (output_mangled_typename): Use get_ultimate_base_class.
11435 (walk_subclasses): Use the subclass linked list, avoiding an
11436 O(N^2) when writing out all types.
11437 (walk_type): Issue an error if the base class is missing a tag,
11438 rather than generating bogus C code. Add a gcc_unreachable
11439 default case, in case people omit tags from concrete subclasses,
11440 or get the values wrong.
11441 (write_func_for_structure): Issue an error for subclasses for
11442 which the base doesn't have a "desc", since otherwise the
11443 autogenerated routines for the base would silently fail to visit
11444 any subclass fields.
11445 (write_root): Use get_ultimate_base_class, tweaking constness of
11446 tp to match that function's signature.
11447
11448 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11449
11450 * doc/gty.texi (GTY Options): Add note about inheritance to
11451 description of desc and tag.
11452 (Inheritance and GTY): New.
11453
11454 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11455
11456 * gengtype-parse.c (opts_have): Drop "static" so that
11457 we can use this from gengtype.c.
11458 * gengtype.c (set_gc_used_type): Mark any base class as used;
11459 update field traversal to visit inherited fields.
11460 (output_mangled_typename): Convert references to classes within
11461 an inheritance hierarchy to reference the ultimate base class,
11462 since only it will have gt_ functions.
11463 (get_string_option): New.
11464 (walk_subclasses): New.
11465 (walk_type): Treat GTY structs that have a "desc" as being the
11466 root of an inheritance hierarchy. Generate a switch on it
11467 within the marking function which walks all subclasses, adding
11468 cases for them via walk_subclasses. For subclasses, visit all
11469 fields of the type (including inherited ones).
11470 (write_func_for_structure): Don't write fns for subclasses, only
11471 for the ultimate base class within an inheritance hierarchy.
11472 Subclasses-marking will be handled by the base class marking functions.
11473 (write_types): Likewise.
11474 (write_local_func_for_structure): Likewise.
11475 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11476 a "tag" option (and are thus concrete subclasses).
11477 (write_root): Use the marker function for the ultimate base class.
11478 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11479 (opts_have): Add declaration.
11480
11481 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11482
11483 * lra-spills.c (lra_final_code_change): Remove useless move insns
11484 originated from moves of pseudos.
11485
11486 2013-10-28 Jeff Law <law@redhat.com>
11487
11488 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11489
11490 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11491
11492 * df-scan.c (df_collection_rec): Adjust.
11493 (copy_defs): New constant.
11494 (copy_uses): Likewise.
11495 (copy_eq_uses): Likewise.
11496 (copy_mw): Likewise.
11497 (copy_all): Likewise.
11498 (df_insn_rescan): Adjust.
11499 (df_notes_rescan): Likewise.
11500 (df_swap_refs): Likewise.
11501 (df_sort_and_compress_refs): Likewise.
11502 (df_sort_and_compress_mws): Likewise.
11503 (df_install_refs): Likewise.
11504 (df_install_mws): Likewise.
11505 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11506 are coppied.
11507 (df_bb_refs_record): Adjust.
11508 (df_record_entry_block_defs): Likewise.
11509 (df_record_exit_block_defs): Likewise.
11510 (df_refs_verify): Likewise.
11511 (df_mws_verify): Likewise.
11512 (df_insn_refs_verify): Likewise.
11513 (df_bb_verify): Likewise.
11514 * ipa-pure-const.c (finish_state): Remove.
11515 (propagate): Adjust.
11516 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11517 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11518 var-tracking.c: Adjust.
11519 * vec.c (stack_vecs): Remove.
11520 (register_stack_vec): Likewise.
11521 (stack_vec_register_index): Likewise.
11522 (unregister_stack_vec): Likewise.
11523 * vec.h (struct va_stack): Remove.
11524 (struct vec<T, A, vl_ptr>): Specialize as
11525 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11526 allocation strategy compatable with the vl_ptr layout.
11527 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11528 specialization anyway.
11529 (class stack_vec): New class.
11530 (vec_stack_alloc): Remove.
11531 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11532
11533 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11534 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11535 Sergey Lega <sergey.s.lega@intel.com>
11536 Anna Tikhonova <anna.tikhonova@intel.com>
11537 Ilya Tocar <ilya.tocar@intel.com>
11538 Andrey Turetskiy <andrey.turetskiy@intel.com>
11539 Ilya Verbin <ilya.verbin@intel.com>
11540 Kirill Yukhin <kirill.yukhin@intel.com>
11541 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11542
11543 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11544 (*prefetch_avx512pf_<mode>): New.
11545 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11546 (avx512f_maskcmp<mode>3): Ditto.
11547 (vashrv16si3): Ditto.
11548
11549 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11551 Sergey Lega <sergey.s.lega@intel.com>
11552 Anna Tikhonova <anna.tikhonova@intel.com>
11553 Ilya Tocar <ilya.tocar@intel.com>
11554 Andrey Turetskiy <andrey.turetskiy@intel.com>
11555 Ilya Verbin <ilya.verbin@intel.com>
11556 Kirill Yukhin <kirill.yukhin@intel.com>
11557 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11558
11559 * config/i386/i386.md (any_truncate): New.
11560 (trunsuffix): Ditto.
11561 * config/i386/predicates.md (const_8_to_9_operand): New.
11562 (const_10_to_11_operand): Ditto.
11563 (const_12_to_13_operand): Ditto.
11564 (const_14_to_15_operand): Ditto.
11565 (const_16_to_19_operand): Ditto.
11566 (const_20_to_23_operand): Ditto.
11567 (const_24_to_27_operand): Ditto.
11568 (const_28_to_31_operand): Ditto.
11569 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11570 (cvtusi2<ssescalarmodesuffix>32): New.
11571 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11572 (ufloatv16siv16sf2): Ditto.
11573 (avx512f_fix_notruncv16sfv16si): Ditto.
11574 (avx512f_ufix_notruncv16sfv16si): Ditto.
11575 (avx512f_vcvtss2usi): Ditto.
11576 (avx512f_vcvtss2usiq): Ditto.
11577 (avx512f_vcvttss2usi): Ditto.
11578 (avx512f_vcvttss2usiq): Ditto.
11579 (avx512f_vcvtsd2usi): Ditto.
11580 (avx512f_vcvtsd2usiq): Ditto.
11581 (avx512f_vcvttsd2usi): Ditto.
11582 (avx512f_vcvttsd2usiq): Ditto.
11583 (ufloatv8siv8df): Ditto.
11584 (avx512f_cvtdq2pd512_2): Ditto.
11585 (avx512f_cvtpd2dq512): Ditto.
11586 (avx512f_ufix_notruncv8dfv8si): Ditto.
11587 (avx512f_cvtpd2ps512): Ditto.
11588 (vec_unpacks_lo_v16sf): Ditto.
11589 (vec_unpacks_hi_v16sf): Ditto.
11590 (vec_unpacks_float_hi_v16si): Ditto.
11591 (vec_unpacks_float_lo_v16si): Ditto.
11592 (avx512f_unpckhps512): Ditto.
11593 (avx512f_unpcklps512): Ditto.
11594 (avx512f_movshdup512): Ditto.
11595 (avx512f_movsldup512): Ditto.
11596 (vec_extract_lo_v32hi): Ditto.
11597 (vec_extract_hi_v32hi): Ditto.
11598 (vec_extract_lo_v64qi): Ditto.
11599 (vec_extract_hi_v64qi): Ditto.
11600 (avx512f_unpckhpd512): Ditto.
11601 (avx512f_movddup512): Ditto.
11602 (avx512f_unpcklpd512): Ditto.
11603 (*avx512f_unpcklpd512): Ditto.
11604 (avx512f_shufps512_1): Ditto.
11605 (avx512f_shufpd512_1): Ditto.
11606 (avx512f_interleave_highv8di): Ditto.
11607 (avx512f_interleave_lowv8di): Ditto.
11608 (PMOV_DST_MODE): Ditto.
11609 (pmov_src_mode): Ditto.
11610 (pmov_src_lower): Ditto.
11611 (pmov_suff): Ditto.
11612 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11613 (*avx512f_<code>v8div16qi2): Ditto.
11614 (*avx512f_<code>v8div16qi2_store): Ditto.
11615 (vec_widen_umult_even_v16si): Ditto.
11616 (*vec_widen_umult_even_v16si): Ditto.
11617 (vec_widen_smult_even_v16si): Ditto.
11618 (*vec_widen_smult_even_v16si): Ditto.
11619 (avx512f_interleave_highv16si): Ditto.
11620 (avx512f_interleave_lowv16si): Ditto.
11621 (avx512f_<code>v16qiv16si2): Ditto.
11622 (avx512f_<code>v16hiv16si2): Ditto.
11623 (avx512f_<code>v8qiv8di2): Ditto.
11624 (avx512f_<code>v8hiv8di2): Ditto.
11625 (avx512f_<code>v8siv8di2): Ditto.
11626 (avx512cd_maskb_vec_dupv8di): Ditto.
11627 (avx512cd_maskw_vec_dupv16si): Ditto.
11628 (avx512f_vcvtph2ps512): Ditto.
11629 (avx512f_vcvtps2ph512): Ditto.
11630 (VEC_EXTRACT_MODE): Extened with wider modes.
11631 (VEC_PERM_AVX2): Ditto.
11632 (VEC_PERM_CONST): Ditto.
11633
11634 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11635
11636 * config/arc/arc.c (arc_ccfsm_post_advance):
11637 Add comment about TYPE_RETURN.
11638
11639 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11640
11641 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11642 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11643 (strip_offset): Convert offset to unsigned number.
11644
11645 2013-10-27 Tom de Vries <tom@codesourcery.com>
11646
11647 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11648 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11649
11650 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11651
11652 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11653 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11654 (TARGET_BIG_ENDIAN): New macro.
11655 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11656 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11657 * config/sh/sh.c: Likewise.
11658 * config/sh/sh.h: Likewise.
11659
11660 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11661
11662 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11663 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11664
11665 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11666
11667 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11668 Fix formatting.
11669 (cmpstr_t, cmpstrsi): Fix formatting.
11670
11671 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11672
11673 PR target/52483
11674 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11675 addressing, do not use general_operand for memory operands.
11676
11677 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11678
11679 Revert:
11680 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11681 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11682
11683 2013-10-26 Jeff Law <law@redhat.com>
11684
11685 * predict.c (PRED_MUDFLAP): Remove.
11686 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11687
11688 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11689 (OBJS): Remove tree-nomudflap.o
11690 (GTFILES): Remove tree-mudflap.c
11691 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11692 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11693 (mfwrap_spec, mflib_spec): Likewise.
11694 (cpp_unique_options, cc1_options, static_specs): Likewise.
11695 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11696 * passes.def: Likewise.
11697 * toplev.c (compile_file, process_options): Likewise.
11698 * tree-inline.c (copy_tree_r): Likewise.
11699 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11700 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11701 (build_constant_desc, output_constant_def_contents): Likewise.
11702 (categorize_decl_for_section): Likewise.
11703 * tree-mudflap.c: Removed.
11704 * tree-mudflap.h: Removed.
11705 * tree-nomudflap.c: Removed.
11706 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11707 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11708 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11709 * config/sol2.h (MFLIB_SPEC): Likewise.
11710 * doc/install.texi: Remove mudflap references.
11711 * doc/passes.texi: Similarly.
11712 * doc/sourcebuild.texi: Similarly.
11713 * doc/invoke.texi: Remove mudlfap related options.
11714
11715 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11716
11717 PR rtl-optimization/58759
11718 * lra-constraints.c (lra_constraints): Remove wrong condition to
11719 remove insn setting up an equivalent pseudo.
11720
11721 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11722
11723 * config/rs6000/rs6000-protos.h
11724 (rs6000_secondary_memory_needed_mode): New prototype.
11725 * config/rs6000/rs6000.c: Include ira.h.
11726 (TARGET_LRA_P): Redefine.
11727 (rs6000_legitimate_offset_address_p): Call
11728 legitimate_constant_pool_address_p in strict mode for LRA.
11729 (rs6000_legitimate_address_p): Ditto.
11730 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11731 (rs6000_emit_move): Add LRA version of code to generate load/store
11732 of SDmode values.
11733 (rs6000_secondary_memory_needed_mode): New.
11734 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11735 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11736 constants, memory, and FP registers.
11737 (rs6000_lra_p): New.
11738 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11739 * config/rs6000/rs6000.opt (mlra): New option.
11740 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11741
11742 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11743
11744 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11745 has_single_use () and not do the conversion if has_single_use ()
11746 returns false for the multiplication result.
11747
11748 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11749
11750 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11751 to "NODE", since this works on a "tree", not an
11752 "enum tree_code".
11753 (CONSTANT_CLASS_P): Likewise.
11754 (TYPE_P): Likewise.
11755 (DECL_P): Likewise.
11756 (INDIRECT_REF_P): Likewise.
11757 (REFERENCE_CLASS_P): Likewise.
11758 (COMPARISON_CLASS_P): Likewise.
11759 (UNARY_CLASS_P): Likewise.
11760 (BINARY_CLASS_P): Likewise.
11761 (STATEMENT_CLASS_P): Likewise.
11762 (VL_EXP_CLASS_P): Likewise.
11763 (EXPRESSION_CLASS_P): Likewise.
11764 (IS_TYPE_OR_DECL_P): Likewise.
11765
11766 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11767
11768 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11769 ADDR_EXPR in the defining statement.
11770
11771 2013-10-25 Richard Biener <rguenther@suse.de>
11772
11773 PR tree-optimization/58626
11774 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11775 anti_dd, output_dd and input_dd.
11776 (struct rdg_edge): Remove level and relation members.
11777 (RDGE_LEVEL, RDGE_RELATION): Remove.
11778 (dot_rdg_1): Adjust.
11779 (create_rdg_edge_for_ddr): Remove.
11780 (create_rdg_edges_for_scalar): Adjust.
11781 (create_edge_for_control_dependence): Likewise.
11782 (create_rdg_edges): Split into ...
11783 (create_rdg_flow_edges): ... this
11784 (create_rdg_cd_edges): ... and this.
11785 (free_rdg): Adjust.
11786 (build_rdg): Likewise, do not compute data dependences or
11787 add edges for them.
11788 (pg_add_dependence_edges): New function.
11789 (pgcmp): Likewise.
11790 (distribute_loop): First apply all non-dependence based
11791 partition mergings. Then compute dependences between partitions
11792 and merge and order partitions according to them.
11793
11794 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11795
11796 PR rtl-optimization/58831
11797 * alias.c (init_alias_analysis): At the beginning of each iteration,
11798 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11799
11800 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11801
11802 * recog.c (search_ofs): New static variable moved from...
11803 (peep2_find_free_register): ...here.
11804 (peephole2_optimize): Initialize it.
11805
11806 2013-10-25 Tobias Burnus <burnus@net-b.de>
11807
11808 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11809
11810 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11811
11812 * config/i386/i386.h (TARGET_MPX): New define.
11813 (TARGET_MPX_P): Ditto.
11814
11815 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11816
11817 * config/i386/constraints.md (B): New.
11818 (Ti): New.
11819 (Tb): New.
11820 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11821 * config/i386/i386-modes.def (BND32): New.
11822 (BND64): New.
11823 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11824 * config/i386/i386.c (isa_opts): Add mmpx.
11825 (regclass_map): Add bound registers.
11826 (dbx_register_map): Likewise.
11827 (dbx64_register_map): Likewise.
11828 (svr4_dbx_register_map): Likewise.
11829 (PTA_MPX): New.
11830 (ix86_option_override_internal): Support MPX ISA.
11831 (ix86_conditional_register_usage): Support bound registers.
11832 (print_reg): Likewise.
11833 (ix86_code_end): Add MPX bnd prefix.
11834 (output_set_got): Likewise.
11835 (ix86_output_call_insn): Likewise.
11836 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11837 (ix86_print_operand_punct_valid_p): Likewise.
11838 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11839 UNSPEC_BNDMK_ADDR.
11840 (ix86_class_likely_spilled_p): Add bound regs support.
11841 (ix86_hard_regno_mode_ok): Likewise.
11842 (x86_order_regs_for_local_alloc): Likewise.
11843 (ix86_bnd_prefixed_insn_p): New.
11844 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11845 (FIXED_REGISTERS): Add bound registers.
11846 (CALL_USED_REGISTERS): Likewise.
11847 (REG_ALLOC_ORDER): Likewise.
11848 (HARD_REGNO_NREGS): Likewise.
11849 (TARGET_MPX): New.
11850 (VALID_BND_REG_MODE): New.
11851 (FIRST_BND_REG): New.
11852 (LAST_BND_REG): New.
11853 (reg_class): Add BND_REGS.
11854 (REG_CLASS_NAMES): Likewise.
11855 (REG_CLASS_CONTENTS): Likewise.
11856 (BND_REGNO_P): New.
11857 (ANY_BND_REG_P): New.
11858 (BNDmode): New.
11859 (HI_REGISTER_NAMES): Add bound registers.
11860 * config/i386/i386.md (UNSPEC_BNDMK): New.
11861 (UNSPEC_BNDMK_ADDR): New.
11862 (UNSPEC_BNDSTX): New.
11863 (UNSPEC_BNDLDX): New.
11864 (UNSPEC_BNDLDX_ADDR): New.
11865 (UNSPEC_BNDCL): New.
11866 (UNSPEC_BNDCU): New.
11867 (UNSPEC_BNDCN): New.
11868 (UNSPEC_MPX_FENCE): New.
11869 (BND0_REG): New.
11870 (BND1_REG): New.
11871 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11872 (length_immediate): Likewise.
11873 (prefix_0f): Likewise.
11874 (memory): Likewise.
11875 (prefix_rep): Check for bnd prefix.
11876 (length_nobnd): New.
11877 (length): Use length_nobnd if specified.
11878 (BND): New.
11879 (bnd_ptr): New.
11880 (BNDCHECK): New.
11881 (bndcheck): New.
11882 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11883 (*jcc_2): Likewise.
11884 (jump): Likewise.
11885 (simple_return_internal): Likewise.
11886 (simple_return_pop_internal): Likewise.
11887 (*indirect_jump): Add MPX bnd prefix.
11888 (*tablejump_1): Likewise.
11889 (simple_return_internal_long): Likewise.
11890 (simple_return_indirect_internal): Likewise.
11891 (<mode>_mk): New.
11892 (*<mode>_mk): New.
11893 (mov<mode>): New.
11894 (*mov<mode>_internal_mpx): New.
11895 (<mode>_<bndcheck>): New.
11896 (*<mode>_<bndcheck>): New.
11897 (<mode>_ldx): New.
11898 (*<mode>_ldx): New.
11899 (<mode>_stx): New.
11900 (*<mode>_stx): New.
11901 * config/i386/predicates.md (lea_address_operand): Rename to...
11902 (address_no_seg_operand): ... this.
11903 (address_mpx_no_base_operand): New.
11904 (address_mpx_no_index_operand): New.
11905 (bnd_mem_operator): New.
11906 * config/i386/i386.opt (mmpx): New.
11907 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11908 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11909
11910 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11911
11912 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11913 * tree.def (POINTER_BOUNDS_TYPE): New.
11914 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11915 (POINTER_BOUNDS_MODE): New.
11916 (make_pointer_bounds_mode): New.
11917 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11918 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11919 (layout_type): Support POINTER_BOUNDS_TYPE.
11920 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11921 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11922 (type_contains_placeholder_1): Likewise.
11923 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11924 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11925 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11926
11927 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11928
11929 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11930 mode of address computation when calling memory_address_addr_space.
11931
11932 2013-08-24 Richard Henderson <rth@twiddle.net>
11933
11934 PR rtl/58542
11935 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11936 instead of create_convert_operand_to.
11937 (maybe_emit_sync_lock_test_and_set): Likewise.
11938 (expand_atomic_compare_and_swap): Likewise.
11939 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11940
11941 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11942
11943 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11944 Change param_is to use the struct and not the pointer to the struct.
11945
11946 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11947
11948 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11949 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11950 Move to targhooks.c.
11951 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11952 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11953 Relocate from gimplify.c.
11954 * targhooks.h: Add 2 prototypes.
11955 * tree.h: Delete 2 prototypes.
11956
11957 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11958
11959 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11960 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11961
11962 2013-10-24 Cong Hou <congh@google.com>
11963
11964 * convert.c (convert_to_real): Guard those unsafe math function
11965 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11966 specially.
11967
11968 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11969
11970 PR ipa/58712
11971 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11972 as argument.
11973 (cgraph_create_edge): Use the new argument.
11974 (cgraph_create_indirect_edge): Likewise.
11975
11976 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11977
11978 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11979 TYPE_UNCOND_BRANCH.
11980 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11981 changes statep->state.
11982
11983 2013-10-24 Tobias Burnus <burnus@net-b.de>
11984
11985 PR other/33426
11986 * tree-cfg.c (replace_loop_annotate): New function.
11987 (execute_build_cfg): Call it.
11988 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11989 * internal-fn.c (expand_ANNOTATE): New function.
11990 * internal-fn.def (ANNOTATE): Define as new internal function.
11991 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11992 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11993 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11994 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11995 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11996
11997 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11998 Marcus Shawcroft <marcus.shawcroft@arm.com>
11999
12000 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
12001 Special case reload SP+C into none GENERAL_REGS.
12002
12003 2013-10-24 Michael Matz <matz@suse.de>
12004
12005 * gengtype.c (is_file_equal): Check that files will be same length.
12006
12007 2013-10-25 Christian Bruel <christian.bruel@st.com>
12008
12009 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12010 * config/sh/t-sh (sh-mem.o): New rule.
12011 * config/sh/sh-mem.cc (expand_block_move): Moved here.
12012 (sh_expand_cmpstr): New function.
12013 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12014 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12015 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12016 (rotlhi3_8): Rename.
12017
12018 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12019
12020 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12021 * Makefile.in (CXXDEPMODE): Assign and change users.
12022 (CCDEPMODE): Delete.
12023 * configure: Regenerate.
12024
12025 2013-10-23 David Malcolm <dmalcolm@redhat.com>
12026
12027 * gengtype-parse.c (require_without_advance): New.
12028 (type): For GTY-marked types that are not GTY((user)), parse any
12029 base classes, requiring them to be single-inheritance, and not
12030 be templates. For non-GTY-marked types and GTY((user)),
12031 continue to skip over any C++ inheritance specification.
12032 * gengtype-state.c (state_writer::write_state_struct_type):
12033 Write base class of type (if any).
12034 (read_state_struct_type): Read base class of type (if any).
12035 * gengtype.c (new_structure): Add a "base_class" parameter.
12036 (create_optional_field_): Update for new parameter to new_structure.
12037 (adjust_field_rtx_def): Likewise.
12038 (adjust_field_tree_exp): Likewise.
12039 * gengtype.h (struct type): Add "base_class" field to the s
12040 union field.
12041 (new_structure): Add "base" parameter.
12042
12043 2013-10-23 Sriraman Tallam <tmsriram@google.com>
12044
12045 PR target/57756
12046 * config/i386/i386.c (ix86_option_override_internal):
12047 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12048 (ix86_valid_target_attribute_tree):
12049 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12050 Change TARGET_SSE to TARGET_SSE_P (opts->...)
12051
12052 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12053
12054 * tree-ssa-loop.h: Remove include files.
12055 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12056 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12057 * graphite-clast-to-gimple.c: Likewise.
12058 * graphite-scop-detection.c: Likewise.
12059 * graphite-sese-to-poly.c: Likewise.
12060 * ipa-inline-analysis.c: Likewise.
12061 * ipa-pure-const.c: Likewise.
12062 * loop-init.c: Likewise.
12063 * passes.c: Likewise.
12064 * predict.c: Likewise.
12065 * tree-cfg.c: Likewise.
12066 * tree-cfgcleanup.c: Likewise.
12067 * tree-chrec.c: Likewise.
12068 * tree-data-ref.c: Likewise.
12069 * tree-loop-distribution.c: Likewise.
12070 * tree-parloops.c: Likewise.
12071 * tree-predcom.c: Likewise.
12072 * tree-scalar-evolution.c: Likewise.
12073 * tree-ssa-address.c: Likewise.
12074 * tree-ssa.c: Likewise.
12075 * tree-ssa-dce.c: Likewise.
12076 * tree-ssa-loop.c: Likewise.
12077 * tree-ssa-loop-im.c: Likewise.
12078 * tree-ssa-loop-ivcanon.c: Likewise.
12079 * tree-ssa-loop-ivopts.c: Likewise.
12080 * tree-ssa-loop-manip.c: Likewise.
12081 * tree-ssa-loop-niter.c: Likewise.
12082 * tree-ssa-loop-prefetch.c: Likewise.
12083 * tree-ssa-loop-unswitch.c: Likewise.
12084 * tree-ssa-reassoc.c: Likewise.
12085 * tree-vect-data-refs.c: Likewise.
12086 * tree-vect-loop.c: Likewise.
12087 * tree-vect-loop-manip.c: Likewise.
12088 * tree-vectorizer.c: Likewise.
12089 * tree-vect-stmts.c: Likewise.
12090 * tree-vrp.c: Likewise.
12091
12092 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12093
12094 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12095
12096 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12097
12098 PR tree-optimization/58775
12099 PR tree-optimization/58791
12100 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12101 (insert_stmt_after): Rewritten, don't move the stmt, but really
12102 insert it.
12103 (get_stmt_uid_with_default): Remove.
12104 (build_and_add_sum): Use insert_stmt_after and
12105 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
12106 (update_range_test): Set uid on stmts added by
12107 force_gimple_operand_gsi. Don't immediately modify statements
12108 in inter-bb optimization, just update oe->op values.
12109 (optimize_range_tests): Return bool whether any changed have been made.
12110 (update_ops): New function.
12111 (struct inter_bb_range_test_entry): New type.
12112 (maybe_optimize_range_tests): Perform statement changes here.
12113 (not_dominated_by, appears_later_in_bb, get_def_stmt,
12114 ensure_ops_are_available): Remove.
12115 (find_insert_point): Rewritten.
12116 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12117 return LHS of the (new resp. old) stmt. Don't call
12118 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12119 instead of last, move new stmt at the right place.
12120 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12121 (negate_value): Likewise. Set uids.
12122 (break_up_subtract_bb): Initialize uids.
12123 (reassociate_bb): Adjust rewrite_expr_tree caller.
12124 (do_reassoc): Don't call renumber_gimple_stmt_uids.
12125
12126 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
12127
12128 PR target/58838
12129 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12130 TARGET_32BIT final condition.
12131 (mulsi3_internal2 and splitter): Same.
12132
12133 2013-10-23 Jeff Law <law@redhat.com>
12134
12135 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12136 through joiner blocks with abnormal outgoing edges.
12137
12138 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12139 Add parameter JOINERS, to allow/disallow threading through joiner
12140 blocks.
12141 (thread_block): New. Call thread_block_1.
12142 (mark_threaded_blocks): Remove code to filter out certain cases
12143 of threading through joiner blocks.
12144 (thread_through_all_blocks): Document how we can have a dangling
12145 edge AUX field and clear it.
12146
12147 2013-10-23 Ian Lance Taylor <iant@google.com>
12148
12149 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12150 (C++ Dialect Options): Likewise.
12151 (Optimize Options): Likewise.
12152
12153 2013-10-23 Tom de Vries <tom@codesourcery.com>
12154
12155 PR tree-optimization/58805
12156 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12157
12158 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12159
12160 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12161 sequence based on get_range_info returned range.
12162
12163 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12164
12165 * tree-ssa.h: Remove all #include's
12166 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12167 * alias.c: Move required includes from tree-ssa.h.
12168 * asan.c: Likewise.
12169 * builtins.c: Likewise.
12170 * calls.c: Likewise.
12171 * cfgexpand.c: Likewise.
12172 * cfghooks.c: Likewise.
12173 * cfgloop.c: Likewise.
12174 * cfgloopmanip.c: Likewise.
12175 * cgraph.c: Likewise.
12176 * cgraphbuild.c: Likewise.
12177 * cgraphclones.c: Likewise.
12178 * cgraphunit.c: Likewise.
12179 * dse.c: Likewise.
12180 * except.c: Likewise.
12181 * expr.c: Likewise.
12182 * final.c: Likewise.
12183 * fold-const.c: Likewise.
12184 * ggc-page.c: Likewise.
12185 * gimple-builder.c: Likewise.
12186 * gimple-fold.c: Likewise.
12187 * gimple-iterator.c: Likewise.
12188 * gimple-low.c: Likewise.
12189 * gimple-pretty-print.c: Likewise.
12190 * gimple-ssa-strength-reduction.c: Likewise.
12191 * gimple-streamer-in.c: Likewise.
12192 * gimple-streamer-out.c: Likewise.
12193 * gimplify.c: Likewise.
12194 * graphite-blocking.c: Likewise.
12195 * graphite-clast-to-gimple.c: Likewise.
12196 * graphite-dependences.c: Likewise.
12197 * graphite-interchange.c: Likewise.
12198 * graphite-optimize-isl.c: Likewise.
12199 * graphite-poly.c: Likewise.
12200 * graphite-scop-detection.c: Likewise.
12201 * graphite-sese-to-poly.c: Likewise.
12202 * graphite.c: Likewise.
12203 * ipa-cp.c: Likewise.
12204 * ipa-inline-analysis.c: Likewise.
12205 * ipa-inline-transform.c: Likewise.
12206 * ipa-inline.c: Likewise.
12207 * ipa-prop.c: Likewise.
12208 * ipa-pure-const.c: Likewise.
12209 * ipa-reference.c: Likewise.
12210 * ipa-split.c: Likewise.
12211 * ipa-utils.c: Likewise.
12212 * loop-init.c: Likewise.
12213 * lto-cgraph.c: Likewise.
12214 * lto-section-in.c: Likewise.
12215 * lto-section-out.c: Likewise.
12216 * lto-streamer-in.c: Likewise.
12217 * lto-streamer-out.c: Likewise.
12218 * lto-streamer.c: Likewise.
12219 * omp-low.c: Likewise.
12220 * passes.c: Likewise.
12221 * predict.c: Likewise.
12222 * print-tree.c: Likewise.
12223 * profile.c: Likewise.
12224 * sese.c: Likewise.
12225 * targhooks.c: Likewise.
12226 * tracer.c: Likewise.
12227 * trans-mem.c: Likewise.
12228 * tree-call-cdce.c: Likewise.
12229 * tree-cfg.c: Likewise.
12230 * tree-cfgcleanup.c: Likewise.
12231 * tree-chrec.c: Likewise.
12232 * tree-complex.c: Likewise.
12233 * tree-data-ref.c: Likewise.
12234 * tree-dfa.c: Likewise.
12235 * tree-eh.c: Likewise.
12236 * tree-emutls.c: Likewise.
12237 * tree-if-conv.c: Likewise.
12238 * tree-inline.c: Likewise.
12239 * tree-into-ssa.c: Likewise.
12240 * tree-loop-distribution.c: Likewise.
12241 * tree-mudflap.c: Likewise.
12242 * tree-nested.c: Likewise.
12243 * tree-nrv.c: Likewise.
12244 * tree-object-size.c: Likewise.
12245 * tree-outof-ssa.c: Likewise.
12246 * tree-parloops.c: Likewise.
12247 * tree-phinodes.c: Likewise.
12248 * tree-predcom.c: Likewise.
12249 * tree-pretty-print.c: Likewise.
12250 * tree-profile.c: Likewise.
12251 * tree-scalar-evolution.c: Likewise.
12252 * tree-sra.c: Likewise.
12253 * tree-ssa-address.c: Likewise.
12254 * tree-ssa-alias.c: Likewise.
12255 * tree-ssa-ccp.c: Likewise.
12256 * tree-ssa-coalesce.c: Likewise.
12257 * tree-ssa-copy.c: Likewise.
12258 * tree-ssa-copyrename.c: Likewise.
12259 * tree-ssa-dce.c: Likewise.
12260 * tree-ssa-dom.c: Likewise.
12261 * tree-ssa-dse.c: Likewise.
12262 * tree-ssa-forwprop.c: Likewise.
12263 * tree-ssa-ifcombine.c: Likewise.
12264 * tree-ssa-live.c: Likewise.
12265 * tree-ssa-loop-ch.c: Likewise.
12266 * tree-ssa-loop-im.c: Likewise.
12267 * tree-ssa-loop-ivcanon.c: Likewise.
12268 * tree-ssa-loop-ivopts.c: Likewise.
12269 * tree-ssa-loop-manip.c: Likewise.
12270 * tree-ssa-loop-niter.c: Likewise.
12271 * tree-ssa-loop-prefetch.c: Likewise.
12272 * tree-ssa-loop-unswitch.c: Likewise.
12273 * tree-ssa-loop.c: Likewise.
12274 * tree-ssa-math-opts.c: Likewise.
12275 * tree-ssa-operands.c: Likewise.
12276 * tree-ssa-phiopt.c: Likewise.
12277 * tree-ssa-phiprop.c: Likewise.
12278 * tree-ssa-pre.c: Likewise.
12279 * tree-ssa-propagate.c: Likewise.
12280 * tree-ssa-reassoc.c: Likewise.
12281 * tree-ssa-sccvn.c: Likewise.
12282 * tree-ssa-sink.c: Likewise.
12283 * tree-ssa-strlen.c: Likewise.
12284 * tree-ssa-structalias.c: Likewise.
12285 * tree-ssa-tail-merge.c: Likewise.
12286 * tree-ssa-ter.c: Likewise.
12287 * tree-ssa-threadedge.c: Likewise.
12288 * tree-ssa-threadupdate.c: Likewise.
12289 * tree-ssa-uncprop.c: Likewise.
12290 * tree-ssa-uninit.c: Likewise.
12291 * tree-ssa.c: Likewise.
12292 * tree-ssanames.c: Likewise.
12293 * tree-stdarg.c: Likewise.
12294 * tree-streamer-in.c: Likewise.
12295 * tree-switch-conversion.c: Likewise.
12296 * tree-tailcall.c: Likewise.
12297 * tree-vect-data-refs.c: Likewise.
12298 * tree-vect-generic.c: Likewise.
12299 * tree-vect-loop-manip.c: Likewise.
12300 * tree-vect-loop.c: Likewise.
12301 * tree-vect-patterns.c: Likewise.
12302 * tree-vect-slp.c: Likewise.
12303 * tree-vect-stmts.c: Likewise.
12304 * tree-vectorizer.c: Likewise.
12305 * tree-vrp.c: Likewise.
12306 * tree.c: Likewise.
12307 * tsan.c: Likewise.
12308 * value-prof.c: Likewise.
12309 * var-tracking.c: Likewise.
12310 * varpool.c: Likewise.
12311 * vtable-verify.c: Likewise.
12312
12313 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12314
12315 * config/tilegx/tilegx.c: Include "tree.h".
12316
12317 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12318
12319 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12320 the info, not after it.
12321 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12322 dump_ssaname_info call.
12323 (pp_gimple_stmt_1): Adjust caller.
12324 (dump_phi_nodes): Likewise. Don't print "# " here.
12325
12326 2013-10-22 Jan Hubicka <jh@suse.cz>
12327
12328 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12329 tuning flag.
12330 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12331 * i386.c (expand_small_movmem_or_setmem): New function.
12332 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12333 function.
12334 (alg_usable_p): Add support for value ranges; cleanup.
12335 (ix86_expand_set_or_movmem): Add support for misaligned moves.
12336
12337 2013-10-22 Sterling Augustine <saugustine@google.com>
12338
12339 * doc/invoke.texi: Document -ggnu-pubnames.
12340 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12341 logic.
12342 * dwarf2out.c: Include gdb/gdb-index.h.
12343 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12344 debug_generate_pub_sections.
12345 (is_java, output_pubtables, output_pubname): New functions.
12346 (include_pubname_in_output): Handle debug_generate_pub_sections at
12347 level 2.
12348 (size_of_pubnames): Use new local space_for_flags based on
12349 debug_generate_pub_sections.
12350 (output_pubnames): Unify pubnames and pubtypes output logic.
12351 Genericize comments. Call output_pubname.
12352 (dwarf2out_finish): Move logic to output_pubnames and call it.
12353
12354 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
12355
12356 PR target/58779
12357 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12358 Remove CCCmode handling.
12359 <case LTU>: Return 'c' suffix for CCCmode.
12360 <case GEU>: Return 'nc' suffix for CCCmode.
12361 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12362 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12363 (*sub<mode>3_cc_overflow): Ditto.
12364 (*subsi3_zext_cc_overflow): Ditto.
12365
12366 2013-10-22 Steve Ellcey <sellcey@mips.com>
12367
12368 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
12369 (AND (NOT OP1) (NOT OP2)).
12370
12371 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
12372
12373 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12374 meaning of merge-high and merge-low masks for little endian; avoid
12375 use of vector-pack masks for little endian for mismatched modes.
12376
12377 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12378
12379 * config/tilepro/tilepro.c: Include "tree.h".
12380
12381 2013-10-22 Andreas Schwab <schwab@suse.de>
12382
12383 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12384 with PRE_DEC.
12385
12386 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
12387
12388 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12389 [Ed Smith-Rowland]): New entries.
12390 ([Stephen M. Webb]): Update.
12391
12392 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
12393
12394 * tree-ssa-ter.h: Remove duplicate copy of file contents.
12395
12396 2013-10-21 Marek Polacek <polacek@redhat.com>
12397
12398 PR middle-end/58809
12399 * fold-const.c (fold_range_test): Return 0 if the type is not
12400 an integral type.
12401
12402 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
12403
12404 * system.h: Move hwint.h include further down.
12405 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
12406 gcc_checking_asserts.
12407 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12408
12409 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12410
12411 Fix volatile issues in optimize_bit_field_compare.
12412 * fold-const.c (optimize_bit_field_compare): Bail out if
12413 lvolatilep or rvolatilep.
12414
12415 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12416
12417 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12418 and get_inner_reference returning different pmode for non-volatile
12419 bit-field members dependent on flag_strict_volatile_bitfields.
12420 * stor-layout.c (layout_decl): Remove special handling of
12421 flag_strict_volatile_bitfields.
12422 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12423 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12424
12425 2013-10-21 Paulo Matos <pmatos@broadcom.com>
12426
12427 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12428 calculations.
12429
12430 2013-10-21 Jeff Law <law@redhat.com>
12431
12432 * tree-ssa-threadedge.c (thread_through_normal_block): New
12433 argument VISITED. Remove VISISTED as a local variable. When we
12434 have a threadable jump, verify the destination of the jump has not
12435 been visised.
12436 (thread_across_edge): Allocate VISITED bitmap once at function
12437 scope and use it throughout. Make sure to set appropriate bits in
12438 VISITED for E (start of jump thread path).
12439 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12440 through a joiner if any edge on the path has a recorded jump thread.
12441
12442 2013-10-21 Ian Lance Taylor <iant@google.com>
12443
12444 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12445 don't imply that attributes can solve all problems.
12446 (Directory Options): Fix typo.
12447
12448 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12449
12450 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12451 extend and extend_add.
12452
12453 2013-10-21 Richard Biener <rguenther@suse.de>
12454
12455 PR tree-optimization/58794
12456 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12457 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12458
12459 2013-10-21 Richard Biener <rguenther@suse.de>
12460
12461 PR middle-end/58742
12462 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12463 to (T) X for sign-changing conversions (or no conversion).
12464
12465 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12466
12467 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12468
12469 2013-10-20 Jan Hubicka <jh@suse.cz>
12470
12471 * config/i386/i386-tune.def: Add comment; organize into categories
12472
12473 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12474
12475 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12476 argument. Update function comment.
12477 (expand_set_or_movmem_via_rep): New function combining
12478 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12479 (expand_movmem_via_rep_mov): Remove.
12480 expand_setmem_via_rep_stos): Remove.
12481 (expand_movmem_epilogue): Update calls correspondingly.
12482 (expand_setmem_epilogue_via_loop): Likewise.
12483 (emit_memset): New.
12484 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12485 (expand_set_or_movmem_prologue): New function combining
12486 expand_movmem_prologue and expand_setmem_prologue.
12487 (expand_movmem_prologue): Remove.
12488 (expand_setmem_prologue): Remove.
12489 (expand_set_or_movmem_constant_prologue): New function combining
12490 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12491 (expand_constant_movmem_prologue): Remove.
12492 (expand_constant_setmem_prologue): Remove.
12493 (promote_duplicated_reg): Allow vector-const0 value.
12494 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12495 and ix86_expand_setmem.
12496 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12497 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12498
12499 2013-10-21 Diego Novillo <dnovillo@google.com>
12500
12501 * asan.c: Include tree.h
12502 * bb-reorder.c: Likewise.
12503 * cfgcleanup.c: Likewise.
12504 * cfgloopmanip.c: Likewise.
12505 * data-streamer-in.c: Likewise.
12506 * data-streamer-out.c: Likewise.
12507 * data-streamer.c: Likewise.
12508 * dwarf2cfi.c: Likewise.
12509 * graphite-blocking.c: Likewise.
12510 * graphite-clast-to-gimple.c: Likewise.
12511 * graphite-dependences.c: Likewise.
12512 * graphite-interchange.c: Likewise.
12513 * graphite-optimize-isl.c: Likewise.
12514 * graphite-poly.c: Likewise.
12515 * graphite-scop-detection.c: Likewise.
12516 * graphite-sese-to-poly.c: Likewise.
12517 * graphite.c: Likewise.
12518 * ipa-devirt.c: Likewise.
12519 * ipa-profile.c: Likewise.
12520 * ipa.c: Likewise.
12521 * ira.c: Likewise.
12522 * loop-init.c: Likewise.
12523 * loop-unroll.c: Likewise.
12524 * lower-subreg.c: Likewise.
12525 * lto/lto-object.c: Likewise.
12526 * recog.c: Likewise.
12527 * reginfo.c: Likewise.
12528 * tree-loop-distribution.c: Likewise.
12529 * tree-parloops.c: Likewise.
12530 * tree-ssa-strlen.c: Likewise.
12531 * tree-streamer.c: Likewise.
12532 * value-prof.c: Likewise.
12533 * target-globals.c: Likewise.
12534 * expr.h: Include tree-core.h instead of tree.h.
12535 * gimple.h: Likewise.
12536 * ipa-prop.h: Likewise.
12537 * ipa-utils.h: Likewise.
12538 * lto-streamer.h: Likewise.
12539 * streamer-hooks.h: Likewise.
12540 * ipa-reference.h: Include cgraph.h instead of tree.h.
12541 * cgraph.h: Include basic-block.h instead of tree.h.
12542 * tree-streamer.h: Do not include tree.h.
12543 * genattrtab.c (write_header): Generate inclusion of tree.h.
12544 * genautomata.c (main): Likewise.
12545 * genemit.c: Likewise.
12546 * genopinit.c: Likewise.
12547 * genoutput.c (output_prologue): Likewise.
12548 * genpeep.c: Likewise.
12549
12550 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12551
12552 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12553 little endian.
12554 (vec_unpacku_hi_v8hi): Likewise.
12555 (vec_unpacku_lo_v16qi): Likewise.
12556 (vec_unpacku_lo_v8hi): Likewise.
12557
12558 2013-10-20 Jan Hubicka <jh@suse.cz>
12559
12560 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12561 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12562 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12563
12564 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12565
12566 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12567 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12568 constants.
12569 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12570
12571 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12572
12573 PR target/58603
12574 * system.h: Undef m_slot.
12575
12576 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12577
12578 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12579 all elements for both endian flavors.
12580
12581 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12582
12583 PR target/58792
12584 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12585 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12586 and SI_REG for 64bit SYSV ABI targets.
12587
12588 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12589
12590 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12591 to multi_reg_return. Clarify that we are skipping USEs of multiple
12592 return registers. Use bool type where appropriate.
12593
12594 2013-10-18 Jan Hubicka <jh@suse.cz>
12595
12596 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12597 for cold functions.
12598 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12599 (X86_TUNE_PUSH_MEMORY): Likewise.
12600 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12601 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12602 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12603 New.
12604 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12605 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12606 Remove.
12607 (ix86_option_override_internal): Update to use tune features instead
12608 of variables.
12609
12610 2013-10-18 Cong Hou <congh@google.com>
12611
12612 PR tree-optimization/58508
12613 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12614 statement that contains data refs with zero-step.
12615
12616 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12617
12618 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12619 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12620 * gimple-low.c (gimple_check_call_arg,
12621 gimple_check_call_matching_types): Move to cgraph.c.
12622 * gimple-low.h: Remove prototype.
12623 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12624 Relocate from gimple-low.c.
12625 * cgraph.h: Add prototype. Don't include basic-block.h.
12626 * gimplify.c: Add gimple-low to include list.
12627 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12628 * tree-eh.c: Add gimple-low to include list.
12629 * tree-nested.c: Likewise.
12630 * cfgexpand.c: Add tree-ssa-address.h to include list.
12631 * expr.c: Likewise.
12632 * gimple-fold.c: Likewise.
12633 * gimple-ssa-strength-reduction.c: Likewise.
12634 * trans-mem.c: Likewise.
12635 * tree-mudflap.c: Likewise.
12636 * tree-ssa-loop-ivopts.c: Likewise.
12637 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12638 (degenerate_phi_result): Move to tree-phinodes.c.
12639 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12640 * tree-ssa-threadedge.c: Likewise.
12641 * tree-vrp.c: Likewise.
12642 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12643 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12644 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12645 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12646 * tree-ssa-forwprop.c: Likewise.
12647 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12648 pass_data_cleanup_cfg_post_optimizing,
12649 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12650 * tree-optimize.c: Delete File.
12651 * graphite.c: Include tree-cfgcleanup.h.
12652 * passes.c: Likewise.
12653 * tree-cfg.c: Likewise.
12654 * tree-profile.c: Likewise.
12655 * tree-ssa-dse.c: Likewise.
12656 * tree-ssa-loop-ivcanon.c: Likewise.
12657 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12658 * tree-outof-ssa.c: Include sbitmap.h.
12659 * tree-ssa-live.c: Likewise.
12660 * tree-ssa-propagate.c: Likewise.
12661 * tree-ssa-structalias.c: Likewise.
12662 * tree-stdarg.c: Likewise.
12663 * Makefile.in (OBJS): Delete tree-optimize.o.
12664 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12665 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12666 * varasm.c: Include basic-block.h.
12667 * cfgloop.h: Include function.h instead of basic-block.h
12668 (bb_loop_depth): Move to cfgloop.c.
12669 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12670
12671 2013-10-18 Teresa Johnson <tejohnson@google.com>
12672
12673 * predict.c (probably_never_executed): Compare frequency-based
12674 count to number of training runs.
12675 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12676
12677 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12678
12679 * config/arm/arm.c (cortexa9_extra_costs): New table.
12680 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12681
12682 2013-10-18 Jeff Law <law@redhat.com>
12683
12684 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12685
12686 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12687 (register_jump_thread): Add "registered_jump_thread" debug
12688 counter support.
12689 * dbgcnt.def (registered_jump_thread): New debug counter.
12690
12691 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12692
12693 * config/rs6000/rs6000.c: Include cgraph.h.
12694
12695 2013-10-18 Teresa Johnson <tejohnson@google.com>
12696
12697 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12698 weights during merging.
12699
12700 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12701
12702 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12703 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12704 * tree-ssa-operands.h: Remove prototype.
12705 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12706 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12707 * gimple.h: Add prototype.
12708 * gimple-ssa.h: Include tree-ssa-operands.h.
12709 * tree-dump.c: Add tree-cfg.h to include list.
12710 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12711 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12712 * config/i386/i386.c: Don't include tree-flow.h.
12713 * config/rs6000/rs6000.c: Likewise.
12714
12715 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12716
12717 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12718
12719 2013-10-18 Richard Biener <rguenther@suse.de>
12720
12721 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12722 or TYPE_UNSIGNED of integral types.
12723 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12724 NULL_TREE for zero-precision integral types.
12725
12726 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12727
12728 * config/aarch64/arm_neon.h
12729 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12730
12731 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12732
12733 PR target/57756
12734 * opth-gen.awk: Define target_flags_explicit.
12735
12736 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12737
12738 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12739 fields to the reg_addr array that describes the valid addressing
12740 mode for any register, general purpose registers, floating point
12741 registers, and Altivec registers.
12742 (FIRST_RELOAD_REG_CLASS): Likewise.
12743 (LAST_RELOAD_REG_CLASS): Likewise.
12744 (struct reload_reg_map_type): Likewise.
12745 (reload_reg_map_type): Likewise.
12746 (RELOAD_REG_VALID): Likewise.
12747 (RELOAD_REG_MULTIPLE): Likewise.
12748 (RELOAD_REG_INDEXED): Likewise.
12749 (RELOAD_REG_OFFSET): Likewise.
12750 (RELOAD_REG_PRE_INCDEC): Likewise.
12751 (RELOAD_REG_PRE_MODIFY): Likewise.
12752 (reg_addr): Likewise.
12753 (mode_supports_pre_incdec_p): New helper functions to say whether
12754 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12755 (mode_supports_pre_modify_p): Likewise.
12756 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12757 print the valid address mode bits for each mode.
12758 (rs6000_debug_print_mode): Likewise.
12759 (rs6000_debug_reg_global): Likewise.
12760 (rs6000_setup_reg_addr_masks): New function to set up the address
12761 mask bits for each type.
12762 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12763 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12764 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12765 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12766 PRE_MODIFY are supported.
12767 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12768 registers, instead of {src,dest}_av_p.
12769 (rs6000_print_options_internal): Tweak the debug output slightly.
12770
12771 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12772
12773 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12774 isa attribute.
12775
12776 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12777
12778 * tree-flow.h (struct omp_region): Move to omp-low.c.
12779 Remove omp_ prototypes and variables.
12780 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12781 (copy_var_decl): Relocate prototype from tree-flow.h.
12782 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12783 * tree.h: Move prototype to omp-low.h.
12784 * omp-low.h: New File. Relocate prototypes here.
12785 * omp-low.c (struct omp_region): Make local here.
12786 (root_omp_region): Make static.
12787 (copy_var_decl) Move to gimple.c.
12788 (new_omp_region): Make static.
12789 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12790 * tree-cfg.c: Include omp-low.h.
12791 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12792 * gimplify.c: Include omp-low.h.
12793 * tree-parloops.c: Likewise.
12794
12795 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12796
12797 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12798 operands are in memory, prefer to force non-matched operand 1 to
12799 the register.
12800
12801 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12802
12803 PR target/58673
12804 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12805 restrict TImode addresses to single indirect registers if both
12806 -mquad-memory and -mvsx-timode are used.
12807 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12808 we should emit load/store quad. Remove using %y for quad memory
12809 addresses.
12810
12811 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12812 constraints to allow load/store quad on machines where TImode is
12813 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12814 for TImode to load integer constants.
12815
12816 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12817
12818 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12819
12820 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12821
12822 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12823 handling of STACK_REG.
12824
12825 2013-10-17 Richard Biener <rguenther@suse.de>
12826
12827 PR tree-optimization/58143
12828 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12829 New function.
12830 (rewrite_to_defined_overflow): Likewise.
12831 (move_computations_dom_walker::before_dom): Rewrite stmts
12832 with undefined signed overflow that are not always executed
12833 into unsigned arithmetic.
12834
12835 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12836
12837 PR target/57756
12838 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12839 explicit isa flag to be an options variable, instead of using
12840 global_options_set. Remove define from rs6000.h.
12841 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12842
12843 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12844 Initialize rs6000_isa_flags_explicit.
12845 (rs6000_function_specific_save): Add gcc_options* parameter, so
12846 that the powerpc builds after the 2013-10-15 changes.
12847 (rs6000_function_specific_restore): Likewise.
12848
12849 2013-10-16 DJ Delorie <dj@redhat.com>
12850
12851 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12852 op is a REG before checking REGNO.
12853 (rl78_alloc_physical_registers): Verify pattern is a SET before
12854 checking SET_SRC.
12855
12856 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12857
12858 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12859 endianness.
12860 (vec_unpacks_lo_v4sf): Likewise.
12861 (vec_unpacks_float_hi_v4si): Likewise.
12862 (vec_unpacks_float_lo_v4si): Likewise.
12863 (vec_unpacku_float_hi_v4si): Likewise.
12864 (vec_unpacku_float_lo_v4si): Likewise.
12865
12866 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12867
12868 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12869 (vsx_concat_v2sf): Likewise.
12870
12871 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12872
12873 * config/aarch64/aarch64.md
12874 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12875
12876 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12877
12878 PR tree-optimization/58697
12879 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12880 estimated_loop_iterations_int.
12881 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12882 (get_max_loop_iterations_int): New. HWINT version of
12883 get_max_loop_iterations.
12884 * cfgloop.h: Add prototypes.
12885 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12886 * loop-unroll.c (decide_peel_once_rolling): Call
12887 get_estimated_loop_iterations_int.
12888 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12889 * tree-ssa-loop-niter.h: Tweak prototypes.
12890
12891 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12892
12893 * gengtype-parse.c (struct_field_seq): Ignore access-control
12894 keywords ("public:" etc).
12895
12896 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12897
12898 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12899 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12900
12901 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12902
12903 * config/arm/arm.opt (mlra): New option.
12904 * config/arm/arm.c (arm_lra_p): New function.
12905 (TARGET_LRA_P): Define.
12906
12907 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12908
12909 * tree-core.h (tree_code_name): Remove.
12910 * tree.h (get_tree_code_name): New prototype.
12911 * tree.c (tree_code_name): Make static.
12912 (get_tree_code_name): New function.
12913 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12914 tree_class_check_failed, tree_range_check_failed,
12915 tree_not_class_check_failed, omp_clause_check_failed,
12916 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12917 wrapper get_tree_code_name instead of calling tree_code_name directly.
12918 * tree-vrp.c (dump_asserts_for): Likewise.
12919 * tree-dump.c (dequeue_and_dump): Likewise.
12920 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12921 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12922 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12923 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12924 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12925 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12926 dump_gimple_omp_for): Likewise.
12927 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12928 * tree-ssa-pre.c (print_pre_expr): Likewise.
12929 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12930 * print-tree.c (print_node_brief, print_node): Likewise.
12931 * gimple.c (gimple_check_failed): Likewise.
12932 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12933 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12934 * config/mep/mep.c (mep_validate_vliw): Likewise.
12935 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12936 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12937
12938 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12939
12940 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12941 for AMD bdver3.
12942
12943 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12944
12945 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12946 (MULTILIB_MATCHES): Add multilib for -march=v8.
12947
12948 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12949
12950 PR target/57756
12951 * optc-save-gen.awk: Add extra parameter to the save and restore
12952 target calls.
12953 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12954 * tree.c (build_optimization_node): New parameter. Add extra parameter
12955 to call to cl_optimization_save.
12956 (build_target_option_node): New parameter. Add extra parameter
12957 to call to cl_target_option_save.
12958 * tree.h (build_optimization_node): New parameter.
12959 (build_target_option_node): New parameter.
12960 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12961 build_optimization_node and build_target_option_node.
12962 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12963 (handle_pragma_push_options): Ditto.
12964 * toplev.c (process_options): Ditto.
12965 * opts.c (init_options_struct): Check for opts_set non-null.
12966 * target.def (target_option.save): New parameter.
12967 (target_option.restore): New parameter.
12968 * tm.texi: Generate.
12969 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12970 (ix86_pragma_target_parse): Ditto.
12971 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12972 parameters.
12973 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12974 to build_optimization_node and build_target_option_node.
12975 (rs6000_valid_attribute_p): Ditto.
12976 (rs6000_pragma_target_parse): Ditto.
12977 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12978 data.
12979 * config/i386/i386.h:
12980 TARGET_64BIT_P: New Macro
12981 TARGET_MMX_P: New Macro.
12982 TARGET_3DNOW_P: New Macro.
12983 TARGET_3DNOW_A_P: New Macro.
12984 TARGET_SSE_P: New Macro.
12985 TARGET_SSE2_P: New Macro.
12986 TARGET_SSE3_P: New Macro.
12987 TARGET_SSSE3_P: New Macro.
12988 TARGET_SSE4_1_P: New Macro.
12989 TARGET_SSE4_2_P: New Macro.
12990 TARGET_AVX_P: New Macro.
12991 TARGET_AVX2_P: New Macro.
12992 TARGET_AVX512F_P: New Macro.
12993 TARGET_AVX512PF_P: New Macro.
12994 TARGET_AVX512ER_P: New Macro.
12995 TARGET_AVX512CD_P: New Macro.
12996 TARGET_FMA_P: New Macro.
12997 TARGET_SSE4A_P: New Macro.
12998 TARGET_FMA4_P: New Macro.
12999 TARGET_XOP_P: New Macro.
13000 TARGET_LWP_P: New Macro.
13001 TARGET_ABM_P: New Macro.
13002 TARGET_BMI_P: New Macro.
13003 TARGET_BMI2_P: New Macro.
13004 TARGET_LZCNT_P: New Macro.
13005 TARGET_TBM_P: New Macro.
13006 TARGET_POPCNT_P: New Macro.
13007 TARGET_SAHF_P: New Macro.
13008 TARGET_MOVBE_P: New Macro.
13009 TARGET_CRC32_P: New Macro.
13010 TARGET_AES_P: New Macro.
13011 TARGET_PCLMUL_P: New Macro.
13012 TARGET_CMPXCHG16B_P: New Macro.
13013 TARGET_FSGSBASE_P: New Macro.
13014 TARGET_RDRND_P: New Macro.
13015 TARGET_F16C_P: New Macro.
13016 TARGET_RTM_P: New Macro.
13017 TARGET_HLE_P: New Macro.
13018 TARGET_RDSEED_P: New Macro.
13019 TARGET_PRFCHW_P: New Macro.
13020 TARGET_ADX_P: New Macro.
13021 TARGET_FXSR_P: New Macro.
13022 TARGET_XSAVE_P: New Macro.
13023 TARGET_XSAVEOPT_P: New Macro.
13024 TARGET_LP64_P: New Macro.
13025 TARGET_X32_P: New Macro.
13026 TARGET_FPMATH_DEFAULT_P: New Macro.
13027 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13028 * config/i386/i386.c (ix86_option_override_internal): New parameters.
13029 opts and opts_set.
13030 Change ix86_tune_string to access opts->x_ix86_tune_string.
13031 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13032 Change ix86_arch_string to access opts->x_ix86_arch_string.
13033 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13034 Change ix86_pmode to access opts->x_ix86_pmode.
13035 Change ix86_abi to access opts->x_ix86_abi.
13036 Change ix86_cmodel to access opts->x_ix86_cmodel.
13037 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13038 Change ix86_isa_flags_explicit to access
13039 opts->x_ix86_isa_flags_explicit.
13040 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13041 Change ix86_regparm to access opts->x_ix86_regparm.
13042 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13043 Change ix86_preferred_stack_boundary_arg to access
13044 opts->x_ix86_preferred_stack_boundary_arg.
13045 Change ix86_force_align_arg_pointer to access
13046 opts->x_ix86_force_align_arg_pointer.
13047 Change ix86_incoming_stack_boundar_arg to access
13048 opts->x_ix86_incoming_stack_boundar_arg.
13049 Change ix86_fpmath to access opts->x_ix86_fpmath.
13050 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13051 Change ix86_recip_name to access opts->x_ix86_recip_name.
13052 Change ix86_stack_protector_guard to access
13053 opts->x_ix86_stack_protector_guard.
13054 Change ix86_tune_memcpy_strategy to access
13055 opts->x_ix86_tune_memcpy_strategy.
13056 Change ix86_tune_memset_strategy to access
13057 opts->x_ix86_tune_memset_strategy.
13058 Change global_options to access opts.
13059 Change global_options_set to access opts_set.
13060 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13061 Change TARGET_MMX to TARGET_MMX_P (opts->...).
13062 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13063 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13064 Change TARGET_SSE to TARGET_SSE_P (opts->...).
13065 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13066 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13067 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13068 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13069 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13070 Change TARGET_AVX to TARGET_AVX_P (opts->...).
13071 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13072 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13073 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13074 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13075 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13076 Change TARGET_FMA to TARGET_FMA_P (opts->...).
13077 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13078 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13079 Change TARGET_XOP to TARGET_XOP_P (opts->...).
13080 Change TARGET_LWP to TARGET_LWP_P (opts->...).
13081 Change TARGET_ABM to TARGET_ABM_P (opts->...).
13082 Change TARGET_BMI to TARGET_BMI_P (opts->...).
13083 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13084 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13085 Change TARGET_TBM to TARGET_TBM_P (opts->...).
13086 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13087 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13088 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13089 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13090 Change TARGET_AES to TARGET_AES_P (opts->...).
13091 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13092 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13093 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13094 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13095 Change TARGET_F16C to TARGET_F16C_P (opts->...).
13096 Change TARGET_RTM to TARGET_RTM_P (opts->...).
13097 Change TARGET_HLE to TARGET_HLE_P (opts->...).
13098 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13099 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13100 Change TARGET_ADX to TARGET_ADX_P (opts->...).
13101 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13102 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13103 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13104 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13105 Change TARGET_X32 to TARGET_X32_P (opts->...).
13106 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13107 Change TARGET_FLOAT_RETURNS_IN_80387 to
13108 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13109 (ix86_function_specific_save): New parameter. Use opts-> fields
13110 to replace global fields.
13111 (ix86_function_specific_restore): Ditto.
13112 (ix86_valid_target_attribute_inner_p): New parameters.
13113 Fix recursive call.
13114 Fix call to ix86_handle_option and set_option.
13115 (ix86_valid_target_attribute_tree): New parameters.
13116 Change global_options to access opts.
13117 Change global_options_set to access opts_set.
13118 Fix call to ix86_valid_target_attribute_inner_p.
13119 Change ix86_tune_string to access opts->x_ix86_tune_string.
13120 Change ix86_arch_string to access opts->x_ix86_arch_string.
13121 Change ix86_fpmath to access opts->x_ix86_fpmath
13122 Fix call to ix86_option_override_internal.
13123 Fix call to ix86_add_new_builtins.
13124 Fix calls to build_optimization_node and build_target_option_node.
13125 (ix86_valid_target_attribute_p): Remove access to global_options.
13126 Use new gcc_options structure func_options.
13127 Fix call to ix86_valid_target_attribute_tree.
13128 Fix call to build_optimization_node.
13129 (get_builtin_code_for_version): Fix call to
13130 ix86_valid_target_attribute_tree.
13131
13132 2013-10-15 David Malcolm <dmalcolm@redhat.com>
13133
13134 * Makefile.in (PICFLAG): New.
13135 (enable_host_shared): New.
13136 (INTERNAL_CFLAGS): Use PICFLAG.
13137 (LIBIBERTY): Use pic build of libiberty.a if configured with
13138 --enable-host-shared.
13139 * configure.ac: Add --enable-host-shared, setting up new
13140 PICFLAG variable.
13141 * configure: Regenerate.
13142 * doc/install.texi (--enable-shared): Add note contrasting it with ...
13143 (--enable-host-shared): New option.
13144
13145 2013-10-15 Richard Biener <rguenther@suse.de>
13146
13147 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13148 for built-in functions.
13149
13150 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
13151
13152 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13153 (optimize_range_tests_1): New function,
13154 extracted from optimize_range_tests.
13155 (optimize_range_tests_xor): Similarly.
13156 (optimize_range_tests_diff): New function.
13157 (optimize_range_tests): Use optimize_range_tests_1.
13158
13159 2013-10-15 Cong Hou <congh@google.com>
13160
13161 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13162 requirement of the reduction pattern so that one operand of the
13163 reduction operation can come from outside of the loop.
13164
13165 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13166
13167 * config/arm/neon-schedgen.ml: Remove.
13168 * config/arm/cortex-a9-neon.md: Remove comment regarding
13169 neon-schedgen.ml.
13170
13171 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13172
13173 * config/arm/types: Remove old neon types.
13174
13175 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13176
13177 * config/arm/cortex-a7.md
13178 (cortex_a7_neon_type): New.
13179 (cortex_a7_neon_mul): Update for new types.
13180 (cortex_a7_neon_mla): Likewise.
13181 (cortex_a7_neon): Likewise.
13182
13183 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13184
13185 * config/arm/cortex-a15-neon.md
13186 (cortex_a15_neon_type): New,
13187
13188 (cortex_a15_neon_int_1): Remove.
13189 (cortex_a15_neon_int_2): Likewise.
13190 (cortex_a15_neon_int_3): Likewise.
13191 (cortex_a15_neon_int_4): Likewise.
13192 (cortex_a15_neon_int_5): Likewise.
13193 (cortex_a15_neon_vqneg_vqabs): Likewise.
13194 (cortex_a15_neon_vmov): Likewise.
13195 (cortex_a15_neon_vaba): Likewise.
13196 (cortex_a15_neon_vaba_qqq): Likewise.
13197 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13198 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13199 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13200 Likewise.
13201 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13202 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13203 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13204 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13205 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13206 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13207 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13208 (cortex_a15_neon_shift_1): Likewise.
13209 (cortex_a15_neon_shift_2): Likewise.
13210 (cortex_a15_neon_shift_3): Likewise.
13211 (cortex_a15_neon_vshl_ddd): Likewise.
13212 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13213 (cortex_a15_neon_vsra_vrsra): Likewise.
13214 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13215 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13216 (cortex_a15_neon_bp_3cycle): Likewise.
13217 (cortex_a15_neon_ldm_2): Likewise.
13218 (cortex_a15_neon_stm_2): Likewise.
13219 (cortex_a15_neon_mcr): Likewise.
13220 (cortex_a15_neon_mrc): Likewise.
13221 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13222 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13223 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13224 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13225 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13226 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13227 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13228 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13229 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13230 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13231 (cortex_a15_neon_bp_simple): Likewise.
13232 (cortex_a15_neon_bp_2cycle): Likewise.
13233 (cortex_a15_neon_bp_3cycle): Likewise.
13234 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13235 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13236 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13237 (cortex_a15_neon_vld2_4_regs): Likewise.
13238 (cortex_a15_neon_vld3_vld4): Likewise.
13239 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13240 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13241 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13242 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13243 (cortex_a15_neon_vst3_vst4): Rename to...
13244 (cortex_a15_neon_vst4): This, update for new attributes.
13245 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13246 (cortex_a15_neon_vld3_vld4_lane): Likewise.
13247 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13248 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13249 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13250 (cortex_a15_neon_ldm_2): Likewise.
13251 (cortex_a15_neon_stm_2): Likewise.
13252 (cortex_a15_neon_mcr): Likewise.
13253 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13254 (cortex_a15_neon_mrc): Likewise.
13255 (cortex_a15_neon_mrrc): Likewise.
13256
13257 (cortex_a15_neon_abd): New.
13258 (cortex_a15_neon_abd_q): Likewise.
13259 (cortex_a15_neon_aba): Likewise.
13260 (cortex_a15_neon_aba_q): Likewise.
13261 (cortex_a15_neon_acc): Likewise.
13262 (cortex_a15_neon_acc_q): Likewise.
13263 (cortex_a15_neon_arith_basic): Likewise.
13264 (cortex_a15_neon_arith_complex): Likewise.
13265 (cortex_a15_neon_multiply): Likewise.
13266 (cortex_a15_neon_multiply_q): Likewise.
13267 (cortex_a15_neon_mla): Likewise.
13268 (cortex_a15_neon_mla_q): Likewise.
13269 (cortex_a15_neon_sat_mla_long): Likewise.
13270 (cortex_a15_neon_shift_acc): Likewise.
13271 (cortex_a15_neon_shift_imm_basic): Likewise.
13272 (cortex_a15_neon_shift_imm_complex): Likewise.
13273 (cortex_a15_neon_shift_reg_basic): Likewise.
13274 (cortex_a15_neon_shift_reg_basic_q): Likewise.
13275 (cortex_a15_neon_shift_reg_complex): Likewise.
13276 (cortex_a15_neon_shift_reg_complex_q): Likewise.
13277 (cortex_a15_neon_fp_negabs): Likewise
13278 (cortex_a15_neon_fp_arith): Likewise
13279 (cortex_a15_neon_fp_arith_q): Likewise
13280 (cortex_a15_neon_fp_cvt_int): Likewise
13281 (cortex_a15_neon_fp_cvt_int_q): Likewise
13282 (cortex_a15_neon_fp_cvt_16): Likewise
13283 (cortex_a15_neon_fp_mul): Likewise
13284 (cortex_a15_neon_fp_mul_q): Likewise
13285 (cortex_a15_neon_fp_mla): Likewise
13286 (cortex_a15_neon_fp_mla_q): Likewise
13287 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13288 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13289 (cortex_a15_neon_bitops): Likewise.
13290 (cortex_a15_neon_bitops_q): Likewise.
13291 (cortex_a15_neon_from_gp): Likewise.
13292 (cortex_a15_neon_from_gp_q): Likewise.
13293 (cortex_a15_neon_tbl3_tbl4): Likewise.
13294 (cortex_a15_neon_zip_q): Likewise.
13295 (cortex_a15_neon_to_gp): Likewise.
13296 (cortex_a15_neon_load_a): Likewise.
13297 (cortex_a15_neon_load_b): Likewise.
13298 (cortex_a15_neon_load_c): Likewise.
13299 (cortex_a15_neon_load_d): Likewise.
13300 (cortex_a15_neon_load_e): Likewise.
13301 (cortex_a15_neon_load_f): Likewise.
13302 (cortex_a15_neon_store_a): Likewise.
13303 (cortex_a15_neon_store_b): Likewise.
13304 (cortex_a15_neon_store_c): Likewise.
13305 (cortex_a15_neon_store_d): Likewise.
13306 (cortex_a15_neon_store_e): Likewise.
13307 (cortex_a15_neon_store_f): Likewise.
13308 (cortex_a15_neon_store_g): Likewise.
13309 (cortex_a15_neon_store_h): Likewise.
13310 (cortex_a15_vfp_to_from_gp): Likewise.
13311
13312 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13313
13314 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13315
13316 (cortex_a9_neon_vshl_ddd): Remove.
13317 (cortex_a9_neon_vst3_vst4): Likewise.
13318 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13319
13320 (cortex_a9_neon_bit_ops_q): New.
13321
13322 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13323 (cortex_a9_neon_int_2): Likewise.
13324 (cortex_a9_neon_int_3): Likewise.
13325 (cortex_a9_neon_int_4): Likewise.
13326 (cortex_a9_neon_int_5): Likewise.
13327 (cortex_a9_neon_vqneg_vqabs): Likewise.
13328 (cortex_a9_neon_vmov): Likewise.
13329 (cortex_a9_neon_vaba): Likewise.
13330 (cortex_a9_neon_vaba_qqq): Likewise.
13331 (cortex_a9_neon_shift_1): Likewise.
13332 (cortex_a9_neon_shift_2): Likewise.
13333 (cortex_a9_neon_shift_3): Likewise.
13334 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13335 (cortex_a9_neon_vsra_vrsra): Likewise.
13336 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13337 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13338 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13339 Likewise.
13340 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13341 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13342 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13343 Likewise.
13344 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13345 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13346 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13347 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13348 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13349 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13350 (cortex_a9_neon_fp_vsum): Likewise.
13351 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13352 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13353 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13354 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13355 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13356 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13357 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13358 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13359 (cortex_a9_neon_bp_simple): Likewise.
13360 (cortex_a9_neon_bp_2cycle): Likewise.
13361 (cortex_a9_neon_bp_3cycle): Likewise.
13362 (cortex_a9_neon_ldr): Likewise.
13363 (cortex_a9_neon_str): Likewise.
13364 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13365 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13366 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13367 (cortex_a9_neon_vld2_4_regs): Likewise.
13368 (cortex_a9_neon_vld3_vld4): Likewise.
13369 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13370 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13371 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13372 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13373 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13374 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13375 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13376 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13377 (cortex_a9_neon_mcr): Likewise.
13378 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13379 (cortex_a9_neon_mrc): Likewise.
13380 (cortex_a9_neon_mrrc): Likewise.
13381
13382 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13383
13384 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13385
13386 (cortex_a8_neon_vshl_ddd): Remove.
13387 (cortex_a8_neon_vst3_vst4): Likewise.
13388 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13389
13390 (cortex_a8_neon_bit_ops_q): New.
13391
13392 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13393 (cortex_a8_neon_int_2): Likewise..
13394 (cortex_a8_neon_int_3): Likewise.
13395 (cortex_a8_neon_int_5): Likewise.
13396 (cortex_a8_neon_vqneg_vqabs): Likewise.
13397 (cortex_a8_neon_int_4): Likewise.
13398 (cortex_a8_neon_vaba): Likewise.
13399 (cortex_a8_neon_vaba_qqq): Likewise.
13400 (cortex_a8_neon_shift_1): Likewise.
13401 (cortex_a8_neon_shift_2): Likewise.
13402 (cortex_a8_neon_shift_3): Likewise.
13403 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13404 (cortex_a8_neon_vsra_vrsra): Likewise.
13405 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13406 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13407 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13408 Likewise.
13409 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13410 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13411 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13412 Likewise.
13413 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13414 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13415 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13416 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13417 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13418 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13419 (cortex_a8_neon_fp_vsum): Likewise.
13420 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13421 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13422 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13423 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13424 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13425 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13426 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13427 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13428 (cortex_a8_neon_bp_simple): Likewise.
13429 (cortex_a8_neon_bp_2cycle): Likewise.
13430 (cortex_a8_neon_bp_3cycle): Likewise.
13431 (cortex_a8_neon_ldr): Likewise.
13432 (cortex_a8_neon_str): Likewise.
13433 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13434 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13435 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13436 (cortex_a8_neon_vld2_4_regs): Likewise.
13437 (cortex_a8_neon_vld3_vld4): Likewise.
13438 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13439 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13440 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13441 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13442 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13443 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13444 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13445 (cortex_a8_neon_mcr): Likewise.
13446 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13447 (cortex_a8_neon_mrc): Likewise.
13448 (cortex_a8_neon_mrrc): Likewise.
13449
13450 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13451
13452 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13453 (fp): New.
13454 * config/aarch64/aarch64-simd.md (neon_type): Remove.
13455 (aarch64_simd_dup<mode>): Add "type" attribute.
13456 (aarch64_dup_lane<mode>): Likewise.
13457 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13458 (*aarch64_simd_mov<mode>): Likewise.
13459 (aarch64_simd_mov_from_<mode>low): Likewise.
13460 (aarch64_simd_mov_from_<mode>high): Likewise.
13461 (orn<mode>3): Likewise.
13462 (bic<mode>3): Likewise.
13463 (add<mode>3): Likewise.
13464 (sub<mode>3): Likewise.
13465 (mul<mode>3): Likewise.
13466 (*aarch64_mul3_elt<mode>): Likewise.
13467 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13468 (*aarch64_mul3_elt_to_128df): Likewise.
13469 (*aarch64_mul3_elt_to_64v2df): Likewise.
13470 (neg<mode>2): Likewise.
13471 (abs<mode>2): Likewise.
13472 (abd<mode>_3): Likewise.
13473 (aba<mode>_3): Likewise.
13474 (fabd<mode>_3): Likewise.
13475 (*fabd_scalar<mode>3): Likewise.
13476 (and<mode>3): Likewise.
13477 (ior<mode>3): Likewise.
13478 (xor<mode>3): Likewise.
13479 (one_cmpl<mode>2): Likewise.
13480 (aarch64_simd_vec_set<mode>): Likewise.
13481 (aarch64_simd_lshr<mode>): Likewise.
13482 (aarch64_simd_ashr<mode>): Likewise.
13483 (aarch64_simd_imm_shl<mode>): Likewise.
13484 (aarch64_simd_reg_sshl<mode): Likewise.
13485 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13486 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13487 (aarch64_simd_vec_setv2di): Likewise.
13488 (aarch64_simd_vec_set<mode>): Likewise.
13489 (aarch64_mla<mode>): Likewise.
13490 (*aarch64_mla_elt<mode>): Likewise.
13491 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13492 (aarch64_mls<mode>): Likewise.
13493 (*aarch64_mls_elt<mode>): Likewise.
13494 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13495 (<su><maxmin><mode>3): Likewise.
13496 (move_lo_quad_<mode>): Likewise.
13497 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13498 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13499 (vec_pack_trunc_<mode>): Likewise.
13500 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13501 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13502 (*aarch64_<su>mlal_lo<mode>): Likewise.
13503 (*aarch64_<su>mlal_hi<mode>): Likewise.
13504 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13505 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13506 (*aarch64_<su>mlal<mode>): Likewise.
13507 (*aarch64_<su>mlsl<mode>): Likewise.
13508 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13509 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13510 (add<mode>3): Likewise.
13511 (sub<mode>3): Likewise.
13512 (mul<mode>3): Likewise.
13513 (div<mode>3): Likewise.
13514 (neg<mode>2): Likewise.
13515 (abs<mode>2): Likewise.
13516 (fma<mode>4): Likewise.
13517 (*aarch64_fma4_elt<mode>): Likewise.
13518 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13519 (*aarch64_fma4_elt_to_128df): Likewise.
13520 (*aarch64_fma4_elt_to_64v2df): Likewise.
13521 (fnma<mode>4): Likewise.
13522 (*aarch64_fnma4_elt<mode>): Likewise.
13523 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13524 (*aarch64_fnma4_elt_to_128df): Likewise.
13525 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13526 (<frint_pattern><mode>2): Likewise.
13527 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13528 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13529 (vec_unpacks_lo_v4sf): Likewise.
13530 (aarch64_float_extend_lo_v2df): Likewise.
13531 (vec_unpacks_hi_v4sf): Likewise.
13532 (aarch64_float_truncate_lo_v2sf): Likewise.
13533 (aarch64_float_truncate_hi_v4sf): Likewise.
13534 (aarch64_vmls<mode>): Likewise.
13535 (<su><maxmin><mode>3): Likewise.
13536 (<maxmin_uns><mode>3): Likewise.
13537 (reduc_<sur>plus_<mode>): Likewise.
13538 (reduc_<sur>plus_v2di): Likewise.
13539 (reduc_<sur>plus_v2si): Likewise.
13540 (reduc_<sur>plus_<mode>): Likewise.
13541 (aarch64_addpv4sf): Likewise.
13542 (clz<mode>2): Likewise.
13543 (reduc_<maxmin_uns>_<mode>): Likewise.
13544 (reduc_<maxmin_uns>_v2di): Likewise.
13545 (reduc_<maxmin_uns>_v2si): Likewise.
13546 (reduc_<maxmin_uns>_<mode>): Likewise.
13547 (reduc_<maxmin_uns>_v4sf): Likewise.
13548 (aarch64_simd_bsl<mode>_internal): Likewise.
13549 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13550 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13551 (aarch64_get_lane<mode>): Likewise.
13552 (*aarch64_combinez<mode>): Likewise.
13553 (aarch64_combine<mode>): Likewise.
13554 (aarch64_simd_combine<mode>): Likewise.
13555 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13556 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13557 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13558 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13559 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13560 (aarch64_<sur>h<addsub><mode>): Likewise.
13561 (aarch64_<sur><addsub>hn<mode>): Likewise.
13562 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13563 (aarch64_pmul<mode>): Likewise.
13564 (aarch64_<su_optab><optab><mode>): Likewise.
13565 (aarch64_<sur>qadd<mode>): Likewise.
13566 (aarch64_sqmovun<mode>): Likewise.
13567 (aarch64_<sur>qmovn<mode>): Likewise.
13568 (aarch64_s<optab><mode>): Likewise.
13569 (aarch64_sq<r>dmulh<mode>): Likewise.
13570 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13571 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13572 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13573 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13574 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13575 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13576 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13577 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13578 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13579 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13580 (aarch64_sqdmull<mode>): Likewise.
13581 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13582 (aarch64_sqdmull_n<mode>): Likewise.
13583 (aarch64_sqdmull2<mode>_internal): Likewise.
13584 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13585 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13586 (aarch64_<sur>shl<mode>): Likewise.
13587 (aarch64_<sur>q<r>shl<mode>
13588 (aarch64_<sur>shll_n<mode>): Likewise.
13589 (aarch64_<sur>shll2_n<mode>): Likewise.
13590 (aarch64_<sur>shr_n<mode>): Likewise.
13591 (aarch64_<sur>sra_n<mode>): Likewise.
13592 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13593 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13594 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13595 (aarch64_cm<optab><mode>): Likewise.
13596 (aarch64_cm<optab>di): Likewise.
13597 (aarch64_cm<optab><mode>): Likewise.
13598 (aarch64_cm<optab>di): Likewise.
13599 (aarch64_cmtst<mode>): Likewise.
13600 (aarch64_cmtstdi): Likewise.
13601 (aarch64_cm<optab><mode>): Likewise.
13602 (*aarch64_fac<optab><mode>): Likewise.
13603 (aarch64_addp<mode>): Likewise.
13604 (aarch64_addpdi): Likewise.
13605 (sqrt<mode>2): Likewise.
13606 (vec_load_lanesoi<mode>): Likewise.
13607 (vec_store_lanesoi<mode>): Likewise.
13608 (vec_load_lanesci<mode>): Likewise.
13609 (vec_store_lanesci<mode>): Likewise.
13610 (vec_load_lanesxi<mode>): Likewise.
13611 (vec_store_lanesxi<mode>): Likewise.
13612 (*aarch64_mov<mode>): Likewise.
13613 (aarch64_ld2<mode>_dreg): Likewise.
13614 (aarch64_ld2<mode>_dreg): Likewise.
13615 (aarch64_ld3<mode>_dreg): Likewise.
13616 (aarch64_ld3<mode>_dreg): Likewise.
13617 (aarch64_ld4<mode>_dreg): Likewise.
13618 (aarch64_ld4<mode>_dreg): Likewise.
13619 (aarch64_tbl1<mode>): Likewise.
13620 (aarch64_tbl2v16qi): Likewise.
13621 (aarch64_combinev16qi): Likewise.
13622 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13623 (aarch64_st2<mode>_dreg): Likewise.
13624 (aarch64_st2<mode>_dreg): Likewise.
13625 (aarch64_st3<mode>_dreg): Likewise.
13626 (aarch64_st3<mode>_dreg): Likewise.
13627 (aarch64_st4<mode>_dreg): Likewise.
13628 (aarch64_st4<mode>_dreg): Likewise.
13629 (*aarch64_simd_ld1r<mode>): Likewise.
13630 (aarch64_frecpe<mode>): Likewise.
13631 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13632 (aarch64_frecps<mode>): Likewise.
13633
13634 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13635
13636 * config/arm/iterators.md (V_elem_ch): New.
13637 (q): Likewise.
13638 (VQH_type): Likewise.
13639 * config/arm/arm.md (is_neon_type): New.
13640 (conds): Use is_neon_type.
13641 (anddi3_insn): Update type attribute.
13642 (xordi3_insn): Likewise.
13643 (one_cmpldi2): Likewise.
13644 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13645 * config/arm/neon.md (neon_mov): Update type attribute.
13646 (*movmisalign<mode>_neon_store): Likewise.
13647 (*movmisalign<mode>_neon_load): Likewise.
13648 (vec_set<mode>_internal): Likewise.
13649 (vec_set<mode>_internal): Likewise.
13650 (vec_setv2di_internal): Likewise.
13651 (vec_extract<mode>): Likewise.
13652 (vec_extract<mode>): Likewise.
13653 (vec_extractv2di): Likewise.
13654 (*add<mode>3_neon): Likewise.
13655 (adddi3_neon): Likewise.
13656 (*sub<mode>3_neon): Likewise.
13657 (subdi3_neon): Likewise.
13658 (fma<VCVTF:mode>4): Likewise.
13659 (fma<VCVTF:mode>4_intrinsic): Likewise.
13660 (*fmsub<VCVTF:mode>4): Likewise.
13661 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13662 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13663 (ior<mode>3): Likewise.
13664 (and<mode>3): Likewise.
13665 (orn<mode>3_neon): Likewise.
13666 (orndi3_neon): Likewise.
13667 (bic<mode>3_neon): Likewise.
13668 (bicdi3_neon): Likewise.
13669 (xor<mode>3): Likewise.
13670 (one_cmpl<mode>2): Likewise.
13671 (abs<mode>2): Likewise.
13672 (neg<mode>2): Likewise.
13673 (negdi2_neon): Likewise.
13674 (*umin<mode>3_neon): Likewise.
13675 (*umax<mode>3_neon): Likewise.
13676 (*smin<mode>3_neon): Likewise.
13677 (*smax<mode>3_neon): Likewise.
13678 (vashl<mode>3): Likewise.
13679 (vashr<mode>3_imm): Likewise.
13680 (vlshr<mode>3_imm): Likewise.
13681 (ashl<mode>3_signed): Likewise.
13682 (ashl<mode>3_unsigned): Likewise.
13683 (neon_load_count): Likewise.
13684 (ashldi3_neon_noclobber): Likewise.
13685 (ashldi3_neon): Likewise.
13686 (signed_shift_di3_neon): Likewise.
13687 (unsigned_shift_di3_neon): Likewise.
13688 (ashrdi3_neon_imm_noclobber): Likewise.
13689 (lshrdi3_neon_imm_noclobber): Likewise.
13690 (<shift>di3_neon): Likewise.
13691 (widen_ssum<mode>3): Likewise.
13692 (widen_usum<mode>3): Likewise.
13693 (quad_halves_<code>v4si): Likewise.
13694 (quad_halves_<code>v4sf): Likewise.
13695 (quad_halves_<code>v8hi): Likewise.
13696 (quad_halves_<code>v16qi): Likewise.
13697 (reduc_splus_v2di): Likewise.
13698 (neon_vpadd_internal<mode>): Likewise.
13699 (neon_vpsmin<mode>): Likewise.
13700 (neon_vpsmax<mode>): Likewise.
13701 (neon_vpumin<mode>): Likewise.
13702 (neon_vpumax<mode>): Likewise.
13703 (*ss_add<mode>_neon): Likewise.
13704 (*us_add<mode>_neon): Likewise.
13705 (*ss_sub<mode>_neon): Likewise.
13706 (*us_sub<mode>_neon): Likewise.
13707 (neon_vadd<mode>_unspec): Likewise.
13708 (neon_vaddl<mode>): Likewise.
13709 (neon_vaddw<mode>): Likewise.
13710 (neon_vhadd<mode>): Likewise.
13711 (neon_vqadd<mode>): Likewise.
13712 (neon_vaddhn<mode>): Likewise.
13713 (neon_vmul<mode>): Likewise.
13714 (neon_vfms<VCVTF:mode>): Likewise.
13715 (neon_vmlal<mode>): Likewise.
13716 (neon_vmls<mode>): Likewise.
13717 (neon_vmlsl<mode>): Likewise.
13718 (neon_vqdmulh<mode>): Likewise.
13719 (neon_vqdmlal<mode>): Likewise.
13720 (neon_vqdmlsl<mode>): Likewise.
13721 (neon_vmull<mode>): Likewise.
13722 (neon_vqdmull<mode>): Likewise.
13723 (neon_vsub<mode>_unspec): Likewise.
13724 (neon_vsubl<mode>): Likewise.
13725 (neon_vsubw<mode>): Likewise.
13726 (neon_vqsub<mode>): Likewise.
13727 (neon_vhsub<mode>): Likewise.
13728 (neon_vsubhn<mode>): Likewise.
13729 (neon_vceq<mode>): Likewise.
13730 (neon_vcge<mode>): Likewise.
13731 (neon_vcgeu<mode>): Likewise.
13732 (neon_vcgt<mode>): Likewise.
13733 (neon_vcgtu<mode>): Likewise.
13734 (neon_vcle<mode>): Likewise.
13735 (neon_vclt<mode>): Likewise.
13736 (neon_vcage<mode>): Likewise.
13737 (neon_vcagt<mode>): Likewise.
13738 (neon_vtst<mode>): Likewise.
13739 (neon_vabd<mode>): Likewise.
13740 (neon_vabdl<mode>): Likewise.
13741 (neon_vaba<mode>): Likewise.
13742 (neon_vabal<mode>): Likewise.
13743 (neon_vmax<mode>): Likewise.
13744 (neon_vmin<mode>): Likewise.
13745 (neon_vpaddl<mode>): Likewise.
13746 (neon_vpadal<mode>): Likewise.
13747 (neon_vpmax<mode>): Likewise.
13748 (neon_vpmin<mode>): Likewise.
13749 (neon_vrecps<mode>): Likewise.
13750 (neon_vrsqrts<mode>): Likewise.
13751 (neon_vqabs<mode>): Likewise.
13752 (neon_vqneg<mode>): Likewise.
13753 (neon_vcls<mode>): Likewise.
13754 (clz<mode>2): Likewise.
13755 (popcount<mode>2): Likewise.
13756 (neon_vrecpe<mode>): Likewise.
13757 (neon_vrsqrte<mode>): Likewise.
13758 (neon_vget_lane<mode>_sext_internal): Likewise.
13759 (neon_vget_lane<mode>_zext_internal): Likewise.
13760 (neon_vdup_n<mode>): Likewise.
13761 (neon_vdup_n<mode>): Likewise.
13762 (neon_vdup_nv2di): Likewise.
13763 (neon_vdup_lane<mode>_interal): Likewise.
13764 (*neon_vswp<mode>): Likewise.
13765 (neon_vcombine<mode>): Likewise.
13766 (float<mode><V_cvtto>2): Likewise.
13767 (floatuns<mode><V_cvtto>2): Likewise.
13768 (fix_trunc<mode><V_cvtto>2): Likewise.
13769 (fixuns_trunc<mode><V_cvtto>2
13770 (neon_vcvt<mode>): Likewise.
13771 (neon_vcvt<mode>): Likewise.
13772 (neon_vcvtv4sfv4hf): Likewise.
13773 (neon_vcvtv4hfv4sf): Likewise.
13774 (neon_vcvt_n<mode>): Likewise.
13775 (neon_vcvt_n<mode>): Likewise.
13776 (neon_vmovn<mode>): Likewise.
13777 (neon_vqmovn<mode>): Likewise.
13778 (neon_vqmovun<mode>): Likewise.
13779 (neon_vmovl<mode>): Likewise.
13780 (neon_vmul_lane<mode>): Likewise.
13781 (neon_vmul_lane<mode>): Likewise.
13782 (neon_vmull_lane<mode>): Likewise.
13783 (neon_vqdmull_lane<mode>): Likewise.
13784 (neon_vqdmulh_lane<mode>): Likewise.
13785 (neon_vqdmulh_lane<mode>): Likewise.
13786 (neon_vmla_lane<mode>): Likewise.
13787 (neon_vmla_lane<mode>): Likewise.
13788 (neon_vmlal_lane<mode>): Likewise.
13789 (neon_vqdmlal_lane<mode>): Likewise.
13790 (neon_vmls_lane<mode>): Likewise.
13791 (neon_vmls_lane<mode>): Likewise.
13792 (neon_vmlsl_lane<mode>): Likewise.
13793 (neon_vqdmlsl_lane<mode>): Likewise.
13794 (neon_vext<mode>): Likewise.
13795 (neon_vrev64<mode>): Likewise.
13796 (neon_vrev32<mode>): Likewise.
13797 (neon_vrev16<mode>): Likewise.
13798 (neon_vbsl<mode>_internal): Likewise.
13799 (neon_vshl<mode>): Likewise.
13800 (neon_vqshl<mode>): Likewise.
13801 (neon_vshr_n<mode>): Likewise.
13802 (neon_vshrn_n<mode>): Likewise.
13803 (neon_vqshrn_n<mode>): Likewise.
13804 (neon_vqshrun_n<mode>): Likewise.
13805 (neon_vshl_n<mode>): Likewise.
13806 (neon_vqshl_n<mode>): Likewise.
13807 (neon_vqshlu_n<mode>): Likewise.
13808 (neon_vshll_n<mode>): Likewise.
13809 (neon_vsra_n<mode>): Likewise.
13810 (neon_vsri_n<mode>): Likewise.
13811 (neon_vsli_n<mode>): Likewise.
13812 (neon_vtbl1v8qi): Likewise.
13813 (neon_vtbl2v8qi): Likewise.
13814 (neon_vtbl3v8qi): Likewise.
13815 (neon_vtbl4v8qi): Likewise.
13816 (neon_vtbl1v16qi): Likewise.
13817 (neon_vtbl2v16qi): Likewise.
13818 (neon_vcombinev16qi): Likewise.
13819 (neon_vtbx1v8qi): Likewise.
13820 (neon_vtbx2v8qi): Likewise.
13821 (neon_vtbx3v8qi): Likewise.
13822 (neon_vtbx4v8qi): Likewise.
13823 (*neon_vtrn<mode>_insn): Likewise.
13824 (*neon_vzip<mode>_insn): Likewise.
13825 (*neon_vuzp<mode>_insn): Likewise.
13826 (neon_vld1<mode>): Likewise.
13827 (neon_vld1_lane<mode>): Likewise.
13828 (neon_vld1_lane<mode>): Likewise.
13829 (neon_vld1_dup<mode>): Likewise.
13830 (neon_vld1_dup<mode>): Likewise.
13831 (neon_vld1_dupv2di): Likewise.
13832 (neon_vst1<mode>): Likewise.
13833 (neon_vst1_lane<mode>): Likewise.
13834 (neon_vst1_lane<mode>): Likewise.
13835 (neon_vld2<mode>): Likewise.
13836 (neon_vld2<mode>): Likewise.
13837 (neon_vld2_lane<mode>): Likewise.
13838 (neon_vld2_lane<mode>): Likewise.
13839 (neon_vld2_dup<mode>): Likewise.
13840 (neon_vst2<mode>): Likewise.
13841 (neon_vst2<mode>): Likewise.
13842 (neon_vst2_lane<mode>): Likewise.
13843 (neon_vst2_lane<mode>): Likewise.
13844 (neon_vld3<mode>): Likewise.
13845 (neon_vld3qa<mode>): Likewise.
13846 (neon_vld3qb<mode>): Likewise.
13847 (neon_vld3_lane<mode>): Likewise.
13848 (neon_vld3_lane<mode>): Likewise.
13849 (neon_vld3_dup<mode>): Likewise.
13850 (neon_vst3<mode>): Likewise.
13851 (neon_vst3qa<mode>): Likewise.
13852 (neon_vst3qb<mode>): Likewise.
13853 (neon_vst3_lane<mode>): Likewise.
13854 (neon_vst3_lane<mode>): Likewise.
13855 (neon_vld4<mode>): Likewise.
13856 (neon_vld4qa<mode>): Likewise.
13857 (neon_vld4qb<mode>): Likewise.
13858 (neon_vld4_lane<mode>): Likewise.
13859 (neon_vld4_lane<mode>): Likewise.
13860 (neon_vld4_dup<mode>): Likewise.
13861 (neon_vst4<mode>): Likewise.
13862 (neon_vst4qa<mode>): Likewise.
13863 (neon_vst4qb<mode>): Likewise.
13864 (neon_vst4_lane<mode>): Likewise.
13865 (neon_vst4_lane<mode>): Likewise.
13866 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13867 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13868 (neon_vec_<US>mult_lo_<mode>): Likewise.
13869 (neon_vec_<US>mult_hi_<mode>): Likewise.
13870 (neon_vec_<US>shiftl_<mode>): Likewise.
13871 (neon_unpack<US>_<mode>): Likewise.
13872 (neon_vec_<US>mult_<mode>): Likewise.
13873 (vec_pack_trunc_<mode>): Likewise.
13874 (neon_vec_pack_trunc_<mode>): Likewise.
13875 (neon_vabd<mode>_2): Likewise.
13876 (neon_vabd<mode>_3): Likewise.
13877
13878 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13879
13880 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13881 (load_pair): Update type attribute.
13882 (store_pair): Update type attribute.
13883 * config/aarch64/iterators.md (q): New.
13884
13885 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13886
13887 * config/arm/types.md: Add new types for Neon insns.
13888
13889 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13891 Sergey Lega <sergey.s.lega@intel.com>
13892 Anna Tikhonova <anna.tikhonova@intel.com>
13893 Ilya Tocar <ilya.tocar@intel.com>
13894 Andrey Turetskiy <andrey.turetskiy@intel.com>
13895 Ilya Verbin <ilya.verbin@intel.com>
13896 Kirill Yukhin <kirill.yukhin@intel.com>
13897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13898
13899 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13900 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13901 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13902 (rcp14<mode>): New.
13903 (srcp14<mode>): Ditto.
13904 (rsqrt14<mode>): Ditto.
13905 (rsqrt14<mode>): Ditto.
13906 (avx512f_vmscalef<mode>): Ditto.
13907 (avx512f_scalef<mode>): Ditto.
13908 (avx512f_getexp<mode>): Ditto.
13909 (avx512f_sgetexp<mode>): Ditto.
13910 (avx512f_fixupimm<mode>): Ditto.
13911 (avx512f_sfixupimm<mode>): Ditto.
13912 (avx512f_rndscale<mode>): Ditto.
13913 (*avx512er_exp2<mode>): Ditto.
13914 (*avx512er_rcp28<mode>): Ditto.
13915 (avx512er_rsqrt28<mode>): Ditto.
13916 (avx512f_getmant<mode>): Ditto.
13917 (avx512f_getmant<mode>): Ditto.
13918 (avx512f_rndscale<mode>): Fix formatting.
13919
13920 2013-10-15 Martin Jambor <mjambor@suse.cz>
13921
13922 * ipa-utils.h (ipa_edge_within_scc): Declare.
13923 * ipa-cp.c (edge_within_scc): Moved...
13924 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13925
13926 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13928 Sergey Lega <sergey.s.lega@intel.com>
13929 Anna Tikhonova <anna.tikhonova@intel.com>
13930 Ilya Tocar <ilya.tocar@intel.com>
13931 Andrey Turetskiy <andrey.turetskiy@intel.com>
13932 Ilya Verbin <ilya.verbin@intel.com>
13933 Kirill Yukhin <kirill.yukhin@intel.com>
13934 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13935
13936 * config/i386/predicates.md (const_8_to_15_operand): New.
13937 (const_16_to_31_operand): Ditto.
13938 * config/i386/sse.md (V8FI): New.
13939 (V16FI): Ditto.
13940 (reduc_splus_v8df): Ditto.
13941 (reduc_splus_v16sf): Ditto.
13942 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13943 (vec_extract_hi_<mode>): Ditto.
13944 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13945 (vec_set_lo_<mode>): Ditto.
13946 (vec_set_hi_<mode>): Ditto.
13947 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13948 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13949 (avx512f_pshufd_1): Ditto.
13950 (avx512f_broadcast<mode>): Ditto.
13951 (avx512f_broadcast<mode>): Ditto.
13952 (define_split): Split vec_extract_lo into move.
13953 (ssequartermode): Ditto.
13954 (ssedoublemode): Extened with wider modes.
13955 (vec_extract_lo_<mode>): Ditto.
13956
13957 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13958 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13959 Sergey Lega <sergey.s.lega@intel.com>
13960 Anna Tikhonova <anna.tikhonova@intel.com>
13961 Ilya Tocar <ilya.tocar@intel.com>
13962 Andrey Turetskiy <andrey.turetskiy@intel.com>
13963 Ilya Verbin <ilya.verbin@intel.com>
13964 Kirill Yukhin <kirill.yukhin@intel.com>
13965 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13966
13967 * config/i386/predicates.md (register_or_constm1_operand): New.
13968 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13969 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13970 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13971 UNSPEC_SCATTER_PREFETCH
13972 (VI48_512): New.
13973 (avx512f_ucmp<mode>3): Ditto.
13974 (avx512f_vternlog<mode>): Ditto.
13975 (avx512f_align<mode>): Ditto.
13976 (<shift_insn><mode>3): Ditto.
13977 (avx512f_<rotate>v<mode>): Ditto.
13978 (avx512f_<rotate><mode>): Ditto.
13979 (avx512f_eq<mode>3): Ditto.
13980 (avx512f_eq<mode>3_1): Ditto.
13981 (avx512f_gt<mode>3): Ditto.
13982 (avx512f_testm<mode>3): Ditto.
13983 (avx512f_testnm<mode>3): Ditto.
13984 (avx512pf_gatherpf<mode>): Ditto.
13985 (*avx512pf_gatherpf<mode>_mask): Ditto.
13986 (*avx512pf_gatherpf<mode>): Ditto.
13987 (avx512pf_scatterpf<mode>): Ditto.
13988 (*avx512pf_scatterpf<mode>_mask): Ditto.
13989 (*avx512pf_scatterpf<mode>): Ditto.
13990 (avx512f_vec_dup_gpr<mode>): Ditto.
13991 (clz<mode>2): Ditto.
13992 (conflict<mode>): Ditto.
13993 (REDUC_SMINMAX_MODE): Extened with wider modes.
13994 (reduc_<code>_<mode>): Ditto.
13995 (vlshr<mode>3): Ditto.
13996 (vashl<mode>3): Ditto.
13997
13998 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13999 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14000 Sergey Lega <sergey.s.lega@intel.com>
14001 Anna Tikhonova <anna.tikhonova@intel.com>
14002 Ilya Tocar <ilya.tocar@intel.com>
14003 Andrey Turetskiy <andrey.turetskiy@intel.com>
14004 Ilya Verbin <ilya.verbin@intel.com>
14005 Kirill Yukhin <kirill.yukhin@intel.com>
14006 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14007
14008 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14009 UNSPEC_SCATTER.
14010 (VI48F_512): New.
14011 (avx512fmaskmode): Ditto.
14012 (bcstscalarsuff): Ditto.
14013 (avx512f_blendm<mode>): Ditto.
14014 (cmp_imm_predicate): Ditto.
14015 (avx512f_cmp<mode>3): Ditto.
14016 (avx512f_vec_dup<mode>): Ditto.
14017 (avx512f_vec_dup_mem<mode>): Ditto.
14018 (avx512f_vpermi2var<mode>3): Ditto.
14019 (avx512f_vpermt2var<mode>3): Ditto.
14020 (vec_init<mode>): Ditto.
14021 (avx512f_gathersi<mode>): Ditto.
14022 (*avx512f_gathersi<mode>): Ditto.
14023 (*avx512f_gathersi<mode>_2): Ditto.
14024 (avx512f_gatherdi<mode>): Ditto.
14025 (*avx512f_gatherdi<mode>): Ditto.
14026 (*avx512f_gatherdi<mode>_2): Ditto.
14027 (avx512f_scattersi<mode>): Ditto.
14028 (*avx512f_scattersi<mode>): Ditto.
14029 (avx512f_scatterdi<mode>): Ditto.
14030 (*avx512f_scatterdi<mode>): Ditto.
14031 (sseintprefix): Extened with wider modes.
14032 (VEC_GATHER_IDXSI): Ditto.
14033 (VEC_GATHER_IDXDI): Ditto.
14034 (VEC_GATHER_SRCDI): Ditto.
14035
14036 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14037 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14038
14039 * config/arm/t-aprofile: New file.
14040 * config.gcc: Handle --with-multilib-list option.
14041
14042 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
14043
14044 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14045 the input for r2.
14046
14047 2013-10-15 Richard Biener <rguenther@suse.de>
14048
14049 * tree-loop-distribution.c (build_empty_rdg): Inline into
14050 single user.
14051 (rdg_flag_vertex): Inline into single user.
14052 (rdg_flag_vertex_and_dependent): Likewise.
14053 (build_rdg_partition_for_vertex): Remove processed bitmap.
14054 (rdg_build_partitions): Simplify.
14055
14056 2013-10-15 Richard Biener <rguenther@suse.de>
14057
14058 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14059 Restructure forwarding through conversions and copies to
14060 avoid performing copy-propagation the wrong way. Adjust
14061 recursion invocations.
14062 (forward_propagate_addr_expr): Add argument stating if we
14063 are recursing from a single-use.
14064 (ssa_forward_propagate_and_combine): Adjust.
14065
14066 2013-10-14 David Malcolm <dmalcolm@redhat.com>
14067
14068 * dumpfile.h (gcc::dump_manager): New class, to hold state
14069 relating to dumpfile management.
14070 (get_dump_file_name): Remove in favor of method of dump_manager.
14071 (dump_initialized_p): Likewise.
14072 (dump_start): Likewise.
14073 (dump_finish): Likewise.
14074 (dump_switch_p): Likewise.
14075 (dump_register): Likewise.
14076 (get_dump_file_info): Likewise.
14077 * context.c (gcc::context::context): Construct the dump_manager
14078 instance.
14079 * context.h (gcc::context::get_dumps): New.
14080 (gcc::context::m_dumps): New.
14081 * coverage.c (coverage_init): Port to dump_manager API.
14082 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14083 (extra_dump_files_in_use): Likewise.
14084 (extra_dump_files_alloced): Likewise.
14085 (gcc::dump_manager::dump_manager): New.
14086 (dump_register): Convert to...
14087 (gcc::dump_manager::dump_register): ...method, replacing
14088 function-static next_dump with m_next_dump field.
14089 (get_dump_file_info): Convert to...
14090 (gcc::dump_manager::get_dump_file_info): ...method.
14091 (get_dump_file_name): Convert to...
14092 (gcc::dump_manager::get_dump_file_name): ...method.
14093 (dump_start): Convert to...
14094 (gcc::dump_manager::dump_start): ...method.
14095 (dump_finish): Convert to...
14096 (gcc::dump_manager::dump_finish): ...method.
14097 (dump_begin): Replace body with...
14098 (gcc::dump_manager::dump_begin): ...new method.
14099 (dump_phase_enabled_p): Convert to...
14100 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14101 (dump_phase_enabled_p): Convert to...
14102 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14103 (dump_initialized_p): Convert to...
14104 (gcc::dump_manager::dump_initialized_p): ...method.
14105 (dump_flag_name): Replace body with...
14106 (gcc::dump_manager::dump_flag_name): ...new method.
14107 (dump_enable_all): Convert to...
14108 (gcc::dump_manager::dump_enable_all): ...new method.
14109 (opt_info_enable_passes): Convert to...
14110 (gcc::dump_manager::opt_info_enable_passes): ...new method.
14111 (dump_switch_p_1): Convert to...
14112 (gcc::dump_manager::dump_switch_p_1): ...new method.
14113 (dump_switch_p): Convert to...
14114 (gcc::dump_manager::dump_switch_p): ...new method.
14115 (opt_info_switch_p): Port to dump_manager API.
14116 (enable_rtl_dump_file): Likewise.
14117 * opts-global.c (handle_common_deferred_options): Port to new
14118 dump_manager API.
14119 * passes.c (pass_manager::finish_optimization_passes): Likewise.
14120 (pass_manager::register_one_dump_file): Likewise.
14121 (pass_manager::register_pass): Likewise.
14122 (pass_init_dump_file): Likewise.
14123 (pass_fini_dump_file): Likewise.
14124 * statistics.c (statistics_early_init): Likewise.
14125
14126 2013-10-14 Richard Biener <rguenther@suse.de>
14127
14128 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14129 iterative_hash_canonical_type, gimple_canonical_type_hash,
14130 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14131 gimple_register_canonical_type, print_gimple_types_stats,
14132 free_gimple_type_tables): Move to lto/lto.c
14133 (gt-gimple.h): Do not include.
14134 * gimple.h (gimple_register_canonical_type,
14135 print_gimple_types_stats, free_gimple_type_tables): Remove.
14136 * Makefile.in (GTFILES): Remove gimple.c.
14137
14138 2013-10-14 Travis Snoozy <quandary@remstate.com>
14139
14140 PR target/58716
14141 * config/msp430/msp430.c (msp430_option_override): Correct thinko
14142 scanning for msp430x targets.
14143
14144 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
14145
14146 PR bootstrap/58509
14147 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14148 (registers_ok_for_ldd_peep): Move around.
14149 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14150 * config/sparc/sparc.md (widening peepholes): Use it.
14151
14152 2013-10-14 Richard Biener <rguenther@suse.de>
14153
14154 PR middle-end/58712
14155 PR middle-end/55358
14156 * gimple.c (iterative_hash_canonical_type): Make sure to
14157 record the hash into the correct hashtable slot.
14158
14159 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
14160
14161 PR rtl-optimization/58662
14162 * combine.c (try_combine): Take into account death nodes on I2 when
14163 splitting a PARALLEL of two independent SETs. Fix dump message.
14164
14165 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
14166
14167 PR target/51244
14168 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14169 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14170 extra_objs.
14171 * config/sh/t-sh (sh_treg_combine.o): New entry.
14172 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14173 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14174 (register_sh_passes): New function. Register sh_treg_combine pass.
14175 (sh_option_override): Invoke it.
14176 (sh_canonicalize_comparison): Handle op0_preserve_value.
14177 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14178 opportunities. Canonicalize branch condition.
14179 (nott): Allow only if pseudos can be created for non-SH2A.
14180
14181 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
14182
14183 PR target/58690
14184 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14185 (ix86_expand_movmem): Replace copy_addr_to_reg with
14186 ix86_copy_addr_to_reg.
14187 (ix86_expand_setmem): Likewise.
14188
14189 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
14190
14191 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14192 provided by ix86_fp_compare_mode instead of CCFPUmode.
14193
14194 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
14195
14196 * config/aarch64/arm_neon.h
14197 (vtbx<1,3>_<psu>8): Fix register constriants.
14198
14199 2013-10-11 Jeff Law <law@redhat.com>
14200
14201 PR tree-optimization/58640
14202 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14203 threading paths that cross over two loop entry points.
14204
14205 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14206
14207 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14208 handle vector float as well.
14209 (*vsx_le_perm_load_v4si): Likewise.
14210 (*vsx_le_perm_store_v2di): Likewise.
14211 (*vsx_le_perm_store_v4si): Likewise.
14212
14213 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14214
14215 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14216 directly to circumvent subtract from splat{31} workaround.
14217 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14218 prototype.
14219 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14220 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14221 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14222 (altivec_vperm_<mode>): Convert to define_insn_and_split to
14223 separate big and little endian logic.
14224 (*altivec_vperm_<mode>_internal): New define_insn.
14225 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14226 separate big and little endian logic.
14227 (*altivec_vperm_<mode>_uns_internal): New define_insn.
14228 (vec_permv16qi): Add little endian logic.
14229
14230 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
14231
14232 * doc/extend.texi (returns_nonnull): Remove arguments.
14233
14234 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14235 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14236 Sergey Lega <sergey.s.lega@intel.com>
14237 Anna Tikhonova <anna.tikhonova@intel.com>
14238 Ilya Tocar <ilya.tocar@intel.com>
14239 Andrey Turetskiy <andrey.turetskiy@intel.com>
14240 Ilya Verbin <ilya.verbin@intel.com>
14241 Kirill Yukhin <kirill.yukhin@intel.com>
14242 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14243
14244 * config/i386/sse.md (VI48F_256_512): New.
14245 (avx2_permvar<mode>): Change to ...
14246 (<avx2_avx512f>_permvar<mode>): This.
14247
14248 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14249 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14250 Sergey Lega <sergey.s.lega@intel.com>
14251 Anna Tikhonova <anna.tikhonova@intel.com>
14252 Ilya Tocar <ilya.tocar@intel.com>
14253 Andrey Turetskiy <andrey.turetskiy@intel.com>
14254 Ilya Verbin <ilya.verbin@intel.com>
14255 Kirill Yukhin <kirill.yukhin@intel.com>
14256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14257
14258 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14259 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14260 * config/i386/sse.md (VI4_AVX): New.
14261 (sf2simodelower): Ditto.
14262 (sse2_cvtps2dq): Change to ...
14263 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
14264
14265 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14266 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14267 Sergey Lega <sergey.s.lega@intel.com>
14268 Anna Tikhonova <anna.tikhonova@intel.com>
14269 Ilya Tocar <ilya.tocar@intel.com>
14270 Andrey Turetskiy <andrey.turetskiy@intel.com>
14271 Ilya Verbin <ilya.verbin@intel.com>
14272 Kirill Yukhin <kirill.yukhin@intel.com>
14273 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14274
14275 * config/i386/sse.md (V_512): New.
14276 (VI_512): Ditto.
14277 (vcond<V_512:mode><VF_512:mode>): Ditto.
14278 (vcond<V_512:mode><VI_512:mode>): Ditto.
14279 (vcondu<V_512:mode><VI_512:mode>): Ditto.
14280
14281 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14282 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14283 Sergey Lega <sergey.s.lega@intel.com>
14284 Anna Tikhonova <anna.tikhonova@intel.com>
14285 Ilya Tocar <ilya.tocar@intel.com>
14286 Andrey Turetskiy <andrey.turetskiy@intel.com>
14287 Ilya Verbin <ilya.verbin@intel.com>
14288 Kirill Yukhin <kirill.yukhin@intel.com>
14289 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14290
14291 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14292 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14293 (FMAMODE): Ditto.
14294 (fma<mode>4): Removed condition.
14295 (fms<mode>4): Ditto.
14296 (fnma<mode>4): Ditto.
14297 (fnms<mode>4): Ditto.
14298 (fma4i_fmadd_<mode>): Ditto.
14299 (*fma_fmadd_<mode>): Ditto.
14300 (*fma_fmsub_<mode>): Ditto.
14301 (*fma_fnmadd_<mode>): Ditto.
14302 (*fma_fnmsub_<mode>): Ditto.
14303 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14304 (*fma_fmaddsub_<mode>): Ditto.
14305 (*fma_fmsubadd_<mode>): Ditto.
14306 (*fmai_fmadd_<mode>): Ditto.
14307 (*fmai_fmsub_<mode>): Ditto.
14308 (*fmai_fnmadd_<mode>): Ditto.
14309 (*fmai_fnmsub_<mode>): Ditto.
14310
14311 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14313 Sergey Lega <sergey.s.lega@intel.com>
14314 Anna Tikhonova <anna.tikhonova@intel.com>
14315 Ilya Tocar <ilya.tocar@intel.com>
14316 Andrey Turetskiy <andrey.turetskiy@intel.com>
14317 Ilya Verbin <ilya.verbin@intel.com>
14318 Kirill Yukhin <kirill.yukhin@intel.com>
14319 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14320
14321 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14322 (VI124_256): Changed to ...
14323 (VI124_256_48_512): This.
14324 (ssepackmode): Extended with wider modes.
14325 (<code><mode>3): Changed iterator.
14326 (*avx2_<code><mode>3): Ditto.
14327 (vec_pack_trunc_<mode>): Ditto.
14328
14329 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14331 Sergey Lega <sergey.s.lega@intel.com>
14332 Anna Tikhonova <anna.tikhonova@intel.com>
14333 Ilya Tocar <ilya.tocar@intel.com>
14334 Andrey Turetskiy <andrey.turetskiy@intel.com>
14335 Ilya Verbin <ilya.verbin@intel.com>
14336 Kirill Yukhin <kirill.yukhin@intel.com>
14337 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14338
14339 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14340 (VI8F_256_512): Ditto.
14341 (abs<mode>2): Changed iterator.
14342 (avx2_perm<mode>): Changed to ...
14343 (<avx2_avx512f>_perm<mode>): This.
14344 (avx2_perm<mode>_1): Changed to ...
14345 (<avx2_avx512f>_perm<mode>_1): This.
14346
14347 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14348 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14349 Sergey Lega <sergey.s.lega@intel.com>
14350 Anna Tikhonova <anna.tikhonova@intel.com>
14351 Ilya Tocar <ilya.tocar@intel.com>
14352 Andrey Turetskiy <andrey.turetskiy@intel.com>
14353 Ilya Verbin <ilya.verbin@intel.com>
14354 Kirill Yukhin <kirill.yukhin@intel.com>
14355 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14356
14357 * config/i386/sse.md (VI48_AVX512F): New.
14358 (VI48_AVX2): Changed to ...
14359 (VI48_AVX2_48_AVX512F): This.
14360 (avx2_ashrv<mode>): Changed to ...
14361 (<avx2_avx512f>_ashrv<mode>): This.
14362 (avx2_<shift_insn>v<mode>): Changed to ...
14363 (<avx2_avx512f>_<shift_insn>v<mode>): This.
14364
14365 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14366 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14367 Sergey Lega <sergey.s.lega@intel.com>
14368 Anna Tikhonova <anna.tikhonova@intel.com>
14369 Ilya Tocar <ilya.tocar@intel.com>
14370 Andrey Turetskiy <andrey.turetskiy@intel.com>
14371 Ilya Verbin <ilya.verbin@intel.com>
14372 Kirill Yukhin <kirill.yukhin@intel.com>
14373 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14374
14375 * config/i386/sse.md (VI4_AVX512F): New.
14376 (VI8_AVX2_AVX512F): Ditto.
14377 (mul<mode>3): Extended with wider modes.
14378 (*<sse4_1_avx2>_mul<mode>3): Ditto.
14379 (mul<mode>3): Ditto.
14380 (vec_widen_<s>mult_odd_<mode>): Ditto.
14381
14382 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14383 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14384 Sergey Lega <sergey.s.lega@intel.com>
14385 Anna Tikhonova <anna.tikhonova@intel.com>
14386 Ilya Tocar <ilya.tocar@intel.com>
14387 Andrey Turetskiy <andrey.turetskiy@intel.com>
14388 Ilya Verbin <ilya.verbin@intel.com>
14389 Kirill Yukhin <kirill.yukhin@intel.com>
14390 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14391
14392 * config/i386/sse.md (VI2_AVX512F): New.
14393 (VI124_AVX512F): Ditto.
14394 (sseunpackmode): Extended with wider modes.
14395 (sseunpackfltmode): Ditto.
14396 (vec_unpacks_float_hi_<mode>): Ditto.
14397 (vec_unpacks_float_lo_<mode>): Ditto.
14398 (vec_unpacku_float_hi_<mode>): Ditto.
14399 (vec_unpacku_float_lo_<mode>): Ditto.
14400 (vec_unpacks_lo_<mode>): Ditto.
14401 (vec_unpacks_hi_<mode>): Ditto.
14402 (vec_unpacku_lo_<mode>): Ditto.
14403 (vec_unpacku_hi_<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/i386.md (multdiv): New.
14416 (multdiv_mnemonic): Ditto.
14417 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14418 (<sse>_vm<multdiv_mnemonic><mode>3): This.
14419 (<sse>_vmdiv<mode>3): Removed.
14420
14421 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14422 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14423 Sergey Lega <sergey.s.lega@intel.com>
14424 Anna Tikhonova <anna.tikhonova@intel.com>
14425 Ilya Tocar <ilya.tocar@intel.com>
14426 Andrey Turetskiy <andrey.turetskiy@intel.com>
14427 Ilya Verbin <ilya.verbin@intel.com>
14428 Kirill Yukhin <kirill.yukhin@intel.com>
14429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14430
14431 * config/i386/sse.md (V): Extended with wider modes.
14432 (VF2): Ditto.
14433 (ssehalfvecmode): Ditto.
14434 (i128): Ditto.
14435 (ssepackfltmode): Ditto.
14436 (avx_vec_concat<mode>): Ditto.
14437 (V_256_512): New iterator.
14438 (VF2_512_256): Ditto.
14439 (si2dfmode): New attribute.
14440 (si2dfmodelower): Ditto.
14441 (sf2dfmode): Ditto.
14442 (concat_tg_mode): Ditto.
14443 (floatv4siv4df2): Changed to ...
14444 (float<si2dfmodelower><mode>2): This.
14445 (avx_cvtps2pd256): Changed to ...
14446 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14447 (vec_pack_trunc_v4df): Changed to ...
14448 (vec_pack_trunc_<mode>): This.
14449 (avx_vpermil<mode>): Changed to ...
14450 (<sse2_avx_avx512f>_vpermil<mode>): This.
14451 (<fixsuffix>fix_truncv8dfv8si2): New.
14452 (vec_pack_sfix_trunc_v8df): Ditto.
14453 (avx512f_rndscale<mode>): Ditto.
14454 (avx512f_roundpd512): Ditto.
14455 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14456
14457 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14458 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14459 Sergey Lega <sergey.s.lega@intel.com>
14460 Anna Tikhonova <anna.tikhonova@intel.com>
14461 Ilya Tocar <ilya.tocar@intel.com>
14462 Andrey Turetskiy <andrey.turetskiy@intel.com>
14463 Ilya Verbin <ilya.verbin@intel.com>
14464 Kirill Yukhin <kirill.yukhin@intel.com>
14465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14466
14467 * config/i386/i386.md (any_fix): New iterator.
14468 (fixsuffix): New attribute.
14469 * config/i386/sse.md (VF1): Extened with wider modes.
14470 (VI): Ditto.
14471 (VI_AVX2): Ditto.
14472 (VI8): Ditto.
14473 (sseintvecmodelower): Ditto.
14474 (ssescalarmode): Ditto.
14475 (ssescalarnum): Ditto.
14476 (VF1_128_256): New.
14477 (ssexmmmode): Ditto.
14478 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14479 (<sse>_rcp<mode>2): Change iterator.
14480 (rsqrt<mode>2): Ditto.
14481 (<sse>_rsqrt<mode>2): Ditto.
14482 (avx2_vec_dup<mode>): Ditto.
14483 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14484 (round<mode>2_sfix): Ditto.
14485 (avx2_pbroadcast<mode>): Ditto.
14486 (*andnot<mode>3): Handle XI mode.
14487 (*<code><mode>3): Ditto.
14488 (AVXTOSSEMODE): Removed.
14489 (avx_vpermil<mode>): Changed to ...
14490 (<sse2_avx_avx512f>_vpermil<mode>): This.
14491
14492 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14493 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14494 Sergey Lega <sergey.s.lega@intel.com>
14495 Anna Tikhonova <anna.tikhonova@intel.com>
14496 Ilya Tocar <ilya.tocar@intel.com>
14497 Andrey Turetskiy <andrey.turetskiy@intel.com>
14498 Ilya Verbin <ilya.verbin@intel.com>
14499 Kirill Yukhin <kirill.yukhin@intel.com>
14500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14501
14502 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14503 (<sse>_comi): Ditto.
14504 (<sse>_ucomi): Ditto.
14505 (sse_cvtss2siq_2): Ditto.
14506 (sse2_cvtsd2si): Ditto.
14507 (sse2_cvtsd2siq): Ditto.
14508 (sse2_cvttsd2si): Ditto.
14509 (sse2_cvttsd2siq): Ditto.
14510 (<shift_insn><mode>3): Ditto.
14511 (sse2_cvtsi2sdq): Update constraint and prefix.
14512 (sse_cvtsi2ss): Update prefix.
14513 (sse_cvtsi2ssq): Ditto.
14514
14515 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14516
14517 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14518 ignore internal calls.
14519
14520 2013-10-11 Richard Biener <rguenther@suse.de>
14521
14522 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14523 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14524 TREE_OVERFLOW is set.
14525
14526 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14527
14528 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14529
14530 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14531 * gimple.h: Likewise.
14532
14533 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14534
14535 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14536 macros.
14537
14538 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14539
14540 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14541 * configure: Regenerate.
14542
14543 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14544
14545 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14546 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14547 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14548 similarly pp_right_paren.
14549 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14550 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14551 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14552 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14553 clauses.
14554 (omp_declare_simd_clauses_equal,
14555 omp_remove_redundant_declare_simd_attrs): New functions.
14556 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14557 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14558 * tree.h (OMP_LOOP_CHECK): Define.
14559 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14560 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14561 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14562 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14563 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14564 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14565 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14566 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14567 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14568 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14569 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14570 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14571 (omp_remove_redundant_declare_simd_attrs): New prototype.
14572 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14573 GIMPLE_OMP_TEAMS): New codes.
14574 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14575 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14576 fields.
14577 (target_nesting_level): New variable.
14578 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14579 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14580 for collapse > 1 static schedule unless ordered.
14581 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14582 (determine_parallel_type): Adjust get_ws_args_for caller.
14583 (install_var_field): Handle mask & 4 for double indirection.
14584 (scan_sharing_clauses): Ignore shared clause on teams construct.
14585 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14586 (create_omp_child_function): If inside target or declare target
14587 constructs, set "omp declare target" attribute on the child function.
14588 (find_combined_for): New function.
14589 (scan_omp_parallel): Handle combined loops.
14590 (scan_omp_target, scan_omp_teams): New functions.
14591 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14592 restrictions and set ctx->cancellable for cancellable constructs.
14593 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14594 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14595 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14596 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14597 (omp_clause_aligned_alignment): New function.
14598 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14599 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14600 on teams constructs. Handle user defined reductions and new
14601 OpenMP 4.0 clauses.
14602 (lower_reduction_clauses): Don't set placeholder to address of ref
14603 if it has already the right type.
14604 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14605 (expand_parallel_call): Use the new non-_start suffixed builtins,
14606 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14607 and GOMP_parallel_end after the call.
14608 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14609 (expand_omp_for_init_counts): Handle combined loops.
14610 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14611 loops.
14612 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14613 end of cancellable loops.
14614 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14615 Likewise. Handle collapse > 1 loops.
14616 (expand_omp_simd): Handle combined loops.
14617 (expand_omp_for): Add inner_stmt argument, adjust callers of
14618 expand_omp_for* functions, use expand_omp_for_static*chunk even
14619 for collapse > 1 unless ordered.
14620 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14621 of cancellable sections.
14622 (expand_omp_single): Remove need_barrier variable, just rely on
14623 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14624 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14625 (expand_omp_atomic_load, expand_omp_atomic_store,
14626 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14627 (expand_omp_target): New function.
14628 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14629 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14630 (build_omp_regions_1): Immediately close region for
14631 GF_OMP_TARGET_KIND_UPDATE.
14632 (maybe_add_implicit_barrier_cancel): New function.
14633 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14634 cancellation.
14635 (lower_omp_single): Likewise. Add clobber after the barrier.
14636 (lower_omp_taskgroup): New function.
14637 (lower_omp_for): Handle combined loops. Adjust
14638 lower_rec_input_clauses caller. Handle cancellation.
14639 (lower_depend_clauses): New function.
14640 (lower_omp_taskreg): Lower depend clauses. Adjust
14641 lower_rec_input_clauses caller. Add clobber after the call. Handle
14642 cancellation.
14643 (lower_omp_target, lower_omp_teams): New functions.
14644 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14645 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14646 and GOMP_cancellation_point calls.
14647 (lower_omp): Fold stmts inside of target region.
14648 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14649 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14650 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14651 (BT_FN_VOID_OMPFN_PTR_UINT,
14652 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14653 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14654 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14655 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14656 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14657 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14658 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14659 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14660 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14661 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14662 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14663 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14664 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14665 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14666 BUILT_IN_GOMP_PARALLEL_END.
14667 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14668 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14669 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14670 GF_OMP_FOR_KIND_DISTRIBUTE.
14671 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14672 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14673 (dump_gimple_omp_return): Print lhs if it has any.
14674 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14675 gimple_omp_atomic_seq_cst_p.
14676 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14677 and GIMPLE_OMP_TEAMS.
14678 * langhooks.c (lhd_omp_mappable_type): New function.
14679 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14680 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14681 hook.
14682 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14683 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14684 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14685 (struct gimplify_omp_ctx): Add combined_loop field.
14686 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14687 on stmts inside of target region.
14688 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14689 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14690 ORT_TARGET and ORT_TARGET_DATA.
14691 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14692 Handle GOVD_MAP.
14693 (omp_notice_threadprivate_variable): Complain about threadprivate
14694 variables in target region.
14695 (omp_notice_variable): Complain about vars with non-mappable type
14696 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14697 (omp_check_private): Ignore ORT_TARGET* regions.
14698 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14699 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14700 (find_combined_omp_for): New function.
14701 (gimplify_omp_for): Handle gimplification of combined loops.
14702 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14703 OMP_TEAMS.
14704 (gimplify_omp_target_update): New function.
14705 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14706 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14707 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14708 (gimplify_body): If fndecl has "omp declare target" attribute, add
14709 implicit ORT_TARGET context around it.
14710 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14711 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14712 * tree-nested.c (convert_nonlocal_reference_stmt,
14713 convert_local_reference_stmt, convert_gimple_call): Handle
14714 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14715 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14716 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14717 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14718 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14719 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14720 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14721 BUILT_IN_GOMP_LOOP_END_CANCEL,
14722 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14723 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14724 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14725 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14726 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14727 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14728 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14729 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14730 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14731 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14732 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14733 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14734 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14735 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14736 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14737 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14738 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14739 gimple_build_omp_teams): New functions.
14740 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14741 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14742 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14743 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14744 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14745 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14746 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14747 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14748 GF_OMP_ATOMIC_SEQ_CST): New.
14749 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14750 gimple_build_omp_teams): New prototypes.
14751 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14752 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14753 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14754 GIMPLE_OMP_SINGLE as end of range.
14755 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14756 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14757 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14758 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14759 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14760 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14761 gimple_omp_target_kind, gimple_omp_target_set_kind,
14762 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14763 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14764 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14765 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14766 gimple_omp_teams_set_clauses): New inlines.
14767 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14768 and GIMPLE_OMP_TASKGROUP.
14769 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14770 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14771 enum omp_clause_proc_bind_kind): New.
14772 (union omp_clause_subcode): Add depend_kind, map_kind and
14773 proc_bind_kind fields.
14774 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14775 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14776 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14777 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14778 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14779
14780 2013-10-10 Teresa Johnson <tejohnson@google.com>
14781
14782 * predict.c (tree_estimate_probability): Add new parameter
14783 for estimate_bb_frequencies.
14784 (estimate_bb_frequencies): Add new parameter to force estimation.
14785 (rebuild_frequencies): When max frequency in function is small,
14786 recompute counts from frequencies.
14787 * predict.h (estimate_bb_frequencies): New parameter.
14788
14789 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14790
14791 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14792 optimizations are disabled.
14793
14794 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14795
14796 * coverage.c (coverage_finish): Fix leak of da_file_name.
14797
14798 2013-10-10 Jan Hubicka <jh@suse.cz>
14799
14800 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14801 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14802 Bobcat and generic.
14803
14804 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14805
14806 PR middle-end/58670
14807 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14808 if any labels are in FALLTHRU_BB, use a special label emitted
14809 immediately after the asm goto insn rather than label_rtx
14810 of the LABEL_DECL.
14811 (expand_asm_stmt): Adjust caller.
14812 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14813 edge if the last insn in predecessor is a jump with single successor,
14814 but it isn't simplejump_p.
14815
14816 2013-10-10 Richard Biener <rguenther@suse.de>
14817
14818 PR tree-optimization/58656
14819 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14820
14821 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14822
14823 * gimplify.c: Include expr.h and tm_p.h for targets with special
14824 va-arg padding requirements.
14825
14826 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14827
14828 * tree-flow.h: Move some prototypes to gimple.h.
14829 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14830 * gimple.h: Relocate some prototypes from tree-flow.h
14831 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14832 Move to gimplify.c.
14833 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14834 (build_va_arg_indirect_ref): Relocate and make static.
14835 (std_gimplify_va_arg_expr): Relocate here.
14836 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14837 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14838
14839 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14840
14841 * doc/md.texi: Document the mnemonic attribute.
14842
14843 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14844
14845 PR target/57377
14846 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14847 (set_attr_alternative x ...) when searching for user defined
14848 mnemonic attribute.
14849
14850 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14851
14852 * config/alpha/alpha.c: Add gimple-ssa.h to include list.
14853
14854 2013-10-09 Easwaran Raman <eraman@google.com>
14855
14856 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14857 * cfgexpand.c (defer_stack_allocation): ...use here
14858 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14859
14860 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14861
14862 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14863 (operand_equal_for_value_replacement): New function, extracted from
14864 value_replacement and enhanced to catch more cases.
14865 (value_replacement): Use operand_equal_for_value_replacement.
14866
14867 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14868
14869 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14870 get_max_loop_iterations.
14871
14872 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14873
14874 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14875 Place comment above function.
14876
14877 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14878
14879 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14880 are not related to tree-cfg.c.
14881 * tree-ssa-address.h: New file. Relocate prototypes.
14882 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14883 (addr_for_mem_ref): New. Combine call to get_address_description and
14884 return addr_for_mem_ref.
14885 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14886 * tree-ssa-live.h: Adjust prototypes.
14887 * passes.c: Include tree-ssa-live.h.
14888 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14889 * graphite.c (graphite_transform_loops): Make static.
14890 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14891 make_pass_graphite, pass_data_graphite_transforms,
14892 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14893 * ipa-pure-const.c (warn_function_noreturn): Make static.
14894 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14895 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14896 Relocate from tree-cfg.c
14897 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14898 static.
14899 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14900 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14901 Move to ipa-pure-const.c.
14902 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14903 Relocate from tree-optimize.c.
14904 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14905 make_pass_fixup_cfg): Move to tree-cfg.c.
14906 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14907 Relocate some prototypes.
14908 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14909 * tree-dump.c (dump_function_to_file): Remove prototype.
14910 Add tree-flow.h to the include file.
14911 * tree-dump.h: Remove prototype.
14912 * tree-parloops.h: New File. Add prototypes.
14913 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14914 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14915 from tree-ssa-loop.c.
14916 * tree-predcom.c (run_tree_predictive_commoning,
14917 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14918 Relocate here from tree-ssa-loop.c.
14919 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14920 ssa_name_values.release ().
14921 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14922 (ssa_name_values): Relocate from tree-flow.h.
14923 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14924 * tree-ssa-loop.c (run_tree_predictive_commoning,
14925 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14926 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14927 make_pass_graphite, pass_data_graphite_transforms,
14928 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14929 tree_parallelize_loops, pass_data_parallelize_loops,
14930 make_pass_parallelize_loops): Move to other files.
14931 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14932 moved here.
14933 * tree.h: Remove prototypes from tree-address.c.
14934
14935 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14936
14937 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14938 (struct int_tree_map): Move to tree-hasher.h
14939 (SCALE, LABEL, PERCENT): Move to gimple.h
14940 * tree-flow-inline.h: Delete. Move functions to other files.
14941 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14942 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14943 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14944 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14945 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14946 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14947 * tree-hasher.h: Don't include tree-flow.h.
14948 (struct int_tree_map): Relocate from tree-flow.h.
14949 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14950 tree-flow-inline.h and make static.
14951 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14952 tree-flow-inline.h.
14953 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14954 tree-flow-inline.h and make static.
14955 * tree.h (is_global_var, may_be_aliased): Relocate from
14956 tree-flow-inline.h.
14957 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14958 * value-prof.c: No longer include tree-flow-inline.h.
14959 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14960
14961 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14962
14963 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14964 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14965 (enum move_pos): Move to tree-ssa-loop-im.h
14966 * cfgloop.h: Move some prototypes.
14967 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14968 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14969 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14970 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14971 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14972 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14973 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14974 (enum move_pos): Relocate here.
14975 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14976 tree-ssa-loop.c.
14977 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14978 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14979 make_pass_lim): Relocate here from tree-ssa-loop.c.
14980 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14981 tree-ssa-loop.c.
14982 (loop_edge_to_cancel, unloop_loops): Make static.
14983 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14984 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14985 (tree_complete_unroll, gate_tree_complete_unroll,
14986 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14987 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14988 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14989 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14990 (stmt_invariant_in_loop_p): Remove unused function.
14991 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14992 * tree-ssa-loop-manip.h: New file. Add prototypes.
14993 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14994 (gcov_type_to_double_int): Move to cfgloop.h.
14995 (double_int_cmp, bound_index,
14996 estimate_numbers_of_iterations_loop): Make static.
14997 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14998 (max_loop_iterations): Factor out get_max_loop_iterations.
14999 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
15000 cfgloop.c.
15001 * tree-ssa-loop-niter.h: New file. Add prototypes.
15002 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
15003 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
15004 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
15005 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15006 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15007 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15008 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15009 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15010 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15011 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15012 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15013 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15014 pass_data_complete_unroll, make_pass_complete_unroll,
15015 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15016 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15017 tree-ssa-loop-ivcanon.c.
15018 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15019 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15020 tree-ssa-loop-prefetch.c.
15021 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15022 tree-ssa-loop-im.c.
15023 (get_lsm_tmp_name): Relocate and add suffix parameter.
15024 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15025 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15026 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15027 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15028 (get_estimated_loop_iterations): Factor out accessor from
15029 estimated_loop_iterations in tree-ssa-loop-niter.c.
15030 (get_max_loop_iterations): Factor out accessor from
15031 _max_loop_iterations in tree-ssa-niter.c.
15032 * loop-unroll.c (decide_unroll_constant_iterations,
15033 decide_unroll_runtime_iterations, decide_peel_simple,
15034 decide_unroll_stupid): Use new get_* accessors.
15035
15036 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
15037
15038 PR tree-optimization/20318
15039 * doc/extend.texi (returns_nonnull): New function attribute.
15040 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15041 attribute.
15042 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15043 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15044
15045 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
15046
15047 PR middle-end/58570
15048 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15049 false if both components are bitfields.
15050
15051 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15052
15053 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15054 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15055 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15056 * config/aarch64/aarch64.h
15057 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15058 * config/aarch64/aarch64-simd-builtins.def
15059 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15060
15061 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15062
15063 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15064
15065 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15066
15067 * config/aarch64/arm_neon.h (vdiv_f64): Added.
15068
15069 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15070
15071 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15072 (vneg_f64): New intrinsic.
15073 (vneg_s8): Asm replaced with C.
15074 (vneg_s16): Likewise.
15075 (vneg_s32): Likewise.
15076 (vneg_s64): New intrinsic.
15077 (vnegq_f32): Asm replaced with C.
15078 (vnegq_f64): Likewise.
15079 (vnegq_s8): Likewise.
15080 (vnegq_s16): Likewise.
15081 (vnegq_s32): Likewise.
15082 (vnegq_s64): Likewise.
15083
15084 2013-10-09 Renlin Li <Renlin.Li@arm.com>
15085
15086 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15087
15088 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15089
15090 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15091 packed stack special handling.
15092 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15093 back to fixed stack slots for FPRs saved due to stdarg.
15094
15095 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15096
15097 * config/s390/s390.c (s390_frame_info): Restructure function.
15098
15099 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15100
15101 * config/s390/s390.c (struct s390_frame_layout): New field
15102 gpr_save_slots.
15103 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15104 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15105 regs_ever_clobbered to char*.
15106 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15107 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
15108 (s390_register_info): Enable FPR save slots. Move/Copy some
15109 functionality into ...
15110 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15111 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15112 function.
15113 (s390_frame_info): Do gpr slot allocation here now. stdarg does
15114 not imply a stack frame.
15115 (s390_init_frame_layout): Remove variable clobbered_regs.
15116 (s390_update_register_info): Remove function.
15117 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15118 cannot be used for register renaming.
15119 (s390_hard_regno_scratch_ok): New function.
15120 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15121 (s390_initial_elimination_offset): Change offset calculation of
15122 the return address pointer.
15123 (save_gprs): Deal with only r6 being saved from the call-saved regs.
15124 (restore_gprs): Set frame related flag.
15125 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15126 (s390_emit_prologue): Call s390_register_info instead of
15127 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
15128 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15129 (s390_optimize_prologue): Call s390_optimize_register_info.
15130 Try to remove also FPR slot save/restore INSNs. Remove frame
15131 related flags from restore INSNs.
15132
15133 2013-10-08 DJ Delorie <dj@redhat.com>
15134
15135 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15136 (movhi): Likewise.
15137
15138 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15139 avoid conflict with the MI use of %c.
15140 * config/rl78/rl78-real.md: change %c to %C throughout.
15141 * config/rl78/rl78-virt.md: Likewise.
15142
15143 2013-10-08 Jan Hubicka <jh@suse.cz>
15144
15145 * config/i386/i386.c (ix86_option_override_internal): Switch
15146 to SSE math for -ffast-math when target ISA supports SSE2.
15147
15148 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
15149
15150 * tree-flow.h: Remove some prototypes.
15151 * tree.h: Remove some protypes, add a couple.
15152 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15153 using_eh_for_cleanups_p): Add interface routines for front ends.
15154 * tree-eh.h: New file. Add protoptyes.
15155 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15156 (add_stmt_to_eh_lp_fn): Make static.
15157 (lower_try_finally): Use new using_eh_for_cleanups_p.
15158 * emit-rtl.c: Include tree-eh.h.
15159 * gimple.h: Include tree-eh.h.
15160
15161 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
15162
15163 PR tree-optimization/58480
15164 * tree-vrp.c (infer_nonnull_range): New function.
15165 (infer_value_range): Call infer_nonnull_range.
15166
15167 2013-10-08 Dehao Chen <dehao@google.com>
15168
15169 PR tree-optimization/58619
15170 * tree-inline.c (copy_phis_for_bb): Combine location data
15171 only if non-null.
15172
15173 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15174
15175 PR target/58423
15176 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15177 RTX_FRAME_RELATED_P on INSN.
15178
15179 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15180
15181 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15182 (altivec_expand_vec_perm_const): Call it.
15183
15184 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15185
15186 * config/rs6000/vector.md (mov<mode>): Emit permuted move
15187 sequences for LE VSX loads and stores at expand time.
15188 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15189 prototype.
15190 * config/rs6000/rs6000.c (rs6000_const_vec): New.
15191 (rs6000_gen_le_vsx_permute): New.
15192 (rs6000_gen_le_vsx_load): New.
15193 (rs6000_gen_le_vsx_store): New.
15194 (rs6000_gen_le_vsx_move): New.
15195 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15196 (*vsx_le_perm_load_v4si): New.
15197 (*vsx_le_perm_load_v8hi): New.
15198 (*vsx_le_perm_load_v16qi): New.
15199 (*vsx_le_perm_store_v2di): New.
15200 (*vsx_le_perm_store_v4si): New.
15201 (*vsx_le_perm_store_v8hi): New.
15202 (*vsx_le_perm_store_v16qi): New.
15203 (*vsx_xxpermdi2_le_<mode>): New.
15204 (*vsx_xxpermdi4_le_<mode>): New.
15205 (*vsx_xxpermdi8_le_V8HI): New.
15206 (*vsx_xxpermdi16_le_V16QI): New.
15207 (*vsx_lxvd2x2_le_<mode>): New.
15208 (*vsx_lxvd2x4_le_<mode>): New.
15209 (*vsx_lxvd2x8_le_V8HI): New.
15210 (*vsx_lxvd2x16_le_V16QI): New.
15211 (*vsx_stxvd2x2_le_<mode>): New.
15212 (*vsx_stxvd2x4_le_<mode>): New.
15213 (*vsx_stxvd2x8_le_V8HI): New.
15214 (*vsx_stxvd2x16_le_V16QI): New.
15215
15216 2013-10-07 Renlin Li <Renlin.Li@arm.com>
15217
15218 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15219
15220 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15221
15222 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15223 loop to work also for 31bit ABI.
15224 Save the stack pointer for frame_size > 0.
15225
15226 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15227
15228 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15229 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15230 constraint letters from expanders.
15231 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15232 retry count to general_operand.
15233 ("tabort"): Give operand 0 a mode.
15234 ("tabort_1"): Add mode and constraint letter for operand 0.
15235 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15236
15237 2013-10-04 Jeff Law <law@redhat.com>
15238
15239 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15240
15241 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15242 out of ...
15243 (thread_across_edge): Here. Call it.
15244
15245 2013-10-04 Cary Coutant <ccoutant@google.com>
15246
15247 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15248 discarding a location list expression (or a piece of one).
15249
15250 2013-10-03 Jan Hubicka <jh@suse.cz>
15251
15252 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15253 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
15254 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15255
15256 2013-10-03 Jan Hubicka <jh@suse.cz>
15257
15258 * config/i386/i386.c (ix86_option_override_internal): Do not enable
15259 accumulate-outgoing-args when producing unwind info.
15260
15261 2013-10-03 Wei Mi <wmi@google.com>
15262
15263 * lra-constraints.c (insert_move_for_subreg): New function
15264 extracted from simplify_operand_subreg.
15265 (simplify_operand_subreg): Add reload for paradoxical subreg.
15266
15267 2013-10-03 Rong Xu <xur@google.com>
15268
15269 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15270 the candidate of builtin_expect such that we should fix the
15271 size/time estimation.
15272 (estimate_function_body_sizes): Do the acutally size/time fix-up
15273 for builtin_expect.
15274
15275 2013-10-03 Rong Xu <xur@google.com>
15276
15277 * predict.c (tree_predict_by_opcode): Get the probability
15278 for builtin_expect from param builtin_expect_probability.
15279 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15280 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15281 * doc/invoke.texi: Add documentation for builtin-expect-probability.
15282
15283 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
15284
15285 PR c++/19476
15286 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15287 * calls.c (alloca_call_p): Use get_callee_fndecl.
15288 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15289 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15290 Likewise.
15291 (vrp_visit_stmt): Remove duplicated code.
15292
15293 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15294
15295 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15296 ceildf2, btruncdf2, instead of vsx_* name.
15297
15298 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15299 iterators to only do V2DF and V4SF here. Move the DF code to
15300 rs6000.md where it is combined with SF mode. Replace <VSv> with
15301 just 'v' since only vector operations are handled with these insns
15302 after moving the DF support to rs6000.md.
15303 (vsx_sub<mode>3): Likewise.
15304 (vsx_mul<mode>3): Likewise.
15305 (vsx_div<mode>3): Likewise.
15306 (vsx_fre<mode>2): Likewise.
15307 (vsx_neg<mode>2): Likewise.
15308 (vsx_abs<mode>2): Likewise.
15309 (vsx_nabs<mode>2): Likewise.
15310 (vsx_smax<mode>3): Likewise.
15311 (vsx_smin<mode>3): Likewise.
15312 (vsx_sqrt<mode>2): Likewise.
15313 (vsx_rsqrte<mode>2): Likewise.
15314 (vsx_fms<mode>4): Likewise.
15315 (vsx_nfma<mode>4): Likewise.
15316 (vsx_copysign<mode>3): Likewise.
15317 (vsx_btrunc<mode>2): Likewise.
15318 (vsx_floor<mode>2): Likewise.
15319 (vsx_ceil<mode>2): Likewise.
15320 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15321 (vsx_sminsf3): Likewise.
15322 (vsx_fmadf4): Likewise.
15323 (vsx_fmsdf4): Likewise.
15324 (vsx_nfmadf4): Likewise.
15325 (vsx_nfmsdf4): Likewise.
15326 (vsx_cmpdf_internal1): Likewise.
15327
15328 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15329 simpler to select whether a target has SPE or traditional floating
15330 point support in iterators.
15331 (TARGET_DF_SPE): Likewise.
15332 (TARGET_SF_FPR): Likewise.
15333 (TARGET_DF_FPR): Likewise.
15334 (TARGET_SF_INSN): Macros to say whether floating point support
15335 exists for a given operation for expanders.
15336 (TARGET_DF_INSN): Likewise.
15337
15338 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15339 combining of SF/DF mode operations, using both traditional and VSX
15340 registers.
15341 (Fvsx): Likewise.
15342 (Ff): Likewise.
15343 (Fv): Likewise.
15344 (Fs): Likewise.
15345 (Ffre): Likewise.
15346 (FFRE): Likewise.
15347 (abs<mode>2): Combine SF/DF modes using traditional floating point
15348 instructions. Add support for using the upper DF registers with
15349 VSX support, and SF registers with power8-vector support. Update
15350 expanders for operations supported by both the SPE and traditional
15351 floating point units.
15352 (abs<mode>2_fpr): Likewise.
15353 (nabs<mode>2): Likewise.
15354 (nabs<mode>2_fpr): Likewise.
15355 (neg<mode>2): Likewise.
15356 (neg<mode>2_fpr): Likewise.
15357 (add<mode>3): Likewise.
15358 (add<mode>3_fpr): Likewise.
15359 (sub<mode>3): Likewise.
15360 (sub<mode>3_fpr): Likewise.
15361 (mul<mode>3): Likewise.
15362 (mul<mode>3_fpr): Likewise.
15363 (div<mode>3): Likewise.
15364 (div<mode>3_fpr): Likewise.
15365 (sqrt<mode>3): Likewise.
15366 (sqrt<mode>3_fpr): Likewise.
15367 (fre<Fs>): Likewise.
15368 (rsqrt<mode>2): Likewise.
15369 (cmp<mode>_fpr): Likewise.
15370 (smax<mode>3): Likewise.
15371 (smin<mode>3): Likewise.
15372 (smax<mode>3_vsx): Likewise.
15373 (smin<mode>3_vsx): Likewise.
15374 (negsf2): Delete SF operations that are merged with DF.
15375 (abssf2): Likewise.
15376 (addsf3): Likewise.
15377 (subsf3): Likewise.
15378 (mulsf3): Likewise.
15379 (divsf3): Likewise.
15380 (fres): Likewise.
15381 (fmasf4_fpr): Likewise.
15382 (fmssf4_fpr): Likewise.
15383 (nfmasf4_fpr): Likewise.
15384 (nfmssf4_fpr): Likewise.
15385 (sqrtsf2): Likewise.
15386 (rsqrtsf_internal1): Likewise.
15387 (smaxsf3): Likewise.
15388 (sminsf3): Likewise.
15389 (cmpsf_internal1): Likewise.
15390 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15391 (negdf2): Delete DF operations that are merged with SF.
15392 (absdf2): Likewise.
15393 (nabsdf2): Likewise.
15394 (adddf3): Likewise.
15395 (subdf3): Likewise.
15396 (muldf3): Likewise.
15397 (divdf3): Likewise.
15398 (fred): Likewise.
15399 (rsqrtdf_internal1): Likewise.
15400 (fmadf4_fpr): Likewise.
15401 (fmsdf4_fpr): Likewise.
15402 (nfmadf4_fpr): Likewise.
15403 (nfmsdf4_fpr): Likewise.
15404 (sqrtdf2): Likewise.
15405 (smaxdf3): Likewise.
15406 (smindf3): Likewise.
15407 (cmpdf_internal1): Likewise.
15408 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15409 (btrunc<mode>2): Delete separate expander, and combine with the
15410 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
15411 (btrunc<mode>2_fpr): Likewise.
15412 (ceil<mode>2): Likewise.
15413 (ceil<mode>2_fpr): Likewise.
15414 (floor<mode>2): Likewise.
15415 (floor<mode>2_fpr): Likewise.
15416 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15417 Add support for using the upper registers with VSX and
15418 power8-vector. Move insns to be closer to the define_expands. On
15419 VSX systems, prefer the traditional form of FMA over the VSX
15420 version, since the traditional form allows the target not to
15421 overlap with the inputs.
15422 (fms<mode>4_fpr): Likewise.
15423 (nfma<mode>4_fpr): Likewise.
15424 (nfms<mode>4_fpr): Likewise.
15425
15426 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15427 Richard Earnshaw <richard.earnshaw@arm.com>
15428
15429 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15430 (struct mult_cost_table): Likewise.
15431 (struct mem_cost_table): Likewise.
15432 (struct fp_cost_table): Likewise.
15433 (struct vector_cost_table): Likewise.
15434 (cpu_cost_table): Likewise.
15435 * config/arm/arm.opt (mold-rts-costs): New option.
15436 (mnew-generic-costs): Likewise.
15437 * config/arm/arm.c (generic_extra_costs): New table.
15438 (cortexa15_extra_costs): Likewise.
15439 (arm_slowmul_tune): Use NULL as new costs.
15440 (arm_fastmul_tune): Likewise.
15441 (arm_strongarm_tune): Likewise.
15442 (arm_xscale_tune): Likewise.
15443 (arm_9e_tune): Likewise.
15444 (arm_v6t2_tune): Likewise.
15445 (arm_cortex_a5_tune): Likewise.
15446 (arm_cortex_a9_tune): Likewise.
15447 (arm_v6m_tune): Likewise.
15448 (arm_fa726te_tune): Likewise.
15449 (arm_cortex_a15_tune): Use cortex15_extra_costs.
15450 (arm_cortex_tune): Use generict_extra_costs.
15451 (shifter_op_p): New function.
15452 (arm_unspec_cost): Likewise.
15453 (LIBCALL_COST): Define.
15454 (arm_new_rtx_costs): New function.
15455 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15456 table is available. Use old costs otherwise unless mnew-generic-costs
15457 is specified.
15458 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15459 (cpu_cost_table): Declare.
15460
15461 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15462
15463 PR target/58460
15464 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15465 (*subs_mul_imm_<mode>)
15466 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15467 (*sub_<shift>_<mode>)
15468 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15469 Remove k constraint.
15470
15471 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15472
15473 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15474 code.
15475 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15476
15477 2013-10-02 Teresa Johnson <tejohnson@google.com>
15478
15479 * predict.c (probably_never_executed): New function.
15480 (probably_never_executed_bb_p): Invoke probably_never_executed.
15481 (probably_never_executed_edge_p): Ditto.
15482 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15483 Treat profile insanities conservatively.
15484
15485 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15486
15487 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15488
15489 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15490
15491 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15492 use it. Use smaller increase for scratch. Don't increase reject
15493 for early clobber scratch.
15494 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15495 setting eliminated regs except setting fp from hfp.
15496 (lra_eliminate): Check lra_insn_recog_data on NULL.
15497
15498 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15499
15500 PR target/58587
15501 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15502 setting -mvsx-timode by default until the underlying problem is fixed.
15503 (RS6000_CPU, power7 defaults): Likewise.
15504
15505 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15506
15507 * config/x-linux (host-linux.o): Remove header dependencies.
15508 Use $(COMPILE) and $(POSTCOMPILE).
15509 * config/t-linux-android (linux-android.o): Ditto.
15510
15511 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15512
15513 * Makefile.in (expmed.o-warn): Remove.
15514
15515 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15516
15517 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15518 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15519
15520 2013-10-02 Teresa Johnson <tejohnson@google.com>
15521
15522 * dojump.c (do_jump_1): Divide probability between
15523 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15524
15525 2013-10-02 Tom Tromey <tromey@redhat.com>
15526
15527 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15528
15529 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15530
15531 * tree-flow.h: Remove some prototypes.
15532 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15533 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15534 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15535 mark_virtual_phi_result_for_renaming): Relocate here.
15536 * tree-into-ssa.h: Add prototypes.
15537 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15538 single_pred_before_succ_order.
15539 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15540 (nonfreeing_call_p) Move to gimple.c.
15541 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15542 tree-ssa-phiopt.c.
15543 * basic-block.h (single_pred_before_succ_order): Add prototype.
15544 * gimple.c (nonfreeing_call_p): Relocate here.
15545 * gimple.h: Add prototype.
15546 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15547 * tree-ssa-dom.h: New file. Relocate prototypes here.
15548 * tree-ssa.h: Include tree-ssa-dom.h.
15549
15550 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15551
15552 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15553 Use $(COMPILE) and $(POSTCOMPILE).
15554
15555 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15556
15557 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15558
15559 * tree-flow.h: Remove some prototypes.
15560 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15561 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15562 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15563 propagate_tree_value*): Move from here to...
15564 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15565 propagate_tree_value*): Relocate here.
15566 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15567 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15568 * gimple-fold.c: Remove gimple-fold.h from include list.
15569 * tree-vrp.c: Remove gimple-fold.h from include list.
15570 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15571 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15572 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15573 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15574 * sese.c: Add tree-ssa-propagate.h to include list.
15575
15576 2013-10-02 Richard Biener <rguenther@suse.de>
15577
15578 * tree-loop-distribution.c: Include tree-vectorizer.h for
15579 find_loop_location.
15580 (enum partition_kind): Remove PKIND_REDUCTION.
15581 (struct partition_s): Remove has_writes member, add reduction_p member.
15582 (partition_alloc): Adjust.
15583 (partition_builtin_p): Likewise.
15584 (partition_has_writes): Remove.
15585 (partition_reduction_p): New function.
15586 (partition_merge_into): Likewise.
15587 (generate_code_for_partition): Commonize builtin partition
15588 handling tail.
15589 (rdg_cannot_recompute_vertex_p): Remove.
15590 (already_processed_vertex_p): Likewise.
15591 (rdg_flag_vertex): Do not set has_writes.
15592 (classify_partition): Adjust.
15593 (rdg_build_partitions): Do not set has_writes, treat all
15594 partitions as useful.
15595 (distribute_loop): Record number of library calls generated. Adjust.
15596 (tree_loop_distribution): Report number of loops and library
15597 calls generated as opt-info.
15598
15599 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15600
15601 * tree-flow.h: Include new .h files. Move prototypes.
15602 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15603 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15604 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15605 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15606 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15607 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15608 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15609 * tree.h (get_ref_base_and_extent): Move prototype out.
15610 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15611 tree-dfa.h.
15612 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15613 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15614 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15615 * tree-scalar-evolution.c: Include tree.h.
15616 * sese.c: Include tree.h.
15617 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15618 * dwarf2out.c: Include tree-dfa.h.
15619 * tree-chrec.c: Include tree.h.
15620 * tree-data-ref.c: Include tree.h.
15621
15622 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15623
15624 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15625 Fix whitespace.
15626
15627 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15628
15629 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15630 Use $(COMPILE) and $(POSTCOMPILE).
15631 (sol2-cxx.o): Likewise.
15632 (sol2-stubs.o): Likewise.
15633 (sol2.o): Likewise.
15634 * config/x-solaris (host-solaris.o): Likewise.
15635
15636 * config/sparc/t-sparc (sparc.o): Remove.
15637 (sparc-c.o): Remove header dependencies.
15638 Use $(COMPILE) and $(POSTCOMPILE).
15639 * config/sparc/x-sparc: Likewise.
15640
15641 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15642
15643 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15644 * config/arc/arc700.md: Likewise.
15645 * config/arc/arc-modes.def: Likewise.
15646 * config/arc/arc-simd.h: Likewise.
15647 * config/arc/t-arc-uClibc: Likewise.
15648 * config/arc/t-arc-newlib: Likewise.
15649
15650 2013-10-02 Renlin Li <renlin.li@arm.com>
15651
15652 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15653 plus_constant.
15654 (aarch64_expand_epilogue): Likewise.
15655
15656 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15657 Yufeng Zhang <yufeng.zhang@arm.com>
15658
15659 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15660 declaration.
15661 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15662 'base_in' represent a conversion and legal_cast_p_1 holds; set
15663 'base_in' with the returned value from get_unwidened.
15664
15665 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15666
15667 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15668 plus_constant is not used.
15669
15670 2013-10-01 Wei Mi <wmi@google.com>
15671
15672 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15673 * config/i386/i386.md: Add define_peephole2 to
15674 break partial reg stall for cvtss2sd/cvtsd2ss.
15675
15676 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15677
15678 * config/arc/arc.c (pass_arc_ifcvt::clone):
15679 Update for ctxt_ -> m_ctxt change.
15680
15681 2013-10-01 Jeff Law <law@redhat.com>
15682
15683 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15684 outgoing_edge and intermediate_edge fields. Instead store the path.
15685 (redirection_data::hash): Hash on the last edge's destination index.
15686 (redirection_data::equal): Check the entire thread path.
15687 (lookup_redirectio_data): Corresponding changes.
15688 (create_edge_and_update_destination_phis): Likewise.
15689 (thread_single_edge): Likewise.
15690
15691 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15692 Diego Novillo <dnovillo@google.com>
15693
15694 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15695 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15696 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15697 versions of these patterns.
15698
15699 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15700 (__builtin_arc_aligned): Likewise.
15701
15702 * config/arc/arc.md: Expand adc_0 comment stating the intended
15703 purpose and why it isn't ready.
15704 Replace commented out call_value_via_label_mixed with a
15705 plain comment about bl_s.
15706
15707 * config/arc/arc.c (stdio.h): Don't include directly.
15708 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15709 Remove if (1) condition.
15710 (arc_encode_section_info): Fix comment.
15711
15712 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15713
15714 * config/arc/arc.c (arc_conditional_register_usage):
15715 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15716 Also set reg_alloc_order for DMA config regs.
15717
15718 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15719 Jeremy Bennett <jeremy.bennett@embecosm.com>
15720
15721 * doc/install.texi (--with-cpu): Mention ARC.
15722 (arc-*-elf32): New paragraph.
15723 (arc-linux-uclibc): Likewise.
15724 * doc/md.texi (Machine Constraints): Add ARC part.
15725 * doc/invoke.texi: (menu): Add ARC Options.
15726 (Machine Dependent Options) <ARC Options>: Add synopsis.
15727 (node ARC Options): Add.
15728 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15729 (ARC Built-in Functions): New section defining
15730 generic ARC built-in functions.
15731 (ARC SIMD Built-in Functions): New section defining SIMD specific
15732 built-in functions.
15733 (Declaring Attributes of Functions): Extended
15734 description of short_call and long_call attributes for ARC and
15735 added index entries.
15736
15737 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15738 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15739 Joern Rennecke <joern.rennecke@embecosm.com>
15740 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15741 Brendan Kehoe <brendan@zen.org>
15742 Michael Eager <eager@eagercon.com>
15743 Simon Cook <simon.cook@embecosm.com>
15744 Jeremy Bennett <jeremy.bennett@embecosm.com>
15745
15746 * config/arc, common/config/arc: New directories.
15747
15748 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15749 Brendan Kehoe <brendan@zen.org>
15750 Simon Cook <simon.cook@embecosm.com>
15751
15752 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15753
15754 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15755
15756 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15757 * tree-ssa-coalesce.h: New. Move prototype to here.
15758 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15759 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15760 (gimple_can_coalesce_p): Move to...
15761 * gimple.c (gimple_can_coalesce_p): Here.
15762
15763 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15764
15765 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15766 (dump_decl_set): Move to gimple.c.
15767 * gimple.h: Don't include tree-ssa-operands.h.
15768 (dump_decl_set): Add prototype.
15769 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15770 Move to gimple-ssa.h.
15771 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15772 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15773 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15774 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15775 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15776 than PHI_ARG_DEF.
15777 (dump_decl_set): Relocate here.
15778 * gimple-ssa.h: New file.
15779 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15780 Relocate from gimple.h.
15781 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15782 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15783 swap_tree_operands and remove non-ssa path.
15784 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15785 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15786 swap_ssa_operands.
15787 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15788 vect_is_simple_reduction_1): Use swap_ssa_operands.
15789 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15790 (enum need_phi_state): Move to tree-into-ssa.c.
15791 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15792 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15793 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15794 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15795 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15796 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15797 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15798 num_imm_uses): Move to ssa-iterators.h.
15799 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15800 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15801 tree-phinodes.h.
15802 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15803 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15804 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15805 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15806 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15807 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15808 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15809 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15810 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15811 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15812 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15813 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15814 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15815 (set_phi_nodes): Move to tree-phinodes.h.
15816 * tree-ssa-operands.h (enum ssa_op_iter_type,
15817 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15818 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15819 (dump_decl_set): Remove prototype.
15820 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15821 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15822 (set_phi_nodes): Relocate from tree-flow-inline.h.
15823 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15824 tree-flow-inline.h
15825 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15826 include list. Temporarily add gimple.h to include list.
15827 * ssa-iterators.h: New file.
15828 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15829 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15830 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15831 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15832 Relocate from tree-ssa-operands.h.
15833 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15834 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15835 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15836 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15837 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15838 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15839 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15840 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15841 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15842 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15843 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15844 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15845 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15846 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15847 Relocate from tree-flow-inline.h.
15848 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15849
15850 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15851
15852 * aarch64-simd.md
15853 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15854 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15855 Insert '\t' to output template.
15856 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15857 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15858 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15859 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15860
15861 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15862
15863 * doc/install.texi (Host/target specific installation notes for GCC):
15864 Put @anchor before @heading.
15865 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15866 Use @email for email addresses.
15867
15868 2013-10-01 Jeff Law <law@redhat.com>
15869
15870 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15871 a vec. Only delete the path if we create one without successfully
15872 registering a jump thread.
15873 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15874 as a pointer.
15875 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15876 (paths): New vector of jump threading paths.
15877 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15878 (THREAD_PATH): New accessor macro for the entire thread path.
15879 (lookup_redirection_data): Get intermediate and final outgoing edge
15880 from the thread path.
15881 (create_edge_and_update_destination_phis): Copy the threading path.
15882 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15883 jump threading path.
15884 (ssa_redirect_edges): Get edges and block types from the jump threading
15885 path. Free the path vector.
15886 (thread_block): Get edges from the jump threading path. Look at the
15887 entire path to see if we thread to a loop exit. If we cancel a jump
15888 thread request, then free the path vector.
15889 (thread_single_edge): Get edges and block types from the jump threading
15890 path. Free the path vector.
15891 (thread_through_loop_header): Get edges and block types from the jump
15892 threading path. Free the path vector.
15893 (mark_threaded_blocks): Iterate over the vector of paths and store
15894 the path on the appropriate edge. Get edges and block types from the
15895 jump threading path.
15896 (mark_threaded_blocks): Get edges and block types from the jump
15897 threading path. Free the path vector.
15898 (thread_through_all_blocks): Use the vector of paths rather than
15899 a vector of 3-edge sets.
15900 (register_jump_thread): Accept pointer to a path vector rather
15901 than the path vector itself. Store the path vector for later use.
15902 Simplify.
15903
15904 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15905 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15906
15907 PR target/58574
15908 * config/s390/s390.c (s390_split_branches): Modify check for table
15909 jump insns.
15910 (s390_chunkify_start): Rearrange table jump insn check in order to
15911 deal with compare and branch insns correctly.
15912
15913 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15914
15915 PR target/58578
15916 Revert
15917 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15918 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15919 define_insn_and_split.
15920 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15921 (shiftsi3_compare): New pattern.
15922 (rrx): New pattern.
15923 * config/arm/unspecs.md (UNSPEC_RRX): New.
15924
15925 2013-10-01 Alan Modra <amodra@gmail.com>
15926
15927 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15928 casing inout operands.
15929
15930 2013-10-01 Richard Biener <rguenther@suse.de>
15931
15932 PR tree-optimization/58553
15933 * tree-loop-distribution.c (struct partition_s): Add niter member.
15934 (classify_partition): Populate niter member for the partition
15935 and properly identify whether the relevant store happens before
15936 or after the loop exit.
15937 (generate_memset_builtin): Use niter member from the partition.
15938 (generate_memcpy_builtin): Likewise.
15939
15940 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15941
15942 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15943 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15944
15945 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15946
15947 * basic-block.h (edge_list): Prefix member names with "m_".
15948 * context.h (context): Likewise.
15949 * domwalk.h (dom_walker): Likewise.
15950 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15951 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15952 * hash-table.h (hash_table): Likewise.
15953 * machmode.h (bit_field_mode_iterator): Likewise.
15954 * pass_manager.h (pass_list): Likewise.
15955 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15956 * tree-pass.h (pass_data): Likewise.
15957 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15958 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15959 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15960 * asan.c (pass_data_asan): Update accordingly.
15961 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15962 (control_dependences::control_dependences): Likewise.
15963 (control_dependences::~control_dependences): Likewise.
15964 (control_dependences::~control_dependences): Likewise.
15965 (control_dependences::get_edges_dependent_on): Likewise.
15966 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15967 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15968 * context.c (gcc::context::context): Likewise.
15969 * cprop.c (pass_rtl_cprop::clone): Likewise.
15970 * domwalk.c (dom_walker::walk): Likewise.
15971 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15972 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15973 * mode-switching.c (pass_mode_switching::clone): Likewise.
15974 * passes.c (opt_pass::opt_pass): Likewise.
15975 (pass_manager::pass_manager): Likewise.
15976 * predict.c (pass_strip_predict_hints::clone): Likewise.
15977 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15978 (pass_split_all_insns::clone): Likewise.
15979 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15980 Likewise.
15981 (bit_field_mode_iterator::next_mode): Likewise.
15982 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15983 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15984 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15985 * tree-complex.c (pass_lower_complex::clone): Likewise.
15986 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15987 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15988 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15989 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15990 (pass_fold_builtins::clone): Likewise.
15991 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15992 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15993 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15994 (pass_cd_dce::clone): Likewise.
15995 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15996 (pass_phi_only_cprop::clone): Likewise.
15997 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15998 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15999 * tree-ssa-loop.c (pass_lim::clone): Likewise.
16000 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
16001 * tree-ssa-pre.c (pass_fre::clone): Likewise.
16002 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
16003 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
16004 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
16005 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16006 * tree-vrp.c (pass_vrp::clone): Likewise.
16007 * tsan.c (pass_tsan::clone): Likewise.
16008
16009 2013-09-30 Jakub Jelinek <jakub@redhat.com>
16010
16011 PR middle-end/58564
16012 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16013 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16014
16015 PR middle-end/58564
16016 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16017 optimization, punt if sign_bit_p looked through any zero extension.
16018
16019 2013-09-30 Teresa Johnson <tejohnson@google.com>
16020
16021 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16022 Update redirected out edge count in joiner case.
16023 (ssa_redirect_edges): Common the joiner and non-joiner cases
16024 so that joiner case gets profile updates.
16025
16026 2013-09-30 Richard Biener <rguenther@suse.de>
16027
16028 PR tree-optimization/58554
16029 * tree-loop-distribution.c (classify_partition): Require
16030 unconditionally executed stores for memcpy and memset recognition.
16031 (tree_loop_distribution): Calculate dominance info.
16032
16033 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16034
16035 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16036 (NO_PROFILE_COUNTERS): Likewise.
16037 (PROFILE_HOOK): Likewise.
16038 (FUNCTION_PROFILER): Likewise.
16039 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16040
16041 2013-09-30 Iain Sandoe <iain@codesourcery.com>
16042
16043 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16044 calls and defines in TARGET_MACHO conditional.
16045 (load_macho_picbase_di): Likewise.
16046 (reload_macho_picbase): Likewise.
16047 (reload_macho_picbase_si): Likewise.
16048 (reload_macho_picbase_di): Likewise.
16049 (nonlocal_goto_receiver): Likewise.
16050
16051 2013-09-30 Nick Clifton <nickc@redhat.com>
16052
16053 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
16054 that use the MSP430X ISA.
16055 (msp430_option_override): Scan -mmcu command line option for any
16056 MCU name that supports the MSP430X ISA.
16057 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16058 -mmcu options which enable the MSP430X ISA.
16059
16060 2013-09-30 Richard Biener <rguenther@suse.de>
16061
16062 PR middle-end/58532
16063 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16064 before looking for setjmp-like calls.
16065
16066 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16067
16068 PR target/10901
16069 * config/darwin-protos.h (machopic_get_function_picbase): New.
16070 * config/darwin.c (machopic_get_function_picbase): New.
16071 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16072 label for a new func. (load_macho_picbase_di): Likewise.
16073 (reload_macho_picbase): New expand.
16074 (reload_macho_picbase_si): New insn.
16075 (reload_macho_picbase_di): New insn.
16076 (nonlocal_goto_receiver): New define and split.
16077 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16078 (unspecv enum): Add UNSPECV_NLGR.
16079
16080 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16081
16082 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16083 that altivec registers are correctly sized on Darwin.
16084
16085 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16086
16087 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16088 darwin-driver.o): Use COMPILE and POSTCOMPILE.
16089 * config/x-darwin (host-darwin.o): Likewise.
16090 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16091 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16092 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16093
16094 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
16095
16096 * doc/invoke.texi: Fix usage of @tie{} command.
16097
16098 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
16099
16100 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16101
16102 2013-09-28 Jan Hubicka <jh@suse.cz>
16103
16104 * config/i386/x86-tune.def: Add documentation for each of the options;
16105 add whitespace.
16106
16107 2013-09-28 Jan Hubicka <jh@suse.cz>
16108
16109 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16110 generic.
16111 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16112 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16113 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16114 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16115 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16116
16117 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
16118
16119 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16120 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16121 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16122 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16123 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16124 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16125 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16126 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16127 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16128 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16129 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16130 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16131 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16132 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16133 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16134 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16135 gimple.h, godump.c, graphite-clast-to-gimple.c,
16136 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16137 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16138 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16139 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16140 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16141 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16142 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16143 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16144 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16145 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16146 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16147 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16148 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16149 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16150 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16151 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16152 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16153 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16154 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16155 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16156 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16157 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16158 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16159 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16160 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16161 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16162 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16163 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16164 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16165 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16166 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16167 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16168 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16169 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16170 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16171 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16172 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16173 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16174 whitespace before "(".
16175
16176 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
16177
16178 * expr.h (extract_bit_field): Remove packedp parameter.
16179 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16180 from forward declaration.
16181 (store_split_bit_field): Remove packedp arg from calls to
16182 extract_fixed_bit_field.
16183 (extract_bit_field_1): Remove packedp parameter and packedp
16184 argument from recursive calls and calls to extract_fixed_bit_field.
16185 (extract_bit_field): Remove packedp parameter and corresponding
16186 arg to extract_bit_field_1.
16187 (extract_fixed_bit_field): Remove packedp parameter. Remove code
16188 to issue warnings.
16189 (extract_split_bit_field): Remove packedp arg from call to
16190 extract_fixed_bit_field.
16191 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16192 (copy_blkmode_from_reg): Likewise.
16193 (copy_blkmode_to_reg): Likewise.
16194 (read_complex_part): Likewise.
16195 (store_field): Likewise.
16196 (expand_expr_real_1): Likewise.
16197 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16198 to extract_bit_field.
16199 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16200 call to extract_bit_field.
16201 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16202 call to extract_bit_field.
16203 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16204 and special packedp behavior from -fstrict-volatile-bitfields
16205 documentation.
16206
16207 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16208
16209 * lra-eliminations.c (init_elim_table): Guard value_p.
16210
16211 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16212
16213 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16214 DFmode, DImode, and SFmode in the upper VSX registers based on the
16215 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
16216 if -mpower8-vector. Combine -mvsx-timode handling with the rest
16217 of the VSX register handling.
16218
16219 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16220 (f32_sv): Likewise.
16221 (zero_extendsidi2_lfiwzx): Add support for loading into the
16222 Altivec registers with -mpower8-vector. Use wu/wv constraints to
16223 only do VSX memory options on Altivec registers.
16224 (extendsidi2_lfiwax): Likewise.
16225 (extendsfdf2_fpr): Likewise.
16226 (mov<mode>_hardfloat, SF/SD modes): Likewise.
16227 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16228 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16229 (movdi_internal64): Likewise.
16230
16231 2013-09-27 Xinliang David Li <davidxl@google.com>
16232
16233 * opts.c (finish_options): Adjust parameters
16234 according to vect cost model.
16235 (common_handle_option): Set dynamic vect cost
16236 model for FDO.
16237 targhooks.c (default_add_stmt_cost): Compute stmt cost
16238 unconditionally.
16239 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16240 Use helper function.
16241 * tree-vectorizer.h (unlimited_cost_model): New function.
16242 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16243 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16244 function.
16245 (vect_enhance_data_refs_alignment): Ditto.
16246 * flag-types.h: New enum.
16247 * common/config/i386/i386-common.c (ix86_option_init_struct):
16248 No need to initialize vect_cost_model flag.
16249 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16250 unconditionally.
16251
16252 2013-09-27 Diego Novillo <dnovillo@google.com>
16253
16254 * gimple.h (enum ssa_mode): Remove.
16255
16256 2013-09-27 Paulo Matos <pmatos@broadcom.com>
16257
16258 * cfgloop.h (number_of_loops): Fix typo in check for null.
16259
16260 2013-09-27 Jakub Jelinek <jakub@redhat.com>
16261
16262 PR middle-end/58551
16263 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16264 are children of outermost saved_cfun's loop, and set it up to
16265 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
16266 if loop != loop0 and SESE region contains bbs that belong to loop0.
16267
16268 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16269
16270 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16271 (binary_scale_code_p, get_base_term, get_index_term): New functions.
16272 (set_address_segment, set_address_base, set_address_index)
16273 (set_address_disp): Accept the argument unconditionally.
16274 (baseness): Remove must_be_base_p and must_be_index_p checks.
16275 (decompose_normal_address): Classify as much as possible in the
16276 main loop.
16277
16278 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16279
16280 * cse.c (count_reg_usage): Handle INT_LIST.
16281 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16282 * reginfo.c (reg_scan_mark_refs): Likewise.
16283 * reload1.c (eliminate_regs_1): Likewise.
16284
16285 2013-09-27 Iain Sandoe <iain@codesourcery.com>
16286
16287 PR middle-end/58547
16288 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16289 signed.
16290
16291 2013-09-27 Richard Biener <rguenther@suse.de>
16292
16293 PR tree-optimization/58459
16294 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16295 restriction not propagating into loops.
16296
16297 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
16298
16299 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16300 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16301 * doc/tree-ssa.texi (Walking use-def chains): Delete.
16302
16303 2013-09-26 Richard Biener <rguenther@suse.de>
16304
16305 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16306
16307 2013-09-26 Richard Biener <rguenther@suse.de>
16308
16309 * alias.h (component_uses_parent_alias_set): Rename to ...
16310 (component_uses_parent_alias_set_from): ... this.
16311 * alias.c (component_uses_parent_alias_set): Rename to ...
16312 (component_uses_parent_alias_set_from): ... this and return
16313 the desired parent.
16314 (reference_alias_ptr_type_1): Use the result from
16315 component_uses_parent_alias_set_from instead of stripping
16316 components one at a time.
16317 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16318
16319 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16320
16321 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16322 Move prototypes to...
16323 * tree-ssa-ter.h: New File. Move prototypes here.
16324 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16325 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16326 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
16327 from is_replaceable_p.
16328 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16329 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
16330 (process_replaceable): Use ter_is_replaceable_p.
16331 (find_replaceable_in_bb): Use ter_is_replaceable_p.
16332 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
16333 newly refactored ssa_is_replaceable_p.
16334 * cfgexpand.c: Include tree-outof-ssa.h.
16335 * ssaexpand.h: Delete.
16336
16337 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16338
16339 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16340 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16341 tree-ssa.c
16342 (create_gimple_tmp): Delete.
16343 (get_expr_type, build_assign, build_type_cast): Move to...
16344 * gimple-builder.c: New File.
16345 (get_expr_type): Relocate from gimple.c.
16346 (build_assign, build_type_cast): Change to only create ssanames.
16347 * gimple.h: Move prototypes to...
16348 * gimple-builder.h: New File. Here.
16349 * tree-ssa.h: And here.
16350 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16351 count_uses_and_derefs): Relocate from gimple.c.
16352 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16353 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16354 * tree-ssa-math-opts (execute_cse_reciprocals): Use
16355 gimple_replace_ssa_lhs.
16356 * asan.c: Include gimple-builder.h.
16357 * Makefile.in: Add gimple-builder.o.
16358
16359 2013-09-26 Richard Biener <rguenther@suse.de>
16360
16361 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16362 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16363 (loe_visit_block): Use gcc_checking_assert.
16364 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16365 gimple_assign_ssa_name_copy_p.
16366 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16367 change.
16368
16369 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
16370
16371 * config/rs6000/t-rs6000 (rs6000.o): Remove.
16372 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16373
16374 2013-09-26 Richard Biener <rguenther@suse.de>
16375
16376 PR tree-optimization/58539
16377 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16378 the fact that debug statements are not taking part in loop-closed
16379 SSA construction.
16380
16381 2013-09-26 Nick Clifton <nickc@redhat.com>
16382
16383 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16384 time warning message.
16385 (msp430_print_operand_raw): Delete unused letter parameter.
16386 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16387 (msp430_print_operand_address): New function.
16388 (msp430_print_operand): Move address printing code from here to
16389 new function.
16390 * config/msp430/msp430.md (movsipsi2): Add comment in generated
16391 assembler.
16392 (zero_extendpsisi2): Likewise.
16393 (extendpsisi2): New pattern.
16394 (andneghi3): New pattern.
16395
16396 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
16397
16398 * config/aarch64/aarch64.opt (mlra): New option.
16399 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16400 (TARGET_LRA_P): Define.
16401
16402 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
16403
16404 * expr.c (expand_assignment): Remove obsolete comment.
16405
16406 2013-09-25 Jeff Law <law@redhat.com>
16407
16408 * tree-flow.h (thread_through_all_blocks): Prototype moved into
16409 tree-ssa-threadupdate.h.
16410 (register_jump_thread): Similarly.
16411 * tree-ssa-threadupdate.h: New header file.
16412 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16413 * tree-vrp.c: Likewise.
16414 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16415 (thread_around_empty_blocks): Change type of path vector argument to
16416 an edge,type pair from just an edge. Initialize both elements when
16417 appending to a jump threading path. Tweak references to elements
16418 appropriately.
16419 (thread_across_edge): Similarly. Release memory for the elements
16420 as needed.
16421 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16422 (dump_jump_thread_path): New function broken out from
16423 register_jump_thread.
16424 (register_jump_thread): Use dump_jump_thread_path. Change type of
16425 path vector entries. Search the path for NULL edges and dump
16426 the path if one is found. Tweak the conversion of path to 3-edge
16427 form to use the block copy type information embedded in the path.
16428
16429 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16430
16431 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16432
16433 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16434 Vladimir Makarov <vmakarov@redhat.com>
16435
16436 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16437 from the least significant bit.
16438 (strip_address_mutations): Add bitfield operations handling.
16439 (must_be_index_p): Add shifting and rotate operations handling.
16440 (set_address_base): Use must_be_base_p predicate.
16441 (set_address_index): Use must_be_index_p predicate.
16442
16443 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16445 Sergey Lega <sergey.s.lega@intel.com>
16446 Anna Tikhonova <anna.tikhonova@intel.com>
16447 Ilya Tocar <ilya.tocar@intel.com>
16448 Andrey Turetskiy <andrey.turetskiy@intel.com>
16449 Ilya Verbin <ilya.verbin@intel.com>
16450 Kirill Yukhin <kirill.yukhin@intel.com>
16451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16452
16453 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16454 Use new names.
16455 (ix86_expand_vector_move_misalign): Support new unaligned load and
16456 stores and use new names.
16457 (CODE_FOR_sse2_storedqu): Rename to ...
16458 (CODE_FOR_sse2_storedquv16qi): ... this.
16459 (CODE_FOR_sse2_loaddqu): Rename to ...
16460 (CODE_FOR_sse2_loaddquv16qi): ... this.
16461 (CODE_FOR_avx_loaddqu256): Rename to ...
16462 (CODE_FOR_avx_loaddquv32qi): ... this.
16463 (CODE_FOR_avx_storedqu256): Rename to ...
16464 (CODE_FOR_avx_storedquv32qi): ... this.
16465 * config/i386/i386.md (fpint_logic): New.
16466 * config/i386/sse.md (VMOVE): Extend for AVX512.
16467 (VF): Ditto.
16468 (VF_128_256): New.
16469 (VF_512): Ditto.
16470 (VI_UNALIGNED_LOADSTORE): Ditto.
16471 (sse2_avx_avx512f): Ditto.
16472 (sse2_avx2): Extend for AVX512.
16473 (sse4_1_avx2): Ditto.
16474 (avx2_avx512f): New.
16475 (sse): Extend for AVX512.
16476 (sse2): Ditto.
16477 (sse4_1): Ditto.
16478 (avxsizesuffix): Ditto.
16479 (sseintvecmode): Ditto.
16480 (ssePSmode): Ditto.
16481 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16482 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16483 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16484 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16485 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16486 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16487 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16488 (STORENT_MODE): Extend for AVX512.
16489 (*absneg<mode>2): Replace constraint "x" with "v".
16490 (*mul<mode>3): Ditto.
16491 (*ieee_smin<mode>3): Ditto.
16492 (*ieee_smax<mode>3): Ditto.
16493 (avx_cmp<mode>3): Replace VF with VF_128_256.
16494 (*<sse>_maskcmp<mode>3_comm): Ditto.
16495 (<sse>_maskcmp<mode>3): Ditto.
16496 (<sse>_andnot<mode>3): Extend for AVX512.
16497 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16498 (<code><mode>3, fpint_logic): New.
16499 (*<code><mode>3): Extend for AVX512.
16500 (avx512flogicsuff): New.
16501 (avx512f_<logic><mode>): Ditto.
16502 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16503 VF_128_256.
16504 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16505 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16506 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16507 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16508 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16509 (xop_vpermil2<mode>3): Ditto.
16510 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16511 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16512 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16513 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16514
16515 2013-09-25 Tom Tromey <tromey@redhat.com>
16516
16517 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16518 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16519 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16520 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16521 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16522 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16523 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16524 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16525 (GRAPHITE_HTAB_H): Remove.
16526
16527 2013-09-25 Tom Tromey <tromey@redhat.com>
16528
16529 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16530
16531 2013-09-25 Tom Tromey <tromey@redhat.com>
16532
16533 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16534
16535 2013-09-25 Tom Tromey <tromey@redhat.com>
16536
16537 * config/i386/t-i386 (i386.o): Remove.
16538 (i386-c.o): Use COMPILE and POSTCOMPILE.
16539
16540 2013-09-25 Tom Tromey <tromey@redhat.com>
16541
16542 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16543
16544 2013-09-25 Tom Tromey <tromey@redhat.com>
16545
16546 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16547 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16548 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16549 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16550 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16551 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16552 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16553 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16554 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16555 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16556 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16557 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16558 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16559 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16560 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16561 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16562 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16563 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16564 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16565 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16566 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16567 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16568 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16569 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16570 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16571 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16572 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16573 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16574 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16575 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16576 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16577 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16578 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16579 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16580 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16581 (graphite-clast-to-gimple.o, graphite-dependences.o)
16582 (graphite-interchange.o, graphite-poly.o)
16583 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16584 (graphite-optimize-isl.o, tree-vect-loop.o)
16585 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16586 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16587 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16588 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16589 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16590 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16591 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16592 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16593 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16594 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16595 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16596 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16597 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16598 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16599 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16600 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16601 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16602 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16603 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16604 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16605 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16606 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16607 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16608 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16609 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16610 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16611 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16612 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16613 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16614 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16615 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16616 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16617 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16618 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16619 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16620 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16621 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16622 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16623 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16624 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16625 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16626 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16627 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16628 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16629 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16630 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16631 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16632 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16633 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16634 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16635 (gcov-dump.o): Remove.
16636 (default-c.o): Use COMPILE and POSTCOMPILE.
16637 (CFLAGS-gcc.o): New variable.
16638 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16639
16640 2013-09-25 Tom Tromey <tromey@redhat.com>
16641
16642 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16643 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16644 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16645 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16646 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16647 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16648 (c-family/array-notation-common.o, c-family/stub-objc.o)
16649 (c-family/c-ubsan.o): Remove.
16650
16651 2013-09-25 Tom Tromey <tromey@redhat.com>
16652
16653 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16654
16655 2013-09-25 Tom Tromey <tromey@redhat.com>
16656
16657 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16658 to add -DENABLE_SHARED_LIBGCC.
16659 (gcc.o): Don't use subshell.
16660
16661 2013-09-25 Tom Tromey <tromey@redhat.com>
16662
16663 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16664 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16665 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16666 * configure, config.in: Rebuild.
16667
16668 2013-09-25 Tom Tromey <tromey@redhat.com>
16669
16670 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16671 (COMPILE, POSTCOMPILE): New variables.
16672 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16673 (DEPFILES): New variable.
16674 Include ".Po" files.
16675 * configure.ac: Add checks for dependency checking.
16676 * configure, aclocal.m4: Regenerate.
16677
16678 2013-09-25 Tom Tromey <tromey@redhat.com>
16679
16680 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16681 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16682
16683 2013-09-25 Tom Tromey <tromey@redhat.com>
16684
16685 * Makefile.in (generated_files): Add options.h,
16686 target-hooks-def.h, insn-opinit.h,
16687 common/common-target-hooks-def.h, pass-instances.def,
16688 c-family/c-target-hooks-def.h.
16689
16690 2013-09-25 Jeff Law <law@redhat.com>
16691
16692 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16693 than foo[foo.length () - 1] to access last member in a vec.
16694 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16695
16696 2013-09-25 Richard Biener <rguenther@suse.de>
16697
16698 PR middle-end/58521
16699 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16700
16701 2013-09-25 Jan Hubicka <jh@suse.cz>
16702
16703 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16704 test.
16705
16706 2013-09-25 Marek Polacek <polacek@redhat.com>
16707
16708 PR sanitizer/58420
16709 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16710 when determining the type name.
16711
16712 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16713
16714 * config/sh/sh.md: Fix formatting.
16715
16716 2013-09-24 Xinliang David Li <davidxl@google.com>
16717
16718 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16719 max peel iterations parameter.
16720 * param.def: New parameter.
16721 * doc/invoke.texi: Document New parameter.
16722
16723 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16724
16725 * gimple-pretty-print.c: Various whitespace tweaks.
16726 * tree-core.h: Likewise.
16727 * tree-pretty-print.c: Likewise.
16728 * tree-ssa-alias.c: Likewise.
16729 * tree-ssa-copy.c: Likewise.
16730 * tree-ssanames.c: Likewise.
16731 * tree-ssanames.h: Likewise.
16732 * tree-vrp.c: Likewise.
16733
16734 2013-09-24 Alan Modra <amodra@gmail.com>
16735
16736 PR middle-end/57134
16737 PR middle-end/57586
16738 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16739 for output operands that disallow regs. Don't use EXPAND_WRITE on
16740 inout operands.
16741
16742 2013-09-24 Richard Biener <rguenther@suse.de>
16743
16744 PR middle-end/58513
16745 * tree.c (reference_alias_ptr_type): Move ...
16746 * alias.c (reference_alias_ptr_type): ... here and implement
16747 in terms of the new reference_alias_ptr_type_1.
16748 (ref_all_alias_ptr_type_p): New helper.
16749 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16750 use ref_all_alias_ptr_type_p.
16751 (get_deref_alias_set): Add flag_strict_aliasing check here.
16752 (reference_alias_ptr_type_1): New function, split out from ...
16753 (get_alias_set): ... here.
16754 (alias_ptr_types_compatible_p): New function.
16755 * alias.h (reference_alias_ptr_type): Declare.
16756 (alias_ptr_types_compatible_p): Likewise.
16757 * tree.h (reference_alias_ptr_type): Remove.
16758 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16759 to compare MEM_REF alias types.
16760
16761 2013-09-24 Richard Biener <rguenther@suse.de>
16762
16763 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16764
16765 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16766
16767 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16768 reload helper function arrays into a single array reg_addr.
16769 (reload_fpr_gpr): Likewise.
16770 (reload_gpr_vsx): Likewise.
16771 (reload_vsx_gpr): Likewise.
16772 (struct rs6000_reg_addr): Likewise.
16773 (reg_addr): Likewise.
16774 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16775 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16776 (rs6000_init_hard_regno_mode_ok): Likewise.
16777 (rs6000_secondary_reload_direct_move): Likewise.
16778 (rs6000_secondary_reload): Likewise.
16779
16780 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16781 constraints: wu, ww, and wy. Repurpose wv constraint added during
16782 power8 changes. Put wg constraint in alphabetical order.
16783
16784 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16785 for future work to add ISA 2.07 VSX single precision support.
16786 (-mvsx-scalar-double): Change default from -1 to 1, update
16787 documentation comment.
16788 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16789 (-mupper-regs-df): New debug switch to control whether DF values
16790 can go in the traditional Altivec registers.
16791 (-mupper-regs-sf): New debug switch to control whether SF values
16792 can go in the traditional Altivec registers.
16793
16794 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16795 and wy constraints.
16796 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16797 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16798 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16799 (rs6000_debug_legitimate_address_p): Print if we are running
16800 before, during, or after reload.
16801 (rs6000_secondary_reload): Add a comment.
16802 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16803
16804 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16805 constraints. Update documentation string.
16806 (wd constraint): Likewise.
16807 (wf constraint): Likewise.
16808 (wg constraint): Likewise.
16809 (wn constraint): Likewise.
16810 (ws constraint): Likewise.
16811 (wt constraint): Likewise.
16812 (wx constraint): Likewise.
16813 (wz constraint): Likewise.
16814 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16815 instructions.
16816 (ww constraint): Likewise.
16817 (wy constraint): Likewise.
16818 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16819 in the previous submissions.
16820 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16821
16822 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16823
16824 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16825 (REG_BR_PROB): Say that the probability is stored in an int_list.
16826 * reg-notes.def: Update commentary to mention INT_LIST.
16827 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16828 (INT_LIST): New rtx.
16829 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16830 * rtlanal.c (int_reg_note_p): New function.
16831 (alloc_reg_note): Assert that the note does not have an int argument.
16832 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16833 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16834 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16835 rather than an INSN_LIST. Handle INT_LIST.
16836 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16837 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16838 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16839 Manipulate them as ints rather than rtxes.
16840 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16841 * regmove.c (copy_src_to_dest): Likewise.
16842 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16843
16844 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16845 into the cases that need it.
16846 * config/arm/arm.c (arm_unwind_emit): Likewise.
16847
16848 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16849 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16850 * loop-doloop.c (add_test, doloop_modify): Likewise.
16851 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16852 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16853 * predict.c (combine_predictions_for_insn): Likewise.
16854 * print-rtl.c (print_rtx): Handle INT_LIST.
16855 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16856 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16857 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16858 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16859 (ix86_split_fp_branch, predict_jump): Likewise.
16860 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16861 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16862 * config/spu/spu.c (ea_load_store_inline): Likewise.
16863
16864 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16865 value of a REG_BR_PROB note.
16866 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16867 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16868 * emit-rtl.c (try_split): Likewise.
16869 * predict.c (br_prob_note_reliable_p): Likewise.
16870 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16871 * reorg.c (mostly_true_jump): Likewise.
16872 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16873 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16874 * config/i386/i386.c (ix86_print_operand): Likewise.
16875 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16876 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16877 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16878 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16879 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16880 * config/sparc/sparc.c (output_cbranch): Likewise.
16881 * config/spu/spu.c (get_branch_target): Likewise.
16882 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16883 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16884
16885 2013-09-23 Jan Hubicka <jh@suse.cz>
16886
16887 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16888 for ipa-devirt.
16889 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16890 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16891 of external calls
16892 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16893 (gimple_fold_call): Dump inconsistent devirtualizations; add
16894 sanity check for type based devirtualizations.
16895 * ipa-prop.c: Include ipa-utils.h
16896 (ipa_intraprocedural_devirtualization): Add sanity check.
16897 (try_make_edge_direct_virtual_call): Likewise.
16898
16899 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16900
16901 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16902 assignment statements.
16903
16904 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16905
16906 * gimple-pretty-print.c (dump_ssaname_info): New function.
16907 (dump_gimple_phi): Call it.
16908 (pp_gimple_stmt_1): Likewise.
16909 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16910 (range_info_def): Declare.
16911 * tree-pretty-print.c (pp_double_int): New function.
16912 (dump_generic_node): Call it.
16913 * tree-pretty-print.h (pp_double_int): Declare.
16914 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16915 * tree-ssanames.h (range_info_def): New structure.
16916 (value_range_type): Move definition here.
16917 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16918 Declare.
16919 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16920 initialization.
16921 (set_range_info): New function.
16922 (get_range_info): Likewise.
16923 (duplicate_ssa_name_range_info): Likewise.
16924 (duplicate_ssa_name_fn): Check pointer type and call
16925 duplicate_ssa_name_range_info.
16926 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16927 * tree-vrp.c (value_range_type): Remove definition, now in
16928 tree-ssanames.h.
16929 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16930 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16931 (SSA_NAME_RANGE_INFO): New macro.
16932
16933 2013-09-23 Richard Biener <rguenther@suse.de>
16934
16935 PR tree-optimization/58464
16936 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16937 (phi_trans_add): Change to add conditionally on being not present.
16938 (phi_translate_1): Remove recursion detection here.
16939 (phi_translate): Pre-seed the cache with NULL to catch
16940 recursion here in a more generic way.
16941 (bitmap_find_leader): Adjust comment.
16942 (get_representative_for): Dump value-numbers.
16943 (create_expression_by_pieces): Likewise.
16944 (insert_into_preds_of_block): Likewise.
16945
16946 2013-09-23 Christian Bruel <christian.bruel@st.com>
16947
16948 PR target/58475
16949 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16950 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16951
16952 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16953
16954 Revert r202780:
16955 2013-09-20 Renlin Li <renlin.li@arm.com>
16956
16957 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16958 plus_constant.
16959 (aarch64_expand_epilogue): Likewise.
16960 (aarch64_legitimize_reload_address): Likewise.
16961
16962 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16963
16964 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16965 NULL_TREE before pushing them onto the vector. Likewise for labels.
16966
16967 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16968
16969 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16970 comparison operators when -fno-trapping-math is in effect.
16971 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16972 comparison operators in TFmode and assert that unsupported operators
16973 cannot reach here.
16974 (ia64_print_operand): Likewise.
16975
16976 2013-09-21 Jan Hubicka <jh@suse.cz>
16977
16978 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16979 (sse_typeless_stores): Enable for core
16980 (sse_load0_by_pxor): Likewise.
16981 (four_jump_limit): Disable for core.
16982 (pad_returns): Likewise.
16983 (avoid_vector_decode): Likewise.
16984 (fuse_cmp_and_branch): Enable for cores.
16985 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16986
16987 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16988
16989 PR middle-end/56791
16990 * config/pa/pa.c (pa_option_override): Disable auto increment and
16991 decrement instructions until reload is completed.
16992
16993 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16994 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16995 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16996
16997 2013-09-20 DJ Delorie <dj@redhat.com>
16998 Nick Clifton <nickc@redhat.com>
16999
17000 * config/rl78/rl78.c: Various whitespace and comment tweaks.
17001 (need_to_save): Save bank 0 on interrupts.
17002 (characterize_address): Strip far address wrappers.
17003 (rl78_as_legitimate_address): Likewise.
17004 (transcode_memory_rtx): Likewise.
17005 (rl78_peep_movhi_p): Disable this peephole after devirt.
17006 (rl78_propogate_register_origins): Forget all origins when a
17007 CLOBBER is seen.
17008 * config/rl78/rl78-virt.md: Various whitespace tweaks.
17009 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
17010 peephole2's.
17011 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17012 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17013 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17014 relocating.
17015 * config/rl78/constraints.md: Various whitespace and paren tweaks.
17016
17017 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17018
17019 * config/pa/pa.md: In "scc" insn patterns, change output template to
17020 handle const0_rtx in reg_or_0_operand operands.
17021
17022 2013-09-20 Martin Husemann <martin@NetBSD.org>
17023
17024 PR target/56875
17025 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17026 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17027
17028 2013-09-20 Richard Biener <rguenther@suse.de>
17029
17030 PR middle-end/58484
17031 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17032 remembering SSA name version and block index.
17033 (new_scev_info_str): Adjust.
17034 (hash_scev_info): Likewise. Also hash the block index.
17035 (eq_scev_info): Adjust.
17036 (find_var_scev_info): Likewise.
17037 (struct instantiate_cache_entry): Remove.
17038 (struct instantiate_cache_type): Use a htab to map name, block
17039 to chrec.
17040 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17041 (get_instantiated_value_entry): Likewise.
17042 (hash_idx_scev_info, eq_idx_scev_info): New functions.
17043 (instantiate_scev_name): Adjust.
17044
17045 2013-09-20 Jeff Law <law@redhat.com>
17046
17047 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17048
17049 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
17050
17051 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17052 Call aarch64_simd_expand_args to update op[argc].
17053
17054 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17055
17056 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17057 plugin argument.
17058
17059 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17060
17061 * gengtype.c (file_rules): Added rule for *.cc files.
17062 (get_output_file_with_visibility): Give fatal message when no
17063 rules found.
17064
17065 2013-09-20 Renlin Li <renlin.li@arm.com>
17066
17067 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17068 (aarch64_expand_epilogue): Likewise.
17069 (aarch64_legitimize_reload_address): Likewise.
17070
17071 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17072
17073 PR middle-end/57748
17074 * expr.c (expand_assignment): Remove misalignp code path.
17075
17076 2013-09-20 Marek Polacek <polacek@redhat.com>
17077
17078 PR sanitizer/58413
17079 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17080 TYPE_PRECISION. Add asserts.
17081
17082 2013-09-20 Richard Biener <rguenther@suse.de>
17083
17084 PR tree-optimization/58453
17085 * tree-loop-distribution.c (distribute_loop): Apply the cost
17086 model for -ftree-loop-distribute-patterns, too.
17087
17088 2013-09-20 Richard Biener <rguenther@suse.de>
17089
17090 PR middle-end/58473
17091 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17092 make type comparison less strict.
17093
17094 2013-09-20 Alan Modra <amodra@gmail.com>
17095
17096 * configure: Regenerate.
17097 * aclocal.m4: Regenerate.
17098
17099 2013-09-20 Marek Polacek <polacek@redhat.com>
17100
17101 PR other/58467
17102 * doc/extend.texi: Document that attribute used is meant to be used
17103 on variables with static storage duration.
17104
17105 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17106
17107 PR tree-optimization/58472
17108 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17109 simd_lane_access set inv_p = false.
17110 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17111 the simduid magic VAR_DECL.
17112
17113 2013-09-19 Jan Hubicka <jh@suse.cz>
17114
17115 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17116
17117 2013-09-17 Jeff Law <law@redhat.com>
17118
17119 * tree-ssa-dom.c (record_temporary_equivalences): New function
17120 split out of dom_opt_dom_walker::after_dom_children.
17121 (dom_opt_dom_walker::thread_across_edge): Move common code
17122 in here from dom_opt_dom_walker::after_dom_children.
17123 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17124
17125 2013-09-19 Jan Hubicka <jh@suse.cz>
17126
17127 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17128 (TARGET_GENERIC): Use PROCESOR_GENERIC
17129 (enum processor_type): Unify generic32 and 64.
17130 * i386.md (cpu): Likewise.
17131 * x86-tune.def (use_leave): Enable for generic32.
17132 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17133 * athlon.md: Change generic64 to generic in all occurences.
17134 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17135 (ix86_target_macros_internal): Likewise.
17136 * driver-i386.c (host_detect_local_cpu): Likewise.
17137 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17138 to ..
17139 (generic_memcpy, generic_memset, generic_cost): This one.
17140 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17141 (m_GENERIC32, m_GENERIC64): Remove.
17142 (m_GENERIC): Turn into one flag.
17143 (processor_target): Unify generic tunnings.
17144 (ix86_option_override_internal): Replace generic32/64 by generic.
17145 (ix86_issue_rate): Likewise.
17146 (ix86_adjust_cost): Likewise.
17147
17148 2013-09-19 Jan Hubicka <jh@suse.cz>
17149
17150 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17151 of speculative flag.
17152
17153 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17154
17155 * omp-low.c (expand_omp_sections): Always pass len - 1 to
17156 GOMP_sections_start, even if !exit_reachable.
17157
17158 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17159
17160 * lra-constraints.c (need_for_all_save_p): Use macro
17161 HARD_REGNO_CALL_PART_CLOBBERED.
17162 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17163 set up pseudo conflict hard regs.
17164
17165 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17166
17167 PR target/58452
17168 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17169 operands.
17170
17171 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17172
17173 PR rtl-optimization/58438
17174 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17175 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17176 from previous subpasses.
17177
17178 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
17179
17180 * arm.c (arm_get_frame_offsets): Validate architecture supports
17181 LDRD/STRD before accepting the tuning preference.
17182 (arm_expand_prologue): Likewise.
17183 (arm_expand_epilogue): Likewise.
17184
17185 2013-09-18 Richard Biener <rguenther@suse.de>
17186
17187 PR tree-optimization/58417
17188 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17189 have chrecs with symbols defined in the loop as operands.
17190 (chrec_fold_multiply): Likewise.
17191 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17192 parameters before folding binary operations.
17193 (struct instantiate_cache_entry_hasher): Remove.
17194 (struct instantiate_cache_type): Use a pointer-map.
17195 (instantiate_cache_type::instantiate_cache_type): New function.
17196 (instantiate_cache_type::get): Likewise.
17197 (instantiate_cache_type::set): Likewise.
17198 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17199 (get_instantiated_value_entry): Likewise.
17200 (global_cache): New global.
17201 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17202 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17203 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17204 (instantiate_scev_name): Adjust.
17205 (instantiate_scev): Construct global instead of local cache.
17206 (resolve_mixers): Likewise.
17207
17208 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
17209 Paolo Carlini <paolo.carlini@oracle.com>
17210
17211 PR c++/58458
17212 * doc/implement-cxx.texi: Fix references to the C++ standards.
17213
17214 2013-09-18 Jakub Jelinek <jakub@redhat.com>
17215
17216 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17217 * tree-vect-data-refs.c (vect_analyze_data_refs): For
17218 simd_lane_access drs, update also DR_ALIGNED_TO.
17219
17220 2013-09-18 Marek Polacek <polacek@redhat.com>
17221
17222 PR sanitizer/58411
17223 * doc/extend.texi: Document no_sanitize_undefined attribute.
17224 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17225 no_sanitize_undefined attribute.
17226
17227 2013-09-18 Nick Clifton <nickc@redhat.com>
17228
17229 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17230 (ASM_DECLARE_FUNCTION_NAME): Define.
17231
17232 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
17233
17234 * compare-elim.c (find_comparison_dom_walker): New class
17235 (find_comparisons_in_bb): Rename to
17236 find_comparison_dom_walker::before_dom_children
17237 (find_comparisons): Adjust
17238 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17239 adjust.
17240 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17241 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17242 (init_walk_dominator_tree): Remove declaration.
17243 (fini_walk_dominator_tree): Remove declaration.
17244 * fwprop.c (single_def_use_dom_walker): New class
17245 (single_def_use_enter_block): Convert to
17246 single_def_use_dom_walker::before_dom_children.
17247 (single_def_use_leave_block): Convert to
17248 single_def_use_dom_walker::after_dom_children.
17249 (build_single_def_use_links): Adjust.
17250 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17251 class.
17252 (find_candidates_in_block): Convert to
17253 find_candidates_dom_walker::before_dom_children.
17254 (execute_strength_reduction): Adjust.
17255 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17256 (sese_dom_walker): New class.
17257 (sese_dom_walker::sese_dom_walker): New constructor.
17258 (sese_dom_walker::~sese_dom_walker): New destructor.
17259 (build_sese_conditions_before): Convert to
17260 sese_dom_walker::before_dom_children.
17261 (build_sese_conditions_after): Convert to
17262 sese_dom_walker::after_dom_children.
17263 (build_poly_scop): Adjust
17264 * tree-into-ssa.c (rewrite_dom_walker): New class
17265 (rewrite_enter_block): Convert to
17266 rewrite_dom_walker::before_dom_children.
17267 (rewrite_leave_block): Convert to
17268 rewrite_dom_walker::after_dom_children.
17269 (rewrite_update_dom_walker): New class.
17270 (rewrite_update_enter_block): Convert to
17271 rewrite_update_dom_walker::before_dom_children.
17272 (rewrite_update_leave_block): Convert to
17273 rewrite_update_dom_walker::after_dom_children.
17274 (rewrite_blocks, rewrite_into_ssa): Adjust.
17275 (mark_def_dom_walker): New class.
17276 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17277 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17278 (mark_def_sites_blocks): Convert to
17279 mark_def_dom_walker::before_dom_children.
17280 (mark_def_site_blocks): Remove.
17281 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17282 (tree_ssa_dominator_optimize): Adjust.
17283 (dom_thread_across_edge): Convert to method
17284 dom_opt_dom_walker::thread_across_edge.
17285 (dom_opt_enter_block): Convert to member function
17286 dom_opt_dom_walker::before_dom_children.
17287 (dom_opt_leave_block): Convert to member function
17288 dom_opt_dom_walker::after_dom_children.
17289 * tree-ssa-dse.c (dse_dom_walker): New class.
17290 (dse_enter_block): Convert to member function
17291 dse_dom_walker::before_dom_children.
17292 (tree_ssa_dse): Adjust.
17293 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17294 (determine_invariantness_stmt): Convert to method
17295 invariantness_dom_walker::before_dom_children.
17296 (determine_invariantness): Remove
17297 (move_computations_dom_walker): New class.
17298 (move_computations_stmt): Convert to method
17299 move_computations_dom_walker::before_dom_children.
17300 (move_computations, tree_ssa_lim): Adjust.
17301 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17302 (nt_init_block): Convert to method
17303 notrappping_dom_walker::before_dom_children.
17304 (nt_fini_block): Convert to method
17305 method nontrapping_dom_walker::after_dom_children.
17306 (get_non_trapping): Adjust.
17307 * tree-ssa-pre.c (eliminate_dom_walker): New class.
17308 (eliminate_bb): Convert to method
17309 eliminate_dom_walker::before_dom_children.
17310 (eliminate_leave_block): Convert to method
17311 eliminate_dom_walker::after_dom_children.
17312 (eliminate): Adjust.
17313 * tree-ssa-strlen.c (strlen_dom_walker): New class.
17314 (strlen_enter_block): Convert to method
17315 strlen_dom_walker::before_dom_children.
17316 (strlen_leave_block): Convert to method
17317 method strlen_dom_walker::after_dom_children.
17318 (tree_ssa_strlen): Adjust.
17319 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17320 (tree_ssa_uncprop): Adjust.
17321 (uncprop_leave_block): Convert to method
17322 uncprop_dom_walker::after_dom_children.
17323 (uncprop_leave_block): Convert to method
17324 uncprop_dom_walker::before_dom_children.
17325
17326 2013-09-18 Bin Cheng <bin.cheng@arm.com>
17327
17328 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17329 branch in same basic block. Check both src and dest of the move insn.
17330
17331 2013-09-17 Nick Clifton <nickc@redhat.com>
17332
17333 * config/rl78/rl78-real.md (bf): New pattern.
17334 (bt): New pattern.
17335 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17336 (rl78_print_operand): Do not put a # before a %B.
17337 * config/rl78/rl78.opt: Tweak doc strings.
17338
17339 2013-09-17 DJ Delorie <dj@redhat.com>
17340
17341 * config/rl78/constraints.md (Wcv): Allow up to $r31.
17342 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17343 (rl78_option_override): Likewise, if -mallregs.
17344 (is_virtual_register): Likewise.
17345 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17346 (REGNO_OK_FOR_BASE_P): Likewise.
17347 * config/rl78/rl78.opt (-mallregs): New.
17348
17349 2013-09-17 Nick Clifton <nickc@redhat.com>
17350
17351 * config/rl78/rl78.c (need_to_save): Change return type to bool.
17352 For interrupt functions: save all call clobbered registers if the
17353 interrupt handler is not a leaf function.
17354 (rl78_expand_prologue): Always recompute the frame information.
17355 For interrupt functions: only select bank 0 if one of the bank 0
17356 registers is going to be psuhed.
17357
17358 2013-09-17 DJ Delorie <dj@redhat.com>
17359
17360 * config/rl78/constraints.md: For each W* constraint, rename to C*
17361 and create a W* constraint that checks for an optional ES: prefix
17362 pattern also.
17363 * config/rl78/rl78.md (UNS_ES_ADDR): New.
17364 (es_addr): New. Used to wrap far addresses.
17365 * config/rl78/rl78-protos.h (rl78_es_addr): New.
17366 (rl78_es_base): New.
17367 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17368 wrapped far addresses.
17369 (rl78_print_operand_1): Unwrap far addresses before processing.
17370 (rl78_lo16): Wrap far addresses in unspecs.
17371 (rl78_es_addr): New.
17372 (rl78_es_base): New.
17373 (insn_ok_now): Check for not-yet-wrapped far addresses.
17374 (transcode_memory_rtx): Properly re-wrap far addresses.
17375
17376 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17377
17378 * config/sparc/t-rtems: Add leon3 multilibs.
17379
17380 2013-09-17 Cong Hou <congh@google.com>
17381
17382 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17383 when checking the dot production pattern. The type of rhs operand
17384 of multiply is now checked correctly.
17385
17386 2013-09-17 Jeff Law <law@redhat.com>
17387
17388 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17389 edge implied equivalences into successor phis.
17390 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17391 here from tree-ssa-threadedge.c.
17392 (mark_threaded_blocks): When threading through a joiner, if both
17393 successors of the joiner's clone reach the same block, verify the
17394 PHI arguments are equal. If not, cancel the jump threading request.
17395 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17396 tree-ssa-threadupdate.c
17397 (thread_across_edge): Don't check PHI argument equality when
17398 threading through joiner block here.
17399
17400 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
17401
17402 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17403 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17404 (warn_uninit, warn_uninitialized_vars,
17405 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17406 Move to tree-ssa-uninit.c.
17407 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17408 (has_undefined_value_p): New. Pass dependant parts of
17409 ssa_undefined_value_p.
17410 (uninit_undefined_value_p): Use has_undefined_value_p.
17411 (warn_uninit, warn_uninitialized_vars,
17412 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17413 Move from tree-ssa.c.
17414 * tree-ssa.h: Adjust prototypes.
17415
17416 2013-09-17 Jan Hubicka <jh@suse.cz>
17417
17418 PR middle-end/58332
17419 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17420 * ipa-inline.c (can_inline_edge_p): Do not downgrade
17421 FUNCTION_NOT_OPTIMIZED.
17422 * ipa-inline-analysis.c (compute_inline_parameters): Function
17423 not optimized is not inlinable unless it is alwaysinline.
17424 (inline_analyze_function): Force calls in not optimized
17425 function not inlinable.
17426
17427 2013-09-17 Jan Hubicka <jh@suse.cz>
17428
17429 PR middle-end/58329
17430 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17431 to return NULL.
17432 * ipa.c (function_and_variable_visibility): Likewise.
17433 * ipa-profile.c (ipa_profile): Likewise.
17434
17435 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
17436
17437 PR ipa/58398
17438 * cgraph.c (cgraph_function_body_availability): Check for ifunc
17439 attribute, and don't inline the resolver in this case.
17440
17441 2013-09-17 Teresa Johnson <tejohnson@google.com>
17442
17443 * coverage.c (get_coverage_counts): Add missing newline.
17444
17445 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17446
17447 PR tree-optimization/58088
17448 * fold-const.c (mask_with_trailing_zeros): New function.
17449 (fold_binary_loc): Make sure we don't recurse infinitely
17450 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17451 Use mask_with_trailing_zeros where appropriate.
17452
17453 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17454
17455 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17456 of 'prev' var to get better distance estimation.
17457
17458 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17459
17460 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17461 * tree-inline.c (is_parameter_of): New predicate.
17462 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17463 a parameter has been remapped.
17464 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17465 (optimize_inline_calls): Initialize transform_parameter.
17466 (copy_gimple_seq_and_replace_locals): Likewise.
17467 (tree_function_versioning): Likewise.
17468 (maybe_inline_call_in_expr): Likewise.
17469
17470 2013-09-17 Nick Clifton <nickc@redhat.com>
17471
17472 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17473 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17474 interrupt handlers.
17475 (is_attr_func): New function.
17476 (msp430_is_interrupt_func): New function.
17477 (is_naked_func): New function.
17478 (is_reentrant_func): New function.
17479 (is_critical_func): New function.
17480 (msp430_start_function): Add annotations for function attributes.
17481 (msp430_attr): New function.
17482 (msp430_attribute_table): New.
17483 (msp430_function_section): New function.
17484 (TARGET_ASM_FUNCTION_SECTION): Define.
17485 (msp430_builtin): New enum.
17486 (msp430_init_builtins): New function.
17487 (msp430_builtin_devl): New function.
17488 (msp430_expand_builtin): New function.
17489 (TARGET_INIT_BUILTINS): Define.
17490 (TARGET_EXPAND_BUILTINS): Define.
17491 (TARGET_BUILTIN_DECL): Define.
17492 (msp430_expand_prologue): Add support for naked, interrupt,
17493 critical and reentrant functions.
17494 (msp430_expand_epilogue): Likewise.
17495 (msp430_print_operand): Handle 'O' character.
17496 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17497 NO_TRAMPOLINES.
17498 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17499 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17500 (pushm): Use a 'n' rather than an 'i' constraint.
17501 (msp_return): Add generation of the interrupt return instruction.
17502 (disable_interrupts): New pattern.
17503 (enable_interrupts): New pattern.
17504 (push_intr_state): New pattern.
17505 (pop_intr_state): New pattern.
17506 (bic_SR): New pattern.
17507 (bis_SR): New pattern.
17508 * doc/extend.texi: Document MSP430 function attributes and builtin
17509 functions.
17510
17511 2013-09-17 Richard Biener <rguenther@suse.de>
17512
17513 PR tree-optimization/58432
17514 * tree-loop-distribution.c (tree_loop_distribution): Also
17515 scan PHIs for outside loop uses and seed a partition from them.
17516
17517 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17518
17519 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17520 (restructure_reference): Call backtrace_base_for_ref.
17521
17522 2013-09-17 Alan Modra <amodra@gmail.com>
17523
17524 PR target/57589
17525 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17526 patch.
17527
17528 2013-09-16 DJ Delorie <dj@redhat.com>
17529
17530 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17531 vregs location for RL78/G10.
17532 (rl78_expand_prologue): Avoid SEL on G10.
17533 (rl78_expand_epilogue): Likewise.
17534 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17535 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17536 __RL78_G10__ when appropriate.
17537 (ASM_SPEC): Pass -mg10 along to the assembler.
17538 * config/rl78/rl78.md (sel_rb): Disable for G10.
17539 * config/rl78/rl78.opt: Add -mg10 option.
17540 * config/rl78/t-rl78: Add -mg10 multilib.
17541
17542 2013-09-16 Xinliang David Li <davidxl@google.com>
17543
17544 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17545 * omp-low.c (omp_max_vf): Ditto.
17546 (expand_omp_simd): Ditto.
17547 * tree-vectorizer.c (vectorize_loops): Ditto.
17548 (gate_vect_slp): Ditto.
17549 (gate_increase_alignment): Ditto.
17550 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17551 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17552 (gate_tree_vectorize): Name change.
17553 (tree_vectorize): Ditto.
17554 (pass_vectorize::gate): Call new function.
17555 (pass_vectorize::execute): Ditto.
17556 * opts.c: O3 default setting change.
17557 (finish_options): Check new flag.
17558 * doc/invoke.texi: Document new flags.
17559 * common.opt: New flags.
17560
17561 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17562
17563 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17564 (Condition Code): Don't reference it.
17565 * doc/tm.texi: Regenerate.
17566
17567 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17568
17569 PR middle-end/58418
17570 * lra-constraints.c (undo_optional_reloads): Consider all optional
17571 reload even if it did not get a hard reg.
17572
17573 2013-09-16 Teresa Johnson <tejohnson@google.com>
17574
17575 * dumpfile.c (dump_loc): Remove newline emission.
17576 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17577 emission to dump_printf_loc calls where missing.
17578 (vect_mark_for_runtime_alias_test): Ditto.
17579 (vect_analyze_data_ref_dependence): Ditto.
17580 (vect_analyze_data_ref_dependences): Ditto.
17581 (vect_slp_analyze_data_ref_dependence): Ditto.
17582 (vect_slp_analyze_data_ref_dependences): Ditto.
17583 (vect_compute_data_ref_alignment): Ditto.
17584 (vect_update_misalignment_for_peel): Ditto.
17585 (vect_verify_datarefs_alignment): Ditto.
17586 (vector_alignment_reachable_p): Ditto.
17587 (vect_get_data_access_cost): Ditto.
17588 (vect_enhance_data_refs_alignment): Ditto.
17589 (vect_find_same_alignment_drs): Ditto.
17590 (vect_analyze_data_refs_alignment): Ditto.
17591 (vect_analyze_group_access): Ditto.
17592 (vect_analyze_data_ref_access): Ditto.
17593 (vect_analyze_data_ref_accesses): Ditto.
17594 (vect_prune_runtime_alias_test_list): Ditto.
17595 (vect_analyze_data_refs): Ditto.
17596 (vect_create_addr_base_for_vector_ref): Ditto.
17597 (vect_create_data_ref_ptr): Ditto.
17598 (vect_grouped_store_supported): Ditto.
17599 (vect_grouped_load_supported): Ditto.
17600 * value-prof.c (check_counter): Ditto.
17601 (check_ic_target): Ditto.
17602 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17603 (vect_recog_widen_mult_pattern): Ditto.
17604 (vect_recog_widen_sum_pattern): Ditto.
17605 (vect_recog_over_widening_pattern): Ditto.
17606 (vect_recog_widen_shift_pattern): Ditto.
17607 (vect_recog_rotate_pattern): Ditto.
17608 (vect_recog_vector_vector_shift_pattern): Ditto.
17609 (vect_recog_divmod_pattern): Ditto.
17610 (vect_recog_mixed_size_cond_pattern): Ditto.
17611 (vect_recog_bool_pattern): Ditto.
17612 (vect_pattern_recog_1): Ditto.
17613 (vect_pattern_recog): Ditto.
17614 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17615 (vect_is_simple_iv_evolution): Ditto.
17616 (vect_analyze_scalar_cycles_1): Ditto.
17617 (vect_get_loop_niters): Ditto.
17618 (vect_analyze_loop_1): Ditto.
17619 (vect_analyze_loop_form): Ditto.
17620 (vect_analyze_loop_operations): Ditto.
17621 (vect_analyze_loop_2): Ditto.
17622 (vect_analyze_loop): Ditto.
17623 (report_vect_op): Ditto.
17624 (vect_is_slp_reduction): Ditto.
17625 (vect_is_simple_reduction_1): Ditto.
17626 (vect_get_known_peeling_cost): Ditto.
17627 (vect_estimate_min_profitable_iters): Ditto.
17628 (vect_model_reduction_cost): Ditto.
17629 (vect_model_induction_cost): Ditto.
17630 (get_initial_def_for_induction): Ditto.
17631 (vect_create_epilog_for_reduction): Ditto.
17632 (vectorizable_reduction): Ditto.
17633 (vectorizable_induction): Ditto.
17634 (vectorizable_live_operation): Ditto.
17635 (vect_loop_kill_debug_uses): Ditto.
17636 (vect_transform_loop): Ditto.
17637 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17638 (vect_stmt_relevant_p): Ditto.
17639 (process_use): Ditto.
17640 (vect_mark_stmts_to_be_vectorized): Ditto.
17641 (vect_model_simple_cost): Ditto.
17642 (vect_model_promotion_demotion_cost): Ditto.
17643 (vect_model_store_cost): Ditto.
17644 (vect_get_store_cost): Ditto.
17645 (vect_model_load_cost): Ditto.
17646 (vect_get_load_cost): Ditto.
17647 (vect_init_vector_1): Ditto.
17648 (vect_get_vec_def_for_operand): Ditto.
17649 (vect_finish_stmt_generation): Ditto.
17650 (vectorizable_call): Ditto.
17651 (vectorizable_conversion): Ditto.
17652 (vectorizable_assignment): Ditto.
17653 (vectorizable_shift): Ditto.
17654 (vectorizable_operation): Ditto.
17655 (vectorizable_store): Ditto.
17656 (vectorizable_load): Ditto.
17657 (vectorizable_condition): Ditto.
17658 (vect_analyze_stmt): Ditto.
17659 (vect_transform_stmt): Ditto.
17660 (vect_is_simple_use): Ditto.
17661 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17662 (vect_can_advance_ivs_p): Ditto.
17663 (vect_update_ivs_after_vectorizer): Ditto.
17664 (vect_do_peeling_for_loop_bound): Ditto.
17665 (vect_gen_niters_for_prolog_loop): Ditto.
17666 (vect_update_inits_of_drs): Ditto.
17667 (vect_create_cond_for_alias_checks): Ditto.
17668 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17669 (vect_build_slp_tree_1): Ditto.
17670 (vect_supported_load_permutation_p): Ditto.
17671 (vect_analyze_slp_instance): Ditto.
17672 (vect_analyze_slp): Ditto.
17673 (vect_make_slp_decision): Ditto.
17674 (vect_detect_hybrid_slp): Ditto.
17675 (vect_bb_vectorization_profitable_p): Ditto.
17676 (vect_slp_analyze_bb_1): Ditto.
17677 (vect_update_slp_costs_according_to_vf): Ditto.
17678 (vect_get_mask_element): Ditto.
17679 (vect_transform_slp_perm_load): Ditto.
17680 (vect_schedule_slp_instance): Ditto.
17681 (vect_schedule_slp): Ditto.
17682 (vect_slp_transform_bb): Ditto.
17683 * profile.c (read_profile_edge_counts): Ditto.
17684 (compute_branch_probabilities): Ditto.
17685 * coverage.c (get_coverage_counts): Ditto.
17686
17687 2013-09-16 Diego Novillo <dnovillo@google.com>
17688
17689 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17690
17691 2013-09-16 Jan Hubicka <jh@suse.cz>
17692
17693 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17694 abstract functions; for static functions check the presence of body.
17695
17696 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17697
17698 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17699 * config/aarch64/aarch64-simd.md
17700 (aarch64_mla_elt<mode>): New.
17701 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17702 (aarch64_mls_elt<mode>): Likewise.
17703 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17704 (aarch64_fma4_elt<mode>): Likewise.
17705 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17706 (aarch64_fma4_elt_to_128v2df): Likewise.
17707 (aarch64_fma4_elt_to_64df): Likewise.
17708 (fnma<mode>4): Likewise.
17709 (aarch64_fnma4_elt<mode>): Likewise.
17710 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17711 (aarch64_fnma4_elt_to_128v2df): Likewise.
17712 (aarch64_fnma4_elt_to_64df): Likewise.
17713 * config/aarch64/iterators.md (VDQSF): New.
17714 * config/aarch64/arm_neon.h
17715 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17716 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17717
17718 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17719
17720 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17721 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17722 (aarch64_mul3_elt_to_128df): Likewise.
17723 (aarch64_mul3_elt_to_64v2df): Likewise.
17724 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17725 (VMUL): New.
17726 (VMUL_CHANGE_NLANES) Likewise.
17727 (h_con): Likewise.
17728 (f): Likewise.
17729 * config/aarch64/arm_neon.h
17730 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17731
17732 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17733
17734 * config/aarch64/arm_neon.h
17735 (vcvtx_high_f32_f64): Fix parameters.
17736
17737 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17738 Uros Bizjak <ubizjak@gmail.com>
17739
17740 * config/alpha.c: Include tree-ssanames.h.
17741
17742 2013-09-16 Richard Biener <rguenther@suse.de>
17743
17744 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17745 (dot_rdg_1): Handle control_dd.
17746 (create_edge_for_control_dependence): New function.
17747 (create_rdg_edges): Add control dependences if asked for.
17748 (build_rdg): Likewise.
17749 (generate_loops_for_partition): If there are not necessary
17750 control stmts remove all their dependencies.
17751 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17752 (distribute_loop): Pass on control dependences.
17753 (tree_loop_distribution): Compute control dependences and remove
17754 restriction on number of loop nodes.
17755
17756 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17757
17758 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17759 for internal calls.
17760
17761 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17762
17763 * cse.c (try_const_anchors): Punt on CC modes.
17764
17765 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17766
17767 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17768
17769 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17770
17771 PR target/58382
17772 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17773 calls to word_mode.
17774
17775 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17776
17777 PR target/48094
17778 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17779 seen.
17780 (darwin_objc1_section): Likewise.
17781 (darwin_file_end): Emit Image Info section when required.
17782
17783 2013-09-14 Jan Hubicka <jh@suse.cz>
17784
17785 * tree-into-ssa.c (gate_into_ssa): New.
17786 (pass_data_build_ssa): Use it.
17787 * cgraph.h (expand_thunk): Update prototype.
17788 * cgraphunit.c (analyze_function): Expand thunks early.
17789 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17790 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17791 set lowered flag; do not add new function.
17792 (assemble_thunks_and_aliases): Update.
17793 * tree-ssa.c (gate_init_datastructures): New gate.
17794 (pass_data_init_datastructures): Use it.
17795
17796 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17797
17798 PR target/58269
17799 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17800 xmm register set described in the psABI.
17801
17802 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17803
17804 * dwarf2out.c (should_emit_struct_debug): Add check
17805 for type_decl variable is not NULL.
17806
17807 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17808
17809 * config.gcc: Use new winnt-c.c target hooks
17810 * config/t-winnt: New file
17811 * config/winnt-c.c: New file
17812 * doc/tm.texi.in: Document new hook
17813 * doc/tm.texi: Regenerated
17814
17815 2013-09-13 Jan Hubicka <jh@suse.cz>
17816
17817 PR middle-end/58094
17818 * ipa-inline.c (check_callers): New function.
17819 (check_caller_edge): Remove.
17820 (want_inline_function_to_all_callers_p): Also permit alises that are
17821 called dirrectly.
17822 (inline_to_all_callers): Terminate the walk when devirtualization
17823 introduce new calls.
17824
17825 2013-09-13 Jan Hubicka <jh@suse.cz>
17826
17827 * ipa-inline-analysis.c (struct growth_data): Add node.
17828 (do_estimate_growth_1): Fix detection of recursion.
17829
17830 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17831
17832 PR tree-optimization/58392
17833 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17834 to avoid shadowing of outer loop variable. If
17835 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17836 replace_by_duplicate_decl simduid of loops that have it set and
17837 set dest_cfun->has_simduid_loops and/or
17838 dest_cfun->has_force_vect_loops.
17839 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17840 instead of maybe_lookup_decl.
17841 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17842 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17843 call. Copy over force_vect and copy and remap simduid. Set
17844 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17845 (copy_cfg_body): Remove blocks_to_copy argument. Use
17846 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17847 caller. Don't set cfun->has_simduid_loops and/or
17848 cfun->has_force_vect_loops here.
17849 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17850 caller.
17851 (expand_call_inline, tree_function_versioning): Adjust copy_body
17852 callers.
17853
17854 2013-09-13 Martin Jambor <mjambor@suse.cz>
17855
17856 PR bootstrap/58388
17857 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17858 the assert if the edge was a speculative one.
17859
17860 2013-09-13 Richard Biener <rguenther@suse.de>
17861
17862 * tree-data-ref.h (known_dependences_p): Move here ...
17863 * tree-loop-distribution.c (known_dependences_p): ... from here.
17864 (dump_rdg_component, debug_rdg_component): Remove.
17865 (dump_rdg): Adjust.
17866 (generate_loops_for_partition): Use gimple_uid instead of
17867 relying on matching stmt visit order.
17868 (rdg_build_partitions): Take starting stmt vector.
17869 (ldist_gen): Merge into ...
17870 (distribute_loop): ... this function. Do not compute starting
17871 vertices vector.
17872 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17873
17874 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17875
17876 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17877 Set type attribute correctly. Set predicable_short_it attribute.
17878 (cmpsi_shiftsi): Remove %? from output template.
17879
17880 2013-09-13 Richard Biener <rguenther@suse.de>
17881
17882 * tree-loop-distribution.c (struct rdg_component,
17883 rdg_defs_used_in_other_loops_p, free_rdg_components,
17884 rdg_build_components): Remove.
17885 (stmts_from_loop): Do not record virtual PHIs.
17886 (generate_loops_for_partition): Skip virtual PHIs.
17887 (build_rdg_partition_for_component): Rename to ...
17888 (build_rdg_partition_for_vertex): ... this and adjust.
17889 (rdg_build_partitions): Take a vector of starting vertices
17890 instead of components. Remove unnecessary leftover handling.
17891 (ldist_gen): Do not build components or record other stores.
17892 (distribute_loop): Do not distribute loops containing stmts
17893 with side-effects.
17894
17895 2013-09-13 Christian Bruel <christian.bruel@st.com>
17896
17897 PR target/58314
17898 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17899
17900 2013-09-13 Kai Tietz <ktietz@redhat.com>
17901
17902 * config.gcc: Separate cases for mingw and cygwin targets,
17903 and add 64-bit cygwin target case.
17904
17905 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17906 dll-export inline-functions.
17907 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17908
17909 2013-09-13 Jeff Law <law@redhat.com>
17910
17911 PR middle-end/58387
17912 Revert:
17913 2013-09-06 Jeff Law <law@redhat.com>
17914
17915 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17916 edge implied equivalences into successor phis.
17917
17918 2013-09-12 DJ Delorie <dj@redhat.com>
17919
17920 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17921 separators.
17922
17923 2013-09-12 Brooks Moses <bmoses@google.com>
17924
17925 PR driver/42955
17926 * Makefile.in: Do not install driver binaries in $(target)/bin.
17927
17928 2013-09-12 DJ Delorie <dj@redhat.com>
17929
17930 * config/rl78/rl78.opt (mrelax): New.
17931 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17932 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17933
17934 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17935 between SP and FP.
17936 (rl78_expand_epilogue): Likewise.
17937
17938 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17939
17940 PR middle-end/58335
17941 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17942 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17943 pointer elimination with using remove_reg_equal_offset_note.
17944
17945 2013-09-12 DJ Delorie <dj@redhat.com>
17946
17947 * config/msp430/: New port.
17948 * config.gcc (msp430): Added.
17949 * doc/invoke.texi: Document MSP430 options.
17950 * doc/install.texi: Document msp430-elf
17951 * doc/md.texi: Document msp430-elf
17952 * doc/contrib.texi: Document msp430-elf
17953
17954 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17955 PSImode.
17956
17957 2013-09-12 Martin Jambor <mjambor@suse.cz>
17958
17959 PR ipa/58389
17960 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17961 reference descriptor is NULL.
17962 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17963 edge to NULL.
17964
17965 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17966
17967 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17968 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17969 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17970 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17971 make_temp_ssa_name): move to tree-ssanames.h
17972 * tree-ssa-alias.h: Move prototype.
17973 * tree-ssa.h: Include tree-ssanames.h.
17974 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17975 * tree-ssanames.h: New. Move items from tree-flow*.h
17976 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17977
17978 2013-09-12 Richard Biener <rguenther@suse.de>
17979
17980 PR tree-optimization/58404
17981 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17982 propagate non-invariant addresses into dereferences wrapped
17983 in component references.
17984
17985 2013-09-12 Richard Biener <rguenther@suse.de>
17986
17987 PR tree-optimization/58402
17988 * passes.def: Move pass_late_warn_uninitialized later.
17989
17990 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17991
17992 * tree-ssa.h: New. Move content from tree-flow.h and
17993 tree-flow-inline.h.
17994 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17995 Move prototypes belonging to tree-ssa.c.
17996 * tree-flow-inline.h (redirect_edge_var_map_def,
17997 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17998 tree-ssa.h.
17999 * gimple.h: Adjust prototypes.
18000 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
18001 to...
18002 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
18003 * tree.h: Move prototype to tree-ssa.h.
18004 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
18005 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18006 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18007 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18008 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18009 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18010 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18011 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18012 graphite-blocking.c, graphite-clast-to-gimple.c,
18013 graphite-dependences.c, graphite-interchange.c,
18014 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18015 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18016 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18017 ipa-reference.c, ipa-split.c, ipa-utils.c,
18018 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18019 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18020 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18021 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18022 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18023 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18024 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18025 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18026 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18027 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18028 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18029 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18030 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18031 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18032 value-prof.c, var-tracking.c,
18033 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18034
18035 2013-09-12 Richard Biener <rguenther@suse.de>
18036
18037 PR tree-optimization/58396
18038 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18039 (build_rdg): Take a loop-nest parameter, fix memleaks.
18040 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18041
18042 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18043
18044 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18045 for SLM.
18046
18047 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
18048
18049 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18050 The FMA instruction names should have a 'v' prefix.
18051
18052 2013-09-12 Richard Biener <rguenther@suse.de>
18053
18054 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18055 (dot_rdg): Use popen instead of system in optional code.
18056 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18057 (already_processed_vertex_p): Adjust.
18058 (has_anti_or_output_dependence, predecessor_has_mem_write,
18059 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18060 rdg_flag_uses): Remove.
18061 (rdg_flag_vertex): Simplify.
18062 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18063 remove recursion.
18064 (build_rdg_partition_for_component): Process the first vertex
18065 of a component only.
18066 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18067
18068 2013-09-12 Alan Modra <amodra@gmail.com>
18069
18070 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18071
18072 2013-09-11 DJ Delorie <dj@redhat.com>
18073 Nick Clifton <nickc@redhat.com>
18074
18075 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18076 (rl78_stack_based_mem): New.
18077 * config/rl78/constraints.md (Iv08): New.
18078 (Iv16): New.
18079 (Iv24): New.
18080 (Is09): New.
18081 (Is17): New.
18082 (Is25): New.
18083 (ISsi): New.
18084 (IShi): New.
18085 (ISqi): New.
18086 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18087 (movhi): Likewise.
18088 (movsi): Change from expand to insn-and-split.
18089 (ashrsi3): Clobber AX.
18090 (lshrsi3): New.
18091 (ashlsi3): New.
18092 (cbranchsi4): New.
18093 * config/rl78/rl78.md (CC_REG): Fix.
18094 (addsi3): Allow memory and immediate operands.
18095 (addsi3_internal): Split into...
18096 (addsi3_internal_virt): ...new, and ...
18097 (addsi3_internal_real): ...new.
18098 (subsi): New.
18099 (subsi3_internal_virt): New.
18100 (subsi3_internal_real): New.
18101 (mulsi3): Add memory operand.
18102 (mulsi3_rl78): Likewise.
18103 (mulsi3_g13): Likewise.
18104 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18105 (cbranchqi4_real): Add more constraint options.
18106 (cbranchhi4_real): Expand pattern.
18107 (cbranchhi4_real_signed): New.
18108 (cbranchhi4_real_inverted): New.
18109 (cbranchsi4_real_lt): New.
18110 (cbranchsi4_real_ge): New.
18111 (cbranchsi4_real_signed): New.
18112 (cbranchsi4_real): New.
18113 (peephole2): New.
18114 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18115 constant shifts.
18116 (lshrsi3_virt): Likewise.
18117 (ashlsi3_virt): Likewise.
18118 (cbranchqi4_virt_signed): New.
18119 (cbranchhi4_virt_signed): New.
18120 (cbranchsi4_virt): New.
18121 * config/rl78/rl78.c: Whitespace fixes throughout.
18122 (move_elim_pass): New.
18123 (pass_data_rl78_move_elim): New.
18124 (pass_rl78_move_elim): New.
18125 (make_pass_rl78_move_elim): New.
18126 (rl78_devirt_info): Run devirt earlier.
18127 (rl78_move_elim_info): New.
18128 (rl78_asm_file_start): Register it.
18129 (rl78_split_movsi): New.
18130 (rl78_as_legitimate_address): Allow virtual base registers when
18131 appropriate.
18132 (rl78_addr_space_convert): Remove spurious debug stuff.
18133 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18134 (rl78_print_operand): More cases for not printing '#'.
18135 (rl78_expand_compare): Remove most of the logic.
18136 (content_memory): New.
18137 (clear_content_memory): New.
18138 (get_content_index): New.
18139 (get_content_name): New.
18140 (display_content_memory): New.
18141 (update_content): New.
18142 (record_content): New.
18143 (already_contains): New.
18144 (insn_ok_now): Re-recog insns with virtual registers.
18145 (add_postponed_content_update): New.
18146 (process_postponed_content_update): New.
18147 (gen_and_emit_move): New.
18148 (transcode_memory_rtx): Record new location content.
18149 Use gen_and_emit_move.
18150 (force_into_acc): New.
18151 (move_to_acc): Use gen_and_emit_move.
18152 (move_from_acc): Likewise.
18153 (move_acc_to_reg): Likewise.
18154 (move_to_x): Likewise.
18155 (move_to_hl): Likewise.
18156 (move_to_de): Likewise.
18157 (rl78_alloc_physical_registers_op1): Record location content.
18158 (has_constraint): New.
18159 (rl78_alloc_physical_registers_op2): Record location content.
18160 Optimize use of HL.
18161 (rl78_alloc_physical_registers_ro1): Likewise.
18162 (rl78_alloc_physical_registers_cmp): Likewise.
18163 (rl78_alloc_physical_registers_umul): Likewise.
18164 (rl78_alloc_address_registers_macax): New.
18165 (rl78_alloc_physical_registers): Initialize and set location
18166 content memory as needed.
18167 (rl78_reorg): Make sure split2 is called.
18168 (rl78_rtx_costs): New.
18169
18170 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
18171
18172 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18173 for (not (neg ...)) and (neg (not ...)) cases.
18174
18175 2013-09-11 Richard Biener <rguenther@suse.de>
18176
18177 PR middle-end/58377
18178 * passes.def: Split critical edges before late uninit warning passes.
18179 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18180
18181 2013-09-11 Jakub Jelinek <jakub@redhat.com>
18182
18183 PR tree-optimization/58385
18184 * fold-const.c (build_range_check): If both low and high are NULL,
18185 use omit_one_operand_loc to preserve exp side-effects.
18186
18187 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18188
18189 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18190
18191 2013-09-11 Richard Biener <rguenther@suse.de>
18192
18193 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18194 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18195 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18196 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18197 stmts_from_loop, known_dependences_p, build_empty_rdg,
18198 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18199 * tree-loop-distribution.c: ... here.
18200 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18201 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18202 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18203 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18204 * tree-loop-distribution.c: ... here.
18205 * tree-loop-distribution.c: Include gimple-pretty-print.h.
18206 (struct partition_s): Add loops member.
18207 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18208 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18209 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18210
18211 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18213 Sergey Lega <sergey.s.lega@intel.com>
18214 Anna Tikhonova <anna.tikhonova@intel.com>
18215 Ilya Tocar <ilya.tocar@intel.com>
18216 Andrey Turetskiy <andrey.turetskiy@intel.com>
18217 Ilya Verbin <ilya.verbin@intel.com>
18218 Kirill Yukhin <kirill.yukhin@intel.com>
18219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18220
18221 * config/i386/constraints.md (k): New.
18222 (Yk): Ditto.
18223 * config/i386/i386.c (const regclass_map): Add new mask registers.
18224 (dbx_register_map): Ditto.
18225 (dbx64_register_map): Ditto.
18226 (svr4_dbx_register_map): Ditto.
18227 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18228 disabled.
18229 (ix86_preferred_reload_class): Disable constants for mask registers.
18230 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18231 (ix86_hard_regno_mode_ok): Support new mask registers.
18232 (x86_order_regs_for_local_alloc): Ditto.
18233 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18234 (FIXED_REGISTERS): Add new mask registers.
18235 (CALL_USED_REGISTERS): Ditto.
18236 (REG_ALLOC_ORDER): Ditto.
18237 (VALID_MASK_REG_MODE): New.
18238 (FIRST_MASK_REG): Ditto.
18239 (LAST_MASK_REG): Ditto.
18240 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18241 (MAYBE_MASK_CLASS_P): New.
18242 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18243 (REG_CLASS_CONTENTS): Ditto.
18244 (MASK_REGNO_P): New.
18245 (ANY_MASK_REG_P): Ditto.
18246 (HI_REGISTER_NAMES): Add new mask registers.
18247 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18248 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18249 mask registers.
18250 (attribute "type"): Add mskmov, msklog.
18251 (attribute "length_immediate"): Support them.
18252 (attribute "memory"): Ditto.
18253 (attribute "prefix_0f"): Ditto.
18254 (*movhi_internal): Support new mask registers.
18255 (*movqi_internal): Ditto.
18256 (define_split): Split out clobber pattern is a logic
18257 insn on mask registers.
18258 (*k<logic><mode>): New.
18259 (*andhi_1): Extend to support mask regs.
18260 (*andqi_1): Extend to support mask regs.
18261 (kandn<mode>): New.
18262 (define_split): Split and-not to and and not if operands
18263 are not mask regs.
18264 (*<code><mode>_1): Separate HI mode to new pattern...
18265 (*<code>hi_1): This.
18266 (*<code>qi_1): Extend to support mask regs.
18267 (kxnor<mode>): New.
18268 (kortestzhi): Ditto.
18269 (kortestchi): Ditto.
18270 (kunpckhi): Ditto.
18271 (*one_cmpl<mode>2_1): Remove HImode and handle it...
18272 (*one_cmplhi2_1): ...Here, now with mask registers support.
18273 (*one_cmplqi2_1): Support new mask registers.
18274 (HI/QImode arithmetics splitter): Don't split if mask registers
18275 are used.
18276 (HI/QImode not splitter): Ditto.
18277 * config/i386/predicated.md (mask_reg_operand): New.
18278 (general_reg_operand): Ditto.
18279
18280 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18281
18282 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18283 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18284
18285 2013-09-10 Jeff Law <law@redhat.com>
18286
18287 PR tree-optimization/58380
18288 * tree-ssa-threadupdate.c (thread_block): Recognize another case
18289 of threading through a buried loop header.
18290
18291 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18292 return value for single successor case.
18293
18294 2013-09-10 Jan Hubicka <jh@suse.cz>
18295
18296 * ipa-devirt.c (ipa_devirt): Enable with LTO.
18297
18298 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
18299
18300 PR target/58361
18301 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18302 support conditional execution.
18303 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18304
18305 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
18306
18307 * lra.c (lra): Clear lra_optional_reload_pseudos before every
18308 constraint pass.
18309 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18310 Check destination too to check move insn.
18311 (undo_optional_reloads): Add check that the original peudo did not
18312 changed its allocation and the optional reload was inherited on last
18313 inheritance pass. Break loop after deciding to keep optional reload.
18314 (lra_undo_inheritance): Add check that inherited pseudo still in
18315 memory.
18316
18317 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
18318
18319 * config/aarch64/aarch64.md (generic_sched): New.
18320 * config/aarch64/aarch64-generic.md (load): Make conditional
18321 on generic_sched attribute.
18322 (nonload): Likewise.
18323
18324 2013-09-10 Jan Hubicka <jh@suse.cz>
18325
18326 * lto-cgraph.c: Include ipa-utils.h.
18327 (compute_ltrans_boundary): Also add possible targets into the boundary.
18328
18329 2013-09-10 Jan Hubicka <jh@suse.cz>
18330
18331 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18332 VAR_DECL of vtable rather than full expression.
18333
18334 2013-09-10 Jan Hubicka <jh@suse.cz>
18335 Paolo Carlini <paolo.carlini@oracle.com>
18336
18337 * cgraphunit.c (analyze_functions): Save input_location, set it
18338 to UNKNOWN_LOCATION and restore it at the end.
18339
18340 2013-09-10 Martin Jambor <mjambor@suse.cz>
18341
18342 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18343 represented by a thunk.
18344
18345 2013-09-10 Jeff Law <law@redhat.com>
18346
18347 PR tree-optimization/58343
18348 * tree-ssa-threadupdate.c (thread_block): Identify and disable
18349 jump threading requests through loop headers buried in the middle
18350 of a jump threading path.
18351
18352 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18353 in return value/type.
18354
18355 2013-09-10 Jakub Jelinek <jakub@redhat.com>
18356
18357 PR rtl-optimization/58365
18358 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18359 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18360 it differs.
18361
18362 2013-09-10 Richard Biener <rguenther@suse.de>
18363
18364 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18365 * tree-data-ref.c (create_rdg_vertices): Collect all data
18366 references, signal failure to the caller, use data-ref API.
18367 (build_rdg): Compute data references only once. Maintain lifetime
18368 of data references and data dependences from within RDG.
18369 (free_rdg): Free dependence relations.
18370 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18371 inventing extra dependences.
18372 (distribute_loop): Update for RDG API changes.
18373
18374 2013-09-10 Kai Tietz <ktietz@redhat.com>
18375
18376 * doc/invoke.texi (fms-extensions): Document changed
18377 behavior for ms-abi targets.
18378 * config/i386/i386.c (ix86_option_override_internal):
18379 Set default value of option -fms-extension for ms-abi targets.
18380
18381 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18382
18383 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18384
18385 2013-09-10 Alan Modra <amodra@gmail.com>
18386
18387 PR target/58330
18388 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18389
18390 2013-09-10 Alan Modra <amodra@gmail.com>
18391
18392 * config/rs6000/predicates.md (add_cint_operand): New.
18393 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18394 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18395 using add_cint_operand.
18396 (largetoc_high_plus_aix): Likewise.
18397
18398 2013-09-09 Jakub Jelinek <jakub@redhat.com>
18399
18400 PR tree-optimization/58364
18401 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18402 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18403 the current range can't be an unconditional true or false.
18404
18405 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
18406
18407 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18408
18409 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
18410
18411 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18412
18413 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
18414
18415 PR c++/43452
18416 * doc/invoke.texi (-Wdelete-incomplete): Document it.
18417
18418 2013-09-09 Ian Bolton <ian.bolton@arm.com>
18419
18420 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18421 NO_REGS for immediate that can't be moved directly into FP_REGS.
18422
18423 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18424
18425 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18426 comparison with negated operand.
18427 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18428 RTL form.
18429
18430 2013-09-09 Richard Biener <rguenther@suse.de>
18431
18432 PR middle-end/58326
18433 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18434 of a subloop record all its block as affecting loop-closed SSA form.
18435
18436 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18437
18438 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18439 of an rtx/bitpos pair.
18440 (store_fixed_bit_field): Update accordingly.
18441
18442 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18443
18444 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18445 GEN_INT.
18446 * builtins.c (expand_errno_check): Likewise.
18447 * dwarf2cfi.c (init_return_column_size): Likewise.
18448 * except.c (sjlj_mark_call_sites): Likewise.
18449 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18450 * lra-constraints.c (emit_inc): Likewise.
18451 * ree.c (combine_set_extension): Likewise.
18452 * regmove.c (fixup_match_2): Likewise.
18453 * reload1.c (inc_for_reload): Likewise.
18454
18455 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18456
18457 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18458 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18459 Use gen_int_mode with the mode of the associated simplify_* call.
18460 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18461 * expmed.c (expand_shift_1): Likewise.
18462 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18463 * loop-iv.c (iv_number_of_iterations): Likewise.
18464 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18465 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18466
18467 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18468
18469 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18470 of the associated expand_* call.
18471 (asan_emit_stack_protection): Likewise.
18472 * builtins.c (round_trampoline_addr): Likewise.
18473 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18474 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18475 (emit_store_flag): Likewise.
18476 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18477 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18478 Likewise.
18479 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18480 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18481 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18482 * modulo-sched.c (generate_prolog_epilog): Likewise.
18483 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18484 (expand_ctz, expand_ffs, expand_unop): Likewise.
18485
18486 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18487
18488 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18489 of the associated gen_rtx_* call.
18490 * caller-save.c (init_caller_save): Likewise.
18491 * combine.c (find_split_point, make_extraction): Likewise.
18492 (make_compound_operation): Likewise.
18493 * dwarf2out.c (mem_loc_descriptor): Likewise.
18494 * explow.c (plus_constant, probe_stack_range): Likewise.
18495 * expmed.c (expand_mult_const): Likewise.
18496 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18497 * reload1.c (init_reload): Likewise.
18498 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18499 * var-tracking.c (adjust_mems): Likewise.
18500 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18501 rather than gen_rtx_fmt_ee.
18502
18503 2013-09-09 Jan Hubicka <jh@suse.cz>
18504
18505 PR middle-end/58294
18506 * value-prof.c (gimple_ic): Copy also abnormal edges.
18507
18508 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18509
18510 * asan.c (asan_shadow_cst): Use gen_int_mode.
18511
18512 2013-09-08 Jan Hubicka <jh@suse.cz>
18513
18514 * ipa-profile.c: Add toplevel comment.
18515 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18516 (contains_hot_call_p): New function.
18517 (ipa_propagate_frequency): Set frequencies based on counts when
18518 profile is read.
18519 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18520 profile; do not tamper with profile after inlining if it is read.
18521
18522 2013-09-08 Jan Hubicka <jh@suse.cz>
18523
18524 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18525 speculative edges.
18526
18527 2013-09-08 Jan Hubicka <jh@suse.cz>
18528
18529 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18530 summary generation.
18531
18532 2013-09-08 Jeff Law <law@redhat.com>
18533
18534 PR bootstrap/58340
18535 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18536 of 'found'.
18537
18538 2013-09-08 Andi Kleen <ak@linux.intel.com>
18539
18540 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18541
18542 2013-09-08 Jan Hubicka <jh@suse.cz>
18543
18544 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18545
18546 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18547
18548 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18549 for non-debug insns.
18550 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18551 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18552 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18553 accordingly.
18554
18555 2013-09-08 Jan Hubicka <jh@suse.cz>
18556
18557 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18558 targets and devirtualize to BUILT_IN_UNREACHABLE.
18559 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18560 * ipa.c (walk_polymorphic_call_targets): New function.
18561 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18562 functions; use the new timevar.
18563 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18564 was removed from the program.
18565 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18566 not consider it in the walk when its vtable is dead.
18567 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18568 record_binfo.
18569 (devirt_variable_node_removal_hook): New function.
18570 (possible_polymorphic_call_targets): Also register
18571 devirt_variable_node_removal_hook.
18572 (ipa_devirt): Do not do non-speculative devirtualization.
18573 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18574
18575 2013-09-08 Jan Hubicka <jh@suse.cz>
18576
18577 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18578 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18579 varpool_remove_variable_insertion_hook): Declare.
18580 * varpool.c (varpool_node_hook_list): New structure.
18581 (first_varpool_node_removal_hook,
18582 first_varpool_variable_insertion_hook): New variables.
18583 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18584 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18585 varpool_remove_variable_insertion_hook,
18586 varpool_call_variable_insertion_hooks): New functions.
18587 (varpool_remove_node): Use it.
18588
18589 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18590
18591 PR c++/54941
18592 * diagnostic.c (diagnostic_build_prefix): When s.file is
18593 "<built-in>" don't output line and column numbers.
18594
18595 2013-09-06 Jan Hubicka <jh@suse.cz>
18596
18597 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18598 * lto-streamer-out.c: Stream thunks, too.
18599 * lto-streamer-in.c (input_function): Pop cfun here
18600 (lto_read_body): Instead of here.
18601
18602 2013-09-06 Caroline Tice <cmtice@google.com>
18603
18604 * doc/install.texi: Add documentation for the --enable-vtable-verify
18605 and the --disable-libvtv configure options.
18606
18607 2013-09-06 Jeff Law <law@redhat.com>
18608
18609 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18610 edge implied equivalences into successor phis.
18611
18612 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18613
18614 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18615
18616 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18617
18618 * resource.c (mark_target_live_regs): Compute resources taking
18619 into account if a call is predicated or not.
18620
18621 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18622
18623 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18624 the compiler in the function names.
18625
18626 2013-09-06 Jan Hubicka <jh@suse.cz>
18627
18628 PR middle-end/58094
18629 * ipa-inline.c (has_caller_p): New function.
18630 (want_inline_function_to_all_callers_p): Use it.
18631 (sum_callers, inline_to_all_callers): Break out from ...
18632 (ipa_inline): ... here.
18633
18634 2013-09-06 Jan Hubicka <jh@suse.cz>
18635
18636 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18637 only when AVX is enabled.
18638
18639 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18640
18641 * config/aarch64/aarch64.md
18642 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18643 is fpsimd_<load/store>2.
18644 (load_pair<mode>): Likewise.
18645 (store_pair<mode>): Likewise.
18646
18647 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18648
18649 * config/arm/types.md (type): Add "mrs" type.
18650 * config/aarch64/aarch64.md
18651 (aarch64_load_tp_hard): Make type "mrs".
18652 * config/arm/arm.md
18653 (load_tp_hard): Make type "mrs".
18654 * config/arm/cortex-a15.md: Update with new attributes.
18655 * config/arm/cortex-a5.md: Update with new attributes.
18656 * config/arm/cortex-a53.md: Update with new attributes.
18657 * config/arm/cortex-a7.md: Update with new attributes.
18658 * config/arm/cortex-a8.md: Update with new attributes.
18659 * config/arm/cortex-a9.md: Update with new attributes.
18660 * config/arm/cortex-m4.md: Update with new attributes.
18661 * config/arm/cortex-r4.md: Update with new attributes.
18662 * config/arm/fa526.md: Update with new attributes.
18663 * config/arm/fa606te.md: Update with new attributes.
18664 * config/arm/fa626te.md: Update with new attributes.
18665 * config/arm/fa726te.md: Update with new attributes.
18666
18667 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18668
18669 * config/aarch64/aarch64.md
18670 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18671 (*movtf_aarch64): Likewise.
18672 * config/arm/arm.md
18673 (thumb1_movdi_insn): Use "multiple" for type where more than one
18674 instruction is used for a move.
18675 (*arm32_movhf): Likewise.
18676 (*thumb_movdf_insn): Likewise.
18677
18678 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18679
18680 * config/arm/types.md (type): Rename fcpys to fmov.
18681 * config/arm/vfp.md
18682 (*arm_movsi_vfp): Rename type fcpys as fmov.
18683 (*thumb2_movsi_vfp): Likewise
18684 (*movhf_vfp_neon): Likewise
18685 (*movhf_vfp): Likewise
18686 (*movsf_vfp): Likewise
18687 (*thumb2_movsf_vfp): Likewise
18688 (*movsfcc_vfp): Likewise
18689 (*thumb2_movsfcc_vfp): Likewise
18690 * config/aarch64/aarch64-simd.md
18691 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18692 * config/aarch64/aarch64.md
18693 (*movsi_aarch64): Replace type mov_reg with fmovs.
18694 (*movdi_aarch64): Likewise
18695 (*movsf_aarch64): Likewise
18696 (*movdf_aarch64): Likewise
18697 * config/arm/arm.c
18698 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18699 * config/arm/iwmmxt.md
18700 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18701 * config/arm/arm1020e.md: Update with new attributes.
18702 * config/arm/cortex-a15-neon.md: Update with new attributes.
18703 * config/arm/cortex-a5.md: Update with new attributes.
18704 * config/arm/cortex-a53.md: Update with new attributes.
18705 * config/arm/cortex-a7.md: Update with new attributes.
18706 * config/arm/cortex-a8-neon.md: Update with new attributes.
18707 * config/arm/cortex-a9.md: Update with new attributes.
18708 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18709 * config/arm/cortex-r4f.md: Update with new attributes.
18710 * config/arm/marvell-pj4.md: Update with new attributes.
18711 * config/arm/vfp11.md: Update with new attributes.
18712
18713 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18714
18715 * config/aarch64/aarch64.md
18716 (*madd<mode>): Fix type attribute.
18717 (*maddsi_uxtw): Likewise.
18718 (*msub<mode>): Likewise.
18719 (*msubsi_uxtw): Likewise.
18720 (<su_optab>maddsidi4): Likewise.
18721 (<su_optab>msubsidi4): Likewise.
18722
18723 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18724
18725 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18726 * config/arm/arm.md (core_cycles): Remove fdiv.
18727 * config/arm/vfp.md:
18728 (*sqrtsf2_vfp): Update for attribute changes.
18729 (*sqrtdf2_vfp): Likewise.
18730 * config/aarch64/aarch64.md:
18731 (sqrt<mode>2): Update for attribute changes.
18732 * config/arm/arm1020e.md: Update with new attributes.
18733 * config/arm/cortex-a15-neon.md: Update with new attributes.
18734 * config/arm/cortex-a5.md: Update with new attributes.
18735 * config/arm/cortex-a53.md: Update with new attributes.
18736 * config/arm/cortex-a7.md: Update with new attributes.
18737 * config/arm/cortex-a8-neon.md: Update with new attributes.
18738 * config/arm/cortex-a9.md: Update with new attributes.
18739 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18740 * config/arm/cortex-r4f.md: Update with new attributes.
18741 * config/arm/marvell-pj4.md: Update with new attributes.
18742 * config/arm/vfp11.md: Update with new attributes.
18743
18744 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18745
18746 * config/arm/types.md
18747 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18748 * config/aarch64/aarch64.md
18749 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18750 new attributes.
18751 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18752 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18753 (float<GPI:mode><GPF:mode>2): Likewise.
18754 * config/arm/vfp.md
18755 (*truncsisf2_vfp): Update with new attributes.
18756 (*truncsidf2_vfp): Likewise.
18757 (fixuns_truncsfsi2): Likewise.
18758 (fixuns_truncdfsi2): Likewise.
18759 (*floatsisf2_vfp): Likewise.
18760 (*floatsidf2_vfp): Likewise.
18761 (floatunssisf2): Likewise.
18762 (floatunssidf2): Likewise.
18763 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18764 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18765 * config/arm/arm1020e.md: Update with new attributes.
18766 * config/arm/cortex-a15-neon.md: Update with new attributes.
18767 * config/arm/cortex-a5.md: Update with new attributes.
18768 * config/arm/cortex-a53.md: Update with new attributes.
18769 * config/arm/cortex-a7.md: Update with new attributes.
18770 * config/arm/cortex-a8-neon.md: Update with new attributes.
18771 * config/arm/cortex-a9.md: Update with new attributes.
18772 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18773 * config/arm/cortex-r4f.md: Update with new attributes.
18774 * config/arm/marvell-pj4.md: Update with new attributes.
18775 * config/arm/vfp11.md: Update with new attributes.
18776
18777 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18778
18779 * config/aarch64/arm_neon.h
18780 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18781 (vqtbx<1,2,3,4><q>_s8): Likewise.
18782
18783 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18784
18785 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18786 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18787 (add<mode>3): Add type attribute.
18788 (add<mode>3): Likewise.
18789 (usadd<mode>3): Likewise.
18790 (ssadd<mode>3): Likewise.
18791 (sub<mode>3): Likewise.
18792 (sub<mode>3): Likewise.
18793 (ussub<mode>3): Likewise.
18794 (sssub<mode>3): Likewise.
18795 (ssmulsa3): Likewise.
18796 (usmulusa3): Likewise.
18797 (arm_usatsihi): Likewise.
18798 * config/arm/vfp.md
18799 (*movdi_vfp): Add types for all instructions.
18800 (*movdi_vfp_cortexa8): Likewise.
18801 (*movhf_vfp_neon): Likewise.
18802 (*movhf_vfp): Likewise.
18803 (*movdf_vfp): Likewise.
18804 (*thumb2_movdf_vfp): Likewise.
18805 (*thumb2_movdfcc_vfp): Likewise.
18806 * config/arm/arm.md: Add type attribute to all insn patterns.
18807 (*thumb1_adddi3): Add type attribute.
18808 (*arm_adddi3): Likewise.
18809 (*adddi_sesidi_di): Likewise.
18810 (*adddi_zesidi_di): Likewise.
18811 (*thumb1_addsi3): Likewise.
18812 (addsi3_compare0): Likewise.
18813 (*addsi3_compare0_scratch): Likewise.
18814 (*compare_negsi_si): Likewise.
18815 (cmpsi2_addneg): Likewise.
18816 (*addsi3_carryin_<optab>): Likewise.
18817 (*addsi3_carryin_alt2_<optab>): Likewise.
18818 (*addsi3_carryin_clobercc_<optab>): Likewise.
18819 (*subsi3_carryin): Likewise.
18820 (*subsi3_carryin_const): Likewise.
18821 (*subsi3_carryin_compare): Likewise.
18822 (*subsi3_carryin_compare_const): Likewise.
18823 (*arm_subdi3): Likewise.
18824 (*thumb_subdi3): Likewise.
18825 (*subdi_di_zesidi): Likewise.
18826 (*subdi_di_sesidi): Likewise.
18827 (*subdi_zesidi_di): Likewise.
18828 (*subdi_sesidi_di): Likewise.
18829 (*subdi_zesidi_ze): Likewise.
18830 (thumb1_subsi3_insn): Likewise.
18831 (*arm_subsi3_insn): Likewise.
18832 (*anddi3_insn): Likewise.
18833 (*anddi_zesidi_di): Likewise.
18834 (*anddi_sesdi_di): Likewise.
18835 (*ne_zeroextracts): Likewise.
18836 (*ne_zeroextracts): Likewise.
18837 (*ite_ne_zeroextr): Likewise.
18838 (*ite_ne_zeroextr): Likewise.
18839 (*anddi_notdi_di): Likewise.
18840 (*anddi_notzesidi): Likewise.
18841 (*anddi_notsesidi): Likewise.
18842 (andsi_notsi_si): Likewise.
18843 (thumb1_bicsi3): Likewise.
18844 (*iordi3_insn): Likewise.
18845 (*iordi_zesidi_di): Likewise.
18846 (*iordi_sesidi_di): Likewise.
18847 (*thumb1_iorsi3_insn): Likewise.
18848 (*xordi3_insn): Likewise.
18849 (*xordi_zesidi_di): Likewise.
18850 (*xordi_sesidi_di): Likewise.
18851 (*arm_xorsi3): Likewise.
18852 (*andsi_iorsi3_no): Likewise.
18853 (*smax_0): Likewise.
18854 (*smax_m1): Likewise.
18855 (*arm_smax_insn): Likewise.
18856 (*smin_0): Likewise.
18857 (*arm_smin_insn): Likewise.
18858 (*arm_umaxsi3): Likewise.
18859 (*arm_uminsi3): Likewise.
18860 (*minmax_arithsi): Likewise.
18861 (*minmax_arithsi_): Likewise.
18862 (*satsi_<SAT:code>): Likewise.
18863 (arm_ashldi3_1bit): Likewise.
18864 (arm_ashrdi3_1bit): Likewise.
18865 (arm_lshrdi3_1bit): Likewise.
18866 (*arm_negdi2): Likewise.
18867 (*thumb1_negdi2): Likewise.
18868 (*arm_negsi2): Likewise.
18869 (*thumb1_negsi2): Likewise.
18870 (*negdi_extendsid): Likewise.
18871 (*negdi_zero_extend): Likewise.
18872 (*arm_abssi2): Likewise.
18873 (*thumb1_abssi2): Likewise.
18874 (*arm_neg_abssi2): Likewise.
18875 (*thumb1_neg_abss): Likewise.
18876 (one_cmpldi2): Likewise.
18877 (extend<mode>di2): Likewise.
18878 (*compareqi_eq0): Likewise.
18879 (*arm_extendhisi2addsi): Likewise.
18880 (*arm_movdi): Likewise.
18881 (*thumb1_movdi_insn): Likewise.
18882 (*arm_movt): Likewise.
18883 (*thumb1_movsi_insn): Likewise.
18884 (pic_add_dot_plus_four): Likewise.
18885 (pic_add_dot_plus_eight): Likewise.
18886 (tls_load_dot_plus_eight): Likewise.
18887 (*thumb1_movhi_insn): Likewise.
18888 (*thumb1_movsf_insn): Likewise.
18889 (*movdf_soft_insn): Likewise.
18890 (*thumb_movdf_insn): Likewise.
18891 (cbranchsi4_insn): Likewise.
18892 (cbranchsi4_scratch): Likewise.
18893 (*negated_cbranchsi4): Likewise.
18894 (*tbit_cbranch): Likewise.
18895 (*tlobits_cbranch): Likewise.
18896 (*tstsi3_cbranch): Likewise.
18897 (*cbranchne_decr1): Likewise.
18898 (*addsi3_cbranch): Likewise.
18899 (*addsi3_cbranch_scratch): Likewise.
18900 (*arm_cmpdi_insn): Likewise.
18901 (*arm_cmpdi_unsig): Likewise.
18902 (*arm_cmpdi_zero): Likewise.
18903 (*thumb_cmpdi_zero): Likewise.
18904 (*deleted_compare): Likewise.
18905 (*mov_scc): Likewise.
18906 (*mov_negscc): Likewise.
18907 (*mov_notscc): Likewise.
18908 (*cstoresi_eq0_thumb1_insn): Likewise.
18909 (cstoresi_nltu_thumb1): Likewise.
18910 (cstoresi_ltu_thu): Likewise.
18911 (thumb1_addsi3_addgeu): Likewise.
18912 (*arm_jump): Likewise.
18913 (*thumb_jump): Likewise.
18914 (*check_arch2): Likewise.
18915 (arm_casesi_internal): Likewise.
18916 (thumb1_casesi_dispatch): Likewise.
18917 (*arm_indirect_jump): Likewise.
18918 (*thumb1_indirect_jump): Likewise.
18919 (nop): Likewise.
18920 (*and_scc): Likewise.
18921 (*ior_scc): Likewise.
18922 (*compare_scc): Likewise.
18923 (*cond_move): Likewise.
18924 (*cond_arith): Likewise.
18925 (*cond_sub): Likewise.
18926 (*cmp_ite0): Likewise.
18927 (*cmp_ite1): Likewise.
18928 (*cmp_and): Likewise.
18929 (*cmp_ior): Likewise.
18930 (*ior_scc_scc): Likewise.
18931 (*ior_scc_scc_cmp): Likewise.
18932 (*and_scc_scc): Likewise.
18933 (*and_scc_scc_cmp): Likewise.
18934 (*and_scc_scc_nod): Likewise.
18935 (*negscc): Likewise.
18936 (movcond_addsi): Likewise.
18937 (movcond): Likewise.
18938 (*ifcompare_plus_move): Likewise.
18939 (*if_plus_move): Likewise.
18940 (*ifcompare_move_plus): Likewise.
18941 (*if_move_plus): Likewise.
18942 (*ifcompare_arith_arith): Likewise.
18943 (*if_arith_arith): Likewise.
18944 (*ifcompare_arith_move): Likewise.
18945 (*if_arith_move): Likewise.
18946 (*ifcompare_move_arith): Likewise.
18947 (*if_move_arith): Likewise.
18948 (*ifcompare_move_not): Likewise.
18949 (*if_move_not): Likewise.
18950 (*ifcompare_not_move): Likewise.
18951 (*if_not_move): Likewise.
18952 (*ifcompare_shift_move): Likewise.
18953 (*if_shift_move): Likewise.
18954 (*ifcompare_move_shift): Likewise.
18955 (*if_move_shift): Likewise.
18956 (*ifcompare_shift_shift): Likewise.
18957 (*ifcompare_not_arith): Likewise.
18958 (*ifcompare_arith_not): Likewise.
18959 (*if_arith_not): Likewise.
18960 (*ifcompare_neg_move): Likewise.
18961 (*if_neg_move): Likewise.
18962 (*ifcompare_move_neg): Likewise.
18963 (*if_move_neg): Likewise.
18964 (prologue_thumb1_interwork): Likewise.
18965 (*cond_move_not): Likewise.
18966 (*sign_extract_onebit): Likewise.
18967 (*not_signextract_onebit): Likewise.
18968 (stack_tie): Likewise.
18969 (align_4): Likewise.
18970 (align_8): Likewise.
18971 (consttable_end): Likewise.
18972 (consttable_1): Likewise.
18973 (consttable_2): Likewise.
18974 (consttable_4): Likewise.
18975 (consttable_8): Likewise.
18976 (consttable_16): Likewise.
18977 (*thumb1_tablejump): Likewise.
18978 (prefetch): Likewise.
18979 (force_register_use): Likewise.
18980 (thumb_eh_return): Likewise.
18981 (load_tp_hard): Likewise.
18982 (load_tp_soft): Likewise.
18983 (tlscall): Likewise.
18984 (*arm_movtas_ze): Likewise.
18985 (*arm_rev): Likewise.
18986 (*arm_revsh): Likewise.
18987 (*arm_rev16): Likewise.
18988 * config/arm/thumb2.md
18989 (*thumb2_smaxsi3): Likewise.
18990 (*thumb2_sminsi3): Likewise.
18991 (*thumb32_umaxsi3): Likewise.
18992 (*thumb2_uminsi3): Likewise.
18993 (*thumb2_negdi2): Likewise.
18994 (*thumb2_abssi2): Likewise.
18995 (*thumb2_neg_abss): Likewise.
18996 (*thumb2_movsi_insn): Likewise.
18997 (tls_load_dot_plus_four): Likewise.
18998 (*thumb2_movhi_insn): Likewise.
18999 (*thumb2_mov_scc): Likewise.
19000 (*thumb2_mov_negs): Likewise.
19001 (*thumb2_mov_negs): Likewise.
19002 (*thumb2_mov_nots): Likewise.
19003 (*thumb2_mov_nots): Likewise.
19004 (*thumb2_movsicc_): Likewise.
19005 (*thumb2_movsfcc_soft_insn): Likewise.
19006 (*thumb2_indirect_jump): Likewise.
19007 (*thumb2_and_scc): Likewise.
19008 (*thumb2_ior_scc): Likewise.
19009 (*thumb2_ior_scc_strict_it): Likewise.
19010 (*thumb2_cond_move): Likewise.
19011 (*thumb2_cond_arith): Likewise.
19012 (*thumb2_cond_ari): Likewise.
19013 (*thumb2_cond_sub): Likewise.
19014 (*thumb2_negscc): Likewise.
19015 (*thumb2_movcond): Likewise.
19016 (thumb2_casesi_internal): Likewise.
19017 (thumb2_casesi_internal_pic): Likewise.
19018 (*thumb2_alusi3_short): Likewise.
19019 (*thumb2_mov<mode>_shortim): Likewise.
19020 (*thumb2_addsi_short): Likewise.
19021 (*thumb2_subsi_short): Likewise.
19022 (thumb2_addsi3_compare0): Likewise.
19023 (*thumb2_cbz): Likewise.
19024 (*thumb2_cbnz): Likewise.
19025 (*thumb2_one_cmplsi2_short): Likewise.
19026 (*thumb2_negsi2_short): Likewise.
19027 (*orsi_notsi_si): Likewise.
19028 * config/arm/arm1020e.md: Update with new attributes.
19029 * config/arm/arm1026ejs.md: Update with new attributes.
19030 * config/arm/arm1136jfs.md: Update with new attributes.
19031 * config/arm/arm926ejs.md: Update with new attributes.
19032 * config/arm/cortex-a15.md: Update with new attributes.
19033 * config/arm/cortex-a5.md: Update with new attributes.
19034 * config/arm/cortex-a53.md: Update with new attributes.
19035 * config/arm/cortex-a7.md: Update with new attributes.
19036 * config/arm/cortex-a8.md: Update with new attributes.
19037 * config/arm/cortex-a9.md: Update with new attributes.
19038 * config/arm/cortex-m4.md: Update with new attributes.
19039 * config/arm/cortex-r4.md: Update with new attributes.
19040 * config/arm/fa526.md: Update with new attributes.
19041 * config/arm/fa606te.md: Update with new attributes.
19042 * config/arm/fa626te.md: Update with new attributes.
19043 * config/arm/fa726te.md: Update with new attributes.
19044
19045 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19046
19047 * config/aarch64/aarch64-simd.md
19048 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19049 <vwx> iterator to ensure correct register choice.
19050 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19051 (aarch64_sqdmull_n<mode>): Likewise.
19052 (aarch64_sqdmull2_n<mode>_internal): Likewise.
19053 * config/aarch64/arm_neon.h
19054 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19055 (vml<as><q>_n_<su>16): Likewise.
19056 (vml<as>l_high_lane<q>_<su>16): Likewise.
19057 (vml<as>l_high_n_<su>16): Likewise.
19058 (vml<as>l_lane<q>_<su>16): Likewise.
19059 (vml<as>l_n_<su>16): Likewise.
19060 (vmul<q>_lane<q>_<su>16): Likewise.
19061 (vmul<q>_n_<su>16): Likewise.
19062 (vmull_lane<q>_<su>16): Likewise.
19063 (vmull_n_<su>16): Likewise.
19064 (vmull_high_lane<q>_<su>16): Likewise.
19065 (vmull_high_n_<su>16): Likewise.
19066 (vqrdmulh<q>_n_s16): Likewise.
19067
19068 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
19069
19070 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19071 have the correct lane parameter.
19072
19073 2013-09-06 Richard Biener <rguenther@suse.de>
19074
19075 * cfganal.c (control_dependences::~control_dependences):
19076 Properly free all of the vector.
19077
19078 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
19079
19080 PR target/58269
19081 * config/i386/i386.c (ix86_conditional_register_usage):
19082 Proper initialize extended SSE registers.
19083
19084 2013-09-06 Jan Hubicka <jh@suse.cz>
19085
19086 PR tree-optimization/58311
19087 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19088
19089 2013-09-06 Jan Hubicka <jh@suse.cz>
19090
19091 * Makefile.in (tree-sra.o): Update dependencies.
19092 * tree-sra.c: Include ipa-utils.h
19093 (scan_function): Use recursive_call_p.
19094 (has_caller_p): New function.
19095 (cgraph_for_node_and_aliases): Count also callers of aliases.
19096
19097 2013-09-06 Jan Hubicka <jh@suse.cz>
19098
19099 PR middle-end/58094
19100 * cgraph.h (symtab_semantically_equivalent_p): Declare.
19101 * tree-tailcall.c: Include ipa-utils.h.
19102 (find_tail_calls): Use it.
19103 * ipa-pure-const.c (check_call): Likewise.
19104 * ipa-utils.c (recursive_call_p): New function.
19105 * ipa-utils.h (recursive_call_p): Dclare.
19106 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19107 (symtab_semantically_equivalent_p): New function.
19108 * Makefile.in (tree-tailcall.o): Update dependencies.
19109
19110 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19111
19112 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19113 non-inlinable part.
19114
19115 2013-09-06 Richard Biener <rguenther@suse.de>
19116
19117 * lto-streamer.h (lto_global_var_decls): Remove.
19118 * Makefile.in (OBJS): Remove lto-symtab.o.
19119 (lto-symtab.o): Remove.
19120 (GTFILES): Remove lto-symtab.c
19121 * lto-symtab.c: Move to lto/
19122
19123 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19124
19125 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19126 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19127 (UNSPEC_FPINT_RINT): New constant definitions.
19128 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19129 definition with 2 attributes.
19130 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19131 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19132 definitions.
19133
19134 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19135
19136 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19137 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19138 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
19139 attribute to "z196_alone".
19140 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19141 "zEC12_simple".
19142
19143 2013-09-06 Richard Biener <rguenther@suse.de>
19144
19145 * basic-block.h (class control_dependences): New.
19146 * tree-ssa-dce.c (control_dependence_map): Remove.
19147 (cd): New global.
19148 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19149 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19150 find_pdom, find_control_dependence, find_all_control_dependences):
19151 Move to cfganal.c.
19152 (mark_control_dependent_edges_necessary,
19153 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19154 tree_dce_done, perform_tree_ssa_dce): Adjust.
19155 * cfganal.c (set_control_dependence_map_bit,
19156 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19157 find_all_control_dependences): Move from tree-ssa-dce.c and
19158 implement as methods of control_dependences class.
19159 (control_dependences::control_dependences): New.
19160 (control_dependences::~control_dependences): Likewise.
19161 (control_dependences::get_edges_dependent_on): Likewise.
19162 (control_dependences::get_edge): Likewise.
19163
19164 2013-09-04 Jan Hubicka <jh@suse.cz>
19165
19166 * tree.c (types_same_for_odr): Drop overactive check.
19167 * ipa-devirt.c (hash_type_name): Likewise.
19168
19169 2013-09-04 Jan Hubicka <jh@suse.cz>
19170
19171 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19172 (analyze_functions): ... here.
19173
19174 2013-09-04 Jan Hubicka <jh@suse.cz>
19175
19176 PR middle-end/58201
19177 * cgraphunit.c (analyze_functions): Clear AUX fields
19178 after processing; initialize assembler name has.
19179
19180 2013-09-05 Jeff Law <law@redhat.com>
19181
19182 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19183 from thread_around_empty_block. Record threading path into PATH.
19184 Recurse if threading through the initial block is successful.
19185 (thread_across_edge): Corresponding changes to slightly simplify.
19186
19187 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19188
19189 * config/aarch64/aarch64.md
19190 (type): Remove frecpe, frecps, frecpx.
19191 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19192 fix to be a TARGET_SIMD instruction.
19193 (aarch64_frecps): Remove.
19194 * config/aarch64/aarch64-simd.md
19195 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19196 (aarch64_frecps<mode>): Handle all float/vector of float modes.
19197
19198 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19199 Sofiane Naci <sofiane.naci@arm.com>
19200
19201 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19202 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19203 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19204 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19205 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
19206 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19207 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
19208 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
19209 into "clz, "rbit". Rename "shift" to "shift_imm".
19210 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19211 changes. Update for attribute changes all occurrences of arlo_* and
19212 shift* types.
19213 * config/arm/arm-fixed.md: Update for attribute changes
19214 all occurrences of arlo_* types.
19215 * config/arm/thumb2.md: Update for attribute changes all occurrences
19216 of arlo_* types.
19217 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
19218 (cortexa7_older_only): Likewise.
19219 (cortexa7_younger): Likewise.
19220 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19221 (1020alu_shift_op): Likewise.
19222 (1020alu_shift_reg_op): Likewise.
19223 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19224 (alu_shift_op): Likewise.
19225 (alu_shift_reg_op): Likewise.
19226 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19227 (11_alu_shift_op): Likewise.
19228 (11_alu_shift_reg_op): Likewise.
19229 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19230 (9_alu_shift_reg_op): Likewise.
19231 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19232 attribute changes.
19233 (cortex_a15_alu_shift): Likewise.
19234 (cortex_a15_alu_shift_reg): Likewise.
19235 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19236 attribute changes.
19237 (cortex_a5_alu_shift): Likewise.
19238 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19239 attribute changes.
19240 (cortex_a53_alu_shift): Likewise.
19241 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19242 attribute changes.
19243 (cortex_a7_alu_reg): Likewise.
19244 (cortex_a7_alu_shift): Likewise.
19245 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19246 attribute changes.
19247 (cortex_a8_alu_shift): Likewise.
19248 (cortex_a8_alu_shift_reg): Likewise.
19249 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19250 (cortex_a9_dp_shift): Likewise.
19251 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19252 attribute changes.
19253 * config/arm/cortex-r4.md
19254 (cortex_r4_alu): Update for attribute changes.
19255 (cortex_r4_mov): Likewise.
19256 (cortex_r4_alu_shift_reg): Likewise.
19257 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19258 (526_alu_shift_op): Likewise.
19259 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19260 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19261 (626te_alu_shift_op): Likewise.
19262 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19263 (726te_alu_shift_op): Likewise.
19264 (726te_alu_shift_reg_op): Likewise.
19265 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19266 (mp626_alu_shift_op): Likewise.
19267 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19268 (pj4_alu_conds): Likewise.
19269 (pj4_shift): Likewise.
19270 (pj4_shift_conds): Likewise.
19271 (pj4_alu_shift): Likewise.
19272 (pj4_alu_shift_conds): Likewise.
19273 * config/aarch64/aarch64.md: Update for attribute change
19274 all occurrences of arlo_* and shift* types.
19275
19276 2013-09-05 Mike Stump <mikestump@comcast.net>
19277
19278 * tree.h: Move documentation for tree_function_decl to tree-core.h
19279 with the declaration.
19280
19281 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
19282
19283 PR target/58139
19284 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19285 looking for widest mode.
19286
19287 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
19288
19289 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19290
19291 2013-09-05 Richard Biener <rguenther@suse.de>
19292
19293 PR tree-optimization/58137
19294 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19295 Do not create vectors of pointers.
19296 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19297 types for the components of the vector initializer.
19298 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19299 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19300
19301 2013-09-05 Martin Jambor <mjambor@suse.cz>
19302
19303 * ipa-prop.c (remove_described_reference): Accept missing references,
19304 return false if that hppens, otherwise return true.
19305 (cgraph_node_for_jfunc): New function.
19306 (try_decrement_rdesc_refcount): Likewise.
19307 (try_make_edge_direct_simple_call): Use them.
19308 (ipa_edge_removal_hook): Remove references from rdescs.
19309 (ipa_edge_duplication_hook): Clone rdescs and their references
19310 when the new edge has the same caller as the old one.
19311 * cgraph.c (cgraph_resolve_speculation): Remove speculative
19312 reference before removing any edges.
19313
19314 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
19315
19316 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19317 initial store.
19318 * thumb2.md (thumb2_storewb_parisi): New pattern.
19319
19320 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
19321
19322 * config/aarch64/aarch64-option-extensions.def: Add
19323 AARCH64_OPT_EXTENSION of 'crc'.
19324 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19325 (AARCH64_ISA_CRC): Ditto.
19326 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19327 description of the CRC extension.
19328
19329 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
19330
19331 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19332 * config/rs6000/linux.h: Ditto.
19333 * alpha/linux.h: Ditto.
19334 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19335 no_c99_libc_has_function.
19336 * config/c6x/uclinux-elf.h: Ditto.
19337 * config/lm32/uclinux-elf.h: Ditto.
19338 * config/m68k/uclinux.h: Ditto.
19339 * config/moxie/uclinux.h: Ditto.
19340 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19341 (crisv32-*-linux*, cris-*-linux*): Ditto.
19342 * config/bfin/bfin.c: Include "tm_p.h".
19343
19344 2013-09-05 Richard Biener <rguenther@suse.de>
19345
19346 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19347 check for a definition without a basic-block.
19348
19349 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19350 Sofiane Naci <sofiane.naci@arm.com>
19351
19352 * config/aarch64/aarch64.md
19353 (*movti_aarch64): Rename r_2_f and f_2_r.
19354 (*movsf_aarch64): Likewise.
19355 (*movdf_aarch64): Likewise.
19356 (*movtf_aarch64): Likewise.
19357 (aarch64_movdi_<mode>low): Likewise.
19358 (aarch64_movdi_<mode>high): Likewise.
19359 (aarch64_mov<mode>high_di): Likewise.
19360 (aarch64_mov<mode>low_di): Likewise.
19361 (aarch64_movtilow_tilow): Likewise.
19362 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
19363 values to config/arm/types.md
19364 (attribute "conds"): Update for attribute change.
19365 (anddi3_insn): Likewise.
19366 (iordi3_insn): Likewise.
19367 (xordi3_insn): Likewise.
19368 (one_cmpldi2): Likewise.
19369 * config/arm/types.md (type): Add Neon types.
19370 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19371 use "type" attribute.
19372 (movmisalign<mode>_neon_store): Likewise.
19373 (movmisalign<mode>_neon_load): Likewise.
19374 (vec_set<mode>_internal): Likewise.
19375 (vec_setv2di_internal): Likewise.
19376 (vec_extract<mode>): Likewise.
19377 (vec_extractv2di): Likewise.
19378 (add<mode>3_neon): Likewise.
19379 (adddi3_neon): Likewise.
19380 (sub<mode>3_neon): Likewise.
19381 (subdi3_neon): Likewise.
19382 (mul<mode>3_neon): Likewise.
19383 (mul<mode>3add<mode>_neon): Likewise.
19384 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19385 (fma<VCVTF:mode>4)): Likewise.
19386 (fma<VCVTF:mode>4_intrinsic): Likewise.
19387 (fmsub<VCVTF:mode>4)): Likewise.
19388 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19389 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19390 (ior<mode>3): Likewise.
19391 (and<mode>3): Likewise.
19392 (anddi3_neon): Likewise.
19393 (orn<mode>3_neon): Likewise.
19394 (orndi3_neon): Likewise.
19395 (bic<mode>3_neon): Likewise.
19396 (bicdi3_neon): Likewise.
19397 (xor<mode>3): Likewise.
19398 (one_cmpl<mode>2): Likewise.
19399 (abs<mode>2): Likewise.
19400 (neg<mode>2): Likewise.
19401 (umin<mode>3_neon): Likewise.
19402 (umax<mode>3_neon): Likewise.
19403 (smin<mode>3_neon): Likewise.
19404 (smax<mode>3_neon): Likewise.
19405 (vashl<mode>3): Likewise.
19406 (vashr<mode>3_imm): Likewise.
19407 (vlshr<mode>3_imm): Likewise.
19408 (ashl<mode>3_signed): Likewise.
19409 (ashl<mode>3_unsigned): Likewise.
19410 (neon_load_count): Likewise.
19411 (ashldi3_neon_noclobber): Likewise.
19412 (signed_shift_di3_neon): Likewise.
19413 (unsigned_shift_di3_neon): Likewise.
19414 (ashrdi3_neon_imm_noclobber): Likewise.
19415 (lshrdi3_neon_imm_noclobber): Likewise.
19416 (widen_ssum<mode>3): Likewise.
19417 (widen_usum<mode>3): Likewise.
19418 (quad_halves_<code>v4si): Likewise.
19419 (quad_halves_<code>v4sf): Likewise.
19420 (quad_halves_<code>v8hi): Likewise.
19421 (quad_halves_<code>v16qi): Likewise.
19422 (reduc_splus_v2di): Likewise.
19423 (neon_vpadd_internal<mode>): Likewise.
19424 (neon_vpsmin<mode>): Likewise.
19425 (neon_vpsmax<mode>): Likewise.
19426 (neon_vpumin<mode>): Likewise.
19427 (neon_vpumax<mode>): Likewise.
19428 (ss_add<mode>_neon): Likewise.
19429 (us_add<mode>_neon): Likewise.
19430 (ss_sub<mode>_neon): Likewise.
19431 (us_sub<mode>_neon): Likewise.
19432 (neon_vadd<mode>_unspec): Likewise.
19433 (neon_vaddl<mode>): Likewise.
19434 (neon_vaddw<mode>): Likewise.
19435 (neon_vhadd<mode>): Likewise.
19436 (neon_vqadd<mode>): Likewise.
19437 (neon_vaddhn<mode>): Likewise.
19438 (neon_vmul<mode>): Likewise.
19439 (neon_vmla<mode>): Likewise.
19440 (neon_vmlal<mode>): Likewise.
19441 (neon_vmls<mode>): Likewise.
19442 (neon_vmlsl<mode>): Likewise.
19443 (neon_vqdmulh<mode>): Likewise.
19444 (neon_vqdmlal<mode>): Likewise.
19445 (neon_vqdmlsl<mode>): Likewise.
19446 (neon_vmull<mode>): Likewise.
19447 (neon_vqdmull<mode>): Likewise.
19448 (neon_vsub<mode>_unspec): Likewise.
19449 (neon_vsubl<mode>): Likewise.
19450 (neon_vsubw<mode>): Likewise.
19451 (neon_vqsub<mode>): Likewise.
19452 (neon_vhsub<mode>): Likewise.
19453 (neon_vsubhn<mode>): Likewise.
19454 (neon_vceq<mode>): Likewise.
19455 (neon_vcge<mode>): Likewise.
19456 (neon_vcgeu<mode>): Likewise.
19457 (neon_vcgt<mode>): Likewise.
19458 (neon_vcgtu<mode>): Likewise.
19459 (neon_vcle<mode>): Likewise.
19460 (neon_vclt<mode>): Likewise.
19461 (neon_vcage<mode>): Likewise.
19462 (neon_vcagt<mode>): Likewise.
19463 (neon_vtst<mode>): Likewise.
19464 (neon_vabd<mode>): Likewise.
19465 (neon_vabdl<mode>): Likewise.
19466 (neon_vaba<mode>): Likewise.
19467 (neon_vabal<mode>): Likewise.
19468 (neon_vmax<mode>): Likewise.
19469 (neon_vmin<mode>): Likewise.
19470 (neon_vpaddl<mode>): Likewise.
19471 (neon_vpadal<mode>): Likewise.
19472 (neon_vpmax<mode>): Likewise.
19473 (neon_vpmin<mode>): Likewise.
19474 (neon_vrecps<mode>): Likewise.
19475 (neon_vrsqrts<mode>): Likewise.
19476 (neon_vqabs<mode>): Likewise.
19477 (neon_vqneg<mode>): Likewise.
19478 (neon_vcls<mode>): Likewise.
19479 (clz<mode>2): Likewise.
19480 (popcount<mode>2): Likewise.
19481 (neon_vrecpe): Likewise.
19482 (neon_vrsqrte): Likewise.
19483 (neon_vget_lane<mode>_sext_internal): Likewise.
19484 (neon_vget_lane<mode>_zext_internal): Likewise.
19485 (neon_vdup_n<mode>): Likewise.
19486 (neon_vdup_nv2di): Likewise.
19487 (neon_vdpu_lane<mode>_internal): Likewise.
19488 (neon_vswp<mode>): Likewise.
19489 (float<mode><V_cvtto>2): Likewise.
19490 (floatuns<mode><V_cvtto>2): Likewise.
19491 (fix_trunc<mode><V_cvtto>)2): Likewise
19492 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19493 (neon_vcvt<mode>): Likewise.
19494 (neon_vcvtv4sfv4hf): Likewise.
19495 (neon_vcvtv4hfv4sf): Likewise.
19496 (neon_vcvt_n<mode>): Likewise.
19497 (neon_vmovn<mode>): Likewise.
19498 (neon_vqmovn<mode>): Likewise.
19499 (neon_vqmovun<mode>): Likewise.
19500 (neon_vmovl<mode>): Likewise.
19501 (neon_vmul_lane<mode>): Likewise.
19502 (neon_vmull_lane<mode>): Likewise.
19503 (neon_vqdmull_lane<mode>): Likewise.
19504 (neon_vqdmulh_lane<mode>): Likewise.
19505 (neon_vmla_lane<mode>): Likewise.
19506 (neon_vmlal_lane<mode>): Likewise.
19507 (neon_vqdmlal_lane<mode>): Likewise.
19508 (neon_vmls_lane<mode>): Likewise.
19509 (neon_vmlsl_lane<mode>): Likewise.
19510 (neon_vqdmlsl_lane<mode>): Likewise.
19511 (neon_vext<mode>): Likewise.
19512 (neon_vrev64<mode>): Likewise.
19513 (neon_vrev32<mode>): Likewise.
19514 (neon_vrev16<mode>): Likewise.
19515 (neon_vbsl<mode>_internal): Likewise.
19516 (neon_vshl<mode>): Likewise.
19517 (neon_vqshl<mode>): Likewise.
19518 (neon_vshr_n<mode>): Likewise.
19519 (neon_vshrn_n<mode>): Likewise.
19520 (neon_vqshrn_n<mode>): Likewise.
19521 (neon_vqshrun_n<mode>): Likewise.
19522 (neon_vshl_n<mode>): Likewise.
19523 (neon_vqshl_n<mode>): Likewise.
19524 (neon_vqshlu_n<mode>): Likewise.
19525 (neon_vshll_n<mode>): Likewise.
19526 (neon_vsra_n<mode>): Likewise.
19527 (neon_vsri_n<mode>): Likewise.
19528 (neon_vsli_n<mode>): Likewise.
19529 (neon_vtbl1v8qi): Likewise.
19530 (neon_vtbl2v8qi): Likewise.
19531 (neon_vtbl3v8qi): Likewise.
19532 (neon_vtbl4v8qi): Likewise.
19533 (neon_vtbx1v8qi): Likewise.
19534 (neon_vtbx2v8qi): Likewise.
19535 (neon_vtbx3v8qi): Likewise.
19536 (neon_vtbx4v8qi): Likewise.
19537 (neon_vtrn<mode>_internal): Likewise.
19538 (neon_vzip<mode>_internal): Likewise.
19539 (neon_vuzp<mode>_internal): Likewise.
19540 (neon_vld1<mode>): Likewise.
19541 (neon_vld1_lane<mode>): Likewise.
19542 (neon_vld1_dup<mode>): Likewise.
19543 (neon_vld1_dupv2di): Likewise.
19544 (neon_vst1<mode>): Likewise.
19545 (neon_vst1_lane<mode>): Likewise.
19546 (neon_vld2<mode>): Likewise.
19547 (neon_vld2_lane<mode>): Likewise.
19548 (neon_vld2_dup<mode>): Likewise.
19549 (neon_vst2<mode>): Likewise.
19550 (neon_vst2_lane<mode>): Likewise.
19551 (neon_vld3<mode>): Likewise.
19552 (neon_vld3qa<mode>): Likewise.
19553 (neon_vld3qb<mode>): Likewise.
19554 (neon_vld3_lane<mode>): Likewise.
19555 (neon_vld3_dup<mode>): Likewise.
19556 (neon_vst3<mode>): Likewise.
19557 (neon_vst3qa<mode>): Likewise.
19558 (neon_vst3qb<mode>): Likewise.
19559 (neon_vst3_lane<mode>): Likewise.
19560 (neon_vld4<mode>): Likewise.
19561 (neon_vld4qa<mode>): Likewise.
19562 (neon_vld4qb<mode>): Likewise.
19563 (neon_vld4_lane<mode>): Likewise.
19564 (neon_vld4_dup<mode>): Likewise.
19565 (neon_vst4<mode>): Likewise.
19566 (neon_vst4qa<mode>): Likewise.
19567 (neon_vst4qb<mode>): Likewise.
19568 (neon_vst4_lane<mode>): Likewise.
19569 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19570 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19571 (neon_vec_<US>mult_lo_<mode>): Likewise.
19572 (neon_vec_<US>mult_hi_<mode>): Likewise.
19573 (neon_vec_<US>shiftl_<mode>): Likewise.
19574 (neon_unpack<US>_<mode>): Likewise.
19575 (neon_vec_<US>mult_<mode>): Likewise.
19576 (vec_pack_trunc_<mode>): Likewise.
19577 (neon_vec_pack_trunk_<mode>): Likewise.
19578 (neon_vabd<mode>_2): Likewise.
19579 (neon_vabd<mode>_3): Likewise.
19580 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19581 (thumb2_movsi_vfp): Likewise.
19582 (movdi_vfp): Likewise.
19583 (movdi_vfp_cortexa8): Likewise.
19584 (movhf_vfp_neon): Likewise.
19585 (movhf_vfp): Likewiwse.
19586 (movsf_vfp): Likewiwse.
19587 (thumb2_movsf_vfp): Likewiwse.
19588 (movdf_vfp): Likewise.
19589 (thumb2_movdf_vfp): Likewise.
19590 (movsfcc_vfp): Likewise.
19591 (thumb2_movsfcc_vfp): Likewise.
19592 (movdfcc_vfp): Likewise.
19593 (thumb2_movdfcc_vfp): Likewise.
19594 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19595 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19596 (v10_v2c): Likewise.
19597 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19598 attribute change.
19599 (cortex_a15_neon_int_2): Likewise.
19600 (cortex_a15_neon_int_3): Likewise.
19601 (cortex_a15_neon_int_4): Likewise.
19602 (cortex_a15_neon_int_5): Likewise.
19603 (cortex_a15_neon_vqneg_vqabs): Likewise.
19604 (cortex_a15_neon_vmov): Likewise.
19605 (cortex_a15_neon_vaba): Likewise.
19606 (cortex_a15_neon_vaba_qqq): Likewise.
19607 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19608 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19609 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19610 scalar_64_32_long_scalar): Likewise.
19611 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19612 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19613 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19614 lotype_qdd_64_32_long): Likewise.
19615 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19616 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19617 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19618 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19619 (cortex_a15_neon_shift_1): Likewise.
19620 (cortex_a15_neon_shift_2): Likewise.
19621 (cortex_a15_neon_shift_3): Likewise.
19622 (cortex_a15_neon_vshl_ddd): Likewise.
19623 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19624 (cortex_a15_neon_vsra_vrsra): Likewise.
19625 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19626 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19627 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19628 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19629 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19630 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19631 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19632 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19633 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19634 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19635 (cortex_a15_neon_bp_simple): Likewise.
19636 (cortex_a15_neon_bp_2cycle): Likewise.
19637 (cortex_a15_neon_bp_3cycle): Likewise.
19638 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19639 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19640 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19641 (cortex_a15_neon_vld2_4_regs): Likewise.
19642 (cortex_a15_neon_vld3_vld4): Likewise.
19643 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19644 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19645 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19646 (cortex_a15_neon_vst3_vst4): Likewise.
19647 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19648 (cortex_a15_neon_vld3_vld4_lane" 10
19649 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19650 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19651 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19652 (cortex_a15_neon_ldm_2): Likewise.0
19653 (cortex_a15_neon_stm_2): Likewise.
19654 (cortex_a15_neon_mcr): Likewise.
19655 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19656 (cortex_a15_neon_mrc): Likewise.
19657 (cortex_a15_neon_mrrc): Likewise.
19658 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19659 change.
19660 (cortex_a15_alu_shift): Likewise.
19661 (cortex_a15_alu_shift_reg): Likewise.
19662 (cortex_a15_mult32): Likewise.
19663 (cortex_a15_mult64): Likewise.
19664 (cortex_a15_block): Likewise.
19665 (cortex_a15_branch): Likewise.
19666 (cortex_a15_load1): Likewise.
19667 (cortex_a15_load3): Likewise.
19668 (cortex_a15_store1): Likewise.
19669 (cortex_a15_store3): Likewise.
19670 (cortex_a15_call): Likewise.
19671 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19672 (cortex_a5_f2r): Likewise.
19673 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19674 change.
19675 (cortex_a53_f2r): Likewise.
19676 * config/arm/cortex-a7.md
19677 (cortex_a7_branch): Update for attribute change.
19678 (cortex_a7_call): Likewise.
19679 (cortex_a7_alu_imm): Likewise.
19680 (cortex_a7_alu_reg): Likewise.
19681 (cortex_a7_alu_shift): Likewise.
19682 (cortex_a7_mul): Likewise.
19683 (cortex_a7_load1): Likewise.
19684 (cortex_a7_store1): Likewise.
19685 (cortex_a7_load2): Likewise.
19686 (cortex_a7_store2): Likewise.
19687 (cortex_a7_load3): Likewise.
19688 (cortex_a7_store3): Likewise.
19689 (cortex_a7_load4): Likewise.
19690 (cortex_a7_store4): Likewise.
19691 (cortex_a7_fpalu): Likewise.
19692 (cortex_a7_fconst): Likewise.
19693 (cortex_a7_fpmuls): Likewise.
19694 (cortex_a7_neon_mul): Likewise.
19695 (cortex_a7_fpmacs): Likewise.
19696 (cortex_a7_neon_mla: Likewise.
19697 (cortex_a7_fpmuld: Likewise.
19698 (cortex_a7_fpmacd: Likewise.
19699 (cortex_a7_fpfmad: Likewise.
19700 (cortex_a7_fdivs: Likewise.
19701 (cortex_a7_fdivd: Likewise.
19702 (cortex_a7_r2f: Likewise.
19703 (cortex_a7_f2r: Likewise.
19704 (cortex_a7_f_flags: Likewise.
19705 (cortex_a7_f_loads: Likewise.
19706 (cortex_a7_f_loadd: Likewise.
19707 (cortex_a7_f_stores: Likewise.
19708 (cortex_a7_f_stored: Likewise.
19709 (cortex_a7_neon): Likewise.
19710 * config/arm/cortex-a8-neon.md
19711 (cortex_a8_neon_mrc): Update for attribute change.
19712 (cortex_a8_neon_mrrc): Likewise.
19713 (cortex_a8_neon_int_1): Likewise.
19714 (cortex_a8_neon_int_2): Likewise.
19715 (cortex_a8_neon_int_3): Likewise.
19716 (cortex_a8_neon_int_4): Likewise.
19717 (cortex_a8_neon_int_5): Likewise.
19718 (cortex_a8_neon_vqneg_vqabs): Likewise.
19719 (cortex_a8_neon_vmov): Likewise.
19720 (cortex_a8_neon_vaba): Likewise.
19721 (cortex_a8_neon_vaba_qqq): Likewise.
19722 (cortex_a8_neon_vsma): Likewise.
19723 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19724 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19725 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19726 long_scalar): Likewise.
19727 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19728 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19729 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19730 long_scalar_qdd_64_32_long): Likewise.
19731 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19732 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19733 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19734 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19735 (cortex_a8_neon_shift_1): Likewise.
19736 (cortex_a8_neon_shift_2): Likewise.
19737 (cortex_a8_neon_shift_3): Likewise.
19738 (cortex_a8_neon_vshl_ddd): Likewise.
19739 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19740 (cortex_a8_neon_vsra_vrsra): Likewise.
19741 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19742 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19743 (cortex_a8_neon_fp_vsum): Likewise.
19744 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19745 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19746 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19747 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19748 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19749 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19750 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19751 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19752 (cortex_a8_neon_bp_simple): Likewise.
19753 (cortex_a8_neon_bp_2cycle): Likewise.
19754 (cortex_a8_neon_bp_3cycle): Likewise.
19755 (cortex_a8_neon_ldr): Likewise.
19756 (cortex_a8_neon_str): Likewise.
19757 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19758 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19759 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19760 (cortex_a8_neon_vld2_4_regs): Likewise.
19761 (cortex_a8_neon_vld3_vld4): Likewise.
19762 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19763 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19764 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19765 (cortex_a8_neon_vst3_vst4): Likewise.
19766 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19767 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19768 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19769 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19770 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19771 (cortex_a8_neon_mcr): Likewise.
19772 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19773 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19774 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19775 change.
19776 (ca9_neon_mrrc): Likewise.
19777 (cortex_a9_neon_int_1): Likewise.
19778 (cortex_a9_neon_int_2): Likewise.
19779 (cortex_a9_neon_int_3): Likewise.
19780 (cortex_a9_neon_int_4): Likewise.
19781 (cortex_a9_neon_int_5): Likewise.
19782 (cortex_a9_neon_vqneg_vqabs): Likewise.
19783 (cortex_a9_neon_vmov): Likewise.
19784 (cortex_a9_neon_vaba): Likewise.
19785 (cortex_a9_neon_vaba_qqq): Likewise.
19786 (cortex_a9_neon_vsma): Likewise.
19787 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19788 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19789 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19790 long_scalar): Likewise.
19791 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19792 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19793 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19794 long_scalar_qdd_64_32_long): Likewise.
19795 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19796 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19797 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19798 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19799 (cortex_a9_neon_shift_1): Likewise.
19800 (cortex_a9_neon_shift_2): Likewise.
19801 (cortex_a9_neon_shift_3): Likewise.
19802 (cortex_a9_neon_vshl_ddd): Likewise.
19803 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19804 (cortex_a9_neon_vsra_vrsra): Likewise.
19805 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19806 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19807 (cortex_a9_neon_fp_vsum): Likewise.
19808 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19809 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19810 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19811 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19812 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19813 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19814 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19815 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19816 (cortex_a9_neon_bp_simple): Likewise.
19817 (cortex_a9_neon_bp_2cycle): Likewise.
19818 (cortex_a9_neon_bp_3cycle): Likewise.
19819 (cortex_a9_neon_ldr): Likewise.
19820 (cortex_a9_neon_str): Likewise.
19821 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19822 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19823 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19824 (cortex_a9_neon_vld2_4_regs): Likewise.
19825 (cortex_a9_neon_vld3_vld4): Likewise.
19826 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19827 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19828 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19829 (cortex_a9_neon_vst3_vst4): Likewise.
19830 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19831 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19832 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19833 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19834 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19835 (cortex_a9_neon_mcr): Likewise.
19836 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19837 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19838 (cortex_a9_fps): Likewise.
19839 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19840 change.
19841 (cortex_m4_fmuls): Likewise.
19842 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19843 change.
19844 (cortex_r4_mrc): Likewise.
19845 * config/arm/iterators.md: Update comment referring to neon_type.
19846 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19847 (iwmmxt_movsi_insn): Likewise.
19848 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19849 attribute change.
19850 (pj4_core_to_vfp): Likewise.
19851 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19852 attribute change.
19853 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19854 (vfp_fstore): Likewise.
19855 * doc/md.texi: Change references to neon_type to refer to type.
19856
19857 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19858
19859 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19860
19861 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19862
19863 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19864 lglobl if not weak.
19865
19866 2013-09-04 Easwaran Raman <eraman@google.com>
19867
19868 PR middle-end/57370
19869 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19870 (build_and_add_sum): Use it.
19871 (appears_later_in_bb): Simplify code.
19872
19873 2013-09-04 Teresa Johnson <tejohnson@google.com>
19874
19875 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19876
19877 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19878
19879 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19880
19881 2013-09-04 Jan Hubicka <jh@suse.cz>
19882
19883 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19884 * ipa-devirt.c: Include diganostic.h
19885 (odr_type_d): Add types and types_set.
19886 (hash_type_name): Work for types with vtables during LTO.
19887 (odr_hasher::remove): Fix comment; destroy types_set.
19888 (add_type_duplicate): New function,
19889 (get_odr_type): Use it.
19890 (dump_type_inheritance_graph): Dump type duplicates.
19891 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19892 graph.
19893 * tree.c (types_same_for_odr): Give exact answers on types with
19894 virtual tables.
19895
19896 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19897
19898 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19899 explaining their differences.
19900
19901 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19902
19903 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19904
19905 2013-09-03 Jeff Law <law@redhat.com>
19906
19907 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19908 when not threading through a joiner block. Pass joiner/no joiner
19909 state to register_jump_thread.
19910 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19911 state from argument rather than implying on path length.
19912 Dump the entire jump thread path into debugging dump.
19913 * tree-flow.h (register_jump_thread): Update prototype.
19914
19915 2013-08-29 Xinliang David Li <davidxl@google.com>
19916
19917 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19918 Remove a trivial gcc_assert.
19919
19920 2013-08-29 Xinliang David Li <davidxl@google.com>
19921
19922 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19923 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19924 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19925 Delay base decl alignment adjustment.
19926 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19927 * tree-vectorizer.h: New data structure.
19928 (set_dr_misalignment): New function.
19929 (dr_misalignment): Ditto.
19930 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19931 (vectorizable_load): Ditto.
19932 (ensure_base_align): New function.
19933 (vectorize_loops): Add dbg_cnt support.
19934 (execute_vect_slp): Ditto.
19935 * dbgcnt.def: New debug counter.
19936 * Makefile: New dependency.
19937
19938 2013-09-03 Meador Inge <meadori@codesourcery.com>
19939
19940 Revert:
19941
19942 2013-08-30 Meador Inge <meadori@codesourcery.com>
19943
19944 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19945
19946 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19947
19948 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19949 function descriptor.
19950
19951 2013-09-03 Richard Biener <rguenther@suse.de>
19952
19953 * tree-affine.c (add_elt_to_tree): Fix association issue,
19954 avoid useless converts and make sure to always return a
19955 properly typed result.
19956
19957 2013-09-03 Richard Biener <rguenther@suse.de>
19958
19959 PR middle-end/57656
19960 * fold-const.c (negate_expr_p): Fix division case.
19961 (negate_expr): Likewise.
19962
19963 2013-09-03 Richard Biener <rguenther@suse.de>
19964
19965 PR lto/58285
19966 * tree-streamer-out.c: Include tm.h.
19967 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19968
19969 2013-09-03 Jan Hubicka <jh@suse.cz>
19970
19971 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19972
19973 2013-09-03 Alan Modra <amodra@gmail.com>
19974
19975 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19976 multilibs to big-endian target and vice versa.
19977 * config/rs6000/t-linux64: Use := assignment on all vars.
19978 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19979 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19980 * config/rs6000/t-linux64le: New file.
19981 * config/rs6000/t-linux64bele: New file.
19982 * config/rs6000/t-linux64lebe: New file.
19983
19984 2013-09-02 Jan Hubicka <jh@suse.cz>
19985
19986 * ipa-inline-transform.c (inline_transform): Do not
19987 optimize_inline_calls when not optimizing.
19988
19989 2013-09-02 Jan Hubicka <jh@suse.cz>
19990
19991 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19992 duplicated nodes for assembler names.
19993 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19994 hard registers from assembler name hash.
19995
19996 2013-09-02 Jan Hubicka <jh@suse.cz>
19997
19998 * ipa-split.c (execute_split_functions): Split externally visible
19999 functions called once.
20000
20001 2013-09-02 Martin Jambor <mjambor@suse.cz>
20002
20003 PR ipa/58106
20004 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
20005 linked list. When finding the correct duplicate, also consider also
20006 the caller in additon to its inlined_to node.
20007
20008 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
20009
20010 * config/aarch64/aarch64-simd-builtins.def
20011 (dup_lane_scalar): Remove.
20012 * config/aarch64/aarch64-simd.md
20013 (aarch64_simd_dup): Add 'w->w' alternative.
20014 (aarch64_dup_lane<mode>): Allow for VALL.
20015 (aarch64_dup_lane_scalar<mode>): Remove.
20016 (aarch64_dup_lane_<vswap_width_name><mode>): New.
20017 (aarch64_get_lane_signed<mode>): Add w->w altenative.
20018 (aarch64_get_lane_unsigned<mode>): Likewise.
20019 (aarch64_get_lane<mode>): Likewise.
20020 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20021 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20022 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20023 (VCON): Change container of V2SF.
20024 (vswap_width_name): Likewise.
20025 * config/aarch64/arm_neon.h
20026 (__aarch64_vdup_lane_any): New.
20027 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20028 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20029 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20030
20031 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
20032
20033 PR middle-end/56382
20034 * expr.c (emit_move_complex): Do not move complex FP values as parts if
20035 the source or the destination is a single hard register.
20036
20037 2013-09-02 Richard Biener <rguenther@suse.de>
20038
20039 PR middle-end/57511
20040 * tree-scalar-evolution.c (instantiate_scev_name): Allow
20041 non-linear SCEVs.
20042
20043 2013-09-02 Richard Biener <rguenther@suse.de>
20044
20045 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20046 arithmetic to sizetype.
20047
20048 2013-09-02 Bin Cheng <bin.cheng@arm.com>
20049
20050 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20051 Find auto-increment use both before and after candidate.
20052
20053 2013-09-02 Marek Polacek <polacek@redhat.com>
20054
20055 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20056
20057 2013-09-01 Jan Hubicka <jh@suse.cz>
20058
20059 * Makefile.in: Add ipa-profile.o
20060 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20061 * cgraph.c (struct cgraph_propagate_frequency_data,
20062 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20063 ipa-profile.c; replace cgraph_ by ipa_ prefix.
20064 * cgraph.h (cgraph_propagate_frequency): Remove.
20065 * ipa-inline-analysis.c: Include ipa-utils.h;
20066 drop duplicated cfgloop.h.
20067 (inline_update_callee_summaries): Update.
20068 * ipa-profile.c: New file.
20069 * ipa-utils.h (ipa_propagate_frequency): Declare.
20070 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20071 data-streamer.h, value-prof.h.
20072 (symtab_remove_unreachable_nodes): Update profile.
20073 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20074 account_time_size, cmp_counts, dump_histogram,
20075 ipa_profile_generate_summary, ipa_profile_write_summary,
20076 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20077 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20078 Move to ipa-profile.c.
20079
20080 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
20081
20082 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20083
20084 2013-09-01 Jan Hubicka <jh@suse.cz>
20085
20086 * common.opt (fdevirtualize-speculatively): New function.
20087 * invoke.texi (fdevirtualize-speculatively): Document.
20088 * ipa-devirt.c: Include ipa-inline.h
20089 (likely_target_p): New function.
20090 (ipa_devirt): New function.
20091 (gate_ipa_devirt): New function.
20092 (pass_data_ipa_devirt): New static var.
20093 (pass_ipa_devirt): Likewise.
20094 (make_pass_ipa_devirt): New function.
20095 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20096 (common_handle_option): Disable devirtualization when
20097 value range profiling is available.
20098 * passes.def (pass_ipa_devirt): Add.
20099 * timever.def (TV_IPA_DEVIRT): New timevar.
20100 * tree-pass.h (make_pass_ipa_devirt):
20101
20102 2013-09-01 Iain Sandoe <iain@codesourcery.com>
20103
20104 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20105 include sanitize(undefined).
20106
20107 2013-08-31 Diego Novillo <dnovillo@google.com>
20108
20109 * Makefile.in (TREE_CORE_H): Define.
20110 (TREE_H): Use.
20111 (GTFILES): Add tree-core.h.
20112 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20113 size the array.
20114 * tree-core.h: New file.
20115 Move all data structures, enum, typedefs, global
20116 declarations and constants from ...
20117 * tree.h: ... here.
20118
20119 2013-08-31 Jan Hubicka <jh@suse.cz>
20120
20121 * bulitins.c (expand_builtin): Do not early exit for gcov
20122 instrumented functions.
20123
20124 2013-08-31 Marek Polacek <polacek@redhat.com>
20125
20126 * ubsan.c: Include tm_p.h.
20127
20128 2013-08-31 Jan Hubicka <jh@suse.cz>
20129
20130 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20131 warning.
20132
20133 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20134 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20135 * tree-cfg.c (verify_gimple_label): ... here.
20136 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20137 (ipa_merge_profiles): New function.
20138 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20139 (lto_input_function_body): Likewise.
20140 * ipa-utils.h (ipa_merge_profiles): Declare.
20141 * lto-streamer.h (lto_input_function_body): Update prototype.
20142 (emit_label_in_global_context_p): Remove.
20143 * lto-symtab.c: Include ipa-utils.h
20144 (lto_cgraph_replace_node): Use ipa_merge_profiles.
20145
20146 2013-08-31 Jan Hubicka <jh@suse.cz>
20147
20148 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20149
20150 2013-08-31 Jan Hubicka <jh@suse.cz>
20151
20152 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20153
20154 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
20155
20156 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20157 "cmp" RTX before signed_comparison_operator check to account
20158 for "code" changes.
20159
20160 2013-08-30 Jan Hubicka <jh@suse.cz>
20161
20162 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20163 (detect_type_change_1): Rename to ...
20164 (detect_type_change): ... this one; early return on non-polymorphic
20165 types.
20166 (detect_type_change_ssa): Add comp_type parameter; update
20167 use of detect_type_change.
20168 (compute_complex_assign_jump_func): Add param_type parameter;
20169 update use of detect_type_change_ssa.
20170 (compute_complex_ancestor_jump_func): Likewise.
20171 (ipa_get_callee_param_type): New function.
20172 (ipa_compute_jump_functions_for_edge): Compute parameter type;
20173 update calls to the jump function computation functions.
20174
20175 2013-08-30 Teresa Johnson <tejohnson@google.com>
20176 Steven Bosscher <steven@gcc.gnu.org>
20177
20178 * cfgrtl.c (fixup_new_cold_bb): New routine.
20179 (commit_edge_insertions): Invoke fixup_partitions.
20180 (find_partition_fixes): New routine.
20181 (fixup_partitions): Ditto.
20182 (verify_hot_cold_block_grouping): Update comments.
20183 (rtl_verify_edges): Invoke find_partition_fixes.
20184 (rtl_verify_bb_pointers): Update comments.
20185 (rtl_verify_bb_layout): Ditto.
20186 * basic-block.h (probably_never_executed_edge_p): Declare.
20187 (fixup_partitions): Ditto.
20188 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20189 * bb-reorder.c (sanitize_hot_paths): New function.
20190 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20191 sanitize_hot_paths.
20192 * predict.c (probably_never_executed_edge_p): New routine.
20193 * cfg.c (check_bb_profile): Add partition insanity warnings.
20194
20195 2013-08-30 Meador Inge <meadori@codesourcery.com>
20196
20197 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20198
20199 2013-08-30 Marek Polacek <polacek@redhat.com>
20200
20201 * Makefile.in (ubsan.o): Add.
20202 (c-family/c-ubsan.o): Add.
20203 (builtins.o): Add ubsan.h dependency.
20204 * ubsan.h: New file.
20205 * ubsan.c: New file.
20206 * common.opt: Add -fsanitize=undefined option.
20207 (flag_sanitize): Add variable.
20208 (fsanitize=): Add option. Add Driver.
20209 (fsanitize=thread): Remove option.
20210 (fsanitize=address): Likewise.
20211 (static-libubsan): New option.
20212 * doc/invoke.texi: Document the new flag and -static-libubsan.
20213 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20214 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20215 * builtin-attrs.def (ATTR_COLD): Define.
20216 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20217 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20218 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20219 * flag-types.h (sanitize_code): New enum.
20220 * opts.c (common_handle_option): Parse command line arguments
20221 of -fsanitize=. Add -fsanitize=unreachable option.
20222 * varasm.c (get_variable_section): Adjust.
20223 (assemble_noswitch_variable): Likewise.
20224 (assemble_variable): Likewise.
20225 (output_constant_def_contents): Likewise.
20226 (categorize_decl_for_section): Likewise.
20227 (place_block_symbol): Likewise.
20228 (output_object_block): Likewise.
20229 * builtins.def: Likewise.
20230 * toplev.c (compile_file): Likewise.
20231 (process_options): Likewise.
20232 * cppbuiltin.c: Likewise.
20233 * tsan.c (tsan_pass): Likewise.
20234 (tsan_gate): Likewise.
20235 (tsan_gate_O0): Likewise.
20236 * cfgexpand.c (partition_stack_vars): Likewise.
20237 (expand_stack_vars): Likewise.
20238 (defer_stack_allocation): Likewise.
20239 (expand_used_vars): Likewise.
20240 * cfgcleanup.c (old_insns_match_p): Likewise.
20241 * asan.c (asan_finish_file): Likewise.
20242 (asan_instrument): Likewise.
20243 (gate_asan): Likewise.
20244 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20245 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20246 (asan_global_struct): Use pointer_sized_int_node instead
20247 calling build_nonstandard_integer_type.
20248 (initialize_sanitizer_builtins): Likewise.
20249 (asan_finish_file): Likewise.
20250 * gcc.c: Document %{%:function(args):X}.
20251 (static_spec_functions): Add sanitize.
20252 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20253 store funcval != NULL there.
20254 (do_spec_1): Adjust handle_spec_function caller.
20255 (handle_braces): Allow %:function(args) as condition.
20256 (sanitize_spec_function): New function.
20257 (ADD_STATIC_LIBUBSAN_LIBS): Define.
20258 (LIBUBSAN_SPEC): Likewise.
20259 (LIBUBSAN_EARLY_SPEC): Likewise.
20260 (SANITIZER_SPEC): Handle libubsan.
20261 (SANITIZER_EARLY_SPEC): Likewise.
20262 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20263 instead of fsanitize=address.
20264 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20265 instead of fsanitize=address*.
20266 * builtins.c: Include ubsan.h.
20267 (fold_builtin_0): Instrument __builtin_unreachable.
20268 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20269 instead of flag_asan.
20270 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20271 (pointer_sized_int_node): Define.
20272 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20273
20274 2013-08-30 Mike Stump <mikestump@comcast.net>
20275
20276 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20277 with RE patterns.
20278
20279 2013-08-29 Jan Hubicka <jh@suse.cz>
20280
20281 * cgraph.c (cgraph_function_body_availability): Handle weakref
20282 correctly.
20283 * passes.def: Remove pass_fixup_cfg.
20284 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20285 track when we need to remove functions.
20286 (gate_ipa_inline): Execute inlining always; add comment why.
20287 (pass_data_ipa_inline): Remove TODO_remove_functions.
20288 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20289 do not produce summaries.
20290 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20291 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20292 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20293 constant pool and vtable.
20294
20295 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
20296
20297 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20298 New arm_neon.h's internal macros to specify 64-bit constants.
20299 Avoid using stdint.h's macros.
20300
20301 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
20302
20303 * recog.c (verify_changes): Verify that changes[i].old is non-zero
20304 before applying REG_P.
20305
20306 2013-08-30 Jakub Jelinek <jakub@redhat.com>
20307
20308 PR tree-optimization/58277
20309 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20310 after seeing too many stmts with vdef in between dombb and current
20311 bb, invalidate everything.
20312
20313 2013-08-30 Richard Biener <rguenther@suse.de>
20314
20315 * fold-const.c (fold_single_bit_test): Fix overflow test.
20316
20317 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
20318
20319 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20320 and which can live in a register, always retrieve the value on entry.
20321 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20322 passed by invisible reference specially.
20323 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20324 (vt_add_function_parameter): Correctly deal with a parameter passed by
20325 invisible reference.
20326
20327 2013-08-30 Jan Hubicka <jh@suse.cz>
20328
20329 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20330
20331 2013-08-30 Richard Biener <rguenther@suse.de>
20332
20333 PR tree-optimization/58228
20334 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20335 allow invariant loads in nested loop vectorization.
20336
20337 2013-08-30 Richard Biener <rguenther@suse.de>
20338
20339 PR tree-optimization/58223
20340 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20341 (has_anti_or_output_dependence): ... this and adjust to also
20342 look for output dependences.
20343 (mark_nodes_having_upstream_mem_writes): Adjust.
20344 (rdg_flag_uses): Likewise.
20345
20346 2013-08-30 Richard Biener <rguenther@suse.de>
20347
20348 PR tree-optimization/58010
20349 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20350 assert that we have a loop-closed PHI.
20351
20352 2013-08-29 Jan Hubicka <jh@suse.cz>
20353
20354 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20355 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20356 * lto-section-in.c (lto_free_function_in_decl_state): New function.
20357 (lto_free_function_in_decl_state_for_node): New function.
20358
20359 2013-08-29 Xinliang David Li <davidxl@google.com>
20360
20361 * loop-unroll.c (report_unroll_peel): Minor message change.
20362 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20363 Emit alignment peeling message with default -fopt-info.
20364 (vect_loop_versioning): Emit loop version info message.
20365 * tree-vectorizer.c (vectorize_loops): Minor message change.
20366 (execute_vect_slp): Ditto.
20367
20368 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
20369
20370 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20371 of the clone from the DECL_NAME of the original function.
20372
20373 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
20374
20375 * passes.c (register_pass): Add overload.
20376 * tree-pass.h (register_pass): Forward declare it. Add comment.
20377
20378 2013-08-29 Jan Hubicka <jh@suse.cz>
20379
20380 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20381 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20382 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20383 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20384 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20385 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20386 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20387 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20388
20389 2013-08-29 Teresa Johnson <tejohnson@google.com>
20390
20391 * dumpfile.c (dump_loc): Output column number.
20392 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20393 * doc/invoke.texi: Document optall -fopt-info flag.
20394 * profile.c (read_profile_edge_counts): Use new dump framework.
20395 (compute_branch_probabilities): Ditto.
20396 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20397 when pass not in any opt group.
20398 * pass_manager.h (pass_manager::get_pass_profile): New method.
20399 * value-prof.c (check_counter): Use new dump framework.
20400 (check_ic_target): Ditto.
20401 * coverage.c (get_coverage_counts): Ditto.
20402 (coverage_init): Setup new dump framework.
20403
20404 2013-08-29 Richard Biener <rguenther@suse.de>
20405
20406 PR tree-optimization/58246
20407 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20408 handle the dominance check inside a basic-block.
20409
20410 2013-08-29 Richard Biener <rguenther@suse.de>
20411
20412 PR middle-end/57287
20413 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20414 of default defs that appear in abnormal PHI nodes.
20415
20416 2013-08-29 Richard Biener <rguenther@suse.de>
20417
20418 PR tree-optimization/57685
20419 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20420 single-use operands to avoid exponential complexity.
20421
20422 2013-08-28 Dehao Chen <dehao@google.com>
20423
20424 * ipa-inline.c (edge_badness): Fix integer underflow.
20425
20426 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
20427
20428 * gtm-builtins.def (_ITM_free): Declare leaf.
20429
20430 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20431
20432 PR target/58067
20433 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20434 (*tls_local_dynamic_base_64_largepic): Likewise.
20435 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20436 Remove predicate from call operand.
20437 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20438 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20439
20440 2013-08-28 Jeff Law <law@redhat.com>
20441
20442 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20443 checks for the number of predecessors and successors allowed.
20444 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20445 which require copying a joiner block if there is a request which
20446 is a subpath that requires no joiner block copying.
20447
20448 2013-08-28 Jan Hubicka <jh@suse.cz>
20449
20450 * lto-streamer-out.c (DFS_write_tree_body): Drop
20451 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20452 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20453 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20454 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20455 Do not read DECL_ERROR_ISSUED.
20456 (unpack_ts_decl_with_vis_value_fields): Do not read
20457 DECL_DEFER_OUTPUT.
20458 (lto_input_ts_binfo_tree_pointers): Do not read
20459 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20460 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20461 write DECL_ERROR_ISSUED..
20462 (pack_ts_decl_with_vis_value_fields): Do not write
20463 DECL_DEFER_OUTPUT.
20464 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20465 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20466 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20467 * tree.h (tree_decl_common): Update comment.
20468 (DECL_ERROR_ISSUED): Remove.
20469
20470 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20471
20472 PR middle-end/58257
20473 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20474
20475 2013-08-28 Jan Hubicka <jh@suse.cz>
20476
20477 * builtins.def (free): Declare leaf.
20478
20479 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20480
20481 * gdbhooks.py: New.
20482 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20483 * configure: Regenerate.
20484
20485 2013-08-27 Martin Jambor <mjambor@suse.cz>
20486
20487 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20488 (ipa_ancestor_jf_data): Likewise.
20489 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20490 (ipa_get_jf_pass_through_type_preserved): New function.
20491 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20492 (ipa_get_jf_ancestor_type_preserved): New function.
20493 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20494 (ipa_get_jf_ancestor_result): Likewise.
20495 (propagate_vals_accross_pass_through): Use
20496 ipa_get_jf_pass_through_result to do all the value mappings.
20497 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20498 type_preserved flag.
20499 (ipa_set_jf_cst_copy): New function.
20500 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20501 (ipa_set_jf_arith_pass_through): Likewise.
20502 (ipa_set_ancestor_jf): Likewise.
20503 (compute_complex_assign_jump_func): Set type_preserved instead of
20504 punting.
20505 (ipa_compute_jump_functions_for_edge): Likewise.
20506 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20507 (update_jump_functions_after_inlining): Update type_preserved.
20508 Explicitely create jump functions when combining one with pass_through.
20509 (ipa_write_jump_function): Stream the type_preserved flags.
20510 (ipa_read_jump_function): Likewise.
20511
20512 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20513 Aldy Hernandez <aldyh@redhat.com>
20514
20515 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20516 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20517 * function.h (struct function): Add has_force_vect_loops and
20518 has_simduid_loops.
20519 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20520 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20521 handle it.
20522 * gimple.def: Update CLAUSES comments.
20523 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20524 (gimple_build_omp_for): Add argument to prototype.
20525 (gimple_omp_for_kind): New.
20526 (gimple_omp_for_set_kind): New.
20527 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20528 GOVD_DATA_SHARE_CLASS.
20529 (enum omp_region_type): Add ORT_SIMD.
20530 (gimple_add_tmp_var): Handle ORT_SIMD.
20531 (gimplify_var_or_parm_decl): Same.
20532 (is_gimple_stmt): Same.
20533 (omp_firstprivatize_variable): Same.
20534 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20535 (omp_notice_variable): Handle ORT_SIMD.
20536 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20537 (omp_check_private): Handle ORT_SIMD.
20538 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20539 OMP_CLAUSE_SAFELEN.
20540 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20541 Handle OMP_CLAUSE_LASTPRIVATE.
20542 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20543 OMP_CLAUSE_SAFELEN.
20544 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20545 (gimplify_expr): Handle OMP_SIMD.
20546 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20547 (expand_GOMP_SIMD_VF): New.
20548 (expand_GOMP_SIMD_LAST_LANE): New.
20549 * internal-fn.def (GOMP_SIMD_LANE): New.
20550 (GOMP_SIMD_VF): New.
20551 (GOMP_SIMD_LAST_LANE): New.
20552 * omp-low.c: Include target.h.
20553 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20554 OMP_CLAUSE_SAFELEN.
20555 (check_omp_nesting_restrictions): Same.
20556 (omp_max_vf): New.
20557 (lower_rec_simd_input_clauses): New.
20558 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20559 OMP_CLAUSE_LINEAR.
20560 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20561 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20562 (expand_omp_build_assign): New.
20563 (expand_omp_for_init_counts): New.
20564 (expand_omp_for_init_vars): New.
20565 (extract_omp_for_update_vars): New.
20566 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20567 and rewrite accordingly.
20568 (expand_omp_simd): New.
20569 (expand_omp_for): Use expand_omp_simd.
20570 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20571 (lower_omp_for): Do not lower the body.
20572 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20573 in their own loops.
20574 * tree-flow.h (find_omp_clause): Remove prototype.
20575 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20576 forcing vectorization of the loop, or if flag_tree_vectorize.
20577 (gate_tree_if_conversion): Similarly.
20578 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20579 gimple_build_omp_for.
20580 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20581 * tree-parloops (create_parallel_loop): Pass kind argument to
20582 gimple_build_omp_for.
20583 * tree-pretty-print.c (dump_omp_clause): Add cases for
20584 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20585 OMP_CLAUSE__SIMDUID_.
20586 (dump_generic_node): Handle OMP_SIMD.
20587 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20588 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20589 unroll OMP_SIMD loops here.
20590 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20591 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20592 loop->safelen.
20593 (vect_analyze_data_refs): Handle simd loops.
20594 * tree-vect-loop.c (vectorizable_live_operation): Handle
20595 IFN_GOMP_SIMD*.
20596 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20597 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20598 (vectorizable_load): Same.
20599 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20600 (struct simduid_to_vf): New.
20601 (simduid_to_vf::hash): New.
20602 (simduid_to-vf::equal): New.
20603 (struct simd_array_to_simduid): New.
20604 (simd_array_to_simduid::hash): New.
20605 (simd_array_to_simduid::equal): New.
20606 (adjust_simduid_builtins): New.
20607 (struct note_simd_array_uses_struct): New.
20608 (note_simd_array_uses_cb): New.
20609 (note_simd_array_uses): New.
20610 (vectorize_loops): Handle simd hints and adjust simd builtins
20611 accordingly.
20612 * tree-vectorizer.h (struct _stmt_vec_info): Add
20613 simd_lane_access_p field.
20614 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20615 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20616 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20617 (omp_clause_code_name): Same.
20618 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20619 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20620 * tree.def (OMP_SIMD): New entry.
20621 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20622 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20623 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20624 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20625 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20626 (OMP_CLAUSE_LINEAR_STEP): New.
20627 (OMP_CLAUSE_SAFELEN_EXPR): New.
20628 (OMP_CLAUSE__SIMDUID__DECL): New.
20629 (find_omp_clause): New prototype.
20630
20631 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20632
20633 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20634 Haswell processor detection.
20635
20636 2013-08-27 Christian Widmer <shadow@umbrox.de>
20637
20638 PR target/57927
20639 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20640 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20641 AVX2 capable processors.
20642
20643 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20644
20645 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20646 of vget_low_* with implementations in terms of other intrinsics.
20647
20648 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20649
20650 PR middle-end/57219
20651 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20652 values to -1, 0 and 1.
20653
20654 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20655
20656 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20657 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20658 (<optab><mode>3_insn): Remove.
20659 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20660 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20661 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20662 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20663 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20664 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20665 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20666 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20667 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20668 (ror<mode>3_insn): Likewise.
20669 * config/aarch64/predicates.md (aarch64_simd_register): New.
20670
20671 2013-08-27 Richard Biener <rguenther@suse.de>
20672
20673 PR tree-optimization/57521
20674 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20675 one edge is non-critical.
20676 (find_phi_replacement_condition): Make sure to use a non-critical
20677 edge. Cleanup and remove old bug workarounds.
20678 (bb_postdominates_preds): Remove.
20679 (if_convertible_loop_p_1): Do not compute post-dominators.
20680 (combine_blocks): Do not free post-dominators.
20681 (main_tree_if_conversion): Likewise.
20682 (pass_data_if_conversion): Add TODO_verify_ssa.
20683
20684 2013-08-27 DJ Delorie <dj@redhat.com>
20685
20686 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20687
20688 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20689
20690 * function.c (assign_parm_find_data_types): Set passed_mode and
20691 nominal_mode to the TYPE_MODE of nominal_type for the built
20692 pointer type in case of the struct-pass-by-reference.
20693
20694 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20695
20696 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20697 (UINT16_TYPE): Change default to "unsigned int".
20698
20699 * config/avr/avr.opt (mfract-convert-truncate): New option.
20700 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20701 is set, round negative fractional integers according to n1169
20702 when converting to integer types.
20703
20704 2013-08-26 Jan Hubicka <jh@suse.cz>
20705
20706 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20707 methods can not be called indirectly when their address is not taken.
20708
20709 2013-08-26 Jan Hubicka <jh@suse.cz>
20710
20711 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20712 ctor_for_folding.
20713
20714 2013-08-26 Jan Hubicka <jh@suse.cz>
20715
20716 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20717 can be unshared.
20718
20719 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20720
20721 * reload.c (find_valid_class): Allow classes that do not include
20722 FIRST_PSEUDO_REGISTER - 1.
20723
20724 2013-08-26 Jan Hubicka <jh@suse.cz>
20725
20726 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20727 fix edge count/frequency when speculation failed; fix type check
20728 for the direct call.
20729
20730 2013-08-26 Jan Hubicka <jh@suse.cz>
20731
20732 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20733
20734 2013-08-26 Jan Hubicka <jh@suse.cz>
20735
20736 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20737 to be changed by edge redirection.
20738
20739 2013-08-26 Jan Hubicka <jh@suse.cz>
20740
20741 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20742 formating; add sanity check.
20743 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20744 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20745 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20746 (resolve_noninline_speculation): Update callee keys, too.
20747
20748 2013-08-26 Jan Hubicka <jh@suse.cz>
20749
20750 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20751 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20752
20753 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20754
20755 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20756 into proper place.
20757
20758 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20759
20760 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20761 (x86_64_elf_select_section): Ditto.
20762 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20763 arguments.
20764 (ix86_pass_by_reference): Ditto.
20765 (output_set_got): Ditto.
20766 (ix86_unary_operator_ok): Ditto.
20767 (ix86_expand_builtin): Ditto.
20768
20769 2013-08-23 Jan Hubicka <jh@suse.cz>
20770
20771 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20772
20773 2013-08-23 Jan Hubicka <jh@suse.cz>
20774
20775 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20776 (tree_decl_with_vis): Add FINAL field.
20777
20778 2013-08-23 Jeff Law <law@redhat.com>
20779
20780 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20781 the debugging dump when the expression is fully redundant.
20782
20783 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20784
20785 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20786 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20787 * pretty-print.c (pp_formatted_text_data): Likewise.
20788 (pp_write_text_to_stream): Likewise.
20789 (pp_write_text_as_dot_label_to_stream): Likewise.
20790 (pp_append_r): Likewise.
20791 (pp_format): Likewise.
20792 (pp_flush): Likewise.
20793 (pp_clear_output_area): Likewise.
20794 (pp_append_text): Likewise.
20795 (pp_formatted_text): Likewise.
20796 (pp_remaining_character_count_for_line): Likewise.
20797 (pp_newline): Likewise.
20798 (pp_character): Likewise.
20799 (output_buffer::~output_buffer): Define.
20800 (pretty_printer::~pretty_printer): Destruct output buffer.
20801 * pretty-print.h (output_buffer::~output_buffer): Declare.
20802 (pretty_printer::~pretty_printer): Declare virtual.
20803
20804 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20805
20806 PR other/57324
20807 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20808 HOST_WIDE_INT_M1U): New macros.
20809 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20810 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20811 unsigned -1 for lshift.
20812 * cse.c (cse_insn): Likewise.
20813 * double-int.c (rshift_double, lshift_double): Likewise.
20814 * builtins.c (fold_builtin_bitop): Likewise.
20815 * combine.c (force_to_mode): Likewise.
20816 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20817 * simplify-rtx.c (simplify_const_unary_operation,
20818 simplify_const_binary_operation): Likewise.
20819 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20820 check_va_list_escapes): Likewise.
20821 * rtlanal.c (nonzero_bits1): Likewise.
20822 * expmed.c (expand_smod_pow2): Likewise.
20823 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20824
20825 2013-08-23 Jan Hubicka <jh@suse.cz>
20826
20827 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20828 as having address taken.
20829
20830 2013-08-23 Jan Hubicka <jh@suse.cz>
20831
20832 * ipa-utils.h (method_class_type): Declare.
20833 * ipa-devirt.c (method_class_type): Export.
20834
20835 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20836 do not walk base classes of anonymous types.
20837
20838 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20839
20840 PR rtl-optimization/58220
20841 PR regression/58221
20842 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20843 handle SEQUENCE insns properly.
20844
20845 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20846
20847 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20848 definition.
20849 (pp_newline_and_indent): Likewise.
20850 (pp_separate_with): Likewise.
20851 * pretty-print.c (pp_newline_and_flush): Define.
20852 (pp_newline_and_indent): Likewise.
20853 (pp_separate_with): Likewise.
20854
20855 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20856
20857 PR target/58218
20858 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20859 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20860
20861 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20862
20863 * config/i386/predicates.md (ext_sse_reg_operand): New.
20864 * config/i386/i386.md (*movti_internal): Use
20865 predicate to determine if EVEX is needed.
20866 (*movsi_internal): Ditto.
20867 (*movdf_internal): Ditto.
20868 (*movsf_internal): Ditto.
20869 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20870
20871 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20872
20873 PR tree-optimization/58209
20874 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20875 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20876 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20877 emit POINTER_PLUS_EXPR.
20878 (create_tailcall_accumulator): For pointer result type accumulate in
20879 sizetype type.
20880
20881 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20882
20883 * configure.ac: Add backslashes missing from the last change.
20884 * configure: Regenerate.
20885
20886 2013-08-22 Jan Hubicka <jh@susue.cz>
20887
20888 * ipa.c (function_and_variable_visibility): First remember function
20889 was global and then make it local.
20890
20891 2013-08-22 Julian Brown <julian@codesourcery.com>
20892
20893 * configure.ac: Add aarch64 to list of arches which use "nop" in
20894 debug_line test.
20895 * configure: Regenerate.
20896
20897 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20898
20899 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20900 gnu_libc_has_function.
20901 * config/s390/tpf.h: Likewise.
20902
20903 2013-08-22 Jan Hubicka <jh@susue.cz>
20904
20905 * timevar.c (validate_phases): Add cast.
20906
20907 2013-08-22 Jan Hubicka <jh@susue.cz>
20908
20909 * timevar.c (validate_phases): Use size_t for memory.
20910 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20911
20912 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20913
20914 * pretty-print.h (output_buffer::output_buffer): Declare.
20915 (pretty_printer::pretty_printer): Likewise.
20916 (pp_construct): Remove.
20917 * pretty-print.c (output_buffer::output_buffer): Define.
20918 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20919 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20920 (print_gimple_expr): Likewise.
20921 (print_gimple_seq): Likewise.
20922 (gimple_dump_bb): Likewise.
20923 * sched-vis.c (dump_value_slim): Likewise.
20924 (dump_insn_slim): Likewise.
20925 (dump_rtl_slim): Likewise.
20926 (str_pattern_slim): Likewise.
20927 * tree-mudflap.c (mf_varname_tree): Likewise.
20928 * graph.c (print_graph_cfg): Likewise.
20929 (start_graph_dump): Likewise.
20930 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20931 placement-new.
20932 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20933 pretty printer initialization.
20934 * coretypes.h (diagnostic_context): Remove superflous type alias
20935 declaration.
20936 (pretty_printer): Likewise. Declare directly as a class.
20937 (pretty_print_info): Remove declaration as class.
20938 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20939 and pp_clear_output_area.
20940 (asan_add_global): Likewise.
20941
20942 2013-08-22 Jan Hubicka <jh@suse.cz>
20943
20944 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20945 * ipa-utils.h (update_type_inheritance_graph): Declare.
20946 (possible_polymorphic_call_target_p): Declare.
20947 (possible_polymorphic_call_target_p): New.
20948 * ipa-devirt.c: Update toplevel comments.
20949 (cached_polymorphic_call_targets): Move up.
20950 (odr_type_d): Move ID down.
20951 (polymorphic_type_binfo_p): Update comment.
20952 (odr_hasher::remove): Likewise;
20953 (get_odr_type): Set anonymous_namespace.
20954 (dump_odr_type): Dump it.
20955 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20956 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20957 (record_binfo): Add comment.
20958 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20959 built.
20960 (devirt_node_removal_hook): Do not iCE when cache is freed.
20961 (possible_polymorphic_call_target_p): New predicate.
20962 (update_type_inheritance_graph): New function.
20963
20964 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20966 Sergey Lega <sergey.s.lega@intel.com>
20967 Anna Tikhonova <anna.tikhonova@intel.com>
20968 Ilya Tocar <ilya.tocar@intel.com>
20969 Andrey Turetskiy <andrey.turetskiy@intel.com>
20970 Ilya Verbin <ilya.verbin@intel.com>
20971 Kirill Yukhin <kirill.yukhin@intel.com>
20972 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20973
20974 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20975 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20976 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20977 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20978 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20979 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20980 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20981 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20982 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20983 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20984 OPT_mavx512pf, OPT_mavx512er cases.
20985 * config/i386/constraints.md (v): New constraint.
20986 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20987 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20988 (bit_AVX512CD): New.
20989 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20990 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20991 * config/i386/i386-c.c (ix86_target_macros_internal):
20992 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20993 __AVX512PF__.
20994 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20995 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20996 * config/i386/i386.c (regclass_map, dbx_register_map)
20997 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20998 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20999 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
21000 -mavx512pf options.
21001 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
21002 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
21003 -mavx512pf options. Fix formatting.
21004 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
21005 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
21006 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21007 -mavx512cd, -mavx512pf options.
21008 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21009 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21010 (ix86_preferred_output_reload_class): Replace SSE_REGS with
21011 ALL_SSE_REGS.
21012 (ix86_hard_regno_mode_ok): Support 512-bit registers.
21013 (ix86_set_reg_reg_cost): Ditto.
21014 (x86_order_regs_for_local_alloc): Ditto.
21015 (MAX_VECT_LEN): Extend to 64-byte.
21016 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21017 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21018 (TARGET_AVX512ER, TARGET_AVX512CD): New.
21019 (BIGGEST_ALIGNMENT): Extend to 512-bits.
21020 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21021 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21022 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21023 (SSE_REG_MODE_P): Support new modes.
21024 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21025 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21026 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21027 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21028 (REG_CLASS_CONTENTS): Add new registers.
21029 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21030 (EXT_REX_SSE_REGNO_P): New.
21031 (HI_REGISTER_NAMES): Add new registers.
21032 * config/i386/i386.md: Define constants for new registers.
21033 (mode): Add new 512-bit modes.
21034 (prefix): Support evex prefix.
21035 (isa): Support avx512f, noavx512f, fma_avx512f.
21036 (ssemodesuffix): Add new 512-bit modes.
21037 (movxi): New.
21038 (*movxi_internal_avx512f): Ditto.
21039 (*movdi_internal): Replace constraint "x" with the new constraint "v".
21040 Support MODE_XI.
21041 (*movsi_internal): Likewise.
21042 (*movdf_internal): Likewise.
21043 (*movsf_internal): Likewise.
21044 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21045 (<code><mode>3): Likewise.
21046 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21047 New.
21048 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21049 with the new constraint "v".
21050 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21051 modes.
21052 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21053 with the new constraint "v".
21054 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21055 (<sse2>_storedqu<avxsizesuffix>): Likewise.
21056 (*<plusminus_insn><mode>3): Likewise.
21057 (<sse>_vm<plusminus_insn><mode>3): Likewise.
21058 (*mul<mode>3): Likewise.
21059 (<sse>_vmmul<mode>3): Likewise.
21060 (<sse>_div<mode>3): Likewise.
21061 (<sse>_vmdiv<mode>3): Likewise.
21062 (<sse>_sqrt<mode>2): Likewise.
21063 (<sse>_vmsqrt<mode>2): Likewise.
21064 (*<code><mode>3_finite): Likewise.
21065 (*<code><mode>3) <smaxmin>: Likewise.
21066 (<sse>_vm<code><mode>3): Likewise.
21067 (*<code><mode>3) <any_logic>: Likewise.
21068 (*fma_fmadd_<mode>): Likewise.
21069 (*fma_fmsub_<mode>): Likewise.
21070 (*fma_fnmadd_<mode>): Likewise.
21071 (*fma_fnmsub_<mode>): Likewise.
21072 (*fma_fmaddsub_<mode>): Likewise.
21073 (*fma_fmsubadd_<mode>): Likewise.
21074 (*fmai_fmadd_<mode>): Likewise.
21075 (*fmai_fmsub_<mode>): Likewise.
21076 (*fmai_fnmadd_<mode>): Likewise.
21077 (*fmai_fnmsub_<mode>): Likewise.
21078 (sse_cvtsi2ss): Likewise.
21079 (sse_cvtsi2ssq): Likewise.
21080 (sse_cvtss2si): Likewise.
21081 (sse_cvtss2si_2): Likewise.
21082 (sse_cvtss2siq): Likewise.
21083 (sse_cvtss2siq_2): Likewise.
21084 (sse_cvttss2si): Likewise.
21085 (sse_cvtss2siq_2): Likewise.
21086 (float<sseintvecmodelower><mode>2): Likewise.
21087 (sse2_cvtsd2si_2): Likewise.
21088 (sse2_cvtsd2siq_2): Likewise.
21089 (*<plusminus_insn><mode>3): Likewise.
21090 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21091 (*<sse4_1_avx2>_mul<mode>3): Likewise.
21092 (ashr<mode>3): Likewise.
21093 (<shift_insn><mode>3): Likewise.
21094 (avx2_<code><mode>3): Likewise.
21095 (*avx2_<code><mode>3): Likewise.
21096 (*andnot<mode>3): Likewise.
21097 (*<code><mode>3) <any_logic>: Likewise.
21098 (abs<mode>2): Likewise.
21099 (avx2_permvar<mode>): Likewise.
21100 (avx2_perm<mode>_1): Likewise.
21101 (*avx_vpermilp<mode>): Likewise.
21102 (avx_vpermilvar<mode>3): Likewise.
21103 (avx2_ashrv<mode>): Likewise.
21104 (avx2_<shift_insn>v<mode>): Likewise.
21105 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21106 -mavx512cd.
21107 * doc/rtl.texi: Document XImode.
21108
21109 2013-08-21 Jeff Law <law@redhat.com>
21110
21111 * tree-flow.h (register_jump_thread): Pass vector of edges
21112 instead of each important edge.
21113 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21114 thread path into a vector and pass that to register_jump_thread.
21115 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21116 passed in edge vector to the current 3-edge form.
21117
21118 Revert:
21119 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21120
21121 * dce.c (fini_dce): Call df_analyze again just in case
21122 delete_unmarked_insns removed anything.
21123
21124 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
21125
21126 * reload.h (struct reg_equivs): Rename to ..
21127 (struct reg_equivs_s): .. this.
21128
21129 2013-08-20 Martin Liska <marxin.liska@gmail.com>
21130
21131 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21132
21133 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21134
21135 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21136
21137 2013-08-21 Jeff Law <law@redhat.com>
21138
21139 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21140 simplify assignments too. If the RHS collapses to a singleton
21141 range, then return the value for the range.
21142
21143 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
21144
21145 * config/i386/sse.md (V16): Rename to...
21146 (VMOVE): this.
21147 (mov<mode>): Update iterator name.
21148 (*mov<mode>_internal): Ditto.
21149 (push<mode>1): Ditto.
21150 (movmisalign<mode>): Ditto.
21151
21152 2013-08-20 Jan Hubicka <jh@suse.cz>
21153
21154 PR bootstrap/58186
21155 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21156 entry for direct edges.
21157 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21158
21159 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21160
21161 Revert my last two changes, r201865 and r201864:
21162
21163 Revert r201865:
21164 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21165
21166 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21167 instances can own GC refs.
21168
21169 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21170 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21171 (gcc::context::gt_pch_nx): Likewise.
21172 (gcc::context::gt_pch_nx): Likewise.
21173 * ggc.h (gt_ggc_mx <T>): New.
21174 (gt_pch_nx_with_op <T>): New.
21175 (gt_pch_nx <T>): New.
21176 * passes.c (opt_pass::gt_ggc_mx): New.
21177 (opt_pass::gt_pch_nx): New.
21178 (opt_pass::gt_pch_nx_with_op): New.
21179 (pass_manager::gt_ggc_mx): New.
21180 (pass_manager::gt_pch_nx): New.
21181 (pass_manager::gt_pch_nx_with_op): New.
21182 (pass_manager::operator new): Use
21183 ggc_internal_cleared_alloc_stat rather than xcalloc.
21184 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21185 (pass_manager::gt_ggc_mx): New.
21186 (pass_manager::gt_pch_nx): New.
21187 (pass_manager::gt_pch_nx_with_op): New.
21188 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21189 (opt_pass::operator new): New.
21190 (opt_pass::gt_ggc_mx): New.
21191 (opt_pass::gt_pch_nx): New.
21192 (opt_pass::gt_pch_nx_with_op): New.
21193
21194 Revert r201864:
21195 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21196
21197 * Makefile.in (GTFILES): Add context.h.
21198 * context.c (gcc::context::operator new): New.
21199 (gcc::context::gt_ggc_mx): New.
21200 (gcc::context::gt_pch_nx): New.
21201 (gcc::context::gt_pch_nx): New.
21202 * context.h (gcc::context): Add GTY((user)) marking.
21203 (gcc::context::operator new): New.
21204 (gcc::context::gt_ggc_mx): New.
21205 (gcc::context::gt_pch_nx): New.
21206 (gcc::context::gt_pch_nx): New.
21207 (g): Add GTY marking.
21208 (gt_ggc_mx (gcc::context *)): New.
21209 (gt_pch_nx (gcc::context *)): New.
21210 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21211 void *cookie)): New.
21212 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21213
21214 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21215
21216 * dce.c (fini_dce): Call df_analyze again just in case
21217 delete_unmarked_insns removed anything.
21218
21219 2013-08-20 Teresa Johnson <tejohnson@google.com>
21220
21221 PR rtl-optimizations/57451
21222 * final.c (reemit_insn_block_notes): Prevent lexical blocks
21223 from crossing split section boundaries.
21224
21225 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21226
21227 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21228 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21229 with MULTLIB_DEFAULTS.
21230
21231 2013-08-20 Nick Clifton <nickc@redhat.com>
21232
21233 * target.def (narrow_volatile_bitfield): Note that the default
21234 value is false, not !TARGET_STRICT_ALIGN.
21235 * doc/tm.texi: Regenerate.
21236
21237 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
21238
21239 Fix LIB_SPEC for systems without libpthread.
21240
21241 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21242 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21243 for Android.
21244 * config/i386/linux-common.h: Likewise.
21245 * config/mips/linux-common.h: Likewise.
21246
21247 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21248
21249 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21250 checks.
21251
21252 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21253
21254 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21255 instances can own GC refs.
21256
21257 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21258 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21259 (gcc::context::gt_pch_nx): Likewise.
21260 (gcc::context::gt_pch_nx): Likewise.
21261 * ggc.h (gt_ggc_mx <T>): New.
21262 (gt_pch_nx_with_op <T>): New.
21263 (gt_pch_nx <T>): New.
21264 * passes.c (opt_pass::gt_ggc_mx): New.
21265 (opt_pass::gt_pch_nx): New.
21266 (opt_pass::gt_pch_nx_with_op): New.
21267 (pass_manager::gt_ggc_mx): New.
21268 (pass_manager::gt_pch_nx): New.
21269 (pass_manager::gt_pch_nx_with_op): New.
21270 (pass_manager::operator new): Use
21271 ggc_internal_cleared_alloc_stat rather than xcalloc.
21272 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21273 (pass_manager::gt_ggc_mx): New.
21274 (pass_manager::gt_pch_nx): New.
21275 (pass_manager::gt_pch_nx_with_op): New.
21276 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21277 (opt_pass::operator new): New.
21278 (opt_pass::gt_ggc_mx): New.
21279 (opt_pass::gt_pch_nx): New.
21280 (opt_pass::gt_pch_nx_with_op): New.
21281
21282 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21283
21284 * Makefile.in (GTFILES): Add context.h.
21285 * context.c (gcc::context::operator new): New.
21286 (gcc::context::gt_ggc_mx): New.
21287 (gcc::context::gt_pch_nx): New.
21288 (gcc::context::gt_pch_nx): New.
21289 * context.h (gcc::context): Add GTY((user)) marking.
21290 (gcc::context::operator new): New.
21291 (gcc::context::gt_ggc_mx): New.
21292 (gcc::context::gt_pch_nx): New.
21293 (gcc::context::gt_pch_nx): New.
21294 (g): Add GTY marking.
21295 (gt_ggc_mx (gcc::context *)): New.
21296 (gt_pch_nx (gcc::context *)): New.
21297 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21298 void *cookie)): New.
21299 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21300
21301 2013-08-20 Alan Modra <amodra@gmail.com>
21302
21303 PR target/57865
21304 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21305 (rs6000_emit_epilogue): Likewise.
21306
21307 2013-08-19 Dehao Chen <dehao@google.com>
21308
21309 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21310
21311 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
21312 Jakub Jelinek <jakub@redhat.com>
21313
21314 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21315 (BUILT_IN_FABSD64): Likewise.
21316 (BUILT_IN_FABSD128): Likewise.
21317 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21318 (fold_builtin_1): Likewise.
21319 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21320 destination and source operands.
21321 (*abstd2_fpr): Likewise.
21322 (*nabstd2_fpr): Likewise.
21323
21324 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
21325
21326 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21327 JUMP_P and INSN_P.
21328
21329 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
21330
21331 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21332 incomplete.
21333
21334 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
21335
21336 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21337 * builtins.c (default_libc_has_function): New.
21338 (gnu_libc_has_function): Ditto.
21339 (no_c99_libc_has_function): Ditto.
21340 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21341 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21342 (fold_builtin_sincos): Likewise.
21343 (fold_builtin_cexp): Likewise.
21344 * builtins.def (DEF_C94_BUILTIN): Likewise.
21345 (DEF_C99_BUILTIN): Likewise.
21346 (DEF_C99_C90RES_BUILTIN): Likewise.
21347 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21348 definitions to using this define.
21349 * config/darwin-protos.h (darwin_libc_has_function): New.
21350 * config/darwin.c (darwin_libc_has_function): Ditto.
21351 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21352 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21353 * config/darwin.h: Ditto.
21354 * config/elfos.h: Ditto.
21355 * config/freebsd.h: Ditto.
21356 * config/i386/cygming.h: Ditto.
21357 * config/i386/djgpp.h: Ditto.
21358 * config/i386/i386-interix.h: Ditto.
21359 * config/microblaze/microblaze.h: Ditto.
21360 * config/mmix/mmix.h: Ditto.
21361 * config/gnu-user.h: Ditto.
21362 * config/ia64/hpux.h: Ditto.
21363 * config/pa/pa-hpux.h: Ditto.
21364 * config/pdp11/pdp11.h: Ditto.
21365 * config/picochip/picochip.h: Ditto.
21366 * config/linux.h: Ditto.
21367 * config/netbsd.h: Ditto.
21368 * config/openbsd.h: Ditto.
21369 * config/rs6000/aix43.h: Ditto.
21370 * config/rs6000/aix51.h: Ditto.
21371 * config/rs6000/aix52.h: Ditto.
21372 * config/rs6000/aix53.h: Ditto.
21373 * config/rs6000/aix61.h: Ditto.
21374 * config/rs6000/darwin.h: Ditto.
21375 * config/rs6000/linux.h: Ditto.
21376 * config/rs6000/linux64.h: Ditto.
21377 * config/s390/tpf.h: Ditto.
21378 * config/sol2-10.h: Ditto.
21379 * config/sol2.h: Ditto.
21380 * config/vms/vms.h: Ditto.
21381 * config/vxworks.h: Ditto.
21382 * config/linux-android.c (linux_android_libc_has_function):
21383 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21384 * config/linux-protos.h (linux_android_libc_has_function):
21385 New declaration.
21386 * config/i386/i386.c (ix86_libc_has_function): New.
21387 * config/i386/i386-protos.h
21388 (ix86_libc_has_function): New declaration.
21389 * config/i386/i386.md
21390 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21391 ("isinf<mode>2): Likewise.
21392 * convert.c (convert_to_integer): Using new target hook
21393 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21394 TARGET_C99_FUNCTIONS.
21395 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21396 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21397 * coretypes.h (function_class): New enum for different
21398 classes of functions.
21399 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21400 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21401 (TARGET_HAS_SINCOS): Likewise.
21402 (TARGET_LIBC_HAS_FUNCTION): New.
21403 * doc/tm.texi: Regenerated.
21404 * targhooks.h (default_libc_has_function): New declaration.
21405 (no_c99_libc_has_function): Ditto.
21406 (gnu_libc_has_function): Ditto.
21407 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21408 and TARGET_HAS_SINCOS.
21409
21410 2013-08-18 Jan Hubicka <jh@suse.cz>
21411
21412 * Makeifle-in (ipa-devirt.o): New.
21413 (GTFILES): Add ipa-utils.h and ipa-devirt.c
21414 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21415 (analyze_functions): Look into possible targets of polymorphic call.
21416 * dumpfile.c (dump_files): Add type-inheritance dump.
21417 * dumpfile.h (TDI_inheritance): New.
21418 * ipa-devirt.c: New file.
21419 * ipa-utils.h (odr_type_d): Forward declare.
21420 (odr_type): New type.
21421 (build_type_inheritance_graph): Declare.
21422 (possible_polymorphic_call_targets): Declare and introduce inline
21423 variant when only edge is pased.
21424 (dump_possible_polymorphic_call_targets): Likewise.
21425 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21426 * tree.c (type_in_anonymous_namespace_p): Break out from ...
21427 (types_same_for_odr): ... here.
21428 * tree.h (type_in_anonymous_namespace_p): Declare.
21429
21430 2013-08-18 Jakub Jelinek <jakub@redhat.com>
21431
21432 PR tree-optimization/58006
21433 * tree-parloops.c (take_address_of): Don't ICE if get_name
21434 returns NULL.
21435 (eliminate_local_variables_stmt): Remove clobber stmts.
21436
21437 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
21438
21439 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21440 error message is issued for an alias to undefined symbol.
21441
21442 2013-08-18 Jan Hubicka <jh@suse.cz>
21443
21444 * cgraph.c (cgraph_create_indirect_edge): Discover
21445 polymorphic calls and record basic info into indirect_info.
21446 * gimple-fold.c (gimple_fold_call): When doing BINFO based
21447 devirtualization, ignore objc function calls.
21448 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21449 call with no parm index info.
21450 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21451 * tree.c (virtual_method_call_p): New function.
21452 * tree.h (virtual_method_call_p): Declare.
21453
21454 2013-08-16 Jan Hubicka <jh@suse.cz>
21455
21456 PR middle-end/58179
21457 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21458
21459 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21460
21461 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21462 attribute.
21463
21464 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21465
21466 * gengtype.c (type_for_name): Add special-case support for
21467 locating types within the "gcc::" namespace.
21468 (open_base_files): Emit a "using namespace gcc" directive.
21469
21470 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21471
21472 PR target/58160
21473 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21474 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21475
21476 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21477 array instead of each individual operand as a separate argument.
21478 (emit_fusion_gpr_load): Likewise.
21479 (expand_fusion_gpr_load): Add new function declaration.
21480
21481 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21482 signature to have the operands passed as an array, instead of as
21483 separate arguments. Allow ZERO_EXTEND to be in the memory
21484 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21485 depend on the register live/dead flags when peepholes are run.
21486 (expand_fusion_gpr_load): New function to be called from the
21487 peephole2 pass, to change the register that addis sets to be the
21488 target register.
21489 (emit_fusion_gpr_load): Change the calling signature to have the
21490 operands passed as an array, instead of as separate arguments.
21491 Allow ZERO_EXTEND to be in the memory address, and also
21492 SIGN_EXTEND if -mpower8-fusion-sign.
21493
21494 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21495 unspec enumeration.
21496 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21497 adjust the register addis loads up in the peephole2 pass. Do not
21498 depend on the register live/dead state when the peephole pass is done.
21499
21500 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21501
21502 * gengtype.c (create_user_defined_type): Ensure that the kind
21503 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21504 declaration is seen before the GTY((user)) marking.
21505
21506 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21507
21508 PR target/58105
21509 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21510
21511 2013-08-16 Jan Hubicka <jh@suse.cz>
21512
21513 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21514 arugment expected_type.
21515 (gimple_fold_call): Use it.
21516 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21517 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21518 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21519 (try_make_edge_direct_virtual_call): Likewise.
21520 * tree.c (obj_type_ref_class): New.
21521 * tree.h (obj_type_ref_class): Use it.
21522
21523 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21524
21525 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21526 (rtl_slim_pp): Likewise.
21527 (init_rtl_slim_pretty_print): Likewise.
21528 (dump_value_slim): Don't call it. Use local pretty printer.
21529 (dump_insn_slim): Likewise.
21530 (dump_rtl_slim): Likewise.
21531 (str_pattern_slim): Likewise.
21532 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21533 Simplify.
21534
21535 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21536
21537 PR tree-optimization/58164
21538 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21539 walk gimple_goto_dest of GIMPLE_GOTO.
21540
21541 PR tree-optimization/58165
21542 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21543 bi_call must be the last stmt in a bb, don't split_block, instead
21544 use fallthru edge from it and give up if there is none.
21545 Release conds vector when returning early.
21546
21547 2013-08-14 Xinliang David Li <davidxl@google.com>
21548
21549 * config/i386/i386.c (ix86_option_override_internal):
21550 Remove unused variable and field.
21551
21552 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21553
21554 PR target/57949
21555 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21556 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21557 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21558 and Linux, correct BLKmode alignment when 128-bit alignment is
21559 required and compatibility flag is not set.
21560 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21561 for zero-size arguments when compatibility flag is not set.
21562
21563 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21564
21565 PR tree-optimization/58145
21566 * tree-sra.c (build_ref_for_offset): If prev_base has
21567 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21568
21569 2013-08-14 Xinliang David Li <davidxl@google.com>
21570
21571 * config/i386/i386.c (ix86_option_override_internal):
21572 Fix uninitialized variable error.
21573
21574 2013-08-14 Xinliang David Li <davidxl@google.com>
21575
21576 * config/i386/i386.opt: Define two new options.
21577 * config/i386/x86-tune.def: Add arch selector field in macros.
21578 * config/i386/i386.h: Adjust macro definition.
21579 * config/i386/i386.c (ix86_option_override_internal):
21580 Refactor the code.
21581 (parse_mtune_ctrl_str): New function.
21582 (set_ix86_tune_features): New function.
21583 (ix86_function_specific_restore): Call the new helper function.
21584
21585 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21586
21587 PR rtl-optimization/57662
21588 * sel-sched.c (code_motion_process_successors): When the current insn
21589 is removed after the recursive traversal, break from the loop.
21590 Add comments and debug printouts.
21591
21592 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21593 Alexandre Oliva <aoliva@redhat.com>
21594
21595 PR target/58067
21596 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21597 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21598 there also UNSPEC_PLTOFF.
21599
21600 2013-08-14 Marek Polacek <polacek@redhat.com>
21601
21602 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21603 NUM_CONDITIONS bit positions.
21604
21605 2013-08-13 Cary Coutant <ccoutant@google.com>
21606
21607 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21608 (attr_checksum): Hash vector contents instead of pointer.
21609 (attr_checksum_ordered): Likewise.
21610
21611 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21612
21613 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21614 when Pmode != word_mode. Add length_address attribute.
21615 (sse3_monitor_<mode>): Merge from sse3_monitor and
21616 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21617 Pmode != word_mode. Update insn length attribute.
21618 * config/i386/i386.c (ix86_option_override_internal): Update
21619 ix86_gen_monitor selection for merged sse3_monitor insn.
21620
21621 2013-08-13 Julian Brown <julian@codesourcery.com>
21622
21623 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21624 perform invalid legitimization on greater-than-word-size modes for
21625 TARGET_E500_DOUBLE.
21626
21627 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21628
21629 * ira.c (setup_class_translate_array): Use aclass instead of cl
21630 for classes not fully covered by allocno classes.
21631
21632 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21633
21634 PR tree-optimization/57661
21635 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21636 * tree-inline.c (tree_function_versioning): Initialize it.
21637 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21638 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21639 that is not being copied.
21640
21641 PR sanitizer/56417
21642 * asan.c (instrument_strlen_call): Fix typo in comment.
21643 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21644
21645 2013-08-13 Steve Ellcey <sellcey@mips.com>
21646
21647 * config/mips/mips.md (prefetch): Use lw instead of ld on
21648 loongson in 32bit mode.
21649
21650 2013-08-13 Nick Clifton <nickc@redhat.com>
21651
21652 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21653
21654 2013-08-13 Jan Hubicka <jh@suse.cz>
21655
21656 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21657 introduced edge; fix typo in sanity check.
21658 (cgraph_resolve_speculation): Export; improve diagnostic.
21659 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21660 speculation at type mismatch.
21661 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21662 (cgraph_resolve_speculation): Declare.
21663 (symtab_can_be_discarded): New function.
21664 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21665 * ipa-inline-transform.c (speculation_removed): New global var.
21666 (clone_inlined_nodes): See if speculation can be removed.
21667 (inline_call): If speculations was removed, we growths may not match.
21668 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21669 (speculation_useful_p): New function.
21670 (resolve_noninline_speculation): New function.
21671 (inline_small_functions): Resolve useless speculations.
21672 * ipa-inline.h (speculation_useful_p): Declare
21673 * ipa.c (can_replace_by_local_alias): Simplify.
21674 (ipa_profile): Produce speculative calls in non-lto, too;
21675 add simple cost model; produce local aliases.
21676
21677 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21678
21679 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21680 PASS_MANAGER_H.
21681
21682 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21683
21684 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21685
21686 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21687
21688 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21689 iterator instead of X87MODEF.
21690
21691 2013-08-12 Perez Read <netfirewall@gmail.com>
21692
21693 PR target/58132
21694 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21695 operand 0 for intel asm alternative.
21696 (*movabs<mode>_2): Ditto for operand 1.
21697
21698 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21699
21700 * config/aarch64/arm_none.h
21701 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21702
21703 2013-08-12 Nick Clifton <nickc@redhat.com>
21704
21705 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21706
21707 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21708
21709 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21710 expand for QI/HImode operand to produce more effictive code for
21711 unsigned char(short) --> float(double) conversion.
21712
21713 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21714
21715 * doc/invoke.texi: Mention that -ftls-model does not force the final
21716 model.
21717
21718 2013-08-12 Marek Polacek <polacek@redhat.com>
21719 Marc Glisse <marc.glisse@inria.fr>
21720
21721 PR tree-optimization/57980
21722 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21723 when creating -1 constant.
21724
21725 2013-08-10 Jan Hubicka <jh@suse.cz>
21726
21727 Workaround binutils PR14342.
21728 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21729 (gimple_init_edge_profiler): Likewise.
21730 (gimple_gen_ic_func_profiler): Likewise.
21731
21732 2013-08-09 Jan Hubicka <jh@suse.cz>
21733
21734 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21735
21736 2013-08-09 Xinliang David Li <davidxl@google.com>
21737
21738 * config/i386/stringop.def: New file.
21739 * config/i386/stringop.opt: New file.
21740 * config/i386/i386-opts.h: Include stringopt.def.
21741 * config/i386/i386.opt: Include stringopt.opt.
21742 * config/i386/i386.c (ix86_option_override_internal):
21743 Override default size based stringop inline strategies with options.
21744 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21745 New function.
21746
21747 2013-08-09 Jan Hubicka <jh@suse.cz>
21748
21749 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21750
21751 2013-08-09 Jan Hubicka <jh@suse.cz>
21752
21753 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21754 CGRAPH_FREQ_MAX.
21755 (dump_cgraph_node): Dump profile-id.
21756 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21757 and common_target_probability.
21758 * lto-cgraph.c (lto_output_edge): Stream common targets.
21759 (lto_output_node): Stream profile ids.
21760 (input_node): Stream profile ids.
21761 (input_edge): Stream common targets.
21762 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21763 * ipa.c: Include value-prof.h
21764 (ipa_profile_generate_summary): Turn indirect call statement histograms
21765 into common targets.
21766 (ipa_profile): Turn common targets into speculative edges.
21767
21768 2013-08-09 Jan Hubicka <jh@suse.cz>
21769
21770 * cgraph.h (cgraph_node): Add profile_id.
21771 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21772 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21773 (del_node_map): Update.
21774 (find_func_by_funcdef_no): Replace by ...
21775 (find_func_by_profile_id): ... this one.
21776 (gimple_ic_transform): Do not remove useful histograms when
21777 speculation is not done; dump info when indirect call removal
21778 can happen at LTO.
21779 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21780 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21781 (__gcov_indirect_call_profiler_v2): .. this one.
21782 * profile.h (init_node_map): Update.
21783 * coverage.c (coverage_compute_profile_id): New function.
21784 * coverage.h (coverage_compute_profile_id): Declare.
21785 * tree-profile.c (init_ic_make_global_vars): Make
21786 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21787 (gimple_init_edge_profiler): Update prototype of
21788 __gcov_indirect_call_profiler.
21789 (gimple_gen_ic_func_profiler): Simplify.
21790 (tree_profiling): Use init_node_map
21791
21792 2013-08-09 Jan Hubicka <jh@suse.cz>
21793
21794 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21795 non-speculative refs.
21796 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21797 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21798 (cgraph_set_call_stmt): Likewise.
21799 (cgraph_create_edge_1): Fix release checking compilatoin;
21800 clear lto_stmt_uid.
21801 (cgraph_free_edge): Free indirect info.
21802 (cgraph_turn_edge_to_speculative): New function.
21803 (cgraph_speculative_call_info): New function.
21804 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21805 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21806 (dump_cgraph_node): Dump speculation.
21807 (verify_edge_count_and_frequency): Accept speculative edges.
21808 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21809 (verify_cgraph_node): Handle speculation.
21810 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21811 (cgraph_set_call_stmt): Update prototype.
21812 (cgraph_make_edge_direct): Update prototype.
21813 (cgraph_speculative_call_info): Declare.
21814 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21815 to change; update call of ipa_find_references.
21816 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21817 lto_stmt_uid and speculative flags.
21818 (ipa_dump_references): Dump speculation.
21819 (ipa_clone_references): Clone speculative flag.
21820 (ipa_clone_referring): Likewise.
21821 (ipa_clone_ref): New function.
21822 (ipa_find_reference): Look into lto_stmt_uids
21823 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21824 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21825 (ipa_find_reference): Update declaration.
21826 (ipa_clone_ref): Declare.
21827 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21828 stream speculative flag.
21829 (lto_output_ref): Stream statements uids and speculation.
21830 (input_ref): Likewise.
21831 (input_edge): Stream speuclation.
21832 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21833 (cgraph_set_call_stmt_including_clones): Handle speculation.
21834 * ipa-inline.c (heap_edge_removal_hook): New function.
21835 (inline_small_functions): Register it.
21836 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21837 also initialize refs.
21838 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21839 edge to change.
21840 (try_make_edge_direct_simple_call): Likewise.
21841 (try_make_edge_direct_simple_call): Likewise.
21842 (update_indirect_edges_after_inlining): Likewise.
21843 (remove_described_reference): Look proper lto_stmt_uid.
21844 (propagate_controlled_uses): Likewise.
21845 (propagate_controlled_uses): Liekwise.
21846 * tree-inline.c (copy_bb): Copy speculative edges.
21847 (redirect_all_calls): New function.
21848 (copy_cfg_body): Do redirection after loop info is updated.
21849 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21850
21851 2013-08-09 Jan Hubicka <jh@suse.cz>
21852
21853 * lto-streamer-out.c (output_function): Renumber PHIs.
21854 * lto-streamer-in.c (input_function): Likewise.
21855
21856 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21857
21858 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21859 (get_lane_unsigned): Likewise.
21860 (dup_lane_scalar): Likewise.
21861 (get_lane): enable for VALL.
21862 * config/aarch64/aarch64-simd.md
21863 (aarch64_dup_lane_scalar<mode>): Remove.
21864 (aarch64_get_lane_signed<mode>): Likewise.
21865 (aarch64_get_lane_unsigned<mode>): Likewise.
21866 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21867 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21868 (aarch64_get_lane<mode>): Enable for all vector modes.
21869 (aarch64_get_lanedi): Remove misleading constraints.
21870 * config/aarch64/arm_neon.h
21871 (__aarch64_vget_lane_any): Define.
21872 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21873 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21874 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21875 * config/aarch64/iterators.md (VDQQH): New.
21876 (VDQQHS): Likewise.
21877 (vwcore): Likewise.
21878
21879 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21880
21881 * configure.ac: Add GAS check for LEON instructions on SPARC.
21882 * configure: Regenerate.
21883 * config.in: Likewise.
21884 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21885 sparc*-*-* block.
21886 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21887 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21888 for LEON or LEON3.
21889 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21890 (AS_LEON_FLAG): New macro.
21891 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21892 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21893 Deal with LEON and LEON3 for the memory model.
21894 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21895 (atomic_compare_and_swap<mode>_1): Likewise.
21896 (*atomic_compare_and_swap<mode>_1): Likewise.
21897
21898 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21899
21900 * config/arm/neon.md (vcond): Fix floating-point vector
21901 comparisons against 0.
21902
21903 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21904
21905 * lra-constraints.c (emit_spill_move): Remove assert.
21906 (process_alt_operands): Add more debugging
21907 output. Increase reject for spilling into memory. Decrease
21908 reject for reloading scratch.
21909 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21910
21911 2013-08-08 Steve Ellcey <sellcey@mips.com>
21912
21913 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21914 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21915 micromips incompatible. Add nan2008.
21916 (MULTILIB_DIRNAMES): Add nan2008.
21917 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21918 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21919 and micromips incompatible. Add nan2008.
21920 (MULTILIB_DIRNAMES): Add nan2008.
21921 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21922
21923 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21924
21925 PR rtl-optimization/58079
21926 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21927 simplify_comparison has widened a comparison with an integer.
21928
21929 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21930
21931 * config/arm/neon.md (movmisalign<mode>): Disable when we
21932 don't allow unaligned accesses.
21933 (*movmisalign<mode>_neon_store): Likewise.
21934 (*movmisalign<mode>_neon_load): Likewise.
21935 (*movmisalign<mode>_neon_store): Likewise.
21936 (*movmisalign<mode>_neon_load): Likewise.
21937
21938 2013-08-08 Jan Hubicka <jh@suse.cz>
21939
21940 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21941 (make_pass_rebuild_cgraph_edges): Also clear references.
21942 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21943 * ipa-inline-transform.c (inline_transform): Remove all references
21944 after inlining.
21945 * cgraphunit.c (expand_function): Remove all references after
21946 expansion.
21947 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21948 (ipa_find_reference): Rewrite to iterator.
21949 (remove_stmt_references): Likewise.
21950 (ipa_clear_stmts_in_references): New function.
21951 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21952 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21953 clear references.
21954 * ipa-split.c (split_function): Remove references in split function.
21955
21956 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21957
21958 PR target/57431
21959 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21960 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21961
21962 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21963
21964 PR target/56979
21965 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21966 suggested mode for the assignment isn't compatible with the
21967 registers required.
21968
21969 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21970
21971 PR target/58065
21972 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21973
21974 2013-08-07 Xinliang David Li <davidxl@google.com>
21975
21976 * config/i386/i386.opt: New option -mtune-ctrl=.
21977 * config/i386/x86-tune.def: New file.
21978 * config/i386/i386.h: include x86-tune.def.
21979 * config/i386/i386.c (ix86_option_override_internal):
21980 Parsing -mtune-ctrl= option and set tune features.
21981
21982 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21983
21984 PR other/12081
21985 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21986 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21987 to gen_2arg_fn_t.
21988
21989 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21990
21991 * rtl.h (update_alignments): Declare.
21992 * final.c (grow_label_align): New function extracted from...
21993 (shorten_branches): ...here. Call it.
21994 (update_alignments): New function.
21995 * reorg.c (sibling_labels): New variable.
21996 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21997 the new label along with it onto the sibling_labels vector.
21998 (fill_simple_delay_slots): Adjust call to get_label_before.
21999 (fill_slots_from_thread): Likewise.
22000 (relax_delay_slots): Likewise.
22001 (make_return_insns): Likewise.
22002 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
22003
22004 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22005
22006 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22007 document its semantics.
22008 (diagnostic_report_diagnostic): Adjust accordingly.
22009
22010 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22011
22012 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22013 (sparc_option_override): ...and port to new C++ pass API.
22014 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22015
22016 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
22017
22018 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22019
22020 2013-08-06 Caroline Tice <cmtice@google.com>
22021
22022 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22023 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22024 * tree-pass.h: Add pass_vtable_verify.
22025 * varasm.c (assemble_variable): Add code to properly set the comdat
22026 section and name for the .vtable_map_vars section.
22027 (assemble_vtyv_preinit_initializer): New function.
22028 (default_sectin_type_flags): Make sure .vtable_map_vars section has
22029 LINK_ONCE flag.
22030 * output.h: Add function decl for assemble_vtv_preinit_initializer.
22031 * vtable-verify.c: New file.
22032 * vtable-verify.h: New file.
22033 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22034 initialiation levels.
22035 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22036 * passes.def: Insert pass_vtable_verify.
22037 * aclocal.m4: Reorder includes.
22038 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
22039 -fvtv-counts options.
22040 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22041 as appropriate, if -fvtable-verify=... is used.
22042 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22043 -fvtable-verify=... is used.
22044 * Makefile.in (OBJS): Add vtable-verify.o to list.
22045 (vtable-verify.o): Add new build rule.
22046 (GTFILES): Add vtable-verify.c to list.
22047 * common.opt (fvtable-verify=): New flag.
22048 (vtv_priority): Values for fvtable-verify= flag.
22049 (fvtv-counts): New flag.
22050 (fvtv-debug): New flag.
22051 * tree.h (save_vtable_map_decl): New extern function decl.
22052
22053 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22054
22055 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22056 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22057 (pass_data_rl78_devirt): ...new pass_data instance and...
22058 (make_pass_rl78_devirt): ...new function.
22059 (rl78_asm_file_start): Port pass registration to new C++ API.
22060
22061 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22062
22063 * coretypes.h (rtl_opt_pass): Add.
22064 (gcc::context): Add.
22065 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22066 (epiphany_init): Port to new C++ pass API.
22067 (epiphany_optimize_mode_switching): Likewise.
22068 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22069 (pass_manager::get_pass_mode_switching): New.
22070 (pass_manager::get_pass_peephole2): New.
22071 * mode-switching.c (pass_mode_switching): Add clone method.
22072 * recog.c (pass_peephole2): Add clone method.
22073 (pass_split_all_insns): Add clone method.
22074
22075 2013-08-06 David Malcolm <dmalcolm@redhat.com>
22076
22077 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22078 (mips_option_override): ...here, porting to new C++ API for passes.
22079
22080 2013-08-06 Jan Hubicka <jh@suse.cz>
22081
22082 * cgraph.c (cgraph_get_body): New function based on lto.c
22083 implementation.
22084 * cgraph.h (cgraph_get_body): Declare.
22085 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22086 LTO paths.
22087 * cgraphunit.c (expand_function): Get body prior expanding.
22088 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22089 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22090 really need.
22091 * passes.c (do_per_function_toporder): Get body.
22092 * tree-inline.c (expand_call_inline): Get body prior inlining it.
22093 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22094
22095 2013-08-06 Martin Jambor <mjambor@suse.cz>
22096
22097 PR fortran/57987
22098 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22099 is not re-finalized. Rename second parameter to no_collect.
22100
22101 2013-08-06 Martin Jambor <mjambor@suse.cz>
22102
22103 PR middle-end/58041
22104 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22105 MEM_REF has proper alignment information.
22106
22107 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
22108
22109 PR other/12081
22110 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22111 class insn_gen_fn.
22112 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22113 rtx (*) (rtx, ...) with insn_gen_fn.
22114 * genoutput.c (output_insn_data): Cast gen_? function pointers to
22115 insn_gen_fn::stored_funcptr. Add initializer braces.
22116
22117 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22118
22119 Rewrite how instances of passes are cloned to remove assumptions
22120 about their sizes (thus allowing pass subclasses to have
22121 additional data fields, albeit non-GC-managed ones at this point).
22122
22123 * passes.c (make_pass_instance): Now that passes have clone
22124 methods, rewrite this function to eliminate XNEW and memcpy
22125 calls that used hardcoded sizes. Since this function no longer
22126 creates pass instances, rename it to...
22127 (add_pass_instance): ...this. Document the old way that passes were
22128 numbered and flagged, and rework this function to continue using it.
22129 (next_pass_1): Add an initial_pass argument for use by
22130 add_pass_instance.
22131 (position_pass): When adding multiple instances of a pass, use
22132 the pass's clone method, rather than relying on the XNEW/memcpy
22133 within the former make_pass_instance (now add_pass_instance).
22134 (pass_manager::pass_manager): When invoking next_pass_1, also supply
22135 the initial instance of the current pass within the pass manager.
22136
22137 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22138
22139 This is the automated part of the conversion of passes from C
22140 structs to C++ classes.
22141
22142 Patch autogenerated by refactor_passes.py from
22143 https://github.com/davidmalcolm/gcc-refactoring-scripts
22144 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22145
22146 * asan.c (pass_asan): Convert from a global struct to a subclass of
22147 gimple_opt_pass along with...
22148 (pass_data_asan): ...new pass_data instance and...
22149 (make_pass_asan): ...new function.
22150 (pass_asan_O0): Convert from a global struct to a subclass of
22151 gimple_opt_pass along with...
22152 (pass_data_asan_O0): ...new pass_data instance and...
22153 (make_pass_asan_O0): ...new function.
22154 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22155 subclass of rtl_opt_pass along with...
22156 (pass_data_inc_dec): ...new pass_data instance and...
22157 (make_pass_inc_dec): ...new function.
22158 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22159 a subclass of rtl_opt_pass along with...
22160 (pass_data_reorder_blocks): ...new pass_data instance and...
22161 (make_pass_reorder_blocks): ...new function.
22162 (pass_duplicate_computed_gotos): Convert from a global struct to a
22163 subclass of rtl_opt_pass along with...
22164 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22165 (make_pass_duplicate_computed_gotos): ...new function.
22166 (pass_partition_blocks): Convert from a global struct to a subclass of
22167 rtl_opt_pass along with...
22168 (pass_data_partition_blocks): ...new pass_data instance and...
22169 (make_pass_partition_blocks): ...new function.
22170 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22171 struct to a subclass of rtl_opt_pass along with...
22172 (pass_data_branch_target_load_optimize1): ...new pass_data instance
22173 and...
22174 (make_pass_branch_target_load_optimize1): ...new function.
22175 (pass_branch_target_load_optimize2): Convert from a global struct to a
22176 subclass of rtl_opt_pass along with...
22177 (pass_data_branch_target_load_optimize2): ...new pass_data instance
22178 and...
22179 (make_pass_branch_target_load_optimize2): ...new function.
22180 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22181 of rtl_opt_pass along with...
22182 (pass_data_jump): ...new pass_data instance and...
22183 (make_pass_jump): ...new function.
22184 (pass_jump2): Convert from a global struct to a subclass of
22185 rtl_opt_pass along with...
22186 (pass_data_jump2): ...new pass_data instance and...
22187 (make_pass_jump2): ...new function.
22188 * cfgexpand.c (pass_expand): Convert from a global struct to a
22189 subclass of rtl_opt_pass along with...
22190 (pass_data_expand): ...new pass_data instance and...
22191 (make_pass_expand): ...new function.
22192 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22193 of rtl_opt_pass along with...
22194 (pass_data_free_cfg): ...new pass_data instance and...
22195 (make_pass_free_cfg): ...new function.
22196 (pass_into_cfg_layout_mode): Convert from a global struct to a
22197 subclass of rtl_opt_pass along with...
22198 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22199 (make_pass_into_cfg_layout_mode): ...new function.
22200 (pass_outof_cfg_layout_mode): Convert from a global struct to a
22201 subclass of rtl_opt_pass along with...
22202 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22203 (make_pass_outof_cfg_layout_mode): ...new function.
22204 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22205 struct to a subclass of gimple_opt_pass along with...
22206 (pass_data_build_cgraph_edges): ...new pass_data instance and...
22207 (make_pass_build_cgraph_edges): ...new function.
22208 (pass_rebuild_cgraph_edges): Convert from a global struct to a
22209 subclass of gimple_opt_pass along with...
22210 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22211 (make_pass_rebuild_cgraph_edges): ...new function.
22212 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22213 subclass of gimple_opt_pass along with...
22214 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22215 and...
22216 (make_pass_remove_cgraph_callee_edges): ...new function.
22217 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22218 struct to a subclass of rtl_opt_pass along with...
22219 (pass_data_stack_adjustments): ...new pass_data instance and...
22220 (make_pass_stack_adjustments): ...new function.
22221 * combine.c (pass_combine): Convert from a global struct to a subclass
22222 of rtl_opt_pass along with...
22223 (pass_data_combine): ...new pass_data instance and...
22224 (make_pass_combine): ...new function.
22225 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22226 global struct to a subclass of rtl_opt_pass along with...
22227 (pass_data_compare_elim_after_reload): ...new pass_data instance
22228 and...
22229 (make_pass_compare_elim_after_reload): ...new function.
22230 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22231 of rtl_opt_pass along with...
22232 (pass_data_rtl_cprop): ...new pass_data instance and...
22233 (make_pass_rtl_cprop): ...new function.
22234 * cse.c (pass_cse): Convert from a global struct to a subclass of
22235 rtl_opt_pass along with...
22236 (pass_data_cse): ...new pass_data instance and...
22237 (make_pass_cse): ...new function.
22238 (pass_cse2): Convert from a global struct to a subclass of
22239 rtl_opt_pass along with...
22240 (pass_data_cse2): ...new pass_data instance and...
22241 (make_pass_cse2): ...new function.
22242 (pass_cse_after_global_opts): Convert from a global struct to a
22243 subclass of rtl_opt_pass along with...
22244 (pass_data_cse_after_global_opts): ...new pass_data instance and...
22245 (make_pass_cse_after_global_opts): ...new function.
22246 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22247 of rtl_opt_pass along with...
22248 (pass_data_ud_rtl_dce): ...new pass_data instance and...
22249 (make_pass_ud_rtl_dce): ...new function.
22250 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22251 rtl_opt_pass along with...
22252 (pass_data_fast_rtl_dce): ...new pass_data instance and...
22253 (make_pass_fast_rtl_dce): ...new function.
22254 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22255 a subclass of rtl_opt_pass along with...
22256 (pass_data_df_initialize_opt): ...new pass_data instance and...
22257 (make_pass_df_initialize_opt): ...new function.
22258 (pass_df_initialize_no_opt): Convert from a global struct to a
22259 subclass of rtl_opt_pass along with...
22260 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22261 (make_pass_df_initialize_no_opt): ...new function.
22262 (pass_df_finish): Convert from a global struct to a subclass of
22263 rtl_opt_pass along with...
22264 (pass_data_df_finish): ...new pass_data instance and...
22265 (make_pass_df_finish): ...new function.
22266 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22267 rtl_opt_pass along with...
22268 (pass_data_rtl_dse1): ...new pass_data instance and...
22269 (make_pass_rtl_dse1): ...new function.
22270 (pass_rtl_dse2): Convert from a global struct to a subclass of
22271 rtl_opt_pass along with...
22272 (pass_data_rtl_dse2): ...new pass_data instance and...
22273 (make_pass_rtl_dse2): ...new function.
22274 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22275 subclass of rtl_opt_pass along with...
22276 (pass_data_dwarf2_frame): ...new pass_data instance and...
22277 (make_pass_dwarf2_frame): ...new function.
22278 * except.c (pass_set_nothrow_function_flags): Convert from a global
22279 struct to a subclass of rtl_opt_pass along with...
22280 (pass_data_set_nothrow_function_flags): ...new pass_data instance
22281 and...
22282 (make_pass_set_nothrow_function_flags): ...new function.
22283 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22284 subclass of rtl_opt_pass along with...
22285 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22286 and...
22287 (make_pass_convert_to_eh_region_ranges): ...new function.
22288 * final.c (pass_compute_alignments): Convert from a global struct to a
22289 subclass of rtl_opt_pass along with...
22290 (pass_data_compute_alignments): ...new pass_data instance and...
22291 (make_pass_compute_alignments): ...new function.
22292 (pass_final): Convert from a global struct to a subclass of
22293 rtl_opt_pass along with...
22294 (pass_data_final): ...new pass_data instance and...
22295 (make_pass_final): ...new function.
22296 (pass_shorten_branches): Convert from a global struct to a subclass of
22297 rtl_opt_pass along with...
22298 (pass_data_shorten_branches): ...new pass_data instance and...
22299 (make_pass_shorten_branches): ...new function.
22300 (pass_clean_state): Convert from a global struct to a subclass of
22301 rtl_opt_pass along with...
22302 (pass_data_clean_state): ...new pass_data instance and...
22303 (make_pass_clean_state): ...new function.
22304 * function.c (pass_instantiate_virtual_regs): Convert from a global
22305 struct to a subclass of rtl_opt_pass along with...
22306 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22307 (make_pass_instantiate_virtual_regs): ...new function.
22308 (pass_leaf_regs): Convert from a global struct to a subclass of
22309 rtl_opt_pass along with...
22310 (pass_data_leaf_regs): ...new pass_data instance and...
22311 (make_pass_leaf_regs): ...new function.
22312 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22313 subclass of rtl_opt_pass along with...
22314 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22315 and...
22316 (make_pass_thread_prologue_and_epilogue): ...new function.
22317 (pass_match_asm_constraints): Convert from a global struct to a
22318 subclass of rtl_opt_pass along with...
22319 (pass_data_match_asm_constraints): ...new pass_data instance and...
22320 (make_pass_match_asm_constraints): ...new function.
22321 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22322 subclass of rtl_opt_pass along with...
22323 (pass_data_rtl_fwprop): ...new pass_data instance and...
22324 (make_pass_rtl_fwprop): ...new function.
22325 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22326 rtl_opt_pass along with...
22327 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22328 (make_pass_rtl_fwprop_addr): ...new function.
22329 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22330 rtl_opt_pass along with...
22331 (pass_data_rtl_pre): ...new pass_data instance and...
22332 (make_pass_rtl_pre): ...new function.
22333 (pass_rtl_hoist): Convert from a global struct to a subclass of
22334 rtl_opt_pass along with...
22335 (pass_data_rtl_hoist): ...new pass_data instance and...
22336 (make_pass_rtl_hoist): ...new function.
22337 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22338 subclass of gimple_opt_pass along with...
22339 (pass_data_lower_cf): ...new pass_data instance and...
22340 (make_pass_lower_cf): ...new function.
22341 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22342 from a global struct to a subclass of gimple_opt_pass along with...
22343 (pass_data_strength_reduction): ...new pass_data instance and...
22344 (make_pass_strength_reduction): ...new function.
22345 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22346 of rtl_opt_pass along with...
22347 (pass_data_rtl_ifcvt): ...new pass_data instance and...
22348 (make_pass_rtl_ifcvt): ...new function.
22349 (pass_if_after_combine): Convert from a global struct to a subclass of
22350 rtl_opt_pass along with...
22351 (pass_data_if_after_combine): ...new pass_data instance and...
22352 (make_pass_if_after_combine): ...new function.
22353 (pass_if_after_reload): Convert from a global struct to a subclass of
22354 rtl_opt_pass along with...
22355 (pass_data_if_after_reload): ...new pass_data instance and...
22356 (make_pass_if_after_reload): ...new function.
22357 * init-regs.c (pass_initialize_regs): Convert from a global struct to
22358 a subclass of rtl_opt_pass along with...
22359 (pass_data_initialize_regs): ...new pass_data instance and...
22360 (make_pass_initialize_regs): ...new function.
22361 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22362 of ipa_opt_pass_d along with...
22363 (pass_data_ipa_cp): ...new pass_data instance and...
22364 (make_pass_ipa_cp): ...new function.
22365 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22366 global struct to a subclass of gimple_opt_pass along with...
22367 (pass_data_inline_parameters): ...new pass_data instance and...
22368 (make_pass_inline_parameters): ...new function.
22369 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22370 subclass of gimple_opt_pass along with...
22371 (pass_data_early_inline): ...new pass_data instance and...
22372 (make_pass_early_inline): ...new function.
22373 (pass_ipa_inline): Convert from a global struct to a subclass of
22374 ipa_opt_pass_d along with...
22375 (pass_data_ipa_inline): ...new pass_data instance and...
22376 (make_pass_ipa_inline): ...new function.
22377 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22378 struct to a subclass of gimple_opt_pass along with...
22379 (pass_data_local_pure_const): ...new pass_data instance and...
22380 (make_pass_local_pure_const): ...new function.
22381 (pass_ipa_pure_const): Convert from a global struct to a subclass of
22382 ipa_opt_pass_d along with...
22383 (pass_data_ipa_pure_const): ...new pass_data instance and...
22384 (make_pass_ipa_pure_const): ...new function.
22385 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22386 to a subclass of ipa_opt_pass_d along with...
22387 (pass_data_ipa_reference): ...new pass_data instance and...
22388 (make_pass_ipa_reference): ...new function.
22389 * ipa-split.c (pass_split_functions): Convert from a global struct to
22390 a subclass of gimple_opt_pass along with...
22391 (pass_data_split_functions): ...new pass_data instance and...
22392 (make_pass_split_functions): ...new function.
22393 (pass_feedback_split_functions): Convert from a global struct to a
22394 subclass of gimple_opt_pass along with...
22395 (pass_data_feedback_split_functions): ...new pass_data instance and...
22396 (make_pass_feedback_split_functions): ...new function.
22397 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22398 global struct to a subclass of simple_ipa_opt_pass along with...
22399 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22400 instance and...
22401 (make_pass_ipa_function_and_variable_visibility): ...new function.
22402 (pass_ipa_free_inline_summary): Convert from a global struct to a
22403 subclass of simple_ipa_opt_pass along with...
22404 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22405 (make_pass_ipa_free_inline_summary): ...new function.
22406 (pass_ipa_whole_program_visibility): Convert from a global struct to a
22407 subclass of ipa_opt_pass_d along with...
22408 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22409 and...
22410 (make_pass_ipa_whole_program_visibility): ...new function.
22411 (pass_ipa_profile): Convert from a global struct to a subclass of
22412 ipa_opt_pass_d along with...
22413 (pass_data_ipa_profile): ...new pass_data instance and...
22414 (make_pass_ipa_profile): ...new function.
22415 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22416 ipa_opt_pass_d along with...
22417 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22418 (make_pass_ipa_cdtor_merge): ...new function.
22419 * ira.c (pass_ira): Convert from a global struct to a subclass of
22420 rtl_opt_pass along with...
22421 (pass_data_ira): ...new pass_data instance and...
22422 (make_pass_ira): ...new function.
22423 (pass_reload): Convert from a global struct to a subclass of
22424 rtl_opt_pass along with...
22425 (pass_data_reload): ...new pass_data instance and...
22426 (make_pass_reload): ...new function.
22427 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22428 subclass of rtl_opt_pass along with...
22429 (pass_data_cleanup_barriers): ...new pass_data instance and...
22430 (make_pass_cleanup_barriers): ...new function.
22431 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22432 of rtl_opt_pass along with...
22433 (pass_data_loop2): ...new pass_data instance and...
22434 (make_pass_loop2): ...new function.
22435 (pass_rtl_loop_init): Convert from a global struct to a subclass of
22436 rtl_opt_pass along with...
22437 (pass_data_rtl_loop_init): ...new pass_data instance and...
22438 (make_pass_rtl_loop_init): ...new function.
22439 (pass_rtl_loop_done): Convert from a global struct to a subclass of
22440 rtl_opt_pass along with...
22441 (pass_data_rtl_loop_done): ...new pass_data instance and...
22442 (make_pass_rtl_loop_done): ...new function.
22443 (pass_rtl_move_loop_invariants): Convert from a global struct to a
22444 subclass of rtl_opt_pass along with...
22445 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22446 (make_pass_rtl_move_loop_invariants): ...new function.
22447 (pass_rtl_unswitch): Convert from a global struct to a subclass of
22448 rtl_opt_pass along with...
22449 (pass_data_rtl_unswitch): ...new pass_data instance and...
22450 (make_pass_rtl_unswitch): ...new function.
22451 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22452 subclass of rtl_opt_pass along with...
22453 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22454 and...
22455 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22456 (pass_rtl_doloop): Convert from a global struct to a subclass of
22457 rtl_opt_pass along with...
22458 (pass_data_rtl_doloop): ...new pass_data instance and...
22459 (make_pass_rtl_doloop): ...new function.
22460 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22461 a subclass of rtl_opt_pass along with...
22462 (pass_data_lower_subreg): ...new pass_data instance and...
22463 (make_pass_lower_subreg): ...new function.
22464 (pass_lower_subreg2): Convert from a global struct to a subclass of
22465 rtl_opt_pass along with...
22466 (pass_data_lower_subreg2): ...new pass_data instance and...
22467 (make_pass_lower_subreg2): ...new function.
22468 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22469 struct to a subclass of ipa_opt_pass_d along with...
22470 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22471 (make_pass_ipa_lto_gimple_out): ...new function.
22472 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22473 of ipa_opt_pass_d along with...
22474 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22475 (make_pass_ipa_lto_finish_out): ...new function.
22476 * mode-switching.c (pass_mode_switching): Convert from a global struct
22477 to a subclass of rtl_opt_pass along with...
22478 (pass_data_mode_switching): ...new pass_data instance and...
22479 (make_pass_mode_switching): ...new function.
22480 * modulo-sched.c (pass_sms): Convert from a global struct to a
22481 subclass of rtl_opt_pass along with...
22482 (pass_data_sms): ...new pass_data instance and...
22483 (make_pass_sms): ...new function.
22484 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22485 subclass of gimple_opt_pass along with...
22486 (pass_data_expand_omp): ...new pass_data instance and...
22487 (make_pass_expand_omp): ...new function.
22488 (pass_lower_omp): Convert from a global struct to a subclass of
22489 gimple_opt_pass along with...
22490 (pass_data_lower_omp): ...new pass_data instance and...
22491 (make_pass_lower_omp): ...new function.
22492 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22493 of gimple_opt_pass along with...
22494 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22495 (make_pass_diagnose_omp_blocks): ...new function.
22496 * passes.c (pass_early_local_passes): Convert from a global struct to
22497 a subclass of simple_ipa_opt_pass along with...
22498 (pass_data_early_local_passes): ...new pass_data instance and...
22499 (make_pass_early_local_passes): ...new function.
22500 (pass_all_early_optimizations): Convert from a global struct to a
22501 subclass of gimple_opt_pass along with...
22502 (pass_data_all_early_optimizations): ...new pass_data instance and...
22503 (make_pass_all_early_optimizations): ...new function.
22504 (pass_all_optimizations): Convert from a global struct to a subclass
22505 of gimple_opt_pass along with...
22506 (pass_data_all_optimizations): ...new pass_data instance and...
22507 (make_pass_all_optimizations): ...new function.
22508 (pass_all_optimizations_g): Convert from a global struct to a subclass
22509 of gimple_opt_pass along with...
22510 (pass_data_all_optimizations_g): ...new pass_data instance and...
22511 (make_pass_all_optimizations_g): ...new function.
22512 (pass_rest_of_compilation): Convert from a global struct to a subclass
22513 of rtl_opt_pass along with...
22514 (pass_data_rest_of_compilation): ...new pass_data instance and...
22515 (make_pass_rest_of_compilation): ...new function.
22516 (pass_postreload): Convert from a global struct to a subclass of
22517 rtl_opt_pass along with...
22518 (pass_data_postreload): ...new pass_data instance and...
22519 (make_pass_postreload): ...new function.
22520 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22521 subclass of rtl_opt_pass along with...
22522 (pass_data_gcse2): ...new pass_data instance and...
22523 (make_pass_gcse2): ...new function.
22524 * postreload.c (pass_postreload_cse): Convert from a global struct to
22525 a subclass of rtl_opt_pass along with...
22526 (pass_data_postreload_cse): ...new pass_data instance and...
22527 (make_pass_postreload_cse): ...new function.
22528 * predict.c (pass_profile): Convert from a global struct to a subclass
22529 of gimple_opt_pass along with...
22530 (pass_data_profile): ...new pass_data instance and...
22531 (make_pass_profile): ...new function.
22532 (pass_strip_predict_hints): Convert from a global struct to a subclass
22533 of gimple_opt_pass along with...
22534 (pass_data_strip_predict_hints): ...new pass_data instance and...
22535 (make_pass_strip_predict_hints): ...new function.
22536 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22537 of rtl_opt_pass along with...
22538 (pass_data_peephole2): ...new pass_data instance and...
22539 (make_pass_peephole2): ...new function.
22540 (pass_split_all_insns): Convert from a global struct to a subclass of
22541 rtl_opt_pass along with...
22542 (pass_data_split_all_insns): ...new pass_data instance and...
22543 (make_pass_split_all_insns): ...new function.
22544 (pass_split_after_reload): Convert from a global struct to a subclass
22545 of rtl_opt_pass along with...
22546 (pass_data_split_after_reload): ...new pass_data instance and...
22547 (make_pass_split_after_reload): ...new function.
22548 (pass_split_before_regstack): Convert from a global struct to a
22549 subclass of rtl_opt_pass along with...
22550 (pass_data_split_before_regstack): ...new pass_data instance and...
22551 (make_pass_split_before_regstack): ...new function.
22552 (pass_split_before_sched2): Convert from a global struct to a subclass
22553 of rtl_opt_pass along with...
22554 (pass_data_split_before_sched2): ...new pass_data instance and...
22555 (make_pass_split_before_sched2): ...new function.
22556 (pass_split_for_shorten_branches): Convert from a global struct to a
22557 subclass of rtl_opt_pass along with...
22558 (pass_data_split_for_shorten_branches): ...new pass_data instance
22559 and...
22560 (make_pass_split_for_shorten_branches): ...new function.
22561 * ree.c (pass_ree): Convert from a global struct to a subclass of
22562 rtl_opt_pass along with...
22563 (pass_data_ree): ...new pass_data instance and...
22564 (make_pass_ree): ...new function.
22565 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22566 subclass of rtl_opt_pass along with...
22567 (pass_data_stack_regs): ...new pass_data instance and...
22568 (make_pass_stack_regs): ...new function.
22569 (pass_stack_regs_run): Convert from a global struct to a subclass of
22570 rtl_opt_pass along with...
22571 (pass_data_stack_regs_run): ...new pass_data instance and...
22572 (make_pass_stack_regs_run): ...new function.
22573 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22574 subclass of rtl_opt_pass along with...
22575 (pass_data_cprop_hardreg): ...new pass_data instance and...
22576 (make_pass_cprop_hardreg): ...new function.
22577 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22578 subclass of rtl_opt_pass along with...
22579 (pass_data_reginfo_init): ...new pass_data instance and...
22580 (make_pass_reginfo_init): ...new function.
22581 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22582 of rtl_opt_pass along with...
22583 (pass_data_regmove): ...new pass_data instance and...
22584 (make_pass_regmove): ...new function.
22585 * regrename.c (pass_regrename): Convert from a global struct to a
22586 subclass of rtl_opt_pass along with...
22587 (pass_data_regrename): ...new pass_data instance and...
22588 (make_pass_regrename): ...new function.
22589 * reorg.c (pass_delay_slots): Convert from a global struct to a
22590 subclass of rtl_opt_pass along with...
22591 (pass_data_delay_slots): ...new pass_data instance and...
22592 (make_pass_delay_slots): ...new function.
22593 (pass_machine_reorg): Convert from a global struct to a subclass of
22594 rtl_opt_pass along with...
22595 (pass_data_machine_reorg): ...new pass_data instance and...
22596 (make_pass_machine_reorg): ...new function.
22597 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22598 of rtl_opt_pass along with...
22599 (pass_data_sched): ...new pass_data instance and...
22600 (make_pass_sched): ...new function.
22601 (pass_sched2): Convert from a global struct to a subclass of
22602 rtl_opt_pass along with...
22603 (pass_data_sched2): ...new pass_data instance and...
22604 (make_pass_sched2): ...new function.
22605 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22606 to a subclass of rtl_opt_pass along with...
22607 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22608 (make_pass_stack_ptr_mod): ...new function.
22609 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22610 to a subclass of rtl_opt_pass along with...
22611 (pass_data_rtl_store_motion): ...new pass_data instance and...
22612 (make_pass_rtl_store_motion): ...new function.
22613 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22614 of gimple_opt_pass along with...
22615 (pass_data_tracer): ...new pass_data instance and...
22616 (make_pass_tracer): ...new function.
22617 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22618 to a subclass of gimple_opt_pass along with...
22619 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22620 (make_pass_diagnose_tm_blocks): ...new function.
22621 (pass_lower_tm): Convert from a global struct to a subclass of
22622 gimple_opt_pass along with...
22623 (pass_data_lower_tm): ...new pass_data instance and...
22624 (make_pass_lower_tm): ...new function.
22625 (pass_tm_init): Convert from a global struct to a subclass of
22626 gimple_opt_pass along with...
22627 (pass_data_tm_init): ...new pass_data instance and...
22628 (make_pass_tm_init): ...new function.
22629 (pass_tm_mark): Convert from a global struct to a subclass of
22630 gimple_opt_pass along with...
22631 (pass_data_tm_mark): ...new pass_data instance and...
22632 (make_pass_tm_mark): ...new function.
22633 (pass_tm_edges): Convert from a global struct to a subclass of
22634 gimple_opt_pass along with...
22635 (pass_data_tm_edges): ...new pass_data instance and...
22636 (make_pass_tm_edges): ...new function.
22637 (pass_tm_memopt): Convert from a global struct to a subclass of
22638 gimple_opt_pass along with...
22639 (pass_data_tm_memopt): ...new pass_data instance and...
22640 (make_pass_tm_memopt): ...new function.
22641 (pass_ipa_tm): Convert from a global struct to a subclass of
22642 simple_ipa_opt_pass along with...
22643 (pass_data_ipa_tm): ...new pass_data instance and...
22644 (make_pass_ipa_tm): ...new function.
22645 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22646 subclass of gimple_opt_pass along with...
22647 (pass_data_call_cdce): ...new pass_data instance and...
22648 (make_pass_call_cdce): ...new function.
22649 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22650 subclass of gimple_opt_pass along with...
22651 (pass_data_build_cfg): ...new pass_data instance and...
22652 (make_pass_build_cfg): ...new function.
22653 (pass_split_crit_edges): Convert from a global struct to a subclass of
22654 gimple_opt_pass along with...
22655 (pass_data_split_crit_edges): ...new pass_data instance and...
22656 (make_pass_split_crit_edges): ...new function.
22657 (pass_warn_function_return): Convert from a global struct to a
22658 subclass of gimple_opt_pass along with...
22659 (pass_data_warn_function_return): ...new pass_data instance and...
22660 (make_pass_warn_function_return): ...new function.
22661 (pass_warn_function_noreturn): Convert from a global struct to a
22662 subclass of gimple_opt_pass along with...
22663 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22664 (make_pass_warn_function_noreturn): ...new function.
22665 (pass_warn_unused_result): Convert from a global struct to a subclass
22666 of gimple_opt_pass along with...
22667 (pass_data_warn_unused_result): ...new pass_data instance and...
22668 (make_pass_warn_unused_result): ...new function.
22669 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22670 a subclass of gimple_opt_pass along with...
22671 (pass_data_merge_phi): ...new pass_data instance and...
22672 (make_pass_merge_phi): ...new function.
22673 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22674 a subclass of gimple_opt_pass along with...
22675 (pass_data_lower_complex): ...new pass_data instance and...
22676 (make_pass_lower_complex): ...new function.
22677 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22678 gimple_opt_pass along with...
22679 (pass_data_lower_complex_O0): ...new pass_data instance and...
22680 (make_pass_lower_complex_O0): ...new function.
22681 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22682 subclass of gimple_opt_pass along with...
22683 (pass_data_lower_eh): ...new pass_data instance and...
22684 (make_pass_lower_eh): ...new function.
22685 (pass_refactor_eh): Convert from a global struct to a subclass of
22686 gimple_opt_pass along with...
22687 (pass_data_refactor_eh): ...new pass_data instance and...
22688 (make_pass_refactor_eh): ...new function.
22689 (pass_lower_resx): Convert from a global struct to a subclass of
22690 gimple_opt_pass along with...
22691 (pass_data_lower_resx): ...new pass_data instance and...
22692 (make_pass_lower_resx): ...new function.
22693 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22694 of gimple_opt_pass along with...
22695 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22696 (make_pass_lower_eh_dispatch): ...new function.
22697 (pass_cleanup_eh): Convert from a global struct to a subclass of
22698 gimple_opt_pass along with...
22699 (pass_data_cleanup_eh): ...new pass_data instance and...
22700 (make_pass_cleanup_eh): ...new function.
22701 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22702 to a subclass of simple_ipa_opt_pass along with...
22703 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22704 (make_pass_ipa_lower_emutls): ...new function.
22705 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22706 a subclass of gimple_opt_pass along with...
22707 (pass_data_if_conversion): ...new pass_data instance and...
22708 (make_pass_if_conversion): ...new function.
22709 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22710 subclass of gimple_opt_pass along with...
22711 (pass_data_build_ssa): ...new pass_data instance and...
22712 (make_pass_build_ssa): ...new function.
22713 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22714 global struct to a subclass of gimple_opt_pass along with...
22715 (pass_data_loop_distribution): ...new pass_data instance and...
22716 (make_pass_loop_distribution): ...new function.
22717 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22718 subclass of gimple_opt_pass along with...
22719 (pass_data_mudflap_1): ...new pass_data instance and...
22720 (make_pass_mudflap_1): ...new function.
22721 (pass_mudflap_2): Convert from a global struct to a subclass of
22722 gimple_opt_pass along with...
22723 (pass_data_mudflap_2): ...new pass_data instance and...
22724 (make_pass_mudflap_2): ...new function.
22725 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22726 subclass of gimple_opt_pass along with...
22727 (pass_data_mudflap_1): ...new pass_data instance and...
22728 (make_pass_mudflap_1): ...new function.
22729 (pass_mudflap_2): Convert from a global struct to a subclass of
22730 gimple_opt_pass along with...
22731 (pass_data_mudflap_2): ...new pass_data instance and...
22732 (make_pass_mudflap_2): ...new function.
22733 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22734 gimple_opt_pass along with...
22735 (pass_data_nrv): ...new pass_data instance and...
22736 (make_pass_nrv): ...new function.
22737 (pass_return_slot): Convert from a global struct to a subclass of
22738 gimple_opt_pass along with...
22739 (pass_data_return_slot): ...new pass_data instance and...
22740 (make_pass_return_slot): ...new function.
22741 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22742 to a subclass of gimple_opt_pass along with...
22743 (pass_data_object_sizes): ...new pass_data instance and...
22744 (make_pass_object_sizes): ...new function.
22745 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22746 global struct to a subclass of gimple_opt_pass along with...
22747 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22748 and...
22749 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22750 (pass_fixup_cfg): Convert from a global struct to a subclass of
22751 gimple_opt_pass along with...
22752 (pass_data_fixup_cfg): ...new pass_data instance and...
22753 (make_pass_fixup_cfg): ...new function.
22754 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22755 (make_pass_mudflap_1): ...new function.
22756 (pass_mudflap_2): Replace declaration with that of...
22757 (make_pass_mudflap_2): ...new function.
22758 (pass_asan): Replace declaration with that of...
22759 (make_pass_asan): ...new function.
22760 (pass_asan_O0): Replace declaration with that of...
22761 (make_pass_asan_O0): ...new function.
22762 (pass_tsan): Replace declaration with that of...
22763 (make_pass_tsan): ...new function.
22764 (pass_tsan_O0): Replace declaration with that of...
22765 (make_pass_tsan_O0): ...new function.
22766 (pass_lower_cf): Replace declaration with that of...
22767 (make_pass_lower_cf): ...new function.
22768 (pass_refactor_eh): Replace declaration with that of...
22769 (make_pass_refactor_eh): ...new function.
22770 (pass_lower_eh): Replace declaration with that of...
22771 (make_pass_lower_eh): ...new function.
22772 (pass_lower_eh_dispatch): Replace declaration with that of...
22773 (make_pass_lower_eh_dispatch): ...new function.
22774 (pass_lower_resx): Replace declaration with that of...
22775 (make_pass_lower_resx): ...new function.
22776 (pass_build_cfg): Replace declaration with that of...
22777 (make_pass_build_cfg): ...new function.
22778 (pass_early_tree_profile): Replace declaration with that of...
22779 (make_pass_early_tree_profile): ...new function.
22780 (pass_cleanup_eh): Replace declaration with that of...
22781 (make_pass_cleanup_eh): ...new function.
22782 (pass_sra): Replace declaration with that of...
22783 (make_pass_sra): ...new function.
22784 (pass_sra_early): Replace declaration with that of...
22785 (make_pass_sra_early): ...new function.
22786 (pass_early_ipa_sra): Replace declaration with that of...
22787 (make_pass_early_ipa_sra): ...new function.
22788 (pass_tail_recursion): Replace declaration with that of...
22789 (make_pass_tail_recursion): ...new function.
22790 (pass_tail_calls): Replace declaration with that of...
22791 (make_pass_tail_calls): ...new function.
22792 (pass_tree_loop): Replace declaration with that of...
22793 (make_pass_tree_loop): ...new function.
22794 (pass_tree_loop_init): Replace declaration with that of...
22795 (make_pass_tree_loop_init): ...new function.
22796 (pass_lim): Replace declaration with that of...
22797 (make_pass_lim): ...new function.
22798 (pass_tree_unswitch): Replace declaration with that of...
22799 (make_pass_tree_unswitch): ...new function.
22800 (pass_predcom): Replace declaration with that of...
22801 (make_pass_predcom): ...new function.
22802 (pass_iv_canon): Replace declaration with that of...
22803 (make_pass_iv_canon): ...new function.
22804 (pass_scev_cprop): Replace declaration with that of...
22805 (make_pass_scev_cprop): ...new function.
22806 (pass_empty_loop): Replace declaration with that of...
22807 (make_pass_empty_loop): ...new function.
22808 (pass_record_bounds): Replace declaration with that of...
22809 (make_pass_record_bounds): ...new function.
22810 (pass_graphite): Replace declaration with that of...
22811 (make_pass_graphite): ...new function.
22812 (pass_graphite_transforms): Replace declaration with that of...
22813 (make_pass_graphite_transforms): ...new function.
22814 (pass_if_conversion): Replace declaration with that of...
22815 (make_pass_if_conversion): ...new function.
22816 (pass_loop_distribution): Replace declaration with that of...
22817 (make_pass_loop_distribution): ...new function.
22818 (pass_vectorize): Replace declaration with that of...
22819 (make_pass_vectorize): ...new function.
22820 (pass_slp_vectorize): Replace declaration with that of...
22821 (make_pass_slp_vectorize): ...new function.
22822 (pass_complete_unroll): Replace declaration with that of...
22823 (make_pass_complete_unroll): ...new function.
22824 (pass_complete_unrolli): Replace declaration with that of...
22825 (make_pass_complete_unrolli): ...new function.
22826 (pass_parallelize_loops): Replace declaration with that of...
22827 (make_pass_parallelize_loops): ...new function.
22828 (pass_loop_prefetch): Replace declaration with that of...
22829 (make_pass_loop_prefetch): ...new function.
22830 (pass_iv_optimize): Replace declaration with that of...
22831 (make_pass_iv_optimize): ...new function.
22832 (pass_tree_loop_done): Replace declaration with that of...
22833 (make_pass_tree_loop_done): ...new function.
22834 (pass_ch): Replace declaration with that of...
22835 (make_pass_ch): ...new function.
22836 (pass_ccp): Replace declaration with that of...
22837 (make_pass_ccp): ...new function.
22838 (pass_phi_only_cprop): Replace declaration with that of...
22839 (make_pass_phi_only_cprop): ...new function.
22840 (pass_build_ssa): Replace declaration with that of...
22841 (make_pass_build_ssa): ...new function.
22842 (pass_build_alias): Replace declaration with that of...
22843 (make_pass_build_alias): ...new function.
22844 (pass_build_ealias): Replace declaration with that of...
22845 (make_pass_build_ealias): ...new function.
22846 (pass_dominator): Replace declaration with that of...
22847 (make_pass_dominator): ...new function.
22848 (pass_dce): Replace declaration with that of...
22849 (make_pass_dce): ...new function.
22850 (pass_dce_loop): Replace declaration with that of...
22851 (make_pass_dce_loop): ...new function.
22852 (pass_cd_dce): Replace declaration with that of...
22853 (make_pass_cd_dce): ...new function.
22854 (pass_call_cdce): Replace declaration with that of...
22855 (make_pass_call_cdce): ...new function.
22856 (pass_merge_phi): Replace declaration with that of...
22857 (make_pass_merge_phi): ...new function.
22858 (pass_split_crit_edges): Replace declaration with that of...
22859 (make_pass_split_crit_edges): ...new function.
22860 (pass_pre): Replace declaration with that of...
22861 (make_pass_pre): ...new function.
22862 (pass_profile): Replace declaration with that of...
22863 (make_pass_profile): ...new function.
22864 (pass_strip_predict_hints): Replace declaration with that of...
22865 (make_pass_strip_predict_hints): ...new function.
22866 (pass_lower_complex_O0): Replace declaration with that of...
22867 (make_pass_lower_complex_O0): ...new function.
22868 (pass_lower_complex): Replace declaration with that of...
22869 (make_pass_lower_complex): ...new function.
22870 (pass_lower_vector): Replace declaration with that of...
22871 (make_pass_lower_vector): ...new function.
22872 (pass_lower_vector_ssa): Replace declaration with that of...
22873 (make_pass_lower_vector_ssa): ...new function.
22874 (pass_lower_omp): Replace declaration with that of...
22875 (make_pass_lower_omp): ...new function.
22876 (pass_diagnose_omp_blocks): Replace declaration with that of...
22877 (make_pass_diagnose_omp_blocks): ...new function.
22878 (pass_expand_omp): Replace declaration with that of...
22879 (make_pass_expand_omp): ...new function.
22880 (pass_expand_omp_ssa): Replace declaration with that of...
22881 (make_pass_expand_omp_ssa): ...new function.
22882 (pass_object_sizes): Replace declaration with that of...
22883 (make_pass_object_sizes): ...new function.
22884 (pass_strlen): Replace declaration with that of...
22885 (make_pass_strlen): ...new function.
22886 (pass_fold_builtins): Replace declaration with that of...
22887 (make_pass_fold_builtins): ...new function.
22888 (pass_stdarg): Replace declaration with that of...
22889 (make_pass_stdarg): ...new function.
22890 (pass_early_warn_uninitialized): Replace declaration with that of...
22891 (make_pass_early_warn_uninitialized): ...new function.
22892 (pass_late_warn_uninitialized): Replace declaration with that of...
22893 (make_pass_late_warn_uninitialized): ...new function.
22894 (pass_cse_reciprocals): Replace declaration with that of...
22895 (make_pass_cse_reciprocals): ...new function.
22896 (pass_cse_sincos): Replace declaration with that of...
22897 (make_pass_cse_sincos): ...new function.
22898 (pass_optimize_bswap): Replace declaration with that of...
22899 (make_pass_optimize_bswap): ...new function.
22900 (pass_optimize_widening_mul): Replace declaration with that of...
22901 (make_pass_optimize_widening_mul): ...new function.
22902 (pass_warn_function_return): Replace declaration with that of...
22903 (make_pass_warn_function_return): ...new function.
22904 (pass_warn_function_noreturn): Replace declaration with that of...
22905 (make_pass_warn_function_noreturn): ...new function.
22906 (pass_cselim): Replace declaration with that of...
22907 (make_pass_cselim): ...new function.
22908 (pass_phiopt): Replace declaration with that of...
22909 (make_pass_phiopt): ...new function.
22910 (pass_forwprop): Replace declaration with that of...
22911 (make_pass_forwprop): ...new function.
22912 (pass_phiprop): Replace declaration with that of...
22913 (make_pass_phiprop): ...new function.
22914 (pass_tree_ifcombine): Replace declaration with that of...
22915 (make_pass_tree_ifcombine): ...new function.
22916 (pass_dse): Replace declaration with that of...
22917 (make_pass_dse): ...new function.
22918 (pass_nrv): Replace declaration with that of...
22919 (make_pass_nrv): ...new function.
22920 (pass_rename_ssa_copies): Replace declaration with that of...
22921 (make_pass_rename_ssa_copies): ...new function.
22922 (pass_sink_code): Replace declaration with that of...
22923 (make_pass_sink_code): ...new function.
22924 (pass_fre): Replace declaration with that of...
22925 (make_pass_fre): ...new function.
22926 (pass_check_data_deps): Replace declaration with that of...
22927 (make_pass_check_data_deps): ...new function.
22928 (pass_copy_prop): Replace declaration with that of...
22929 (make_pass_copy_prop): ...new function.
22930 (pass_vrp): Replace declaration with that of...
22931 (make_pass_vrp): ...new function.
22932 (pass_uncprop): Replace declaration with that of...
22933 (make_pass_uncprop): ...new function.
22934 (pass_return_slot): Replace declaration with that of...
22935 (make_pass_return_slot): ...new function.
22936 (pass_reassoc): Replace declaration with that of...
22937 (make_pass_reassoc): ...new function.
22938 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22939 (make_pass_rebuild_cgraph_edges): ...new function.
22940 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22941 (make_pass_remove_cgraph_callee_edges): ...new function.
22942 (pass_build_cgraph_edges): Replace declaration with that of...
22943 (make_pass_build_cgraph_edges): ...new function.
22944 (pass_local_pure_const): Replace declaration with that of...
22945 (make_pass_local_pure_const): ...new function.
22946 (pass_tracer): Replace declaration with that of...
22947 (make_pass_tracer): ...new function.
22948 (pass_warn_unused_result): Replace declaration with that of...
22949 (make_pass_warn_unused_result): ...new function.
22950 (pass_diagnose_tm_blocks): Replace declaration with that of...
22951 (make_pass_diagnose_tm_blocks): ...new function.
22952 (pass_lower_tm): Replace declaration with that of...
22953 (make_pass_lower_tm): ...new function.
22954 (pass_tm_init): Replace declaration with that of...
22955 (make_pass_tm_init): ...new function.
22956 (pass_tm_mark): Replace declaration with that of...
22957 (make_pass_tm_mark): ...new function.
22958 (pass_tm_memopt): Replace declaration with that of...
22959 (make_pass_tm_memopt): ...new function.
22960 (pass_tm_edges): Replace declaration with that of...
22961 (make_pass_tm_edges): ...new function.
22962 (pass_split_functions): Replace declaration with that of...
22963 (make_pass_split_functions): ...new function.
22964 (pass_feedback_split_functions): Replace declaration with that of...
22965 (make_pass_feedback_split_functions): ...new function.
22966 (pass_strength_reduction): Replace declaration with that of...
22967 (make_pass_strength_reduction): ...new function.
22968 (pass_ipa_lower_emutls): Replace declaration with that of...
22969 (make_pass_ipa_lower_emutls): ...new function.
22970 (pass_ipa_function_and_variable_visibility): Replace declaration with
22971 that of...
22972 (make_pass_ipa_function_and_variable_visibility): ...new function.
22973 (pass_ipa_tree_profile): Replace declaration with that of...
22974 (make_pass_ipa_tree_profile): ...new function.
22975 (pass_early_local_passes): Replace declaration with that of...
22976 (make_pass_early_local_passes): ...new function.
22977 (pass_ipa_whole_program_visibility): Replace declaration with that
22978 of...
22979 (make_pass_ipa_whole_program_visibility): ...new function.
22980 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22981 (make_pass_ipa_lto_gimple_out): ...new function.
22982 (pass_ipa_increase_alignment): Replace declaration with that of...
22983 (make_pass_ipa_increase_alignment): ...new function.
22984 (pass_ipa_inline): Replace declaration with that of...
22985 (make_pass_ipa_inline): ...new function.
22986 (pass_ipa_free_lang_data): Replace declaration with that of...
22987 (make_pass_ipa_free_lang_data): ...new function.
22988 (pass_ipa_free_inline_summary): Replace declaration with that of...
22989 (make_pass_ipa_free_inline_summary): ...new function.
22990 (pass_ipa_cp): Replace declaration with that of...
22991 (make_pass_ipa_cp): ...new function.
22992 (pass_ipa_reference): Replace declaration with that of...
22993 (make_pass_ipa_reference): ...new function.
22994 (pass_ipa_pure_const): Replace declaration with that of...
22995 (make_pass_ipa_pure_const): ...new function.
22996 (pass_ipa_pta): Replace declaration with that of...
22997 (make_pass_ipa_pta): ...new function.
22998 (pass_ipa_lto_finish_out): Replace declaration with that of...
22999 (make_pass_ipa_lto_finish_out): ...new function.
23000 (pass_ipa_tm): Replace declaration with that of...
23001 (make_pass_ipa_tm): ...new function.
23002 (pass_ipa_profile): Replace declaration with that of...
23003 (make_pass_ipa_profile): ...new function.
23004 (pass_ipa_cdtor_merge): Replace declaration with that of...
23005 (make_pass_ipa_cdtor_merge): ...new function.
23006 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23007 of...
23008 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23009 (pass_init_datastructures): Replace declaration with that of...
23010 (make_pass_init_datastructures): ...new function.
23011 (pass_fixup_cfg): Replace declaration with that of...
23012 (make_pass_fixup_cfg): ...new function.
23013 (pass_expand): Replace declaration with that of...
23014 (make_pass_expand): ...new function.
23015 (pass_instantiate_virtual_regs): Replace declaration with that of...
23016 (make_pass_instantiate_virtual_regs): ...new function.
23017 (pass_rtl_fwprop): Replace declaration with that of...
23018 (make_pass_rtl_fwprop): ...new function.
23019 (pass_rtl_fwprop_addr): Replace declaration with that of...
23020 (make_pass_rtl_fwprop_addr): ...new function.
23021 (pass_jump): Replace declaration with that of...
23022 (make_pass_jump): ...new function.
23023 (pass_jump2): Replace declaration with that of...
23024 (make_pass_jump2): ...new function.
23025 (pass_lower_subreg): Replace declaration with that of...
23026 (make_pass_lower_subreg): ...new function.
23027 (pass_cse): Replace declaration with that of...
23028 (make_pass_cse): ...new function.
23029 (pass_fast_rtl_dce): Replace declaration with that of...
23030 (make_pass_fast_rtl_dce): ...new function.
23031 (pass_ud_rtl_dce): Replace declaration with that of...
23032 (make_pass_ud_rtl_dce): ...new function.
23033 (pass_rtl_dce): Replace declaration with that of...
23034 (make_pass_rtl_dce): ...new function.
23035 (pass_rtl_dse1): Replace declaration with that of...
23036 (make_pass_rtl_dse1): ...new function.
23037 (pass_rtl_dse2): Replace declaration with that of...
23038 (make_pass_rtl_dse2): ...new function.
23039 (pass_rtl_dse3): Replace declaration with that of...
23040 (make_pass_rtl_dse3): ...new function.
23041 (pass_rtl_cprop): Replace declaration with that of...
23042 (make_pass_rtl_cprop): ...new function.
23043 (pass_rtl_pre): Replace declaration with that of...
23044 (make_pass_rtl_pre): ...new function.
23045 (pass_rtl_hoist): Replace declaration with that of...
23046 (make_pass_rtl_hoist): ...new function.
23047 (pass_rtl_store_motion): Replace declaration with that of...
23048 (make_pass_rtl_store_motion): ...new function.
23049 (pass_cse_after_global_opts): Replace declaration with that of...
23050 (make_pass_cse_after_global_opts): ...new function.
23051 (pass_rtl_ifcvt): Replace declaration with that of...
23052 (make_pass_rtl_ifcvt): ...new function.
23053 (pass_into_cfg_layout_mode): Replace declaration with that of...
23054 (make_pass_into_cfg_layout_mode): ...new function.
23055 (pass_outof_cfg_layout_mode): Replace declaration with that of...
23056 (make_pass_outof_cfg_layout_mode): ...new function.
23057 (pass_loop2): Replace declaration with that of...
23058 (make_pass_loop2): ...new function.
23059 (pass_rtl_loop_init): Replace declaration with that of...
23060 (make_pass_rtl_loop_init): ...new function.
23061 (pass_rtl_move_loop_invariants): Replace declaration with that of...
23062 (make_pass_rtl_move_loop_invariants): ...new function.
23063 (pass_rtl_unswitch): Replace declaration with that of...
23064 (make_pass_rtl_unswitch): ...new function.
23065 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23066 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23067 (pass_rtl_doloop): Replace declaration with that of...
23068 (make_pass_rtl_doloop): ...new function.
23069 (pass_rtl_loop_done): Replace declaration with that of...
23070 (make_pass_rtl_loop_done): ...new function.
23071 (pass_web): Replace declaration with that of...
23072 (make_pass_web): ...new function.
23073 (pass_cse2): Replace declaration with that of...
23074 (make_pass_cse2): ...new function.
23075 (pass_df_initialize_opt): Replace declaration with that of...
23076 (make_pass_df_initialize_opt): ...new function.
23077 (pass_df_initialize_no_opt): Replace declaration with that of...
23078 (make_pass_df_initialize_no_opt): ...new function.
23079 (pass_reginfo_init): Replace declaration with that of...
23080 (make_pass_reginfo_init): ...new function.
23081 (pass_inc_dec): Replace declaration with that of...
23082 (make_pass_inc_dec): ...new function.
23083 (pass_stack_ptr_mod): Replace declaration with that of...
23084 (make_pass_stack_ptr_mod): ...new function.
23085 (pass_initialize_regs): Replace declaration with that of...
23086 (make_pass_initialize_regs): ...new function.
23087 (pass_combine): Replace declaration with that of...
23088 (make_pass_combine): ...new function.
23089 (pass_if_after_combine): Replace declaration with that of...
23090 (make_pass_if_after_combine): ...new function.
23091 (pass_ree): Replace declaration with that of...
23092 (make_pass_ree): ...new function.
23093 (pass_partition_blocks): Replace declaration with that of...
23094 (make_pass_partition_blocks): ...new function.
23095 (pass_match_asm_constraints): Replace declaration with that of...
23096 (make_pass_match_asm_constraints): ...new function.
23097 (pass_regmove): Replace declaration with that of...
23098 (make_pass_regmove): ...new function.
23099 (pass_split_all_insns): Replace declaration with that of...
23100 (make_pass_split_all_insns): ...new function.
23101 (pass_fast_rtl_byte_dce): Replace declaration with that of...
23102 (make_pass_fast_rtl_byte_dce): ...new function.
23103 (pass_lower_subreg2): Replace declaration with that of...
23104 (make_pass_lower_subreg2): ...new function.
23105 (pass_mode_switching): Replace declaration with that of...
23106 (make_pass_mode_switching): ...new function.
23107 (pass_sms): Replace declaration with that of...
23108 (make_pass_sms): ...new function.
23109 (pass_sched): Replace declaration with that of...
23110 (make_pass_sched): ...new function.
23111 (pass_ira): Replace declaration with that of...
23112 (make_pass_ira): ...new function.
23113 (pass_reload): Replace declaration with that of...
23114 (make_pass_reload): ...new function.
23115 (pass_clean_state): Replace declaration with that of...
23116 (make_pass_clean_state): ...new function.
23117 (pass_branch_prob): Replace declaration with that of...
23118 (make_pass_branch_prob): ...new function.
23119 (pass_value_profile_transformations): Replace declaration with that
23120 of...
23121 (make_pass_value_profile_transformations): ...new function.
23122 (pass_postreload_cse): Replace declaration with that of...
23123 (make_pass_postreload_cse): ...new function.
23124 (pass_gcse2): Replace declaration with that of...
23125 (make_pass_gcse2): ...new function.
23126 (pass_split_after_reload): Replace declaration with that of...
23127 (make_pass_split_after_reload): ...new function.
23128 (pass_branch_target_load_optimize1): Replace declaration with that
23129 of...
23130 (make_pass_branch_target_load_optimize1): ...new function.
23131 (pass_thread_prologue_and_epilogue): Replace declaration with that
23132 of...
23133 (make_pass_thread_prologue_and_epilogue): ...new function.
23134 (pass_stack_adjustments): Replace declaration with that of...
23135 (make_pass_stack_adjustments): ...new function.
23136 (pass_peephole2): Replace declaration with that of...
23137 (make_pass_peephole2): ...new function.
23138 (pass_if_after_reload): Replace declaration with that of...
23139 (make_pass_if_after_reload): ...new function.
23140 (pass_regrename): Replace declaration with that of...
23141 (make_pass_regrename): ...new function.
23142 (pass_cprop_hardreg): Replace declaration with that of...
23143 (make_pass_cprop_hardreg): ...new function.
23144 (pass_reorder_blocks): Replace declaration with that of...
23145 (make_pass_reorder_blocks): ...new function.
23146 (pass_branch_target_load_optimize2): Replace declaration with that
23147 of...
23148 (make_pass_branch_target_load_optimize2): ...new function.
23149 (pass_leaf_regs): Replace declaration with that of...
23150 (make_pass_leaf_regs): ...new function.
23151 (pass_split_before_sched2): Replace declaration with that of...
23152 (make_pass_split_before_sched2): ...new function.
23153 (pass_compare_elim_after_reload): Replace declaration with that of...
23154 (make_pass_compare_elim_after_reload): ...new function.
23155 (pass_sched2): Replace declaration with that of...
23156 (make_pass_sched2): ...new function.
23157 (pass_stack_regs): Replace declaration with that of...
23158 (make_pass_stack_regs): ...new function.
23159 (pass_stack_regs_run): Replace declaration with that of...
23160 (make_pass_stack_regs_run): ...new function.
23161 (pass_df_finish): Replace declaration with that of...
23162 (make_pass_df_finish): ...new function.
23163 (pass_compute_alignments): Replace declaration with that of...
23164 (make_pass_compute_alignments): ...new function.
23165 (pass_duplicate_computed_gotos): Replace declaration with that of...
23166 (make_pass_duplicate_computed_gotos): ...new function.
23167 (pass_variable_tracking): Replace declaration with that of...
23168 (make_pass_variable_tracking): ...new function.
23169 (pass_free_cfg): Replace declaration with that of...
23170 (make_pass_free_cfg): ...new function.
23171 (pass_machine_reorg): Replace declaration with that of...
23172 (make_pass_machine_reorg): ...new function.
23173 (pass_cleanup_barriers): Replace declaration with that of...
23174 (make_pass_cleanup_barriers): ...new function.
23175 (pass_delay_slots): Replace declaration with that of...
23176 (make_pass_delay_slots): ...new function.
23177 (pass_split_for_shorten_branches): Replace declaration with that of...
23178 (make_pass_split_for_shorten_branches): ...new function.
23179 (pass_split_before_regstack): Replace declaration with that of...
23180 (make_pass_split_before_regstack): ...new function.
23181 (pass_convert_to_eh_region_ranges): Replace declaration with that
23182 of...
23183 (make_pass_convert_to_eh_region_ranges): ...new function.
23184 (pass_shorten_branches): Replace declaration with that of...
23185 (make_pass_shorten_branches): ...new function.
23186 (pass_set_nothrow_function_flags): Replace declaration with that of...
23187 (make_pass_set_nothrow_function_flags): ...new function.
23188 (pass_dwarf2_frame): Replace declaration with that of...
23189 (make_pass_dwarf2_frame): ...new function.
23190 (pass_final): Replace declaration with that of...
23191 (make_pass_final): ...new function.
23192 (pass_rtl_seqabstr): Replace declaration with that of...
23193 (make_pass_rtl_seqabstr): ...new function.
23194 (pass_release_ssa_names): Replace declaration with that of...
23195 (make_pass_release_ssa_names): ...new function.
23196 (pass_early_inline): Replace declaration with that of...
23197 (make_pass_early_inline): ...new function.
23198 (pass_inline_parameters): Replace declaration with that of...
23199 (make_pass_inline_parameters): ...new function.
23200 (pass_update_address_taken): Replace declaration with that of...
23201 (make_pass_update_address_taken): ...new function.
23202 (pass_convert_switch): Replace declaration with that of...
23203 (make_pass_convert_switch): ...new function.
23204 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23205 to a subclass of simple_ipa_opt_pass along with...
23206 (pass_data_ipa_tree_profile): ...new pass_data instance and...
23207 (make_pass_ipa_tree_profile): ...new function.
23208 * tree-sra.c (pass_sra_early): Convert from a global struct to a
23209 subclass of gimple_opt_pass along with...
23210 (pass_data_sra_early): ...new pass_data instance and...
23211 (make_pass_sra_early): ...new function.
23212 (pass_sra): Convert from a global struct to a subclass of
23213 gimple_opt_pass along with...
23214 (pass_data_sra): ...new pass_data instance and...
23215 (make_pass_sra): ...new function.
23216 (pass_early_ipa_sra): Convert from a global struct to a subclass of
23217 gimple_opt_pass along with...
23218 (pass_data_early_ipa_sra): ...new pass_data instance and...
23219 (make_pass_early_ipa_sra): ...new function.
23220 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23221 subclass of gimple_opt_pass along with...
23222 (pass_data_ccp): ...new pass_data instance and...
23223 (make_pass_ccp): ...new function.
23224 (pass_fold_builtins): Convert from a global struct to a subclass of
23225 gimple_opt_pass along with...
23226 (pass_data_fold_builtins): ...new pass_data instance and...
23227 (make_pass_fold_builtins): ...new function.
23228 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23229 subclass of gimple_opt_pass along with...
23230 (pass_data_copy_prop): ...new pass_data instance and...
23231 (make_pass_copy_prop): ...new function.
23232 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23233 global struct to a subclass of gimple_opt_pass along with...
23234 (pass_data_rename_ssa_copies): ...new pass_data instance and...
23235 (make_pass_rename_ssa_copies): ...new function.
23236 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23237 subclass of gimple_opt_pass along with...
23238 (pass_data_dce): ...new pass_data instance and...
23239 (make_pass_dce): ...new function.
23240 (pass_dce_loop): Convert from a global struct to a subclass of
23241 gimple_opt_pass along with...
23242 (pass_data_dce_loop): ...new pass_data instance and...
23243 (make_pass_dce_loop): ...new function.
23244 (pass_cd_dce): Convert from a global struct to a subclass of
23245 gimple_opt_pass along with...
23246 (pass_data_cd_dce): ...new pass_data instance and...
23247 (make_pass_cd_dce): ...new function.
23248 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23249 subclass of gimple_opt_pass along with...
23250 (pass_data_dominator): ...new pass_data instance and...
23251 (make_pass_dominator): ...new function.
23252 (pass_phi_only_cprop): Convert from a global struct to a subclass of
23253 gimple_opt_pass along with...
23254 (pass_data_phi_only_cprop): ...new pass_data instance and...
23255 (make_pass_phi_only_cprop): ...new function.
23256 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23257 subclass of gimple_opt_pass along with...
23258 (pass_data_dse): ...new pass_data instance and...
23259 (make_pass_dse): ...new function.
23260 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23261 a subclass of gimple_opt_pass along with...
23262 (pass_data_forwprop): ...new pass_data instance and...
23263 (make_pass_forwprop): ...new function.
23264 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23265 struct to a subclass of gimple_opt_pass along with...
23266 (pass_data_tree_ifcombine): ...new pass_data instance and...
23267 (make_pass_tree_ifcombine): ...new function.
23268 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23269 subclass of gimple_opt_pass along with...
23270 (pass_data_ch): ...new pass_data instance and...
23271 (make_pass_ch): ...new function.
23272 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23273 subclass of gimple_opt_pass along with...
23274 (pass_data_tree_loop): ...new pass_data instance and...
23275 (make_pass_tree_loop): ...new function.
23276 (pass_tree_loop_init): Convert from a global struct to a subclass of
23277 gimple_opt_pass along with...
23278 (pass_data_tree_loop_init): ...new pass_data instance and...
23279 (make_pass_tree_loop_init): ...new function.
23280 (pass_lim): Convert from a global struct to a subclass of
23281 gimple_opt_pass along with...
23282 (pass_data_lim): ...new pass_data instance and...
23283 (make_pass_lim): ...new function.
23284 (pass_tree_unswitch): Convert from a global struct to a subclass of
23285 gimple_opt_pass along with...
23286 (pass_data_tree_unswitch): ...new pass_data instance and...
23287 (make_pass_tree_unswitch): ...new function.
23288 (pass_predcom): Convert from a global struct to a subclass of
23289 gimple_opt_pass along with...
23290 (pass_data_predcom): ...new pass_data instance and...
23291 (make_pass_predcom): ...new function.
23292 (pass_vectorize): Convert from a global struct to a subclass of
23293 gimple_opt_pass along with...
23294 (pass_data_vectorize): ...new pass_data instance and...
23295 (make_pass_vectorize): ...new function.
23296 (pass_graphite): Convert from a global struct to a subclass of
23297 gimple_opt_pass along with...
23298 (pass_data_graphite): ...new pass_data instance and...
23299 (make_pass_graphite): ...new function.
23300 (pass_graphite_transforms): Convert from a global struct to a subclass
23301 of gimple_opt_pass along with...
23302 (pass_data_graphite_transforms): ...new pass_data instance and...
23303 (make_pass_graphite_transforms): ...new function.
23304 (pass_check_data_deps): Convert from a global struct to a subclass of
23305 gimple_opt_pass along with...
23306 (pass_data_check_data_deps): ...new pass_data instance and...
23307 (make_pass_check_data_deps): ...new function.
23308 (pass_iv_canon): Convert from a global struct to a subclass of
23309 gimple_opt_pass along with...
23310 (pass_data_iv_canon): ...new pass_data instance and...
23311 (make_pass_iv_canon): ...new function.
23312 (pass_scev_cprop): Convert from a global struct to a subclass of
23313 gimple_opt_pass along with...
23314 (pass_data_scev_cprop): ...new pass_data instance and...
23315 (make_pass_scev_cprop): ...new function.
23316 (pass_record_bounds): Convert from a global struct to a subclass of
23317 gimple_opt_pass along with...
23318 (pass_data_record_bounds): ...new pass_data instance and...
23319 (make_pass_record_bounds): ...new function.
23320 (pass_complete_unroll): Convert from a global struct to a subclass of
23321 gimple_opt_pass along with...
23322 (pass_data_complete_unroll): ...new pass_data instance and...
23323 (make_pass_complete_unroll): ...new function.
23324 (pass_complete_unrolli): Convert from a global struct to a subclass of
23325 gimple_opt_pass along with...
23326 (pass_data_complete_unrolli): ...new pass_data instance and...
23327 (make_pass_complete_unrolli): ...new function.
23328 (pass_parallelize_loops): Convert from a global struct to a subclass
23329 of gimple_opt_pass along with...
23330 (pass_data_parallelize_loops): ...new pass_data instance and...
23331 (make_pass_parallelize_loops): ...new function.
23332 (pass_loop_prefetch): Convert from a global struct to a subclass of
23333 gimple_opt_pass along with...
23334 (pass_data_loop_prefetch): ...new pass_data instance and...
23335 (make_pass_loop_prefetch): ...new function.
23336 (pass_iv_optimize): Convert from a global struct to a subclass of
23337 gimple_opt_pass along with...
23338 (pass_data_iv_optimize): ...new pass_data instance and...
23339 (make_pass_iv_optimize): ...new function.
23340 (pass_tree_loop_done): Convert from a global struct to a subclass of
23341 gimple_opt_pass along with...
23342 (pass_data_tree_loop_done): ...new pass_data instance and...
23343 (make_pass_tree_loop_done): ...new function.
23344 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23345 struct to a subclass of gimple_opt_pass along with...
23346 (pass_data_cse_reciprocals): ...new pass_data instance and...
23347 (make_pass_cse_reciprocals): ...new function.
23348 (pass_cse_sincos): Convert from a global struct to a subclass of
23349 gimple_opt_pass along with...
23350 (pass_data_cse_sincos): ...new pass_data instance and...
23351 (make_pass_cse_sincos): ...new function.
23352 (pass_optimize_bswap): Convert from a global struct to a subclass of
23353 gimple_opt_pass along with...
23354 (pass_data_optimize_bswap): ...new pass_data instance and...
23355 (make_pass_optimize_bswap): ...new function.
23356 (pass_optimize_widening_mul): Convert from a global struct to a
23357 subclass of gimple_opt_pass along with...
23358 (pass_data_optimize_widening_mul): ...new pass_data instance and...
23359 (make_pass_optimize_widening_mul): ...new function.
23360 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23361 subclass of gimple_opt_pass along with...
23362 (pass_data_phiopt): ...new pass_data instance and...
23363 (make_pass_phiopt): ...new function.
23364 (pass_cselim): Convert from a global struct to a subclass of
23365 gimple_opt_pass along with...
23366 (pass_data_cselim): ...new pass_data instance and...
23367 (make_pass_cselim): ...new function.
23368 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23369 subclass of gimple_opt_pass along with...
23370 (pass_data_phiprop): ...new pass_data instance and...
23371 (make_pass_phiprop): ...new function.
23372 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23373 subclass of gimple_opt_pass along with...
23374 (pass_data_pre): ...new pass_data instance and...
23375 (make_pass_pre): ...new function.
23376 (pass_fre): Convert from a global struct to a subclass of
23377 gimple_opt_pass along with...
23378 (pass_data_fre): ...new pass_data instance and...
23379 (make_pass_fre): ...new function.
23380 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23381 subclass of gimple_opt_pass along with...
23382 (pass_data_reassoc): ...new pass_data instance and...
23383 (make_pass_reassoc): ...new function.
23384 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23385 subclass of gimple_opt_pass along with...
23386 (pass_data_sink_code): ...new pass_data instance and...
23387 (make_pass_sink_code): ...new function.
23388 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23389 subclass of gimple_opt_pass along with...
23390 (pass_data_strlen): ...new pass_data instance and...
23391 (make_pass_strlen): ...new function.
23392 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23393 struct to a subclass of gimple_opt_pass along with...
23394 (pass_data_build_alias): ...new pass_data instance and...
23395 (make_pass_build_alias): ...new function.
23396 (pass_build_ealias): Convert from a global struct to a subclass of
23397 gimple_opt_pass along with...
23398 (pass_data_build_ealias): ...new pass_data instance and...
23399 (make_pass_build_ealias): ...new function.
23400 (pass_ipa_pta): Convert from a global struct to a subclass of
23401 simple_ipa_opt_pass along with...
23402 (pass_data_ipa_pta): ...new pass_data instance and...
23403 (make_pass_ipa_pta): ...new function.
23404 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23405 subclass of gimple_opt_pass along with...
23406 (pass_data_uncprop): ...new pass_data instance and...
23407 (make_pass_uncprop): ...new function.
23408 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23409 global struct to a subclass of gimple_opt_pass along with...
23410 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23411 (make_pass_late_warn_uninitialized): ...new function.
23412 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23413 to a subclass of gimple_opt_pass along with...
23414 (pass_data_init_datastructures): ...new pass_data instance and...
23415 (make_pass_init_datastructures): ...new function.
23416 (pass_early_warn_uninitialized): Convert from a global struct to a
23417 subclass of gimple_opt_pass along with...
23418 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23419 (make_pass_early_warn_uninitialized): ...new function.
23420 (pass_update_address_taken): Convert from a global struct to a
23421 subclass of gimple_opt_pass along with...
23422 (pass_data_update_address_taken): ...new pass_data instance and...
23423 (make_pass_update_address_taken): ...new function.
23424 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23425 struct to a subclass of gimple_opt_pass along with...
23426 (pass_data_release_ssa_names): ...new pass_data instance and...
23427 (make_pass_release_ssa_names): ...new function.
23428 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23429 subclass of gimple_opt_pass along with...
23430 (pass_data_stdarg): ...new pass_data instance and...
23431 (make_pass_stdarg): ...new function.
23432 * tree-switch-conversion.c (pass_convert_switch): Convert from a
23433 global struct to a subclass of gimple_opt_pass along with...
23434 (pass_data_convert_switch): ...new pass_data instance and...
23435 (make_pass_convert_switch): ...new function.
23436 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23437 to a subclass of gimple_opt_pass along with...
23438 (pass_data_tail_recursion): ...new pass_data instance and...
23439 (make_pass_tail_recursion): ...new function.
23440 (pass_tail_calls): Convert from a global struct to a subclass of
23441 gimple_opt_pass along with...
23442 (pass_data_tail_calls): ...new pass_data instance and...
23443 (make_pass_tail_calls): ...new function.
23444 * tree-vect-generic.c (pass_lower_vector): Convert from a global
23445 struct to a subclass of gimple_opt_pass along with...
23446 (pass_data_lower_vector): ...new pass_data instance and...
23447 (make_pass_lower_vector): ...new function.
23448 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23449 gimple_opt_pass along with...
23450 (pass_data_lower_vector_ssa): ...new pass_data instance and...
23451 (make_pass_lower_vector_ssa): ...new function.
23452 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23453 to a subclass of gimple_opt_pass along with...
23454 (pass_data_slp_vectorize): ...new pass_data instance and...
23455 (make_pass_slp_vectorize): ...new function.
23456 (pass_ipa_increase_alignment): Convert from a global struct to a
23457 subclass of simple_ipa_opt_pass along with...
23458 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23459 (make_pass_ipa_increase_alignment): ...new function.
23460 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23461 gimple_opt_pass along with...
23462 (pass_data_vrp): ...new pass_data instance and...
23463 (make_pass_vrp): ...new function.
23464 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23465 subclass of simple_ipa_opt_pass along with...
23466 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23467 (make_pass_ipa_free_lang_data): ...new function.
23468 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23469 gimple_opt_pass along with...
23470 (pass_data_tsan): ...new pass_data instance and...
23471 (make_pass_tsan): ...new function.
23472 (pass_tsan_O0): Convert from a global struct to a subclass of
23473 gimple_opt_pass along with...
23474 (pass_data_tsan_O0): ...new pass_data instance and...
23475 (make_pass_tsan_O0): ...new function.
23476 * var-tracking.c (pass_variable_tracking): Convert from a global
23477 struct to a subclass of rtl_opt_pass along with...
23478 (pass_data_variable_tracking): ...new pass_data instance and...
23479 (make_pass_variable_tracking): ...new function.
23480 * web.c (pass_web): Convert from a global struct to a subclass of
23481 rtl_opt_pass along with...
23482 (pass_data_web): ...new pass_data instance and...
23483 (make_pass_web): ...new function.
23484 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23485 declaration with that of...
23486 (make_pass_mode_switch_use): ...new function.
23487 (pass_resolve_sw_modes): Replace declaration with that of...
23488 (make_pass_resolve_sw_modes): ...new function.
23489 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23490 from a global struct to a subclass of rtl_opt_pass along with...
23491 (pass_data_mode_switch_use): ...new pass_data instance and...
23492 (make_pass_mode_switch_use): ...new function.
23493 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23494 from a global struct to a subclass of rtl_opt_pass along with...
23495 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23496 (make_pass_resolve_sw_modes): ...new function.
23497 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23498 struct to a subclass of rtl_opt_pass along with...
23499 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23500 (make_pass_insert_vzeroupper): ...new function.
23501 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23502 global struct to a subclass of rtl_opt_pass along with...
23503 (pass_data_work_around_errata): ...new pass_data instance and...
23504 (make_pass_work_around_errata): ...new function.
23505 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23506 struct to a subclass of rtl_opt_pass along with...
23507 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23508 (make_pass_mips_machine_reorg2): ...new function.
23509
23510 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23511
23512 * passes.c (pass_manager::operator new): New.
23513
23514 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23515
23516 Handwritten part of conversion of passes to C++ classes.
23517
23518 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23519 (toplev.o): Add dep on PASS_MANAGER_H.
23520 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23521 of early local pases to reflect this moving from a global to a
23522 member of gcc::pass_manager.
23523 (cgraph_add_new_function): Likewise.
23524 * lto-cgraph.c (lto_output_node): Update for conversion of
23525 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23526 * passes.c (opt_pass::clone): New.
23527 (opt_pass::gate): New.
23528 (opt_pass::execute): New.
23529 (opt_pass::opt_pass): New.
23530 (pass_manager::execute_early_local_passes): New.
23531 (pass_manager::execute_pass_mode_switching): new.
23532 (finish_optimization_passes): Convert to...
23533 (pass_manager::finish_optimization_passes): ...this.
23534 (finish_optimization_passes): Update for conversion of passes to
23535 C++ classes.
23536 (register_dump_files_1): Use has_gate since we cannot portably
23537 check a vtable entry against NULL.
23538 (dump_one_pass): Likewise.
23539 (ipa_write_summaries_2): Likewise.
23540 (ipa_write_optimization_summaries_1): Likewise.
23541 (ipa_read_summaries_1): Likewise.
23542 (ipa_read_optimization_summaries_1): Likewise.
23543 (execute_ipa_stmt_fixups): Likewise.
23544 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23545 pass-creation functions rather than wiring up globals, and
23546 storing the results in fields of pass_manager generated using
23547 pass-instances.def.
23548 (pass_manager::dump_profile_report): Update for conversion of
23549 passes to C++ classes.
23550 (pass_manager::execute_ipa_summary_passes): Likewise.
23551 (execute_one_ipa_transform_pass): Likewise.
23552 (execute_one_pass): Use has_gate and has_execute since we cannot
23553 portably check a vtable entry against NULL.
23554 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23555 (pass_manager): Use pass-instances.def to add fields for the
23556 various pass instances.
23557 * toplev.c (finalize): Update for move of
23558 finish_optimization_passes to a method of gcc::pass_manager.
23559 * toplev.h (finish_optimization_passes): Move to method of class
23560 pass_manager.
23561 * tree-pass.h (struct pass_data): New.
23562 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23563 (opt_pass::gate): Convert to virtual function.
23564 (opt_pass::~opt_pass): New.
23565 (opt_pass::clone): New.
23566 (opt_pass::execute): Convert to virtual function.
23567 (opt_pass::opt_pass): New.
23568 (opt_pass::ctxt_): new.
23569 (gimple_opt_pass): Convert to subclass of opt_pass.
23570 (gimple_opt_pass::gimple_opt_pass): New.
23571 (rtl_opt_pass): Convert to subclass of opt_pass.
23572 (rtl_opt_pass::rtl_opt_pass): New.
23573 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23574 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23575 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23576 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23577 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23578 invocation of pass_mode_switching to reflect this moving from a
23579 global to a member of gcc::pass_manager.
23580 (ix86_option_override): Rework how pass_insert_vzeroupper is
23581 added to the pass_manager to reflect autogenerated changes.
23582 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23583
23584 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23585
23586 PR rtl-optimization/57708
23587 * recog.c (peep2_find_free_register): Validate all regs in a
23588 multi-reg mode.
23589
23590 2013-08-05 Jan Hubicka <jh@suse.cz>
23591
23592 PR lto/57602
23593 * cgraph.c (verify_cgraph_node): Accept local flags from other
23594 partitions.
23595 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23596 (function_and_variable_visibility): Likewise.
23597 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23598
23599 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23600
23601 * graph.c (init_graph_slim_pretty_print): Remove.
23602 (print_graph_cfg): Do not call it. Use local pretty printer.
23603 (start_graph_dump): Likewise.
23604
23605 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23606
23607 * gimple-pretty-print.c (buffer): Remove.
23608 (initialized): Likewise.
23609 (maybe_init_pretty_print): Likewise.
23610 (print_gimple_stmt): Do not call it. Use non-static local
23611 pretty_printer variable.
23612 (print_gimple_expr): Likewise.
23613 (print_gimple_seq): Likewise.
23614 (gimple_dump_bb): Likewise.
23615
23616 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23617
23618 * asan.c (asan_pp): Remove.
23619 (asan_pp_initialized): Likewise.
23620 (asan_pp_initialize): Likewise.
23621 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23622 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23623 (asan_add_global): Likewise.
23624
23625 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23626
23627 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23628 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23629 * pretty-print.c (pp_formatted_text_data): Likewise.
23630 (pp_indent): Rename from pp_base_indent.
23631 (pp_format): Rename from pp_base_format.
23632 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23633 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23634 (pp_flush): Rename from pp_base_flush.
23635 (pp_set_line_maximum_length): Rename from
23636 pp_base_set_line_maximum_length.
23637 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23638 (pp_set_prefix): Rename from pp_base_set_prefix.
23639 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23640 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23641 (pp_append_text): Rename from pp_base_append_text.
23642 (pp_formatted_text): Rename from pp_base_formatted_text.
23643 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23644 (pp_remaining_character_count_for_line): Rename from
23645 pp_base_remaining_character_count_for_line.
23646 (pp_newline): Rename from pp_base_newline.
23647 (pp_character): Rename from pp_base_character.
23648 (pp_string): Rename from pp_base_string.
23649 (pp_maybe_space): Rename from pp_base_maybe_space.
23650 * asan.c (asan_pp_string): Adjust.
23651 (asan_emit_stack_protection): Likewise.
23652 (asan_add_global): Likewise.
23653 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23654 * tree-mudflap.c (mf_varname_tree): Likewise.
23655 * tree-pretty-print.c (pp_tree_identifier): Rename from
23656 pp_base_tree_identifier.
23657 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23658 Declare as function.
23659
23660 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23661
23662 * pretty-print.h (pp_bar_bar): New.
23663 (pp_ampersand_ampersand): Likewise.
23664 (pp_less_equal): Likewise.
23665 (pp_greater_equal): Likewise.
23666 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23667 printer functions instead of pp_string or operators and punctuators.
23668 (dump_gimple_call): Likewise.
23669 (dump_gimple_omp_for): Likewise.
23670 (dump_gimple_transaction): Likewise.
23671 (dump_gimple_phi): Likewise.
23672 (pp_gimple_stmt_1): Likewise.
23673 * sched-vis.c (print_insn): Likewise.
23674 * tree-mudflap.c (mf_varname_tree): Likewise.
23675 * tree-pretty-print.c (dump_block_node): Likewise.
23676 (dump_generic_node): Likewise.
23677
23678 2013-08-02 Jan Hubicka <jh@suse.cz>
23679
23680 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23681 boundaries.
23682 * lto-streamer-out.c (tree_is_indexable): Results decls and
23683 parm decls are not indexable.
23684 (DFS_write_tree_body): Do not follow args and results.
23685 (hash_tree): Likewise.
23686 (output_functions): Rearrange so struct function is needed
23687 only when real body is output; be able to also ouptut abstract
23688 functions; output DECL_ARGUMENTS and DECL_RESULT.
23689 (lto_output): When not in WPA, ale store abstract functions.
23690 (write_symbol): Do not care about RESULT_DECL.
23691 (output_symbol_p): Handle correctly sbtract decls.
23692 * lto-streamer-in.c (input_function): Rearrange so struct
23693 function can be NULL at entry; allow streaming of
23694 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23695 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23696 sanity check during LTO.
23697 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23698 RESULT_DECl and DECL_ARGUMENTS.
23699 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23700 Likewise.
23701
23702 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23703
23704 * pretty-print.h (pp_underscore): New.
23705 (pp_comma): Tidy.
23706 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23707 printer functions instead of pp_character.
23708 (dump_binary_rhs): Likewise.
23709 (dump_ternary_rhs): Likewise.
23710 (dump_gimple_call_args): Likewise.
23711 (pp_points_to_solution): Likewise.
23712 (dump_gimple_call): Likewise.
23713 (dump_gimple_switch): Likewise.
23714 (dump_gimple_cond): Likewise.
23715 (dump_gimple_bind): Likewise.
23716 (dump_gimple_try): Likewise.
23717 (dump_gimple_omp_for): Likewise.
23718 (dump_gimple_omp_continue): Likewise.
23719 (dump_gimple_omp_single): Likewise.
23720 (dump_gimple_omp_sections): Likewise.
23721 (dump_gimple_omp_block): Likewise.
23722 (dump_gimple_omp_critical): Likewise.
23723 (dump_gimple_transaction): Likewise.
23724 (dump_gimple_asm): Likewise.
23725 (dump_gimple_phi): Likewise.
23726 (dump_gimple_omp_parallel): Likewise.
23727 (dump_gimple_omp_task): Likewise.
23728 (dump_gimple_omp_atomic_load): Likewise.
23729 (dump_gimple_omp_atomic_store): Likewise.
23730 (dump_gimple_mem_ops): Likewise.
23731 (pp_gimple_stmt_1): Likewise.
23732 (pp_cfg_jump): Likewise.
23733 (dump_implicit_edges): Likewise.
23734 (gimple_dump_bb_for_graph): Likewise.
23735 * graph.c (draw_cfg_node): Likewise.
23736 * langhooks.c (lhd_print_error_function): Likewise.
23737 * sched-vis.c (print_exp): Likewise.
23738 (print_value): Likewise.
23739 (print_pattern): Likewise.
23740 (print_insn): Likewise.
23741 (rtl_dump_bb_for_graph): Likewise.
23742 * tree-pretty-print.c (dump_function_declaration): Likewise.
23743 (dump_array_domain): Likewise.
23744 (dump_omp_clause): Likewise.
23745 (dump_location): Likewise.
23746 (dump_generic_node): Likewise.
23747 (print_struct_decl): Likewise.
23748 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23749
23750 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23751
23752 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23753 candidate table when replacing a candidate statement.
23754 (replace_rhs_if_not_dup): Likewise.
23755 (replace_one_candidate): Likewise.
23756
23757 2013-08-02 Jan Hubicka <jh@suse.cz>
23758 Martin Liska <marxin.liska@gmail.com>
23759
23760 * cgraphunit.c (add_new_function): Fix logic when adding from
23761 late IPA pass.
23762 (assemble_thunk): Rename to ...
23763 (expand_thunk); .. this one; export; get it working with
23764 general functions; make produced gimple valid.
23765 * cgraph.h (expand_thunk): Declare.
23766
23767 2013-08-02 Jan Hubicka <jh@suse.cz>
23768
23769 * ipa-cp.c (gather_context_independent_values): Use
23770 ipa_get_param_move_cost.
23771 (get_replacement_map): Remove PARAM; move parameter folding
23772 into tree-inline.c
23773 (create_specialized_node): Update.
23774 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23775 assert that we have gimple body; update move_cost.
23776 (count_formal_params): Assert that we have gimple body.
23777 (ipa_dump_param): New function.
23778 (ipa_alloc_node_params): Break out from ...
23779 (ipa_initialize_node_params): ... here.
23780 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23781 (ipa_write_node_info): Stream move costs.
23782 (ipa_read_node_info): Read move costs.
23783 (ipa_update_after_lto_read): Do not recompute node params.
23784 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23785 (ipa_get_param): Check we are not in WPA.
23786 (ipa_get_param_move_cost): New.
23787 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23788 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23789 parm numbers to be present.
23790
23791 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23792
23793 PR rtl-optimization/58048
23794 * lra-constraints.c (process_alt_operands): Don't check asm
23795 operand on register.
23796
23797 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23798
23799 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23800 the implied StoreLoad barrier for atomic operations if before.
23801
23802 2013-08-02 Jan Hubicka <jh@suse.cz>
23803 Martin Liska <marxin.liska@gmail.com>
23804
23805 * cgraph.c (cgraph_function_body_availability): Do not check
23806 cgraph flags.
23807 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23808 symtab_node_availability): Declare.
23809 * ipa.c (can_replace_by_local_alias): New.
23810 (function_and_variable_visibility): Use it.
23811 * symtab.c (symtab_for_node_and_aliases,
23812 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23813
23814 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23815
23816 PR rtl-optimization/57963
23817 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23818 (lra_constraints): Use them.
23819
23820 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23821
23822 * config/arm/types.md (define_attr "type"): Add "load_acq"
23823 and "store_rel".
23824 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23825 changes.
23826 (cortex_a53_store1): Likewise.
23827
23828 2013-08-01 Jan Hubicka <jh@suse.cz>
23829
23830 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23831 partitions are not needed.
23832
23833 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23834
23835 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23836 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23837 MAYBE_NON_Q_CLASS_P where appropriate.
23838
23839 2013-08-01 Jan Hubicka <jh@suse.cz>
23840
23841 * cgraph.h (release_function_body): Declare.
23842 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23843 of unused delcarations.
23844
23845 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23846
23847 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23848 RTL form when subtracting a constant.
23849
23850 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23851
23852 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23853 Generate canonical plus rtx with negated immediate instead of minus
23854 where appropriate.
23855 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23856
23857 2013-08-01 Jan Hubicka <jh@suse.cz>
23858
23859 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23860 (cgraph_release_function_body): Likewise.
23861 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23862 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23863 to used_as_abstract_origin.
23864 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23865 symbols used as abstract origins.
23866 * cgraphunit.c (analyze_functions): Update.
23867 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23868 used_as_abstract_origin.
23869 * tree-inline.c (tree_function_versioning): Update
23870 used_as_abstract_origin; be ready for DECL_RESULT and
23871 DECL_ARGUMENTS to be NULL.
23872
23873 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23874 for abstract functions.
23875 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23876 real symbols.
23877
23878 2013-08-01 Jan Hubicka <jh@suse.cz>
23879
23880 * profile.c (compute_value_histograms): Fix thinko.
23881
23882 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23883
23884 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23885 aarch-common-protos.h to extra_headers.
23886 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23887 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23888 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23889
23890 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23891
23892 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23893 Include "../arm/types.md". Define "type" attribute for all patterns.
23894 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23895 attribute changes.
23896
23897 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23898
23899 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23900 to support power8 load fusion.
23901 (fusion_gpr_mem_load): Likewise.
23902
23903 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23904
23905 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23906 declarations for power8 load fusion.
23907 (emit_fusion_gpr_load): Likewise.
23908
23909 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23910 tuning for power8, turn on fusion mode by default. Turn on sign
23911 extending fusion mode if normal fusion mode is on, and we are at
23912 -O2 or -O3.
23913 (fusion_gpr_load_p): New function, return true if we can fuse an
23914 addis instruction with a dependent load to a GPR.
23915 (emit_fusion_gpr_load): Emit the instructions for power8 load
23916 fusion to GPRs.
23917
23918 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23919 (VSX load fusion peepholes): New peepholes to fuse together an
23920 addi instruction with a VSX load instruction.
23921
23922 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23923 peepholes to fuse an addis instruction with a load to a GPR base
23924 register. If we are supporting sign extending fusions, convert
23925 sign extending loads to zero extending loads and add an explicit
23926 sign extension.
23927
23928 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23929
23930 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23931 aarch-common-protos.h to extra_headers.
23932 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23933 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23934 (arm_early_store_addr_dep): Likewise.
23935 (arm_no_early_alu_shift_dep): Likewise.
23936 (arm_no_early_alu_shift_value_dep): Likewise.
23937 (arm_no_early_mul_dep): Likewise.
23938 (arm_no_early_store_addr_dep): Likewise.
23939 (arm_mac_accumulator_is_mul_result): Likewise.
23940 (arm_mac_accumulator_is_result): Likewise.
23941 * config/arm/aarch-common.c: ... here. New file.
23942 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23943 here to ...
23944 (arm_early_store_addr_dep): Likewise.
23945 (arm_no_early_alu_shift_dep): Likewise.
23946 (arm_no_early_alu_shift_value_dep): Likewise.
23947 (arm_no_early_mul_dep): Likewise.
23948 (arm_no_early_store_addr_dep): Likewise.
23949 (arm_mac_accumulator_is_mul_result): Likewise.
23950 (arm_mac_accumulator_is_result): Likewise.
23951 * config/arm/aarch-common-protos.h: ... here. New file.
23952 * config/arm/t-arm (aarch-common.o): Define.
23953
23954 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23955
23956 * config/arm/arm.md: Include new file "types.md".
23957 (define_attr "type"): Move from here to ...
23958 (define_attr "mul32"): Likewise.
23959 (define_attr "mul64"): Likewise.
23960 * config/arm/types.md: ... here. New file.
23961
23962 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23963
23964 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23965 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23966
23967 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23968
23969 * gen-pass-instances.awk: Fix offset of substr().
23970
23971 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23972
23973 * Makefile.in (pass-instances.def): New.
23974 (passes.o): Replace dependency on passes.def with one on
23975 pass-instances.def
23976
23977 * gen-pass-instances.awk: New.
23978
23979 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23980 rather than passes.def, updating local definition of NEXT_PASS
23981 macro to add an extra NUM parameter (currently unused).
23982
23983 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23984
23985 * Makefile.in (PASS_MANAGER_H): New.
23986 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23987 (passes.o): Likewise.
23988 (statistics.o): Likewise.
23989 (cgraphunit.o): Likewise.
23990 (context.o): Depend on PASS_MANAGER_H.
23991
23992 * pass_manager.h: New.
23993
23994 * cgraphunit.c (cgraph_add_new_function): Update for moves
23995 of globals to fields of pass_manager.
23996 (analyze_function): Likewise.
23997 (expand_function): Likewise.
23998 (ipa_passes): Likewise.
23999 (compile): Likewise.
24000
24001 * context.c (context::context): New.
24002 * context.h (context::context): New.
24003 (context::get_passes): New.
24004 (context::passes_): New.
24005
24006 * lto-cgraph.c (input_node): Update for moves of globals to
24007 fields of pass_manager.
24008
24009 * passes.c (all_passes): Remove, in favor of a field of the
24010 same name within the new class pass_manager.
24011 (all_small_ipa_passes): Likewise.
24012 (all_lowering_passes): Likewise.
24013 (all_regular_ipa_passes): Likewise.
24014 (all_late_ipa_passes): Likewise.
24015 (all_lto_gen_passes): Likewise.
24016 (passes_by_id): Likewise.
24017 (passes_by_id_size): Likewise.
24018 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24019 the new class pass_manager.
24020 (set_pass_for_id): Convert to...
24021 (pass_manager::set_pass_for_id): ...method.
24022 (get_pass_for_id): Convert to...
24023 (pass_manager::get_pass_for_id): ...method.
24024 (register_one_dump_file): Move body of implementation into...
24025 (pass_manager::register_one_dump_file): ...here.
24026 (register_dump_files_1): Convert to...
24027 (pass_manager::register_dump_files_1): ...method.
24028 (register_dump_files): Convert to...
24029 (pass_manager::register_dump_files): ...method.
24030 (create_pass_tab): Update for moves of globals to fields of
24031 pass_manager.
24032 (dump_passes): Move body of implementation into...
24033 (pass_manager::dump_passes): ...here.
24034 (register_pass): Move body of implementation into...
24035 (pass_manager::register_pass): ...here.
24036 (init_optimization_passes): Convert into...
24037 (pass_manager::pass_manager): ...constructor for new
24038 pass_manager class, and initialize the pass_lists array.
24039 (check_profile_consistency): Update for moves of globals to
24040 fields of pass_manager.
24041 (dump_profile_report): Move body of implementation into...
24042 (pass_manager::dump_profile_report): ...here.
24043 (ipa_write_summaries_1): Update for moves of pass lists from
24044 being globals to fields of pass_manager.
24045 (ipa_write_optimization_summaries): Likewise.
24046 (ipa_read_summaries): Likewise.
24047 (ipa_read_optimization_summaries): Likewise.
24048 (execute_all_ipa_stmt_fixups): Likewise.
24049
24050 * statistics.c (statistics_fini): Update for moves of globals to
24051 fields of pass_manager.
24052
24053 * toplev.c (general_init): Replace call to
24054 init_optimization_passes with construction of the pass_manager
24055 instance.
24056
24057 * tree-pass.h (all_passes): Remove, in favor of a field of the
24058 same name within the new class pass_manager.
24059 (all_small_ipa_passes): Likewise.
24060 (all_lowering_passes): Likewise.
24061 (all_regular_ipa_passes): Likewise.
24062 (all_lto_gen_passes): Likewise.
24063 (all_late_ipa_passes): Likewise.
24064 (passes_by_id): Likewise.
24065 (passes_by_id_size): Likewise.
24066 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24067 the new class pass_manager.
24068 (get_pass_for_id): Remove.
24069
24070 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24071
24072 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24073 configs.
24074
24075 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24076
24077 * arm.md (mulhi3): New expand pattern.
24078
24079 2013-07-30 Jan Hubicka <jh@suse.cz>
24080 Martin Liska <marxin.liska@gmail.com>
24081
24082 * profile.c (compute_value_histograms): Do not ICE when
24083 there is mismatch only on some counters.
24084
24085 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24086
24087 PR rtl-optimization/57637
24088 * function.c (move_insn_for_shrink_wrap): Also check the
24089 GEN set of the LIVE problem for the liveness analysis
24090 if it exists, otherwise give up.
24091
24092 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24093
24094 PR tree-optimization/57993
24095 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24096 replaced statement in the candidate table.
24097 (phi_add_costs): Return infinite cost when the hidden basis does
24098 not dominate all phis on which the candidate is dependent.
24099 (replace_one_candidate): Record replaced statement in the
24100 candidate table.
24101
24102 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
24103
24104 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24105 (ashlv2si3): New expander.
24106 (*ashlv2si3_i): New define_insn_and_split.
24107 * predicates.md (float_operation): Allow patterns with three
24108 basic sub-patterns.
24109
24110 PR rtl-optimization/58021
24111 * mode-switching.c (create_pre_exit): Always split off preceding
24112 insns if we are not at the basic block head.
24113
24114 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
24115
24116 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24117 (UCLIBC_DYNAMIC_LINKER): New macro.
24118 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24119 `-mnan=2008'.
24120 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24121 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
24122 `-mnan=2008'.
24123 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24124 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24125 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24126 for SF and DF modes. Use ieee_quad_format for TF mode.
24127 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24128 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24129 (mips_option_override): Handle `-mnan=legacy'.
24130 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24131 `-mabs=2008' and `-mnan=2008'.
24132 (OPTION_DEFAULT_SPECS): Add "nan" default.
24133 (ASM_SPEC): Handle `-mnan='.
24134 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24135 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24136 comment accordingly.
24137 (neg<mode>2): Likewise.
24138 * config/mips/mips.opt (mabs, mnan): New options.
24139 * doc/install.texi (Configuration): Document `--with-nan=' option.
24140 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24141 `-mnan=' options.
24142 (MIPS Options): Document them.
24143 * config.gcc <mips*-*-*>: Handle `--with-nan='.
24144 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24145 * configure: Regenerate.
24146 * config.in: Regenerate.
24147
24148 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24149
24150 * config/i386/i386.md (float post-reload splitters): Do not check
24151 for subregs of SSE registers.
24152
24153 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24154 H.J. Lu <hongjiu.lu@intel.com>
24155
24156 PR target/57954
24157 PR target/57988
24158 * config/i386/i386.md (post-reload splitter
24159 to avoid partial SSE reg dependency stalls): New pattern.
24160
24161 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24162
24163 * config/s390/s390.md ("movcc"): Swap load and store instructions.
24164
24165 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
24166
24167 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24168 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24169
24170 2013-07-26 Cary Coutant <ccoutant@google.com>
24171
24172 * dwarf2out.c (die_checksum_ordered): Don't include template
24173 instantiations in signature.
24174 (is_template_parameter): New function.
24175 (is_template_instantiation): New function.
24176 (generate_skeleton_bottom_up): Don't include template instantiations
24177 in type unit DIE.
24178 (generate_skeleton): Likewise.
24179 (break_out_comdat_types): Move recursive call to break out nested
24180 types earlier.
24181 (prune_unused_types_mark_generic_parms_dies): Call
24182 is_template_parameter.
24183
24184 2013-07-26 Ian Bolton <ian.bolton@arm.com>
24185
24186 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24187 uses vector registers.
24188 * config/aarch64/iterators.md: Add attributes rtn and vas.
24189
24190 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24191 Richard Earnshaw <richard.earnshaw@arm.com>
24192
24193 * combine.c (simplify_comparison): Re-canonicalize operands
24194 where appropriate.
24195 * config/arm/arm.md (movcond_addsi): New splitter.
24196
24197 2013-07-25 Sterling Augustine <saugustine@google.com>
24198
24199 * dwarf2out.c (size_of_pubnames): Move code to...
24200 (include_pubname_in_output): ...here. New.
24201 (want_pubnames): Rearrange.
24202 (output_pubnames): Call include_pubname_in_output. Move assertion.
24203
24204 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24205
24206 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24207
24208 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24209
24210 PR target/38836
24211 * doc/extend.texi: Remove obsolete builtins. Fix
24212 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24213
24214 2013-07-25 Jan Hubicka <jh@suse.cz>
24215
24216 * cgraph.c (release_function_body): Break out from ...
24217 (cgraph_release_function_body): ... this one; also release DECL_RESULT
24218 and DECL_ARGUMENTS.
24219 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24220 old_tree in the map.
24221 (create_specialized_node): Update.
24222 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24223 into index.
24224 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24225 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24226 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24227 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24228 DECL_RESULT.
24229
24230 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24231
24232 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24233 addsi3_carryin_alt2_<optab>): Correct output template.
24234
24235 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24236
24237 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24238 Adjust for arm_restrict_it.
24239 Remove trailing whitespace.
24240
24241 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
24242
24243 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24244 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24245
24246 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24247
24248 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
24249
24250 PR rtl-optimization/57960
24251 * lra-constraints.c (process_alt_operands): Use the right mode
24252 when checking strict_low.
24253
24254 2013-07-25 Jan Hubicka <jh@suse.cz>
24255
24256 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24257 * cgraph.c (cgraph_remove_node): Do not release function body
24258 when in cgraph streaming.
24259 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24260 in other partitions are not considered reachable; fix handling of
24261 clones.
24262
24263 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24264
24265 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24266
24267 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24268
24269 PR target/19599
24270 PR target/57731
24271 PR target/57837
24272 * config/arm/arm.md ("*sibcall_insn): Replace use of
24273 Ss with US. Adjust output for v5 and v4t.
24274 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24275
24276 * config/arm/constraints.md ("Ss"): Rename to US.
24277
24278 2013-07-25 Terry Guo <terry.guo@arm.com>
24279
24280 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24281 shift_add/shift_sub0/shift_sub1 RTXs.
24282
24283 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
24284 Anton Blanchard <anton@au1.ibm.com>
24285
24286 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24287 (altivec_vpks<VI_char>ss): Likewise.
24288 (altivec_vpks<VI_char>us): Likewise.
24289 (altivec_vpku<VI_char>us): Likewise.
24290 (altivec_vpku<VI_char>um): Likewise.
24291
24292 2013-07-24 David Malcolm <dmalcolm@redhat.com>
24293
24294 Introduce context class.
24295
24296 * Makefile.in (CONTEXT_H): New.
24297 (OBJS): Add context.o.
24298 (toplev.o): Add CONTEXT_H to dependencies.
24299 (context.o): New.
24300
24301 * toplev.c (general_init): Create the singleton gcc::context instance.
24302
24303 * context.c: New.
24304
24305 * context.h: New.
24306
24307 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
24308
24309 PR rtl-optimization/57968
24310 * mode-switching.c (create_pre_exit): Allow instructions that
24311 don't set a return register to need a non-exit mode.
24312
24313 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24314 Anton Blanchard <anton@au1.ibm.com>
24315
24316 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24317 operands to vperm for little endian.
24318 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24319 of lvsl to create the control mask for a vperm for little endian.
24320
24321 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24322 Anton Blanchard <anton@au1.ibm.com>
24323
24324 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24325 two operands for little-endian.
24326
24327 2013-07-23 Steve Ellcey <sellcey@mips.com>
24328
24329 * config/mips/mips.c (mips_case_values_threshold): New.
24330 (TARGET_CASE_VALUES_THRESHOLD): Define.
24331
24332 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24333 Anton Blanchard <anton@au1.ibm.com>
24334
24335 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24336 selection of field for vector splat in little endian mode.
24337
24338 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24339
24340 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24341 expanders to rs6000.md.
24342 (ior<mode>3): Likewise.
24343 (and<mode>3): Likewise.
24344 (one_cmpl<mode>2): Likewise.
24345 (nor<mode>3): Likewise.
24346 (andc<mode>3): Likewise.
24347 (eqv<mode>3): Likewise.
24348 (nand<mode>3): Likewise.
24349 (orc<mode>3): Likewise.
24350
24351 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24352 declaration.
24353
24354 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24355 to split multi-word logical operations.
24356 (rs6000_split_logical_di): Likewise.
24357 (rs6000_split_logical): Likewise.
24358
24359 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24360 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24361 and allow TImode operations in 32-bit.
24362 (vsx_and<mode>3_64bit): Likewise.
24363 (vsx_ior<mode>3_32bit): Likewise.
24364 (vsx_ior<mode>3_64bit): Likewise.
24365 (vsx_xor<mode>3_32bit): Likewise.
24366 (vsx_xor<mode>3_64bit): Likewise.
24367 (vsx_one_cmpl<mode>2_32bit): Likewise.
24368 (vsx_one_cmpl<mode>2_64bit): Likewise.
24369 (vsx_nor<mode>3_32bit): Likewise.
24370 (vsx_nor<mode>3_64bit): Likewise.
24371 (vsx_andc<mode>3_32bit): Likewise.
24372 (vsx_andc<mode>3_64bit): Likewise.
24373 (vsx_eqv<mode>3_32bit): Likewise.
24374 (vsx_eqv<mode>3_64bit): Likewise.
24375 (vsx_nand<mode>3_32bit): Likewise.
24376 (vsx_nand<mode>3_64bit): Likewise.
24377 (vsx_orc<mode>3_32bit): Likewise.
24378 (vsx_orc<mode>3_64bit): Likewise.
24379
24380 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24381 logical types in GPRs.
24382
24383 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24384 logical insns to rs6000.md, and allow TImode operations in
24385 32-bit.
24386 (altivec_ior<mode>3): Likewise.
24387 (altivec_xor<mode>3): Likewise.
24388 (altivec_one_cmpl<mode>2): Likewise.
24389 (altivec_nor<mode>3): Likewise.
24390 (altivec_andc<mode>3): Likewise.
24391
24392 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24393 attributes for moving the 128-bit logical operations into
24394 rs6000.md.
24395 (BOOL_REGS_OUTPUT): Likewise.
24396 (BOOL_REGS_OP1): Likewise.
24397 (BOOL_REGS_OP2): Likewise.
24398 (BOOL_REGS_UNARY): Likewise.
24399 (BOOL_REGS_AND_CR0): Likewise.
24400 (one_cmpl<mode>2): Add support for DI logical operations on
24401 32-bit, splitting the operations to 32-bit.
24402 (anddi3): Likewise.
24403 (iordi3): Likewise.
24404 (xordi3): Likewise.
24405 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24406 changes to combine the 32/64-bit code, allow logical operations on
24407 TI mode in 32-bit, and to use similar match_operator patterns like
24408 scalar mode uses. Combine the Altivec and VSX code for logical
24409 operations, and move it here.
24410 (ior<mode>3, 128-bit types): Likewise.
24411 (xor<mode>3, 128-bit types): Likewise.
24412 (one_cmpl<mode>3, 128-bit types): Likewise.
24413 (nor<mode>3, 128-bit types): Likewise.
24414 (andc<mode>3, 128-bit types): Likewise.
24415 (eqv<mode>3, 128-bit types): Likewise.
24416 (nand<mode>3, 128-bit types): Likewise.
24417 (orc<mode>3, 128-bit types): Likewise.
24418 (and<mode>3_internal): Likewise.
24419 (bool<mode>3_internal): Likewise.
24420 (boolc<mode>3_internal1): Likewise.
24421 (boolc<mode>3_internal2): Likewise.
24422 (boolcc<mode>3_internal1): Likewise.
24423 (boolcc<mode>3_internal2): Likewise.
24424 (eqv<mode>3_internal1): Likewise.
24425 (eqv<mode>3_internal2): Likewise.
24426 (one_cmpl1<mode>3_internal): Likewise.
24427
24428 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24429
24430 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24431 Rename flag_stack_usage to flag_stack_usage_info.
24432
24433 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24434
24435 * config/microblaze/sync.md: New file.
24436 * config/microblaze/microblaze.md: Include sync.md
24437 * config/microblaze/microblaze.c: Add print_operand 'y'.
24438 * config/microblaze/constraints.md: Add memory_contraint
24439 'Q' which is a single register.
24440
24441 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
24442
24443 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24444
24445 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24446
24447 * reload.c (find_reloads): Exit loop once we find this operand
24448 cannot be reloaded somehow for this alternative.
24449
24450 * reload.c (find_reloads): Exit loop once we find a hard register.
24451
24452 * rtlanal.c (computed_jump_p): Exit loop once we find label
24453 reference is used.
24454
24455 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24456
24457 * cfgloopmanip.c (remove_path): Exit loop after setting
24458 irred_invalidated.
24459
24460 * gensupport.c (subst_dup): Avoid loop if code is not
24461 MATCH_DUP nor MATCH_OP_DUP.
24462
24463 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24464
24465 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24466
24467 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24468
24469 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24470 true for SP_REGNUM if mode == ptr_mode.
24471 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24472 with value R0_REGNUM + 31.
24473
24474 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24475
24476 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24477 pad pointer-typed argument downward.
24478
24479 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24480
24481 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24482 and __ILP32__ when the ILP32 model is in use.
24483
24484 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24485
24486 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24487 (aarch64_load_symref_appropriately): In the case of
24488 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24489 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24490 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24491 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24492 if 'mode' doesn't equal to 'ptr_mode'.
24493 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24494 'vcall_offset'; change to call aarch64_emit_move differently depending
24495 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24496 to calculate the upper bound of 'vcall_offset'.
24497 (aarch64_cannot_force_const_mem): Change to also return true if
24498 mode != ptr_mode.
24499 (aarch64_legitimize_reload_address): In the case of large
24500 displacements, add new local variable 'xmode' and an assertion
24501 based on it; change to use 'xmode' to generate the new rtx and
24502 reload.
24503 (aarch64_asm_trampoline_template): Change to generate the template
24504 differently depending on TARGET_ILP32 or not; change to use
24505 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24506 (aarch64_trampoline_size): Removed.
24507 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24508 and replace immediate literals with it. Change to use 'ptr_mode'
24509 instead of 'DImode' and call convert_memory_address if the mode
24510 of 'fnaddr' doesn't equal to 'ptr_mode'.
24511 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24512 to output symbol.
24513 (aarch64_elf_asm_destructor): Likewise.
24514 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24515 on TARGET_ILP32 instead of aarch64_trampoline_size.
24516 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24517 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24518 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24519 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24520 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24521 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24522 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24523 depending on the value of 'mode'.
24524 (add_losym_<mode>): New.
24525 (ldr_got_small_<mode>): New, based on ldr_got_small.
24526 (ldr_got_small): Remove.
24527 (ldr_got_small_sidi): New.
24528 * config/aarch64/iterators.md (P): New.
24529 (PTR): Change to 'ptr_mode' in the condition.
24530
24531 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24532
24533 * config.gcc (aarch64*-*-*): Support --with-abi.
24534 (aarch64*-*-elf): Support --with-multilib-list.
24535 (aarch64*-*-linux*): Likewise.
24536 (supported_defaults): Add abi to aarch64*-*-*.
24537 * configure.ac: Mention AArch64 for --with-multilib-list.
24538 * configure: Re-generated.
24539 * config/aarch64/biarchilp32.h: New file.
24540 * config/aarch64/biarchlp64.h: New file.
24541 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24542 (ABI_SPEC): Ditto.
24543 (MULTILIB_DEFAULTS): Ditto.
24544 (DRIVER_SELF_SPECS): Ditto.
24545 (ASM_SPEC): Update to also substitute -mabi.
24546 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24547 file whose name depends on -mabi= and -mbig-endian.
24548 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24549 TARGET_ILP32.
24550 (POINTER_SIZE): New define.
24551 (POINTERS_EXTEND_UNSIGNED): Ditto.
24552 (enum aarch64_abi_type): New enumeration tag.
24553 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24554 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24555 (TARGET_ILP32): New define.
24556 * config/aarch64/aarch64.opt (mabi): New.
24557 (aarch64_abi): New.
24558 (ilp32, lp64): New values for -mabi.
24559 * config/aarch64/t-aarch64 (comma): New define.
24560 (MULTILIB_OPTIONS): Ditto.
24561 (MULTILIB_DIRNAMES): Ditto.
24562 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24563 * doc/invoke.texi: Document -mabi for AArch64.
24564
24565 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24566
24567 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24568
24569 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24570 Anton Blanchard <anton@au1.ibm.com>
24571
24572 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24573 endianness when selecting field to splat.
24574
24575 2013-07-22 Eric Christopher <echristo@gmail.com>
24576
24577 * dwarf2out.c (die_odr_checksum): New function to use
24578 CHECKSUM_ macros and ULEB128 for DIE tag.
24579 (generate_type_signature): Use.
24580
24581 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24582
24583 * config.gcc (sparc*-*-*): Accept leon3 processor.
24584 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24585 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24586 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24587 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24588 (mfix-ut699): Adjust comment.
24589 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24590 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24591 (CPP_CPU_SPEC): Likewise.
24592 (ASM_CPU_SPEC): Likewise.
24593 * config/sparc/sparc.c (leon3_cost): New constant.
24594 (sparc_option_override): Add leon3 support.
24595 (mem_ref): New function.
24596 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24597 (sparc_do_work_around_errata): Look into the instruction in the delay
24598 slot and adjust accordingly. Add fix for the data cache nullify issues
24599 of the UT699. Change insertion position for the NOP.
24600 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24601 (leon3_load): New reservation.
24602 (leon_store): Bump latency to 2.
24603 (grfpu): New automaton.
24604 (grfpu_alu): New unit.
24605 (grfpu_ds): Likewise.
24606 (leon_fp_alu): Adjust.
24607 (leon_fp_mult): Delete.
24608 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24609 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24610 * config/sparc/sparc.md (cpu): Add leon3.
24611 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24612 (swapsi): Likewise.
24613 (atomic_test_and_set): Likewise.
24614 (ldstub): Likewise.
24615
24616 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24617
24618 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24619 default for R5900 targets.
24620 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24621 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24622 * config/mips/mips.c (mips_option_override): Report an error for
24623 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24624 for -march=r5900 -mhard-float.
24625
24626 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24627
24628 * df-problems.c (can_move_insns_across): Exit loop once we
24629 find a non-fixed, non-global register.
24630
24631 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24632 setting can_throw.
24633
24634 * omega.c (omega_eliminate_red): Break after setting red_found.
24635 (omega_problem_has_red_equations): Similarly after setting found.
24636 (omega_query_variable): Similarly after setting coupled.
24637
24638 2013-07-22 Marek Polacek <polacek@redhat.com>
24639
24640 * gimplify.c: Don't include gimple.h twice.
24641
24642 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24643
24644 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24645 instead of TARGET_THUMB1.
24646 (Pz): New constraint.
24647 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24648 encodings.
24649 (compare_negsi_si): Likewise.
24650 (compare_addsi2_op0): Likewise.
24651 (compare_addsi2_op1): Likewise.
24652 (addsi3_carryin_<optab>): Likewise.
24653 (addsi3_carryin_alt2_<optab>): Likewise.
24654 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24655 for arm_restrict_it.
24656 (subsi3_carryin): Likewise.
24657 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24658 (minmax_arithsi): Disable for arm_restrict_it.
24659 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24660 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24661 (satsi_<SAT:code>_shift): Likewise.
24662 (arm_shiftsi3): Add alternative for 16-bit encoding.
24663 (arm32_movhf): Disable for arm_restrict_it.
24664 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24665 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24666
24667 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24668
24669 * config/arm/arm.md (attribute "insn"): Delete.
24670 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24671 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24672 (not_shiftsi): Update for attribute change.
24673 (not_shiftsi_compare0): Likewise.
24674 (not_shiftsi_compare0_scratch): Likewise.
24675 (arm_one_cmplsi2): Likewise.
24676 (thumb1_one_cmplsi2): Likewise.
24677 (notsi_compare0): Likewise.
24678 (notsi_compare0_scratch): Likewise.
24679 (thumb1_movdi_insn): Likewise.
24680 (arm_movsi_insn): Likewise.
24681 (movhi_insn_arch4): Likewise.
24682 (movhi_bytes): Likewise.
24683 (arm_movqi_insn): Likewise.
24684 (thumb1_movqi_insn): Likewise.
24685 (arm32_movhf): Likewise.
24686 (thumb1_movhf): Likewise.
24687 (arm_movsf_soft_insn): Likewise.
24688 (thumb1_movsf_insn): Likewise.
24689 (thumb_movdf_insn): Likewise.
24690 (movsicc_insn): Likewise.
24691 (movsfcc_soft_insn): Likewise.
24692 (and_scc): Likewise.
24693 (cond_move): Likewise.
24694 (if_move_not): Likewise.
24695 (if_not_move): Likewise.
24696 (if_shift_move): Likewise.
24697 (if_move_shift): Likewise.
24698 (if_shift_shift): Likewise.
24699 (if_not_arith): Likewise.
24700 (if_arith_not): Likewise.
24701 (cond_move_not): Likewise.
24702 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24703 (neon_mov<mode>): Likewise.
24704 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24705 (thumb2_movsi_vfp): Likewise.
24706 (movsf_vfp): Likewise.
24707 (thumb2_movsf_vfp): Likewise.
24708 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24709 change.
24710 (cortexa7_older_only): Likewise.
24711 (cortexa7_younger): Likewise.
24712 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24713 (1020alu_shift_op): Likewise.
24714 (1020alu_shift_reg_op): Likewise.
24715 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24716 (alu_shift_op): Likewise.
24717 (alu_shift_reg_op): Likewise.
24718 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24719 (11_alu_shift_op): Likewise.
24720 (11_alu_shift_reg_op): Likewise.
24721 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24722 (9_alu_shift_reg_op): Likewise.
24723 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24724 change.
24725 (cortex_a15_alu_shift): Likewise.
24726 (cortex_a15_alu_shift_reg): Likewise.
24727 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24728 (cortex_a5_alu_shift): Likewise.
24729 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24730 change.
24731 (cortex_a53_alu_shift): Likewise.
24732 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24733 change.
24734 (cortex_a7_alu_reg): Likewise.
24735 (cortex_a7_alu_shift): Likewise.
24736 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24737 (cortex_a8_alu_shift): Likewise.
24738 (cortex_a8_alu_shift_reg): Likewise.
24739 (cortex_a8_mov): Likewise.
24740 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24741 (cortex_a9_dp_shift): Likewise.
24742 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24743 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24744 (cortex_r4_mov): Likewise.
24745 (cortex_r4_alu_shift): Likewise.
24746 (cortex_r4_alu_shift_reg): Likewise.
24747 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24748 (526_alu_shift_op): Likewise.
24749 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24750 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24751 (626te_alu_shift_op): Likewise.
24752 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24753 (726te_alu_op): Likewise.
24754 (726te_alu_shift_op): Likewise.
24755 (726te_alu_shift_reg_op): Likewise.
24756 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24757 (mp626_alu_shift_op): Likewise.
24758 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24759 (pj4_alu_e1_conds): Likewise.
24760 (pj4_alu): Likewise.
24761 (pj4_alu_conds): Likewise.
24762 (pj4_shift): Likewise.
24763 (pj4_shift_conds): Likewise.
24764 (pj4_alu_shift): Likewise.
24765 (pj4_alu_shift_conds): Likewise.
24766
24767 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24768
24769 * config/arm/predicates.md (shiftable_operator_strict_it):
24770 New predicate.
24771 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24772 Disable cond_exec version for arm_restrict_it.
24773 (thumb2_smaxsi3): Convert to generate cond_exec.
24774 (thumb2_sminsi3): Likewise.
24775 (thumb32_umaxsi3): Likewise.
24776 (thumb2_uminsi3): Likewise.
24777 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24778 (thumb2_neg_abssi2): Likewise.
24779 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24780 (thumb2_movsicc_insn): Adjust alternatives.
24781 (thumb2_mov_negscc): Disable for arm_restrict_it.
24782 (thumb2_mov_negscc_strict_it): New pattern.
24783 (thumb2_mov_notscc_strict_it): New pattern.
24784 (thumb2_mov_notscc): Disable for arm_restrict_it.
24785 (thumb2_ior_scc): Likewise.
24786 (thumb2_ior_scc_strict_it): New pattern.
24787 (thumb2_cond_move): Adjust for arm_restrict_it.
24788 (thumb2_cond_arith): Disable for arm_restrict_it.
24789 (thumb2_cond_arith_strict_it): New pattern.
24790 (thumb2_cond_sub): Adjust for arm_restrict_it.
24791 (thumb2_movcond): Likewise.
24792 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24793 (thumb2_zero_extendhisi2_v6): Likewise.
24794 (thumb2_zero_extendqisi2_v6): Likewise.
24795 (orsi_notsi_si): Likewise.
24796 (orsi_not_shiftsi_si): Likewise.
24797
24798 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24799
24800 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24801 instruction sequence is 1 byte shorter.
24802
24803 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24804
24805 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24806 it is not needed after split.
24807
24808 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24809
24810 PR target/51784
24811 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24812 second label for nonlocal goto receivers. Don't output pic base labels
24813 unless we're producing PIC; mark that action unreachable().
24814 (ix86_save_reg): If the function contains a nonlocal label, save the
24815 PIC base reg.
24816 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24817 * config/darwin.c (emitted_pic_label_num): New GTY.
24818 (update_pic_label_number_if_needed): New.
24819 (machopic_output_function_base_name): Adjust for nonlocal receiver
24820 case.
24821 (machopic_should_output_picbase_label): New.
24822 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24823 (nonlocal_goto_receiver): New insn and split.
24824
24825 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24826
24827 * config/aarch64/aarch64-builtins.c
24828 (aarch64_fold_builtin): Fold abs in all modes.
24829 * config/aarch64/aarch64-simd-builtins.def
24830 (abs): Enable for all modes.
24831 * config/aarch64/arm_neon.h
24832 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24833 (vabs_f64): Add missing intrinsic.
24834
24835 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24836
24837 * config/aarch64/arm_neon.h (vabs_s64): New function
24838
24839 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24840
24841 PR target/57516
24842 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24843 * config/avr/avr.md (adjust_len): Add `round'.
24844 * config/avr/avr-protos.h (avr_out_round): New prototype.
24845 (avr_out_plus): Add `out_label' argument.
24846 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24847 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24848 Handle the case where `insn' is just a pattern.
24849 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24850 (avr_out_round): New function.
24851 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24852
24853 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24854
24855 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24856 Add check for flag_stack_usage to handle -fstack-usage support
24857
24858 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24859
24860 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24861 interaction for new Power8 flags and VSX.
24862
24863 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24864
24865 PR middle-end/57698
24866 * tree-inline.c (expand_call_inline): Emit errors during
24867 early_inlining only if optimization is not turned on.
24868
24869 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24870
24871 * passes.def: New.
24872
24873 * passes.c (init_optimization_passes): Move the construction of
24874 the pass hierarchy into a new passes.def file.
24875
24876 * Makefile.in (passes.o): Add dependency on passes.def.
24877
24878 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24879
24880 * passes.c (init_optimization_passes): Introduce macros for
24881 constructing the tree of passes (INSERT_PASSES_AFTER,
24882 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24883 TERMINATE_PASS_LIST).
24884
24885 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24886 Wei Mi <wmi@google.com>
24887
24888 PR rtl-optimization/57878
24889 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24890 top.
24891 (reload_pseudo_compare_func): Check nregs first for reload
24892 pseudos.
24893
24894 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24895
24896 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24897
24898 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24899
24900 * read-rtl.c (validate_const_int): Once an invalid character is
24901 seen, quit the loop.
24902
24903 * gengtype.c (write_roots): Similarly once we find the "deletable"
24904 or "if_marked" option.
24905
24906 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24907
24908 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24909 "xtab" and "sat". Move value "clz" from here to ...
24910 (attriubte "type"): ... here.
24911 (satsi_<SAT:code>): Delete "insn" attribute.
24912 (satsi_<SAT:code>_shift): Likewise.
24913 (arm_zero_extendqisi2addsi): Likewise.
24914 (arm_extendqisi2addsi): Likewise.
24915 (clzsi2): Update for attribute changes.
24916 (rbitsi2): Likewise.
24917 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24918 attribute.
24919 (arm_usatsihi): Likewise.
24920 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24921
24922 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24923
24924 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24925 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24926 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24927 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24928 in alphabetical order.
24929 (attribute "core_cycles"): Update for attribute changes.
24930 (arm_addsi3): Likewise.
24931 (addsi3_compare0): Likewise.
24932 (addsi3_compare0_scratch): Likewise.
24933 (addsi3_compare_op1): Likewise.
24934 (addsi3_compare_op2): Likewise.
24935 (compare_addsi2_op0): Likewise.
24936 (compare_addsi2_op1): Likewise.
24937 (addsi3_carryin_shift_<optab>): Likewise.
24938 (subsi3_carryin_shift): Likewise.
24939 (rsbsi3_carryin_shift): Likewise.
24940 (arm_subsi3_insn): Likewise.
24941 (subsi3_compare0): Likewise.
24942 (subsi3_compare): Likewise.
24943 (arm_andsi3_insn): Likewise.
24944 (thumb1_andsi3_insn): Likewise.
24945 (andsi3_compare0): Likewise.
24946 (andsi3_compare0_scratch): Likewise.
24947 (zeroextractsi_compare0_scratch
24948 (andsi_not_shiftsi_si): Likewise.
24949 (iorsi3_insn): Likewise.
24950 (iorsi3_compare0): Likewise.
24951 (iorsi3_compare0_scratch): Likewise.
24952 (arm_xorsi3): Likewise.
24953 (thumb1_xorsi3_insn): Likewise.
24954 (xorsi3_compare0): Likewise.
24955 (xorsi3_compare0_scratch): Likewise.
24956 (satsi_<SAT:code>_shift): Likewise.
24957 (rrx): Likewise.
24958 (arm_shiftsi3): Likewise.
24959 (shiftsi3_compare0): Likewise.
24960 (not_shiftsi): Likewise.
24961 (not_shiftsi_compare0): Likewise.
24962 (not_shiftsi_compare0_scratch): Likewise.
24963 (arm_one_cmplsi2): Likewise.
24964 (thumb_one_complsi2): Likewise.
24965 (notsi_compare0): Likewise.
24966 (notsi_compare0_scratch): Likewise.
24967 (thumb1_zero_extendhisi2): Likewise.
24968 (arm_zero_extendhisi2): Likewise.
24969 (arm_zero_extendhisi2_v6): Likewise.
24970 (arm_zero_extendhisi2addsi): Likewise.
24971 (thumb1_zero_extendqisi2): Likewise.
24972 (thumb1_zero_extendqisi2_v6): Likewise.
24973 (arm_zero_extendqisi2): Likewise.
24974 (arm_zero_extendqisi2_v6): Likewise.
24975 (arm_zero_extendqisi2addsi): Likewise.
24976 (thumb1_extendhisi2): Likewise.
24977 (arm_extendhisi2): Likewise.
24978 (arm_extendhisi2_v6): Likewise.
24979 (arm_extendqisi): Likewise.
24980 (arm_extendqisi_v6): Likewise.
24981 (arm_extendqisi2addsi): Likewise.
24982 (thumb1_extendqisi2): Likewise.
24983 (thumb1_movdi_insn): Likewise.
24984 (arm_movsi_insn): Likewise.
24985 (movsi_compare0): Likewise.
24986 (movhi_insn_arch4): Likewise.
24987 (movhi_bytes): Likewise.
24988 (arm_movqi_insn): Likewise.
24989 (thumb1_movqi_insn): Likewise.
24990 (arm32_movhf): Likewise.
24991 (thumb1_movhf): Likewise.
24992 (arm_movsf_soft_insn): Likewise.
24993 (thumb1_movsf_insn): Likewise.
24994 (movdf_soft_insn): Likewise.
24995 (thumb_movdf_insn): Likewise.
24996 (arm_cmpsi_insn): Likewise.
24997 (cmpsi_shiftsi): Likewise.
24998 (cmpsi_shiftsi_swp): Likewise.
24999 (arm_cmpsi_negshiftsi_si): Likewise.
25000 (movsicc_insn): Likewise.
25001 (movsfcc_soft_insn): Likewise.
25002 (arith_shiftsi): Likewise.
25003 (arith_shiftsi_compare0
25004 (arith_shiftsi_compare0_scratch
25005 (sub_shiftsi): Likewise.
25006 (sub_shiftsi_compare0
25007 (sub_shiftsi_compare0_scratch
25008 (and_scc): Likewise.
25009 (cond_move): Likewise.
25010 (if_plus_move): Likewise.
25011 (if_move_plus): Likewise.
25012 (if_move_not): Likewise.
25013 (if_not_move): Likewise.
25014 (if_shift_move): Likewise.
25015 (if_move_shift): Likewise.
25016 (if_shift_shift): Likewise.
25017 (if_not_arith): Likewise.
25018 (if_arith_not): Likewise.
25019 (cond_move_not): Likewise.
25020 (thumb1_ashlsi3): Set type attribute.
25021 (thumb1_ashrsi3): Likewise.
25022 (thumb1_lshrsi3): Likewise.
25023 (thumb1_rotrsi3): Likewise.
25024 (shiftsi3_compare0_scratch): Likewise.
25025 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25026 (neon_mov<mode>): Likewise.
25027 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25028 attribute changes.
25029 (thumb2_movsi_insn): Likewise.
25030 (thumb2_cmpsi_neg_shiftsi): Likewise.
25031 (thumb2_extendqisi_v6): Likewise.
25032 (thumb2_zero_extendhisi2_v6): Likewise.
25033 (thumb2_zero_extendqisi2_v6): Likewise.
25034 (thumb2_shiftsi3_short): Likewise.
25035 (thumb2_addsi3_compare0_scratch): Likewise.
25036 (orsi_not_shiftsi_si): Likewise.
25037 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25038 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25039 changes.
25040 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25041 (1020alu_shift_op): Likewise.
25042 (1020alu_shift_reg_op): Likewise.
25043 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25044 (alu_shift_op): Likewise.
25045 (alu_shift_reg_op): Likewise.
25046 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25047 (11_alu_shift_op): Likewise.
25048 (11_alu_shift_reg_op): Likewise.
25049 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25050 (9_alu_shift_reg_op): Likewise.
25051 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25052 changes.
25053 (cortex_a15_alu_shift): Likewise.
25054 (cortex_a15_alu_shift_reg): Likewise.
25055 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25056 changes.
25057 (cortex_a5_alu_shift): Likewise.
25058 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25059 changes.
25060 (cortex_a53_alu_shift): Likewise.
25061 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25062 changes.
25063 (cortex_a7_alu_reg): Likewise.
25064 (cortex_a7_alu_shift): Likewise.
25065 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25066 changes.
25067 (cortex_a8_alu_shift): Likewise.
25068 (cortex_a8_alu_shift_reg): Likewise.
25069 (cortex_a8_mov): Likewise.
25070 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25071 (cortex_a9_dp_shift): Likewise.
25072 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25073 changes.
25074 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25075 changes.
25076 (cortex_r4_mov): Likewise.
25077 (cortex_r4_alu_shift): Likewise.
25078 (cortex_r4_alu_shift_reg): Likewise.
25079 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25080 (526_alu_shift_op): Likewise.
25081 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25082 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25083 (626te_alu_shift_op): Likewise.
25084 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25085 (726te_alu_op): Likewise.
25086 (726te_alu_shift_op): Likewise.
25087 (726te_alu_shift_reg_op): Likewise.
25088 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25089 (mp626_alu_shift_op): Likewise.
25090 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25091 (pj4_alu_e1_conds): Likewise.
25092 (pj4_alu): Likewise.
25093 (pj4_alu_conds): Likewise.
25094 (pj4_shift): Likewise.
25095 (pj4_shift_conds): Likewise.
25096 (pj4_alu_shift): Likewise.
25097 (pj4_alu_shift_conds): Likewise.
25098 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25099 changes.
25100 (cortexa7_older_only): Likewise.
25101 (cortexa7_younger): Likewise.
25102
25103 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25104
25105 * ipa-pure-const.c (generate_summary): Rename to...
25106 (pure_const_generate_summary): ... this.
25107
25108 2013-07-17 Iain Sandoe <iain@codesourcery.com>
25109
25110 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25111
25112 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
25113
25114 PR target/57909
25115 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25116 usage in HI mode.
25117
25118 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25119
25120 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25121 enabled without -march=zEC12.
25122 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25123 flags to be set.
25124
25125 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25126
25127 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25128 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25129 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25130 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25131 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25132 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25133 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25134 ISA_HAS_FP4.
25135 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25136 and ISA_HAS_NMADD3_NMSUB3.
25137 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25138 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25139 (nmsub4<mode>, nmsub3<mode>): Likewise.
25140 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25141
25142 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25143
25144 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25145 TARGET_MIPS5400 checking.
25146
25147 2013-07-16 Jakub Jelinek <jakub@redhat.com>
25148 Peter Bergner <bergner@vnet.ibm.com>
25149
25150 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25151 registers in the comment.
25152 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25153 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25154 rather than FIRST_PSEUDO_REGISTERS.
25155
25156 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
25157
25158 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25159 enable extra ISA flags with TARGET_HTM.
25160
25161 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25162
25163 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25164 Fix comment typos.
25165
25166 2013-07-15 Cong Hou <congh@google.com>
25167
25168 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25169 in compare function for sorting.
25170
25171 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
25172
25173 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25174 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25175 * config/rs6000/rs6000.opt: Add -mhtm option.
25176 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25177 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25178 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25179 __HTM__ if the HTM instructions are available.
25180 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25181 htm_spr_reg_operand): New define_predicates.
25182 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25183 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25184 Include htm.md.
25185 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25186 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25187 HTM builtin functions.
25188 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25189 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25190 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25191 (rs6000_builtin_mask_calculate): Likewise.
25192 (rs6000_option_override_internal): Likewise.
25193 (bdesc_htm): Add new HTM builtin support.
25194 (htm_spr_num): New function.
25195 (htm_spr_regno): Likewise.
25196 (rs6000_htm_spr_icode): Likewise.
25197 (htm_expand_builtin): Likewise.
25198 (htm_init_builtins): Likewise.
25199 (rs6000_expand_builtin): Add support for HTM builtin functions.
25200 (rs6000_init_builtins): Likewise.
25201 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25202 option.
25203 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25204 (TARGET_HTM, MASK_HTM): Define macros.
25205 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25206 (FIXED_REGISTERS): Likewise.
25207 (CALL_USED_REGISTERS): Likewise.
25208 (CALL_REALLY_USED_REGISTERS): Likewise.
25209 (REG_ALLOC_ORDER): Likewise.
25210 (enum reg_class): Likewise.
25211 (REG_CLASS_NAMES): Likewise.
25212 (REG_CLASS_CONTENTS): Likewise.
25213 (REGISTER_NAMES): Likewise.
25214 (ADDITIONAL_REGISTER_NAMES): Likewise.
25215 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25216 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25217 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25218 * config/rs6000/htm.md: New file.
25219 * config/rs6000/htmintrin.h: New file.
25220 * config/rs6000/htmxlintrin.h: New file.
25221
25222 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
25223
25224 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25225 Define SYMBOL_TINY_GOT, update comment.
25226 * config/aarch64/aarch64.c
25227 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25228 (aarch64_expand_mov_immediate): Likewise.
25229 (aarch64_print_operand): Likewise.
25230 (aarch64_classify_symbol): Likewise.
25231 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25232 (ldr_got_tiny): Define.
25233
25234 2013-07-13 Tobias Grosser <tobias@grosser.es>
25235
25236 PR tree-optimization/54094
25237 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25238 scheduling dimension for the parallelism check from the polyhedral
25239 information in the AST.
25240 * graphite-dependences.c (carries_deps): Do not assume the schedule is
25241 in 2D + 1 form.
25242
25243 2013-07-13 Jason Merrill <jason@redhat.com>
25244
25245 * print-tree.c (debug_vec_tree): Use debug_raw.
25246 (debug_raw (vec<tree, va_gc> &)): New.
25247 (debug_raw (vec<tree, va_gc> *)): New.
25248 * tree.h: Declare them.
25249
25250 2013-07-13 Bin Cheng <bin.cheng@arm.com>
25251
25252 * ifcvt.c (ifcvt_after_combine): New static variable.
25253 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25254 for size.
25255 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
25256 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25257 rest_of_handle_if_after_reload): Pass new argument for if_convert.
25258
25259 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
25260
25261 * config/mips/mips.c (mips_expand_call): Remove empty statement.
25262
25263 2013-07-12 Michael Matz <matz@suse.de>
25264
25265 PR middle-end/55771
25266 * convert.c (convert_to_real): Reject non-float inner types.
25267
25268 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
25269
25270 * config/aarch64/aarch64-protos.h
25271 (aarch64_simd_immediate_valid_for_move): Remove.
25272 * config/aarch64/aarch64.c (simd_immediate_info): New member.
25273 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25274 cases.
25275 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25276
25277 2013-07-11 Steve Ellcey <sellcey@mips.com>
25278
25279 * config/mips/mips.c (mips_conditional_register_usage): Do not
25280 use t[0-7] registers in MIPS16 mode when optimizing for size.
25281
25282 2013-07-11 Sriraman Tallam <tmsriram@google.com>
25283
25284 * config/i386/i386.c (dispatch_function_versions): Fix array
25285 indexing of function_version_info to match actual_versions.
25286
25287 2013-07-11 Teresa Johnson <tejohnson@google.com>
25288
25289 * vec.h (struct va_gc): Move release out-of-line.
25290 (va_gc::release): Call ggc_free on released vec.
25291
25292 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25293
25294 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25295 Require GOT register as additional operand in UNSPEC.
25296 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25297 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25298 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25299 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25300 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25301 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25302 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25303
25304 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
25305
25306 PR target/57631
25307 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25308 name seen by assembler/linker rather if available.
25309
25310 2013-07-11 Andreas Schwab <schwab@suse.de>
25311
25312 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25313
25314 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
25315
25316 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25317
25318 2013-07-10 Joseph Myers <joseph@codesourcery.com>
25319
25320 * doc/tm.texi.in: Move hook documentation to ....
25321 * target.def: ... here.
25322
25323 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25324 text on @hook line.
25325 * doc/tm.texi: Regenerate.
25326
25327 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
25328
25329 PR c++/57869
25330 * doc/invoke.texi: Document -Wconditionally-supported.
25331
25332 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25333
25334 PR target/57844
25335 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25336 of my_fp.
25337
25338 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25339
25340 PR target/57506
25341 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25342 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25343 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25344 Remove duplicate devices.
25345 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25346 * config/avr/t-multilib: Regenerate.
25347 * config/avr/avr-tables.opt: Regenerate.
25348 * doc/avr-mmcu.texi: Regenerate.
25349
25350 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25351
25352 PR target/56987
25353 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25354
25355 2013-07-10 Graham Stott <graham.stott@btinternet.com>
25356
25357 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25358 the cost of MULT when optimizing for size.
25359
25360 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25361
25362 * config/cr16/cr16-protos.h: Don't include target.h.
25363
25364 2013-07-09 Joseph Myers <joseph@codesourcery.com>
25365
25366 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25367 adjust register size for TDmode and TFmode for VSX registers.
25368
25369 2013-07-08 Kai Tietz <ktietz@redhat.com>
25370
25371 PR target/56892
25372 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25373 hook_bool_const_tree_true.
25374
25375 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25376
25377 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25378 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25379 * config/s390/s390.md: Define FPR*_REGNUM constants.
25380 Fix FPR2_REGNUM constant (18 -> 17).
25381 ("*trunc<BFP:mode><DFP_ALL:mode>2")
25382 ("*trunc<DFP_ALL:mode><BFP:mode>2")
25383 ("trunc<BFP:mode><DFP_ALL:mode>2")
25384 ("trunc<DFP_ALL:mode><BFP:mode>2")
25385 ("*extend<BFP:mode><DFP_ALL:mode>2")
25386 ("*extend<DFP_ALL:mode><BFP:mode>2")
25387 ("extend<BFP:mode><DFP_ALL:mode>2")
25388 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25389 FPR4_REGNUM.
25390
25391 2013-07-08 Graham Stott <graham.stott@btinternet.com>
25392
25393 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25394
25395 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25396
25397 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25398 and cfun_fpr_bit_p to cfun_fpr_save_p.
25399 (s390_frame_area, s390_register_info, s390_frame_info)
25400 (s390_emit_prologue, s390_emit_epilogue)
25401 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25402 register numbers.
25403 * config/s390/s390.h: Define *_REGNUM macros for floating point
25404 register numbers.
25405
25406 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
25407
25408 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25409
25410 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
25411
25412 PR rtl-optimization/57786
25413 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25414 and break out of the loop when it is set to false.
25415
25416 2013-07-08 Jakub Jelinek <jakub@redhat.com>
25417
25418 PR target/57819
25419 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25420 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25421 (const_int 63)) 0)).
25422 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25423 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25424 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25425
25426 PR rtl-optimization/57829
25427 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25428 mask bits outside of mode are just sign-extension from mode to HWI.
25429
25430 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
25431
25432 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25433 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25434 adjust_address instead of change_address to keep info about alignment.
25435 (emit_strmov): Remove.
25436 (emit_memmov): New function.
25437 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25438 (expand_movmem_epilogue): Likewise and return updated rtx for
25439 destination.
25440 (expand_constant_movmem_prologue): Likewise and return updated rtx for
25441 destination and source.
25442 (decide_alignment): Refactor, handle vector_loop.
25443 (ix86_expand_movmem): Likewise.
25444 (ix86_expand_setmem): Likewise.
25445 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25446
25447 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
25448
25449 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25450 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25451
25452 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25453
25454 * config/i386/sse.md (sse_movlhps): Change alternative 3
25455 of operand 2 to "m".
25456
25457 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25458
25459 PR target/57807
25460 * config/i386/sse.md (iptr): New mode attribute.
25461 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25462 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25463 (<sse>_vmmul<mode>3): Ditto.
25464 (<sse>_vmdiv<mode>3): Ditto.
25465 (sse_vmrcpv4sf2): Ditto.
25466 (<sse>_vmsqrt<mode>2): Ditto.
25467 (sse_vmrsqrtv4sf2): Ditto.
25468 (<sse>_vm<code><mode>3): Ditto.
25469 (avx_vmcmp<mode>3): Ditto.
25470 (<sse>_vmmaskcmp<mode>3): Ditto.
25471 (<sse>_comi): Ditto.
25472 (<sse>_ucomi): Ditto.
25473 (*xop_vmfrcz_<mode>): Ditto.
25474 (*fmai_fmadd_<mode>): Ditto.
25475 (*fmai_fmsub_<mode>): Ditto.
25476 (*fmai_fnmadd_<mode>): Ditto.
25477 (*fmai_fnmsub_<mode>): Ditto.
25478 (*fma4i_vmfmadd_<mode>): Ditto.
25479 (*fma4i_vmfmsub_<mode>): Ditto.
25480 (*fma4i_vmfnmadd_<mode>): Ditto.
25481 (*fma4i_vmfnmsub_<mode>): Ditto.
25482 (*xop_vmfrcz_<mode>): Ditto.
25483 (sse_cvtps2pi): Ditto.
25484 (sse_cvttps2pi): Ditto.
25485 (sse_cvtss2si): Ditto.
25486 (sse_cvtss2si_2): Ditto.
25487 (sse_cvtss2siq_2): Ditto.
25488 (sse_cvttss2si): Ditto.
25489 (sse_cvttss2siq): Ditto.
25490 (sse_cvtsd2si): Ditto.
25491 (sse_cvtsd2si_2): Ditto.
25492 (sse_cvtsd2siq_2): Ditto.
25493 (sse_cvttsd2si): Ditto.
25494 (sse_cvttsd2siq): Ditto.
25495 (sse_cvtsd2ss): Ditto.
25496 (sse_cvtss2sd): Ditto.
25497 (avx2_pbroadcast<mode>): Ditto.
25498 (avx2_pbroadcast<mode>_1): Ditto.
25499 (*avx_vperm_broadcast_v4sf): Ditto.
25500
25501 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25502 (sse_movlhps): Ditto.
25503 (sse_storehps): Ditto.
25504 (sse_loadhps): Ditto.
25505 (sse_storelps): Ditto.
25506 (sse_loadlps): Ditto.
25507 (*vec_concatv4sf): Ditto.
25508 (*vec_interleave_highv2df): Ditto.
25509 (*vec_interleave_lowv2df): Ditto.
25510 (*vec_extractv2df_1_sse): Ditto.
25511 (*vec_extractv2df_0_sse): Ditto.
25512 (sse2_storelpd): Ditto.
25513 (sse2_loadlpd): Ditto.
25514 (sse2_movsd): Ditto.
25515 (*vec_concatv4si): Ditto.
25516 (vec_concatv2di): Ditto.
25517
25518 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25519 for Intel asm dialect.
25520 (mmx_punpcklwd): Ditto.
25521 (mmx_punpckldq): Ditto.
25522
25523 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25524 for intel assembler dialect.
25525
25526 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25527
25528 PR target/29776
25529 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25530 for BUILT_IN_C{LZ,LRSB}*.
25531 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25532 * tree-vrp.c (extract_range_basic): Handle
25533 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25534 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25535 fall thru to code calling set_value*.
25536 * builtins.c (expand_builtin): Remove *IMAX cases.
25537 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25538 if width is bigger than 2*HWI.
25539
25540 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25541
25542 PR rtl-optimization/55342
25543 * lra-int.h (lra_subreg_reload_pseudos): New.
25544 * lra.c: Add undoing optional reloads to the block diagram.
25545 (lra_subreg_reload_pseudos): New.
25546 (lra_optional_reload_pseudos): Change comments.
25547 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25548 lra_optional_reload_pseudos after undo transformations.
25549 * lra-assigns.c (pseudo_prefix_title): New.
25550 (lra_setup_reg_renumber): Use it.
25551 (spill_for): Ditto. Check subreg reload pseudos too.
25552 (assign_by_spills): Consider subreg reload pseudos too.
25553 * lra-constraints.c (simplify_operand_subreg): Use
25554 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25555 (curr_insn_transform): Recognize and do optional reloads.
25556 (undo_optional_reloads): New.
25557 (lra_undo_inheritance): Call undo_optional_reloads.
25558
25559 2013-07-05 Thomas Quinot <quinot@adacore.com>
25560
25561 * tree-complex.c (expand_complex_operations_1): Fix typo.
25562
25563 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25564
25565 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25566 (tune_params): New member 'const vec_costs'.
25567 * config/aarch64/aarch64.c (generic_vector_cost): New.
25568 (generic_tunings): New member 'generic_vector_cost'.
25569 (aarch64_builtin_vectorization_cost): New.
25570 (aarch64_add_stmt_cost): New.
25571 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25572 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25573
25574 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25575
25576 PR target/57777
25577 * config/i386/predicates.md (vsib_address_operand): Disallow
25578 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25579
25580 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25581
25582 PR middle-end/55030
25583 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25584 expand_builtin_setjmp_receiver.
25585 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25586 with NULL for the label parameter.
25587 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25588 the frame-pointer. Adjust comments.
25589 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25590 only if LABEL is non-NULL.
25591
25592 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25593
25594 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25595 (ARM_ABI_AAPCS64): Ditto.
25596 (arm_abi): Ditto.
25597 (ARM_DEFAULT_ABI): Ditto.
25598
25599 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25600
25601 * config/aarch64/aarch64-builtins.c
25602 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25603 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25604 (st1): Likewise.
25605 * config/aarch64/aarch64-simd.md
25606 (aarch64_ld1<VALL:mode>): New.
25607 (aarch64_st1<VALL:mode>): Likewise.
25608 * config/aarch64/arm_neon.h
25609 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25610
25611 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25612
25613 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25614 target ISA is AVX.
25615 (ix86_option_override_internal):Turn on all -mavx target flags by
25616 default as they are dependent on AVX anyway.
25617
25618 2013-07-02 Cary Coutant <ccoutant@google.com>
25619
25620 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25621 deterministic hash.
25622 (loc_checksum_ordered): Likewise.
25623 (hash_loc_operands): Remove inline keyword.
25624
25625 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25626
25627 PR tree-optimization/57741
25628 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25629 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25630 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25631 Allow REAL_CST step_exprs if flag_associative_math.
25632 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25633
25634 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25635
25636 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25637
25638 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25639
25640 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25641
25642 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25643
25644 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25645 encoding.
25646 (iorsi3_insn): Likewise.
25647 (arm_xorsi3): Likewise.
25648
25649 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25650
25651 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25652 to ...
25653 (attribute "type"): ... here, and prefix with "wmmx_".
25654 (attribute "core_cycles"): Update for attribute changes.
25655 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25656 (tbcstv4hi): Likewise.
25657 (tbcstv2si): Likewise.
25658 (iwmmxt_iordi3): Likewise.
25659 (iwmmxt_xordi3): Likewise.
25660 (iwmmxt_anddi3): Likewise.
25661 (iwmmxt_nanddi3): Likewise.
25662 (iwmmxt_arm_movdi): Likewise.
25663 (iwmmxt_movsi_insn): Likewise.
25664 (mov<mode>_internal): Likewise.
25665 (and<mode>3_iwmmxt): Likewise.
25666 (ior<mode>3_iwmmxt): Likewise.
25667 (xor<mode>3_iwmmxt): Likewise.
25668 (add<mode>3_iwmmxt): Likewise.
25669 (ssaddv8qi3): Likewise.
25670 (ssaddv4hi3): Likewise.
25671 (ssaddv2si3): Likewise.
25672 (usaddv8qi3): Likewise.
25673 (usaddv4hi3): Likewise.
25674 (usaddv2si3): Likewise.
25675 (sub<mode>3_iwmmxt): Likewise.
25676 (sssubv8qi3): Likewise.
25677 (sssubv4hi3): Likewise.
25678 (sssubv2si3): Likewise.
25679 (ussubv8qi3): Likewise.
25680 (ussubv4hi3): Likewise.
25681 (ussubv2si3): Likewise.
25682 (mulv4hi3_iwmmxt): Likewise.
25683 (smulv4hi3_highpart): Likewise.
25684 (umulv4hi3_highpart): Likewise.
25685 (iwmmxt_wmacs): Likewise.
25686 (iwmmxt_wmacsz): Likewise.
25687 (iwmmxt_wmacu): Likewise.
25688 (iwmmxt_wmacuz): Likewise.
25689 (iwmmxt_clrdi): Likewise.
25690 (iwmmxt_clrv8qi): Likewise.
25691 (iwmmxt_clr4hi): Likewise.
25692 (iwmmxt_clr2si): Likewise.
25693 (iwmmxt_uavgrndv8qi3): Likewise.
25694 (iwmmxt_uavgrndv4hi3): Likewise.
25695 (iwmmxt_uavgv8qi3): Likewise.
25696 (iwmmxt_uavgv4hi3): Likewise.
25697 (iwmmxt_tinsrb): Likewise.
25698 (iwmmxt_tinsrh): Likewise.
25699 (iwmmxt_tinsrw): Likewise.
25700 (iwmmxt_textrmub): Likewise.
25701 (iwmmxt_textrmsb): Likewise.
25702 (iwmmxt_textrmuh): Likewise.
25703 (iwmmxt_textrmsh): Likewise.
25704 (iwmmxt_textrmw): Likewise.
25705 (iwmxxt_wshufh): Likewise.
25706 (eqv8qi3): Likewise.
25707 (eqv4hi3): Likewise.
25708 (eqv2si3): Likewise.
25709 (gtuv8qi3): Likewise.
25710 (gtuv4hi3): Likewise.
25711 (gtuv2si3): Likewise.
25712 (gtv8qi3): Likewise.
25713 (gtv4hi3): Likewise.
25714 (gtv2si3): Likewise.
25715 (smax<mode>3_iwmmxt): Likewise.
25716 (umax<mode>3_iwmmxt): Likewise.
25717 (smin<mode>3_iwmmxt): Likewise.
25718 (umin<mode>3_iwmmxt): Likewise.
25719 (iwmmxt_wpackhss): Likewise.
25720 (iwmmxt_wpackwss): Likewise.
25721 (iwmmxt_wpackdss): Likewise.
25722 (iwmmxt_wpackhus): Likewise.
25723 (iwmmxt_wpackwus): Likewise.
25724 (iwmmxt_wpackdus): Likewise.
25725 (iwmmxt_wunpckihb): Likewise.
25726 (iwmmxt_wunpckihh): Likewise.
25727 (iwmmxt_wunpckihw): Likewise.
25728 (iwmmxt_wunpckilb): Likewise.
25729 (iwmmxt_wunpckilh): Likewise.
25730 (iwmmxt_wunpckilw): Likewise.
25731 (iwmmxt_wunpckehub): Likewise.
25732 (iwmmxt_wunpckehuh): Likewise.
25733 (iwmmxt_wunpckehuw): Likewise.
25734 (iwmmxt_wunpckehsb): Likewise.
25735 (iwmmxt_wunpckehsh): Likewise.
25736 (iwmmxt_wunpckehsw): Likewise.
25737 (iwmmxt_wunpckelub): Likewise.
25738 (iwmmxt_wunpckeluh): Likewise.
25739 (iwmmxt_wunpckeluw): Likewise.
25740 (iwmmxt_wunpckelsb): Likewise.
25741 (iwmmxt_wunpckelsh): Likewise.
25742 (iwmmxt_wunpckelsw): Likewise.
25743 (ror<mode>3): Likewise.
25744 (ashr<mode>3_iwmmxt): Likewise.
25745 (lshr<mode>3_iwmmxt): Likewise.
25746 (ashl<mode>3_iwmmxt): Likewise.
25747 (ror<mode>3_di): Likewise.
25748 (ashr<mode>3_di): Likewise.
25749 (lshr<mode>3_di): Likewise.
25750 (ashl<mode>3_di): Likewise.
25751 (iwmmxt_wmadds): Likewise.
25752 (iwmmxt_wmaddu): Likewise.
25753 (iwmmxt_tmia): Likewise.
25754 (iwmmxt_tmiaph): Likewise.
25755 (iwmmxt_tmiabb): Likewise.
25756 (iwmmxt_tmiatb): Likewise.
25757 (iwmmxt_tmiabt): Likewise.
25758 (iwmmxt_tmiatt): Likewise.
25759 (iwmmxt_tmovmskb): Likewise.
25760 (iwmmxt_tmovmskh): Likewise.
25761 (iwmmxt_tmovmskw): Likewise.
25762 (iwmmxt_waccb): Likewise.
25763 (iwmmxt_wacch): Likewise.
25764 (iwmmxt_waccw): Likewise.
25765 (iwmmxt_waligni): Likewise.
25766 (iwmmxt_walignr): Likewise.
25767 (iwmmxt_walignr0): Likewise.
25768 (iwmmxt_walignr1): Likewise.
25769 (iwmmxt_walignr2): Likewise.
25770 (iwmmxt_walignr3): Likewise.
25771 (iwmmxt_wsadb): Likewise.
25772 (iwmmxt_wsadh): Likewise.
25773 (iwmmxt_wsadbz): Likewise.
25774 (iwmmxt_wsadhz): Likewise.
25775 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25776 (iwmmxt_wabsdiffb): Likewise.
25777 (iwmmxt_wabsdiffh): Likewise.
25778 (iwmmxt_wabsdiffw): Likewise.
25779 (iwmmxt_waddsubhx): Likewise
25780 (iwmmxt_wsubaddhx): Likewise.
25781 (addc<mode>3): Likewise.
25782 (iwmmxt_avg4): Likewise.
25783 (iwmmxt_avg4r): Likewise.
25784 (iwmmxt_wmaddsx): Likewise.
25785 (iwmmxt_wmaddux): Likewise.
25786 (iwmmxt_wmaddsn): Likewise.
25787 (iwmmxt_wmaddun): Likewise.
25788 (iwmmxt_wmulwsm): Likewise.
25789 (iwmmxt_wmulwum): Likewise.
25790 (iwmmxt_wmulsmr): Likewise.
25791 (iwmmxt_wmulumr): Likewise.
25792 (iwmmxt_wmulwsmr): Likewise.
25793 (iwmmxt_wmulwumr): Likewise.
25794 (iwmmxt_wmulwl): Likewise.
25795 (iwmmxt_wqmulm): Likewise.
25796 (iwmmxt_wqmulwm): Likewise.
25797 (iwmmxt_wqmulmr): Likewise.
25798 (iwmmxt_wqmulwmr): Likewise.
25799 (iwmmxt_waddbhusm): Likewise.
25800 (iwmmxt_waddbhusl): Likewise.
25801 (iwmmxt_wqmiabb): Likewise.
25802 (iwmmxt_wqmiabt): Likewise.
25803 (iwmmxt_wqmiatb): Likewise.
25804 (iwmmxt_wqmiatt): Likewise.
25805 (iwmmxt_wqmiabbn): Likewise.
25806 (iwmmxt_wqmiabtn): Likewise.
25807 (iwmmxt_wqmiatbn): Likewise.
25808 (iwmmxt_wqmiattn): Likewise.
25809 (iwmmxt_wmiabb): Likewise.
25810 (iwmmxt_wmiabt): Likewise.
25811 (iwmmxt_wmiatb): Likewise.
25812 (iwmmxt_wmiatt): Likewise.
25813 (iwmmxt_wmiabbn): Likewise.
25814 (iwmmxt_wmiabtn): Likewise.
25815 (iwmmxt_wmiatbn): Likewise.
25816 (iwmmxt_wmiattn): Likewise.
25817 (iwmmxt_wmiawbb): Likewise.
25818 (iwmmxt_wmiawbt): Likewise.
25819 (iwmmxt_wmiawtb): Likewise.
25820 (iwmmxt_wmiawtt): Likewise.
25821 (iwmmxt_wmiawbbn): Likewise.
25822 (iwmmxt_wmiawbtn): Likewise.
25823 (iwmmxt_wmiawtbn): Likewise.
25824 (iwmmxt_wmiawttn): Likewise.
25825 (iwmmxt_wmerge): Likewise.
25826 (iwmmxt_tandc<mode>3): Likewise.
25827 (iwmmxt_torc<mode>3): Likewise.
25828 (iwmmxt_torvsc<mode>3): Likewise.
25829 (iwmmxt_textrc<mode>3): Likewise.
25830 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25831 (wmmxt_pack): Likewise.
25832 (wmmxt_mult_c1): Likewise.
25833 (wmmxt_mult_c2): Likewise.
25834 (wmmxt_alu_c1): Likewise.
25835 (wmmxt_alu_c2): Likewise.
25836 (wmmxt_alu_c3): Likewise.
25837 (wmmxt_transfer_c1): Likewise.
25838 (wmmxt_transfer_c2): Likewise.
25839 (wmmxt_transfer_c3): Likewise.
25840 (marvell_f_iwmmxt_wstr): Likewise.
25841 (marvell_f_iwmmxt_wldr): Likewise.
25842
25843 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25844
25845 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25846
25847 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25848
25849 Revert:
25850 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25851 * lra-constraints.c (need_for_split_p): Check call used hard regs
25852 living through calls.
25853
25854 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25855 call used regs for call insn.
25856
25857 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25858
25859 PR target/57736
25860 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25861 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25862
25863 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25864
25865 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25866
25867 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25868
25869 * lra-constraints.c (need_for_split_p): Check call used hard regs
25870 living through calls.
25871
25872 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25873
25874 PR target/57744
25875 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25876 to tie with any other modes. Eliminate Altivec vector mode tests,
25877 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25878 code, to return 0 if testing MODE2 for a condition, if we've
25879 already tested MODE1 for the same condition.
25880
25881 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25882
25883 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25884 layout.
25885
25886 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25887
25888 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25889 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25890
25891 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25892
25893 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25894 Define.
25895 (aarch64_symbolic_constant_p): Remove.
25896 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25897 static. Fix line length and white space.
25898 (aarch64_symbolic_constant_p): Remove.
25899 * config/aarch64/predicates.md (aarch64_valid_symref):
25900 Use aarch64_classify_symbol_expression.
25901
25902 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25903
25904 * config/arm/constraints.md (Ts): New constraint.
25905 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25906 16-bit encodings.
25907 (compare_scc): Use "Ts" constraint for operand 0.
25908 (ior_scc_scc): Likewise.
25909 (and_scc_scc): Likewise.
25910 (and_scc_scc_nodom): Likewise.
25911 (ior_scc_scc_cmp): Likewise for operand 7.
25912 (and_scc_scc_cmp): Likewise.
25913 * config/arm/thumb2.md (thumb2_movsi_insn):
25914 Add alternatives for 16-bit encodings.
25915 (thumb2_movhi_insn): Likewise.
25916 (thumb2_movsicc_insn): Likewise.
25917 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25918 (thumb2_negscc): Use "Ts" constraint.
25919 Move mvn instruction outside cond_exec block.
25920 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25921 for 16-bit encodings.
25922
25923 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25924
25925 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25926 encoding.
25927 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25928 (mulsi3subsi): Likewise.
25929 (mulsidi3adddi): Likewise.
25930 (mulsidi3_v6): Likewise.
25931 (umulsidi3_v6): Likewise.
25932 (umulsidi3adddi_v6): Likewise.
25933 (smulsi3_highpart_v6): Likewise.
25934 (umulsi3_highpart_v6): Likewise.
25935 (mulhisi3tb): Likewise.
25936 (mulhisi3bt): Likewise.
25937 (mulhisi3tt): Likewise.
25938 (maddhisi4): Likewise.
25939 (maddhisi4tb): Likewise.
25940 (maddhisi4tt): Likewise.
25941 (maddhidi4): Likewise.
25942 (maddhidi4tb): Likewise.
25943 (maddhidi4tt): Likewise.
25944 (zeroextractsi_compare0_scratch): Likewise.
25945 (insv_zero): Likewise.
25946 (insv_t2): Likewise.
25947 (anddi_notzesidi_di): Likewise.
25948 (anddi_notsesidi_di): Likewise.
25949 (andsi_notsi_si): Likewise.
25950 (iordi_zesidi_di): Likewise.
25951 (xordi_zesidi_di): Likewise.
25952 (andsi_iorsi3_notsi): Likewise.
25953 (smax_0): Likewise.
25954 (smax_m1): Likewise.
25955 (smin_0): Likewise.
25956 (not_shiftsi): Likewise.
25957 (unaligned_loadsi): Likewise.
25958 (unaligned_loadhis): Likewise.
25959 (unaligned_loadhiu): Likewise.
25960 (unaligned_storesi): Likewise.
25961 (unaligned_storehi): Likewise.
25962 (extv_reg): Likewise.
25963 (extzv_t2): Likewise.
25964 (divsi3): Likewise.
25965 (udivsi3): Likewise.
25966 (arm_zero_extendhisi2addsi): Likewise.
25967 (arm_zero_extendqisi2addsi): Likewise.
25968 (compareqi_eq0): Likewise.
25969 (arm_extendhisi2_v6): Likewise.
25970 (arm_extendqisi2addsi): Likewise.
25971 (arm_movt): Likewise.
25972 (thumb2_ldrd): Likewise.
25973 (thumb2_ldrd_base): Likewise.
25974 (thumb2_ldrd_base_neg): Likewise.
25975 (thumb2_strd): Likewise.
25976 (thumb2_strd_base): Likewise.
25977 (thumb2_strd_base_neg): Likewise.
25978 (arm_negsi2): Add alternative for 16-bit encoding.
25979 (arm_one_cmplsi2): Likewise.
25980
25981 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25982
25983 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25984 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25985 (movdfcc): Likewise.
25986 * config/arm/vfp.md (*thumb2_movsf_vfp):
25987 Disable predication for arm_restrict_it.
25988 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25989 (*thumb2_movdfcc_vfp): Likewise.
25990 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25991 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25992 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25993 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25994 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25995 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25996 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25997 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25998 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25999 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
26000 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
26001 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
26002 Disable predication for arm_restrict_it.
26003
26004 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
26005
26006 * config/i386/bmiintrin.h (_bextr_u32): New.
26007 (_bextr_u64): Ditto.
26008
26009 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
26010
26011 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26012 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26013 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26014 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26015 * config/mips/n32-elf.h: ...this new file.
26016
26017 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
26018
26019 PR target/57224
26020 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26021 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26022
26023 2013-06-27 Catherine Moore <clm@codesourcery.com>
26024
26025 * config/mips/mips-tables.opt: Regenerate.
26026 * config/mips/mips-cpus.def: Add m14ke and m14kec.
26027 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26028 * doc/invoke.texi: Add -m14kc.
26029
26030 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26031
26032 PR target/57623
26033 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26034 constraints of operand 1 and 2.
26035
26036 PR target/57623
26037 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26038 to match RTL canonicalization. Swap predicates and
26039 constraints of operand 1 and 2.
26040
26041 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
26042
26043 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26044 Process OP_INOUT regs for splitting too.
26045
26046 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26047
26048 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26049 decl before the loop, initialize to NULL.
26050 (vectorizable_load): Initialize ptr_incr to NULL.
26051
26052 2013-06-27 Martin Jambor <mjambor@suse.cz>
26053
26054 PR lto/57208
26055 * ipa-ref.h (ipa_maybe_record_reference): Declare.
26056 * ipa-ref.c (ipa_maybe_record_reference): New function.
26057 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26058 * ipa-cp.c (create_specialized_node): Record potential references from
26059 aggvals.
26060 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26061
26062 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26063
26064 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26065 parameter 'mode' of type 'enum machine_mode mode'; change to pass
26066 'mode' to force_reg.
26067 (aarch64_add_offset): Update calls to aarch64_force_temporary.
26068 (aarch64_expand_mov_immediate): Likewise.
26069
26070 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26071
26072 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26073 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26074
26075 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26076
26077 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26078 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26079 (struct machine_function): Add tbegin_p.
26080 (s390_canonicalize_comparison): Fold CC mode compares to
26081 conditional jump if possible.
26082 (s390_emit_jump): Return the emitted jump.
26083 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26084 Handle CCRAWmode compares.
26085 (s390_option_override): Default to -mhtm if available.
26086 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26087 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26088 FPRs instead of df_regs_ever_live_p.
26089 (s390_optimize_nonescaping_tx): New function.
26090 (s390_init_frame_layout): Extend clobbered_regs array to cover
26091 FPRs as well.
26092 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26093 (s390_expand_tbegin): New function.
26094 (enum s390_builtin): New enum definition.
26095 (code_for_builtin): New array definition.
26096 (s390_init_builtins): New function.
26097 (s390_expand_builtin): New function.
26098 (TARGET_INIT_BUILTINS): Define.
26099 (TARGET_EXPAND_BUILTIN): Define.
26100 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26101 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26102 (s390_alc_comparison): Likewise.
26103 * config/s390/s390-modes.def: Add CCRAWmode.
26104 * config/s390/s390.h (processor_flags): Add PF_TX.
26105 (TARGET_CPU_HTM): Define macro.
26106 (TARGET_HTM): Define macro.
26107 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26108 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26109 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26110 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26111 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26112 (TBEGIN_MASK, TBEGINC_MASK): New constants.
26113 ("*cc_to_int"): Move up.
26114 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26115 constants other than 0.
26116 ("*ccraw_to_int"): New insn and splitter definition.
26117 ("tbegin", "tbegin_nofloat", "tbegin_retry")
26118 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26119 ("tx_assist"): New expander.
26120 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26121 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26122 * config/s390/s390.opt: Add -mhtm option.
26123 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26124 * config/s390/htmxlintrin.h: New file.
26125 * config/s390/htmintrin.h: New file.
26126 * config/s390/s390intrin.h: New file.
26127 * doc/extend.texi: Document htm builtins.
26128 * config.gcc: Add the new header files to extra_headers.
26129
26130 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
26131
26132 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26133 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26134
26135 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26136 Pat Haugen <pthaugen@us.ibm.com>
26137 Peter Bergner <bergner@vnet.ibm.com>
26138
26139 * config/rs6000/power8.md: New.
26140 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26141 setting for power8 entry.
26142 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26143 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26144 test for Power4/Power5 only.
26145 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26146 support.
26147 (force_new_group): Adjust comment.
26148 * config/rs6000/rs6000.md: Include power8.md.
26149
26150 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
26151
26152 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26153 * config/arm/arm-protos.h (arm_max_conditional_execute): New
26154 declaration.
26155 (tune_params): Update comment.
26156 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26157 (arm_max_conditional_execute): New function.
26158 (thumb2_final_prescan_insn): Use max_insn_skipped and
26159 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26160
26161 2013-06-25 Jakub Jelinek <jakub@redhat.com>
26162
26163 PR tree-optimization/57705
26164 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26165 SSA_NAME step, provided that it is not defined inside the loop.
26166 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26167 (get_initial_def_for_induction): Handle SSA_NAME IV step.
26168
26169 2013-06-25 Martin Jambor <mjambor@suse.cz>
26170
26171 PR middle-end/57670
26172 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26173 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26174 calls in the dump.
26175 (ipa_note_param_call): Initialize member_ptr flag.
26176 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26177 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26178 (ipa_write_indirect_edge_info): Stream member_ptr flag.
26179 (ipa_read_indirect_edge_info): Likewise.
26180
26181 2013-06-25 Richard Biener <rguenther@suse.de>
26182
26183 PR middle-end/56977
26184 * passes.c (init_optimization_passes): Move pass_fold_builtins
26185 and pass_dce earlier with -Og.
26186
26187 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
26188
26189 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26190 <BIT_FIELD_REF>: Remove trailing TAB.
26191 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26192 remove blank line.
26193
26194 2013-06-24 Martin Jambor <mjambor@suse.cz>
26195
26196 PR tree-optimization/57358
26197 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26198 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26199 (ipa_analyze_params_uses): Generate pessimistic info when true.
26200
26201 2013-06-24 Martin Jambor <mjambor@suse.cz>
26202
26203 PR tree-optimization/57539
26204 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26205 global.inlined_to of the new node to it. All callers changed.
26206 * ipa-inline-transform.c (clone_inlined_nodes): New variable
26207 inlining_into, pass it to cgraph_clone_node.
26208 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26209 ipa_free_edge_args_substructures.
26210 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26211 rdesc linked list. Do not assert rdesc edges have inlined caller.
26212 Assert we have found an rdesc in the rdesc list.
26213
26214 2013-06-24 Richard Biener <rguenther@suse.de>
26215
26216 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26217 (pointer_set_lookup): Declare.
26218 (class pointer_map): New template class implementing a
26219 generic pointer to T map.
26220 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26221 pointer_map<T>::contains, pointer_map<T>::insert,
26222 pointer_map<T>::traverse): New functions.
26223 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26224 (pointer_set_lookup): New function.
26225 (pointer_set_contains): Use pointer_set_lookup.
26226 (pointer_set_insert): Likewise.
26227 (insert_aux): Remove.
26228 (struct pointer_map_t): Embed a pointer_set_t.
26229 (pointer_map_create): Adjust.
26230 (pointer_map_destroy): Likewise.
26231 (pointer_map_contains): Likewise.
26232 (pointer_map_insert): Likewise.
26233 (pointer_map_traverse): Likewise.
26234 * tree-streamer.h (struct streamer_tree_cache_d): Use a
26235 pointer_map<unsigned> instead of a pointer_map_t.
26236 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26237 (streamer_tree_cache_lookup): Likewise.
26238 (streamer_tree_cache_create): Likewise.
26239 (streamer_tree_cache_delete): Likewise.
26240 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26241 pointer_map<unsigned> instead of a pointer_map_t.
26242 (lto_init_tree_ref_encoder): Adjust.
26243 (lto_destroy_tree_ref_encoder): Likewise.
26244 * lto-section-out.c (lto_output_decl_index): Likewise.
26245 (lto_record_function_out_decl_state): Likewise.
26246 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26247
26248 2013-06-24 Richard Biener <rguenther@suse.de>
26249
26250 PR tree-optimization/57488
26251 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26252
26253 2013-06-24 Alan Modra <amodra@gmail.com>
26254
26255 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26256 (gen_easy_altivec_constant): Likewise.
26257 * config/rs6000/predicates.md (easy_vector_constant_add_self,
26258 easy_vector_constant_msb): Likewise.
26259
26260 2013-06-23 Jakub Jelinek <jakub@redhat.com>
26261
26262 PR target/57688
26263 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26264 add missing return true.
26265
26266 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
26267
26268 PR target/52483
26269 * config/sh/predicates.md (general_extend_operand): Invoke
26270 general_movsrc_operand for memory operands.
26271 (general_movsrc_operand): Allow reg+reg addressing, do not use
26272 general_operand for memory operands.
26273
26274 2013-06-23 Sriraman Tallam <tmsriram@google.com>
26275
26276 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
26277 when current target options does not apply.
26278 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26279 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26280 * config/i386/bmiintrin.h: Pass appropriate target
26281 attributes to header.
26282 * config/i386/mmintrin.h: Ditto.
26283 * config/i386/nmmintrin.h: Ditto.
26284 * config/i386/avx2intrin.h: Ditto.
26285 * config/i386/fxsrintrin.h: Ditto.
26286 * config/i386/tbmintrin.h: Ditto.
26287 * config/i386/xsaveintrin.h: Ditto.
26288 * config/i386/f16cintrin.h: Ditto.
26289 * config/i386/xtestintrin.h: Ditto.
26290 * config/i386/xsaveoptintrin.h: Ditto.
26291 * config/i386/bmi2intrin.h: Ditto.
26292 * config/i386/lzcntintrin.h: Ditto.
26293 * config/i386/smmintrin.h: Ditto.
26294 * config/i386/wmmintrin.h: Ditto.
26295 * config/i386/x86intrin.h: Remove all header include guards.
26296 * config/i386/prfchwintrin.h: Ditto.
26297 * config/i386/pmmintrin.h: Ditto.
26298 * config/i386/tmmintrin.h: Ditto.
26299 * config/i386/xmmintrin.h: Ditto.
26300 * config/i386/popcntintrin.h: Ditto.
26301 * config/i386/rdseedintrin.h: Ditto.
26302 * config/i386/ammintrin.h: Ditto.
26303 * config/i386/emmintrin.h: Ditto.
26304 * config/i386/immintrin.h: Remove all header include guards.
26305 * config/i386/fma4intrin.h: Ditto.
26306 * config/i386/lwpintrin.h: Ditto.
26307 * config/i386/xopintrin.h: Ditto.
26308 * config/i386/ia32intrin.h: Ditto.
26309 * config/i386/avxintrin.h: Ditto.
26310 * config/i386/rtmintrin.h: Ditto.
26311 * config/i386/fmaintrin.h: Ditto.
26312 * config/i386/mm3dnow.h: Ditto.
26313
26314 2013-06-22 Sriraman Tallam <tmsriram@google.com>
26315
26316 * common/config/i386/i386-common.c: Handle LZCNT.
26317
26318 2013-06-22 Andi Kleen <ak@linux.intel.com>
26319
26320 * doc/extend.texi: Use __atomic_store_n instead of
26321 __atomic_store in HLE example.
26322
26323 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
26324
26325 * config/sh/sh.c: Remove <cstdlib> workaround.
26326
26327 2013-06-21 Andi Kleen <ak@linux.intel.com>
26328
26329 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
26330
26331 2013-06-21 Andi Kleen <ak@linux.intel.com>
26332
26333 * doc/extend.texi: Document that __atomic_clear and
26334 __atomic_test_and_set should only be used with bool.
26335
26336 2013-06-20 Jan Hubicka <jh@suse.cz>
26337
26338 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26339 types_same_for_odr.
26340 * tree.c (decls_same_for_odr): New function.
26341 (same_for_edr): New function.
26342 (types_same_for_odr): New function.
26343 (get_binfo_at_offset): Use it.
26344 * tree.h (types_same_for_odr): Declare.
26345
26346 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
26347 Jason Merrill <jason@redhat.com>
26348
26349 * system.h: Include <cstdlib> as well as <stdlib.h>.
26350
26351 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
26352
26353 PR target/57655
26354 * config/i386/i386.c (construct_container): Report error if
26355 long double is used with disabled x87 float returns.
26356
26357 2013-06-20 Jan Hubicka <jh@suse.cz>
26358
26359 * lto-cgraph.c (input_symtab): Do not set cgraph state.
26360
26361 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
26362
26363 PR rtl-optimization/57425
26364 PR rtl-optimization/57569
26365 * alias.c (write_dependence_p): Remove parameters mem_mode and
26366 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
26367 Changed all callers.
26368 (canon_anti_dependence): Get comments and semantics in sync.
26369 Add parameter mem_canonicalized. Changed all callers.
26370 * rtl.h (canon_anti_dependence): Update prototype.
26371
26372 2013-06-20 Richard Biener <rguenther@suse.de>
26373
26374 * data-streamer-in.c (streamer_read_uhwi): Optimize single
26375 byte case, inline streamer_read_uchar and defer section
26376 overrun check.
26377
26378 2013-06-20 Richard Biener <rguenther@suse.de>
26379
26380 PR tree-optimization/57584
26381 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26382 SSA names into the expanded expression that take part in
26383 abnormal coalescing.
26384
26385 2013-06-19 Sharad Singhai <singhai@google.com>
26386
26387 * gcov.c (print_usage): Handle new option.
26388 (process_args): Ditto.
26389 (get_gcov_intermediate_filename): New function.
26390 (output_intermediate_file): New function.
26391 (output_gcov_file): New function
26392 (generate_results): Handle new option.
26393 (release_function): Relase demangled name.
26394 (read_graph_file): Handle demangled name.
26395 (output_lines): Ditto.
26396 * doc/gcov.texi: Document gcov intermediate format.
26397
26398 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
26399
26400 PR bootstrap/57604
26401 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26402 (lra_emit_add): Use the functions. Add comment about Y as an
26403 address segment.
26404
26405 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
26406
26407 PR driver/57652
26408 * collect2.c (collect_atexit): New.
26409 (collect_exit): Delete.
26410 (main): Register collect_atexit with atexit.
26411 (collect_wait): Change collect_exit to exit.
26412 (do_wait): Same.
26413 * collect2.h (collect_exit): Delete.
26414 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26415
26416 2013-06-19 Wei Mi <wmi@google.com>
26417
26418 PR rtl-optimization/57518
26419 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26420 if regno is used in paradoxical subreg.
26421 (update_equiv_regs): Check pdx_subregs[regno] before
26422 set a reg to be equivalent with a mem.
26423
26424 2013-06-19 Matthias Klose <doko@ubuntu.com>
26425
26426 PR driver/57651
26427 * file-find.h (find_a_file): Add a mode parameter.
26428 * file-find.c (find_a_file): Likewise.
26429 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26430 with X_OK for the executables.
26431 * collect2.c (main): Call find_a_file with X_OK.
26432
26433 2013-06-19 Steve Ellcey <sellcey@mips.com>
26434
26435 PR target/56942
26436 * config/mips/mips.md (casesi_internal_mips16_<mode>):
26437 Use NEXT_INSN instead of next_real_insn.
26438
26439 2013-06-19 Jan Hubicka <jh@suse.cz>
26440
26441 * cgraph.h (const_value_known_p): Replace by ...
26442 (ctor_for_folding): .. this one.
26443 * cgraphunit.c (process_function_and_variable_attributes): Use it.
26444 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26445 * expr.c (expand_expr_real_1): Likewise.
26446 (string_constant): Likewise.
26447 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26448 * ipa.c (process_references): Likewise.
26449 (symtab_remove_unreachable_nodes): Likewise.
26450 * ipa-inline-analysis.c (param_change_prob): Likewise.
26451 * gimple-fold.c (canonicalize_constructor_val): Likewise.
26452 (get_base_constructor): Likwise.
26453 * varpool.c (varpool_remove_node): Likewise.
26454 (varpool_remove_initializer): LIkewise.
26455 (dump_varpool_node): LIkwise.
26456 (const_value_known_p): Rewrite to ...
26457 (ctor_for_folding): ... this one.
26458
26459 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26460
26461 PR driver/57651
26462 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26463 PERSONALITY in $PATH derived prefixes.
26464
26465 2013-06-19 Jeff Law <law@redhat.com>
26466
26467 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26468 in comment.
26469
26470 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26471 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26472 booleans.
26473
26474 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26475
26476 * config/arm/vfp.md: Move VFP instruction classification documentation
26477 to ...
26478 * config/arm/arm.md: ... here. Update instruction classification
26479 documentation.
26480
26481 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26482
26483 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26484 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26485 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26486
26487 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26488
26489 PR target/57609
26490 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26491 with NEXT_INSN. Use tablejump_p to check for jump table data
26492 insns.
26493
26494 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26495
26496 PR c++/56544
26497 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26498 that now in C++ the value is correct per the C++ standards.
26499
26500 2013-06-19 Richard Biener <rguenther@suse.de>
26501
26502 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26503 for global context.
26504
26505 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26506
26507 Revert:
26508 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26509
26510 PR target/57609
26511 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26512 with next_active_insn.
26513
26514 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26515
26516 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26517 functions are inlined during failures to flag an error.
26518 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26519 in early inline pass.
26520
26521 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26522
26523 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26524 in comments.
26525
26526 2013-06-18 Julian Brown <julian@codesourcery.com>
26527
26528 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26529 Permit virtual register pre-reload if !strict.
26530 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26531 change.
26532 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26533 prototype.
26534 * config/arm/neon.md (movmisalign<mode>): Use
26535 neon_perm_struct_or_reg_operand instead of
26536 neon_struct_or_register_operand.
26537 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26538 neon_permissive_struct_operand instead of neon_struct_operand.
26539 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26540 neon_vector_mem_operand.
26541 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26542 neon_vector_mem_operand.
26543 (neon_permissive_struct_operand): New.
26544 (neon_struct_or_register_operand): Rename to...
26545 (neon_perm_struct_or_reg_operand): This. Adjust call to
26546 neon_vector_mem_operand.
26547
26548 2013-06-18 Richard Biener <rguenther@suse.de>
26549
26550 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26551 * lto-streamer.h: Include pointer-set.h.
26552 (struct lto_decl_slot): Remove.
26553 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26554 Remove next_index entry.
26555 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26556 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26557 (lto_init_tree_ref_encoder): Adjust.
26558 (lto_destroy_tree_ref_encoder): Likewise.
26559 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26560 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26561 (lto_output_decl_index): Adjust.
26562 (lto_new_out_decl_state): Likewise.
26563 (lto_record_function_out_decl_state): Likewise.
26564 * lto-streamer-out.c (copy_function): Likewise.
26565
26566 2013-06-18 Richard Biener <rguenther@suse.de>
26567
26568 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26569 * cgraphunit.c: Include cfgloop.h.
26570 (init_lowered_empty_function): Initialize the loop tree.
26571 (assemble_thunk): Insert new BBs into loops.
26572
26573 2013-06-18 Richard Biener <rguenther@suse.de>
26574
26575 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26576 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26577 the map from cache entry to cache index optional.
26578 (streamer_tree_cache_replace_tree): Adjust accordingly.
26579 (streamer_tree_cache_append): Likewise.
26580 (streamer_tree_cache_delete): Likewise.
26581 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26582 streamer cache map from cache entry to cache index.
26583 * lto-streamer-out.c (create_output_block): Adjust.
26584
26585 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26586
26587 * config/arm/arm.md (attribute "insn"): Move multiplication and
26588 division attributes to...
26589 (attribute "type"): ... here. Remove mult.
26590 (attribute "mul32"): New attribute.
26591 (attribute "mul64"): Add umaal.
26592 (*arm_mulsi3): Update attributes.
26593 (*arm_mulsi3_v6): Likewise.
26594 (*thumb_mulsi3): Likewise.
26595 (*thumb_mulsi3_v6): Likewise.
26596 (*mulsi3_compare0): Likewise.
26597 (*mulsi3_compare0_v6): Likewise.
26598 (*mulsi_compare0_scratch): Likewise.
26599 (*mulsi_compare0_scratch_v6): Likewise.
26600 (*mulsi3addsi): Likewise.
26601 (*mulsi3addsi_v6): Likewise.
26602 (*mulsi3addsi_compare0): Likewise.
26603 (*mulsi3addsi_compare0_v6): Likewise.
26604 (*mulsi3addsi_compare0_scratch): Likewise.
26605 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26606 (*mulsi3subsi): Likewise.
26607 (*mulsidi3adddi): Likewise.
26608 (*mulsi3addsi_v6): Likewise.
26609 (*mulsidi3adddi_v6): Likewise.
26610 (*mulsidi3_nov6): Likewise.
26611 (*mulsidi3_v6): Likewise.
26612 (*umulsidi3_nov6): Likewise.
26613 (*umulsidi3_v6): Likewise.
26614 (*umulsidi3adddi): Likewise.
26615 (*umulsidi3adddi_v6): Likewise.
26616 (*smulsi3_highpart_nov6): Likewise.
26617 (*smulsi3_highpart_v6): Likewise.
26618 (*umulsi3_highpart_nov6): Likewise.
26619 (*umulsi3_highpart_v6): Likewise.
26620 (mulhisi3): Likewise.
26621 (*mulhisi3tb): Likewise.
26622 (*mulhisi3bt): Likewise.
26623 (*mulhisi3tt): Likewise.
26624 (maddhisi4): Likewise.
26625 (*maddhisi4tb): Likewise.
26626 (*maddhisi4tt): Likewise.
26627 (maddhidi4): Likewise.
26628 (*maddhidi4tb): Likewise.
26629 (*maddhidi4tt): Likewise.
26630 (divsi3): Likewise.
26631 (udivsi3): Likewise.
26632 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26633 (thumb2_mulsi_short_compare0): Likewise.
26634 (thumb2_mulsi_short_compare0_scratch): Likewise.
26635 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26636 (1020mult2): Likewise.
26637 (1020mult3): Likewise.
26638 (1020mult4): Likewise.
26639 (1020mult5): Likewise.
26640 (1020mult6): Likewise.
26641 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26642 change.
26643 (cortex_a15_mult64): Likewise.
26644 (cortex_a15_sdiv): Likewise.
26645 (cortex_a15_udiv): Likewise.
26646 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26647 (mult2): Likewise.
26648 (mult3): Likewise.
26649 (mult4): Likewise.
26650 (mult5): Likewise.
26651 (mult6): Likewise.
26652 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26653 (pj4_ir_div): Likewise.
26654 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26655 (11_mult2): Likewise.
26656 (11_mult3): Likewise.
26657 (11_mult4): Likewise.
26658 (11_mult5): Likewise.
26659 (11_mult6): Likewise.
26660 (11_mult7): Likewise.
26661 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26662 (cortex_a8_mla): Likewise.
26663 (cortex_a8_mull): Likewise.
26664 (cortex_a8_smulwy): Likewise.
26665 (cortex_a8_smlald): Likewise.
26666 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26667 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26668 (cortex_r4_mul_3): Likewise.
26669 (cortex_r4_mla_4): Likewise.
26670 (cortex_r4_mla_3): Likewise.
26671 (cortex_r4_smlald): Likewise.
26672 (cortex_r4_mull): Likewise.
26673 (cortex_r4_sdiv): Likewise.
26674 (cortex_r4_udiv): Likewise.
26675 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26676 (cortex_a7_idiv): Likewise.
26677 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26678 (9_mult2): Likewise.
26679 (9_mult3): Likewise.
26680 (9_mult4): Likewise.
26681 (9_mult5): Likewise.
26682 (9_mult6): Likewise.
26683 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26684 (cortex_a53_sdiv): Likewise.
26685 (cortex_a53_udiv): Likewise.
26686 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26687 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26688 (mp626_mult2): Likewise.
26689 (mp626_mult3): Likewise.
26690 (mp626_mult4): Likewise.
26691 * config/arm/fa526.md (526_mult1): Update attribute change.
26692 (526_mult2): Likewise.
26693 * config/arm/arm-generic.md (mult): Update attribute change.
26694 (mult_ldsched_strongarm): Likewise.
26695 (mult_ldsched): Likewise.
26696 (multi_cycle): Likewise.
26697 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26698 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26699 (606te_mult2): Likewise.
26700 (606te_mult3): Likewise.
26701 (606te_mult4): Likewise.
26702 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26703 (cortex_a9_mac16): Likewise.
26704 (cortex_a9_multiply): Likewise.
26705 (cortex_a9_mac): Likewise.
26706 (cortex_a9_multiply_long): Likewise.
26707 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26708 (626te_mult2): Likewise.
26709 (626te_mult3): Likewise.
26710 (626te_mult4): Likewise.
26711
26712 2013-06-18 Richard Biener <rguenther@suse.de>
26713
26714 PR lto/57334
26715 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26716
26717 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26718
26719 PR target/57609
26720 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26721 with next_active_insn.
26722
26723 2013-06-18 Alan Modra <amodra@gmail.com>
26724
26725 * config/rs6000/rs6000.h (enum data_align): New.
26726 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26727 (DATA_ABI_ALIGNMENT): Define.
26728 (CONSTANT_ALIGNMENT): Correct comment.
26729 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26730 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26731
26732 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26733
26734 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26735 ATTRIBUTE_UNUSED marking.
26736
26737 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26738
26739 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26740 alternative and update.
26741 (aarch64_dup_lanedi): Delete.
26742 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26743 * config/aarch64/aarch64-simd-builtins.def: Update.
26744
26745 2013-06-17 Richard Biener <rguenther@suse.de>
26746
26747 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26748 (lto_input_scc): Declare.
26749 (lto_input_tree_1): Likewise.
26750 (struct lto_stats_d): Add num_tree_bodies_output and
26751 num_pickle_refs_output.
26752 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26753 (lto_read_tree_1): Split out from ...
26754 (lto_read_tree): ... this.
26755 (lto_input_scc): New function.
26756 (lto_input_tree_1): Split out from ...
26757 (lto_input_tree): ... this. Handle LTO_tree_scc.
26758 (lto_data_in_create): Create the streamer cache without hashes.
26759 * lto-streamer-out.c (create_output_block): Create the streamer
26760 cache with hashes when not doing WPA.
26761 (lto_write_tree_1): Split out from ...
26762 (lto_write_tree): ... this.
26763 (get_symbol_initial_value): New function.
26764 (lto_output_tree_1): Split out from ...
26765 (lto_output_tree): ... this. Write trees as series of SCCs
26766 using a DFS walk via DFS_write_tree.
26767 (struct sccs, struct scc_entry): New types.
26768 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26769 (DFS_write_tree_body): New function.
26770 (DFS_write_tree): Likewise.
26771 (hash_tree): Likewise.
26772 (scc_entry_compare): Likewise.
26773 (hash_scc): Likewise.
26774 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26775 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26776 TREE_CHAIN as regular reference.
26777 (streamer_read_integer_cst): Remove.
26778 (streamer_get_pickled_tree): Adjust.
26779 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26780 of DECL_EXTERNALs in BLOCK_VARS for now.
26781 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26782 reference.
26783 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26784 Add hash value argument and record that if hashes are recorded
26785 in the cache.
26786 (streamer_tree_cache_insert_1): Adjust.
26787 (streamer_tree_cache_insert): Likewise.
26788 (streamer_tree_cache_insert_at): Rename to ...
26789 (streamer_tree_cache_replace_tree): ... this and adjust.
26790 (streamer_tree_cache_append): Adjust.
26791 (record_common_node): Likewise.
26792 (streamer_tree_cache_create): Add argument whether to
26793 record hash values together with trees.
26794 (streamer_tree_cache_delete): Adjust.
26795 * tree-streamer.h (struct streamer_tree_cache_d): Add
26796 vector of hashes.
26797 (streamer_read_integer_cst): Remove.
26798 (streamer_tree_cache_insert): Adjust.
26799 (streamer_tree_cache_append): Likewise.
26800 (streamer_tree_cache_insert_at): Rename to ...
26801 (streamer_tree_cache_replace_tree): ... this and adjust.
26802 (streamer_tree_cache_create): Add argument whether to record hashes.
26803 (streamer_tree_cache_get): Rename to ...
26804 (streamer_tree_cache_get_tree): ... this.
26805 (streamer_tree_cache_get_hash): New function.
26806 * tree.c (cache_integer_cst): New function.
26807 * tree.h (cache_integer_cst): Declare.
26808 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26809 * lto-symtab.c (lto_varpool_replace_node): Only release
26810 DECL_INITIAL of non-prevailing decls.
26811 * varpool.c (varpool_remove_initializer): Do not release
26812 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26813
26814 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26815
26816 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26817 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26818 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26819 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26820 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26821 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26822 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26823 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26824 instead of TARGET_64BIT.
26825 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26826 Require ISA_HAS_<D>DIV.
26827
26828 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26829
26830 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26831 (mips*-*-linux*): Move default with_llsc setting to where other
26832 defaults are set.
26833 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26834 with_arch block.
26835 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26836 Likewise. Remove default with_tune setting. Move default float
26837 setting to its own block. Handle with_llsc in the same block as above.
26838
26839 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26840
26841 PR rtl-optimization/57425
26842 PR rtl-optimization/57569
26843 * alias.c (write_dependence_p): Add new parameters mem_mode,
26844 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26845 Changed all callers.
26846 (canon_anti_dependence): New function.
26847 * cse.c (check_dependence): Use canon_anti_dependence.
26848 * cselib.c (cselib_invalidate_mem): Likewise.
26849 * rtl.h (canon_anti_dependence): Declare.
26850
26851 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26852
26853 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26854 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26855 ".set mips3" for 64-bit targets.
26856
26857 2013-06-15 Dehao Chen <dehao@google.com>
26858
26859 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26860 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26861 (gimple_check_call_args): Likewise.
26862 * value-prof.c (check_ic_target): Likewise.
26863 * ipa-inline.c (early_inliner): Likewise.
26864 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26865 * cgraph.c (cgraph_create_edge_1): Likewise.
26866 (cgraph_make_edge_direct): Likewise.
26867
26868 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26869
26870 PR target/57615
26871 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26872 rs6000_output_move_128bit to handle emitting quad memory
26873 operations. Set attribute length to 8 bytes.
26874
26875 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26876
26877 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26878 New pattern.
26879 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26880 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26881 (aarch64_<su>mlsl<mode>): Likewise.
26882
26883 2013-06-14 Mike Stump <mikestump@comcast.net>
26884
26885 * Makefile.in (TARGET_H): Add insn-codes.h.
26886
26887 2013-06-14 Alan Modra <amodra@gmail.com>
26888
26889 PR middle-end/57134
26890 PR middle-end/57586
26891 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26892 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26893 bitfield expansion when EXPAND_MEMORY.
26894 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26895
26896 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26897
26898 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26899 test for clearing quad memory on 32-bit later.
26900
26901 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26902
26903 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26904 (fold_negate_expr): Likewise.
26905 (fold_real_zero_addition_p): Handle vectors.
26906 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26907
26908 2013-06-14 Alan Modra <amodra@gmail.com>
26909
26910 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26911
26912 2013-06-13 Jan Hubicka <jh@suse.cz>
26913
26914 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26915 Local comdats are not externally visible.
26916 * symtab.c (dump_symtab_base): Dump externally visible.
26917 (verify_symtab_base): Verify back links in the symtab hash.
26918
26919 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26920
26921 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26922 CONVERT_EXPR as equal nodes.
26923
26924 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26925
26926 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26927
26928 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26929
26930 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26931 Generalize to complex and vector.
26932 * tree.c (build_all_ones_cst): New function.
26933 * tree.h (build_all_ones_cst): Declare it.
26934
26935 2013-06-13 Alan Modra <amodra@gmail.com>
26936
26937 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26938 * config/rs6000/rs6000.md (signbittf2): New insn.
26939 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26940 (abstf2_internal, cmptf_internal2): Likewise.
26941 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26942
26943 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26944 Pat Haugen <pthaugen@us.ibm.com>
26945 Peter Bergner <bergner@vnet.ibm.com>
26946
26947 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26948 power8 byte, half-word, and quad-word atomic instructions.
26949 (emit_store_conditional): Likewise.
26950 (rs6000_expand_atomic_compare_and_swap): Likewise.
26951 (rs6000_expand_atomic_op): Likewise.
26952
26953 * config/rs6000/sync.md (larx): Add new modes for power8.
26954 (stcx): Likewise.
26955 (AINT): New mode iterator to include TImode as well as normal
26956 integer modes on power8.
26957 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26958 that VSX registers are not considered. Use AINT mode iterator
26959 instead of INT1 to allow inclusion of quad word atomic operations
26960 on power8.
26961 (load_locked<mode>): Likewise.
26962 (store_conditional<mode>): Likewise.
26963 (atomic_compare_and_swap<mode>): Likewise.
26964 (atomic_exchange<mode>): Likewise.
26965 (atomic_nand<mode>): Likewise.
26966 (atomic_fetch_<fetchop_name><mode>): Likewise.
26967 (atomic_nand_fetch<mode>): Likewise.
26968 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26969 each type.
26970 (ATOMIC): On power8, add QImode, HImode modes.
26971 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26972 modes that promote to SImode.
26973 (load_lockedti): Convert TImode arguments to PTImode, so that we
26974 get a guaranteed even/odd register pair.
26975 (load_lockedpti): Likewise.
26976 (store_conditionalti): Likewise.
26977 (store_conditionalpti): Likewise.
26978
26979 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26980 atomic load/store instructions.
26981 (HSI): Likewise.
26982
26983 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26984
26985 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26986 loads.
26987 (insn_count): New attribute, with most cases extracted from...
26988 (length): ...here. Redefine most cases in terms of insn_count.
26989 (single_insn): Delete.
26990 (can_delay): Use insn_count to check for single instructions.
26991 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26992 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26993 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26994 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26995 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26996 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26997 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26998 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26999 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
27000 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
27001 rather than "length".
27002 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
27003 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
27004 Use "insn_count" rather than "length".
27005 * config/mips/mips-dsp.md
27006 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27007 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27008 length attributes.
27009
27010 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
27011
27012 PR tree-optimization/57361
27013 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27014
27015 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
27016
27017 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27018 to split.
27019 (aarch64_simd_combine<mode>): New instruction expansion.
27020 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27021 function prototype.
27022 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27023 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27024
27025 2013-06-12 Jan Hubicka <jh@suse.cz>
27026
27027 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27028 decl has when in streaming stage.
27029 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27030 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27031
27032 2013-06-12 Roland Stigge <stigge@antcom.de>
27033
27034 PR target/57578
27035 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27036
27037 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27038
27039 PR tree-optimization/57537
27040 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27041 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27042
27043 2013-06-12 Richard Biener <rguenther@suse.de>
27044
27045 * data-streamer.h (streamer_write_char_stream): CSE
27046 obs->current_pointer.
27047 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27048 streamer_write_char_stream manually and optimize the resulting loop.
27049 (streamer_write_hwi_stream): Likewise.
27050
27051 2013-06-12 Jan Hubicka <jh@suse.cz>
27052
27053 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27054 * cgraph.h (varpool_create_empty_node): Declare.
27055 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27056 duplicated nodes.
27057 * symtab.c (symtab_unregister_node): Be lax about missin entries
27058 in node hash.
27059 (symtab_get_node): Update comment.
27060 * varpool.c (varpool_create_empty_node): Break out from ...
27061 (varpool_node_for_decl): ... here.
27062 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27063
27064 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
27065
27066 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27067 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27068 part. Use straight-line flow at the end.
27069 <COMPONENT_REF>: Remove superfluous else.
27070 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27071
27072 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27073
27074 PR target/56564
27075 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27076 target hook even for !TREE_PUBLIC decls. If no resolution info
27077 is available, return false for common and external decls.
27078
27079 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27080
27081 * config/rl78/constraints.md (U): New constraint.
27082 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27083 valloc attribute.
27084
27085 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27086
27087 PR target/57589
27088 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27089 to allow returning address to AT_PLATFORM name.
27090
27091 2013-06-11 Jan Hubicka <jh@suse.cz>
27092
27093 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27094 * cgraph.h (symtab_node_base): Add weakref flag.
27095 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27096 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27097 (output_weakrefs): Use weakref flag.
27098 * fold-const.c (simple_operand_p): Handle WEAK.
27099 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27100 * ipa.c (varpool_externally_visible_p): Drop weakref.
27101 (function_and_variable_visibility): Update comment; fix weakref
27102 sanity checks; do not clear DECL_WEAK on them.
27103 * lto-cgraph.c (lto_output_node): update.
27104 (lto_output_varpool_node): Update.
27105 (input_overwrite_node): Update.
27106 (input_node): Update.
27107 (input_varpool_node): Update.
27108 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27109 (lto_symtab_merge_symbols): Add sanity check.
27110 (lto_symtab_prevailing_decl): Do not special case weakrefs.
27111 * passes.c (rest_of_decl_compilation): Set static flag, too.
27112 * symtab.c (dump_symtab_base): Dump weakref.
27113 (verify_symtab_base): Sanity check weakrefs.
27114 (symtab_make_decl_local): Remove duplicated code.
27115 (symtab_alias_ultimate_target): Simplify.
27116 * varpool.c (varpool_create_variable_alias): Set weakref flag.
27117
27118 2013-06-11 Tom de Vries <tom@codesourcery.com>
27119
27120 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
27121 sequence_vect == NULL.
27122
27123 2013-06-11 DJ Delorie <dj@redhat.com>
27124
27125 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27126 (rl78_unwind_word_mode): New.
27127
27128 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27129
27130 * final.c (debug_prefix_maps): Make static.
27131
27132 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27133
27134 * function.c (initial_trampoline): Remove stray copy.
27135
27136 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
27137
27138 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27139
27140 2013-06-11 Martin Jambor <mjambor@suse.cz>
27141
27142 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27143 within bounds at the beginning of the function.
27144
27145 2013-06-11 Alan Modra <amodra@gmail.com>
27146
27147 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
27148 reporting.
27149 (get_named_section): Don't NULL !DECL_P decl.
27150
27151 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
27152
27153 * doc/invoke.texi (core-avx2): Document.
27154 (slm): Likewise.
27155 (atom): Updated with MOVBE.
27156
27157 2013-06-11 Richard Biener <rguenther@suse.de>
27158
27159 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27160
27161 2013-06-11 Anton Blanchard <anton@samba.org>
27162
27163 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27164 correct shift value in little-endian mode.
27165
27166 2013-06-11 Jakub Jelinek <jakub@redhat.com>
27167
27168 PR target/56564
27169 * varasm.c (get_variable_align): Move #endif to the right place.
27170
27171 2013-06-10 Cary Coutant <ccoutant@google.com>
27172
27173 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27174 for hash so that hash table traversal order is deterministic.
27175
27176 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27177 Pat Haugen <pthaugen@us.ibm.com>
27178 Peter Bergner <bergner@vnet.ibm.com>
27179
27180 * config/rs6000/vector.md (GPR move splitter): Do not split moves
27181 of vectors in GPRS if they are direct moves or quad word load or
27182 store moves.
27183
27184 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27185 declaration.
27186 (direct_move_p): Likewise.
27187 (quad_load_store_p): Likewise.
27188
27189 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27190 classes into bins based on the physical register type.
27191 (reg_class_to_reg_type): Likewise.
27192 (IS_STD_REG_TYPE): Likewise.
27193 (IS_FP_VECT_REG_TYPE): Likewise.
27194 (reload_fpr_gpr): Arrays to determine what insn to use if we can
27195 use direct move instructions.
27196 (reload_gpr_vsx): Likewise.
27197 (reload_vsx_gpr): Likewise.
27198 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27199 information that is a simplification of register classes. Also
27200 precalculate direct move reload helpers.
27201 (direct_move_p): New function to return true if the operation can
27202 be done as a direct move instruciton.
27203 (quad_load_store_p): New function to return true if the operation
27204 is a quad memory operation.
27205 (rs6000_legitimize_address): If quad memory, only allow register
27206 indirect for TImode addresses.
27207 (rs6000_legitimate_address_p): Likewise.
27208 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27209 (rs6000_reload_register_type): Likewise.
27210 (register_to_reg_type): Return register type.
27211 (rs6000_secondary_reload_simple_move): New helper function for
27212 secondary reload and secondary memory needed to identify anything
27213 that is a simple move, and does not need reloading.
27214 (rs6000_secondary_reload_direct_move): New helper function for
27215 secondary reload to identify cases that can be done with several
27216 instructions via the direct move instructions.
27217 (rs6000_secondary_reload_move): New helper function for secondary
27218 reload to identify moves between register types that can be done.
27219 (rs6000_secondary_reload): Add support for quad memory operations
27220 and for direct move.
27221 (rs6000_secondary_memory_needed): Likewise.
27222 (rs6000_debug_secondary_memory_needed): Change argument names.
27223 (rs6000_output_move_128bit): New function to return the move to
27224 use for 128-bit moves, including knowing about the various
27225 limitations of quad memory operations.
27226
27227 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27228 memory operations. call rs6000_output_move_128bit for the actual
27229 instruciton(s) to generate.
27230 (vsx_movti_64bit): Likewise.
27231
27232 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27233 (UNSPEC_P8V_MTVSRWZ): Likewise.
27234 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27235 (UNSPEC_P8V_MTVSRD): Likewise.
27236 (UNSPEC_P8V_XXPERMDI): Likewise.
27237 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27238 (UNSPEC_FUSION_GPR): Likewise.
27239 (FMOVE128_GPR): New iterator for direct move.
27240 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27241 (f32_sv): Likewise.
27242 (f32_dm): Likewise.
27243 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27244 loads and direct move instructions.
27245 (zero_extendsidi2_lfiwzx): Likewise.
27246 (extendsidi2_lfiwax): Likewise.
27247 (extendsidi2_nocell): Likewise.
27248 (floatsi<mode>2_lfiwax): Likewise.
27249 (lfiwax): Likewise.
27250 (floatunssi<mode>2_lfiwzx): Likewise.
27251 (lfiwzx): Likewise.
27252 (fix_trunc<mode>_stfiwx): Likewise.
27253 (fixuns_trunc<mode>_stfiwx): Likewise.
27254 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27255 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27256 (parity<mode>2_cmpb): Set length/type attr.
27257 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27258 for 'mr.' to fast_compare.
27259 (bpermd_<mode>): Change type attr to popcnt.
27260 (p8_fmrgow_<mode>): New insns for power8 direct move support.
27261 (p8_mtvsrwz_1): Likewise.
27262 (p8_mtvsrwz_2): Likewise.
27263 (reload_fpr_from_gpr<mode>): Likewise.
27264 (p8_mtvsrd_1): Likewise.
27265 (p8_mtvsrd_2): Likewise.
27266 (p8_xxpermdi_<mode>): Likewise.
27267 (reload_vsx_from_gpr<mode>): Likewise.
27268 (reload_vsx_from_gprsf): Likewise.
27269 (p8_mfvsrd_3_<mode>): LIkewise.
27270 (reload_gpr_from_vsx<mode>): Likewise.
27271 (reload_gpr_from_vsxsf): Likewise.
27272 (p8_mfvsrd_4_disf): Likewise.
27273 (multi-word GPR splits): Do not split direct moves or quad memory
27274 operations.
27275
27276 2013-06-10 David Malcolm <dmalcolm@redhat.com>
27277
27278 * tree-into-ssa.c (interesting_blocks): Make static.
27279
27280 2013-06-10 Jakub Jelinek <jakub@redhat.com>
27281
27282 PR target/56564
27283 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27284 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27285 Use DATA_ABI_ALIGNMENT for that case instead if defined.
27286 (get_variable_align): New function.
27287 (get_variable_section, emit_bss, emit_common,
27288 assemble_variable_contents, place_block_symbol): Use
27289 get_variable_align instead of DECL_ALIGN.
27290 (assemble_noswitch_variable): Add align argument, use it
27291 instead of DECL_ALIGN.
27292 (assemble_variable): Adjust caller. Use get_variable_align
27293 instead of DECL_ALIGN.
27294 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27295 caller.
27296 (DATA_ABI_ALIGNMENT): Define.
27297 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27298 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
27299 opt is false, only return the psABI mandated alignment increase.
27300 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27301 (DATA_ABI_ALIGNMENT): ... this.
27302 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27303 (DATA_ABI_ALIGNMENT): ... this.
27304 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27305 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27306 (DATA_ABI_ALIGNMENT): ... this.
27307 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27308 * doc/tm.texi: Regenerated.
27309
27310 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
27311
27312 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27313 cmp_code to construct REG_EQUAL note.
27314
27315 2013-06-09 Jakub Jelinek <jakub@redhat.com>
27316
27317 PR target/57568
27318 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27319 that operands[2] doesn't overlap with operands[0].
27320
27321 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
27322 Jan Hubicka <jh@suse.cz>
27323
27324 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27325 hack to mark symbols as used.
27326
27327 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
27328
27329 PR rtl-optimization/57559
27330 * lra-constraints.c (process_alt_operands): Don't discourage
27331 memory with known offset for offsetable memory constraint.
27332 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27333
27334 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
27335
27336 * varasm.c (struct oc_local_state): Reorder fields.
27337 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27338 and adjust accordingly.
27339 (output_constructor): Reorder initialization code and adjust call to
27340 output_constructor_bitfield.
27341
27342 2013-06-07 Jan Hubicka <jh@suse.cz>
27343
27344 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27345
27346 2013-06-07 David Malcolm <dmalcolm@redhat.com>
27347
27348 * tree-object-size.c (unknown): Make const.
27349
27350 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27351
27352 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27353 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27354 for last alternative in the cpu_facility attribute.
27355
27356 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27357
27358 PR target/56315
27359 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27360 (xordi3): Change operand 2 constraint to arm_xordi_operand.
27361 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27362 * config/arm/constraints.md (Dg): New constraint.
27363 * config/arm/neon.md (xordi3_neon): Remove.
27364 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27365 * config/arm/predicates.md (arm_xordi_operand): New predicate.
27366
27367 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27368
27369 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27370 Clean up alternatives.
27371
27372 2013-06-07 Alan Modra <amodra@gmail.com>
27373
27374 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27375 va_list_gpr_size.
27376
27377 2013-06-07 Alan Modra <amodra@gmail.com>
27378
27379 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27380
27381 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27382
27383 * config/arm/constraints.md (Df): New constraint.
27384 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27385 Correct length attribute for last two alternatives.
27386
27387 2013-06-07 Alan Modra <amodra@gmail.com>
27388
27389 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27390 override user -mfp-in-toc.
27391 (offsettable_ok_by_alignment): Consider just the current access
27392 rather than the whole object, unless BLKmode. Handle
27393 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27394 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27395 for -mcmodel=medium.
27396 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27397 override user -mfp-in-toc or -msum-in-toc. Default to
27398 -mno-fp-in-toc for -mcmodel=medium.
27399
27400 2013-06-06 DJ Delorie <dj@redhat.com>
27401
27402 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27403 TARGET_VALID_POINTER_MODE.
27404
27405 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27406 Pat Haugen <pthaugen@us.ibm.com>
27407 Peter Bergner <bergner@vnet.ibm.com>
27408
27409 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27410 Document new power8 builtins.
27411
27412 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27413 condition code register, to allow 128-bit logical operations to be
27414 done in the VSX or GPR registers.
27415 (nor<mode>3): Use the canonical form for nor.
27416 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27417 vclz*, and vpopcnt* vector instructions.
27418 (nand<mode>3): Likewise.
27419 (orc<mode>3): Likewise.
27420 (clz<mode>2): LIkewise.
27421 (popcount<mode>2): Likewise.
27422
27423 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27424 that only the GPRs are recognized.
27425
27426 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27427 support for new power8 builtins.
27428
27429 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27430 builtin functions.
27431 (xscvdpspn): Likewise.
27432 (vclz): Likewise.
27433 (vclzb): Likewise.
27434 (vclzh): Likewise.
27435 (vclzw): Likewise.
27436 (vclzd): Likewise.
27437 (vpopcnt): Likewise.
27438 (vpopcntb): Likewise.
27439 (vpopcnth): Likewise.
27440 (vpopcntw): Likewise.
27441 (vpopcntd): Likewise.
27442 (vgbbd): Likewise.
27443 (vmrgew): Likewise.
27444 (vmrgow): Likewise.
27445 (eqv): Likewise.
27446 (eqv_v16qi3): Likewise.
27447 (eqv_v8hi3): Likewise.
27448 (eqv_v4si3): Likewise.
27449 (eqv_v2di3): Likewise.
27450 (eqv_v4sf3): Likewise.
27451 (eqv_v2df3): Likewise.
27452 (nand): Likewise.
27453 (nand_v16qi3): Likewise.
27454 (nand_v8hi3): Likewise.
27455 (nand_v4si3): Likewise.
27456 (nand_v2di3): Likewise.
27457 (nand_v4sf3): Likewise.
27458 (nand_v2df3): Likewise.
27459 (orc): Likewise.
27460 (orc_v16qi3): Likewise.
27461 (orc_v8hi3): Likewise.
27462 (orc_v4si3): Likewise.
27463 (orc_v2di3): Likewise.
27464 (orc_v4sf3): Likewise.
27465 (orc_v2df3): Likewise.
27466
27467 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27468 allow power8 quad mode in 64-bit.
27469 (rs6000_builtin_vectorized_function): Add support to vectorize
27470 ISA 2.07 count leading zeros, population count builtins.
27471 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27472 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27473 (builtin_function_type): Add vgbbd builtin function which takes an
27474 unsigned argument.
27475 (altivec_expand_vec_perm_const): Add support for new power8 merge
27476 instructions.
27477
27478 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27479 that does not include TImdoe for use with 32-bit.
27480 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27481 instructions.
27482 (UNSPEC_VSX_CVDPSPN): Likewise.
27483 (vsx_xscvdpspn): Likewise.
27484 (vsx_xscvspdpn): Likewise.
27485 (vsx_xscvdpspn_scalar): Likewise.
27486 (vsx_xscvspdpn_directmove): Likewise.
27487 (vsx_and<mode>3): Split logical operations into 32-bit and
27488 64-bit. Add support to do logical operations on TImode as well as
27489 VSX vector types. Allow logical operations to be done in either
27490 VSX registers or in general purpose registers in 64-bit mode. Add
27491 splitters if GPRs were used. For AND, add clobber of CCmode to
27492 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27493 encoding.
27494 (vsx_and<mode>3_32bit): Likewise.
27495 (vsx_and<mode>3_64bit): Likewise.
27496 (vsx_ior<mode>3): Likewise.
27497 (vsx_ior<mode>3_32bit): Likewise.
27498 (vsx_ior<mode>3_64bit): Likewise.
27499 (vsx_xor<mode>3): Likewise.
27500 (vsx_xor<mode>3_32bit): Likewise.
27501 (vsx_xor<mode>3_64bit): Likewise.
27502 (vsx_one_cmpl<mode>2): Likewise.
27503 (vsx_one_cmpl<mode>2_32bit): Likewise.
27504 (vsx_one_cmpl<mode>2_64bit): Likewise.
27505 (vsx_nor<mode>3): Likewise.
27506 (vsx_nor<mode>3_32bit): Likewise.
27507 (vsx_nor<mode>3_64bit): Likewise.
27508 (vsx_andc<mode>3): Likewise.
27509 (vsx_andc<mode>3_32bit): Likewise.
27510 (vsx_andc<mode>3_64bit): Likewise.
27511 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27512 and xxlorc instructions.
27513 (vsx_eqv<mode>3_64bit): Likewise.
27514 (vsx_nand<mode>3_32bit): Likewise.
27515 (vsx_nand<mode>3_64bit): Likewise.
27516 (vsx_orc<mode>3_32bit): Likewise.
27517 (vsx_orc<mode>3_64bit): Likewise.
27518
27519 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27520
27521 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27522 instruction.
27523 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27524 (p8_vmrgow): Likewise.
27525 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27526 GPRs to be split under VSX.
27527 (p8v_clz<mode>2): Add power8 count leading zero support.
27528 (p8v_popcount<mode>2): Add power8 population count support.
27529 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27530 support.
27531
27532 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27533 instruction.
27534
27535 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27536 builtin functions.
27537 (vec_nand): Likewise.
27538 (vec_vclz): Likewise.
27539 (vec_vclzb): Likewise.
27540 (vec_vclzd): Likewise.
27541 (vec_vclzh): Likewise.
27542 (vec_vclzw): Likewise.
27543 (vec_vgbbd): Likewise.
27544 (vec_vmrgew): Likewise.
27545 (vec_vmrgow): Likewise.
27546 (vec_vpopcnt): Likewise.
27547 (vec_vpopcntb): Likewise.
27548 (vec_vpopcntd): Likewise.
27549 (vec_vpopcnth): Likewise.
27550 (vec_vpopcntw): Likewise.
27551
27552 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27553
27554 PR rtl-optimization/57468
27555 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27556 spilled pseudos.
27557
27558 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27559
27560 PR rtl-optimization/57459
27561 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27562 type when setting live regs.
27563
27564 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27565
27566 * config/s390/s390.opt (mlra): New option.
27567 * config/s390/s390.c (s390_decompose_address): Check displacement
27568 for all registers for LRA.
27569 (s390_secondary_reload): Don't used secondary reloads for LRA.
27570 (s390_lra_p): New function.
27571 (TARGET_LRA_P): Define.
27572 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27573 of attribute cpu_facility to zarch for the last alternative.
27574 (*cmpmem_short): Ditto.
27575
27576 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27577
27578 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27579 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27580 (arm_expand_prologue): Likewise.
27581
27582 2013-06-06 Teresa Johnson <tejohnson@google.com>
27583
27584 PR c++/53743
27585 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27586 as this is now done by redirect_edge_and_branch_force.
27587 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27588 barriers, and fix interaction with splitting.
27589 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27590 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27591 reflect changes made in the routine.
27592 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27593 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27594 since this is called in cfglayout mode, and replace partition fixup
27595 with assert as that is now done by force_nonfallthru_and_redirect.
27596 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27597 already be marked with region crossing note.
27598 (insert_section_boundary_note): Make non-static, gate on flag
27599 has_bb_partition, rewrite to also check for multiple partitions.
27600 (rest_of_handle_reorder_blocks): Remove call to
27601 insert_section_boundary_note, now done later during free_cfg.
27602 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27603 * bb-reorder.h (insert_section_boundary_note): Declare.
27604 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27605 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27606 invoke insert_section_boundary_note.
27607 (try_redirect_by_replacing_jump): Remove unnecessary
27608 check for region crossing note.
27609 (fixup_partition_crossing): New function.
27610 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27611 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27612 in non-cfglayout mode.
27613 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27614 remove old code that tried to do this. Emit barrier correctly
27615 when we are in cfglayout mode.
27616 (last_bb_in_partition): New function.
27617 (rtl_split_edge): Correctly fixup partition boundaries.
27618 (commit_one_edge_insertion): Remove old code that tried to
27619 fixup region crossing edge since this is now handled in
27620 split_block, and set up insertion point correctly since
27621 block may now end in a jump.
27622 (verify_hot_cold_block_grouping): Guard against checking when not in
27623 linearized RTL mode.
27624 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27625 notes.
27626 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27627 rtl_verify_flow_info, so not called in cfglayout mode.
27628 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27629 (fixup_reorder_chain): Remove old code that attempted to fixup region
27630 crossing note as this is now handled in force_nonfallthru_and_redirect.
27631 (duplicate_insn_chain): Don't duplicate switch section notes.
27632 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27633 note.
27634 * basic-block.h (emit_barrier_after_bb): Declare.
27635
27636 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27637
27638 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27639 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27640 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27641
27642 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27643
27644 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27645 where appropriate.
27646 * config/arm/ldmstm.md: Regenerate.
27647
27648 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27649
27650 * config/arm/sync.md (atomic_loaddi_1):
27651 Disable predication for arm_restrict_it.
27652 (arm_load_exclusive<mode>): Likewise.
27653 (arm_load_exclusivesi): Likewise.
27654 (arm_load_exclusivedi): Likewise.
27655 (arm_load_acquire_exclusive<mode>): Likewise.
27656 (arm_load_acquire_exclusivesi): Likewise.
27657 (arm_load_acquire_exclusivedi): Likewise.
27658 (arm_store_exclusive<mode>): Likewise.
27659 (arm_store_exclusive<mode>): Likewise.
27660 (arm_store_release_exclusivedi): Likewise.
27661 (arm_store_release_exclusive<mode>): Likewise.
27662
27663 2013-06-06 Richard Biener <rguenther@suse.de>
27664
27665 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27666 after LTO_null.
27667 (lto_tag_is_tree_code_p): Adjust.
27668 (lto_tag_is_gimple_code_p): Likewise.
27669 (lto_gimple_code_to_tag): Likewise.
27670 (lto_tag_to_gimple_code): Likewise.
27671 (lto_tree_code_to_tag): Likewise.
27672 (lto_tag_to_tree_code): Likewise.
27673 * data-streamer.h (streamer_write_hwi_in_range): Use
27674 uhwi streaming to stream the normalized range.
27675 (streamer_read_hwi_in_range): Likewise.
27676
27677 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27678
27679 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27680 (predicable_short_it): Likewise.
27681 (predicated): Likewise.
27682 (enabled): Handle above.
27683 (define_cond_exec): Set predicated attribute to yes.
27684
27685 2013-06-05 Mike Stump <mikestump@comcast.net>
27686
27687 * gdbinit.in (__FUNCTION__): Add.
27688
27689 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27690
27691 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27692 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27693
27694 2013-06-05 Jan Hubicka <jh@suse.cz>
27695
27696 * varasm.c (mark_decl_referenced): Revert the removal until targets
27697 are fixed.
27698
27699 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27700
27701 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27702 instead of mark_decl_referenced.
27703
27704 2013-06-05 Jan Hubicka <jh@suse.cz>
27705
27706 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27707 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27708 and symtab_used_from_object_file_p.
27709 (cgraph_make_node_local_1): Clear forced_by_abi.
27710 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27711 * cgraph.h (symtab_node_base): Add forced_by_abi.
27712 (decide_is_variable_needed): Remove.
27713 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27714 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27715 (decide_is_symbol_needed): ... this one; handle symbols in general;
27716 always analyze virtuals; honnor forced_by_abi.
27717 (cgraph_finalize_function): Update.
27718 (varpool_finalize_decl): Update.
27719 (symbol_defined_and_needed): Remove.
27720 (analyze_functions): Update.
27721 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27722 output_refs, input_overwrite_node): Handle forced_by_abi.
27723 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27724 (address_taken_from_non_vtable_p): ... this one.
27725 (comdat_can_be_unshared_p_1): New function.
27726 (cgraph_comdat_can_be_unshared_p): Rename to ...
27727 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27728 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27729 (function_and_variable_visibility): Clear forced_by_abi as needed.
27730 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27731 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27732 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27733 * varpool.c (decide_is_variable_needed): Remove.
27734
27735 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27736
27737 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27738 (arm_option_override): Override arm_restrict_it where appropriate.
27739 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27740 * config/arm/arm.opt (mrestrict-it): New command-line option.
27741 * doc/invoke.texi: Document -mrestrict-it.
27742
27743 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27744
27745 * tsan.c (tsan_atomic_table): Make const.
27746
27747 2013-06-05 Richard Biener <rguenther@suse.de>
27748
27749 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27750 index associated with the tree we are supposed to replace.
27751 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27752 TREE_ASM_WRITTEN as zero for everything but SSA names.
27753
27754 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27755
27756 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27757
27758 2013-06-04 Jan Hubicka <jh@suse.cz>
27759
27760 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27761 (input_node, input_varpool_node): Handle correctly external same
27762 body aliases.
27763 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27764 nodes at ltrans stage.
27765
27766 2013-06-04 Jan Hubicka <jh@suse.cz>
27767
27768 * ipa-inline.c (update_caller_keys): Fix availability test.
27769 (update_callee_keys): Likewise.
27770 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27771 to follow ELF standard.
27772
27773 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27774
27775 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27776 (mips64r5900el-*-elf*): New configurations.
27777 * config/mips/mips-cpus.def (r5900): New processor.
27778 * config/mips/mips-tables.opt: Regenerate.
27779 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27780 (mips_issue_rate): Handle PROCESSOR_R5900.
27781 (mips_reorg_process_insns): Force reorder mode for the R5900.
27782 * config/mips/mips.h (TARGET_MIPS5900): Define.
27783 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27784 TARGET_MIPS5900.
27785 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27786 TARGET_MIPS5900.
27787 * config/mips/mips.md (processor): Add r5900.
27788 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27789
27790 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27791
27792 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27793 into function to generate MOVI instruction.
27794 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27795 (aarch64_preferred_simd_mode): Turn into wrapper.
27796 (aarch64_output_scalar_simd_mov_immediate): New function.
27797 * config/aarch64/aarch64-protos.h: Add prototype for above.
27798
27799 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27800
27801 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27802 element_char member.
27803 (sizetochar): Return signed char.
27804 (aarch64_simd_valid_immediate): Remove elchar and other
27805 unnecessary variables.
27806 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27807 Calculate element_char as required.
27808 * config/aarch64/aarch64-protos.h: Update and move prototype
27809 for aarch64_output_simd_mov_immediate.
27810 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27811 Update arguments.
27812
27813 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27814
27815 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27816 information completed by aarch64_simd_valid_immediate.
27817 (aarch64_legitimate_constant_p): Update arguments.
27818 (aarch64_simd_valid_immediate): Work with struct rather than many
27819 pointers.
27820 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27821 (aarch64_simd_make_constant): Update arguments.
27822 (aarch64_output_simd_mov_immediate): Work with struct rather than
27823 many pointers. Output immediate directly rather than as operand.
27824 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27825 Update prototype.
27826 * config/aarch64/constraints.md (Dn): Update arguments.
27827
27828 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27829
27830 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27831 longer static.
27832 (aarch64_simd_immediate_valid_for_move): Remove.
27833 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27834 (aarch64_simd_make_constant): Update call.
27835 (aarch64_output_simd_mov_immediate): Update call.
27836 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27837 Add prototype.
27838 * config/aarch64/constraints.md (Dn): Update call.
27839
27840 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27841
27842 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27843 return type to bool for prototype.
27844 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27845 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27846 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27847
27848 2013-06-04 Catherine Moore <clm@codesourcery.com>
27849
27850 * config/mips/mips.opt (meva): New.
27851 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27852 (ASM_SPEC): Handle -meva.
27853 * doc/invoke.texi (meva): Document.
27854
27855 2013-06-04 Alan Modra <amodra@gmail.com>
27856
27857 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27858 constant output.
27859
27860 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27861
27862 * rtl.def: Add extra fourth optional field to define_cond_exec.
27863 * gensupport.c (process_one_cond_exec): Process attributes from
27864 define_cond_exec.
27865 * doc/md.texi: Document fourth field in define_cond_exec.
27866
27867 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27868
27869 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27870 out the processing order as in store_bit_field_1.
27871
27872 2013-06-04 Jan Hubicka <jh@suse.cz>
27873
27874 PR middle-end/57500
27875 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27876 non-VAR_DECL node if it does not exist yet.
27877
27878 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27879
27880 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27881 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27882 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27883 target_cpu_default setting.
27884
27885 2013-06-03 Teresa Johnson <tejohnson@google.com>
27886
27887 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27888 default to -fopt-info=optimized instead of all.
27889 * doc/invoke.texi: Ditto.
27890 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27891 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27892 (execute_vect_slp): Emit BB vectorization success under
27893 MSG_OPTIMIZED_LOCATIONS.
27894 * tree-vect-slp.c (vect_slp_transform_bb): Change
27895 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27896 * tree-vect-loop.c (vect_transform_loop): Ditto.
27897
27898 2013-06-03 Jason Merrill <jason@redhat.com>
27899
27900 PR c++/57415
27901 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27902 Use TARGET_EXPR for C++.
27903
27904 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27905
27906 PR rtl-optimization/57268
27907 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27908 if DEBUG_INSN_P (insn).
27909
27910 Reapply
27911 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27912
27913 PR rtl-optimization/57268
27914 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27915 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27916
27917 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27918
27919 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27920 (ix86_avoid_lea_for_addr): Likewise.
27921 (exact_dependency_1): Likewise.
27922 (ix86_adjust_cost): Likewise.
27923 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27924 removed.
27925 (do_reorder_for_imul): Fix typo, formatting and
27926 !reload_completed check removed.
27927 (ix86_sched_reorder): Fix typo and formatting.
27928 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27929 list.
27930
27931 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27932
27933 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27934
27935 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27936
27937 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27938 <STRING_CST>: Likewise.
27939 <VECTOR_CST>: Likewise.
27940
27941 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27942 Mikael Morin <mikael@gcc.gnu.org>
27943
27944 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27945 * config.in: Regenerated.
27946 * configure: Regenerated.
27947
27948 2013-06-01 Jan Hubicka <jh@suse.cz>
27949
27950 PR middle-end/57366
27951 * cgraphunit.c (compile): When weakref is not supported,
27952 set up transparent aliases before final output pass.
27953 * varasm.c (assemble_alias): Do not try to do it here.
27954
27955 2013-06-01 Jan Hubicka <jh@suse.cz>
27956
27957 PR middle-end/57467
27958 * passes.c (for_per_function): Skip unanalyzed functions.
27959
27960 2013-06-01 Jan Hubicka <jh@suse.cz>
27961
27962 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27963 (lto_symtab_merge_symbols_1): ... this one.
27964 (lto_symtab_merge_cgraph_nodes): Rename to ...
27965 (lto_symtab_merge_symbols): ... this one; simplify.
27966 * cgraph.c (same_body_aliases_done): Rename to ...
27967 (cpp_implicit_aliases_done): ... this one.
27968 (cgraph_create_function_alias): Update.
27969 (cgraph_same_body_alias): Update.
27970 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27971 (verify_edge_corresponds_to_fndecl): Simplify.
27972 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27973 (cgraph_node): Remove same_body_alias.
27974 (varpool_node): Remove alias_of and extra_name_alias.
27975 (same_body_aliases_done): Rename to ..
27976 (cpp_implicit_aliases_done): ... this one.
27977 (symtab_alias_ultimate_target): Add default parameter.
27978 (symtab_resolve_alias): New function.
27979 (fixup_same_cpp_alias_visibility): Declare.
27980 (cgraph_function_node): Add default parameter.
27981 (cgraph_node_asm_name): Likewise.
27982 (cgraph_function_or_thunk_node): Add default parameter; do
27983 not ICE when it is NULL.
27984 (varpool_variable_node): Likewise.
27985 * tree-emutls.c (create_emultls_var): Update.
27986 (ipa_lower_emutls): Update.
27987 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27988 (cgraph_reset_node): Reset alias info.
27989 (cgraph_finalize_function): Update.
27990 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27991 (analyze_function): Simplify.
27992 (cgraph_process_same_body_aliases): Simplify.
27993 (analyze_functions): Fixup same body aliases.
27994 (handle_alias_pairs): Simplify.
27995 (assemble_thunk): Update.
27996 (assemble_thunks_and_aliases): Update.
27997 (output_weakrefs): Rewrite.
27998 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27999 (lto_output_varpool_node): Likewise.
28000 (compute_ltrans_boundary): Remve assert.
28001 (get_alias_symbol): New functoin.
28002 (input_node): Rewrite alias handling.
28003 (input_varpool_node): Likewise.
28004 * ipa-pure-const.c (propagate_pure_const): Fix formating.
28005 * ipa.c (process_references): Handle weakrefs correctly.
28006 (symtab_remove_unreachable_nodes): Likewise.
28007 * trans-mem.c (get_cg_data): Update.
28008 (ipa_tm_create_version_alias): Update.
28009 (ipa_tm_execute): Update.
28010 * symtab.c (dump_symtab_base): Dump aliases.
28011 (verify_symtab_base): Verify aliases.
28012 (symtab_node_availability): New function.
28013 (symtab_alias_ultimate_target): Simplify.
28014 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28015 handle all the fixup cases.
28016 (symtab_resolve_alias): New function.
28017 * passes.c (ipa_write_summaries): Handle weakrefs.
28018 * varpool.c (varpool_analyze_node): Simplify.
28019 (assemble_aliases): Update.
28020 (varpool_create_variable_alias): Simplify.
28021 (varpool_extra_name_alias): Simplify.
28022 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28023 (lto_symtab_merge_symbols): ... this one.
28024
28025 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
28026
28027 Revert
28028 PR rtl-optimization/57268
28029 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28030 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28031
28032 2013-06-01 Tobias Burnus <burnus@net-b.de>
28033
28034 Partially reverted:
28035 2013-05-31 Tobias Burnus <burnus@net-b.de>
28036
28037 PR middle-end/57073
28038 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28039 further up.
28040
28041 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28042
28043 PR rtl-optimization/57268
28044 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28045 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28046
28047 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28048
28049 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28050 unordered comparison operators when -fno-trapping-math is in effect
28051 on the e500.
28052 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28053 and implement unordered comparison operators properly on the e500.
28054
28055 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28056
28057 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28058 for constant scalar integers.
28059 (simplify_relational_operation_1): Likewise.
28060
28061 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
28062
28063 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28064 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
28065 Fix comment.
28066
28067 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28068 Igor Zamyatin <igor.zamyatin@intel.com>
28069
28070 Silvermont (SLM) architecture performance tuning.
28071 * config/i386/i386.h (enum ix86_tune_indices): Add
28072 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28073 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28074
28075 * config/i386/i386.c (initial_ix86_tune_features)
28076 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28077 (ix86_lea_outperforms): Handle Silvermont tuning.
28078 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28079 call.
28080 (ix86_use_lea_for_mov): Likewise.
28081 (ix86_avoid_lea_for_addr): Likewise.
28082 (ix86_lea_for_add_ok): Likewise.
28083 (exact_dependency_1): New function.
28084 (exact_store_load_dependency): Likewise.
28085 (ix86_adjust_cost): Handle Silvermont tuning.
28086 (do_reoder_for_imul): Likewise.
28087 (swap_top_of_ready_list): New function.
28088 (ix86_sched_reorder): Changed to handle Silvermont tuning.
28089
28090 * config/i386/i386.md (peepholes that split memory operand in fp
28091 converts): New.
28092
28093 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28094
28095 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28096 Remove un-necessary braces.
28097
28098 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28099
28100 * config/aarch64/aarch64.c (aarch64_classify_symbol):
28101 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28102
28103 2013-05-31 Tobias Burnus <burnus@net-b.de>
28104
28105 PR middle-end/57073
28106 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28107
28108 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28109
28110 PR target/56315
28111 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28112 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28113 * config/arm/neon.md (iordi3_neon): Remove.
28114 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28115 * config/arm/predicates.md (imm_for_neon_logic_operand):
28116 Move to earlier in the file.
28117 (neon_logic_op2): Likewise.
28118 (arm_iordi_operand_neon): New predicate.
28119
28120 2013-05-31 Richard Biener <rguenther@suse.de>
28121
28122 PR tree-optimization/57478
28123 PR tree-optimization/57453
28124 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28125 are life as well.
28126
28127 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28128
28129 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28130 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28131
28132 2013-05-30 Tobias Burnus <burnus@net-b.de>
28133 Thomas Koenig <tkoenig@gcc.gnu.org>
28134
28135 PR middle-end/57073
28136 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28137 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28138
28139 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
28140
28141 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28142
28143 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
28144
28145 * target.def (register_usage_leveling_p): New hook.
28146 * targhooks.c (default_register_usage_leveling_p): New.
28147 * targhooks.h (default_register_usage_leveling_p): New prototype.
28148 * lra-assigns.c (register_usage_leveling_p): Use the hook.
28149 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28150 * doc/tm.texi: Update.
28151 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28152
28153 2013-05-30 Ian Bolton <ian.bolton@arm.com>
28154
28155 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28156 (*insv_reg<mode>): New define_insn.
28157
28158 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
28159
28160 PR rtl-optimization/57439
28161 * postreload.c (move2add_valid_value_p): Check that we have
28162 a zero subreg_regno_offset when accessing the register in
28163 the requested mode.
28164
28165 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28166 Igor Zamyatin <igor.zamyatin@intel.com>
28167
28168 Silvermont (SLM) architecture pipeline model, tuning and
28169 insn selection.
28170 * config.gcc: Add slm config options and target.
28171
28172 * config/i386/slm.md: New.
28173
28174 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28175
28176 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28177 PROCESSOR_SLM.
28178 (ix86_target_macros_internal): Likewise.
28179
28180 * config/i386/i386.c (slm_cost): New cost.
28181 (m_SLM): New macro flag.
28182 (initial_ix86_tune_features): Set m_SLM.
28183 (x86_accumulate_outgoing_args): Likewise.
28184 (x86_arch_always_fancy_math_387): Likewise.
28185 (processor_target_table): Add slm cost.
28186 (cpu_names): Add slm cpu name.
28187 (x86_option_override_internal): Set SLM ISA.
28188 (ix86_issue_rate): New case PROCESSOR_SLM.
28189 (ia32_multipass_dfa_lookahead): Likewise.
28190 (fold_builtin_cpu): Add slm.
28191
28192 * config/i386/i386.h (TARGET_SLM): New target macro.
28193 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28194 (processor_type): Add PROCESSOR_SLM.
28195
28196 * config/i386/i386.md (cpu): Add new value "slm".
28197 (slm.md): Include slm.md.
28198
28199 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
28200 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28201
28202 * config/arm/arm-protos.h: Add and update function protos.
28203 * config/arm/arm.c (use_simple_return_p): New added.
28204 (thumb2_expand_return): Check simple_return flag.
28205 * config/arm/arm.md: Add simple_return and conditional simple_return.
28206 * config/arm/iterators.md: Add iterator for return and simple_return.
28207
28208 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28209
28210 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28211 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28212 (arm_emit_vfp_multi_reg_pop): Likewise.
28213 (thumb2_emit_ldrd_pop): Likewise.
28214 (arm_expand_epilogue): Add misc REG_CFA notes.
28215 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28216
28217 2013-05-29 Lawrence Crowl <crowl@google.com>
28218
28219 * config/arm/t-arm: Update for below.
28220
28221 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28222 Change type to hash_table. Update dependent calls and types.
28223
28224 * config/i386/t-cygming: Update for below.
28225
28226 * config/i386/t-interix: Update for below.
28227
28228 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28229 Change type to hash_table. Update dependent calls and types.
28230 (i386_find_on_wrapper_list::wrappers): Likewise.
28231
28232 * config/ia64/t-ia64: Update for below.
28233
28234 * config/ia64/ia64.c (bundle_state_table):
28235 Change type to hash_table. Update dependent calls and types.
28236
28237 * config/mips/mips.c (mips_reorg_process_insns::htab):
28238 Change type to hash_table. Update dependent calls and types.
28239
28240 * config/sol2.c (solaris_comdat_htab):
28241 Change type to hash_table. Update dependent calls and types.
28242
28243 * config/t-sol2: Update for above.
28244
28245 2013-05-29 Teresa Johnson <tejohnson@google.com>
28246
28247 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28248 functions are not yet marked as defined.
28249
28250 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
28251 Pat Haugen <pthaugen@us.ibm.com>
28252 Peter Bergner <bergner@vnet.ibm.com>
28253
28254 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28255 instructions.
28256 (VEC_A): Likewise.
28257 (VEC_C): Likewise.
28258 (vrotl<mode>3): Likewise.
28259 (vashl<mode>3): Likewise.
28260 (vlshr<mode>3): Likewise.
28261 (vashr<mode>3): Likewise.
28262
28263 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28264 support for power8 V2DI builtins.
28265
28266 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28267 power8 V2DI builtins.
28268 (vupkhsw): Likewise.
28269 (vupklsw): Likewise.
28270 (vaddudm): Likewise.
28271 (vminsd): Likewise.
28272 (vmaxsd): Likewise.
28273 (vminud): Likewise.
28274 (vmaxud): Likewise.
28275 (vpkudum): Likewise.
28276 (vpksdss): Likewise.
28277 (vpkudus): Likewise.
28278 (vpksdus): Likewise.
28279 (vrld): Likewise.
28280 (vsld): Likewise.
28281 (vsrd): Likewise.
28282 (vsrad): Likewise.
28283 (vsubudm): Likewise.
28284 (vcmpequd): Likewise.
28285 (vcmpgtsd): Likewise.
28286 (vcmpgtud): Likewise.
28287 (vcmpequd_p): Likewise.
28288 (vcmpgtsd_p): Likewise.
28289 (vcmpgtud_p): Likewise.
28290 (vupkhsw): Likewise.
28291 (vupklsw): Likewise.
28292 (vaddudm): Likewise.
28293 (vmaxsd): Likewise.
28294 (vmaxud): Likewise.
28295 (vminsd): Likewise.
28296 (vminud): Likewise.
28297 (vpksdss): Likewise.
28298 (vpksdus): Likewise.
28299 (vpkudum): Likewise.
28300 (vpkudus): Likewise.
28301 (vrld): Likewise.
28302 (vsld): Likewise.
28303 (vsrad): Likewise.
28304 (vsrd): Likewise.
28305 (vsubudm): Likewise.
28306
28307 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28308 support for power8 V2DI instructions.
28309
28310 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28311 power8 V2DI instructions. Combine pack and unpack insns to use an
28312 iterator for each mode. Check whether a particular mode supports
28313 Altivec instructions instead of just checking TARGET_ALTIVEC.
28314 (UNSPEC_VPKUWUM): Likewise.
28315 (UNSPEC_VPKSHSS): Likewise.
28316 (UNSPEC_VPKSWSS): Likewise.
28317 (UNSPEC_VPKUHUS): Likewise.
28318 (UNSPEC_VPKSHUS): Likewise.
28319 (UNSPEC_VPKUWUS): Likewise.
28320 (UNSPEC_VPKSWUS): Likewise.
28321 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28322 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28323 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28324 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28325 (UNSPEC_VUPKHSB): Likewise.
28326 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28327 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28328 (UNSPEC_VUPKHSH): Likewise.
28329 (UNSPEC_VUPKLSB): Likewise.
28330 (UNSPEC_VUPKLSH): Likewise.
28331 (VI2): Likewise.
28332 (VI_char): Likewise.
28333 (VI_scalar): Likewise.
28334 (VI_unit): Likewise.
28335 (VP): Likewise.
28336 (VP_small): Likewise.
28337 (VP_small_lc): Likewise.
28338 (VU_char): Likewise.
28339 (add<mode>3): Likewise.
28340 (altivec_vaddcuw): Likewise.
28341 (altivec_vaddu<VI_char>s): Likewise.
28342 (altivec_vadds<VI_char>s): Likewise.
28343 (sub<mode>3): Likewise.
28344 (altivec_vsubcuw): Likewise.
28345 (altivec_vsubu<VI_char>s): Likewise.
28346 (altivec_vsubs<VI_char>s): Likewise.
28347 (altivec_vavgs<VI_char>): Likewise.
28348 (altivec_vcmpbfp): Likewise.
28349 (altivec_eq<mode>): Likewise.
28350 (altivec_gt<mode>): Likewise.
28351 (altivec_gtu<mode>): Likewise.
28352 (umax<mode>3): Likewise.
28353 (smax<mode>3): Likewise.
28354 (umin<mode>3): Likewise.
28355 (smin<mode>3): Likewise.
28356 (altivec_vpkuhum): Likewise.
28357 (altivec_vpkuwum): Likewise.
28358 (altivec_vpkshss): Likewise.
28359 (altivec_vpkswss): Likewise.
28360 (altivec_vpkuhus): Likewise.
28361 (altivec_vpkshus): Likewise.
28362 (altivec_vpkuwus): Likewise.
28363 (altivec_vpkswus): Likewise.
28364 (altivec_vpks<VI_char>ss): Likewise.
28365 (altivec_vpks<VI_char>us): Likewise.
28366 (altivec_vpku<VI_char>us): Likewise.
28367 (altivec_vpku<VI_char>um): Likewise.
28368 (altivec_vrl<VI_char>): Likewise.
28369 (altivec_vsl<VI_char>): Likewise.
28370 (altivec_vsr<VI_char>): Likewise.
28371 (altivec_vsra<VI_char>): Likewise.
28372 (altivec_vsldoi_<mode>): Likewise.
28373 (altivec_vupkhsb): Likewise.
28374 (altivec_vupkhs<VU_char>): Likewise.
28375 (altivec_vupkls<VU_char>): Likewise.
28376 (altivec_vupkhsh): Likewise.
28377 (altivec_vupklsb): Likewise.
28378 (altivec_vupklsh): Likewise.
28379 (altivec_vcmpequ<VI_char>_p): Likewise.
28380 (altivec_vcmpgts<VI_char>_p): Likewise.
28381 (altivec_vcmpgtu<VI_char>_p): Likewise.
28382 (abs<mode>2): Likewise.
28383 (vec_unpacks_hi_v16qi): Likewise.
28384 (vec_unpacks_hi_v8hi): Likewise.
28385 (vec_unpacks_lo_v16qi): Likewise.
28386 (vec_unpacks_hi_<VP_small_lc>): Likewise.
28387 (vec_unpacks_lo_v8hi): Likewise.
28388 (vec_unpacks_lo_<VP_small_lc>): Likewise.
28389 (vec_pack_trunc_v8h): Likewise.
28390 (vec_pack_trunc_v4si): Likewise.
28391 (vec_pack_trunc_<mode>): Likewise.
28392
28393 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28394 V2DI builtins.
28395 (vec_vmaxsd): Likewise.
28396 (vec_vmaxud): Likewise.
28397 (vec_vminsd): Likewise.
28398 (vec_vminud): Likewise.
28399 (vec_vpksdss): Likewise.
28400 (vec_vpksdus): Likewise.
28401 (vec_vpkudum): Likewise.
28402 (vec_vpkudus): Likewise.
28403 (vec_vrld): Likewise.
28404 (vec_vsld): Likewise.
28405 (vec_vsrad): Likewise.
28406 (vec_vsrd): Likewise.
28407 (vec_vsubudm): Likewise.
28408 (vec_vupkhsw): Likewise.
28409 (vec_vupklsw): Likewise.
28410
28411 2013-05-29 Jan Hubicka <jh@suse.cz>
28412
28413 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28414 flags; reorder rest of fields in more consistent way.
28415 (varpool_node): Remove analyzed, finalized and alias.
28416 (cgraph_ndoe): Likewise.
28417 (symtab_alias_ultimate_target): New function.
28418 (cgraph_function_node): Move offline.
28419 (cgraph_reset_node): Declare.
28420 (cgraph_comdat_can_be_unshared_p): Remove.
28421 (varpool_remove_initializer): Declare.
28422 (varpool_first_defined_variable, varpool_next_defined_variable
28423 cgraph_first_defined_function, cgraph_next_defined_function): Update.
28424 (cgraph_function_with_gimple_body_p): Update.
28425 (varpool_all_refs_explicit_p): Update.
28426 (symtab_alias_target): New function.
28427 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28428 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28429 (cgraph_function_or_thunk_node): Simplify using
28430 symtab_alias_ultimate_target.
28431 (varpool_variable_node): Likewise.
28432 * cgraph.c (cgraph_create_function_alias): Update.
28433 (cgraph_add_thunk): Update.
28434 (cgraph_remove_node): Update.
28435 (dump_cgraph_node): Do not dump removed flags.
28436 (cgraph_function_body_availability): Update.
28437 (cgraph_propagate_frequency): Update.
28438 (verify_cgraph_node): Check sanity of local flag.
28439 (cgraph_function_node): Move here from cgraph.h; revamp for
28440 cgraph_function_or_thunk_node.
28441 * lto-symtab.c (lto_varpool_replace_node): Update.
28442 (lto_symtab_resolve_can_prevail_p): Update.
28443 (lto_symtab_merge_cgraph_nodes): Update.
28444 * ipa-cp.c (determine_versionability, initialize_node_lattices,
28445 propagate_constants_accross_call, devirtualization_time_bonus,
28446 ipcp_propagate_stage): Update.
28447 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28448 * ipa-inline-transform.c (clone_inlined_nodes,
28449 preserve_function_body_p): Update.
28450 * ipa-reference.c (propagate): Update.
28451 (write_node_summary_p): Update.
28452 * toplev.c (wrapup_global_declaration_2): Update.
28453 * cgraphunit.c (cgraph_analyze_function): Rename to ...
28454 (analyze_function) ... this one.
28455 (cgraph_process_new_functions): Update.
28456 (cgraph_reset_node): Export.
28457 (cgraph_finalize_function): Update.
28458 (cgraph_add_new_function): Update.
28459 (process_function_and_variable_attributes): Update.
28460 (varpool_finalize_decl): Update.
28461 (symbol_finalized): Remove.
28462 (symbol_finalized_and_needed): Rename to ...
28463 (symbol_defined_and_needed): ... update.
28464 (cgraph_analyze_functions): Update.
28465 (handle_alias_pairs): Update.
28466 (mark_functions_to_output): Update.
28467 (assemble_thunk): Update.
28468 (output_in_order): Update.
28469 (output_weakrefs): Update.
28470 (finalize_compilation_unit): Update.
28471 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28472 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28473 input_node, input_varpool_node): Update.
28474 * dbxout.c (dbxout_expand_expr): Update.
28475 * cgraphclones.c (cgraph_clone_node): Update.
28476 (cgraph_copy_node_for_versioning): Update.
28477 (cgraph_materialize_clone): Update.
28478 (cgraph_materialize_all_clones): Update.
28479 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28480 propagate_pure_const, propagate_nothrow): Update.
28481 * lto-streamer-out.c (lto_output, write_symbol): Update.
28482 * ipa-utils.c (ipa_reverse_postorder): Update.
28483 * ipa-inline.c (can_inline_edge_p): Update.
28484 (update_caller_keys, ipa_inline): Update.
28485 * dwarf2out.c (reference_to_unused,
28486 premark_types_used_by_global_vars_helper): Update.
28487 * tree-eh.c (tree_could_trap_p): Update.
28488 * ipa-split.c (consider_split, execute_split_functions): Update.
28489 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28490 has_addr_references_p): Update; move ahead in file for better
28491 readability.
28492 (process_references): Simplify.
28493 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28494 bodies are removed.
28495 (cgraph_comdat_can_be_unshared_p): Make static.
28496 (cgraph_externally_visible_p): Update.
28497 (varpool_externally_visible_p): Update.
28498 (function_and_variable_visibility): Update.
28499 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28500 ipa_tm_mark_force_output_node): Update.
28501 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28502 estimate_edge_devirt_benefit, inline_generate_summary,
28503 inline_write_summary): Update.
28504 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28505 * ipa-prop.c (ipa_compute_jump_functions): Update.
28506 (ipa_print_node_params, ipa_prop_read_section,
28507 ipa_update_after_lto_read, read_replacements_section): Update.
28508 * varasm.c (mark_decl_referenced): Update.
28509 (assemble_alias, dump_tm_clone_pairs): Update.
28510 * tree-inline.c (copy_bb): Update.
28511 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28512 Update.
28513 * symtab.c (dump_symtab_base): Print new flags.
28514 (verify_symtab_base): Verify new flags.
28515 (symtab_alias_ultimate_target): New function.
28516 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28517 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28518 Update.
28519 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28520 Update.
28521 * i386.c (ix86_get_function_versions_dispatcher,
28522 ix86_generate_version_dispatcher_body): Update.
28523 (fold_builtin_cpu): Use varpool_add_new_variable.
28524 * varpool.c (varpool_remove_initializer): Break out from ...
28525 (varpool_remove_node): ... this one.
28526 (dump_varpool_node, varpool_node_for_asm,
28527 cgraph_variable_initializer_availability, varpool_analyze_node,
28528 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28529 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28530 Update.
28531
28532 2013-05-29 Jan Hubicka <jh@suse.cz>
28533
28534 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28535
28536 2013-05-29 Easwaran Raman <eraman@google.com>
28537
28538 PR tree-optimization/57442
28539 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28540 when control exits the main loop.
28541
28542 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28543
28544 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28545 and RX600.
28546 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28547 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28548 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28549 option.
28550
28551 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28552
28553 PR tree-optimization/57441
28554 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28555 Don't limit size of incr_vec to number of candidates.
28556
28557 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28558
28559 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28560 and mips16 directories.
28561 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28562 (MULTILIB_DIRNAMES): Ditto.
28563 (MULTILIB_EXCEPTIONS): Add new exceptions.
28564 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28565 (MULTILIB_DIRNAMES): Ditto.
28566 (MULTILIB_EXCEPTIONS): Add new exceptions.
28567
28568 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28569 Marcus Shawcroft <marcus.shawcroft@arm.com>
28570
28571 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28572 SYMBOL_TINY_ABSOLUTE.
28573 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28574 SYMBOL_TINY_ABSOLUTE.
28575 (aarch64_expand_mov_immediate): Likewise.
28576 (aarch64_classify_symbol): Likewise.
28577 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28578 Permit SYMBOL_TINY_ABSOLUTE.
28579 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28580
28581 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28582 Marcus Shawcroft <marcus.shawcroft@arm.com>
28583
28584 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28585 Refactor if/switch. Replace gcc_assert with if.
28586
28587 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28588
28589 * config/i386/i386.c (initial_ix86_tune_features): Enable
28590 FP Reassociation for AMD bdver1 and bdver2.
28591
28592 2013-05-29 Martin Jambor <mjambor@suse.cz>
28593
28594 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28595 and IMAGPART_EXPR do not occur within other handled_components.
28596
28597 2013-05-29 Richard Biener <rguenther@suse.de>
28598
28599 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28600 access on whether the use is in the BB we currently try to
28601 vectorize.
28602 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28603 vectorize to vect_bb_slp_scalar_cost.
28604
28605 2013-05-29 Richard Biener <rguenther@suse.de>
28606
28607 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28608 computing scalar cost offsetted by stmts that are kept live
28609 by scalar uses.
28610 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28611 for computation of scalar cost.
28612
28613 2013-05-28 Steve Ellcey <sellcey@mips.com>
28614
28615 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28616
28617 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28618
28619 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28620 array notation built-in reduction functions.
28621 * doc/passes.texi (Passes): Added documentation about changes done
28622 for Cilk Plus.
28623 * doc/invoke.texi (C Dialect Options): Added documentation about
28624 the -fcilkplus flag.
28625 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28626 (BUILTINS_DEF): Depend on cilkplus.def.
28627 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28628 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28629 * cilkplus.def: New file.
28630
28631 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28632
28633 PR rtl-optimization/57439
28634 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28635
28636 2013-05-28 Easwaran Raman <eraman@google.com>
28637
28638 PR tree-optimization/57337
28639 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28640 (find_insert_point): Correctly identify the insertion point
28641 when two statements with the same UID is compared.
28642
28643 2013-05-28 Richard Biener <rguenther@suse.de>
28644
28645 PR tree-optimization/56787
28646 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28647 from the list of data references.
28648 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28649 clobbers.
28650 (vect_analyze_loop_operations): Likewise.
28651 (vect_transform_loop): Remove clobbers.
28652
28653 2013-05-28 Martin Jambor <mjambor@suse.cz>
28654
28655 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28656 and REALPART_EXPRs have scalar type.
28657
28658 2013-05-28 Richard Biener <rguenther@suse.de>
28659
28660 PR tree-optimization/57411
28661 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28662 virtual operands.
28663 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28664 virtual operand propagation.
28665
28666 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28667
28668 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28669 destination register for bmasksi_vis.
28670 (vector_init_bshuffle): Likewise.
28671 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28672
28673 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28674
28675 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28676 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28677 mode if the instruction isn't available in the original mode.
28678 * config/sparc/sparc.opt (mfix-ut699): New option.
28679 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28680 (divdf3): Turn into expander.
28681 (divdf3_nofix): New insn.
28682 (divdf3_fix): Likewise.
28683 (divsf3): Disable if -mfix-ut699.
28684 (sqrtdf2): Turn into expander.
28685 (sqrtdf2_nofix): New insn.
28686 (sqrtdf2_fix): Likewise.
28687 (sqrtsf2): Disable if -mfix-ut699.
28688
28689 2013-05-27 Richard Biener <rguenther@suse.de>
28690
28691 PR middle-end/57412
28692 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28693 block for the new loop.
28694
28695 2013-05-27 Richard Biener <rguenther@suse.de>
28696
28697 PR tree-optimization/57343
28698 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28699 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28700 (number_of_iterations_cond): Do not build the folded tree.
28701
28702 2013-05-27 Richard Biener <rguenther@suse.de>
28703
28704 Revert
28705 PR middle-end/57381
28706 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28707 OEP_CONSTANT_ADDRESS_OF retained.
28708
28709 PR tree-optimization/57417
28710 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28711 for unchanged base.
28712 (set_ssa_val_to): Compare addresses using
28713 get_addr_base_and_unit_offset.
28714
28715 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28716
28717 PR rtl-optimization/56833
28718 * postreload.c (move2add_record_mode): New function.
28719 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28720 (move2add_use_add2_insn): Use move2add_record_sym_value.
28721 (move2add_use_add3_insn): Likewise.
28722 (reload_cse_move2add): Use move2add_valid_value_p and
28723 move2add_record_mode. Invalidate call-clobbered and REG_INC
28724 affected regs by setting reg_mode to VOIDmode.
28725 (move2add_note_store): Don't pretend the inside of a SUBREG is
28726 the actual destination. Invalidate single/leading registers by
28727 setting reg_mode to VOIDmode.
28728 Use move2add_record_sym_value, move2add_valid_value_p and
28729 move2add_record_mode.
28730
28731 2013-05-27 Richard Biener <rguenther@suse.de>
28732
28733 PR tree-optimization/57396
28734 * tree-affine.c (double_int_constant_multiple_p): Properly
28735 return false for val == 0 and div != 0.
28736
28737 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28738
28739 * config/mips/mips.h: Use #elif in preprocessor conditions.
28740
28741 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28742
28743 PR target/53916
28744 * config/mips/constraints.md (kl): New constraint.
28745 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28746 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28747 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28748 from LO for MIPS16.
28749 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28750
28751 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28752
28753 PR target/55777
28754 * config/mips/mips.c (mips_can_inline_p): New function.
28755 (TARGET_CAN_INLINE_P): Define.
28756
28757 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28758
28759 * sched-int.h (ds_t, dw_t): Make unsigned int.
28760 Fix documentation that describes how all the ds_t bits are used.
28761 Reserve the last bit for delayed-branch scheduling.
28762 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28763 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28764 (gen_dep_weak_1): Remove prototype.
28765 * sched-deps.c (get_dep_weak_1): Make static.
28766 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28767 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28768 * doc/tm.texi: Regenerate.
28769 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28770
28771 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28772
28773 PR debug/56950
28774 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28775
28776 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28777 Sandra Loosemore <sandra@codesourcery.com>
28778
28779 * config.gcc (powerpc-*): Allow native for with-cpu.
28780
28781 2013-05-24 Jeff Law <law@redhat.com>
28782
28783 PR tree-optimization/57124
28784 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28785 conversion feeding a condition if the range has an overflow
28786 if -fstrict-overflow. Add warnings for when we do make the
28787 transformation.
28788
28789 2013-05-24 Dehao Chen <dehao@google.com>
28790
28791 * tree-cfg.c (locus_discrim_map): Fix the typo.
28792 (locus_discrim_hasher): Likewise.
28793 (locus_discrim_hasher::hash): Likewise.
28794 (locus_discrim_hasher::equal): Likewise.
28795
28796 2013-05-24 Martin Jambor <mjambor@suse.cz>
28797
28798 PR tree-optimization/57294
28799 * cgraph.h (ipa_record_stmt_references): Declare.
28800 * cgraphbuild.c (ipa_record_stmt_references): New function.
28801 (build_cgraph_edges): Use ipa_record_stmt_references.
28802 (rebuild_cgraph_edges): Likewise.
28803 (cgraph_rebuild_references): Likewise.
28804 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28805 associated with the old statement and build references from the
28806 newly built statements.
28807 * ipa-ref.c (ipa_remove_stmt_references): New function.
28808 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28809
28810 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28811
28812 * lra-constraints.c (emit_spill_move): Use smaller mode for
28813 mem-mem moves.
28814 (check_and_process_move): Consider mem-reg moves for secondary
28815 too.
28816 (curr_insn_transform): Don't lose insns emitted before for
28817 secondary memory moves.
28818 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28819 reg set up in the current insn.
28820
28821 2013-05-24 Dehao Chen <dehao@google.com>
28822
28823 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28824 hash function.
28825 (locus_descrim_hasher::equal): Likewise.
28826 (build_gimple_cfg): New discriminator assignment algorithm.
28827 (make_edges): Likewise.
28828 (next_discriminator_for_locus): Likewise.
28829 (same_line_p): Likewise.
28830 (assign_discriminators): Likewise.
28831 (make_cond_expr_edges): Likewise.
28832 (make_gimple_switch_edges): Likewise.
28833 (make_goto_expr_edges): Likewise.
28834 (make_gimple_asm_edges): Likewise.
28835
28836 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28837
28838 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28839 X format specifier to only display bottom 16 bits.
28840 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28841 immediate to match for operand 2, since it will be masked.
28842
28843 2013-05-24 Richard Biener <rguenther@suse.de>
28844
28845 PR tree-optimization/57287
28846 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28847 all SSA names that occur in abnormal PHIs.
28848
28849 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28850
28851 PR tree-ssa/57385
28852 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28853 that index is not negative.
28854
28855 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28856
28857 PR rtl-optimization/55177
28858 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28859 (simplify_byte_swapping_operation): New.
28860 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28861 (simplify_relational_operation_1): Deal with BSWAP.
28862
28863 2013-05-23 Richard Henderson <rth@redhat.com>
28864
28865 PR target/56742
28866 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28867 (ix86_reorg): Call it.
28868
28869 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28870
28871 PR target/57379
28872 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28873 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28874 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28875
28876 2013-05-23 Christian Bruel <christian.bruel@st.com>
28877
28878 PR debug/57351
28879 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28880
28881 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28882 Marcus Shawcroft <marcus.shawcroft@arm.com>
28883
28884 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28885 * config/aarch64/constraints.md (Usa): Remove.
28886 * doc/md.texi (AArch64 Usa): Remove.
28887
28888 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28889 Marcus Shawcroft <marcus.shawcroft@arm.com>
28890
28891 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28892 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28893 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28894 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28895
28896 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28897
28898 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28899 instruction (AdvSIMD).
28900 * config/aarch64/aarch64-builtins.c
28901 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28902 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28903
28904 2013-05-23 Martin Jambor <mjambor@suse.cz>
28905
28906 PR middle-end/57347
28907 * tree.h (contains_bitfld_component_ref_p): Declare.
28908 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28909 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28910 caller.
28911 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28912 not access a bit-field. Assert all final offsets are byte-aligned.
28913
28914 2013-05-23 Richard Biener <rguenther@suse.de>
28915
28916 PR tree-optimization/57380
28917 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28918 least one invariant or re-used load.
28919 * passes.c (init_optimization_passes): Move pass_phiprop before
28920 pass_forwprop.
28921
28922 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28923
28924 * config/aarch64/aarch64-simd.md
28925 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28926
28927 2013-05-23 Richard Biener <rguenther@suse.de>
28928
28929 PR middle-end/57381
28930 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28931 OEP_CONSTANT_ADDRESS_OF retained.
28932
28933 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28934
28935 PR middle-end/57344
28936 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28937 don't lower unit. Handle unit not being always BITS_PER_WORD.
28938
28939 2013-05-23 Richard Biener <rguenther@suse.de>
28940
28941 PR rtl-optimization/57341
28942 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28943 instead of true_dependence.
28944
28945 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28946
28947 * bb-reorder.c (branch_threshold): Make const.
28948 (exec_threshold): Ditto.
28949
28950 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28951 Pat Haugen <pthaugen@us.ibm.com>
28952 Peter Bergner <bergner@vnet.ibm.com>
28953
28954 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28955 documentation for the power8 crypto builtins.
28956
28957 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28958
28959 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28960 macros for defining power8 builtin functions.
28961 (BU_P8V_AV_2): Likewise.
28962 (BU_P8V_AV_P): Likewise.
28963 (BU_P8V_VSX_1): Likewise.
28964 (BU_P8V_OVERLOAD_1): Likewise.
28965 (BU_P8V_OVERLOAD_2): Likewise.
28966 (BU_CRYPTO_1): Likewise.
28967 (BU_CRYPTO_2): Likewise.
28968 (BU_CRYPTO_3): Likewise.
28969 (BU_CRYPTO_OVERLOAD_1): Likewise.
28970 (BU_CRYPTO_OVERLOAD_2): Likewise.
28971 (XSCVSPDP): Fix typo, point to the correct instruction.
28972 (VCIPHER): Add power8 crypto builtins.
28973 (VCIPHERLAST): Likewise.
28974 (VNCIPHER): Likewise.
28975 (VNCIPHERLAST): Likewise.
28976 (VPMSUMB): Likewise.
28977 (VPMSUMH): Likewise.
28978 (VPMSUMW): Likewise.
28979 (VPERMXOR_V2DI): Likewise.
28980 (VPERMXOR_V4SI: Likewise.
28981 (VPERMXOR_V8HI: Likewise.
28982 (VPERMXOR_V16QI: Likewise.
28983 (VSHASIGMAW): Likewise.
28984 (VSHASIGMAD): Likewise.
28985 (VPMSUM): Likewise.
28986 (VPERMXOR): Likewise.
28987 (VSHASIGMA): Likewise.
28988
28989 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28990 __CRYPTO__ if the crypto instructions are available.
28991 (altivec_overloaded_builtins): Add support for overloaded power8
28992 builtins.
28993
28994 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28995 support for power8 crypto builtins.
28996 (builtin_function_type): Likewise.
28997 (altivec_init_builtins): Add support for builtins that take vector
28998 long long (V2DI) arguments.
28999
29000 * config/rs6000/crypto.md: New file, define power8 crypto
29001 instructions.
29002
29003 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29004 Pat Haugen <pthaugen@us.ibm.com>
29005 Peter Bergner <bergner@vnet.ibm.com>
29006
29007 * doc/invoke.texi (Option Summary): Add power8 options.
29008 (RS/6000 and PowerPC Options): Likewise.
29009
29010 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29011 constraints.md instead of rs6000.h. Reorder w* constraints. Add
29012 wm, wn, wr documentation.
29013
29014 * config/rs6000/constraints.md (wm): New constraint for VSX
29015 registers if direct move instructions are enabled.
29016 (wn): New constraint for no registers.
29017 (wq): New constraint for quad word even GPR registers.
29018 (wr): New constraint if 64-bit instructions are enabled.
29019 (wv): New constraint if power8 vector instructions are enabled.
29020 (wQ): New constraint for quad word memory locations.
29021
29022 * config/rs6000/predicates.md (const_0_to_15_operand): New
29023 constraint for 0..15 for crypto instructions.
29024 (gpc_reg_operand): If VSX allow registers in VSX registers as well
29025 as GPR and floating point registers.
29026 (int_reg_operand): New predicate to match only GPR registers.
29027 (base_reg_operand): New predicate to match base registers.
29028 (quad_int_reg_operand): New predicate to match even GPR registers
29029 for quad memory operations.
29030 (vsx_reg_or_cint_operand): New predicate to allow vector logical
29031 operations in both GPR and VSX registers.
29032 (quad_memory_operand): New predicate for quad memory operations.
29033 (reg_or_indexed_operand): New predicate for direct move support.
29034
29035 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29036 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29037 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29038 (POWERPC_MASKS): Add power8 options.
29039 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29040 various options.
29041
29042 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29043 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29044
29045 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29046 (-mpower8-fusion): New power8 options.
29047 (-mpower8-fusion-sign): Likewise.
29048 (-mpower8-vector): Likewise.
29049 (-mcrypto): Likewise.
29050 (-mdirect-move): Likewise.
29051 (-mquad-memory): Likewise.
29052
29053 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29054 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29055 registers.
29056 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29057 (rs6000_debug_vector_unit): Add p8_vector.
29058 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29059 definitions. Also print fusion state.
29060 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29061 (rs6000_builtin_mask_calculate): Add power8 builtin support.
29062 (rs6000_option_override_internal): Add support for power8.
29063 (rs6000_common_init_builtins): Add debugging for skipped builtins
29064 if -mdebug=builtin.
29065 (rs6000_adjust_cost): Add power8 support.
29066 (rs6000_issue_rate): Likewise.
29067 (insn_must_be_first_in_group): Likewise.
29068 (insn_must_be_last_in_group): Likewise.
29069 (force_new_group): Likewise.
29070 (rs6000_register_move_cost): Likewise.
29071 (rs6000_opt_masks): Likewise.
29072
29073 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29074 power8 capable assembler, default to power7 options.
29075 (TARGET_DIRECT_MOVE): Likewise.
29076 (TARGET_CRYPTO): Likewise.
29077 (TARGET_P8_VECTOR): Likewise.
29078 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29079 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29080 (VECTOR_MEM_P8_VECTOR_P): Likewise.
29081 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29082 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29083 (TARGET_XSCVDPSPN): Likewise.
29084 (TARGET_XSCVSPDPN): Likewsie.
29085 (TARGET_SYNC_HI_QI): Likewise.
29086 (TARGET_SYNC_TI): Likewise.
29087 (MASK_CRYPTO): Likewise.
29088 (MASK_DIRECT_MOVE): Likewise.
29089 (MASK_P8_FUSION): Likewise.
29090 (MASK_P8_VECTOR): Likewise.
29091 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29092 temporary used by some of the direct move instructions to get two FP
29093 temporary registers does not force creation of a stack frame.
29094 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29095 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29096 that any VSX registers are tieable, even if they are also an
29097 Altivec vector mode.
29098 (r6000_reg_class_enum): Add wm, wr, wv constraints.
29099 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29100 (RS6000_BTM_CRYPTO): Likewise.
29101 (RS6000_BTM_COMMON): Likewise.
29102
29103 * config/rs6000/rs6000.md (cpu attribute): Add power8.
29104 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29105 (enum rs6000_vector): Add power8 vector support.
29106
29107 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29108
29109 PR target/19599
29110 PR target/57340
29111 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29112 (any_sibcall_could_use_r3): this and handle indirect calls.
29113 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29114
29115 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29116
29117 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29118
29119 2013-05-22 Richard Biener <rguenther@suse.de>
29120
29121 PR middle-end/57349
29122 * profile.c (branch_prob): Do not split blocks that are
29123 abnormally receiving from ECF_RETURNS_TWICE functions.
29124
29125 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29126
29127 * recog.c (offsettable_address_addr_space_p): Fix calculation of
29128 address mode. Move pointer mode initialization to the same place.
29129
29130 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29131
29132 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29133 while it has any effect.
29134
29135 2013-05-21 Easwaran Raman <eraman@google.com>
29136
29137 PR tree-optimization/57322
29138 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29139 UID of the statement added to the BB to be 1.
29140
29141 2013-05-21 Jakub Jelinek <jakub@redhat.com>
29142
29143 PR tree-optimization/57331
29144 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29145 of conversion from pointer type to integral type with integer.
29146
29147 2013-05-21 Martin Jambor <mjambor@suse.cz>
29148
29149 PR lto/57289
29150 * ipa-prop.c (ipa_read_node_info): Process param_used and
29151 controlled_uses in the same order as when writing.
29152
29153 2013-05-21 Magnus Granberg <baldrick@free.fr>
29154
29155 PR plugins/56754
29156 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29157
29158 2013-05-21 Richard Biener <rguenther@suse.de>
29159
29160 PR tree-optimization/57318
29161 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29162 estimate stmts with side-effects as likely eliminated.
29163
29164 2013-05-21 Richard Biener <rguenther@suse.de>
29165
29166 PR tree-optimization/57330
29167 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29168 preserve the call stmts fntype.
29169
29170 2013-05-21 Richard Biener <rguenther@suse.de>
29171
29172 PR tree-optimization/57303
29173 * tree-ssa-sink.c (statement_sink_location): Improve killing
29174 stmt detection and properly handle self-assignments.
29175
29176 2013-05-21 Christian Bruel <christian.bruel@st.com>
29177
29178 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29179 spanning registers. LEAF_REG_REMAP is supported only for contiguous
29180 registers. Set register size out of the PARALLEL loop.
29181
29182 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
29183
29184 PR target/56547
29185 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29186 (*fmasf4, *fmasf4_media): New insns.
29187
29188 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29189
29190 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29191 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29192 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29193 (mips_idiv_insns): Update the comments to say that the returned
29194 instruction counts are in units of BASE_INSN_LENGTH.
29195 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29196 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
29197 using 2 rather than 4 as the length of indirect MIPS16 and
29198 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
29199 length of a NOP. Don't divide MIPS16 lengths by 2.
29200 (mips16_split_long_branches): Assume a branch is long if the
29201 length is greater than 4 rather than 8.
29202 * config/mips/mips.md (length): Give MIPS16 lengths directly,
29203 rather than multiplying them by 2. Multiply instruction counts
29204 by BASE_INSN_LENGTH rather than 4.
29205 (*jump_mips16, tls_get_tp_mips16_<mode>)
29206 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29207
29208 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29209
29210 * config/mips/mips.md (extended_mips16): Remove branch case.
29211 (length): Remove duplicated extended_mips16 test.
29212
29213 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29214
29215 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29216
29217 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
29218
29219 * recog.h (Recog_data): Rename to...
29220 (recog_data_d): ...this.
29221 (recog_data): Update accordingly.
29222 * recog.c (recog_data): Likewise.
29223 * reload.c (save_recog_data): Likewise.
29224 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29225 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29226
29227 2013-05-17 Julian Brown <julian@codesourcery.com>
29228
29229 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29230 found in a REG_EQUAL note, invalidate it.
29231
29232 2013-05-17 Easwaran Raman <eraman@google.com>
29233
29234 * tree-ssa-reassoc.c (find_insert_point): New function.
29235 (insert_stmt_after): Likewise.
29236 (get_def_stmt): Likewise.
29237 (ensure_ops_are_available): Likewise.
29238 (not_dominated_by): Likewise.
29239 (rewrite_expr_tree): Do not move statements beyond what is
29240 necessary. Remove call to swap_ops_for_binary_stmt...
29241 (reassociate_bb): ... and move it here.
29242 (build_and_add_sum): Assign UIDs for new statements.
29243 (linearize_expr): Likewise.
29244 (do_reassoc): Renumber gimple statement UIDs.
29245
29246 2013-05-17 Jan Hubicka <jh@suse.cz>
29247
29248 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29249 weakrefs.
29250 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29251 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29252 weakrefs.
29253 (output_weakrefs): Update.
29254
29255 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
29256 Martin Jambor <mjambor@suse.cz>
29257
29258 PR middle-end/57276
29259 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29260 value that corresponds to the given aggval is found in values vector.
29261
29262 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
29263
29264 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29265 sse, sse2, sse3, ssse3 and sse4a flags to options.
29266
29267 2013-05-17 David Malcolm <dmalcolm@redhat.com>
29268
29269 * gengtype-state.c: (s_expr_writer): New class, to handle
29270 prettifying of output layout of s-expressions.
29271 (state_writer): New class, to write out gtype.state.
29272 (state_written_type_count): Move this variable into member data of
29273 state_writer.
29274 (s_expr_writer::s_expr_writer): New code: constructor for new class
29275 (state_writer::state_writer(): ditto
29276 (s_expr_writer::write_new_line): New function
29277 (s_expr_writer::write_any_indent): ditto
29278 (s_expr_writer::begin_s_expr): ditto
29279 (s_expr_writer::end_s_expr): ditto
29280 (write_state_fileloc): convert to method of state_writer...
29281 (state_writer:: write_state_fileloc): ...and use methods of
29282 s_expr_writer to write indentation into the gtype.state output file
29283 to visually represent the hierarchical structure of the list
29284 structures
29285 (write_state_fields): ditto, renaming to...
29286 (state_writer::write_state_fields)
29287 (write_state_a_string): ditto, renaming to...
29288 (state_writer::write_state_a_string)
29289 (write_state_string_option): ditto, renaming to...
29290 (state_writer::write_state_string_option)
29291 (write_state_type_option): ditto, renaming to...
29292 (state_writer::write_state_type_option)
29293 (write_state_nested_option): ditto, renaming to...
29294 (state_writer::write_state_nested_option)
29295 (write_state_option): ditto, renaming to...
29296 (state_writer::write_state_option)
29297 (write_state_options): ditto, renaming to...
29298 (state_writer::write_state_options)
29299 (write_state_lang_bitmap): ditto, renaming to...
29300 (state_writer::write_state_lang_bitmap)
29301 (write_state_version): ditto, renaming to...
29302 (state_writer::write_state_version)
29303 (write_state_scalar_type): ditto, renaming to...
29304 (state_writer::write_state_scalar_type)
29305 (write_state_string_type): ditto, renaming to...
29306 (state_writer::write_state_string_type)
29307 (write_state_undefined_type): ditto, renaming to...
29308 (state_writer::write_state_undefined_type)
29309 (write_state_struct_union_type): ditto, renaming to...
29310 (state_writer::write_state_struct_union_type)
29311 (write_state_struct_type): ditto, renaming to...
29312 (state_writer::write_state_struct_type)
29313 (write_state_user_struct_type): ditto, renaming to...
29314 (state_writer::write_state_user_struct_type)
29315 (write_state_lang_struct_type): ditto, renaming to...
29316 (state_writer::write_state_lang_struct_type)
29317 (write_state_param_struct_type): ditto, renaming to...
29318 (state_writer::write_state_param_struct_type)
29319 (write_state_pointer_type): ditto, renaming to...
29320 (state_writer::write_state_pointer_type)
29321 (write_state_array_type): ditto, renaming to...
29322 (state_writer::write_state_array_type)
29323 (write_state_gc_used): ditto, renaming to...
29324 (state_writer::write_state_gc_used)
29325 (write_state_common_type_content): ditto, renaming to...
29326 (state_writer::write_state_common_type_content)
29327 (write_state_type): ditto, renaming to...
29328 (state_writer::write_state_type)
29329 (write_state_pair_list): ditto, renaming to...
29330 (state_writer::write_state_pair_list)
29331 (write_state_pair): ditto, renaming to...
29332 (state_writer::write_state_pair)
29333 (write_state_typedefs): ditto, renaming to...
29334 (state_writer::write_state_typedefs)
29335 (write_state_structures): ditto, renaming to...
29336 (state_writer::write_state_structures)
29337 (write_state_param_structs): ditto, renaming to...
29338 (state_writer::write_state_param_structs)
29339 (write_state_variables): ditto, renaming to...
29340 (state_writer::write_state_variables)
29341 (write_state_srcdir): ditto, renaming to...
29342 (state_writer::write_state_srcdir)
29343 (write_state_files_list): ditto, renaming to...
29344 (state_writer::write_state_files_list)
29345 (write_state_languages): ditto, renaming to...
29346 (state_writer::write_state_languages)
29347 (write_state): create a state_writer instance and use it when
29348 writing out the state file
29349
29350 2013-05-17 Mike Stump <mikestump@comcast.net>
29351
29352 PR rtl-optimization/57304
29353 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29354 accessing DF_REF_REAL_LOC.
29355
29356 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29357
29358 PR rtl-optimization/57281
29359 PR rtl-optimization/57300
29360 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29361 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29362 what the other splitter did if the registers are dead.
29363
29364 2013-05-17 Richard Biener <rguenther@suse.de>
29365
29366 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29367 MEM_REF offsets.
29368
29369 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29370
29371 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29372 linking.
29373
29374 2013-05-17 Marek Polacek <polacek@redhat.com>
29375
29376 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29377 length when doing non-zero store of storing '\0' to '\0'.
29378
29379 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29380
29381 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29382 vect_external_def oprnd1 with loop_vinfo, try to emit
29383 optional cast, negation and and stmts on the loop preheader
29384 edge instead of into the pattern def seq.
29385
29386 PR tree-optimization/57051
29387 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29388 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29389
29390 2013-05-16 Nick Clifton <nickc@redhat.com>
29391
29392 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29393 (rl78_is_naked_func): New function.
29394 (rl78_expand_prologue): Skip prologue generation for naked functions.
29395 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29396 * doc/extend.texi (naked): Add RL78 to the list of processors
29397 that supports this attribute.
29398
29399 2013-05-16 Jeff Law <law@redhat.com>
29400
29401 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29402
29403 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29404
29405 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29406 cache parameters using detect_caches_amd also for CYRIX,
29407 NSC and TM2 signatures.
29408
29409 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29410 Dzianis Kahanovich <mahatma@eu.by>
29411
29412 PR target/45359
29413 PR target/46396
29414 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29415 VIA/Centaur processors and determine their cache parameters
29416 using detect_caches_amd.
29417
29418 2013-05-16 Teresa Johnson <tejohnson@google.com>
29419
29420 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29421 (rtl_verify_edges): New function.
29422 (rtl_verify_bb_insns): Ditto.
29423 (rtl_verify_bb_pointers): Ditto.
29424 (rtl_verify_bb_insn_chain): Ditto.
29425 (rtl_verify_fallthru): Ditto.
29426 (rtl_verify_bb_layout): Ditto.
29427 (rtl_verify_flow_info_1): Outline checks into new functions.
29428 (rtl_verify_flow_info): Ditto.
29429
29430 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
29431
29432 * cfghooks.c (copy_bbs): Add update_dominance argument.
29433 * cfghooks.h (copy_bbs): Update prototype.
29434 * tree-cfg.c (gimple_duplicate_sese_region):
29435 Add update_dominance argument.
29436 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29437 * tree-ssa-loop-ch.c (copy_loop_headers): Update
29438 gimple_duplicate_sese_region call.
29439 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29440 Update copy_bbs call.
29441 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29442 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29443
29444 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29445
29446 * tree-vectorizer.h (NUM_PATTERNS): Increment.
29447 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29448 vect_recog_rotate_pattern.
29449 (vect_recog_rotate_pattern): New function.
29450
29451 2013-05-16 Jason Merrill <jason@redhat.com>
29452
29453 * Makefile.in (LLINKER): New variable.
29454 (mostlyclean): Remove link mutex.
29455 * configure.ac: Handle --enable-link-mutex.
29456 * lock-and-run.sh: New script.
29457
29458 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29459
29460 PR target/19599
29461 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29462 for NULL decl.
29463
29464 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29465
29466 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29467
29468 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29469
29470 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29471 * config/arm/arm.c (next_consecutive_mem): New function.
29472 (gen_movmem_ldrd_strd): Likewise.
29473 * config/arm/arm.md (movmemqi): Update condition and code.
29474 (unaligned_loaddi, unaligned_storedi): New patterns.
29475
29476 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29477
29478 * config.gcc: Obsolete *-*-solaris2.9*.
29479 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29480
29481 2013-05-16 Richard Biener <rguenther@suse.de>
29482
29483 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29484 earlier, after GRAPHITE transforms and IV canonicalization.
29485
29486 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29487
29488 * omp-low.c (extract_omp_for_data): For collapsed loops,
29489 if at least one of the loops is known at compile time to
29490 iterate zero times, set count to 0.
29491 (expand_omp_regimplify_p): New function.
29492 (expand_omp_for_generic): For collapsed loops, if at least
29493 one of the loops isn't known to iterate at least once,
29494 add runtime check with setting count to 0.
29495 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29496 For unsigned types if it isn't known at compile time that
29497 the loop will iterate at least once, add runtime check to bypass
29498 the whole loop if initial condition isn't true.
29499
29500 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29501
29502 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29503
29504 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29505
29506 PR middle-end/57286
29507 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29508 transformations to avoid an infinite loop.
29509
29510 2013-05-16 Marek Polacek <polacek@redhat.com>
29511
29512 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29513
29514 2013-05-15 Leif Ekblad <leif@rdos.net>
29515
29516 * config/i386/i386.c (ix86_decompose_address): Use
29517 DEFAULT_TLS_SEG_REG to access TLS segment register.
29518 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29519 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29520 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29521
29522 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29523
29524 PR target/57260
29525 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29526 sibling calls to functions that would normally be lazily bound,
29527 unless $gp is call-clobbered.
29528
29529 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29530
29531 * config/i386/i386.c (ix86_option_override_internal): Update
29532 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29533 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29534 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29535 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29536 of TARGET_3DNOW.
29537 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29538
29539 2013-05-15 Andreas Schwab <schwab@suse.de>
29540
29541 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29542 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29543 third operand.
29544
29545 2013-05-15 Teresa Johnson <tejohnson@google.com>
29546
29547 * loop-unroll.c (report_unroll_peel): Check decision before
29548 emitting unroll/peel message.
29549
29550 2013-05-15 Teresa Johnson <tejohnson@google.com>
29551
29552 * function.h (has_bb_partition): New rtl_data flag.
29553 (bb_reorder_complete): Ditto.
29554 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29555 instead of flag_reorder_blocks_and_partition.
29556 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29557 with some enhancements.
29558 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29559 * bb-reorder.c (connect_traces): Check for has_bb_partition
29560 instead of flag_reorder_blocks_and_partition.
29561 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29562 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29563 verify_hot_cold_block_grouping.
29564 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29565
29566 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29567
29568 PR target/19599
29569 * config/arm/predicates.md (call_insn_operand): New predicate.
29570 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29571 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29572 if insn is not a tail call.
29573 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29574 registers.
29575 * config/arm/arm.h (enum reg_class): New caller save register class.
29576 (REG_CLASS_NAMES): Likewise.
29577 (REG_CLASS_CONTENTS): Likewise.
29578 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29579 without decls.
29580
29581 2013-05-15 Richard Biener <rguenther@suse.de>
29582
29583 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29584 of MSG_OPTIMIZED_LOCATIONS.
29585 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29586 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29587 message.
29588 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29589 of MSG_OPTIMIZED_LOCATIONS.
29590 (execute_vect_slp): Likewise.
29591 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29592 (vect_create_cond_for_alias_checks): Likewise.
29593 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29594 (vect_recog_widen_mult_pattern): Likewise.
29595 (vect_recog_widen_sum_pattern): Likewise.
29596 (vect_recog_over_widening_pattern): Likewise.
29597 (vect_recog_widen_shift_pattern): Likewise.
29598 (vect_recog_vector_vector_shift_pattern): Likewise.
29599 (vect_recog_divmod_pattern): Likewise.
29600 (vect_recog_mixed_size_cond_pattern): Likewise.
29601 (vect_recog_bool_pattern): Likewise.
29602 (vect_pattern_recog_1): Likewise.
29603
29604 2013-05-15 Martin Jambor <mjambor@suse.cz>
29605
29606 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29607 non-functions to builtin_unreachable.
29608 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29609 correct when new direct edges were discovered.
29610
29611 2013-05-15 Martin Jambor <mjambor@suse.cz>
29612
29613 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29614 header, print symbol order instead of node uid, print more information
29615 about indirect edge targets.
29616 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29617 uids.
29618 (ipa_make_edge_direct_to_target): Likewise.
29619 (remove_described_reference): Likewise.
29620 (propagate_controlled_uses): Likewise.
29621 (ipa_print_node_params): Also print symbol order.
29622 (ipcp_transform_function): Print symbol order instead of node uids.
29623 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29624 (cgraph_get_create_real_symbol_node): Likewise.
29625 * ipa-cp.c (print_lattice): Likewise.
29626 (print_all_lattices): Likewise.
29627 (determine_versionability): Likewise.
29628 (initialize_node_lattices): Likewise.
29629 (estimate_local_effects): Likewise.
29630 (update_profiling_info): Likewise.
29631 (create_specialized_node): Likewise.
29632 (perhaps_add_new_callers): Likewise.
29633 (decide_about_value): Likewise.
29634 (decide_whether_version_node): Likewise.
29635 (identify_dead_nodes): Likewise.
29636 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29637 (dump_inline_summary): Likewise.
29638 (estimate_node_size_and_time): Likewise.
29639 (inline_analyze_function): Likewise.
29640 * ipa-inline.c (report_inline_failed_reason): Likewise.
29641 (want_early_inline_function_p): Likewise.
29642 (edge_badness): Likewise.
29643 (update_edge_key): Likewise.
29644 (inline_small_functions): Likewise. Add dumping of order to two other
29645 dumps.
29646 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29647 instead of node uids.
29648 (propagate_pure_const): Likewise.
29649 (propagate_pure_const): Likewise.
29650 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29651 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29652 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29653 of node uids.
29654 * tree-pretty-print.c (dump_function_header): Likewise.
29655 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29656 Print symbol order instead of node uids.
29657
29658 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29659
29660 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29661 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29662
29663 2013-05-15 Richard Biener <rguenther@suse.de>
29664
29665 PR tree-optimization/57275
29666 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29667 return value for fail to do runtime alias checks for gather loads.
29668
29669 2013-05-15 Jan Hubicka <jh@suse.cz>
29670
29671 PR lto/57038
29672 PR lto/47375
29673 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29674 weakrefs are not external.
29675 (lto_symtab_merge_decls): Fix thinko when dealing with
29676 non-lto_symtab decls.
29677 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29678 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29679 * varpool.c (dump_varpool_node): Dump more flags.
29680
29681 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29682
29683 * config/i386/i386.c (processor_alias_table): Add instruction
29684 FSGSBASE for AMD bdver3 architecture.
29685
29686 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29687
29688 * tree.c (warn_deprecated_use): Print file:line using locus color.
29689 * diagnostic.c (diagnostic_report_current_module): Print file:line
29690 and file:line:column using locus color.
29691
29692 2013-05-14 Mike Stump <mikestump@comcast.net>
29693
29694 * gdbinit.in: Add __null.
29695
29696 2013-05-14 Mike Stump <mikestump@comcast.net>
29697
29698 * recog.h: Rename struct recog_data to Recog_data.
29699 * recog.c: Likewise.
29700 * reload.c (can_reload_into): Likewise.
29701 * config/picochip/picochip.c: Likewise.
29702
29703 2013-05-14 Mike Stump <mikestump@comcast.net>
29704
29705 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29706
29707 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29708
29709 * resource.h (struct resources): Remove unch_memory member.
29710 (CLEAR_RESOURCE): Don't clear unch_memory.
29711 * resource.c (mark_referenced_resources): Don't set it.
29712 (mark_set_resources): Likewise.
29713 (mark_target_live_regs): Don't clear it.
29714 (init_resource_info): Likewise.
29715 * reorg.c (resource_conflicts_p): Don't compare it.
29716 (redundant_insn): Don't set it.
29717
29718 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29719 Remove prototypes.
29720 * emit-rtl.c (next_label): Remove unused function.
29721 (skip_consecutive_labels, link_cc0_insns): Move to ...
29722 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29723 only place where these functions are used, and make them static.
29724
29725 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29726
29727 * fold-const.c (fold_negate_expr): Handle vectors.
29728 (fold_truth_not_expr): Make it static.
29729 (fold_invert_truthvalue): New static function.
29730 (invert_truthvalue_loc): Handle vectors. Do not call
29731 fold_truth_not_expr directly.
29732 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29733 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29734 (fold_comparison): Handle vector constants.
29735 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29736 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29737 * tree.h (fold_truth_not_expr): Remove declaration.
29738
29739 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29740
29741 * config/aarch64/aarch64-simd.md
29742 (aarch64_vcond_internal<mode>): Rename to...
29743 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29744 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29745 float modes. Clarify all iterator modes.
29746 (vcond<mode><mode>): Use new name for vcond expanders.
29747 (vcond<v_cmp_result><mode>): Likewise.
29748 (vcondu<mode><mode>: Likewise.
29749 * config/aarch64/iterators.md (VDQF_COND): New.
29750
29751 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29752
29753 PR bootstrap/57266
29754 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29755 variable for the shift amount. Check that we shift by non-negative
29756 amounts.
29757
29758 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29759
29760 PR target/42017
29761 * config/arm/arm.h (EPILOGUE_USES): Only return true
29762 for LR_REGNUM after epilogue_completed.
29763
29764 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29765
29766 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29767 is error_mark_node.
29768
29769 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29770
29771 PR target/57261
29772 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29773 and Solaris 11+/x86 with gld.
29774 * configure: Regenerate.
29775
29776 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29777
29778 * expmed.c (expand_shift_1): Canonicalize rotates by
29779 constant bitsize / 2 to bitsize - 1.
29780 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29781 case ROTATERT>: Likewise.
29782
29783 Revert:
29784 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29785
29786 * config/i386/i386.md (rotateinv): New code attr.
29787 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29788 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29789 roll $31, %eax, etc.
29790
29791 2013-05-14 Richard Biener <rguenther@suse.de>
29792
29793 PR middle-end/57235
29794 * tree-eh.c (sink_clobbers): Give up for successors with
29795 multiple predecessors and no virtual uses.
29796
29797 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29798
29799 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29800 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29801
29802 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29803
29804 PR middle-end/57251
29805 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29806 the case when both op0 and op1 have VOIDmode.
29807
29808 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29809
29810 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29811 in multiply-accumulate mode.
29812
29813 2013-05-13 Guozhi Wei <carrot@google.com>
29814
29815 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29816
29817 2013-05-13 Kai Tietz <ktietz@redhat.com>
29818
29819 PR target/56975
29820 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29821 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29822 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29823 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29824 (ix86_expand_prologue): Likewise.
29825 (ix86_expand_split_stack_prologue): Likewise.
29826 (legitimate_pic_address_disp_p): Likewise.
29827 (legitimize_pic_address): Likewise.
29828 (legitimize_tls_address): Likewise.
29829 (legitimize_pe_coff_symbol): Likewise.
29830 (output_pic_addr_const): Likewise.
29831 (construct_plt_address): Likewise.
29832 (ix86_expand_call): Likewise.
29833 (x86_output_mi_thunk): Likewise.
29834 (x86_function_profiler): Likewise.
29835
29836 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29837
29838 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29839 similar switch cases.
29840 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29841 (aarch64_simd_mov_to_<mode>low): Delete.
29842 (aarch64_simd_mov_to_<mode>high): Delete.
29843 (move_lo_quad_<mode>): Add w<-r alternative.
29844 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29845 (aarch64_simd_mov_from_*): Update type attribute.
29846 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29847 statement.
29848
29849 2013-05-13 Jan Hubicka <jh@suse.cz>
29850
29851 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29852 * config/i386/i386.c (ix86_compute_frame_layout,
29853 ix86_expand_epilogue, emit_i387_cw_initialization,
29854 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29855 ix86_local_alignment): Fix use of size/speed predicates.
29856
29857 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29858
29859 PR tree-optimization/45216
29860 PR tree-optimization/57157
29861 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29862 the (-Y) & (B - 1) variant if OP is |.
29863 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29864 return shifted. Use (-op1) & (prec - 1) as other_amount
29865 instead of prec - op1.
29866
29867 2013-05-13 Martin Jambor <mjambor@suse.cz>
29868
29869 PR middle-end/42371
29870 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29871 (ipa_constant_data): New type.
29872 (ipa_jump_func): Use ipa_constant_data to hold information about
29873 constant jump functions.
29874 (ipa_get_jf_constant): Adjust to jump function type changes.
29875 (ipa_get_jf_constant_rdesc): New function.
29876 (ipa_param_descriptor): New field controlled_uses.
29877 (ipa_get_controlled_uses): New function.
29878 (ipa_set_controlled_uses): Likewise.
29879 * ipa-ref.h (ipa_find_reference): Declare.
29880 * ipa-prop.c (ipa_cst_ref_desc): New type.
29881 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29882 changes.
29883 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29884 New parameter cs. Adjust all callers.
29885 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29886 (remove_described_reference): New function.
29887 (jfunc_rdesc_usable): Likewise.
29888 (try_make_edge_direct_simple_call): Decrement controlled use count,
29889 attempt to remove reference if it hits zero.
29890 (combine_controlled_uses_counters): New function.
29891 (propagate_controlled_uses): Likewise.
29892 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29893 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29894 (ipa_print_node_params): Print described use counter.
29895 (ipa_write_jump_function): Adjust to jump function type changes.
29896 (ipa_read_jump_function): New parameter CS, pass it to
29897 ipa_set_jf_constant. Adjust caller.
29898 (ipa_write_node_info): Stream controlled use count
29899 (ipa_read_node_info): Likewise.
29900 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29901 asserting.
29902 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29903 count. Remove cloning-added reference if it reaches zero.
29904 * ipa-ref.c (ipa_find_reference): New function.
29905
29906 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29907
29908 * config/i386/i386.c (processor_target_table): Modified default
29909 alignment values for AMD BD and BT architectures.
29910
29911 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29912
29913 * tree-vect-generic.c (uniform_vector_p): Move ...
29914 * tree.c (uniform_vector_p): ... here.
29915 * tree.h (uniform_vector_p): Declare it.
29916 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29917 into a scalar.
29918
29919 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29920
29921 PR tree-optimization/57230
29922 * tree-ssa-strlen.c (handle_char_store): Record length for
29923 array store from STRING_CST.
29924
29925 PR tree-optimization/57230
29926 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29927 check.
29928
29929 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29930
29931 * config/epiphany/epiphany.c (epiphany_init): Check size of
29932 NUM_MODES_FOR_MODE_SWITCHING.
29933 (epiphany_expand_prologue):
29934 Remove CONFIG_REGNUM initial value handling code.
29935 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29936 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29937 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29938 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29939 Don't return 1 for FP_MODE_NONE.
29940 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29941 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29942 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29943 * config/epiphany/epiphany.md (save_config): New pattern.
29944
29945 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29946
29947 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29948
29949 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29950
29951 * config/i386/i386.md (memory): Handle sseishft1.
29952 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29953 (*vec_extractv2di_1): Ditto.
29954
29955 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29956
29957 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29958 saved registers.
29959
29960 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29961
29962 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29963 Add mthumb/march=armv7-a multilib.
29964 Add mthumb/march=armv7-r multilib.
29965 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29966
29967 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29968
29969 * config/v850/t-rtems: Add more multilibs.
29970
29971 2013-05-10 Richard Biener <rguenther@suse.de>
29972
29973 PR tree-optimization/57214
29974 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29975 not propagate from SSA names that occur in abnormal PHI nodes.
29976
29977 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29978
29979 * stor-layout.c (element_precision): New function.
29980 * machmode.h (element_precision): Declare it.
29981 * tree.c (build_minus_one_cst): New function.
29982 (element_precision): Likewise.
29983 * tree.h (build_minus_one_cst): Declare new function.
29984 (element_precision): Likewise.
29985 * fold-const.c (operand_equal_p): Use element_precision.
29986 (fold_binary_loc): Handle vector types.
29987 * convert.c (convert_to_integer): Use element_precision.
29988 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29989 separately.
29990
29991 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29992
29993 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29994 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29995 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29996 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29997 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29998 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29999 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
30000 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30001 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
30002 (Uuw8): New constraints.
30003 (Usb4): Move into alphabetical order.
30004 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
30005 (sd8_operand, ub8_operand, uw8_operand): New predicates.
30006 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30007 previously unnamed patterns.
30008 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30009 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30010 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30011 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30012 of set_attr_alternative/if_then_else. Use extended_mips16 instead
30013 of specific lengths.
30014
30015 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30016
30017 * config/i386/i386.md (rotateinv): New code attr.
30018 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30019 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30020 roll $31, %eax, etc.
30021
30022 PR tree-optimization/45216
30023 PR tree-optimization/57157
30024 * tree-ssa-forwprop.c (simplify_rotate): New function.
30025 (ssa_forward_propagate_and_combine): Call it.
30026
30027 2013-05-10 Richard Biener <rguenther@suse.de>
30028
30029 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30030 disable peeling when we version for aliasing.
30031 (vector_alignment_reachable_p): Honor explicit user alignment.
30032 (vect_supportable_dr_alignment): Likewise.
30033 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30034 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30035 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30036 then peeling to arrange for the cost-model check to come first.
30037
30038 2013-05-10 Alan Modra <amodra@gmail.com>
30039
30040 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30041 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30042 * configure: Regenerate.
30043
30044 2013-05-10 Alan Modra <amodra@gmail.com>
30045
30046 PR target/55033
30047 * varasm.c (default_elf_select_section): Move !DECL_P check..
30048 (get_named_section): ..to here before calling get_section_name.
30049 Adjust assertion.
30050 (default_section_type_flags): Add DECL_P check.
30051 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30052 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30053
30054 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
30055
30056 * config/epiphany/epiphany.c (epiphany_expand_prologue):
30057 When using gen_stack_adjust_str with a register offset, add a
30058 REG_FRAME_RELATED_EXPR note.
30059
30060 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
30061
30062 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30063 (*vec_extractv4si_zext_mem): Ditto.
30064 (*vec_extractv2di): Add 0->x and x->x alternatives.
30065 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30066 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30067
30068 2013-05-09 Jason Merrill <jason@redhat.com>
30069
30070 N3639 C++1y VLA support
30071 * gimplify.c (gimplify_vla_decl): Don't touch an existing
30072 DECL_VALUE_EXPR.
30073
30074 * tree.c (build_constructor_va): New.
30075 * tree.h: Declare it.
30076
30077 2013-05-09 Martin Jambor <mjambor@suse.cz>
30078
30079 PR lto/57084
30080 * gimple-fold.c (canonicalize_constructor_val): Call
30081 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30082
30083 2013-05-09 Jan Hubicka <jh@suse.cz>
30084 Richard Biener <rguenther@suse.de>
30085
30086 PR lto/54095
30087 * symtab.c (symtab_make_decl_local): Do not add private names.
30088
30089 2013-05-09 Jan Hubicka <jh@suse.cz>
30090
30091 PR lto/54095
30092 * symtab.c (insert_to_assembler_name_hash): Handle clones.
30093 (unlink_from_assembler_name_hash): Likewise.
30094 (symtab_prevail_in_asm_name_hash, symtab_register_node,
30095 symtab_unregister_node, symtab_initialize_asm_name_hash,
30096 change_decl_assembler_name): Update.
30097
30098 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
30099
30100 * config/aarch64/aarch64.md: New movtf split.
30101 (*movtf_aarch64): Update.
30102 (aarch64_movdi_tilow): Handle TF modes and rename to
30103 aarch64_movdi_<mode>low.
30104 (aarch64_movdi_tihigh): Handle TF modes and rename to
30105 aarch64_movdi_<mode>high
30106 (aarch64_movtihigh_di): Handle TF modes and rename to
30107 aarch64_mov<mode>high_di
30108 (aarch64_movtilow_di): Handle TF modes and rename to
30109 aarch64_mov<mode>low_di
30110 (aarch64_movtilow_tilow): Remove spurious whitespace.
30111 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30112 splits.
30113 (aarch64_print_operand): Update.
30114
30115 2013-05-09 Alan Modra <amodra@gmail.com>
30116
30117 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30118 powerpc64le.
30119 * configure: Regenerate.
30120
30121 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30122
30123 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30124 splitter preparation statements.
30125 * config/i386/sse.md (*vec_extract* splitters): Ditto.
30126 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30127 adjust_address_nv.
30128
30129 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30130
30131 * gimple-ssa-strength-reduction.c (count_candidates): Change
30132 return value to int.
30133 (analyze_candidates_and_replace): Change type of length to int.
30134
30135 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30136
30137 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30138 (*vec_extract<mode>): Use VI12_128 mode iterator.
30139 (*vec_extract<mode>_mem): Ditto.
30140 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30141 attribute.
30142
30143 2013-05-08 Diego Novillo <dnovillo@google.com>
30144
30145 PR bootstrap/54659
30146
30147 Revert:
30148 2012-08-17 Diego Novillo <dnovillo@google.com>
30149
30150 PR bootstrap/54281
30151 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30152 * config.in: Regenerate.
30153 * configure: Regenerate.
30154 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30155
30156 2013-05-08 Jan Hubicka <jh@suse.cz>
30157
30158 PR lto/54095
30159 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30160 * cgraph.h (symtab_node_base): Add unique_name.
30161 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30162 input_overwrite_node, input_varpool_node): Stream unique_name.
30163 * cgraphclones.c (cgraph_create_virtual_clone,
30164 cgraph_function_versioning): Set unique_name.
30165 * ipa.c (function_and_variable_visibility): Set unique_name.
30166
30167 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30168
30169 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30170 (alloc_cand_and_find_basis): Restrict conditional candidate
30171 processing to CAND_MULTs.
30172
30173 2013-05-08 Jan Hubicka <jh@suse.cz>
30174
30175 PR lto/54095
30176 lto-symtab.c (lto_symtab_symbol_p): New function.
30177 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30178 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30179 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30180 Skip static symbols.
30181
30182 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
30183
30184 PR tree-optimization/57200
30185 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30186 Only call inform if the preceding warning_at returns true.
30187
30188 2013-05-07 Han Shen <shenhan@google.com>
30189
30190 * cfgexpand.c (record_or_union_type_has_array_p): New function.
30191 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30192 * common.opt (fstack-protector-strong): New option.
30193 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30194 * doc/invoke.texi (Optimization Options): Document
30195 "-fstack-protector-strong".
30196 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30197
30198 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30199
30200 * config/mips/mips.c (mips_machine_reorg2): Return 0.
30201
30202 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
30203
30204 * ira.c (update_equiv_regs): Add insn having equiv memory even if
30205 it is not lhs of the insn.
30206 (setup_reg_equiv): Remove insn having equiv memory which it is not
30207 lhs of the insn.
30208 * lra-constraints.c (process_address): Try to improve generation
30209 code for address base + disp.
30210 (lra_constraints): Make correct the code for checking insn setting
30211 up backward equivalence. Remove insn only if it is in the init
30212 insn list.
30213 * lra-eliminations.c (update_reg_eliminate): Change return value.
30214 (lra_eliminate): Use the result.
30215
30216 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
30217
30218 * config/i386/sse.md (ssescalarnummask): New mode attribute.
30219 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30220 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30221 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30222 register target operands.
30223 (*vec_extractv8hi_sse2): New pattern.
30224 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30225 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30226 (*vec_extract<mode>_mem): New insn and split pattern.
30227
30228 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
30229
30230 * config/arm/arm.c (arm_asan_shadow_offset): New function.
30231 (TARGET_ASAN_SHADOW_OFFSET): Define.
30232 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30233 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30234
30235 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30236
30237 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30238 (incr_vec_index): Return -1 if increment not found.
30239 (create_add_on_incoming_edge): Assert if increment not found.
30240 (record_increment): Limit number of increments recorded.
30241 (all_phi_incrs_profitable): Return false if an increment not found.
30242 (replace_profitable_candidates): Don't process increments that were
30243 not recorded.
30244 (analyze_candidates_and_replace): Limit size of incr_vec.
30245
30246 2013-05-07 Richard Biener <rguenther@suse.de>
30247
30248 * calls.c (special_function_p): setjmp-like functions are leaf.
30249 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30250 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30251
30252 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
30253
30254 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30255 (aarch64_simd_mov<mode>): New expander.
30256 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30257 (aarch64_simd_mov_to_<mode>high): Likewise.
30258 (aarch64_simd_mov_from_<mode>low): Likewise.
30259 (aarch64_simd_mov_from_<mode>high): Likewise.
30260 (aarch64_dup_lane<mode>): Update.
30261 (aarch64_dup_lanedi): New instruction pattern.
30262 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30263 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30264
30265 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30266
30267 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30268 (replace_mult_candidate): Remove unnecessary argument; remove
30269 unnecessary parameter from call to introduce_cast_before_cand.
30270 (replace_unconditional_candidate): Remove unnecessary parameter
30271 from call to replace_mult_candidate.
30272 (replace_conditional_candidate): Likewise.
30273 (insert_initializers): Use make_temp_ssa_name.
30274 (introduce_cast_before_cand): Remove unnecessary argument; use
30275 make_temp_ssa_name.
30276 (replace_one_candidate): Remove unnecessary argument; remove
30277 unnecessary parameter from calls to introduce_cast_before_cand.
30278 (replace_profitable_candidates): Remove unnecessary parameters
30279 from calls to replace_one_candidate.
30280
30281 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30282
30283 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30284 phi def as possibly hiding a basis for a CAND_ADD whose operands
30285 have been commuted in the analysis.
30286 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30287
30288 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30289
30290 * config/aarch64/aarch64.md
30291 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30292 shift value between 0-4.
30293
30294 2013-05-07 Richard Biener <rguenther@suse.de>
30295
30296 * double-int.h (rshift): New overload.
30297 * double-int.c (rshift): New function.
30298 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30299 (create_reference_ops_from_ref): Remove.
30300 (vn_reference_insert): Use shared ops for constructing the
30301 reference and copy it.
30302
30303 2013-05-07 Richard Biener <rguenther@suse.de>
30304
30305 PR middle-end/57190
30306 * tree-eh.c (sink_clobbers): Properly propagate
30307 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30308
30309 2013-05-07 Jakub Jelinek <jakub@redhat.com>
30310
30311 PR tree-optimization/57149
30312 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30313 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30314 collect_phi_def_edges, execute_late_warn_uninitialized): Use
30315 uninit_undefined_value_p instead of ssa_undefined_value_p.
30316
30317 PR debug/57184
30318 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30319 for modifier == EXPAND_INITIALIZER.
30320
30321 2013-05-07 Anton Blanchard <anton@samba.org>
30322
30323 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30324 for powerpc64 little endian.
30325 * configure: Regenerate.
30326
30327 2013-05-06 Graham Stott <grahams@btinternet.com>
30328
30329 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30330 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30331 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30332 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30333
30334 2013-05-06 Graham Stott <grahams@btinternet.com>
30335
30336 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30337 codes which allow non-lvalues.
30338
30339 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
30340
30341 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30342 components are all 1s.
30343 (integer_minus_onep): New function.
30344 * tree.h (integer_minus_onep): Declare it.
30345 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30346 integer_minus_onep instead of integer_all_onesp.
30347
30348 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30349
30350 PR target/52933
30351 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30352 variations of these patterns.
30353
30354 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30355
30356 * config/i386/i386.md (isa): Add x64_sse4 member.
30357 (enabled): Handle x64_sse4.
30358 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30359 instruction for 64bit SSE4_1 targets. Update insn attributes.
30360 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30361 instruction for SSE4_1 targets. Update insn attributes.
30362 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30363 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30364 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30365 const_1 selector.
30366 (*vec_extractv4si): Rename from *sse4_1_pextrd.
30367 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30368 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30369
30370 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30371
30372 PR target/57108
30373 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30374
30375 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
30376
30377 * final.c (do_assembler_dialects): Don't handle curly braces and
30378 vertical bar escaped by % as dialect delimiters.
30379 (output_asm_insn): Print curly braces and vertical bar if escaped
30380 by % and ASSEMBLER_DIALECT defined.
30381 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30382 * doc/tm.texi: Regenerated.
30383
30384 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30385
30386 * config/mips/mips.c: Include tree-pass.h.
30387 (mips_reorg): Split in pre- and post-dbr_schedule parts.
30388 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30389 (pass_mips_machine_reorg2): New machine specific pass.
30390 (insert_pass_mips_machine_reorg2): New pass plugin definition.
30391 (mips_option_override): Register the new pass.
30392 * rtl.h (cleanup_barriers): Remove prototype.
30393 (dbr_schedule): Likewise.
30394 * jump.c (cleanup_barriers): Make static.
30395 * reorg.c (dbr_schedule): Likewise.
30396
30397 2013-05-06 Richard Biener <rguenther@suse.de>
30398
30399 PR tree-optimization/57185
30400 * tree-parloops.c (add_field_for_reduction): Handle anonymous
30401 SSA names properly.
30402
30403 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30404
30405 PR target/57106
30406 * config/i386/i386.c (add_parameter_dependencies): Add dependence
30407 between "first_arg" and "insn", not "last" and "insn".
30408
30409 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30410
30411 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30412 (find_candidates_in_block): Re-enable slsr_process_phi.
30413 (create_phi_basis): Fix double counting of candidate adjustment.
30414
30415 2013-05-06 Richard Biener <rguenther@suse.de>
30416
30417 PR middle-end/57147
30418 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30419 the edge is also fallthru, preserve it and just clear the
30420 abnormal flag.
30421 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30422 also complex, preserve that and just clear the fallthru flag.
30423 * tree-inline.c (update_ssa_across_abnormal_edges): Also
30424 update virtual operands.
30425
30426 2013-05-06 Alan Modra <amodra@gmail.com>
30427
30428 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30429 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30430 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30431 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30432 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30433 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30434
30435 2013-05-06 Alan Modra <amodra@gmail.com>
30436
30437 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30438 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
30439 (DEFAULT_ASM_ENDIAN): Define.
30440 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30441 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30442 Update -K PIC clause from sysv4.h.
30443 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30444 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30445
30446 2013-05-06 Alan Modra <amodra@gmail.com>
30447
30448 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30449 twice for little-endian.
30450 (ashrdi3_no_power, ashrdi3): Support little-endian.
30451
30452 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30453
30454 PR target/55303
30455 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30456 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30457 related expanders.
30458 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30459 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30460 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30461 New predicates.
30462
30463 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30464 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30465
30466 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30467 * config/pa/pa.opt: Make mbig-switch a no-op.
30468 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30469 (CASE_VECTOR_MODE): Always return SImode.
30470 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30471 for the !TARGET_BIG_SWITCH case.
30472 * config/pa/pa-linux.h: Likewise.
30473 * config/pa/pa-openbsd.h: Likewise.
30474 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30475 * config/pa/pa.md (short_jump): Remove define_insn.
30476 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30477 (casesi0): Remove define_insn.
30478 (type): Remove btable_branch.
30479 (pa_combine_type): Likewise.
30480 (in_nullified_branch_delay): Likewise.
30481 (in_call_delay): Likewise.
30482 (define_delay): Likewise.
30483 (define_insn_reservation "Z3"): Likewise.
30484 (define_insn_reservation "Z4"): Likewise.
30485 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30486 (pa_adjust_insn_length): Remove adjustment for btable branches.
30487 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30488 and mno-big-switch
30489
30490 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30491
30492 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30493 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30494 Add m->r,x alternatives.
30495 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30496 splitters using SWI48x mode iterator.
30497 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30498 TARGET_64BIT. Add m->x alternative.
30499 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30500 Add o->x alternative. Enable for TARGET_SSE.
30501 (sse_storeq): Remove expander.
30502 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30503 with memory input operand.
30504 (*vec_extractv2di_1 splitter): New.
30505 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30506 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30507
30508 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30509
30510 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30511 (INT_LOWPART): Delete.
30512 (extract_MB): Adjust.
30513 (extract_ME): Adjust.
30514 (print_operand): Adjust.
30515
30516 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30517
30518 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30519 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30520 (reg_or_logical_cint_operand, easy_fp_constant,
30521 logical_const_operand): Delete "CONST_DOUBLE" case.
30522 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30523 "HOST_BITS_PER_WIDE_INT == 64" test.
30524 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30525 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30526 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30527 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30528 test.
30529 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30530 CONST_DOUBLE DImode/VOIDmode case.
30531 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30532 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30533 CONST_DOUBLE VOIDmode case.
30534 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30535 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30536 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30537 Delete CONST_DOUBLE case.
30538 (splitters for mov FMOVE64 const_double): Delete
30539 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30540 "HOST_BITS_PER_WIDE_INT >= 64" test.
30541 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30542 case.
30543 (mov DI const_double): Delete.
30544
30545 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30546
30547 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30548 on op shows all bits zero in mode of a lowpart subreg, return zero.
30549
30550 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30551
30552 PR target/57150
30553 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30554 to save TFmode registers and DImode to save TImode registers for
30555 caller save operations.
30556 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30557 mark being partially clobbered since they only use the first
30558 double word.
30559
30560 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30561 and TDmode only use the upper 64-bits of each VSX register.
30562
30563 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30564
30565 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30566 (find_candidates_in_block): Disable slsr_process_phi.
30567
30568 2013-05-03 Guozhi Wei <carrot@google.com>
30569
30570 * coverage.c (coverage_obj_init): Move the construction of gcov
30571 constructor to ...
30572 (build_init_ctor): ... here.
30573
30574 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30575
30576 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30577 (slsr_cand_d): Redefine def_phi.
30578 (stride_status, phi_adjust_status, count_phis_status): New enums.
30579 (find_phi_def): New.
30580 (find_basis_for_base_expr): New.
30581 (find_basis_for_candidate): Handle hidden bases.
30582 (alloc_cand_and_find_basis): Handle phi candidates.
30583 (slsr_process_phi): New.
30584 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30585 (create_mul_imm_cand): Likewise.
30586 (create_add_ssa_cand): Exclude phi base candidates.
30587 (create_add_imm_cand): Likewise.
30588 (slsr_process_cast): Likewise.
30589 (slsr_process_copy): Likewise.
30590 (find_candidates_in_block): Handle phi candidates.
30591 (dump_candidate): Likewise.
30592 (unconditional_cands): Delete.
30593 (unconditional_cands_with_known_stride_p): Delete.
30594 (phi_dependent_cand_p): New.
30595 (cand_increment): Handle phi-dependent candidates.
30596 (replace_dependent): Delete.
30597 (replace_mult_candidate): New.
30598 (replace_unconditional_candidate): New.
30599 (incr_vec_index): Move to avoid forward reference.
30600 (create_add_on_incoming_edge): New.
30601 (create_phi_basis): New.
30602 (replace_dependents): Delete.
30603 (replace_conditional_candidate): New.
30604 (phi_add_costs): New.
30605 (replace_uncond_cands_and_profitable_phis): New.
30606 (record_increment): Handle phi adjustments.
30607 (record_phi_increments): New.
30608 (record_increments): Handle phi adjustments.
30609 (phi_incr_cost): New.
30610 (lowest_cost_path): Handle phis.
30611 (total_savings): Likewise.
30612 (analyze_increments): Likewise.
30613 (ncd_with_phi): New.
30614 (ncd_of_cand_and_phis): New.
30615 (nearest_common_dominator_for_cands): Handle phi increments.
30616 (all_phi_incrs_profitable): New.
30617 (replace_profitable_candidates): Handle phi-dependent candidates.
30618 (analyze_candidates_and_replace): Likewise.
30619
30620 2013-05-03 Teresa Johnson <tejohnson@google.com>
30621
30622 PR bootstrap/57154
30623 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30624 do not exceed REG_BR_PROB_BASE.
30625
30626 2013-05-03 Jeff Law <law@redhat.com>
30627
30628 PR tree-optimization/57144
30629 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30630 operand of the condition will bit into the new type when eliminating
30631 a cast feeding a condition.
30632
30633 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30634
30635 PR rtl-optimization/57130
30636 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30637 of COMPARE as in_code to the recursive call if needed.
30638
30639 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30640
30641 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30642 (enabled): Handle new members.
30643 * config/i386/sse.md (*vec_concatv2si): Merge from
30644 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30645 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30646
30647 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30648
30649 PR tree-optimization/57027
30650 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30651 for fnms opportunity, check we got the prerequisite kind
30652 of tree / gimple before using accessor functions.
30653
30654 2013-05-03 Richard Biener <rguenther@suse.de>
30655
30656 * double-int.h (lshift): New overload without precision
30657 and arith argument.
30658 (operator *=, operator +=, operator -=): Move ...
30659 * double-int.c (operator *=, operator +=, operator -=): ... here
30660 and implement more efficiently.
30661 (mul_double_with_sign): Remove.
30662 (lshift_double): Adjust to take unsinged shift argument, push
30663 dispatching code to callers.
30664 (mul_double_wide_with_sign): Add early out for callers that
30665 are not interested in high parts or overflow.
30666 (lshift): New function.
30667 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30668 dispatch code here.
30669 (lrotate, rrotate): Use logical shifts.
30670 * expr.c (get_inner_reference): Use lshift.
30671 * fixed-value.c (do_fixed_divide): Likewise.
30672 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30673 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30674 (indirect_refs_may_alias_p): Likewise.
30675 (stmt_kills_ref_p_1): Likewise.
30676
30677 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30678
30679 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30680
30681 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30682
30683 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30684 scalar form of FABD instruction.
30685
30686 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30687
30688 * lra-constraints.c (process_alt_operands): Add checking alt
30689 number to choose the best alternative.
30690
30691 2013-05-02 Richard Biener <rguenther@suse.de>
30692
30693 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30694 bitmap and its handling.
30695 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30696
30697 2013-05-02 Richard Biener <rguenther@suse.de>
30698
30699 PR middle-end/57140
30700 * tree-inline.c (copy_loops): Properly handle removed loops.
30701 (copy_cfg_body): Mark destination loops for fixup if source
30702 loops needed fixup.
30703
30704 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30705
30706 PR target/56732
30707 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30708 generating simple_return for naked functions.
30709
30710 2013-05-02 Martin Jambor <mjambor@suse.cz>
30711
30712 PR middle-end/56988
30713 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30715 flags match.
30716 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30717 ipa_agg_replacement_value structures.
30718 (known_aggs_to_agg_replacement_list): Likewise.
30719 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30720 (read_agg_replacement_chain): Likewise.
30721 (ipcp_transform_function): Also check that by_ref flags match.
30722
30723 2013-05-02 Richard Biener <rguenther@suse.de>
30724
30725 * graphds.h (struct graph): Add obstack member.
30726 * graphds.c (new_graph): Initialize obstack and allocate
30727 vertices from it.
30728 (add_edge): Allocate edge from the obstack.
30729 (free_graph): Free the obstack instead of all edges and vertices.
30730
30731 2013-05-02 Teresa Johnson <tejohnson@google.com>
30732
30733 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30734 divides.
30735 * cfg.c (update_bb_profile_for_threading): Ditto.
30736 * tree-inline.c (copy_bb): Ditto.
30737 (copy_edges_for_bb): Ditto.
30738 (initialize_cfun): Ditto.
30739 (copy_cfg_body): Ditto.
30740 (expand_call_inline): Ditto.
30741 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30742 (estimate_node_size_and_time): Ditto.
30743 (inline_merge_summary): Ditto.
30744 * cgraphclones.c (cgraph_clone_edge): Ditto.
30745 (cgraph_clone_node): Ditto.
30746 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30747 (compute_trg_info): Ditto.
30748
30749 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30750
30751 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30752 S reg when fp attribute set.
30753 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30754
30755 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30756
30757 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30758 New pattern.
30759 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30760 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30761 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30762
30763 2013-05-02 Richard Biener <rguenther@suse.de>
30764
30765 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30766 (struct instantiate_cache_entry): New type.
30767 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30768 (struct instantiate_cache_type): New type.
30769 (set_instantiated_value, get_instantiated_value): Remove.
30770 (get_instantiated_value_entry): New function.
30771 (instantiate_scev_name): Use the new cache and adjust.
30772 (instantiate_scev_poly): Adjust.
30773 (instantiate_scev_binary): Likewise.
30774 (instantiate_array_ref): Likewise.
30775 (instantiate_scev_convert): Likewise.
30776 (instantiate_scev_not): Likewise.
30777 (instantiate_scev_3): Likewise.
30778 (instantiate_scev_2): Likewise.
30779 (instantiate_scev_r): Likewise.
30780 (instantiate_scev): Likewise.
30781 (resolve_mixers): Likewise.
30782
30783 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30784
30785 PR target/57091
30786 * lra-constraints.c (best_small_class_operands_num): Remove.
30787 (process_alt_operands): Remove small_class_operands_num. Take
30788 small classes operands into losers and only if the operand is not
30789 matched. Modify debugging output.
30790 (curr_insn_transform): Remove best_small_class_operands_num.
30791 Print insn name.
30792
30793 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30794
30795 * config/aarch64/aarch64-builtins.c
30796 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30797 * config/aarch64/aarch64-simd-builtins.def
30798 (reduc_splus_): Add new modes.
30799 (reduc_uplus_): New.
30800 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30801 (reduc_uplus_v4sf): Likewise.
30802 (reduc_splus_v4sf): Likewise.
30803 (aarch64_addv<mode>): Likewise.
30804 (reduc_uplus_<mode>): Likewise.
30805 (reduc_splus_<mode>): Likewise.
30806 (aarch64_addvv2di): Likewise.
30807 (reduc_uplus_v2di): Likewise.
30808 (reduc_splus_v2di): Likewise.
30809 (aarch64_addvv2si): Likewise.
30810 (reduc_uplus_v2si): Likewise.
30811 (reduc_splus_v2si): Likewise.
30812 (reduc_<sur>plus_<mode>): New.
30813 (reduc_<sur>plus_v2di): Likewise.
30814 (reduc_<sur>plus_v2si): Likewise.
30815 (reduc_<sur>plus_v4sf): Likewise.
30816 (aarch64_addpv4sf): Likewise.
30817 * config/aarch64/arm_neon.h
30818 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30819 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30820 add UNSPEC_SADDV, UNSPEC_UADDV.
30821 (SUADDV): New.
30822 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30823
30824 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30825
30826 * config/aarch64/arm_neon.h
30827 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30828
30829 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30830
30831 * config/aarch64/aarch64-builtins
30832 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30833
30834 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30835
30836 * config/aarch64/aarch64-simd-builtins.def
30837 (reduc_smax_): New.
30838 (reduc_smin_): Likewise.
30839 (reduc_umax_): Likewise.
30840 (reduc_umin_): Likewise.
30841 (reduc_smax_nan_): Likewise.
30842 (reduc_smin_nan_): Likewise.
30843 (fmax): Remove.
30844 (fmin): Likewise.
30845 (smax): Update for V2SF, V4SF and V2DF modes.
30846 (smin): Likewise.
30847 (smax_nan): New.
30848 (smin_nan): Likewise.
30849 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30850 (<su><maxmin><mode>3): ...This, refactor.
30851 (s<maxmin><mode>3): New.
30852 (<maxmin_uns><mode>3): Likewise.
30853 (reduc_<maxmin_uns>_<mode>): Refactor.
30854 (reduc_<maxmin_uns>_v4sf): Likewise.
30855 (reduc_<maxmin_uns>_v2si): Likewise.
30856 (aarch64_<fmaxmin><mode>: Remove.
30857 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30858 new builtin names.
30859 (vmin<q>_f<32,64>): Likewise.
30860 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30861 (FMAXMIN): New.
30862 (su): Add mappings for smax, smin, umax, umin.
30863 (maxmin): New.
30864 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30865 (FMAXMIN): Rename as...
30866 (FMAXMIN_UNS): ...This.
30867 (maxminv): Remove.
30868 (fmaxminv): Likewise.
30869 (fmaxmin): Likewise.
30870 (maxmin_uns): New.
30871 (maxmin_uns_op): Likewise.
30872
30873 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30874
30875 * config/aarch64/arm_neon.h
30876 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30877 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30878 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30879
30880 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30881
30882 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30883 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30884
30885 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30886
30887 * config/aarch64/aarch64-simd.md
30888 (vcond<mode>_internal): Handle special cases for constant masks.
30889 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30890 (vcondu<mode><mode>): Likewise.
30891 (vcond<v_cmp_result><mode>): New.
30892
30893 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30894
30895 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30896 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30897 * config/aarch64/aarch64-simd-builtins.def
30898 (cmeq): Update to BUILTIN_VALLDI.
30899 (cmgt): Likewise.
30900 (cmge): Likewise.
30901 (cmle): Likewise.
30902 (cmlt): Likewise.
30903 * config/aarch64/arm_neon.h
30904 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30905 to builtins or C as appropriate.
30906
30907 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30908
30909 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30910 (cmgeu): ...This.
30911 (cmhi): Rename to...
30912 (cmgtu): ...This.
30913 * config/aarch64/aarch64-simd.md
30914 (simd_mode): Add SF.
30915 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30916 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30917 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30918 (cstore<mode>_neg): ...This.
30919 * config/aarch64/iterators.md
30920 (VALLF): new.
30921 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30922 (COMPARISONS): New.
30923 (UCOMPARISONS): Likewise.
30924 (optab): Add missing comparisons.
30925 (n_optab): New.
30926 (cmp_1): Likewise.
30927 (cmp_2): Likewise.
30928 (CMP): Likewise.
30929 (cmp): Remove.
30930 (VCMP_S): Likewise.
30931 (VCMP_U): Likewise.
30932 (V_cmp_result): Add DF, SF modes.
30933 (v_cmp_result): Likewise.
30934 (v): Likewise.
30935 (vmtype): Likewise.
30936 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30937
30938 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30939
30940 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30941 define_insn to define_insn_and_split.
30942 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30943 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30944 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30945 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30946 (thumb2_negscc): Likewise.
30947
30948 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30949
30950 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30951
30952 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30953
30954 * config/arm/thumb2.md: Remove trailing whitespaces.
30955
30956 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30957
30958 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30959 Use gen_int_mode rather than GEN_INT.
30960
30961 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30962
30963 * value-prof.c (stream_in_histogram_value): Remove the strayed
30964 debug_gimple_stmt.
30965
30966 2013-04-30 Richard Biener <rguenther@suse.de>
30967
30968 PR middle-end/57122
30969 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30970
30971 2013-04-30 Richard Biener <rguenther@suse.de>
30972
30973 PR middle-end/57107
30974 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30975
30976 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30977
30978 PR rtl-optimization/56957
30979 PR rtl-optimization/57105
30980 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30981 variable. Use just INSN_UID for determining whether an insn
30982 should be only disconnected from the insn stream.
30983 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30984
30985 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30986
30987 PR tree-optimization/57104
30988 * tsan.c (instrument_expr): Don't instrument accesses to
30989 DECL_HARD_REGISTER VAR_DECLs.
30990
30991 2013-04-30 Richard Biener <rguenther@suse.de>
30992
30993 * function.h (loops_for_fn): New inline function.
30994 (set_loops_for_fn): Likewise.
30995 * cfgloop.h (place_new_loop): Add struct function parameter.
30996 (get_loop): Likewise.
30997 (get_loops): Likewise.
30998 (number_of_loops): Likewise.
30999 (fel_next): Adjust.
31000 (fel_init): Likewise.
31001 * cfg.c (get_loop_copy): Adjust.
31002 * cfgloop.c (flow_loops_dump): Likewise.
31003 (record_loop_exits): Likewise.
31004 (verify_loop_structure): Likewise.
31005 * cfgloopanal.c (mark_irreducible_loops): Likewise.
31006 (estimate_reg_pressure_cost): Likewise.
31007 (mark_loop_exit_edges): Likewise.
31008 * cfgloopmanip.c (place_new_loop): Likewise.
31009 (add_loop): Likewise.
31010 (duplicate_loop): Likewise.
31011 * graph.c (draw_cfg_nodes): Likewise.
31012 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31013 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31014 (extract_affine_chrec): Likewise.
31015 (build_scop_iteration_domain): Likewise.
31016 * graphite.c (graphite_initialize): Likewise.
31017 * ira-build.c (create_loop_tree_nodes): Likewise.
31018 (more_one_region_p): Likewise.
31019 (rebuild_regno_allocno_maps): Likewise.
31020 (mark_loops_for_removal): Likewise.
31021 (mark_all_loops_for_removal): Likewise.
31022 (remove_unnecessary_regions): Likewise.
31023 (ira_build): Likewise.
31024 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31025 * loop-init.c (fix_loop_structure): Likewise.
31026 (gate_rtl_move_loop_invariants): Likewise.
31027 (gate_rtl_unswitch): Likewise.
31028 (gate_rtl_unroll_and_peel_loops): Likewise.
31029 (rtl_doloop): Likewise.
31030 * lto-streamer-in.c (input_cfg): Likewise.
31031 * lto-streamer-out.c (output_cfg): Likewise.
31032 * modulo-sched.c (sms_schedule): Likewise.
31033 * predict.c (tree_estimate_probability): Likewise.
31034 (tree_estimate_probability_driver): Likewise.
31035 (estimate_loops): Likewise.
31036 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31037 (move_sese_region_to_fn): Likewise.
31038 (debug_loop_num): Likewise.
31039 * tree-chrec.c (chrec_evaluate): Likewise.
31040 (hide_evolution_in_other_loops_than_loop): Likewise.
31041 (chrec_component_in_loop_num): Likewise.
31042 (reset_evolution_in_loop): Likewise.
31043 (evolution_function_is_invariant_rec_p): Likewise.
31044 * tree-if-conv.c (main_tree_if_conversion): Likewise.
31045 * tree-inline.c (copy_loops): Likewise.
31046 (copy_cfg_body): Likewise.
31047 (tree_function_versioning): Likewise.
31048 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31049 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31050 Likewise.
31051 (add_to_evolution_1): Likewise.
31052 (scev_const_prop): Likewise.
31053 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31054 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31055 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31056 (tree_ssa_lim_initialize): Likewise.
31057 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31058 (verify_loop_closed_ssa): Likewise.
31059 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
31060 (tree_ssa_loop_im): Likewise.
31061 (tree_ssa_loop_unswitch): Likewise.
31062 (tree_vectorize): Likewise.
31063 (check_data_deps): Likewise.
31064 (tree_ssa_loop_ivcanon): Likewise.
31065 (tree_ssa_loop_bounds): Likewise.
31066 (tree_complete_unroll): Likewise.
31067 (tree_complete_unroll_inner): Likewise.
31068 (tree_parallelize_loops): Likewise.
31069 (tree_ssa_loop_prefetch): Likewise.
31070 (tree_ssa_loop_ivopts): Likewise.
31071 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31072 * tree-vectorizer.c (vectorize_loops): Likewise.
31073
31074 2013-04-29 Mike Frysinger <vapier@gentoo.org>
31075
31076 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31077 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31078 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31079 with EABI_LINK_SPEC.
31080
31081 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31082
31083 PR target/44578
31084 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31085 alternative.
31086
31087 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
31088
31089 PR target/57097
31090 * lra-constraints.c (process_alt_operands): Discourage a bit more
31091 using memory for pseudos. Print cost dump for alternatives.
31092 Modify cost values for conflicts with early clobbers.
31093 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31094
31095 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31096
31097 PR target/57098
31098 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31099
31100 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31101
31102 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31103 from/to S register.
31104 (movdi_aarch64): Support LDR/STR from/to D register.
31105
31106 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31107
31108 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31109 or higher by default.
31110
31111 2013-04-29 Richard Biener <rguenther@suse.de>
31112
31113 PR middle-end/57075
31114 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31115 even if not adding abnormal edges for calls that can make
31116 abnormal gotos.
31117
31118 2013-04-29 Richard Biener <rguenther@suse.de>
31119
31120 PR middle-end/57103
31121 * tree-cfg.c (move_stmt_op): Fix condition under which to update
31122 TREE_BLOCK.
31123 (move_stmt_r): Remove redundant checking.
31124
31125 2013-04-29 Teresa Johnson <tejohnson@google.com>
31126
31127 PR bootstrap/57077
31128 * basic-block.h (apply_scale): New function.
31129 (apply_probability): Use apply_scale.
31130 * gimple-streamer-in.c (input_bb): Ditto.
31131 * lto-streamer-in.c (input_cfg): Ditto.
31132 * lto-cgraph.c (merge_profile_summaries): Ditto.
31133 * tree-optimize.c (execute_fixup_cfg): Ditto.
31134 * tree-inline.c (copy_bb): Update comment to use apply_scale.
31135 (copy_edges_for_bb): Ditto.
31136 (copy_cfg_body): Ditto.
31137
31138 2013-04-29 Tom de Vries <tom@codesourcery.com>
31139
31140 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31141 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31142 (tail_merge_optimize): Handle current_loops == NULL.
31143
31144 2013-04-26 Jeff Law <law@redhat.com>
31145
31146 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31147 (simplify_cond_using_ranges): Generalize code to simplify
31148 COND_EXPRs where one argument is a constant and the other
31149 is an SSA_NAME created by an integral type conversion.
31150
31151 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31152
31153 * config/arm/arm.md (store_minmaxsi): Use only when
31154 optimize_insn_for_size_p.
31155
31156 2013-04-29 Christian Bruel <christian.bruel@st.com>
31157
31158 PR target/57108
31159 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31160
31161 2013-04-29 Richard Biener <rguenther@suse.de>
31162
31163 PR middle-end/57089
31164 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31165 loop tree make sure to schedule a fixup for the child as well.
31166 (expand_omp_for_generic): Properly add loops.
31167 (expand_omp_for_static_nochunk): Likewise.
31168 (expand_omp_for_static_chunk): Likewise.
31169 (expand_omp_for): For the degenerate case fixup loops.
31170 (expand_omp_sections): Fix default bb placement in loops.
31171 (expand_omp_atomic_pipeline): Properly add loops.
31172
31173 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31174
31175 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31176
31177 2013-04-29 Tom de Vries <tom@codesourcery.com>
31178
31179 * tree-ssa-tail-merge.c: Update header comment.
31180
31181 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31182
31183 * config/aarch64/arm_neon.h
31184 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31185 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31186 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31187 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31188 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31189 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31190 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31191 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31192
31193 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31194
31195 * config/aarch64/aarch64-simd.md
31196 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31197 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31198 fix_trunc, fixuns_trunc.
31199 (ftrunc<VDQF:mode>2): New.
31200 * config/aarch64/iterators.md (optab): Add fix, fixuns.
31201 (fix_trunc_optab): New.
31202
31203 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31204
31205 * config/aarch64/aarch64-builtins.c
31206 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31207 iceilf, lround, iroundf.
31208
31209 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31210
31211 PR target/54349
31212 * config/i386/i386.h (enum ix86_tune_indices)
31213 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31214 New, split from X86_TUNE_INTER_UNIT_MOVES.
31215 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31216 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31217 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31218 (TARGET_INTER_UNIT_MOVES): Remove.
31219 * config/i386/i386.c (initial_ix86_tune_features): Update.
31220 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31221 (ix86_expand_convert_uns_didf_sse): Use
31222 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31223 (ix86_expand_vector_init_one_nonzero): Ditto.
31224 (ix86_expand_vector_init_interleave): Ditto.
31225 (inline_secondary_memory_needed): Return true for moves from SSE class
31226 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31227 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31228 * config/i386/constraints.md (Yi, Ym): Depend on
31229 TARGET_INTER_UNIT_MOVES_TO_VEC.
31230 (Yj, Yn): New constraints.
31231 * config/i386/i386.md (*movdi_internal): Change constraints of
31232 operand 1 from Yi to Yj and from Ym to Yn.
31233 (*movsi_internal): Ditto.
31234 (*movdf_internal): Ditto.
31235 (*movsf_internal): Ditto.
31236 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31237 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31238 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31239 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31240 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31241 * config/i386/sse.md (movdi_to_sse): Ditto.
31242 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31243 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31244 TARGET_INTER_UNIT_MOVES.
31245 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31246 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31247 instead of TARGET_INTER_UNIT_MOVES.
31248 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31249 operand 1 from Yi to Yj and from Ym to Yn.
31250
31251 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31252
31253 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31254 (float_truncate_hi_): Likewise.
31255 (float_extend_lo_): Likewise.
31256 (float_truncate_lo_): Likewise.
31257 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31258 (aarch64_float_extend_lo_v2df): Likewise.
31259 (vec_unpacks_hi_v4sf): Likewise.
31260 (aarch64_float_truncate_lo_v2sf): Likewise.
31261 (aarch64_float_truncate_hi_v4sf): Likewise.
31262 (vec_pack_trunc_v2df): Likewise.
31263 (vec_pack_trunc_df): Likewise.
31264
31265 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31266
31267 * config/aarch64/aarch64-builtins.c
31268 (aarch64_fold_builtin): Fold float conversions.
31269 * config/aarch64/aarch64-simd-builtins.def
31270 (floatv2si, floatv4si, floatv2di): New.
31271 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31272 * config/aarch64/aarch64-simd.md
31273 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31274 * config/aarch64/iterators.md (FLOATUORS): New.
31275 (optab): Add float, floatuns.
31276 (su_optab): Likewise.
31277
31278 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31279
31280 * config/aarch64/aarch64-builtins.c
31281 (aarch64_builtin_vectorized_function): Use new names for
31282 fcvt builtins.
31283 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31284 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31285 (fcvtzu): Split as...
31286 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31287 (fcvtas): Split as...
31288 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31289 (fcvtau): Split as...
31290 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31291 (fcvtps): Split as...
31292 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31293 (fcvtpu): Split as...
31294 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31295 (fcvtms): Split as...
31296 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31297 (fcvtmu): Split as...
31298 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31299 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31300 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31301 (lfrintnusf, lfrintnudf): Likewise.
31302 * config/aarch64/aarch64-simd.md
31303 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31304 define_insn.
31305 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31306 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31307 (fcvt_pattern): Likewise.
31308
31309 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31310
31311 * config/aarch64/aarch64-simd.md
31312 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31313 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31314
31315 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31316
31317 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31318 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31319 (vrnd<a,m,n,p>_f32): Implement using builtins.
31320 (vrnd<i,x><q>_f<32, 64>): New.
31321
31322 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31323
31324 * config/aarch64/aarch64-builtins.c
31325 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31326 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31327 (frintz): Rename to...
31328 (btrunc): ...this.
31329 (frintp): Rename to...
31330 (ceil): ...this.
31331 (frintm): Rename to...
31332 (floor): ...this.
31333 (frinti): Rename to...
31334 (nearbyint): ...this.
31335 (frintx): Rename to...
31336 (rint): ...this.
31337 (frinta): Rename to...
31338 (round): ...this.
31339 * config/aarch64/aarch64-simd.md
31340 (aarch64_frint<frint_suffix><mode>): Delete.
31341 (<frint_pattern><mode>2): Convert to insn.
31342 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31343 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31344 (frint_pattern): Likewise.
31345 (frint_suffix): Likewise.
31346
31347 2013-04-29 Richard Biener <rguenther@suse.de>
31348
31349 PR tree-optimization/57081
31350 * loop-init.c: Include tree-flow.h.
31351 (loop_optimizer_finalize): Free number of iteration estimates.
31352 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31353
31354 2013-04-29 Jakub Jelinek <jakub@redhat.com>
31355
31356 PR tree-optimization/57083
31357 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31358 non-singleton shift count range, zero extend low_bound for uns case.
31359
31360 * config/i386/predicates.md (general_vector_operand): New predicate.
31361 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31362 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31363 if they aren't nonimmediate operands. If their original values
31364 satisfy const_vector_equal_evenodd_p, don't shift them.
31365 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31366 predicates. For the SSE4.1 case force operands[{1,2}] into registers
31367 if not nonimmediate_operand.
31368 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31369 instead of register_operand.
31370 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31371
31372 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
31373
31374 * stor-layout.c (finalize_size_functions): Allocate a structure and
31375 reset cfun before dumping the functions.
31376
31377 2013-04-27 Jakub Jelinek <jakub@redhat.com>
31378
31379 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31380
31381 PR target/56866
31382 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31383 use xop_pmacsdqh if uns_p.
31384 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31385 the immediate rotate count.
31386
31387 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
31388
31389 * rtl.h (struct rtx_def): Add comment for field jump.
31390 (LRA_SUBREG_P): New macro.
31391 * recog.c (register_operand): Check LRA_SUBREG_P.
31392 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31393 stack frame.
31394 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31395 (lra_final_code_change): Skip subreg change for operators.
31396 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31397 if there are no operand changes.
31398 * lra-constraints.c (curr_insn_set): New.
31399 (match_reload): Set LRA_SUBREG_P.
31400 (emit_spill_move): Ditto.
31401 (check_and_process_move): Use curr_insn_set. Process only single
31402 set insns. Don't initialize sec_mem_p and change_p.
31403 (simplify_operand_subreg): Use LRA_SUBREG_P.
31404 (reg_in_class_p): New function.
31405 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31406 of #ifdef. Add code to remove cycling.
31407 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31408 non-null disp. Reload inner instead of disp when base and index
31409 are null. Try to put lo_sum into register.
31410 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31411 (check_and_process_move): Move code for move cost check to
31412 simple_move_p. Remove equiv_substitution.
31413 (simple_move_p): New function.
31414 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31415 curr_insn_set. Call check_and_process_move only for single set
31416 insns. Use the new function. Move call of check_and_process_move
31417 after operand equiv substitution and address process.
31418
31419 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31420
31421 PR go/57045
31422 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31423 with nonlocal goto receivers or returns twice calls, ignore
31424 unininitialized values from abnormal edges to nl goto receiver
31425 or returns twice call.
31426
31427 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31428
31429 PR tree-optimization/57051
31430 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31431 and VEC_RSHIFT_EXPR if shift count is a multiple of element
31432 bitsize.
31433
31434 2013-04-26 Richard Biener <rguenther@suse.de>
31435
31436 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31437 (expand_omp_taskreg): Likewise. Mark loops for fixup.
31438 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31439 (fixup_loop_arrays_after_move): New function.
31440 (move_sese_region_to_fn): Properly outline the loop tree parts
31441 of the SESE region.
31442
31443 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
31444
31445 * config/i386/i386.md (type, unit): Fix long lines.
31446
31447 2013-04-26 Richard Biener <rguenther@suse.de>
31448
31449 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31450 (lto-streamer-out.o): Likewise.
31451 * cfgloop.c (init_loops_structure): Export, add struct function
31452 argument and adjust.
31453 (flow_loops_find): Adjust.
31454 * cfgloop.h (enum loop_estimation): Add EST_LAST.
31455 (init_loops_structure): Declare.
31456 * lto-streamer-in.c: Include cfgloop.h.
31457 (input_cfg): Input the loop tree.
31458 * lto-streamer-out.c: Include cfgloop.h.
31459 (output_cfg): Output the loop tree.
31460 (output_struct_function_base): Do not drop PROP_loops.
31461
31462 2013-03-26 Richard Biener <rguenther@suse.de>
31463
31464 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31465 (pass_build_cfg): Provide PROP_loops.
31466 (move_sese_region_to_fn): Remove loops that are outlined into fn
31467 for now.
31468 * tree-inline.c: Include cfgloop.h.
31469 (initialize_cfun): Do not drop PROP_loops.
31470 (copy_loops): New function.
31471 (copy_cfg_body): Copy loop structure.
31472 (tree_function_versioning): Initialize destination loop tree.
31473 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31474 (pass_parallelize_loops): Do IL verification.
31475 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31476 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31477 the CFG make sure we fixup loops as well.
31478 * tree-ssa-tail-merge.c: Include cfgloop.h.
31479 (replace_block_by): When merging loop latches mark loops for fixup.
31480 * lto-streamer-out.c (output_struct_function_base): Drop
31481 PROP_loops for now.
31482 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31483 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31484 * ipa-split.c: Include cfgloop.h.
31485 (split_function): Add the new return block to the loop tree root.
31486 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31487 whether we have removed the forwarder block.
31488 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31489 * cfgloop.h (place_new_loop): Declare.
31490 * cfgloopmanip.c (place_new_loop): Export.
31491 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31492 (tree-switch-conversion.o): Likewise.
31493 (tree-complex.o): Likewise.
31494 (tree-inline.o): Likewise.
31495 (tree-ssa-tailmerge.o): Likewise.
31496 (ipa-split.o): Likewise.
31497 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31498 (tree-ssa-copy.o): Likewise.
31499 * tree-switch-conversion.c: Include cfgloop.h
31500 (process_switch): If we emit a bit-test cascade, schedule loops
31501 for fixup.
31502 * tree-complex.c: Include cfgloop.h.
31503 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31504 * asan.c: Include cfgloop.h.
31505 (create_cond_insert_point): Properly add new basic-blocks to
31506 loops, schedule loop fixup.
31507 * cfgloop.c (verify_loop_structure): Check that looks are not
31508 marked for fixup.
31509 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31510 to loops.
31511 (expand_omp_for_generic): Likewise.
31512 (expand_omp_sections): Likewise.
31513 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31514 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31515 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31516 is initialized, not when loops are present.
31517 * tree-parloops.c (parallelize_loops): Remove checking here.
31518 * passes.c (init_optimization_passes): Schedule a copy-propagation
31519 pass before complete unrolling of inner loops.
31520
31521 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31522
31523 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31524 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31525 (colorize_init): Add argument to _WIN32 version.
31526 * toplev.c: Include diagnostic-color.h.
31527 (process_options): Default to -fdiagnostics-color=auto if
31528 GCC_COLORS env var is in the environment.
31529 * common.opt (fdiagnostics-color=): Add Var and Init.
31530 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31531 env var is in the environment, the default is auto rather than never.
31532
31533 * diagnostic.h (file_name_as_prefix): Add context argument.
31534 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31535 the string as locus.
31536 * langhooks.c (lhd_print_error_function): Adjust caller.
31537
31538 2013-04-25 Lawrence Crowl <crowl@google.com>
31539
31540 * var-tracking.c (shared_hash_def::htab):
31541 Change type to hash_table. Update dependent calls and types.
31542
31543 2013-04-25 Lawrence Crowl <crowl@google.com>
31544
31545 * Makefile.in: Update as needed below.
31546
31547 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31548 Move declaration to after the type's method definitons.
31549
31550 * attribs.c (htab_t scoped_attributes::attribute_hash):
31551 Change type to hash_table. Update dependent calls and types.
31552
31553 * bitmap.c (htab_t bitmap_desc_hash):
31554 Change type to hash_table. Update dependent calls and types.
31555
31556 * cselib.c (htab_t cselib_hash_table):
31557 Change type to hash_table. Update dependent calls and types.
31558
31559 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31560 (hash_string_slot_node): Move implementation into lto-streamer.h
31561 struct string_slot_hasher.
31562 (eq_string_slot_node): Likewise.
31563
31564 * data-streamer-out.c: Update output_block::string_hash_table
31565 dependent calls and types.
31566
31567 * dwarf2cfi.c (htab_t trace_index):
31568 Change type to hash_table. Update dependent calls and types.
31569
31570 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31571 Change type to hash_table. Update dependent calls and types.
31572 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31573 (htab_t optimize_external_refs::map): Likewise.
31574 (htab_t output_comp_unit::extern_map): Likewise.
31575 (htab_t output_comdat_type_unit::extern_map): Likewise.
31576 (htab_t output_macinfo::macinfo_htab): Likewise.
31577 (htab_t optimize_location_lists::htab): Likewise.
31578 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31579
31580 * except.c (htab_t ehspec_hash_type):
31581 Change type to hash_table. Update dependent calls and types.
31582 (assign_filter_values::ttypes): Likewise.
31583 (assign_filter_values::ehspec): Likewise.
31584 (sjlj_assign_call_site_values::ar_hash): Likewise.
31585 (convert_to_eh_region_ranges::ar_hash): Likewise.
31586
31587 * gcse.c (htab_t pre_ldst_table):
31588 Change type to hash_table. Update dependent calls and types.
31589
31590 * ggc-common.c (htab_t saving_htab):
31591 Change type to hash_table. Update dependent calls and types.
31592 (htab_t loc_hash): Likewise.
31593 (htab_t ptr_hash): Likewise.
31594 (call_count): Rename ggc_call_count.
31595 (call_alloc): Rename ggc_call_alloc.
31596 (loc_descriptor): Rename make_loc_descriptor.
31597 (add_statistics): Rename ggc_add_statistics.
31598
31599 * ggc-common.c (saving_htab):
31600 Change type to hash_table. Update dependent calls and types.
31601
31602 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31603 (push_gimplify_context): Likewise.
31604 (pop_gimplify_context): Likewise.
31605 (struct gimple_temp_hash_elt): Added.
31606 (struct gimplify_hasher): Likewise.
31607 (struct gimplify_ctx.temp_htab):
31608 Change type to hash_table. Update dependent calls and types.
31609
31610 * gimple-fold.c: Include gimplify-ctx.h.
31611
31612 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31613 Change type to hash_table. Update dependent calls and types.
31614 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31615 avoid potential global name collision.
31616
31617 * gimplify.c: Include gimplify-ctx.h.
31618 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31619 (htab_t gimplify_ctx::temp_htab):
31620 Update dependent calls and types for new type hash_table.
31621 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31622 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31623
31624 * gimplify-ctx.h: New.
31625 (struct gimple_temp_hash_elt): Move from gimplify.c.
31626 (class gimplify_hasher): New.
31627 (struct gimplify_ctx): Move from gimple.h.
31628 (htab_t gimplify_ctx::temp_htab):
31629 Change type to hash_table. Update dependent calls and types.
31630
31631 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31632 (htab_t ivs_params::newivs_index):
31633 Change type to hash_table. Update dependent calls and types.
31634 (htab_t ivs_params::params_index): Likewise.
31635 (htab_t print_generated_program::params_index): Likewise.
31636 (htab_t gloog::newivs_index): Likewise.
31637 (htab_t gloog::params_index): Likewise.
31638
31639 * graphite.c: Include graphite-htab.h.
31640 4htab_t graphite_transform_loops::bb_pbb_mapping):
31641 Change type to hash_table. Update dependent calls and types.
31642
31643 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31644 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31645 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31646
31647 * graphite-dependences.c: Include graphite-htab.h.
31648 (loop_is_parallel_p): Change hash table type of parameter.
31649
31650 * graphite-htab.h: New.
31651 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31652 (extern find_pbb_via_hash): Move from graphite-poly.h.
31653 (extern loop_is_parallel_p): Move from graphite-poly.h.
31654 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31655
31656 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31657 (extern loop_is_parallel_p): Move to graphite-htab.h.
31658 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31659
31660 * haifa-sched.c (htab_t delay_htab):
31661 Change type to hash_table. Update dependent calls and types.
31662 (htab_t delay_htab_i2): Likewise.
31663
31664 * ira-color.c (htab_t allocno_hard_regs_htab):
31665 Change type to hash_table. Update dependent calls and types.
31666
31667 * ira-costs.c (htab_t cost_classes_htab):
31668 Change type to hash_table. Update dependent calls and types.
31669
31670 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31671 Change type to hash_table. Update dependent calls and types.
31672
31673 * loop-iv.c (htab_t bivs):
31674 Change type to hash_table. Update dependent calls and types.
31675
31676 * loop-unroll.c (htab_t opt_info::insns_to_split):
31677 Change type to hash_table. Update dependent calls and types.
31678 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31679
31680 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31681 (struct string_slot_hasher): New.
31682 (htab_t output_block::string_hash_table):
31683 Change type to hash_table. Update dependent calls and types.
31684
31685 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31686 (htab_t file_name_hash_table):
31687 Change type to hash_table. Update dependent calls and types.
31688
31689 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31690 calls and types.
31691
31692 * lto-streamer.c (htab_t tree_htab):
31693 Change type to hash_table. Update dependent calls and types.
31694
31695 * omp-low.c: Include gimplify-ctx.h.
31696
31697 * passes.c (htab_t name_to_pass_map):
31698 Change type to hash_table. Update dependent calls and types.
31699 (pass_traverse): Rename to passes_pass_traverse.
31700
31701 * plugin.c (htab_t event_tab):
31702 Change type to hash_table. Update dependent calls and types.
31703
31704 * postreload-gcse.c (htab_t expr_table):
31705 Change type to hash_table. Update dependent calls and types.
31706 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31707
31708 * sese.c (debug_rename_map_1): Make extern.
31709 (htab_t copy_bb_and_scalar_dependences::rename_map):
31710 Change type to hash_table. Update dependent calls and types.
31711
31712 * sese.h (extern debug_rename_map): Move to .c file.
31713
31714 * store-motion.c (htab_t store_motion_mems_table):
31715 Change type to hash_table. Update dependent calls and types.
31716
31717 * trans-mem.c (htab_t tm_new_mem_hash):
31718 Change type to hash_table. Update dependent calls and types.
31719
31720 * tree-browser.c (htab_t TB_up_ht):
31721 Change type to hash_table. Update dependent calls and types.
31722
31723 * tree-cfg.c (htab_t discriminator_per_locus):
31724 Change type to hash_table. Update dependent calls and types.
31725
31726 * tree-complex.c: Include tree-hasher.h
31727 (htab_t complex_variable_components):
31728 Change type to hash_table. Update dependent calls and types.
31729
31730 * tree-eh.c (htab_t finally_tree):
31731 Change type to hash_table. Update dependent calls and types.
31732
31733 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31734 struct int_tree_hasher.
31735 (extern int_tree_map_eq): Likewise.
31736 (uid_decl_map_hash): Removed.
31737 (extern decl_tree_map_eq): Likewise.
31738
31739 * tree-hasher.h: New.
31740 (struct int_tree_hasher): New.
31741 (typedef int_tree_htab_type): New.
31742
31743 * tree-inline.c: Include gimplify-ctx.h.
31744
31745 * tree-mudflap.c: Include gimplify-ctx.h.
31746
31747 * tree-parloops.c: Include tree-hasher.h.
31748 (htab_t eliminate_local_variables_stmt::decl_address):
31749 Change type to hash_table. Update dependent calls and types.
31750 (htab_t separate_decls_in_region::decl_copies): Likewise.
31751
31752 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31753 Change type to hash_table. Update dependent calls and types.
31754
31755 * tree-sra.c (candidates):
31756 Change type to hash_table. Update dependent calls and types.
31757
31758 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31759 in tree-flow.h.
31760 (int_tree_map_hash): Likewise.
31761
31762 * tree-ssa-dom.c (htab_t avail_exprs):
31763 Change type to hash_table. Update dependent calls and types.
31764
31765 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31766 Change type to hash_table. Update dependent calls and types.
31767
31768 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31769 Change type to hash_table. Update dependent calls and types.
31770
31771 * tree-ssa-phiopt.c (seen_ssa_names):
31772 Change type to hash_table. Update dependent calls and types.
31773
31774 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31775 Change type to hash_table. Update dependent calls and types.
31776
31777 * tree-ssa-uncprop.c (equiv):
31778 Change type to hash_table. Update dependent calls and types.
31779
31780 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31781
31782 PR rtl-optimization/57003
31783 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31784 call note_stores with kill_clobbered_value callback again after
31785 killing regs_invalidated_by_call.
31786
31787 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31788
31789 * config/aarch64/aarch64-simd.md
31790 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31791 (aarch64_simd_bsl<mode>): Likewise.
31792 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31793
31794 2013-04-25 Marek Polacek <polacek@redhat.com>
31795
31796 PR tree-optimization/57066
31797 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31798
31799 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31800
31801 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31802
31803 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31804
31805 * config/aarch64/aarch64-builtins.c
31806 (aarch64_fold_builtin): New.
31807 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31808 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31809 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31810 * config/aarch64/arm_neon.h
31811 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31812
31813 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31814 Tejas Belagod <tejas.belagod@arm.com>
31815
31816 * config/aarch64/aarch64-builtins.c
31817 (aarch64_gimple_fold_builtin): New.
31818 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31819 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31820 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31821 (addvv4sf): Update.
31822 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31823
31824 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31825
31826 * config/aarch64/aarch64.md
31827 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31828
31829 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31830
31831 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31832 (*ngcsi_uxtw): New pattern.
31833
31834 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31835 Julian Brown <julian@codesourcery.com>
31836
31837 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31838 (TB_DREG): Add T_V4HF.
31839 (v4hf_UP): New macro.
31840 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31841 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31842 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31843 built-ins.
31844 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31845 (arm_vector_mode_supported_p): Handle V4HF.
31846 (arm_mangle_map): Handle V4HFmode.
31847 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31848 * config/arm/arm_neon_builtins.def: Add entries for
31849 vcvtv4hfv4sf, vcvtv4sfv4hf.
31850 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31851 (neon_vcvtv4hfv4sf): Likewise.
31852 * config/arm/neon-gen.ml: Handle half-precision floating point
31853 features.
31854 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31855 * config/arm/arm_neon.h: Regenerate.
31856 * config/arm/neon.ml (type elts): Add F16.
31857 (type vectype): Add T_float16x4, T_floatHF.
31858 (type vecmode): Add V4HF.
31859 (type features): Add Requires_FP_bit feature.
31860 (elt_width): Handle F16.
31861 (elt_class): Likewise.
31862 (elt_of_class_width): Likewise.
31863 (mode_of_elt): Refactor.
31864 (type_for_elt): Handle F16, fix error messages.
31865 (vectype_size): Handle T_float16x4.
31866 (vcvt_sh): New function.
31867 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31868 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31869 (string_of_mode): Handle V4HF.
31870 * doc/arm-neon-intrinsics.texi: Regenerate.
31871
31872 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31873
31874 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31875 format specifier in 'X' case.
31876
31877 2013-04-25 Alan Modra <amodra@gmail.com>
31878
31879 PR target/57052
31880 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31881 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31882 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31883 Repeat for many other rotate/shift and mask patterns using subregs.
31884 Name lshiftrt insns.
31885 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31886 on WORDS_BIG_ENDIAN.
31887
31888 2013-04-25 Alan Modra <amodra@gmail.com>
31889
31890 * config.gcc: Support little-endian powerpc-linux targets.
31891 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31892 (LINK_OS_LINUX_SPEC): Define.
31893 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31894 Preserve MASK_LITTLE_ENDIAN.
31895 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31896 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31897 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31898 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31899 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31900 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31901 Correct fp word order for little-endian. Don't shift toc entries
31902 smaller than a word for little-endian.
31903 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31904 (bswapdi2 splits): Correct low-part subreg for little-endian.
31905 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31906 low/high where such is correct only for be.
31907 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31908 little-endian for -mcall-aixdesc.
31909
31910 2013-04-25 Alan Modra <amodra@gmail.com>
31911
31912 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31913 replace_equiv_address_nv.
31914
31915 2013-04-25 Alan Modra <amodra@gmail.com>
31916
31917 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31918
31919 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31920
31921 Revert:
31922 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31923 * rtl.h (struct rtx_def): ...
31924
31925 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31926
31927 PR rtl-optimizations/57046
31928 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31929 for multi-reg splits.
31930
31931 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31932
31933 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31934
31935 2013-04-24 Sterling Augustine <saugustine@google.com>
31936
31937 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31938 (comp_dir_string, debug_str_dwo_section): New.
31939 (DEBUG_STR_DWO_SECTION): Rename to ...
31940 (DEBUG_DWO_STR_SECTION): ... this.
31941 (DEBUG_NORM_STR_SECTION): Delete.
31942 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31943 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31944 (find_AT_string): Move most logic to ...
31945 (find_AT_string_in_table): ... here. New.
31946 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31947 add_skeleton_AT_string. Delete logic.
31948 (output_skeleton_debug_sections): Remove call to
31949 add_top_level_skeleton_die_attrs.
31950 (add_comp_dir_attribute): Move logic to comp_dir_string.
31951 (dwarf2out_init): Initialize debug_str_dwo_section.
31952 (output_indirect_string): Call find_string_form.
31953 (output_indirect_strings): Rewrite.
31954 (prune_unused_types): Empty skeleton_debug_str_hash.
31955 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31956 (dwarf2out_finish): Call output_indirect_strings.
31957
31958 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31959
31960 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31961
31962 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31963
31964 * rtl.h (struct rtx_def): Add comment for field jump.
31965 (LRA_SUBREG_P): New macro.
31966 * recog.c (register_operand): Check LRA_SUBREG_P.
31967 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31968 stack frame.
31969 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31970 (lra_final_code_change): Skip subreg change for operators.
31971 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31972 if there are no operand changes.
31973 * lra-constraints.c (curr_insn_set): New.
31974 (match_reload): Set LRA_SUBREG_P.
31975 (emit_spill_move): Ditto.
31976 (check_and_process_move): Use curr_insn_set. Process only single
31977 set insns. Don't initialize sec_mem_p and change_p.
31978 (simplify_operand_subreg): Use LRA_SUBREG_P.
31979 (reg_in_class_p): New function.
31980 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31981 of #ifdef. Add code to remove cycling.
31982 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31983 non-null disp. Reload inner instead of disp when base and index
31984 are null. Try to put lo_sum into register.
31985 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31986 (check_and_process_move): Move code for move cost check to
31987 simple_move_p. Remove equiv_substitution.
31988 (simple_move_p): New function.
31989 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31990 curr_insn_set. Call check_and_process_move only for single set
31991 insns. Use the new function. Move call of check_and_process_move
31992 after operand equiv substitution and address process.
31993
31994 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31995
31996 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31997 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31998 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31999
32000 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32001
32002 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
32003
32004 2013-04-24 Marek Polacek <polacek@redhat.com>
32005
32006 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32007 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32008 (select_loops_exit_conditions): Likewise.
32009 (number_of_iterations_for_all_loops): Likewise.
32010 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32011 (scev_analysis): Likewise.
32012
32013 2013-04-02 Catherine Moore <clm@codesourcery.com>
32014 Chao-ying Fu <fu@mips.com>
32015
32016 * config/mips/micromips.md (jraddiusp): New pattern.
32017 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32018 instruction if possible.
32019
32020 2013-04-24 Alan Modra <amodra@gmail.com>
32021
32022 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32023
32024 2013-04-24 Julian Brown <julian@codesourcery.com>
32025 Chung-Lin Tang <cltang@codesourcery.com>
32026
32027 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32028 dependency behavior in enumeration type DIE generation. Add TODO note
32029 to comments about future DW_FORM_sdata/udata re-work of related code.
32030
32031 2013-04-23 Lawrence Crowl <crowl@google.com>
32032
32033 * Makefile.in: Update as needed below.
32034
32035 * hash-table.h (class hash_table):
32036 Correct many methods with parameter types compare_type to the correct
32037 value_type. (Correct code was unlikely to notice the change.)
32038 (hash_table::elements_with_deleted) New.
32039 (class hashtable::iterator): New.
32040 (hashtable::begin()): New.
32041 (hashtable::end()): New.
32042 (FOR_EACH_HASH_TABLE_ELEMENT): New.
32043
32044 * statistics.c (statistics_hashes):
32045 Change type to hash_table. Update dependent calls and types.
32046
32047 * tree-into-ssa.c (var_infos):
32048 Change type to hash_table. Update dependent calls and types.
32049
32050 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32051 Change type to hash_table. Update dependent calls and types.
32052
32053 * tree-ssa-loop-im.c (struct mem_ref.refs):
32054 Change type to hash_table. Update dependent calls and types.
32055
32056 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32057 Change type to hash_table. Update dependent calls and types.
32058
32059 * tree-ssa-sccvn.c (vn_tables_s::nary):
32060 Change type to hash_table. Update dependent calls and types.
32061 (vn_tables_s::phis): Likewise.
32062 (vn_tables_s::references): Likewise.
32063
32064 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32065 (vn_reference_eq): Update parameter and return types.
32066
32067 * tree-ssa-structalias.c (pointer_equiv_class_table):
32068 Change type to hash_table. Update dependent calls and types.
32069 (location_equiv_class_table): Likewise.
32070
32071 * tree-vect-data-refs.c: Consequential changes for making
32072 peeling a hash_table.
32073
32074 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32075 (destroy_loop_vec_info): Dependent hash_table update.
32076
32077 * tree-vectorizer.h (peeling_htab):
32078 Change type to hash_table. Update dependent calls and types.
32079
32080 2013-04-23 Shiva Chen <shiva0217@gmail.com>
32081
32082 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32083 to check the register content is equal or not.
32084 * lra-constraints.c (match_reload): Use lra_assign_reg_val
32085 to assign register content record.
32086 * lra-eliminations.c (update_reg_eliminate): Use
32087 lra_update_reg_val_offset to update register content offset.
32088 * lra-int.h (struct lra_reg): Add offset member.
32089 (lra_reg_val_equal_p): New static inline function.
32090 (lra_update_reg_val_offset): New static inline function.
32091 (lra_assign_reg_val): New static inline function.
32092 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32093 to assign register content record.
32094 (initialize_lra_reg_info_element): Initial offset to zero.
32095
32096 2013-04-23 Catherine Moore <clm@codesourcery.com>
32097
32098 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32099 operands. Record compression.
32100
32101 2013-04-23 Xinliang David Li <davidxl@google.com>
32102
32103 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32104
32105 2013-04-23 Richard Biener <rguenther@suse.de>
32106
32107 PR middle-end/57036
32108 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32109 parameter, only add abnormal goto edges from the copied body
32110 if the call could perform abnormal gotos.
32111 (copy_cfg_body): Adjust.
32112
32113 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
32114
32115 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32116
32117 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
32118
32119 * coretypes.h (gimple_stmt_iterator): Add struct to make
32120 compatible with C.
32121
32122 2013-04-23 Richard Biener <rguenther@suse.de>
32123
32124 PR tree-optimization/57026
32125 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32126 from SSA names occuring in abnormal PHI nodes.
32127
32128 2013-04-22 Andi Kleen <ak@linux.intel.com>
32129
32130 * lto/lto.c (print_lto_report_1): Fix LTO report names.
32131
32132 2013-04-22 Andi Kleen <ak@linux.intel.com>
32133
32134 * lto/lto.c (print_lto_report_1): Declare early.
32135 (read_cgraph_and_symbols): Call print_lto_report_1 early.
32136
32137 2013-04-22 Andi Kleen <ak@linux.intel.com>
32138
32139 * common.opt (-flto-report-wpa): Add.
32140 * doc/invoke.texi (-flto-report-wpa): Add.
32141 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32142 (lto_main): dito.
32143
32144 2013-04-22 Xinliang David Li <davidxl@google.com>
32145
32146 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32147 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32148 * Makefile.in: New dependency
32149
32150 David Daney <ddaney.cavm@gmail.com>
32151
32152 * configure.ac (gcc_cv_as_micromips_support): Use the
32153 --fatal-warnings option.
32154 * configure: Regenerate.
32155
32156 2013-04-22 Marek Polacek <polacek@redhat.com>
32157
32158 PR sanitizer/56990
32159 * tsan.c (instrument_expr): Don't instrument expression
32160 in case its size is zero.
32161
32162 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
32163
32164 PR target/57032
32165 Revert:
32166 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32167
32168 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32169
32170 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32171
32172 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32173 (gimple_stmt_iterator): New typedef.
32174 * gimple.h (gimple_stmt_iterator): Rename to...
32175 (gimple_stmt_iterator_d): ... This.
32176 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32177 trees be valid for GIMPLE and GENERIC.
32178 (TARGET_GIMPLE_FOLD_BUILTIN): New.
32179 * gimple-fold.c (gimple_fold_call): Call target hook
32180 gimple_fold_builtin.
32181 * hooks.c (hook_bool_gsiptr_false): New.
32182 * hooks.h (hook_bool_gsiptr_false): New.
32183 * target.def (fold_stmt): New.
32184 * doc/tm.texi: Regenerate.
32185
32186 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
32187
32188 PR target/57018
32189 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32190 a set sp if no stack realignment.
32191
32192 2013-04-22 Nick Clifton <nickc@redhat.com>
32193
32194 * config.gcc (tilegx-linux): Extend extra_objs rather than
32195 overwriting it.
32196 (tilepro-linux): Likewise.
32197
32198 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32199
32200 * config/aarch64/aarch64-builtins.c
32201 (CF): Remove.
32202 (CF0, CF1, CF2, CF3, CF4, CF10): New.
32203 (VAR<1-12>): Add MAP parameter.
32204 (BUILTIN_*): Likewise.
32205 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32206 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32207 (aarch64_ushl_n<mode>): Likewise.
32208 (aarch64_sshr_n<mode>): Likewise.
32209 (aarch64_ushr_n<mode>): Likewise.
32210 (aarch64_<maxmin><mode>): Likewise.
32211 (aarch64_sqrt<mode>): Likewise.
32212 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32213 (vshr<q>_n_*): Likewise.
32214
32215 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32216
32217 * config/aarch64/aarch64-builtins.c
32218 (aarch64_simd_builtin_type_mode): Handle SF types.
32219 (sf_UP): Define.
32220 (BUILTIN_GPF): Define.
32221 (aarch64_init_simd_builtins): Handle SF types.
32222 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32223 (frecps): Likewise.
32224 (frecpx): Likewise.
32225 * config/aarch64/aarch64-simd.md
32226 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32227 (aarch64_frecpe<mode>): New.
32228 (aarch64_frecps<mode>): Likewise.
32229 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32230 (v8type): Add frecp<esx>.
32231 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32232 (aarch64_frecps<mode>): Likewise.
32233 * config/aarch64/iterators.md (FRECP): New.
32234 (frecp_suffix): Likewise.
32235 * config/aarch64/arm_neon.h
32236 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32237
32238 2013-04-22 Christian Bruel <christian.bruel@st.com>
32239
32240 PR target/56995
32241 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32242 (REG_CLASS_NAMES): Idem.
32243 (REG_CLASS_CONTENTS): Idem.
32244 (REGCLASS_HAS_FP_REG): Idem.
32245 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32246 (sh_conditional_register_usage): Idem.
32247
32248 2013-04-21 Jeff Law <law@redhat.com>
32249
32250 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32251 (ssa_forward_propagate_and_combine): Use it.
32252
32253 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32254
32255 * lra.c: Update the flow chart diagram.
32256
32257 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32258
32259 PR rtl-optimization/56847
32260 * lra-constraints.c (process_alt_operands): Discourage alternative
32261 with non-matche doffsettable memory constraint fro memory with
32262 known offset.
32263
32264 2013-04-19 Richard Biener <rguenther@suse.de>
32265
32266 PR tree-optimization/56982
32267 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32268 function.
32269 * gimplify.c (gimplify_call_expr): Notice special calls.
32270 (gimplify_modify_expr): Likewise.
32271 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32272 abnormal control flow receivers.
32273 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32274 in the same way as cfun->has_nonlocal_labels.
32275 (gimple_purge_dead_abnormal_call_edges): Likewise.
32276 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32277 receivers start a basic-block.
32278
32279 2013-04-19 Richard Biener <rguenther@suse.de>
32280
32281 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32282 member ...
32283 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
32284 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32285 (SLP_TREE_LOAD_PERMUTATION): Add.
32286 (vect_transform_slp_perm_load): Adjust prototype.
32287 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32288 (vect_free_slp_instance): Likewise.
32289 (vect_create_new_slp_node): Likewise.
32290 (vect_supported_slp_permutation_p): Remove.
32291 (vect_slp_rearrange_stmts): Adjust.
32292 (vect_supported_load_permutation_p): Likewise. Inline
32293 vect_supported_slp_permutation_p here.
32294 (vect_analyze_slp_instance): Compute load permutations per
32295 slp node instead of per instance.
32296 (vect_get_slp_defs): Adjust.
32297 (vect_transform_slp_perm_load): Likewise.
32298 (vect_schedule_slp_instance): Remove redundant code.
32299 (vect_schedule_slp): Remove hack for PR56270, add it ...
32300 * tree-vect-stmts.c (vectorizable_load): ... here, do not
32301 CSE loads for SLP. Adjust.
32302
32303 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32304
32305 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32306 spelling in two comments.
32307
32308 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32309
32310 PR target/56797
32311 * config/arm/arm.c (load_multiple_sequence): Require SP
32312 as base register for loads if SP is in the register list.
32313
32314 2013-04-19 Martin Jambor <mjambor@suse.cz>
32315
32316 PR tree-optimization/56718
32317 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32318 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32319 and made public. Adjusted all callers.
32320 (ipa_intraprocedural_devirtualization): New function.
32321 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32322 (ipa_intraprocedural_devirtualization): Likewise.
32323 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32324
32325 2013-04-19 Richard Biener <rguenther@suse.de>
32326
32327 PR tree-optimization/57000
32328 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32329
32330 2013-04-19 Terry Guo <terry.guo@arm.com>
32331
32332 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32333 Replace with ...
32334 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
32335 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32336 (cortex_m4_fmacs): Use new reservations.
32337 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32338
32339 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
32340
32341 PR rtl-optimization/56999
32342 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32343 related code.
32344 (lra_coalesce): Remove split_origin_bitmap and related code.
32345 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
32346 ranges if necessary.
32347
32348 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
32349
32350 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32351 New array.
32352 (ix86_expand_call): Remove clobbered_registers array and use
32353 x86_64_ms_sysv_extra_clobbered_registers instead.
32354 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32355 Declare here.
32356 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32357 predicate.
32358 * config/i386/i386.md (*call_rex64_ms_sysv): Use
32359 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
32360 (*call_value_rex64_ms_sysv): Ditto.
32361
32362 2013-04-18 Cary Coutant <ccoutant@google.com>
32363
32364 * dwarf2out.c (output_pubnames): Check die_perennial_p of
32365 parent instead of die_mark.
32366
32367 2013-04-18 Diego Novillo <dnovillo@google.com>
32368
32369 * gimple.c (create_gimple_tmp): New.
32370 (get_expr_type): New.
32371 (build_assign): New.
32372 (build_type_cast): New.
32373 * gimple.h (enum ssa_mode): Define.
32374 (gimple_seq_set_location): New.
32375 * asan.c (build_check_stmt): Change some gimple_build_* calls
32376 to use build_assign and build_type_cast.
32377
32378 2013-04-18 Richard Biener <rguenther@suse.de>
32379
32380 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32381 handle negative step. Remove redundant checks.
32382 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32383 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32384 for negative step and grouped loads fail to vectorize.
32385
32386 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32387
32388 * emit-rtl.c (reset_insn_used_flags): New function.
32389 (reset_all_used_flags): Use it.
32390 (verify_insn_sharing): New function.
32391 (verify_rtl_sharing): Fix verification for SEQUENCEs.
32392
32393 2013-04-18 Jakub Jelinek <jakub@redhat.com>
32394
32395 PR tree-optimization/56984
32396 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32397 and (x >> M) >= N don't register any assertion if N << M is the
32398 minimum value.
32399
32400 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32401
32402 * lower-subreg.c (resolve_simple_move): If called self-recursive,
32403 do not delete_insn insns that have not yet been emitted, only
32404 unlink them with remove_insn.
32405 * df-scan.c (df_insn_delete): Revert r197492.
32406
32407 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
32408
32409 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32410 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32411
32412 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32413
32414 * config/arm/arm.md (movsicc_insn): Convert define_insn into
32415 define_insn_and_split.
32416 (and_scc,ior_scc,negscc): Likewise.
32417 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32418
32419 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32420
32421 * config/arm/arm.c (use_return_insn): Return 0 for targets that
32422 can benefit from using a sequence of LDRD instructions in epilogue
32423 instead of a single LDM instruction.
32424
32425 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
32426
32427 PR 45688
32428 * doc/extend.texi: Fix typo.
32429
32430 2013-04-17 Richard Biener <rguenther@suse.de>
32431
32432 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32433 (vect_build_slp_tree): ... here.
32434 (vect_build_slp_tree_1): Compute which stmts of the SLP group
32435 match. Remove special-casing of mismatched complex loads.
32436 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32437 re-try the match with swapped commutative operands.
32438 (vect_supported_load_permutation_p): Remove special-casing of
32439 mismatched complex loads.
32440 (vect_analyze_slp_instance): Adjust.
32441
32442 2013-04-17 Richard Biener <rguenther@suse.de>
32443
32444 PR rtl-optimization/56921
32445 * cfgloop.h (struct loop): Add simple_loop_desc member.
32446 (struct niter_desc): Mark with GTY(()).
32447 (simple_loop_desc): Do not use aux field but simple_loop_desc.
32448 * loop-iv.c (get_simple_loop_desc): Likewise.
32449 (free_simple_loop_desc): Likewise.
32450
32451 Revert
32452 2013-04-16 Richard Biener <rguenther@suse.de>
32453
32454 PR rtl-optimization/56921
32455 * loop-init.c (pass_rtl_move_loop_invariants): Add
32456 TODO_do_not_ggc_collect to todo_flags_finish.
32457 (pass_rtl_unswitch): Same.
32458 (pass_rtl_unroll_and_peel_loops): Same.
32459 (pass_rtl_doloop): Same.
32460
32461 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32462
32463 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32464 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32465 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32466 references.
32467 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32468 * tree-streamer.c (record_common_node): Adjust reference in comment.
32469
32470 2013-04-17 Terry Guo <terry.guo@arm.com>
32471
32472 * config/arm/cortex-m4.md: Add a new bypass.
32473
32474 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32475
32476 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32477 New pattern.
32478 (*subs_<optab><mode>_multp2): New pattern.
32479 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32480 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32481
32482 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32483
32484 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32485 (*subs_mul_imm_<mode>): New pattern.
32486
32487 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32488
32489 PR target/56948
32490 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32491 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32492 (vsx_movti_32bit): Change j->wa to O->wa.
32493
32494 2013-04-16 Richard Biener <rguenther@suse.de>
32495
32496 PR rtl-optimization/56921
32497 * loop-init.c (pass_rtl_move_loop_invariants): Add
32498 TODO_do_not_ggc_collect to todo_flags_finish.
32499 (pass_rtl_unswitch): Same.
32500 (pass_rtl_unroll_and_peel_loops): Same.
32501 (pass_rtl_doloop): Same.
32502
32503 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
32504
32505 * config/arm/arm.c (emit_multi_reg_push): New declaration
32506 for an existing function.
32507 (arm_emit_strd_push): New function.
32508 (arm_expand_prologue): Used here.
32509 (arm_emit_ldrd_pop): New function.
32510 (arm_expand_epilogue): Used here.
32511 (arm_get_frame_offsets): Update condition.
32512 (arm_emit_multi_reg_pop): Add a special case for load of a single
32513 register with writeback.
32514
32515 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32516
32517 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32518 description.
32519
32520 2013-04-16 Richard Biener <rguenther@suse.de>
32521
32522 PR tree-optimization/56756
32523 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32524 (first_mem_ref_loc): New.
32525 (execute_sm): Place the load temporarily before a previous
32526 access instead of in the latch edge to ensure its SSA dependencies
32527 are defined at points dominating the load.
32528
32529 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32530
32531 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32532 correct fix by moving header and footer insn to the footer of
32533 the merged basic block. Clear BB_END of the merged-away block.
32534
32535 PR middle-end/43631
32536 * emit-rtl.c (make_note_raw): New function.
32537 (link_insn_into_chain): New static inline function.
32538 (add_insn): Use it.
32539 (add_insn_before, add_insn_after): Factor insn chain linking code...
32540 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32541 using link_insn_into_chain.
32542 (note_outside_basic_block_p): New helper function for emit_note_after
32543 and emit_note_before.
32544 (emit_note_after): Use nobb variant of add_insn_after if the note
32545 should not be contained in a basic block.
32546 (emit_note_before): Use nobb variant of add_insn_before if the note
32547 should not be contained in a basic block.
32548 (emit_note_copy): Use make_note_raw.
32549 (emit_note): Likewise.
32550 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32551 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32552 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32553 the moved barrier the tail of the basic block it follows.
32554 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32555
32556 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32557
32558 PR tree-optimization/56962
32559 * gimple-ssa-strength-reduction.c (record_increment): Only set
32560 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32561 either rhs1 or rhs2 is equal to c->base_expr.
32562
32563 2013-04-15 Richard Biener <rguenther@suse.de>
32564
32565 PR tree-optimization/56933
32566 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32567 member.
32568 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32569 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32570 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32571 dependence check ...
32572 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32573 ... here.
32574 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32575 GROUP_READ_WRITE_DEPENDENCE.
32576
32577 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32578
32579 * emit-rtl.c (reset_all_used_flags): New function.
32580 (verify_rtl_sharing): Call reset_all_used_flags before and after
32581 performing the checks.
32582
32583 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32584
32585 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32586 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32587 * config/arm/constraints.md (De): New constraint.
32588 * config/arm/neon.md (anddi3_neon): Delete.
32589 (neon_vand<mode>): Expand to standard anddi3 pattern.
32590 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32591 Move earlier in the file.
32592 (neon_inv_logic_op2): Likewise.
32593 (arm_anddi_operand_neon): New predicate.
32594
32595 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32596
32597 * configure.ac (gcc_cv_ld_as_needed): Set
32598 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32599 Use -z ignore, -z record on *-*-solaris2*.
32600 (HAVE_LD_AS_NEEDED): Update comment.
32601 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32602 * configure: Regenerate.
32603 * config.in: Regenerate.
32604 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32605 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32606 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32607 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32608 equivalents. Fix markup.
32609 * doc/tm.texi: Regenerate.
32610
32611 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32612
32613 * config/i386/i386.opt: New option mstack-protector-guard=.
32614 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32615 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32616 TARGET_SSP_TLS_GUARD.
32617 * config/i386/i386.c (ix86_option_override_internal): Set
32618 ix86_stack_protector_guard.
32619 * config/i386/i386.md (stack_protect_set): Enable for
32620 TARGET_SSP_TLS_GUARD only.
32621 (stack_protect_set_<mode>): Ditto.
32622 (stack_protect_test): Ditto.
32623 (stack_protect_test_<mode>): Ditto.
32624 * doc/invoke.texi (i386 Option): Document.
32625
32626 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32627
32628 PR target/56890
32629 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32630 (S_MODES): Set H_MODE bit.
32631 (SF_MODES): Set only S_MODE and SF_MODE bits.
32632 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32633 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32634 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32635 <MODE_FLOAT>: Likewise.
32636
32637 2013-04-15 Joey Ye <joey.ye@arm.com>
32638
32639 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32640
32641 2013-04-15 Joey Ye <joey.ye@arm.com>
32642
32643 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32644 for real far jump.
32645 (thumb_far_jump_used_p): Count instruction size and set
32646 far_jump_used.
32647
32648 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32649
32650 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32651 * resource.c (mark_target_live_regs): Reformat conditional block.
32652
32653 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32654
32655 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32656 notes, they are emitted only just before final.
32657 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32658
32659 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32660
32661 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32662 * cfgrtl.c (delete_insn): Call it here instead.
32663 * lra-spills.c (lra_final_code_change): Use delete_insn.
32664 * haifa-sched.c (sched_remove_insn): Likewise.
32665 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32666 returning to the nop pool.
32667 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32668 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32669
32670 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32671
32672 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32673 * doc/tm.texi: Regenerated.
32674
32675 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32676
32677 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32678 QImode checks.
32679
32680 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32681
32682 * df-core.c (df_find_def): Compare register numbers.
32683 (df_find_use): Likewise.
32684
32685 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32686
32687 PR target/56903
32688 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32689 lra_in_progress for return.
32690
32691 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32692
32693 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32694 define_insn into define_insn_and_split and emit movsicc patterns.
32695
32696 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32697
32698 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32699
32700 2013-04-12 Richard Biener <rguenther@suse.de>
32701
32702 * tree-pass.h (TODO_do_not_ggc_collect): New.
32703 * passes.c (execute_one_ipa_transform_pass): Honor
32704 TODO_do_not_ggc_collect.
32705 (execute_one_pass): Likewise.
32706
32707 Revert
32708 2013-04-10 Richard Biener <rguenther@suse.de>
32709
32710 * passes.c (init_optimization_passes): Remove reload pass.
32711 * ira.c (do_reload): Merge into ...
32712 (ira): ... this.
32713 (rest_of_handle_reload): Remove.
32714 (pass_reload): Likewise.
32715 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32716 of reload for vzeroupper pass placement.
32717
32718 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32719
32720 PR tree-optimization/56918
32721 PR tree-optimization/56920
32722 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32723 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32724 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32725 use wide_mul_with_sign method.
32726
32727 2013-04-12 Richard Biener <rguenther@suse.de>
32728
32729 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32730 not be considered a gimple constant.
32731
32732 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32733
32734 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32735 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32736 operations.
32737
32738 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32739 Jakub Jelinek <jakub@redhat.com>
32740
32741 * opts.c: Include diagnostic-color.h.
32742 (common_handle_option): Handle OPT_fdiagnostics_color_.
32743 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32744 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32745 (diagnostic-color.o): New.
32746 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32747 (diagnostic_color_rule): New enum.
32748 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32749 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32750 the location string.
32751 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32752 either NULL, or color kind.
32753 * diagnostic-color.c: New file.
32754 * diagnostic-color.h: New file.
32755 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32756 arguments.
32757 * doc/invoke.texi (-fdiagnostics-color): Document.
32758 * pretty-print.h (pp_show_color): Define.
32759 (struct pretty_print_info): Add show_color field.
32760 * diagnostic.c: Include diagnostic-color.h.
32761 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32762 macros. Colorize error:, warning: etc. strings and also the location
32763 string.
32764 (diagnostic_show_locus): Colorize the caret line.
32765 * pretty-print.c: Include diagnostic-color.h.
32766 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32767 inside of %< %> quotes or quoted through q format modifier.
32768
32769 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32770
32771 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32772
32773 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32774
32775 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32776 code in CC_NZ mode.
32777 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32778 pattern.
32779
32780 2013-04-11 Marek Polacek <polacek@redhat.com>
32781
32782 PR tree-optimization/48184
32783 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32784
32785 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32786
32787 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32788 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32789 (skip_simple_arithmetic): Tidy up.
32790 * tree.h (skip_simple_constant_arithmetic): Declare.
32791
32792 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32793
32794 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32795
32796 2013-04-11 Richard Biener <rguenther@suse.de>
32797
32798 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32799 generate vector constants.
32800
32801 2013-04-11 Richard Biener <rguenther@suse.de>
32802
32803 PR tree-optimization/56878
32804 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32805 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32806 New function.
32807 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32808 Prefer to align the DR with the most invariant base address.
32809
32810 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32811
32812 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32813 comment.
32814
32815 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32816
32817 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32818 floating-point vector comparisons against 0.
32819
32820 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32821
32822 PR tree-optimization/56899
32823 * fold-const.c (extract_muldiv_1): Apply distributive law
32824 only if TYPE_OVERFLOW_WRAPS (ctype).
32825
32826 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32827
32828 PR target/56124
32829 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32830 loading has side effect.
32831
32832 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32833
32834 * config/sparc/sparc.c: Include tree-pass.h.
32835 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32836 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32837 head of file. Change return type. Split off gate function.
32838 (sparc_gate_work_around_errata): New function.
32839 (pass_work_around_errata): New pass definition.
32840 (insert_pass_work_around_errata) New pass insert definition to
32841 insert pass_work_around_errata just after delayed-branch scheduling.
32842 (sparc_option_override): Insert the pass.
32843 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32844
32845 2013-04-10 David S. Miller <davem@davemloft.net>
32846
32847 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32848 or -mcpu=hypersparc.
32849
32850 * target.def (cstore_mode): New hook.
32851 * target.h: Include insn-codes.h
32852 * targhooks.c: Likewise.
32853 (default_cstore_mode): New function.
32854 * targhooks.h: Declare it.
32855 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32856 * doc/tm.texi: Rebuild.
32857 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32858 target hook, rather than inspecting the insn_data.
32859 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32860 (TARGET_CSTORE_MODE): Redefine.
32861 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32862 result patterns.
32863 * config/sparc/predicates.md (cstore_result_operand): New special
32864 predicate.
32865 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32866 Use it for operand 0.
32867 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32868 (*snesi_special): Likewise.
32869 (*snesi_zero): Likewise.
32870 (*seqsi_zero): Likewise.
32871 (*sltu_insn): Likewise.
32872 (*sgeu_insn): Likewise.
32873 (*seqdi_special): Make operand 0 and comparison operation be of
32874 DImode.
32875 (*snedi_special): Likewise.
32876 (*snedi_special_vis3): Likewise.
32877 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32878 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32879 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32880 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32881 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32882 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32883 (*sltu_extend_sp64): Likewise.
32884 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32885 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32886 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32887 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32888 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32889
32890 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32891
32892 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32893 (aarch64_start_file): Use the new function.
32894
32895 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32896 Jason Merrill <jason@redhat.com>
32897
32898 * common.opt: Add -gdwarf.
32899 * opts.c (common_handle_option): Handle it.
32900 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32901
32902 2013-04-10 Richard Biener <rguenther@suse.de>
32903
32904 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32905 (execute_one_ipa_transform_pass): But unconditionally here.
32906 (execute_one_pass): And here.
32907 (init_optimization_passes): Remove reload pass.
32908 * tree-pass.h (TODO_ggc_collect): Remove.
32909 (pass_reload): Likewise.
32910 * ira.c (do_reload): Merge into ...
32911 (ira): ... this.
32912 (rest_of_handle_reload): Remove.
32913 (pass_reload): Likewise.
32914 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32915 of reload for vzeroupper pass placement.
32916 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32917 and todo_flags_finish of all passes.
32918
32919 2013-04-10 Richard Biener <rguenther@suse.de>
32920
32921 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32922 first_const_oprnd field, rename first_def_type to first_op_type.
32923 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32924 (vect_get_and_check_slp_defs): Always use the type of the
32925 operand. Allow mixed vect_external_def, vect_constant_def types.
32926 (vect_get_constant_vectors): Handle mixed vect_external_def,
32927 vect_constant_def types.
32928
32929 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32930
32931 PR tree-optimization/55524
32932 * tree-ssa-math-opts.c
32933 (convert_mult_to_fma): Don't use an fms construct
32934 when we don't have an fms operation, but fnma, and it looks
32935 likely that we'll be able to use the latter.
32936
32937 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32938
32939 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32940 function.
32941 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32942 inline fail caused by overwritable functions.
32943
32944 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32945
32946 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32947 unnecessary bits in the constant power of two case.
32948
32949 2013-04-10 Richard Biener <rguenther@suse.de>
32950
32951 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32952 broken code swapping operands.
32953 (vect_build_slp_tree): Do not compute load permutations here.
32954 (vect_analyze_slp_instance): Compute load permutations here,
32955 after building the SLP tree.
32956
32957 2013-04-09 Christian Bruel <christian.bruel@st.com>
32958
32959 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32960 of next/prev_real_insn.
32961
32962 2013-04-09 Jan Hubicka <jh@suse.cz>
32963
32964 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32965 Drop aliased parameter.
32966 (function_and_variable_visibility): Do not handle alias pairs.
32967 * cgraph.c (varpool_externally_visible_p): Update prototype.
32968 * varpool.c (varpool_add_new_variable): Update.
32969
32970 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32971
32972 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32973
32974 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32975
32976 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32977
32978 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32979
32980 2013-04-09 Marek Polacek <polacek@redhat.com>
32981
32982 PR tree-optimization/48762
32983 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32984
32985 2013-04-09 Richard Biener <rguenther@suse.de>
32986
32987 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32988 dealing with cost.
32989 (vect_build_slp_tree): Likewise.
32990 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32991 calculating the cost of a SLP instance.
32992 (vect_analyze_slp_instance): Use it from here, after building
32993 the SLP tree.
32994
32995 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32996
32997 PR middle-end/56883
32998 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32999 expand_omp_for_static_chunk): Use simple_p = true in
33000 force_gimple_operand_gsi calls when assigning to addressable decls.
33001
33002 2013-04-09 Jeff Law <law@redhat.com>
33003
33004 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
33005 when the boolean was created by converting a wider object which
33006 had a boolean range.
33007
33008 2013-04-09 Richard Biener <rguenther@suse.de>
33009
33010 * tree-vectorizer.h (slp_void_p): Remove.
33011 (slp_tree): Typedef before _slp_tree declaration.
33012 (struct _slp_tree): Use a vector of slp_tree as children.
33013 (vect_get_place_in_interleaving_chain): Remove.
33014 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33015 Move ...
33016 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33017 and make static.
33018 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33019 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33020 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33021 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33022 Use slp_node instead of slp_void_p and adjust.
33023
33024 2013-04-09 Richard Biener <rguenther@suse.de>
33025
33026 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33027 work that is not necessary.
33028
33029 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33030
33031 PR tree-optimization/56854
33032 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33033 forward into clobber stmts if it would change MEM_REF lhs into
33034 non-MEM_REF.
33035
33036 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
33037
33038 * tree.c (type_hash_lookup, type_hash_add): Make static.
33039 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33040
33041 2013-04-09 Richard Biener <rguenther@suse.de>
33042
33043 * tree.h (unsave_expr_now): Remove.
33044 * tree-inline.c (mark_local_for_remap_r): Remove.
33045 (unsave_expr_1): Likewise.
33046 (unsave_r): Likewise.
33047 (unsave_expr_now): Likewise.
33048 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33049 (propagate_tree_value): Likewise.
33050
33051 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
33052
33053 * doc/rtl.texi (sequence): Rewrite documentation to match the
33054 current use of SEQUENCE rtl objects.
33055 * rtl.def (SEQUENCE): Likewise.
33056
33057 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33058 Update documentation.
33059 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33060 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33061
33062 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33063
33064 2013-04-08 Teresa Johnson <tejohnson@google.com>
33065
33066 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33067 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33068 methods.
33069 (estimate_edge_size_and_time): Add comment to suggest using rounding
33070 methods.
33071 (estimate_node_size_and_time): Ditto.
33072 (remap_edge_change_prob): Use helper rounding divide methods.
33073 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33074 (gimple_mod_pow2_value_transform): Ditto.
33075 (gimple_mod_subtract_transform): Ditto.
33076 (gimple_ic_transform): Ditto.
33077 (gimple_stringops_transform): Ditto.
33078 * stmt.c (conditional_probability): Ditto.
33079 (emit_case_dispatch_table): Ditto.
33080 * lto-cgraph.c (merge_profile_summaries): Ditto.
33081 * tree-optimize.c (execute_fixup_cfg): Ditto.
33082 * cfgcleanup.c (try_forward_edges): Ditto.
33083 * cfgloopmanip.c (scale_loop_profile): Ditto.
33084 (loopify): Ditto.
33085 (duplicate_loop_to_header_edge): Ditto.
33086 (lv_adjust_loop_entry_edge): Ditto.
33087 * tree-vect-loop.c (vect_transform_loop): Ditto.
33088 * profile.c (compute_branch_probabilities): Ditto.
33089 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33090 * lto-streamer-in.c (input_cfg): Ditto.
33091 * gimple-streamer-in.c (input_bb): Ditto.
33092 * ipa-cp.c (update_profiling_info): Ditto.
33093 (update_specialized_profile): Ditto.
33094 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33095 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33096 rounding methods.
33097 * sched-rgn.c (compute_dom_prob_ps): Ditto.
33098 (compute_trg_info): Ditto.
33099 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33100 (purge_dead_edges): Ditto.
33101 * loop-unswitch.c (unswitch_loop): Ditto.
33102 * cgraphclones.c (cgraph_clone_edge): Ditto.
33103 (cgraph_clone_node): Ditto.
33104 * tree-inline.c (copy_bb): Ditto.
33105 (copy_edges_for_bb): Ditto.
33106 (initialize_cfun): Ditto.
33107 (copy_cfg_body): Ditto.
33108 (expand_call_inline): Ditto.
33109
33110 2013-04-08 Kai Tietz <ktietz@redhat.com>
33111
33112 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33113 TARGET_CYGWIN64 by TARGET_64BIT.
33114
33115 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33116
33117 * config/epiphany/epiphany.md (GPR_1): New constant.
33118 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33119 * config/epiphany/epiphany.c (gen_compare_reg):
33120 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33121 is already in place.
33122 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33123 Don't require being called during rtl expansion; If y operlaps r0,
33124 return 0.
33125 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33126 (epiphany_expand_epilogue): Likewise.
33127
33128 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33129 Don't use CC_FPmode for ORDERED / UNORDERED.
33130 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33131
33132 * config/epiphany/constraints.md (CnL): New constraint.
33133 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33134 * config/epiphany/predicates.md (add_operand): Allow 1024.
33135
33136 * config/epiphany/epiphany.md (logical_op): New code iterator.
33137 (op_mnc): New code attribute.
33138 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33139 (mov_f+1, mov_f+2): New peephole2 patterns.
33140
33141 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33142 (cstoresi4): Also allow re-use of zero result when doing a NE
33143 comparison to a non-zero operand.
33144 Use (clobber (scratch)) for first insn if the gpr output is not needed.
33145
33146 * config/epiphany/epiphany.md (<insn_opname>v2si3):
33147 Use gen_addsi3_i / gen_subsi3_i.
33148
33149 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33150
33151 PR c++/34949
33152 PR c++/50243
33153 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33154 contain anything but clobbers, at most one __builtin_stack_restore,
33155 optionally debug stmts and final resx, and if it has at least one
33156 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
33157 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33158 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33159 which isn't defaut definition, remove them.
33160 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33161 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33162 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33163 with MEM_REF LHS with SSA_NAME address.
33164
33165 2013-04-08 Jeff Law <law@redhat.com>
33166
33167 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33168
33169 2013-04-08 Richard Biener <rguenther@suse.de>
33170
33171 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33172 extra newline.
33173 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33174 determined vector type.
33175 (vect_analyze_data_refs): Likewise.
33176 (vect_get_new_vect_var): Adjust.
33177 (vect_create_destination_var): Preserve SSA name versions.
33178 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33179 not dump anything here.
33180
33181 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33182
33183 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33184 Add member lr_slot_known.
33185 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33186 if necessary.
33187 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33188 Remove code that sets lr_slot_offset according to what a previous
33189 version of epiphany_emit_save_restore used to do.
33190 (epiphany_emit_save_restore): When doing an lr save or restore,
33191 set/verify lr_slot_known and lr_slot_offset.
33192
33193 2013-04-08 Xinyu Qi <xyqi@marvell.com>
33194
33195 PR target/54338
33196 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33197 in ALL_REGS.
33198
33199 2013-04-08 Richard Biener <rguenther@suse.de>
33200
33201 * alias.c (find_base_term): Fix thinko in previous change.
33202
33203 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33204
33205 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33206 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33207 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
33208 if possible to compute val.
33209 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33210 For QImode integers don't require anything about precision. Use
33211 const_with_all_bytes_same to find out if the constant doesn't have
33212 repeated bytes in it.
33213
33214 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33215
33216 * config/s390/s390.c (s390_expand_insv): Only accept insertions
33217 within mode size.
33218
33219 2013-04-08 Marek Polacek <polacek@redhat.com>
33220
33221 PR rtl-optimization/48182
33222 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33223 value to 1.
33224
33225 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33226
33227 PR target/55487
33228 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33229 nuses, make sure we have a label.
33230
33231 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33232
33233 PR target/56843
33234 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33235 (rs6000_emit_swdiv_low_precision): Remove.
33236 (rs6000_emit_swdiv): Rewrite to handle between one and four
33237 iterations of Newton-Raphson generally; modify required number of
33238 iterations for some cases.
33239 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33240
33241 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
33242
33243 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33244 set-but-unused variable.
33245
33246 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33247 basic blocks of released function bodies garbage-collectable.
33248
33249 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33250 (struct rtl_opt_pass): Add TODO_df_finish.
33251
33252 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33253
33254 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33255
33256 * config/arm/constraints.md (q): New constraint.
33257 * config/arm/ldrdstrd.md: New file.
33258 * config/arm/arm.md (ldrdstrd.md) New include.
33259 (arm_movdi): Use "q" instead of "r" constraint
33260 for double-word memory access.
33261 (movdf_soft_insn): Likewise.
33262 * config/arm/vfp.md (movdi_vfp): Likewise.
33263 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33264 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33265 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33266 (mem_ok_for_ldrd_strd): Likewise.
33267 (output_move_double): Update assertion.
33268
33269 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33270
33271 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33272
33273 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33274
33275 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33276 define_insn_and_split.
33277 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33278
33279 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33280
33281 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33282 define_insn_and_split.
33283 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33284 (shiftsi3_compare): New pattern.
33285 (rrx): New pattern.
33286 * config/arm/unspecs.md (UNSPEC_RRX): New.
33287
33288 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33289
33290 * config/arm/arm.md (negdi_extendsidi): New pattern.
33291 (negdi_zero_extendsidi): Likewise.
33292
33293 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33294
33295 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33296 define_insn_and_split.
33297 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33298 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33299
33300 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33301
33302 * config/arm/arm.md (arm_subdi3): Convert define_insn into
33303 define_insn_and_split.
33304 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33305 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33306
33307 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33308
33309 * config/arm/arm.md (subsi3_carryin): New pattern.
33310 (subsi3_carryin_const): Likewise.
33311 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33312 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33313
33314 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33315
33316 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33317
33318 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33319
33320 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33321 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33322
33323 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33324
33325 * config/arm/arm.c (arm_expand_builtin): Change fcode
33326 type to unsigned int.
33327
33328 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33329
33330 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33331
33332 2013-04-04 Ian Lance Taylor <iant@google.com>
33333
33334 * doc/standards.texi (Standards): The Go frontend supports the Go 1
33335 language standard.
33336
33337 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
33338
33339 PR middle-end/56729
33340 * df-scan.c (df_insn_delete): Disable failing assert.
33341
33342 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33343
33344 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33345 New function prototype.
33346 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33347 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33348 (arm_builtin_vectorized_function): New function.
33349
33350 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33351
33352 * config/arm/arm_neon_builtins.def: New file.
33353 * config/arm/arm.c (neon_builtin_data): Move contents to
33354 arm_neon_builtins.def.
33355 (enum arm_builtins): Include neon builtin definitions.
33356 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33357 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33358
33359 2013-04-04 Marek Polacek <polacek@redhat.com>
33360
33361 PR tree-optimization/48186
33362 * predict.c (maybe_hot_frequency_p): Return false if
33363 HOT_BB_FREQUENCY_FRACTION is 0.
33364 (cgraph_maybe_hot_edge_p): Likewise.
33365
33366 2013-04-04 Richard Biener <rguenther@suse.de>
33367
33368 PR tree-optimization/56826
33369 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33370 more accurately.
33371
33372 2013-04-04 Richard Biener <rguenther@suse.de>
33373
33374 PR tree-optimization/56213
33375 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33376 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33377
33378 2013-04-04 Richard Biener <rguenther@suse.de>
33379
33380 PR tree-optimization/56837
33381 * tree-loop-distribution.c (classify_partition): For non-zero
33382 values require that the value has the same precision as its
33383 mode to be useful as memset value.
33384
33385 2013-04-03 Nick Clifton <nickc@redhat.com>
33386
33387 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33388 (fmssf4): Use fmsf.s on E3V5 architectures.
33389 (fnmasf4): Use fnmaf.s on E3V5 architectures.
33390 (fnmssf4): Use fnmsf.s on E3V5 architectures.
33391
33392 2013-04-03 Jeff Law <law@redhat.com>
33393
33394 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33395 (lra-eliminations.o): Likewise.
33396
33397 2013-04-03 Teresa Johnson <tejohnson@google.com>
33398
33399 * gcov-io.c (compute_working_sets): Moved most of body of old
33400 compute_working_sets here from profile.c.
33401 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33402 (gcov_working_set_t): Moved typedef here from basic-block.h
33403 (compute_working_set): Declare.
33404 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33405 (get_working_sets): Renamed from compute_working_set,
33406 replace most of body with call to new compute_working_sets.
33407 (get_exec_counts): Replace call to compute_working_sets
33408 to get_working_sets.
33409 * profile.h (get_working_sets): Renamed from compute_working_set.
33410 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33411 to get_working_sets.
33412 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33413 * gcov-dump.c (dump_working_sets): New function.
33414
33415 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
33416
33417 * hwint.c (sext_hwi, zext_hwi): New functions.
33418 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33419 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33420 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33421 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33422 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33423 (sext_hwi, zext_hwi): New functions.
33424
33425 2013-04-03 Jeff Law <law@redhat.com>
33426
33427 PR tree-optimization/56799
33428 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33429 back test for widening conversion erroneously dropped in prior change.
33430
33431 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33432
33433 PR target/56809
33434 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33435 instead of next_real_insn.
33436
33437 2013-04-03 Marek Polacek <polacek@redhat.com>
33438
33439 PR sanitizer/55702
33440 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33441
33442 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33443
33444 PR target/56809
33445 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33446 next_real_insn.
33447 (thumb1_output_casesi): Likewise.
33448 (thumb2_output_casesi): Likewise.
33449
33450 2013-04-03 Richard Biener <rguenther@suse.de>
33451
33452 PR tree-optimization/56817
33453 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33454 Split out ...
33455 (tree_unroll_loops_completely_1): ... new function to manually
33456 walk the loop tree, properly defering outer loops of unrolled
33457 loops to later iterations.
33458
33459 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33460
33461 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33462 (vectorizable_load): Likewise.
33463 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33464 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33465
33466 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33467
33468 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33469 BIT_FIELD_REF.
33470
33471 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33472
33473 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33474
33475 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33476
33477 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33478
33479 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33480
33481 PR tree-optimization/56790
33482 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33483 folding.
33484
33485 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33486
33487 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33488 Handle VEC_MERGE.
33489 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33490 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33491 equal arguments.
33492
33493 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33494
33495 PR c/19449
33496 * tree.h (force_folding_builtin_constant_p): New decl.
33497 * builtins.c (force_folding_builtin_constant_p): New variable.
33498 (fold_builtin_constant_p): Fold immediately also if
33499 force_folding_builtin_constant_p.
33500
33501 2013-04-03 Richard Biener <rguenther@suse.de>
33502
33503 PR tree-optimization/56812
33504 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33505 DRs of the same interleaving chain are independent.
33506
33507 2013-04-02 Jason Merrill <jason@redhat.com>
33508
33509 * gdbinit.in (pbb): Use debug fn.
33510
33511 2013-04-02 Lawrence Crowl <crowl@google.com>
33512
33513 * sese.h (struct ivtype_map_elt_s): Remove unused.
33514 (extern debug_ivtype_map): Remove unused.
33515 (extern eq_ivtype_map_elts): Remove unused.
33516 * sese.c (debug_ivtype_map): Removed unused.
33517 (debug_ivtype_map_1): Removed unused.
33518 (debug_ivtype_elt): Remove unused.
33519 (eq_ivtype_map_elts): Remove unused.
33520
33521 2013-04-02 Kai Tietz <ktietz@redhat.com>
33522
33523 PR target/52790
33524 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33525 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33526 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33527 function.
33528 (legitimize_pe_coff_symbol): Likewise.
33529 (is_imported_p): New helper-function.
33530 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33531 for Windows x64 targets.
33532 (ix86_expand_prologue): Optimize for pe-coff targets.
33533 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33534 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33535 medium/large code-model.
33536 (legitimize_pic_address): Likewise.
33537 (legitimize_tls_address): Likewise.
33538 (ix86_expand_call): Likewise.
33539 (x86_output_mi_thunk): Likewise.
33540 (get_dllimport_decl): Add new beimport argument.
33541 (construct_plt_address): Don't assert for x64 pe-coff targets.
33542 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33543 targets.
33544 (SYMBOL_FLAG_STUBVAR): New macro.
33545 (SYMBOL_REF_STUBVAR_P): Likewise.
33546 * config/i386/winnt.c (stub_list): New structure.
33547 (stub_head): New local variable.
33548 (i386_pe_record_stub): New function.
33549 (i386_pe_file_end): Emit refptr-stubs.
33550
33551 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33552
33553 PR rtl-optimization/56745
33554 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33555 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33556
33557 PR c++/34949
33558 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33559 and both of them are MEM_REFs, just compare first argument for
33560 equality and attempt to deal even with differing offsets.
33561
33562 PR c++/34949
33563 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33564 of gimple_clobber_p to be MEM_REF.
33565 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33566 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33567 after gimplification.
33568 * asan.c (get_mem_ref_of_assignment): Don't instrument
33569 gimple_clobber_p stmts.
33570 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33571 gimple_clobber_p stmt if they have MEM_REF lhs and
33572 are dead because of another gimple_clobber_p stmt.
33573 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33574 gimple_clobber_p stmts like debug stmts.
33575 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33576 that refer to unused VAR_DECLs or uninitialized values.
33577 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33578 gimple_clobber_p stmts if they refer to removed parameters.
33579 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33580 formatting.
33581
33582 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33583
33584 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33585 using SWI48 mode attribute.
33586
33587 2013-04-02 Wei Mi <wmi@google.com>
33588
33589 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33590 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33591 *<rotate_insn><mode>3_mask in i386.md.
33592
33593 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33594
33595 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33596
33597 2013-04-02 Richard Biener <rguenther@suse.de>
33598
33599 PR tree-optimization/56778
33600 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33601 Runtime alias tests are not supported for gather loads.
33602 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33603 stmts referenced from SSA operands before updating SSA form.
33604
33605 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33606 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33607
33608 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33609 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33610 * config/arm/cortex-a53.md: New file.
33611 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33612 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33613 * config/arm/arm.c (arm_issue_rate): Likewise.
33614 * config/arm/arm-tune.md: Regenerate
33615 * config/arm/arm-tables.opt: Regenerate.
33616 * config/arm/arm-cores.def: Add cortex-a53.
33617
33618 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33619
33620 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33621 non-static link.
33622
33623 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33624
33625 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33626 scalar load/store operations using B/H registers.
33627 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33628
33629 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33630
33631 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33632 scalar move.
33633 * config/aarch64/aarch64.c
33634 (aarch64_simd_scalar_immediate_valid_for_move): New.
33635 * config/aarch64/aarch64-protos.h
33636 (aarch64_simd_scalar_immediate_valid_for_move): New.
33637 * config/aarch64/constraints.md (Dh, Dq): New.
33638 * config/aarch64/iterators.md (hq): New.
33639
33640 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33641
33642 * reorg.c (get_branch_condition): Deal with conditional returns.
33643 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33644
33645 2013-04-01 Wei Mi <wmi@google.com>
33646
33647 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33648 Truncate operand 2 using %b asm operand modifier.
33649 (*<shift_insn><mode>3_mask): Ditto.
33650 (*<rotate_insn><mode>3_mask): Ditto.
33651
33652 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33653
33654 PR middle-end/56798
33655 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33656
33657 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33658
33659 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33660 of next_real_insn.
33661 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33662
33663 2013-03-30 Lawrence Crowl <crowl@google.com>
33664
33665 * dse.c (clear_alias_sets): Remove never set.
33666 (disqualified_clear_alias_sets): Remove never set.
33667 (clear_alias_mode_pool): Remove never set.
33668 (dse_step0): Remove condition that is never true.
33669 (canon_address): Remove condition that is never true.
33670 (dse_step7): Remove condition that is never true.
33671 (rest_of_handle_dse): Remove condition that is never true.
33672 (rest_of_handle_dse::did_global): Remove never read from above.
33673 (dse_step2_spill): Remove never called from above.
33674 (dse_step5_spill): Remove never called from above.
33675
33676 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33677
33678 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33679 JUMP_TABLE_DATA changes.
33680 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33681 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33682 (Insns) <jump_table_data>: New entry.
33683 * doc/tm.texi: Regenerate.
33684
33685 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33686
33687 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33688 for table jump at the end of a basic block using tablejump_p.
33689 * targhooks.c (default_invalid_within_doloop): Likewise.
33690 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33691 target hook implementation that is identical to the default hook.
33692 (rs6000_invalid_within_doloop): Remove.
33693
33694 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33695 unused variable from tablejump_p call.
33696
33697 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33698 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33699 (INSN_DELETED_P): Likewise.
33700 (emit_jump_table_data): New prototype.
33701 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33702 after 4th as unused.
33703 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33704 * sched-vis.c (print_insn): Likewise.
33705 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33706 insn for compatibility with back ends that use next_active_insn to
33707 identify jump table data.
33708 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33709 (remove_insn): Likewise.
33710 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33711 to be emitted.
33712 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33713 (emit_jump_table_data): New function.
33714
33715 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33716 basic block, a JUMP_TABLE_DATA never is.
33717 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33718 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33719 off from code handling real insns.
33720 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33721 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33722 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33723 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33724 is not a NONDEBUG_INSN_P.
33725 * ira-costs.c (scan_one_insn): Likewise.
33726 * jump.c (mark_all_labels): Likewise.
33727 (mark_jump_label_1): Likewise.
33728 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33729 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33730 a basic block.
33731 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33732 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33733 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33734 JUMP_TABLE_DATA_P insns.
33735 (calculate_elim_costs_all_insns): Likewise.
33736 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33737 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33738 (delete_output_reload): Code style fixups.
33739 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33740 insn flags on this non-insn.
33741 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33742 as scheduling barriers, for pre-change compatibility.
33743 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33744 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33745
33746 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33747 redundant JUMP_TABLE_DATA_P test.
33748 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33749 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33750 (frv_for_each_packet): Likewise.
33751 * config/i386/i386.c (min_insn_size): Likewise.
33752 (ix86_avoid_jump_mispredicts): Likewise.
33753 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33754 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33755 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33756 (mips16_insn_length): Robustify.
33757 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33758 (mips16_split_long_branches): Likewise.
33759 * config/pa/pa.c (pa_combine_instructions): Likewise.
33760 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33761 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33762 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33763 as contributing to pool range lengths.
33764 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33765 Remove redundant JUMP_TABLE_DATA_P test.
33766 (sh_loop_align): Likewise.
33767 (split_branches): Likewise.
33768 (sh_insn_length_adjustment): Likewise.
33769 * config/spu/spu.c (get_branch_target): Likewise.
33770
33771 2013-03-29 Jan Hubicka <jh@suse.cz>
33772
33773 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33774 gcov streaming; stream hot bb threshold to ltrans.
33775 * predict.c (get_hot_bb_threshold): Break out from ....
33776 (maybe_hot_count_p): ... here.
33777 (set_hot_bb_threshold): New function.
33778 * lto-section-in.c (lto_section_name): Add profile.
33779 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33780 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33781 and data-streamer.h
33782 (histogram_entry): New structure.
33783 (histogram, histogram_pool): New global vars.
33784 (histogram_hash): New structure.
33785 (histogram_hash::hash): New method.
33786 (histogram_hash::equal): Likewise.
33787 (account_time_size): New function.
33788 (cmp_counts): New function.
33789 (dump_histogram): New function.
33790 (ipa_profile_generate_summary): New function.
33791 (ipa_profile_write_summary): New function.
33792 (ipa_profile_read_summary): New function.
33793 (ipa_profile): Decide on threshold.
33794 (pass_ipa_profile): Add ipa_profile_write_summary and
33795 ipa_profile_read_summary.
33796 * Makefile.in (ipa.o): Update dependencies.
33797 * lto-streamer.h (LTO_section_ipa_profile): New section.
33798
33799 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33800
33801 * tree.h (VAR_P): New.
33802
33803 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33804
33805 PR lto/56777
33806 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33807
33808 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33809
33810 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33811 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33812 (control_flow_insn_p): Likewise.
33813 * cfgrtl.c (duplicate_insn_chain): Likewise.
33814 * final.c (get_attr_length_1): Likewise.
33815 (shorten_branches): Likewise.
33816 (final_scan_insn): Likewise.
33817 * function.c (instantiate_virtual_regs): Likewise.
33818 * gcse.c (insert_insn_end_basic_block): Likewise.
33819 * ira-costs.c (scan_one_insn): Likewise.
33820 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33821 * lra.c (check_rtl): Likewise.
33822 * reload1.c (elimination_costs_in_insn): Likewise.
33823 * reorg.c (follow_jumps): Likewise.
33824
33825 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33826 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33827 (thumb_far_jump_used_p): Likewise.
33828 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33829 (workaround_speculation): Likewise.
33830 (add_sched_insns_for_speculation): Likewise.
33831 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33832 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33833 (frv_for_each_packet): Likewise.
33834 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33835 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33836 (final_emit_insn_group_barriers): Likewise.
33837 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33838 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33839 (mips16_insn_length): Likewise.
33840 * config/pa/pa.c (pa_reorg): Likewise.
33841 (pa_combine_instructions): Likewise.
33842 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33843 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33844 (sh_reorg): Likewise.
33845 (split_branches): Likewise.
33846 * config/spu/spu.c (get_branch_target): Likewise.
33847
33848 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33849 JUMP_TABLE_DATA_P.
33850
33851 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33852
33853 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33854 Fix declaration name.
33855
33856 2013-03-28 Lawrence Crowl <crowl@google.com>
33857
33858 * graphds.h (struct graph.indicies): Remove unused.
33859 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33860 (SCOP_ORIGINAL_PDDRS): Remove unused.
33861 * sese.h (extern insert_loop_close_phis): Removed unused.
33862 (extern insert_guard_phis): Removed unused.
33863 (extern ivtype_map_elt_info): Removed unused.
33864 (new_ivtype_map_elt): Removed unused.
33865 * sese.c (ivtype_map_elt_info): Removed unused.
33866
33867 2013-03-28 Lawrence Crowl <crowl@google.com>
33868
33869 * Makefile.in: Add several missing include dependences.
33870 (DUMPFILE_H): New.
33871 (test-dump.o): New. This object is not added to any executable,
33872 but is present for ad-hoc testing.
33873 * bitmap.c
33874 (debug (const bitmap_head_def &)): New.
33875 (debug (const bitmap_head_def *)): New.
33876 * bitmap.h
33877 (extern debug (const bitmap_head_def &)): New.
33878 (extern debug (const bitmap_head_def *)): New.
33879 * cfg.c
33880 (debug (edge_def &)): New.
33881 (debug (edge_def *)): New.
33882 * cfghooks.c
33883 (debug (basic_block_def &)): New.
33884 (debug (basic_block_def *)): New.
33885 * dumpfile.h
33886 (dump_node (const_tree, int, FILE *)): Correct source file.
33887 * dwarf2out.c
33888 (debug (die_struct &)): New.
33889 (debug (die_struct *)): New.
33890 * dwarf2out.h
33891 (extern debug (die_struct &)): New.
33892 (extern debug (die_struct *)): New.
33893 * gimple-pretty-print.c
33894 (debug (gimple_statement_d &)): New.
33895 (debug (gimple_statement_d *)): New.
33896 * gimple-pretty-print.h
33897 (extern debug (gimple_statement_d &)): New.
33898 (extern debug (gimple_statement_d *)): New.
33899 * ira-build.c
33900 (debug (ira_allocno_copy &)): New.
33901 (debug (ira_allocno_copy *)): New.
33902 (debug (ira_allocno &)): New.
33903 (debug (ira_allocno *)): New.
33904 * ira-int.h
33905 (extern debug (ira_allocno_copy &)): New.
33906 (extern debug (ira_allocno_copy *)): New.
33907 (extern debug (ira_allocno &)): New.
33908 (extern debug (ira_allocno *)): New.
33909 * ira-lives.c
33910 (debug (live_range &)): New.
33911 (debug (live_range *)): New.
33912 * lra-int.h
33913 (debug (lra_live_range &)): New.
33914 (debug (lra_live_range *)): New.
33915 * lra-lives.c
33916 (debug (lra_live_range &)): New.
33917 (debug (lra_live_range *)): New.
33918 * omega.c
33919 (debug (omega_pb_d &)): New.
33920 (debug (omega_pb_d *)): New.
33921 * omega.h
33922 (extern debug (omega_pb_d &)): New.
33923 (extern debug (omega_pb_d *)): New.
33924 * print-rtl.c
33925 (debug (const rtx_def &)): New.
33926 (debug (const rtx_def *)): New.
33927 * print-tree.c
33928 (debug_tree (tree): Move within file.
33929 (debug_raw (const tree_node &)): New.
33930 (debug_raw (const tree_node *)): New.
33931 (dump_tree_via_hooks (const tree_node *, int)): New.
33932 (debug (const tree_node &)): New.
33933 (debug (const tree_node *)): New.
33934 (debug_verbose (const tree_node &)): New.
33935 (debug_verbose (const tree_node *)): New.
33936 (debug_head (const tree_node &)): New.
33937 (debug_head (const tree_node *)): New.
33938 (debug_body (const tree_node &)): New.
33939 (debug_body (const tree_node *)): New.
33940 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33941 (debug (vec<tree, va_gc> &)): New.
33942 (debug (vec<tree, va_gc> *)): New.
33943 * rtl.h
33944 (extern debug (const rtx_def &)): New.
33945 (extern debug (const rtx_def *)): New.
33946 * sbitmap.c
33947 (debug_raw (simple_bitmap_def &)): New.
33948 (debug_raw (simple_bitmap_def *)): New.
33949 (debug (simple_bitmap_def &)): New.
33950 (debug (simple_bitmap_def *)): New.
33951 * sbitmap.h
33952 (extern debug (simple_bitmap_def &)): New.
33953 (extern debug (simple_bitmap_def *)): New.
33954 (extern debug_raw (simple_bitmap_def &)): New.
33955 (extern debug_raw (simple_bitmap_def *)): New.
33956 * sel-sched-dump.c
33957 (debug (vinsn_def &)): New.
33958 (debug (vinsn_def *)): New.
33959 (debug_verbose (vinsn_def &)): New.
33960 (debug_verbose (vinsn_def *)): New.
33961 (debug (expr_def &)): New.
33962 (debug (expr_def *)): New.
33963 (debug_verbose (expr_def &)): New.
33964 (debug_verbose (expr_def *)): New.
33965 (debug (vec<rtx> &)): New.
33966 (debug (vec<rtx> *)): New.
33967 * sel-sched-dump.h
33968 (extern debug (vinsn_def &)): New.
33969 (extern debug (vinsn_def *)): New.
33970 (extern debug_verbose (vinsn_def &)): New.
33971 (extern debug_verbose (vinsn_def *)): New.
33972 (extern debug (expr_def &)): New.
33973 (extern debug (expr_def *)): New.
33974 (extern debug_verbose (expr_def &)): New.
33975 (extern debug_verbose (expr_def *)): New.
33976 (extern debug (vec<rtx> &)): New.
33977 (extern debug (vec<rtx> *)): New.
33978 * sel-sched-ir.h
33979 (_list_iter_cond_expr): Make inline instead of static.
33980 * sreal.c
33981 (debug (sreal &)): New.
33982 (debug (sreal *)): New.
33983 * sreal.h
33984 (extern debug (sreal &)): New.
33985 (extern debug (sreal *)): New.
33986 * tree.h
33987 (extern debug_raw (const tree_node &)): New.
33988 (extern debug_raw (const tree_node *)): New.
33989 (extern debug (const tree_node &)): New.
33990 (extern debug (const tree_node *)): New.
33991 (extern debug_verbose (const tree_node &)): New.
33992 (extern debug_verbose (const tree_node *)): New.
33993 (extern debug_head (const tree_node &)): New.
33994 (extern debug_head (const tree_node *)): New.
33995 (extern debug_body (const tree_node &)): New.
33996 (extern debug_body (const tree_node *)): New.
33997 (extern debug (vec<tree, va_gc> &)): New.
33998 (extern debug (vec<tree, va_gc> *)): New.
33999 * tree-cfg.c
34000 (debug (struct loop &)): New.
34001 (debug (struct loop *)): New.
34002 (debug_verbose (struct loop &)): New.
34003 (debug_verbose (struct loop *)): New.
34004 * tree-dump.c: Add header dependence.
34005 * tree-flow.h
34006 (extern debug (struct loop &)): New.
34007 (extern debug (struct loop *)): New.
34008 (extern debug_verbose (struct loop &)): New.
34009 (extern debug_verbose (struct loop *)): New.
34010 * tree-data-ref.c
34011 (debug (data_reference &)): New.
34012 (debug (data_reference *)): New.
34013 (debug (vec<data_reference_p> &)): New.
34014 (debug (vec<data_reference_p> *)): New.
34015 (debug (vec<ddr_p> &)): New.
34016 (debug (vec<ddr_p> *)): New.
34017 * tree-data-ref.h
34018 (extern debug (data_reference &)): New.
34019 (extern debug (data_reference *)): New.
34020 (extern debug (vec<data_reference_p> &)): New.
34021 (extern debug (vec<data_reference_p> *)): New.
34022 (extern debug (vec<ddr_p> &)): New.
34023 (extern debug (vec<ddr_p> *)): New.
34024 * tree-ssa-alias.c
34025 (debug (pt_solution &)): New.
34026 (debug (pt_solution *)): New.
34027 * tree-ssa-alias.h
34028 (extern debug (pt_solution &)): New.
34029 (extern debug (pt_solution *)): New.
34030 * tree-ssa-alias.c
34031 (debug (_var_map &)): New.
34032 (debug (_var_map *)): New.
34033 (debug (tree_live_info_d &)): New.
34034 (debug (tree_live_info_d *)): New.
34035 * tree-ssa-alias.h
34036 (extern debug (_var_map &)): New.
34037 (extern debug (_var_map *)): New.
34038 (extern debug (tree_live_info_d &)): New.
34039 (extern debug (tree_live_info_d *)): New.
34040
34041 2013-03-28 Jan Hubicka <jh@suse.cz>
34042
34043 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34044
34045 2013-03-28 Ian Bolton <ian.bolton@arm.com>
34046
34047 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34048 record only when desired or required.
34049
34050 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
34051
34052 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34053 *vec_extractv2di_1_rex64. Use x64 isa attribute.
34054
34055 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34056
34057 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34058 (*andsi3_compare0_uxtw): New pattern.
34059 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34060 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34061
34062 2013-03-28 Jan Hubicka <jh@suse.cz>
34063
34064 * data-streamer-in.c (streamer_read_gcov_count): New function.
34065 * gimple-streamer-out.c: Include value-prof.h.
34066 (output_gimple_stmt): Output histogram.
34067 (output_bb): Use streamer_write_gcov_count.
34068 * value-prof.c: Include data-streamer.h
34069 (dump_histogram_value): Add HIST_TYPE_MAX.
34070 (stream_out_histogram_value): New function.
34071 (stream_in_histogram_value): New function.
34072 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34073 (stream_out_histogram_value, stream_in_histogram_value): Declare.
34074 * data-streamer-out.c (streamer_write_gcov_count): New function.
34075 (streamer_write_gcov_count_stream): New function.
34076 * lto-cgraph.c (lto_output_edge): Update counter streaming.
34077 (lto_output_node): Likewise.
34078 (input_node, input_edge): Likewise.
34079 * lto-streamer-out.c (output_cfg): Update streaming.
34080 * lto-streamer-in.c (input_cfg): Likewise.
34081 * data-streamer.h (streamer_write_gcov_count,
34082 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34083 * gimple-streamer-in.c: Include value-prof.h
34084 (input_gimple_stmt): Input histograms.
34085 (input_bb): Update profile streaming.
34086
34087 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34088
34089 * genmodes.c (emit_max_int): New function.
34090 (emit_insn_modes_h): Added call to emit_max_function.
34091 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34092 Added doc.
34093 * machmode.def: Fixed comment.
34094
34095 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34096
34097 * combine.c (try_combine): Removed useless assert.
34098 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34099
34100 2013-03-28 Marek Polacek <polacek@redhat.com>
34101 Richard Biener <rguenther@suse.de>
34102
34103 PR tree-optimization/56695
34104 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34105 build signed result of a vector comparison.
34106 * tree-cfg.c (verify_gimple_comparison): Check that a result
34107 of a vector comparison has signed type.
34108
34109 2013-03-28 Richard Biener <rguenther@suse.de>
34110
34111 PR tree-optimization/37021
34112 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34113 do not restrict gaps between groups.
34114 * tree-vect-stmts.c (vectorizable_load): Properly account for
34115 a gap between groups.
34116
34117 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
34118
34119 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34120 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34121 is not enabled.
34122
34123 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
34124
34125 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34126 * doc/extend.texi (Named Address Spaces): Ditto.
34127 (Variable Attributes): Ditto.
34128
34129 2013-03-27 Kai Tietz <ktietz@redhat.com>
34130
34131 * config.build: Add support for cygwin x64 target.
34132 * config.gcc: Likewise.
34133 * config.host: Likewise.
34134 * configure.ac: Likewise
34135 * configure: Regenerated.
34136
34137 2013-03-27 Kai Tietz <ktietz@redhat.com>
34138
34139 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34140 * config/i386/t-cygwin-w64: New file.
34141 * config/i386/cygwin-w64.h: New file.
34142 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34143 and add support for x64-cygwin target.
34144 (CPP_SPEC): Likewise.
34145 (CXX_WRAP_SPEC_LIST): Undefine before define.
34146 (LIBGCJ_SONAME): Use 15 as version.
34147
34148 2013-03-27 Richard Biener <rguenther@suse.de>
34149
34150 PR tree-optimization/56716
34151 * tree-ssa-structalias.c (perform_var_substitution): Adjust
34152 dumping for ref nodes.
34153
34154 2013-03-27 Martin Jambor <mjambor@suse.cz>
34155
34156 PR tree-optimization/55334
34157 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34158 restricted pointers to arrays.
34159
34160 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
34161
34162 * Makefile.in (.SUFFIXES): Add .cc.
34163 (.c.o): Apply same recipe for implicit rule .cc.o.
34164
34165 2013-03-27 Richard Biener <rguenther@suse.de>
34166
34167 PR tree-optimization/37021
34168 * tree-vect-data-refs.c (vect_check_strided_load): Allow
34169 REALPART/IMAGPART_EXPRs around the supported refs.
34170 * tree-ssa-structalias.c (find_func_aliases): Assume that
34171 floating-point values are not used to transfer pointers.
34172
34173 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
34174
34175 * target.def (TARGET_HAS_IFUNC_P): New target hook.
34176 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34177 * doc/tm.texi: Regenerate.
34178 * targhooks.h (default_has_ifunc_p): New.
34179 * targhooks.c (default_has_ifunc_p): Ditto.
34180 * config/linux-protos.h: New file.
34181 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34182 hook for linux which disables support of indirect functions in android.
34183 * config/linux-android.c: New file.
34184 * config/t-linux-android.c: Ditto.
34185 * config.gcc: Added new object file linux-android.o.
34186 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34187 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34188 * varasm.c (do_assemble_alias): Likewise.
34189 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34190 doesn't support indirect functions.
34191 * configure: Regenerate.
34192
34193 2013-03-27 Bin Cheng <bin.cheng@arm.com>
34194
34195 PR target/56102
34196 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34197 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34198 mult-word mode.
34199
34200 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34201
34202 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34203
34204 2013-03-27 Terry Guo <terry.guo@arm.com>
34205
34206 * config/arm/arm-cores.def: Added core cortex-r7.
34207 * config/arm/arm-tune.md: Regenerated.
34208 * config/arm/arm-tables.opt: Regenerated.
34209 * doc/invoke.texi: Added entry for core cortex-r7.
34210
34211 2013-03-27 Walter Lee <walt@tilera.com>
34212
34213 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34214 double-decrement of next_scratch_regno.
34215
34216 2013-03-27 Walter Lee <walt@tilera.com>
34217
34218 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34219 input operands.
34220 (insn_v1mulus): Ditto.
34221 (insn_v2muls): Ditto.
34222
34223 2013-03-27 Walter Lee <walt@tilera.com>
34224
34225 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34226 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34227
34228 2013-03-27 Walter Lee <walt@tilera.com>
34229
34230 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34231 (*sibcall_value): Ditto.
34232
34233 2013-03-27 Walter Lee <walt@tilera.com>
34234
34235 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34236 (insn_mnz_v8qi): ... this ...
34237 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
34238 vector equivalent.
34239 (insn_v<n>mnz): Replaced by ...
34240 (insn_v1mnz): ... this ...
34241 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
34242 equivalent.
34243 (insn_mz_<mode>): Replaced by ...
34244 (insn_mz_v8qi): ... this ...
34245 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
34246 vector equivalent.
34247 (insn_v<n>mz): Replaced by ...
34248 (insn_v1mz): ... this ...
34249 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
34250 equivalent.
34251
34252 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
34253
34254 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34255
34256 2013-03-26 Roland McGrath <mcgrathr@google.com>
34257
34258 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34259 than fprintf with a non-constant, non-format string.
34260
34261 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34262
34263 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34264 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
34265 operand 0 predicate.
34266 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34267 attribute. Use general_x64nomem_operand as operand 1 predicate.
34268 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34269 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34270 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34271 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34272 (mov<mode>_insv_1): Remove expander. Merge insn with
34273 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34274 Use general_x64nomem_operand as operand 1 predicate.
34275 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34276 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34277 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34278 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34279 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
34280 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34281 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34282 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34283 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
34284 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34285 (general_x64nomem_operand): Ditto.
34286
34287 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
34288
34289 * config/rtems.opt: Add -pthread option.
34290
34291 2013-03-26 Richard Biener <rguenther@suse.de>
34292
34293 * alias.c (find_base_term): Avoid redundant and not used recursion.
34294 (base_alias_check): Get the initial base term from the caller.
34295 (true_dependence_1): Compute and pass base terms to base_alias_check.
34296 (write_dependence_p): Likewise.
34297 (may_alias_p): Likewise.
34298
34299 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
34300
34301 * config/aarch64/aarch64.c (aarch64_classify_address): Support
34302 PC-relative load in SI modes and above only.
34303
34304 2013-03-26 Xinyu Qi <xyqi@marvell.com>
34305
34306 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34307 * config/arm/iwmmxt.md (WCGR0): Update.
34308 (WCGR1, WCGR2, WCGR3): Likewise.
34309
34310 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34311
34312 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34313 Use x64 and nox64 isa attributes.
34314
34315 2013-03-26 Richard Biener <rguenther@suse.de>
34316
34317 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34318 alignment computations and rely on get_object_alignment_1
34319 for the !TYPE_P case.
34320 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34321
34322 2013-03-26 Walter Lee <walt@tilera.com>
34323
34324 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34325 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34326
34327 2013-03-25 Jeff Law <law@redhat.com>
34328
34329 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34330 check for INTEGRAL_TYPE_P that was missing due to checking in
34331 wrong version of prior patch.
34332
34333 2013-03-25 Walter Lee <walt@tilera.com>
34334
34335 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34336 TILEGX_INSN_SHUFFLEBYTES1.
34337 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34338 shufflebytes1.
34339 (tilegx_builtins): Ditto.
34340 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34341
34342 2013-03-25 Walter Lee <walt@tilera.com>
34343
34344 * config/tilegx/tilegx.md (floatsisf2): New pattern.
34345 (floatunssisf2): New pattern.
34346 (floatsidf2): New pattern.
34347 (floatunssidf2): New pattern.
34348
34349 2013-03-25 Walter Lee <walt@tilera.com>
34350
34351 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34352 tests for constraint J, K, N, P.
34353
34354 2013-03-25 Walter Lee <walt@tilera.com>
34355
34356 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34357 Use indirect/pcrel encoding.
34358 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34359 Ditto.
34360
34361 2013-03-25 Steve Ellcey <sellcey@mips.com>
34362
34363 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34364 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34365 * config/mips/mips.c (mips_option_override): Set IMADD default.
34366 * config/mips/mips.h (PTF_AVOID_IMADD): New.
34367 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34368 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34369 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34370 * doc/invoke.texi (-mimadd/-mno-imadd): New.
34371
34372 2013-03-25 Jeff Law <law@redhat.com>
34373
34374 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34375 slightly to avoid creating and folding useless trees. Simplify
34376 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34377
34378 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
34379
34380 * config/i386/i386.md (*zero_extendsidi2): Merge with
34381 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
34382 * config/i386/predicates.md (x86_64_zext_operand): Rename from
34383 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
34384 targets. Clarify comment.
34385
34386 2013-03-25 Martin Jambor <mjambor@suse.cz>
34387
34388 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34389 pass-through jump functions differently.
34390 (ipa_read_jump_function): Likewise. Also use setter functions to set
34391 up jump functions.
34392
34393 2013-03-25 Martin Jambor <mjambor@suse.cz>
34394
34395 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34396 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34397 process it.
34398 (ipa_get_indirect_edge_target): New function.
34399 (devirtualization_time_bonus): New parameter known_aggs, pass it to
34400 ipa_get_indirect_edge_target. Update all callers.
34401 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
34402 ipa_get_indirect_edge_target_1 instead of calling
34403 ipa_get_indirect_edge_target.
34404 (create_specialized_node): Pass aggvlas to
34405 ipcp_discover_new_direct_edges.
34406
34407 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34408
34409 * config/arm/arm.md (f_sels, f_seld): New types.
34410 (*cmov<mode>): New pattern.
34411 * config/arm/predicates.md (arm_vsel_comparison_operator): New
34412 predicate.
34413
34414 2013-03-25 Kai Tietz <ktietz@redhat.com>
34415
34416 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34417 POSIX-printf for mingw-hosted builds.
34418
34419 2013-03-25 Richard Biener <rguenther@suse.de>
34420
34421 PR middle-end/56694
34422 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34423 must-not-throw stmt location.
34424
34425 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34426
34427 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34428 Emit load-acquire versions when acq is true.
34429 (arm_emit_store_exclusive): Add rel parameter.
34430 Emit store-release versions when rel is true.
34431 (arm_split_compare_and_swap): Use acquire-release instructions
34432 instead.
34433 of barriers when appropriate.
34434 (arm_split_atomic_op): Likewise.
34435 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34436 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34437 (VUNSPEC_SLX): Likewise.
34438 (VUNSPEC_LDA): Likewise.
34439 (VUNSPEC_STL): Likewise.
34440 * config/arm/sync.md (atomic_load<mode>): New pattern.
34441 (atomic_store<mode>): Likewise.
34442 (arm_load_acquire_exclusive<mode>): Likewise.
34443 (arm_load_acquire_exclusivesi): Likewise.
34444 (arm_load_acquire_exclusivedi): Likewise.
34445 (arm_store_release_exclusive<mode>): Likewise.
34446
34447 2013-03-25 Catherine Moore <clm@codesourcery.com>
34448
34449 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34450 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34451 * config/mip/predicates.md (lwsp_swsp_operand,
34452 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34453 sb16_operand, db4_operand, db7_operand, ib3_operand,
34454 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34455 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34456 andi16_operand): New predicates.
34457 * config/mips/mips.md (compression): New attribute.
34458 (enabled): New attribute.
34459 (length): Consider compression in computing length.
34460 (shift_compression): New code attribute.
34461 (*add<mode>3): New operands. Record compression.
34462 (sub<mode>3): Likewise.
34463 (one_cmpl<mode>2): Likewise.
34464 (*and<mode>3): Likewise.
34465 (*ior<mode>3): Likewise.
34466 (unnamed pattern for xor): Likewise.
34467 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34468 (*<optab><mode>3): Likewise.
34469 (*mov<mode>_internal: Likewise.
34470 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34471 (mips_unsigned_immediate_p): New.
34472 (umips_lwsp_swsp_address_p): New.
34473 (m16_based_address_p): New.
34474 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34475 (mips_unsigned_immediate_p): New prototype.
34476 (lwsp_swsp_address_p): New prototype.
34477 (m16_based_address_p): New prototype.
34478 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34479 (mips_signed_immediate_p): New function.
34480 (m16_based_address_p): New function.
34481 (lwsp_swsp_address_p): New function.
34482 (mips_print_operand_punctuation): Recognize short delay slot insns
34483 for microMIPS.add<mode>3"
34484
34485 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34486
34487 PR target/56720
34488 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34489 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34490
34491 2013-03-25 Richard Biener <rguenther@suse.de>
34492
34493 PR tree-optimization/56689
34494 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34495 any edge.
34496
34497 2013-03-25 Richard Biener <rguenther@suse.de>
34498
34499 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34500 of bitmap.
34501 (memory_references): Likewise.
34502 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34503 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34504 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34505 (gather_mem_refs_in_loops): Fold into ...
34506 (analyze_memory_references): ... this. Move initialization
34507 to tree_ssa_lim_initialize.
34508 (fill_always_executed_in): Rename to ...
34509 (fill_always_executed_in_1): ... this.
34510 (fill_always_executed_in): Move contains_call computation to
34511 this new function from ...
34512 (tree_ssa_lim_initialize): ... here.
34513 (tree_ssa_lim): Call fill_always_executed_in.
34514
34515 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34516
34517 * postreload.c (reload_combine): Fix code detecting returns.
34518
34519 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34520
34521 * function.c (emit_use_return_register_into_block): On cc0 targets,
34522 do not emit the sequence between cc0 setter and user.
34523
34524 2013-03-25 Kai Tietz <ktietz@redhat.com>
34525
34526 * config/i386/predicates.md (local_symbolic_operand): Interpret
34527 dll-imported symbols as none-local.
34528
34529 2013-03-25 Richard Biener <rguenther@suse.de>
34530
34531 * tree-ssa-loop-im.c (struct depend): Remove.
34532 (struct lim_aux_data): Make depends a vec of gimples.
34533 (free_lim_aux_data): Adjust.
34534 (add_dependency): Likewise.
34535 (set_level): Likewise.
34536
34537 2013-03-25 Richard Biener <rguenther@suse.de>
34538
34539 PR middle-end/56434
34540 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34541 the pointer returned by calls with ECF_MALLOC set.
34542
34543 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34544
34545 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34546
34547 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34548
34549 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34550 using MMXMODE mode iterator.
34551 (*move<mode>_internal): Merge with *movv2sf_internal and
34552 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34553
34554 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34555
34556 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34557 (record_last_mem_set_info): Likewise.
34558
34559 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34560 of XNEWVEC followed by memset.
34561 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34562
34563 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34564
34565 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34566 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34567 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34568 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34569 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34570 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34571 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34572 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34573 BARRIER_P instead of GET_CODE.
34574
34575 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34576
34577 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34578 inaccuracy in the probing code.
34579
34580 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34581 (ctrapdi4): Likewise.
34582
34583 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34584
34585 * calls.c (expand_call): Add missing guard to code handling return
34586 of non-BLKmode structures in MSB.
34587 * function.c (expand_function_end): Likewise.
34588
34589 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34590
34591 * combine.c (try_combine): Adjust comment. Do not add the set of
34592 insn #0 if the destination indirectly is set or dies in insn #2.
34593 Tidy up code to distribute a new note.
34594
34595 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34596
34597 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34598 also for alternatives 16 and 17.
34599
34600 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34601
34602 * config/i386/sse.md (*mov<mode>_internal): Merge with
34603 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34604 Emit insn template depending on type attribute. Use
34605 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34606 movd instead of movq mnemonic for interunit moves. Rewrite mode
34607 attribute calculation. Remove unit attribute calculation.
34608 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34609 Set prefix_data16 attribute for DImode ssemov types.
34610 Use Ym instead of y for SSE-MMX conversion alternatives.
34611 Reorder operand constraints.
34612
34613 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34614
34615 * df.h (df_insn_delete): Adjust prototype.
34616 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34617 and let it decide whether mark the basic block dirty.
34618 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34619 * df-scan.c (df_insn_info_delete): New helper function, split
34620 off from df_insn_delete.
34621 (df_scan_free_bb_info): Use it.
34622 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34623 Likewise.
34624 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34625 that the insn is actually an insn and it has a non-NULL basic block.
34626 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34627
34628 2013-03-22 Richard Biener <rguenther@suse.de>
34629
34630 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34631 dep_ref members.
34632 (mem_ref_alloc): Do not allocate them.
34633 (refs_independent_p): Do not query or maintain a cache.
34634
34635 2013-03-22 Richard Biener <rguenther@suse.de>
34636
34637 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34638 (gather_mem_refs_in_loops): Do not compute it.
34639 (analyze_memory_references): Do not allocate it.
34640 (tree_ssa_lim_finalize): Do not free it.
34641 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34642
34643 2013-03-22 Richard Biener <rguenther@suse.de>
34644
34645 * is-a.h (as_a): Use gcc_checking_assert.
34646
34647 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34648
34649 * config/aarch64/aarch64.c (aarch64_print_operand): New
34650 format specifier for printing a constant in hex.
34651 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34652 format specifier for printing second operand.
34653
34654 2013-03-22 Richard Biener <rguenther@suse.de>
34655
34656 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34657 bitmaps.
34658 (gather_mem_refs_in_loops): Perform store accumulation here.
34659 (create_vop_ref_mapping_loop): Remove.
34660 (create_vop_ref_mapping): Likewise.
34661 (analyze_memory_references): Initialize refs_stored_in_loop.
34662 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34663 (record_indep_loop): Remove.
34664 (record_dep_loop): New function.
34665 (ref_indep_loop_p_1): Adjust to only walk over references
34666 in the loop, not its subloops.
34667 (ref_indep_loop_p): Rename to ...
34668 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34669 maintaining a more fine-grained cache.
34670 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34671 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34672
34673 2013-03-22 Richard Biener <rguenther@suse.de>
34674
34675 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34676 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34677 aggregate mem_ref_loc.
34678 (free_mem_ref_locs): Inline into ...
34679 (memref_free): ... this and adjust.
34680 (mem_ref_alloc): Adjust.
34681 (mem_ref_locs_alloc): Remove.
34682 (record_mem_ref_loc): Adjust.
34683 (get_all_locs_in_loop): Rewrite into ...
34684 (for_all_locs_in_loop): ... this iterator.
34685 (rewrite_mem_ref_loc): New functor.
34686 (rewrite_mem_refs): Use for_all_locs_in_loop.
34687 (sm_set_flag_if_changed): New functor.
34688 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34689 (ref_always_accessed): New functor.
34690 (ref_always_accessed_p): Use for_all_locs_in_loop.
34691
34692 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34693
34694 * tree-pass.h (PROP_gimple_lvec): New.
34695 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34696 (init_optimization_passes): Move pass_lower_vector.
34697 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34698 PROP_gimple_lvec.
34699 (pass_lower_vector): Provide PROP_gimple_lvec.
34700 (pass_lower_vector_ssa): Likewise.
34701 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34702
34703 2013-03-21 Mark Wielaard <mjw@redhat.com>
34704
34705 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34706
34707 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34708
34709 * config/i386/i386.md (*movdi_internal): Disparage slightly
34710 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34711 conversion alternatives.
34712
34713 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34714
34715 PR middle-end/48087
34716 * diagnostic.def (DK_WERROR): New kind.
34717 * diagnostic.h (werrorcount): Define.
34718 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34719 promoted to DK_ERROR, increment DK_WERROR counter instead of
34720 DK_ERROR counter.
34721 * toplev.c (toplev_main): Call print_ignored_options even if
34722 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34723 even if just werrorcount is non-zero.
34724
34725 PR debug/55608
34726 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34727 on failure.
34728 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34729 (string_cst_pool_decl): New function.
34730 (optimize_one_addr_into_implicit_ptr): New function.
34731 (resolve_addr_in_expr): Optimize DWARF location expression
34732 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34733 which doesn't live in memory, but has DW_AT_location or
34734 DW_AT_const_value, or refers to a string literal, into
34735 DW_OP_GNU_implicit_pointer.
34736 (optimize_location_into_implicit_ptr): New function.
34737 (resolve_addr): If removing DW_AT_location of a variable because
34738 it was DW_OP_addr of address of the variable, but the variable doesn't
34739 live in memory, try to emit const value attribute for the initializer.
34740
34741 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34742
34743 * tree.h (VECTOR_TYPE_P): New macro.
34744 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34745 TYPE_MODE): Use it.
34746 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34747 VEC_COND_EXPR cannot be lvalues.
34748 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34749
34750 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34751
34752 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34753 Restrict the transformation to equal modes.
34754
34755 2013-03-21 Richard Biener <rguenther@suse.de>
34756
34757 PR tree-optimization/39326
34758 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34759 (MEM_ANALYZABLE): Adjust.
34760 (record_mem_ref_loc): Move bitmap ops ...
34761 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34762 unanalyzable refs, do not record locations for it.
34763 (analyze_memory_references): Allocate ref zero as shared
34764 unanalyzable ref.
34765 (refs_independent_p): Do not test for unanalyzed mems here.
34766 (ref_indep_loop_p_1): Special-case disambiguation against
34767 the unanalyzed ref.
34768 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34769
34770 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34771
34772 * config/arm/arm-protos.h (tune_params): Add
34773 prefer_neon_for_64bits field.
34774 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34775 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34776 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34777 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34778 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34779 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34780 (arm_option_override): Handle -mneon-for-64bits new option.
34781 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34782 (prefer_neon_for_64bits): Declare new variable.
34783 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34784 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34785 (arch_enabled): Handle new arch types. Remove support for onlya8
34786 and nota8.
34787 (one_cmpldi2): Use new arch names.
34788 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34789 * config/arm/arm.opt (mneon-for-64bits): Add option.
34790 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34791 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34792 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34793 of onlya8.
34794 * doc/invoke.texi (-mneon-for-64bits): Document.
34795
34796 2013-03-21 Richard Biener <rguenther@suse.de>
34797
34798 PR tree-optimization/39326
34799 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34800 (sort_bbs_in_loop_postorder_cmp): New function.
34801 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34802
34803 2013-03-21 Richard Biener <rguenther@suse.de>
34804
34805 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34806 (vect_insert_into_interleaving_chain): Likewise.
34807 (vect_drs_dependent_in_basic_block): Inline ...
34808 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34809 split out from ...
34810 (vect_analyze_data_ref_dependence): ... here. Simplify.
34811 (vect_check_interleaving): Simplify.
34812 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34813 (vect_slp_analyze_data_ref_dependences): ... this new function.
34814 (dr_group_sort_cmp): New function.
34815 (vect_analyze_data_ref_accesses): Compute data-reference groups
34816 here instead of in vect_analyze_data_ref_dependence. Use
34817 a more efficient algorithm.
34818 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34819 vect_slp_analyze_data_ref_dependences. Call
34820 vect_analyze_data_ref_accesses earlier.
34821 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34822 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34823 (vect_slp_analyze_data_ref_dependences): New prototype.
34824
34825 2013-03-21 Richard Biener <rguenther@suse.de>
34826
34827 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34828 ref is stored in the loop.
34829 (find_refs_for_sm): Walk only over all stores.
34830 (store_motion_loop): Allocate from lim_bitmap_obstack.
34831 (store_motion): Likewise.
34832
34833 2013-03-21 Richard Biener <rguenther@suse.de>
34834
34835 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34836 Update virtual SSA form.
34837
34838 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34839
34840 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34841 * configure: Regenerate.
34842 * config.in: Regenerate.
34843 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34844 if !HAVE_LD_EH_FRAME_CIEV3.
34845
34846 2013-03-21 Richard Biener <rguenther@suse.de>
34847
34848 * tree-cfg.c (verify_expr_no_block): New function.
34849 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34850 nor DECL_VALUE_EXPR have locations with associated blocks.
34851 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34852 (clear_unused_block_pointer): Remove code dealing with
34853 blocks in DECL_DEBUG_EXPR locations.
34854
34855 2013-03-21 Richard Biener <rguenther@suse.de>
34856
34857 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34858 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34859 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34860 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34861 instead of DECL_DEBUG_EXPR_IS_FROM.
34862 * gimplify.c (gimplify_modify_expr): Likewise.
34863 * tree-cfg.c (verify_expr_location_1): Likewise.
34864 * tree-complex.c (create_one_component_var): Likewise.
34865 * tree-sra.c (create_access_replacement): Likewise.
34866 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34867 (clear_unused_block_pointer): Likewise.
34868 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34869 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34870 * var-tracking.c (var_debug_decl): Likewise.
34871 (track_expr_p): Likewise.
34872 * tree-inline.c (add_local_variables): Likewise. Set
34873 DECL_HAS_DEBUG_EXPR_P after copying it.
34874 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34875 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34876
34877 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34878
34879 PR bootstrap/56656
34880 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34881 * configure: Regenerate.
34882 * config.in: Regenerate.
34883 * config/i386/i386.md (*movdf_internal): Use
34884 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34885 movd instead of movq mnemonic for interunit moves.
34886 (*movdi_internal): Ditto.
34887
34888 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34889
34890 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34891 (abd<mode>_3): New pattern.
34892 (aba<mode>_3): New pattern.
34893 (fabd<mode>_3): New pattern.
34894
34895 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34896
34897 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34898 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34899 occurrence of REGISTER_PREFIX as its empty string.
34900
34901 2013-03-20 Jeff Law <law@redhat.com>
34902
34903 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34904 addititional equivalences for equality comparisons between an SSA_NAME
34905 and a constant where the SSA_NAME was set from a widening conversion.
34906
34907 2013-03-20 Walter Lee <walt@tilera.com>
34908
34909 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34910
34911 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34912
34913 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34914 depending on type attribute.
34915 (*movti_internal): Ditto.
34916 (*movtf_internal): Ditto.
34917 (*movxf_internal): Ditto.
34918 (*movdf_internal): Ditto.
34919 (*movsf_internal): Ditto.
34920
34921 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34922
34923 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34924 maybe_vex for sselog1 and ssemov types.
34925 (*movdi_internal): Reorder operand constraints.
34926 (*movsi_internal): Ditto. Set prefix attribute to
34927 maybe_vex for sselog1 and ssemov types.
34928 (*movtf_internal): Set prefix attribute to maybe_vex
34929 for sselog1 and ssemov types.
34930 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34931 DImode ssemov types. Reorder operand constraints.
34932 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34933 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34934 attribute for SImode ssemov types. Reorder operand constraints.
34935
34936 2013-03-20 Martin Jambor <mjambor@suse.cz>
34937
34938 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34939 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34940
34941 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34942
34943 * config/rs6000/predicates.md (indexed_address, update_address_mem
34944 update_indexed_address_mem): New predicates.
34945 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34946 attribute for load/store instructions.
34947 * config/rs6000/dfp.md (movsd_store): Likewise.
34948 (movsd_load): Likewise.
34949 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34950 (unnamed HI->DI extend define_insn): Likewise.
34951 (unnamed SI->DI extend define_insn): Likewise.
34952 (unnamed QI->SI extend define_insn): Likewise.
34953 (unnamed QI->HI extend define_insn): Likewise.
34954 (unnamed HI->SI extend define_insn): Likewise.
34955 (unnamed HI->SI extend define_insn): Likewise.
34956 (extendsfdf2_fpr): Likewise.
34957 (movsi_internal1): Likewise.
34958 (movsi_internal1_single): Likewise.
34959 (movhi_internal): Likewise.
34960 (movqi_internal): Likewise.
34961 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34962 attribute for load/store instructions.
34963 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34964 instructions.
34965 (mov<mode>_softfloat): Likewise.
34966 (mov<mode>_hardfloat32): Likewise.
34967 (mov<mode>_hardfloat64): Likewise.
34968 (mov<mode>_softfloat64): Likewise.
34969 (movdi_internal32): Likewise.
34970 (movdi_internal64): Likewise.
34971 (probe_stack_<mode>): Likewise.
34972
34973 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34974
34975 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34976 floating point, and decimal floating point to reload iterator.
34977
34978 * config/rs6000/constraints.md (wl constraint): New constraints to
34979 return FLOAT_REGS if certain options are used to reduce the number
34980 of separate patterns that exist in the file.
34981 (wx constraint): Likewise.
34982 (wz constraint): Likewise.
34983
34984 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34985 -mdebug=reg, print wg, wl, wx, and wz constraints.
34986 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34987 Initialize the reload functions for 64-bit binary/decimal floating
34988 point types.
34989 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34990 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34991 create the buffer on the stack to overcome not having a 32-bit
34992 load and store.
34993 (rs6000_emit_move): Likewise.
34994 (rs6000_secondary_memory_needed_rtx): Likewise.
34995 (rs6000_alloc_sdmode_stack_slot): Likewise.
34996 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34997 via xxlxor, just like DFmode 0.0.
34998
34999 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
35000 define as 1 if we are running on a power7 or newer.
35001 (enum r6000_reg_class_enum): Add new constraints.
35002
35003 * config/rs6000/dfp.md (movsd): Delete, combine with binary
35004 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35005 with other moves by using conditional constraits (wg). Use LFIWZX
35006 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
35007 (movsd splitter): Likewise.
35008 (movsd_hardfloat): Likewise.
35009 (movsd_softfloat): Likewise.
35010
35011 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35012 binary and decimal floating point moves.
35013 (fmove_ok): New attributes to combine binary and decimal floating
35014 point moves, and to combine power6x (mfpgpr) moves along normal
35015 floating moves.
35016 (real_value_to_target): Likewise.
35017 (f32_lr): Likewise.
35018 (f32_lm): Likewise.
35019 (f32_li): Likewise.
35020 (f32_sr): Likewise.
35021 (f32_sm): Likewise.
35022 (f32_si): Likewise.
35023 (movsf): Combine binary and decimal floating point moves. Combine
35024 power6x (mfpgpr) moves with other moves by using conditional
35025 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
35026 (mov<mode> for SFmode/SDmode); Likewise.
35027 (SFmode/SDmode splitters): Likewise.
35028 (movsf_hardfloat): Likewise.
35029 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35030 (movsf_softfloat): Likewise.
35031 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35032
35033 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35034 wx and wz constraints.
35035
35036 * config/rs6000/constraints.md (wg constraint): New constraint to
35037 return FLOAT_REGS if -mmfpgpr (power6x) was used.
35038
35039 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35040 constraint.
35041
35042 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35043 -mdebug=reg, print wg, wl, wx, and wz constraints.
35044 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35045 Initialize the reload functions for 64-bit binary/decimal floating
35046 point types.
35047 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35048 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35049 create the buffer on the stack to overcome not having a 32-bit
35050 load and store.
35051 (rs6000_emit_move): Likewise.
35052 (rs6000_secondary_memory_needed_rtx): Likewise.
35053 (rs6000_alloc_sdmode_stack_slot): Likewise.
35054 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35055 via xxlxor, just like DFmode 0.0.
35056
35057 * config/rs6000/dfp.md (movdd): Delete, combine with binary
35058 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35059 with other moves by using conditional constraits (wg). Use LFIWZX
35060 and STFIWX for loading SDmode on power7.
35061 (movdd splitters): Likewise.
35062 (movdd_hardfloat32): Likewise.
35063 (movdd_softfloat32): Likewise.
35064 (movdd_hardfloat64_mfpgpr): Likewise.
35065 (movdd_hardfloat64): Likewise.
35066 (movdd_softfloat64): Likewise.
35067
35068 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35069 64-bit binary and decimal floating point moves.
35070 (FMOVE64X): Likewise.
35071 (movdf): Combine 64-bit binary and decimal floating point moves.
35072 Combine power6x (mfpgpr) moves with other moves by using
35073 conditional constraits (wg).
35074 (mov<mode> for DFmode/DDmode): Likewise.
35075 (DFmode/DDmode splitters): Likewise.
35076 (movdf_hardfloat32): Likewise.
35077 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35078 (movdf_softfloat32): Likewise.
35079 (movdf_hardfloat64_mfpgpr): Likewise.
35080 (movdf_hardfloat64): Likewise.
35081 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35082 (movdf_softfloat64): Likewise.
35083 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35084 (reload_<mode>_load): Move to later in the file so they aren't in
35085 the middle of the floating point move insns.
35086 (reload_<mode>_store): Likewise.
35087
35088 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35089 constraint.
35090
35091 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35092 constraint if -mdebug=reg.
35093 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35094 Enable using dd reload support if needed.
35095
35096 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35097 binary and decimal floating point moves in rs6000.md.
35098 (movtd_internal): Likewise.
35099
35100 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35101 decimal floating point moves.
35102 (movtf): Likewise.
35103 (movtf_internal): Likewise.
35104 (mov<mode>_internal, TDmode/TFmode): Likewise.
35105 (movtf_softfloat): Likewise.
35106 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35107
35108 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35109 movdi_internal64, using wg constraint for move direct operations.
35110 (movdi_internal64): Likewise.
35111
35112 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35113 MODES_TIEABLE_P for selected modes. Print the numerical value of
35114 the various virtual registers. Use GPR/FPR first/last values,
35115 instead of hard coding the register numbers. Print which modes
35116 have reload functions registered.
35117 (rs6000_option_override_internal): If -mdebug=reg, trace the options
35118 settings before/after setting cpu, target and subtarget settings.
35119 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35120 and for secondary reload failures in rs6000_secondary_reload_inner.
35121 (rs6000_secondary_reload_fail): Likewise.
35122 (rs6000_secondary_reload_inner): Likewise.
35123
35124 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35125 macros for first/last GPR and FPR registers.
35126 (LAST_GPR_REGNO): Likewise.
35127 (FIRST_FPR_REGNO): Likewise.
35128 (LAST_FPR_REGNO): Likewise.
35129
35130 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35131 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35132 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35133 (vcond<mode><mode>): Likewise.
35134 (vcondu<mode><mode>): Likewise.
35135 (vector_gtu<mode>): Likewise.
35136 (vector_gte<mode>): Likewise.
35137 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35138 to prevent the compiler from converting DImode operations to TImode.
35139 (ior<mode>3): Likewise.
35140 (and<mode>3): Likewise.
35141 (one_cmpl<mode>2): Likewise.
35142 (nor<mode>3): Likewise.
35143 (andc<mode>3): Likewise.
35144
35145 * config/rs6000/constraints.md (wt constraint): New constraint
35146 that returns VSX_REGS if TImode is allowed in VSX registers.
35147
35148 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35149 constant under VSX.
35150
35151 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35152 similar to TImode, but it is restricted to being in the GPRs.
35153
35154 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35155 TImode to occupy a single VSX register.
35156
35157 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35158 -mvsx-timode for power7/power8.
35159 (power7 cpu): Likewise.
35160 (power8 cpu): Likewise.
35161
35162 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35163 sure that TFmode/TDmode take up two registers if they are ever
35164 allowed in the upper VSX registers.
35165 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35166 registers.
35167 (rs6000_init_hard_regno_mode_ok): Likewise.
35168 (rs6000_debug_reg_global): Add debugging for PTImode and wt
35169 constraint. Print if LRA is turned on.
35170 (rs6000_option_override_internal): Give an error if -mvsx-timode
35171 and VSX is not enabled.
35172 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
35173 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35174 to reg+offset addressing. Use PTImode when checking offset
35175 addresses for validity.
35176 (reg_offset_addressing_ok_p): Likewise.
35177 (rs6000_legitimate_offset_address_p): Likewise.
35178 (rs6000_legitimize_address): Likewise.
35179 (rs6000_legitimize_reload_address): Likewise.
35180 (rs6000_legitimate_address_p): Likewise.
35181 (rs6000_eliminate_indexed_memrefs): Likewise.
35182 (rs6000_emit_move): Likewise.
35183 (rs6000_secondary_reload): Likewise.
35184 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
35185 reloads to fpr registers to continue to use reg+offset addressing,
35186 but 64-bit reloads to altivec registers need reg+reg addressing.
35187 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35188 it. Treat LO_SUM like a PLUS operation.
35189 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35190 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35191 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35192 registers to share a register with a smaller sized type, since VSX
35193 puts scalars in the upper 64-bits.
35194 (print_operand): Add support for PTImode.
35195 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35196 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35197 registers, but don't have arithmetic support.
35198 (rs6000_memory_move_cost): Add test for VSX.
35199 (rs6000_opt_masks): Add -mvsx-timode.
35200
35201 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35202 for TImode.
35203 (VSs): Likewise.
35204 (VSr): Use wt constraint for TImode.
35205 (VSv): Drop TImode support.
35206 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35207 (vsx_movti_64bit): Likewise.
35208 (vsx_movti_32bit): Likewise.
35209 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35210 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35211 one '?' on the appropriate output constraint. Do not allow TImode
35212 logical operations on 32-bit systems.
35213 (vsx_ior<mode>3): Likewise.
35214 (vsx_xor<mode>3): Likewise.
35215 (vsx_one_cmpl<mode>2): Likewise.
35216 (vsx_nor<mode>3): Likewise.
35217 (vsx_andc<mode>3): Likewise.
35218 (vsx_concat_<mode>): Likewise.
35219 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35220
35221 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35222 OPTION_MASK_VSX_TIMODE.
35223 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35224 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35225
35226 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35227 (TI2 iterator): New iterator for TImode, PTImode.
35228 (wd mode attribute): Add values for vector types.
35229 (movti_string): Replace TI move operations with operations for TImode
35230 and PTImode. Add support for TImode being allowed in VSX registers.
35231 (mov<mode>_string, TImode/PTImode): Likewise.
35232 (movti_ppc64): Likewise.
35233 (mov<mode>_ppc64, TImode/PTImode): Likewise.
35234 (TI mode splitters): Likewise.
35235
35236 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35237 constraint.
35238
35239 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
35240
35241 PR tree-optimization/56355
35242 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35243 Also handle integers with undefined overflow.
35244
35245 2013-03-20 Catherine Moore <clm@codesourcery.com>
35246 Maciej W. Rozycki <macro@codesourcery.com>
35247 Tom de Vries <tom@codesourcery.com>
35248 Nathan Sidwell <nathan@codesourcery.com>
35249 Iain Sandoe <iain@codesourcery.com>
35250 Nathan Froyd <froydnj@codesourcery.com>
35251 Chao-ying Fu <fu@mips.com>
35252
35253 * doc/extend.texi: (micromips, nomicromips, nocompression):
35254 Document new function attributes.
35255 * doc/invoke.texi (minterlink-compressed, mmicromips,
35256 m14k, m14ke, m14kec): Document new options.
35257 (minterlink-mips16): Update documentation.
35258 * doc/md.texi (ZC, ZD): Document new constraints.
35259 * configure.ac (gcc_cv_as_micromips): Check if linker
35260 supports the .set micromips directive.
35261 * configure: Regenerate.
35262 * config.in: Regenerate.
35263 * config/mips/mips-tables.opt: Regenerate.
35264 * config/mips/micromips.md: New file.
35265 * constraints.md (ZC, ZD): New constraints.
35266 * config/mips/predicates.md (movep_src_register): New predicate.
35267 (movep_src_operand): New predicate.
35268 (non_volatile_mem_operand): New predicate.
35269 * config/mips/mips.md (multimem): New type.
35270 (length): Differentiate between 17-bit and 18-bit branch offsets.
35271 (MOVEP1, MOVEP2): New mode iterator.
35272 (mov_<load>l): Use ZC constraint.
35273 (mov_<load>r): Likewise.
35274 (mov_<store>l): Likewise.
35275 (mov_<store>r): Likewise.
35276 (*branch_equality<mode>_inverted): Add microMIPS support.
35277 (*branch_equality<mode>): Likewise.
35278 (*jump_absolute): Likewise.
35279 (indirect_jump_<mode>): Likewise.
35280 (tablejump_<mode>): Likewise.
35281 (<optab>_internal): Likewise.
35282 (sibcall_internal): Likewise.
35283 (sibcall_value_internal): Likewise.
35284 (prefetch): Use constraint ZD.
35285 * config/mips/mips.opt (minterlink-compressed): New option.
35286 (minterlink-mips16): Now an alias for minterlink-compressed.
35287 (mmicromips): New option.
35288 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35289 (compare_and_swap_12): Likewise.
35290 (sync_add<mode>): Likewise.
35291 (sync_<optab>_12): Likewise.
35292 (sync_old_<optab>_12): Likewise.
35293 (sync_new_<optab>_12): Likewise.
35294 (sync_nand_12): Likewise.
35295 (sync_old_nand_12): Likewise.
35296 (sync_new_nand_12): Likewise.
35297 (sync_sub<mode>): Likewise.
35298 (sync_old_add<mode>): Likewise.
35299 (sync_old_sub<mode>): Likewise.
35300 (sync_new_add<mode>): Likewise.
35301 (sync_new_sub<mode>): Likewise.
35302 (sync_<optab><mode>): Likewise.
35303 (sync_old_<optab><mode>): Likewise.
35304 (sync_new_<optab><mode>): Likewise.
35305 (sync_nand<mode>): Likewise.
35306 (sync_old_nand<mode>): Likewise.
35307 (sync_new_nand<mode>): Likewise.
35308 (sync_lock_test_and_set<mode>): Likewise.
35309 (test_and_set_12): Likewise.
35310 (atomic_compare_and_swap<mode>): Likewise.
35311 (atomic_exchange<mode>_llsc): Likewise.
35312 (atomic_fetch_add<mode>_llsc): Likewise.
35313 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35314 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35315 (umips_save_restore_pattern_p): Likewise.
35316 (umips_load_store_pair_p): Likewise.
35317 (umips_output_load_store_pair): Likewise.
35318 (umips_movep_target_p): Likewise.
35319 (umips_12bit_offset_address_p): Likewise.
35320 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35321 (mips_base_mips16): Rename this...
35322 (mips_base_compression_flags): ...to this. Update all uses.
35323 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35324 (mips_mips16_decl_p): Delete.
35325 (mips_nomips16_decl_p): Delete.
35326 (mips_get_compress_on_flags): New function.
35327 (mips_get_compress_off_flags): New function.
35328 (mips_get_compress_mode): New function.
35329 (mips_get_compress_on_name): New function.
35330 (mips_get_compress_off_name): New function.
35331 (mips_insert_attributes): Support multiple compression types.
35332 (mips_merge_decl_attributes): Likewise.
35333 (umips_12bit_offset_address_p): New function.
35334 (mips_start_function_definition): Emit .set micromips directive.
35335 (mips_call_may_need_jalx_p): New function.
35336 (mips_function_ok_for_sibcall): Add microMIPS support.
35337 (mips_print_operand_punctuation): Support short delay slots and
35338 compact jumps.
35339 (umips_swm_mask, umips_swm_encoding): New.
35340 (umips_build_save_restore): New function.
35341 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35342 (was_mips16_p): Remove.
35343 (old_compression_mode): New.
35344 (mips_set_compression_mode): New function.
35345 (mips_set_current_function): Add microMIPS support.
35346 (mips_option_override): Likewise.
35347 (umips_save_restore_pattern_p): New function.
35348 (umips_output_save_restore): New function.
35349 (umips_load_store_pair_p_1): New function.
35350 (umips_load_store_pair_p): New function.
35351 (umips_output_load_store_pair_1): New function.
35352 (umips_output_load_store_pair): New function.
35353 (umips_movep_target_p) New function.
35354 (mips_prepare_pch_save): Add microMIPS support.
35355 * config/mips/mips.h (TARGET_COMPRESSION): New.
35356 (TARGET_CPU_CPP_BUILTINS): Update macro
35357 to use new compression flags and to support microMIPS.
35358 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35359 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35360 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35361 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35362 (ASM_SPEC): Support mmicromips and mno-micromips.
35363 (M16STORE_REG_P): New macro.
35364 (MIPS_CALL): Support TARGET_MICROMIPS.
35365 (MICROMIPS_J): New macro.
35366 (mips_base_mips16): Rename this...
35367 (mips_base_compression_flags): ...to this.
35368 (UMIPS_12BIT_OFFSET_P): New macro.
35369 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35370 (MULTILIB_DIRNAMES): Likewise.
35371 2013-03-20 Richard Biener <rguenther@suse.de>
35372
35373 PR tree-optimization/56661
35374 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35375 the result does not have to be distinct.
35376
35377 2013-03-20 Richard Biener <rguenther@suse.de>
35378
35379 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35380 remap_gimple_op_r.
35381
35382 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35383 Steven Bosscher <steven@gcc.gnu.org>
35384
35385 PR rtl-optimization/56605
35386 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35387
35388 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35389
35390 PR bootstrap/56656
35391 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35392 that require movd instead of movq.
35393
35394 2013-03-20 Richard Biener <rguenther@suse.de>
35395
35396 * tree-ssa-structalias.c (struct variable_info): Add pointer
35397 to the first field of an aggregate with sub-vars. Make
35398 this and the pointer to the next subfield its ID.
35399 (vi_next): New function.
35400 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35401 storedanything_id, integer_id): Increment by one.
35402 (new_var_info, get_call_vi, lookup_call_clobber_vi,
35403 get_call_clobber_vi): Adjust.
35404 (solution_set_expand): Simplify and speedup.
35405 (solution_set_add): Inline into ...
35406 (set_union_with_increment): ... this. Adjust accordingly.
35407 (do_sd_constraint): Likewise.
35408 (do_ds_constraint): Likewise.
35409 (do_complex_constraint): Simplify.
35410 (build_pred_graph): Adjust.
35411 (solve_graph): Likewise. Simplify and speedup.
35412 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35413 get_constraint_for_component_ref, get_constraint_for_1,
35414 first_vi_for_offset, first_or_preceding_vi_for_offset,
35415 create_function_info_for, create_variable_info_for_1,
35416 create_variable_info_for, intra_create_variable_infos): Adjust.
35417 (init_base_vars): Push NULL for ID zero.
35418 (compute_points_to_sets): Adjust.
35419
35420 2013-03-20 Richard Biener <rguenther@suse.de>
35421
35422 * cfgloop.c (verify_loop_structure): Streamline and avoid
35423 ICEing on corrupt loop tree.
35424 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35425 loop tree.
35426
35427 2013-03-20 Richard Biener <rguenther@suse.de>
35428
35429 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35430 check whether an SSA update is needed.
35431
35432 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
35433
35434 * config/mips/constraints.md (T): Rename to...
35435 (Yf): ...this.
35436 (U): Rename to...
35437 (Yd): ...this.
35438 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35439 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35440
35441 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35442
35443 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35444 (*subsi3_carryin_uxtw): Likewise.
35445
35446 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35447
35448 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35449 (*rorsi3_insn_uxtw): Likewise.
35450
35451 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35452
35453 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35454 (*extrsi5_insn_uxtw): Likewise.
35455
35456 2013-03-19 Richard Biener <rguenther@suse.de>
35457
35458 PR tree-optimization/56273
35459 * passes.c (init_optimization_passes): Move second VRP after DOM.
35460
35461 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35462
35463 * config/i386/i386.md (*movti_internal): Merge from
35464 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35465 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35466 nox64 isa attributes.
35467
35468 2013-03-18 Richard Biener <rguenther@suse.de>
35469
35470 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35471 (unite): Likewise.
35472 (merge_node_constraints): Likewise.
35473 (build_succ_graph): Likewise.
35474 (valid_graph_edge): Inline into single caller.
35475 (unify_nodes): Likewise. Use bitmap_set_bit return value
35476 and cache varinfo.
35477 (scc_visit): Fix formatting and variable use.
35478 (do_sd_constraint): Use gcc_checking_assert.
35479 (do_ds_constraint): Likewise.
35480 (do_complex_constraint): Likewise.
35481 (condense_visit): Likewise. Cleanup.
35482 (dump_pred_graph): New function.
35483 (perform_var_substitution): Dump the pred-graph before
35484 variable substitution.
35485 (find_equivalent_node): Use gcc_checking_assert.
35486 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35487
35488 2013-03-18 Richard Biener <rguenther@suse.de>
35489
35490 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35491 Remove cond_expr_stmt_list argument and do not gimplify the
35492 built expression.
35493 (vect_loop_versioning): Adjust.
35494 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35495 Cleanup to use less temporaries.
35496 (vect_create_data_ref_ptr): Cleanup.
35497
35498 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35499
35500 PR tree-optimization/56635
35501 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35502 require types_compatible_p types.
35503
35504 2013-03-18 Nick Clifton <nickc@redhat.com>
35505
35506 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35507 spurious backslash.
35508
35509 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35510 Add missing line to comment describing function.
35511
35512 2013-03-18 Richard Biener <rguenther@suse.de>
35513
35514 PR tree-optimization/56210
35515 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35516 Handle string / character search functions.
35517 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35518
35519 2013-03-18 Richard Biener <rguenther@suse.de>
35520
35521 PR middle-end/56483
35522 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35523 and implement properly.
35524 * gimple.h (gimple_cond_single_var_p): Remove.
35525
35526 2013-03-18 Richard Biener <rguenther@suse.de>
35527
35528 * tree-data-ref.h (find_data_references_in_loop): Declare.
35529 * tree-data-ref.c (get_references_in_stmt): Use a stack
35530 vector pre-allocated in the callers.
35531 (find_data_references_in_stmt): Adjust.
35532 (graphite_find_data_references_in_stmt): Likewise.
35533 (create_rdg_vertices): Likewise.
35534 (find_data_references_in_loop): Export.
35535 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35536 Compute dependences here...
35537 (vect_analyze_data_refs): ...not here. When we encounter
35538 a non-vectorizable data reference in basic-block vectorization
35539 truncate the data reference vector. Do not bother to
35540 fixup data-dependence information for gather loads.
35541 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35542 of data references, as reported.
35543
35544 2013-03-18 Richard Biener <rguenther@suse.de>
35545
35546 PR tree-optimization/3713
35547 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35548 has_constants and expr.
35549 (stmt_has_constants): Properly valueize SSA names when deciding
35550 whether the stmt has constants.
35551
35552 2013-03-18 Richard Biener <rguenther@suse.de>
35553
35554 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35555 whole function when there is nothing to do.
35556 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35557 * tree-vectorizer.c (vectorize_loops): Update virtual and
35558 loop-closed SSA once.
35559 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35560
35561 2013-03-18 Richard Biener <rguenther@suse.de>
35562
35563 PR middle-end/56113
35564 * domwalk.c (bb_postorder): New global static.
35565 (cmp_bb_postorder): New function.
35566 (walk_dominator_tree): Replace scheme imposing an order for
35567 visiting dominator sons by one sorting them at the time they
35568 are pushed on the stack.
35569
35570 2013-03-18 Richard Biener <rguenther@suse.de>
35571
35572 PR tree-optimization/39326
35573 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35574 (struct mem_ref): Replace mem member with ao_ref typed member.
35575 (MEM_ANALYZABLE): Adjust.
35576 (memref_eq): Likewise.
35577 (mem_ref_alloc): Likewise.
35578 (gather_mem_refs_stmt): Likewise.
35579 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35580 (execute_sm_if_changed_flag_set): Adjust.
35581 (execute_sm): Likewise.
35582 (ref_always_accessed_p): Likewise.
35583 (refs_independent_p): Likewise.
35584 (can_sm_ref_p): Likewise.
35585
35586 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35587
35588 PR c/56566
35589 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35590 return 1 even for !unsignedp.
35591
35592 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35593
35594 * config/i386/i386.md (isa): Add x64 and nox64.
35595 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35596 (*pushtf): Enable *roF alternative for x64 isa only.
35597 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35598 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35599 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35600 (*movtf_internal): Merge from *movtf_internal_rex64 and
35601 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35602 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35603 nox64 isa attributes.
35604 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35605 nox64 isa attributes.
35606 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35607
35608 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35609
35610 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35611
35612 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35613
35614 PR target/56640
35615 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35616 class names. Remove trailing comma after "ALL_REGS".
35617
35618 2013-03-16 Jan Hubicka <jh@suse.cz>
35619
35620 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35621 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35622 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35623 of cgraph_get_create_node.
35624 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35625
35626 2013-03-16 Jason Merrill <jason@redhat.com>
35627
35628 PR debug/49090
35629 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35630 with DW_AT_default_value.
35631
35632 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35633
35634 * BASE-VER: Set to 4.9.0.
35635
35636 2013-03-14 Andi Kleen <ak@linux.intel.com>
35637
35638 PR target/56619
35639 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35640 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35641 Document _x* TSX intrinsics.
35642
35643 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35644 David Holsgrove <david.holsgrove@xilinx.com>
35645
35646 * configure.ac: Add MicroBlaze TLS support detection.
35647 * configure: Regenerate.
35648 * config/microblaze/microblaze-protos.h
35649 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35650 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35651 * config/microblaze/microblaze.c (microblaze_address_type): Add
35652 ADDRESS_TLS and tls_reloc address types.
35653 (microblaze_address_info): Add tls_reloc.
35654 (TARGET_HAVE_TLS): Define.
35655 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35656 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35657 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35658 load_tls_operand, microblaze_call_tls_get_addr,
35659 microblaze_legitimize_tls_address): New functions.
35660 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35661 (get_base_reg): Use microblaze_tls_symbol_p.
35662 (microblaze_classify_address): Handle TLS.
35663 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35664 label_mentioned_p and microblaze_tls_referenced_p.
35665 (microblaze_legitimize_address): Handle TLS.
35666 (microblaze_address_insns): Handle ADDRESS_TLS.
35667 (pic_address_needs_scratch): Handle TLS.
35668 (print_operand_address): Handle TLS.
35669 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35670 (microblaze_expand_move): Handle TLS.
35671 (microblaze_legitimate_constant_p): Check
35672 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35673 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35674 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35675 (PIC_OFFSET_TABLE_REGNUM): Set.
35676 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35677 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35678 (addsi3, movsi_internal2, movdf_internal): Update constraints
35679 * config/microblaze/predicates.md (arith_plus_operand): Define
35680 (move_operand): Redefine as move_src_operand,
35681 check microblaze_tls_referenced_p.
35682
35683 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35684
35685 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35686 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35687
35688 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35689
35690 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35691 CC mode for AND.
35692
35693 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35694
35695 PR tree-optimization/53265
35696 * common.opt (Waggressive-loop-optimizations): New option.
35697 * tree-ssa-loop-niter.c: Include tree-pass.h.
35698 (do_warn_aggressive_loop_optimizations): New function.
35699 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35700 if number_of_latch_executions returned constant.
35701 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35702 early. If number_of_latch_executions returned constant, set
35703 nb_iterations_upper_bound back to it.
35704 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35705 field.
35706 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35707 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35708
35709 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35710 (MULTILIB_OSDIRNAMES): Set.
35711 * genmultilib: If defaultosdirname doesn't start with :: , set
35712 defaultosdirname2 instead, clear it and emit two . multilib_raw
35713 entries instead of just one.
35714
35715 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35716
35717 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35718 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35719 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35720 (SUBTARGET_OVERRIDE_OPTIONS): New.
35721
35722 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35723
35724 PR target/49880
35725 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35726 (musermode): Convert to Var(TARGET_USERMODE).
35727 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35728 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35729 * config/sh/sh.c (sh_option_override): Use
35730 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35731 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35732 condition.
35733 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35734 TARGET_SH4.
35735 (udivsi3_i4_single, divsi3_i4_single): Use
35736 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35737
35738 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35739
35740 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35741 default setting.
35742
35743 2013-03-13 Richard Biener <rguenther@suse.de>
35744
35745 PR tree-optimization/56608
35746 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35747 calls when vectorizing basic-blocks.
35748
35749 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35750
35751 PR plugins/45078
35752 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35753 tm_file.
35754
35755 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35756
35757 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35758
35759 2013-03-11 Jan Hubicka <jh@suse.cz>
35760
35761 PR lto/56557
35762 * lto-streamer-out.c (output_symbol_p): Skip references from
35763 constructors of external variables.
35764
35765 2013-03-11 Jan Hubicka <jh@suse.cz>
35766
35767 PR middle-end/56571
35768 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35769 from pseudos.
35770 * emit-rtl.c (verify_rtx_sharing): Likewise.
35771 (copy_insn_1): Likewise.
35772 * rtl.c (copy_rtx): Likewise.
35773
35774 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35775
35776 PR target/56591
35777 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35778 output_operand_lossage message.
35779
35780 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35781
35782 PR target/56470
35783 * arm.c (shift_op): Validate RTL pattern on the fly.
35784 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35785 the RTL.
35786
35787 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35788
35789 PR target/56347
35790 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35791 new call patterns that clobber %fr12.
35792 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35793 split and postreload patterns.
35794 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35795 registers %fr12 and %fr12R as call used.
35796
35797 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35798
35799 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35800 (canon_address, record_store, replace_read, check_mem_read_rtx,
35801 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35802 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35803 rest_of_handle_dse): Likewise.
35804
35805 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35806
35807 PR middle-end/56524
35808 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35809 Add base_optabs.
35810 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35811 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35812 (save_optabs_if_changed): Replace with...
35813 (init_tree_optimization_optabs): ...this.
35814 * optabs.c (save_optabs_if_changed): Rename to...
35815 (init_tree_optimization_optabs): ...this. Take the optimization node
35816 as argument. Do nothing if the base optabs are already correct.
35817 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35818 to recompute optabs.
35819 * function.h (function): Remove optabs field.
35820 * function.c (invoke_set_current_function_hook): Call
35821 init_tree_optimization_optabs. Use the result to initialize
35822 this_fn_optabs.
35823
35824 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35825
35826 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35827 if GTMA_HAS_NO_INSTRUMENTATION.
35828 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35829 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35830 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35831 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35832 GTMA_HAS_NO_INSTRUMENTATION.
35833
35834 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35835
35836 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35837 libasan_preinit.o.
35838
35839 2013-03-08 Marek Polacek <polacek@redhat.com>
35840 Jakub Jelinek <jakub@redhat.com>
35841
35842 PR tree-optimization/56478
35843 * predict.c (is_comparison_with_loop_invariant_p): Change the
35844 type of loop_step to tree.
35845 (predict_loops): Adjust.
35846 (predict_iv_comparison): Perform the computations on double_ints.
35847
35848 2013-03-08 Richard Biener <rguenther@suse.de>
35849
35850 PR tree-optimization/56570
35851 * tree-cfg.c (verify_expr_location_1): Verify locations for
35852 DECL_DEBUG_EXPR.
35853 * tree-sra.c (create_access_replacement): Strip locations
35854 from DECL_DEBUG_EXPRs.
35855
35856 2013-03-08 Richard Biener <rguenther@suse.de>
35857
35858 * tree-inline.c (expand_call_inline): Do not associate
35859 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35860 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35861
35862 2013-03-08 Richard Biener <rguenther@suse.de>
35863
35864 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35865 or block changes with -Og. Fix for location / block encoding
35866 changes and PHI arguments with locations.
35867
35868 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35869
35870 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35871 for all counters.
35872 (struct output_info): Likewise.
35873 (register_overhead): Remove bad gcc_assert.
35874 (bitmap_find_bit): If there is only a single bitmap element, do not
35875 count a miss as a search.
35876 (print_statistics): Update for counter type changes.
35877 (dump_bitmap_statistics): Likewise. Print headers such that they
35878 are properly lined up with the printed counters.
35879
35880 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35881
35882 PR tree-optimization/56559
35883 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35884 check that it has only a single use.
35885
35886 2013-03-07 Richard Biener <rguenther@suse.de>
35887
35888 * doc/invoke.texi (fwhole-program): Discourage use in combination
35889 with -flto.
35890
35891 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35892
35893 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35894
35895 PR tree-optimization/56539
35896 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35897 instead of GSI_CONTINUE_LINKING as last argument to
35898 force_gimple_operand_gsi. Adjust function comment.
35899
35900 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35901 aarch64-cores.def.
35902
35903 PR middle-end/56548
35904 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35905 promoted mode, convert the result back to the original mode.
35906
35907 2013-03-06 Richard Biener <rguenther@suse.de>
35908
35909 PR middle-end/56294
35910 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35911 (insert_updated_phi_nodes_compare_uids): New function.
35912 (update_ssa): Sort symbols_to_rename after UID before
35913 traversing it to insert PHI nodes.
35914
35915 2013-03-06 Richard Biener <rguenther@suse.de>
35916
35917 PR middle-end/50494
35918 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35919 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35920
35921 Revert
35922 2013-02-13 Richard Biener <rguenther@suse.de>
35923
35924 PR lto/50494
35925 * varasm.c (output_constant_def_1): Get the decl representing
35926 the constant as argument.
35927 (output_constant_def): Wrap output_constant_def_1.
35928 (make_decl_rtl): Use output_constant_def_1 with the decl
35929 representing the constant.
35930 (build_constant_desc): Optionally re-use a decl already
35931 representing the constant.
35932 (tree_output_constant_def): Adjust.
35933
35934 2013-03-06 Joey Ye <joey.ye@arm.com>
35935
35936 PR lto/50293
35937 * gcc.c (convert_white_space): New function.
35938 (main): Handles white space in function name.
35939
35940 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35941
35942 PR target/56529
35943 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35944 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35945 to SH_DIV_CALL_TABLE for TARGET_SH2.
35946 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35947 list.
35948 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35949 call-table options.
35950
35951 2013-03-05 Sterling Augustine <saugustine@google.com>
35952 Cary Coutant <ccoutant@google.com>
35953
35954 PR debug/55364
35955 * dwarf2out.c (resolve_addr): Don't call
35956 remove_loc_list_addr_table_entries a second time for the same
35957 expression.
35958
35959 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35960
35961 PR debug/56510
35962 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35963 (avoid_complex_debug_insns): New function.
35964 (expand_debug_locations): Call it.
35965
35966 PR rtl-optimization/56484
35967 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35968 lifetimes of hard registers on small register class machines.
35969
35970 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35971
35972 * config/microblaze/microblaze-protos.h: Rename
35973 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35974 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35975 fast_interrupt.
35976 (microblaze_fast_interrupt_function_p): New function.
35977 (microblaze_is_interrupt_handler): Rename to
35978 microblaze_is_interrupt_variant and add fast_interrupt check.
35979 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35980 (save_restore_insns): Likewise.
35981 (compute_frame_size): Likewise.
35982 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35983 (microblaze_globalize_label): Likewise.
35984 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35985 * config/microblaze/microblaze.md: Use wrapper
35986 microblaze_is_interrupt_variant.
35987
35988 2013-03-05 Kai Tietz <ktietz@redhat.com>
35989
35990 * sdbout.c (sdbout_one_type): Switch to current function's section
35991 supporting cold/hot.
35992
35993 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35994
35995 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35996 -mxl-reorder.
35997
35998 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35999
36000 PR middle-end/56461
36001 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
36002 if VALGRIND_GET_VBITS is defined, temporarily make object
36003 memory all defined, and restore previous valgrind addressability
36004 and definability afterwards. Free this_object at the end.
36005
36006 PR middle-end/56461
36007 * lra.c (lra): Call lra_clear_live_ranges if live_p,
36008 right before calling lra_create_live_ranges, also call it
36009 when clearing live_p. Only call lra_clear_live_ranges
36010 at the end if live_p.
36011
36012 PR middle-end/56461
36013 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36014
36015 2013-03-05 Richard Biener <rguenther@suse.de>
36016
36017 PR tree-optimization/56521
36018 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36019 value-id.
36020
36021 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
36022
36023 PR c++/55135
36024 * except.h (remove_unreachable_eh_regions): New prototype.
36025 * except.c (remove_eh_handler_splicer): New function, split out
36026 of remove_eh_handler.
36027 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
36028 warning about running it on many EH regions one at a time.
36029 (remove_unreachable_eh_regions_worker): New function, walk the
36030 EH tree in depth-first order and remove non-marked regions.
36031 (remove_unreachable_eh_regions): New function.
36032 * tree-eh.c (mark_reachable_handlers): New function, split out
36033 from remove_unreachable_handlers.
36034 (remove_unreachable_handlers): Use mark_reachable_handlers and
36035 remove_unreachable_eh_regions.
36036 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36037 and remove_unreachable_eh_regions.
36038
36039 2013-03-05 Richard Biener <rguenther@suse.de>
36040
36041 PR middle-end/56525
36042 * loop-init.c (fix_loop_structure): Remove loops in two stages,
36043 not freeing them until the end.
36044
36045 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36046
36047 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36048
36049 2013-03-05 Richard Biener <rguenther@suse.de>
36050
36051 PR tree-optimization/56270
36052 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36053 of loads after scheduling an SLP instance.
36054
36055 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36056
36057 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36058 tic6x.exp.
36059 (check_gcc_parallelize): Run guality.exp as a separate job from
36060 vect.exp with unsorted.exp and $(dg_target_exps) separately from
36061 struct-layout-1.exp with stackalign.exp.
36062
36063 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36064
36065 PR middle-end/56461
36066 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36067 load_index sbitmap even if some bit in it isn't set.
36068
36069 PR middle-end/56461
36070 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36071 (discover_iteration_bound_by_body_walk): Change queues to
36072 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
36073 spelling in comment. Call safe_push on queues[bound_index] directly.
36074 Release queues[queue_index] in every iteration unconditionally.
36075 Release bounds vector.
36076
36077 PR middle-end/56461
36078 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36079 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36080 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36081 inner_phis vector.
36082
36083 2013-03-05 Richard Biener <rguenther@suse.de>
36084
36085 PR lto/56515
36086 * tree-inline.c (remap_blocks_to_null): New function.
36087 (expand_call_inline): When expanding a call stmt without
36088 an associated block inline remap all callee blocks to NULL.
36089
36090 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36091
36092 PR rtl-optimization/56494
36093 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36094 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36095 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36096
36097 PR middle-end/56461
36098 * sel-sched-ir.c (free_sched_pools): Release
36099 succs_info_pool.stack[succs_info_pool.max_top] vectors too
36100 if succs_info_pool.max_top isn't -1.
36101
36102 PR bootstrap/56509
36103 * opts.c (opts_obstack, opts_concat): Moved to...
36104 * opts-common.c (opts_obstack, opts_concat): ... here.
36105
36106 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36107
36108 PR middle-end/56461
36109 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36110
36111 2013-03-04 Martin Jambor <mjambor@suse.cz>
36112
36113 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36114 all appropriate places.
36115
36116 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
36117
36118 PR tree-optimization/56424
36119 * ipa-split.c (split_function): Do not set the RSO flag if result is
36120 not by reference and its type is a register type.
36121
36122 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
36123
36124 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36125 (microblaze_legitimate_pic_operand): Likewise
36126 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36127 new function microblaze_legitimate_pic_operand
36128 * config/microblaze/microblaze-protos.h
36129 (microblaze_legitimate_pic_operand): Declare.
36130
36131 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36132
36133 * config/microblaze/predicates.md (call_insn_simple_operand):
36134 New predicate for supported rtx code types.
36135 * config/microblaze/microblaze.md (call_internal1): Use
36136 call_insn_simple_operand predicate.
36137
36138 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36139
36140 PR middle-end/56461
36141 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36142 partitions.ordered_remove.
36143
36144 PR middle-end/56461
36145 * tree-vect-stmts.c (vectorizable_conversion): Don't call
36146 vec_oprnds0.create (1) for modifier == NONE.
36147
36148 PR middle-end/56461
36149 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36150 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36151 vec_oprnds1 right before pushing anything to it for
36152 scalar_shift_arg.
36153
36154 PR middle-end/56461
36155 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36156 set nbbs to 0 instead of having separate code path.
36157 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36158 instead of false as last argument if returning NULL.
36159
36160 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
36161
36162 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36163 the attribute is now called "target" instead of "option".
36164 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36165 * doc/tm.texi.in (Target Attributes): Likewise document the correct
36166 attribute/pragma name for TARGET_OPTION_VALID_P and
36167 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
36168 * doc/tm.texi: Regenerated.
36169
36170 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
36171
36172 * config/microblaze/microblaze.c:
36173 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36174 * config/microblaze/microblaze.h: Add -mxl-reorder to
36175 DRIVER_SELF_SPECS.
36176 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36177 instructions emitted if TARGET_REORDER.
36178 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36179 or 0 for -m/-mno case, but initialises as 2 to detect default use case
36180 separately.
36181
36182 2013-03-01 Xinliang David Li <davidxl@google.com>
36183
36184 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36185 walk length.
36186
36187 2013-03-01 Jakub Jelinek <jakub@redhat.com>
36188
36189 PR middle-end/56461
36190 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36191 vector even when returning true. Fix up function comment formatting.
36192
36193 PR middle-end/56461
36194 * ira-build.c (ira_loop_nodes_count): New variable.
36195 (create_loop_tree_nodes): Initialize it.
36196 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36197
36198 PR middle-end/56461
36199 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36200 method on dr_chain and result_chain.
36201 * tree-vect-stmts.c (vectorizable_store): Only call
36202 result_chain.create if j == 0.
36203
36204 PR middle-end/56461
36205 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36206 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36207 before overwriting it.
36208
36209 2013-03-01 Tobias Burnus <burnus@net-b.de>
36210
36211 * doc/extended.texi (C Extensions): Change order in @menu
36212 to match @node.
36213 (Other MIPS Built-in Functions): Move last MIPS entry before
36214 "picoChip Built-in Functions".
36215 (SH Built-in Functions): Move after RX Built-in Functions.
36216 * doc/gcc.texi (Introduction): Change order in @menu
36217 to match @node.
36218 * doc/md.texi (Constraints): Ditto.
36219 * gty.texi (Type Information): Ditto.
36220 (User-provided marking routines for template types): Make
36221 subsection.
36222 * doc/invoke.texi (AArch64 Options): Move before
36223 "Adapteva Epiphany Options".
36224
36225 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
36226 Jakub Jelinek <jakub@redhat.com>
36227
36228 PR sanitizer/56454
36229 * asan.c (gate_asan): Lookup no_sanitize_address instead of
36230 no_address_safety_analysis attribute.
36231 * doc/extend.texi (no_address_safety_attribute): Rename to
36232 no_sanitize_address attribute, mention no_address_safety_analysis
36233 attribute as deprecated alias.
36234
36235 2013-02-28 Jakub Jelinek <jakub@redhat.com>
36236
36237 PR middle-end/56461
36238 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36239 type to vec<vec<tree> > *.
36240 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
36241 to be vec<tree> instead of vec<tree> *, set vec_defs
36242 to vNULL and call vec_defs.create (number_of_vects), adjust other
36243 uses of vec_defs.
36244 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36245 vectorizable_condition): Adjust vect_get_slp_defs callers.
36246
36247 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36248
36249 * config/aarch64/aarch64.c
36250 (aarch64_float_const_representable): Remove unused variable.
36251
36252 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36253
36254 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36255
36256 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36257
36258 * config/aarch64/aarch64-builtins.c
36259 (aarch64_init_simd_builtins): Make static.
36260
36261 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36262
36263 * config/aarch64/aarch64.c
36264 (aarch64_simd_make_constant): Make static.
36265
36266 2013-02-28 Martin Jambor <mjambor@suse.cz>
36267
36268 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36269 with no initialization to the RHS of debug statements.
36270
36271 2013-02-28 Martin Jambor <mjambor@suse.cz>
36272
36273 PR tree-optimization/56294
36274 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36275 Adjust dumping.
36276 (get_access_replacement): Do not call create_access_replacement.
36277 Assert a replacement exists.
36278 (get_repl_default_def_ssa_name): Create the replacement declaration
36279 itself.
36280
36281 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36282
36283 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36284 final_end_function.
36285
36286 2013-02-28 Marek Polacek <polacek@redhat.com>
36287
36288 PR rtl-optimization/56466
36289 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36290 if we're changing a loop.
36291 (peel_loops_completely): Likewise.
36292
36293 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
36294
36295 PR c++/55813
36296 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36297
36298 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36299
36300 PR target/56445
36301 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36302 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36303 INTX_FTYPE_FX, FX_FTYPE_INTX.
36304 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36305
36306 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36307
36308 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36309 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36310 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36311 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36312 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36313 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36314 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36315 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36316 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36317 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36318 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36319 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36320 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36321 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36322 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36323 (avrxmega6): Increase max flash segments from 5 to 6.
36324 * config/avr/t-multilib: Regenerate.
36325 * config/avr/avr-tables.opt: Regenerate.
36326 * doc/avr-mmcu.texi: Regenerate.
36327
36328 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36329
36330 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36331 (avr_device_to_arch): Rename to avr_device_to_ld.
36332 (avr_device_to_as): New prototype.
36333 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36334 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36335 * config/avr/driver-avr.c (avr_device_to_as): New.
36336 (avr_device_to_arch): Rename to avr_device_to_ld.
36337
36338 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36339
36340 PR middle-end/56461
36341 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36342 method on dr_chain and result_chain.
36343
36344 PR middle-end/56461
36345 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36346 pointer_set_destroy on not_executed_last_iteration.
36347
36348 PR middle-end/56461
36349 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36350
36351 PR middle-end/56461
36352 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36353 FOR_EACH_DEFINED_FUNCTION when freeing state.
36354
36355 PR middle-end/56461
36356 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36357 pool_free.
36358 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36359 overwriting it.
36360
36361 PR middle-end/56461
36362 * ipa-cp.c (decide_whether_version_node): Call vec_free on
36363 known_aggs[i].items and release known_aggs vector.
36364
36365 PR middle-end/56461
36366 * ipa-reference.c (propagate): Free node_info even for alias nodes.
36367
36368 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36369
36370 * config/microblaze/microblaze.c (microblaze_emit_compare):
36371 Use xor for EQ/NE comparisions.
36372 * config/microblaze/microblaze.md (cstoresf4): Add constraints
36373 (cbranchsf4): Adjust operator to comparison_operator.
36374
36375 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36376
36377 PR middle-end/56461
36378 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36379 vector.
36380 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36381 vec_safe_push, always update *slot.
36382 (redirect_edge_var_map_clear): Use vec_free.
36383 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36384 (free_var_map_entry): Use vec_free.
36385 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36386 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36387
36388 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
36389
36390 PR middle-end/45472
36391 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36392 when the may_trap_p bit of the exprs being merged differs.
36393 Reorder tests for speculativeness in the logical and operator.
36394
36395 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36396
36397 * incpath.c (add_standard_paths): Use reconcat instead of concat
36398 where appropriate and avoid leaking memory.
36399
36400 * opts.h: Include obstack.h.
36401 (opts_concat): New prototype.
36402 (opts_obstack): New declaration.
36403 * opts.c (opts_concat): New function.
36404 (opts_obstack): New variable.
36405 (init_options_struct): Call gcc_init_obstack on opts_obstack.
36406 (finish_options): Use opts_concat instead of concat
36407 and XOBNEWVEC instead of XNEWVEC.
36408 * opts-common.c (generate_canonical_option, decode_cmdline_option,
36409 generate_option): Likewise.
36410 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36411 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36412
36413 PR target/56455
36414 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36415 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36416
36417 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36418
36419 PR middle-end/56461
36420 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36421
36422 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36423
36424 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36425 (arm_block_move_unaligned_straight): Likewise.
36426 (arm_adjust_block_mem): Likewise.
36427
36428 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36429
36430 PR target/48901
36431 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36432 temp, cond and label.
36433 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36434
36435 PR target/52500
36436 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36437 * config/c6x/c6x.h (dbx_register_map): Update declaration.
36438
36439 PR target/52501
36440 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36441 of prologue/epilogue functions.
36442
36443 PR target/52550
36444 * config/tilegx/tilegx.c (tilegx_expand_prologue):
36445 Remove unused variable cfa_offset.
36446 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36447
36448 PR target/54639
36449 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36450 type promotion to unsigned.
36451
36452 PR target/54640
36453 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36454 for HOST_WIDE_INT of 32 bit / same size as int.
36455 (arm_block_move_unaligned_straight): Likewise.
36456 (arm_adjust_block_mem): Likewise.
36457
36458 PR target/54662
36459 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36460 ALL_CFLAGS.
36461
36462 2013-02-26 Marek Polacek <polacek@redhat.com>
36463
36464 PR tree-optimization/56426
36465 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36466
36467 2013-02-26 Richard Biener <rguenther@suse.de>
36468
36469 PR target/56444
36470 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36471 unused variable loops.
36472
36473 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36474
36475 PR tree-optimization/56448
36476 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36477 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36478 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36479 later operands of the references, or even first operand for
36480 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36481
36482 PR tree-optimization/56443
36483 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36484 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36485 to type_for_mode langhook.
36486
36487 2013-02-25 Matt Turner <mattst88@gmail.com>
36488
36489 * doc/invoke.texi: Document r4700.
36490
36491 2013-02-25 Richard Biener <rguenther@suse.de>
36492
36493 PR tree-optimization/56175
36494 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36495 split out from ...
36496 (simplify_bitwise_binary): ... here. Also guard the conversion
36497 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36498
36499 2013-02-25 Catherine Moore <clm@codesourcery.com>
36500
36501 Revert:
36502 2013-02-24 Catherine Moore <clm@codesourcery.com>
36503 Maciej W. Rozycki <macro@codesourcery.com>
36504 Tom de Vries <tom@codesourcery.com>
36505 Nathan Sidwell <nathan@codesourcery.com>
36506 Iain Sandoe <iain@codesourcery.com>
36507 Nathan Froyd <froydnj@codesourcery.com>
36508 Chao-ying Fu <fu@mips.com>
36509
36510 * doc/extend.texi: (micromips, nomicromips, nocompression):
36511 Document new function attributes.
36512 * doc/invoke.texi (minterlink-compressed, mmicromips,
36513 m14k, m14ke, m14kec): Document new options.
36514 (minterlink-mips16): Update documentation.
36515 * doc/md.texi (ZC, ZD): Document new constraints.
36516 * configure.ac (gcc_cv_as_micromips): Check if linker
36517 supports the .set micromips directive.
36518 * configure: Regenerate.
36519 * config.in: Regenerate.
36520 * config/mips/mips-tables.opt: Regenerate.
36521 * config/mips/micromips.md: New file.
36522 * constraints.md (ZC, AD): New constraints.
36523 * config/mips/predicates.md (movep_src_register): New predicate.
36524 (movep_src_operand): New predicate.
36525 (non_volatile_mem_operand): New predicate.
36526 * config/mips/mips.md (multimem): New type.
36527 (length): Differentiate between 17-bit and 18-bit branch offsets.
36528 (MOVEP1, MOVEP2): New mode iterator.
36529 (mov_<load>l): Use ZC constraint.
36530 (mov_<load>r): Likewise.
36531 (mov_<store>l): Likewise.
36532 (mov_<store>r): Likewise.
36533 (*branch_equality<mode>_inverted): Add microMIPS support.
36534 (*branch_equality<mode>): Likewise.
36535 (*jump_absolute): Likewise.
36536 (indirect_jump_<mode>): Likewise.
36537 (tablejump_<mode>): Likewise.
36538 (<optab>_internal): Likewise.
36539 (sibcall_internal): Likewise.
36540 (sibcall_value_internal): Likewise.
36541 (prefetch): Use constraint ZD.
36542 * config/mips/mips.opt (minterlink-compressed): New option.
36543 (minterlink-mips16): Now an alias for minterlink-compressed.
36544 (mmicromips): New option.
36545 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36546 (compare_and_swap_12): Likewise.
36547 (sync_add<mode>): Likewise.
36548 (sync_<optab>_12): Likewise.
36549 (sync_old_<optab>_12): Likewise.
36550 (sync_new_<optab>_12): Likewise.
36551 (sync_nand_12): Likewise.
36552 (sync_old_nand_12): Likewise.
36553 (sync_new_nand_12): Likewise.
36554 (sync_sub<mode>): Likewise.
36555 (sync_old_add<mode>): Likewise.
36556 (sync_old_sub<mode>): Likewise.
36557 (sync_new_add<mode>): Likewise.
36558 (sync_new_sub<mode>): Likewise.
36559 (sync_<optab><mode>): Likewise.
36560 (sync_old_<optab><mode>): Likewise.
36561 (sync_new_<optab><mode>): Likewise.
36562 (sync_nand<mode>): Likewise.
36563 (sync_old_nand<mode>): Likewise.
36564 (sync_new_nand<mode>): Likewise.
36565 (sync_lock_test_and_set<mode>): Likewise.
36566 (test_and_set_12): Likewise.
36567 (atomic_compare_and_swap<mode>): Likewise.
36568 (atomic_exchange<mode>_llsc): Likewise.
36569 (atomic_fetch_add<mode>_llsc): Likewise.
36570 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36571 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36572 (umips_save_restore_pattern_p): Likewise.
36573 (umips_load_store_pair_p): Likewise.
36574 (umips_output_load_store_pair): Likewise.
36575 (umips_movep_target_p): Likewise.
36576 (umips_12bit_offset_address_p): Likewise.
36577 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36578 (mips_base_mips16): Rename this...
36579 (mips_base_compression_flags): ...to this. Update all uses.
36580 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36581 (mips_mips16_decl_p): Delete.
36582 (mips_nomips16_decl_p): Delete.
36583 (mips_get_compress_on_flags): New function.
36584 (mips_get_compress_off_flags): New function.
36585 (mips_get_compress_mode): New function.
36586 (mips_get_compress_on_name): New function.
36587 (mips_get_compress_off_name): New function.
36588 (mips_insert_attributes): Support multiple compression types.
36589 (mips_merge_decl_attributes): Likewise.
36590 (umips_12bit_offset_address_p): New function.
36591 (mips_start_function_definition): Emit .set micromips directive.
36592 (mips_call_may_need_jalx_p): New function.
36593 (mips_function_ok_for_sibcall): Add microMIPS support.
36594 (mips_print_operand_punctuation): Support short delay slots and
36595 compact jumps.
36596 (umips_swm_mask, umips_swm_encoding): New.
36597 (umips_build_save_restore): New function.
36598 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36599 (was_mips16_p): Remove.
36600 (old_compression_mode): New.
36601 (mips_set_compression_mode): New function.
36602 (mips_set_current_function): Add microMIPS support.
36603 (mips_option_override): Likewise.
36604 (umips_save_restore_pattern_p): New function.
36605 (umips_output_save_restore): New function.
36606 (umips_load_store_pair_p_1): New function.
36607 (umips_load_store_pair_p): New function.
36608 (umips_output_load_store_pair_1): New function.
36609 (umips_output_load_store_pair): New function.
36610 (umips_movep_target_p) New function.
36611 (mips_prepare_pch_save): Add microMIPS support.
36612 * config/mips/mips.h (TARGET_COMPRESSION): New.
36613 (TARGET_CPU_CPP_BUILTINS): Update macro
36614 to use new compression flags and to support microMIPS.
36615 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36616 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36617 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36618 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36619 (ASM_SPEC): Support mmicromips and mno-micromips.
36620 (M16STORE_REG_P): New macro.
36621 (MIPS_CALL): Support TARGET_MICROMIPS.
36622 (MICROMIPS_J): New macro.
36623 (mips_base_mips16): Rename this...
36624 (mips_base_compression_flags): ...to this.
36625 (UMIPS_12BIT_OFFSET_P): New macro.
36626 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36627 (MULTILIB_DIRNAMES): Likewise.
36628
36629 2013-02-25 Tom de Vries <tom@codesourcery.com>
36630
36631 PR rtl-optimization/56131
36632 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36633 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36634 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36635
36636 2013-02-25 Tobias Burnus <burnus@net-b.de>
36637
36638 * doc/invoke.texi (-fsanitize=): Move from optimization
36639 to debugging options.
36640
36641 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36642
36643 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36644
36645 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36646 Alexander Monakov <amonakov@ispras.ru>
36647
36648 PR middle-end/56077
36649 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36650 flush pending lists also on non-jumps. Adjust comment.
36651
36652 2013-02-24 Catherine Moore <clm@codesourcery.com>
36653 Maciej W. Rozycki <macro@codesourcery.com>
36654 Tom de Vries <tom@codesourcery.com>
36655 Nathan Sidwell <nathan@codesourcery.com>
36656 Iain Sandoe <iain@codesourcery.com>
36657 Nathan Froyd <froydnj@codesourcery.com>
36658 Chao-ying Fu <fu@mips.com>
36659
36660 * doc/extend.texi: (micromips, nomicromips, nocompression):
36661 Document new function attributes.
36662 * doc/invoke.texi (minterlink-compressed, mmicromips,
36663 m14k, m14ke, m14kec): Document new options.
36664 (minterlink-mips16): Update documentation.
36665 * doc/md.texi (ZC, ZD): Document new constraints.
36666 * configure.ac (gcc_cv_as_micromips): Check if linker
36667 supports the .set micromips directive.
36668 * configure: Regenerate.
36669 * config.in: Regenerate.
36670 * config/mips/mips-tables.opt: Regenerate.
36671 * config/mips/micromips.md: New file.
36672 * constraints.md (ZC, AD): New constraints.
36673 * config/mips/predicates.md (movep_src_register): New predicate.
36674 (movep_src_operand): New predicate.
36675 (non_volatile_mem_operand): New predicate.
36676 * config/mips/mips.md (multimem): New type.
36677 (length): Differentiate between 17-bit and 18-bit branch offsets.
36678 (MOVEP1, MOVEP2): New mode iterator.
36679 (mov_<load>l): Use ZC constraint.
36680 (mov_<load>r): Likewise.
36681 (mov_<store>l): Likewise.
36682 (mov_<store>r): Likewise.
36683 (*branch_equality<mode>_inverted): Add microMIPS support.
36684 (*branch_equality<mode>): Likewise.
36685 (*jump_absolute): Likewise.
36686 (indirect_jump_<mode>): Likewise.
36687 (tablejump_<mode>): Likewise.
36688 (<optab>_internal): Likewise.
36689 (sibcall_internal): Likewise.
36690 (sibcall_value_internal): Likewise.
36691 (prefetch): Use constraint ZD.
36692 * config/mips/mips.opt (minterlink-compressed): New option.
36693 (minterlink-mips16): Now an alias for minterlink-compressed.
36694 (mmicromips): New option.
36695 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36696 (compare_and_swap_12): Likewise.
36697 (sync_add<mode>): Likewise.
36698 (sync_<optab>_12): Likewise.
36699 (sync_old_<optab>_12): Likewise.
36700 (sync_new_<optab>_12): Likewise.
36701 (sync_nand_12): Likewise.
36702 (sync_old_nand_12): Likewise.
36703 (sync_new_nand_12): Likewise.
36704 (sync_sub<mode>): Likewise.
36705 (sync_old_add<mode>): Likewise.
36706 (sync_old_sub<mode>): Likewise.
36707 (sync_new_add<mode>): Likewise.
36708 (sync_new_sub<mode>): Likewise.
36709 (sync_<optab><mode>): Likewise.
36710 (sync_old_<optab><mode>): Likewise.
36711 (sync_new_<optab><mode>): Likewise.
36712 (sync_nand<mode>): Likewise.
36713 (sync_old_nand<mode>): Likewise.
36714 (sync_new_nand<mode>): Likewise.
36715 (sync_lock_test_and_set<mode>): Likewise.
36716 (test_and_set_12): Likewise.
36717 (atomic_compare_and_swap<mode>): Likewise.
36718 (atomic_exchange<mode>_llsc): Likewise.
36719 (atomic_fetch_add<mode>_llsc): Likewise.
36720 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36721 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36722 (umips_save_restore_pattern_p): Likewise.
36723 (umips_load_store_pair_p): Likewise.
36724 (umips_output_load_store_pair): Likewise.
36725 (umips_movep_target_p): Likewise.
36726 (umips_12bit_offset_address_p): Likewise.
36727 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36728 (mips_base_mips16): Rename this...
36729 (mips_base_compression_flags): ...to this. Update all uses.
36730 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36731 (mips_mips16_decl_p): Delete.
36732 (mips_nomips16_decl_p): Delete.
36733 (mips_get_compress_on_flags): New function.
36734 (mips_get_compress_off_flags): New function.
36735 (mips_get_compress_mode): New function.
36736 (mips_get_compress_on_name): New function.
36737 (mips_get_compress_off_name): New function.
36738 (mips_insert_attributes): Support multiple compression types.
36739 (mips_merge_decl_attributes): Likewise.
36740 (umips_12bit_offset_address_p): New function.
36741 (mips_start_function_definition): Emit .set micromips directive.
36742 (mips_call_may_need_jalx_p): New function.
36743 (mips_function_ok_for_sibcall): Add microMIPS support.
36744 (mips_print_operand_punctuation): Support short delay slots and
36745 compact jumps.
36746 (umips_swm_mask, umips_swm_encoding): New.
36747 (umips_build_save_restore): New function.
36748 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36749 (was_mips16_p): Remove.
36750 (old_compression_mode): New.
36751 (mips_set_compression_mode): New function.
36752 (mips_set_current_function): Add microMIPS support.
36753 (mips_option_override): Likewise.
36754 (umips_save_restore_pattern_p): New function.
36755 (umips_output_save_restore): New function.
36756 (umips_load_store_pair_p_1): New function.
36757 (umips_load_store_pair_p): New function.
36758 (umips_output_load_store_pair_1): New function.
36759 (umips_output_load_store_pair): New function.
36760 (umips_movep_target_p) New function.
36761 (mips_prepare_pch_save): Add microMIPS support.
36762 * config/mips/mips.h (TARGET_COMPRESSION): New.
36763 (TARGET_CPU_CPP_BUILTINS): Update macro
36764 to use new compression flags and to support microMIPS.
36765 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36766 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36767 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36768 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36769 (ASM_SPEC): Support mmicromips and mno-micromips.
36770 (M16STORE_REG_P): New macro.
36771 (MIPS_CALL): Support TARGET_MICROMIPS.
36772 (MICROMIPS_J): New macro.
36773 (mips_base_mips16): Rename this...
36774 (mips_base_compression_flags): ...to this.
36775 (UMIPS_12BIT_OFFSET_P): New macro.
36776 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36777 (MULTILIB_DIRNAMES): Likewise.
36778
36779 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36780
36781 PR target/52555
36782 * target-globals.c (save_target_globals): For init_reg_sets and
36783 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36784
36785 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36786
36787 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36788 * config/aarch64/t-aarch64
36789 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36790
36791 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36792
36793 PR inline-asm/56148
36794 * lra-constraints.c (process_alt_operands): Reload operand
36795 conflicting with earlier clobber only if no more other conflicting
36796 operands.
36797
36798 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36799
36800 PR sanitizer/56393
36801 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36802 if not linking a shared library.
36803
36804 2013-02-22 Seth LaForge <sethml@google.com>
36805
36806 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36807
36808 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36809
36810 * config/arm/arm.md (split for extendsidi): Update condition.
36811 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36812 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36813 (qhs_zextenddi_cstr): Likewise.
36814
36815 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36816
36817 PR middle-end/56420
36818 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36819 avoid signed wrapping.
36820 (expand_mult): Handle properly multiplication by
36821 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36822 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36823 in the compiler if coeff is HOST_WIDE_INT_MIN.
36824 (expand_divmod): Don't make ext_op1 static, change it's type to
36825 uhwi. Avoid undefined behavior in -INTVAL (op1).
36826
36827 PR rtl-optimization/50339
36828 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36829 field.
36830 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36831 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36832 into splitting_ashiftrt field.
36833 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36834 ASHIFTRT.
36835 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36836 choices.
36837
36838 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36839
36840 PR middle-end/56108
36841 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36842 are sure to go irrevocable.
36843
36844 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36845
36846 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36847 scalars are valid operands.
36848
36849 2013-02-21 Martin Jambor <mjambor@suse.cz>
36850
36851 PR tree-optimization/56310
36852 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36853 only matching indices and non-negative final offsets.
36854 (intersect_aggregates_with_edge): Pass src_idx to
36855 agg_replacements_to_vector. Pass src_idx insstead of index to
36856 intersect_with_agg_replacements.
36857
36858 2013-02-21 Martin Jambor <mjambor@suse.cz>
36859
36860 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36861 instead of hard-wired defaults.
36862
36863 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36864
36865 * doc/invoke.texi (MIPS Options): Update documentation of the
36866 floating-point multiply-accumulate instruction restrictions.
36867
36868 2013-02-21 Kostya Serebryany <kcc@google.com>
36869
36870 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36871 asan_shadow_offset on x86_64 linux.
36872
36873 2013-02-21 Richard Biener <rguenther@suse.de>
36874
36875 PR tree-optimization/56415
36876 Revert
36877 2013-02-11 Richard Biener <rguenther@suse.de>
36878
36879 PR tree-optimization/56273
36880 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36881 first VRP run.
36882
36883 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36884
36885 PR bootstrap/56258
36886 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36887 instead of @itemx.
36888
36889 PR inline-asm/56405
36890 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36891 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36892
36893 2013-02-20 Jan Hubicka <jh@suse.cz>
36894
36895 PR tree-optimization/56265
36896 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36897 when target is referenced for first time.
36898
36899 2013-02-20 Richard Biener <rguenther@suse.de>
36900
36901 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36902 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36903 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36904 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36905 not return anything.
36906 (rename_ssa_copies): Do not remove unused locals.
36907 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36908 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36909 * passes.c (execute_function_todo): Do not schedule unused locals
36910 removal if cleanup_tree_cfg did something.
36911 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36912 about the number of removed locals.
36913
36914 2013-02-20 Richard Biener <rguenther@suse.de>
36915
36916 PR tree-optimization/56398
36917 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36918
36919 2013-02-20 Martin Jambor <mjambor@suse.cz>
36920
36921 PR tree-optimization/55334
36922 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36923 restricted pointers to arrays.
36924
36925 2013-02-20 Richard Biener <rguenther@suse.de>
36926 Jakub Jelinek <jakub@redhat.com>
36927
36928 PR tree-optimization/56396
36929 * tree-ssa-ccp.c (n_const_val): New static variable.
36930 (get_value): Return NULL for SSA names we don't have a lattice
36931 entry for.
36932 (ccp_initialize): Initialize n_const_val.
36933 * tree-ssa-copy.c (n_copy_of): New static variable.
36934 (init_copy_prop): Initialize n_copy_of.
36935 (get_value): Return NULL_TREE for SSA names we don't have a
36936 lattice entry for.
36937
36938 2013-02-20 Martin Jambor <mjambor@suse.cz>
36939
36940 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36941
36942 2013-02-20 Richard Biener <rguenther@suse.de>
36943
36944 * genpreds.c (write_lookup_constraint): Do not compare first
36945 letter of the constraint again.
36946
36947 2013-02-20 Richard Biener <rguenther@suse.de>
36948
36949 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36950 and ceil_log2.
36951 (get_use_iv_cost): Terminate hashtable walk when coming across
36952 an empty entry.
36953
36954 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36955
36956 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36957 reassociation for avx2 targets.
36958
36959 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36960
36961 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36962 Add version check for v8.10.a to enable microblaze_has_clz
36963 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36964 version and TARGET_PATTERN_COMPARE check
36965 * config/microblaze/microblaze.md: New clzsi2 instruction
36966
36967 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36968
36969 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36970 function before branching.
36971
36972 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36973
36974 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36975 DUMP_INSN_RTX_UID.
36976 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36977
36978 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36979
36980 PR middle-end/55889
36981 * sel-sched.c: Include ira.h.
36982 (implicit_clobber_conflict_p): New function.
36983 (moveup_expr): Use it.
36984 * Makefile.in (sel-sched.o): Depend on ira.h.
36985
36986 2013-02-19 Richard Biener <rguenther@suse.de>
36987
36988 PR tree-optimization/56384
36989 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36990 (vn_hash_type): Split out from ...
36991 (vn_hash_constant_with_type): ... here.
36992 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36993 (vn_phi_eq): Compare types from vn_phi_s structure.
36994 (vn_phi_lookup): Populate vn_phi_s type.
36995 (vn_phi_insert): Likewise.
36996
36997 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36998
36999 PR tree-optimization/56350
37000 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
37001 if haven't found reduction or nested cycle operand, rather than
37002 asserting we must find it.
37003
37004 PR tree-optimization/56381
37005 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37006 to fold_build3.
37007
37008 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
37009 Jakub Jelinek <jakub@redhat.com>
37010
37011 PR target/52555
37012 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37013 (swap_optab_enable): Same.
37014 (init_all_optabs): Use argument instead of global.
37015 * tree.h (struct tree_optimization_option): New field target_optabs.
37016 * expr.h (init_all_optabs): Add argument to prototype.
37017 (TREE_OPTIMIZATION_OPTABS): New.
37018 (save_optabs_if_changed): Protoize.
37019 * optabs.h: Declare this_fn_optabs.
37020 * optabs.c (save_optabs_if_changed): New.
37021 Declare this_fn_optabs.
37022 (init_optabs): Add argument to init_all_optabs() call.
37023 * function.c (invoke_set_current_function_hook): Handle per
37024 function optabs.
37025 * function.h (struct function): New field optabs.
37026 * config/mips/mips.c (mips_set_mips16_mode): Handle when
37027 optimization_current_node has changed.
37028 * target-globals.h (save_target_globals_default_opts): Protoize.
37029 * target-globals.c (save_target_globals_default_opts): New.
37030
37031 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37032
37033 PR target/56347
37034 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37035 registers %fr12 and %fr12R as call used.
37036
37037 PR target/56214
37038 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37039 and HImode, require all displacements to be an integer multiple of
37040 their mode size.
37041 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37042 only allow QImode and HImode when reload is in progress and strict is
37043 true. Likewise for symbolic addresses. Use base14_operand to check
37044 displacements in REG+BASE addresses.
37045
37046 2013-02-18 Richard Biener <rguenther@suse.de>
37047
37048 PR tree-optimization/56366
37049 * tree-vect-loop.c (get_initial_def_for_induction): Properly
37050 handle sign-conversion of outer-loop initial induction value.
37051
37052 2013-02-18 Richard Biener <rguenther@suse.de>
37053
37054 PR middle-end/56349
37055 * cfghooks.c (merge_blocks): If we merge a latch into another
37056 block adjust references to it.
37057 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37058 (verify_loop_structure): Verify that a recorded latch is in fact
37059 a latch.
37060
37061 2013-02-18 Richard Biener <rguenther@suse.de>
37062
37063 PR tree-optimization/56321
37064 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37065 order SSA name release and virtual operand unlinking.
37066
37067 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37068
37069 * config/microblaze/microblaze.md (save_stack_block): Define.
37070 (restore_stack_block): Likewise.
37071
37072 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37073
37074 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37075 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37076 * config/microblaze/microblaze.c (microblaze_option_override):
37077 Bail out early for PIC modes when target does not support PIC.
37078
37079 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37080
37081 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37082 Replace with a microblaze version.
37083 (microblaze_trampoline_init): Adapt for microblaze.
37084 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37085 microblaze.
37086
37087 2013-02-16 Jakub Jelinek <jakub@redhat.com>
37088 Dodji Seketeli <dodji@redhat.com>
37089
37090 PR asan/56330
37091 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37092 (instrument_mem_region_access): Do not forget to always put
37093 instrumentation of the of 'base' and 'base + len' in a "if (len !=
37094 0) statement, even for cases where either 'base' or 'base + len'
37095 are not instrumented -- because they have been previously
37096 instrumented. Simplify the logic by putting all the statements
37097 instrument 'base + len' inside a sequence, and then insert that
37098 sequence right before the current insertion point. Then, to
37099 instrument 'base + len', just get an iterator on that statement.
37100 And do not forget to update the pointer to iterator the function
37101 received as argument.
37102
37103 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
37104
37105 PR rtl-optimization/56348
37106 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37107
37108 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
37109
37110 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37111 (clean_graph_dump_file): Pass base to start_graph_dump.
37112
37113 2013-02-14 Richard Henderson <rth@redhat.com>
37114
37115 PR target/55941
37116 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37117
37118 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
37119
37120 * collect2-aix.h: Define F_LOADONLY.
37121
37122 2013-02-14 Richard Biener <rguenther@suse.de>
37123
37124 PR lto/50494
37125 * varasm.c (output_constant_def_1): Get the decl representing
37126 the constant as argument.
37127 (output_constant_def): Wrap output_constant_def_1.
37128 (make_decl_rtl): Use output_constant_def_1 with the decl
37129 representing the constant.
37130 (build_constant_desc): Optionally re-use a decl already
37131 representing the constant.
37132 (tree_output_constant_def): Adjust.
37133
37134 2013-02-14 Dodji Seketeli <dodji@redhat.com>
37135
37136 Fix an asan crash
37137 * asan.c (instrument_builtin_call): Really put the length of the
37138 second source argument into src1_len.
37139
37140 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37141
37142 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37143 argument. If it is false, don't create edge from then_bb to
37144 fallthru_bb.
37145 (insert_if_then_before_iter): Pass true to it.
37146 (build_check_stmt): Pass false to it.
37147 (transform_statements): Flush hash table only on extended basic
37148 block boundaries, rather than at the beginning of every bb.
37149 Don't flush hash table on nonfreeing_call_p calls.
37150 * tree-flow.h (nonfreeing_call_p): New prototype.
37151 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37152
37153 2013-02-13 David S. Miller <davem@davemloft.net>
37154
37155 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37156
37157 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
37158
37159 PR target/56184
37160 * ira.c (max_regno_before_ira): Move from ...
37161 (ira): ... here.
37162 (fix_reg_equiv_init): Use max_regno_before_ira instead of
37163 vec_safe_length.
37164
37165 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37166
37167 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37168
37169 2013-02-13 Richard Biener <rguenther@suse.de>
37170
37171 PR lto/56295
37172 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37173 globals in MEM_REFs.
37174
37175 2013-02-13 Richard Biener <rguenther@suse.de>
37176
37177 * loop-init.c (loop_optimizer_init): Clear loop state when
37178 re-initializing preserved loops.
37179 * loop-unswitch.c (unswitch_single_loop): Return whether
37180 we unswitched the loop. Do not verify loop state here.
37181 (unswitch_loops): When we unswitched a loop discover new loops.
37182
37183 2013-02-13 Kostya Serebryany <kcc@google.com>
37184
37185 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37186 on x86_64 linux.
37187 * sanitizer.def: Rename __asan_init to __asan_init_v1.
37188
37189 2013-02-12 Dodji Seketeli <dodji@redhat.com>
37190
37191 Avoid instrumenting duplicated memory access in the same basic block
37192 * Makefile.in (asan.o): Add new dependency on hash-table.h
37193 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37194 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37195 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37196 (free_mem_ref_resources, has_mem_ref_been_instrumented)
37197 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37198 (get_mem_ref_of_assignment): New functions.
37199 (get_mem_refs_of_builtin_call): Extract from
37200 instrument_builtin_call and tweak a little bit to make it fit with
37201 the new signature.
37202 (instrument_builtin_call): Use the new
37203 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
37204 of is_gimple_builtin_call.
37205 (instrument_derefs, instrument_mem_region_access): Insert the
37206 instrumented memory reference into the hash table.
37207 (maybe_instrument_assignment): Renamed instrument_assignment into
37208 this, and change it to advance the iterator when instrumentation
37209 actually happened and return true in that case. This makes it
37210 homogeneous with maybe_instrument_assignment, and thus give a
37211 chance to callers to be more 'regular'.
37212 (transform_statements): Clear the memory reference hash table
37213 whenever we enter a new BB, when we cross a function call, or when
37214 we are done transforming statements. Use
37215 maybe_instrument_assignment instead of instrumentation. No more
37216 need to special case maybe_instrument_assignment and advance the
37217 iterator after calling it; it's now handled just like
37218 maybe_instrument_call. Update comment.
37219
37220 2013-02-13 Richard Biener <rguenther@suse.de>
37221
37222 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37223 Fix loop discovery code.
37224
37225 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
37226
37227 PR inline-asm/56148
37228 * lra-constraints.c (process_alt_operands): Match early clobber
37229 operand with itself. Check conflicts with earlyclobber only if
37230 the operand is not reloaded. Prefer to reload conflicting operand
37231 if earlyclobber and matching operands are the same.
37232
37233 2013-02-12 Richard Biener <rguenther@suse.de>
37234
37235 PR lto/56297
37236 * lto-streamer-out.c (write_symbol): Do not output symbols
37237 for hard register variables.
37238
37239 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
37240
37241 PR target/54222
37242 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37243 (umulsidi3_insn, mulsidi3_insn): New insns.
37244
37245 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
37246
37247 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37248 (struct tune_params): Add vec_costs field.
37249 * config/arm/arm.c (arm_builtin_vectorization_cost)
37250 (arm_add_stmt_cost): New functions.
37251 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37252 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37253 (arm_default_vec_cost): New struct of type cpu_vec_costs.
37254 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37255 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37256 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37257 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37258
37259 2013-02-12 Richard Biener <rguenther@suse.de>
37260
37261 PR lto/56295
37262 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37263 decls again if possible.
37264
37265 2013-02-12 Richard Biener <rguenther@suse.de>
37266
37267 PR middle-end/56288
37268 * tree-ssa.c (verify_ssa_name): Fix check, move
37269 SSA_NAME_IN_FREE_LIST check up.
37270
37271 2013-02-12 Jakub Jelinek <jakub@redhat.com>
37272 Steven Bosscher <steven@gcc.gnu.org>
37273
37274 PR rtl-optimization/56151
37275 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37276 equal to op0 or op1, and last_insn pattern is CODE operation
37277 with MEM dest and one of the operands matches that MEM.
37278
37279 2013-02-11 Sriraman Tallam <tmsriram@google.com>
37280
37281 * doc/extend.texi: Document Function Multiversioning and "default"
37282 parameter string to target attribute.
37283 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37284 target attribute parameter is "default".
37285 (ix86_compare_version_priority): Remove checks for target attribute.
37286 (ix86_mangle_function_version_assembler_name): Change error to sorry.
37287 Remove check for target attribute equal to NULL. Add assert.
37288 (ix86_generate_version_dispatcher_body): Change error to sorry.
37289
37290 2013-02-11 Iain Sandoe <iain@codesourcery.com>
37291 Jack Howarth <howarth@bromo.med.uc.edu>
37292 Patrick Marlier <patrick.marlier@gmail.com>
37293
37294 PR libitm/55693
37295 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37296 define ENDFILE_SPEC as TM_DESTRUCTOR.
37297 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37298
37299 2013-02-11 Alexander Potapenko <glider@google.com>
37300 Jack Howarth <howarth@bromo.med.uc.edu>
37301 Jakub Jelinek <jakub@redhat.com>
37302
37303 PR sanitizer/55617
37304 * config/darwin.c (cdtor_record): Rename ctor_record.
37305 (sort_cdtor_records): Rename sort_ctor_records.
37306 (finalize_dtors): New routine to sort destructors by
37307 priority before use in assemble_integer.
37308 (machopic_asm_out_destructor): Use finalize_dtors if needed.
37309
37310 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
37311
37312 PR rtl-optimization/56275
37313 * simplify-rtx.c (avoid_constant_pool_reference): Check that
37314 offset is non-negative and less than cmode size before
37315 calling simplify_subreg.
37316
37317 2013-02-11 Richard Biener <rguenther@suse.de>
37318
37319 PR tree-optimization/56264
37320 * cfgloop.h (fix_loop_structure): Adjust prototype.
37321 * loop-init.c (fix_loop_structure): Return the number of
37322 newly discovered loops.
37323 * tree-cfgcleanup.c (repair_loop_structures): When new loops
37324 are discovered, do a full loop-closed SSA rewrite.
37325
37326 2013-02-11 Richard Biener <rguenther@suse.de>
37327
37328 PR tree-optimization/56273
37329 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37330 first VRP run.
37331 (check_array_ref): Fix missing newline in dumps.
37332 (search_for_addr_array): Likewise.
37333
37334 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
37335
37336 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37337
37338 2013-02-09 Jakub Jelinek <jakub@redhat.com>
37339
37340 PR target/56256
37341 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37342
37343 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
37344
37345 PR rtl-optimization/56246
37346 * lra-constraints.c (simplify_operand_subreg): Try to reuse
37347 reload pseudo.
37348 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37349 constraints are satisfied.
37350
37351 2013-02-08 Jeff Law <law@redhat.com>
37352
37353 PR debug/53948
37354 * emit-rtl.c (reg_is_parm_p): New function.
37355 * regs.h (reg_is_parm_p): New prototype.
37356 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37357 callee-clobbered registers.
37358
37359 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
37360
37361 PR target/56043
37362 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37363 If there is no implicit builtin declaration, just return NULL.
37364
37365 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37366
37367 * config/i386/sse.md (FMAMODEM): New mode iterator.
37368 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37369 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37370
37371 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37372
37373 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37374 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37375 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37376
37377 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37378
37379 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37380 (microblaze*-*-elf): Likewise.
37381 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37382 LINK_SPEC.
37383 * config/microblaze/microblaze-c.c: Add builtin defines for
37384 _LITTLE_ENDIAN and _BIG_ENDIAN.
37385 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37386 add to TARGET_DEFAULT flags.
37387 Expand ASM_SPEC and LINK_SPEC.
37388 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37389 * config/microblaze/microblaze.md: Update extendsidi2 and
37390 movdi_internal instructions to use low-order / high-order reg
37391 print_operands.
37392 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37393 options and inversemask / mask of LITTLE_ENDIAN.
37394 * config/microblaze/t-microblaze: Expand multilib options to
37395 include mlittle-endian (le) and update exceptions patterns.
37396
37397 2013-02-08 Jakub Jelinek <jakub@redhat.com>
37398
37399 PR rtl-optimization/56195
37400 * lra-constraints.c (get_reload_reg): Don't reuse regs
37401 if they have smaller mode than requested, if they have
37402 wider mode than requested, try to return a SUBREG.
37403
37404 PR tree-optimization/56250
37405 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37406 if type is unsigned and code isn't MULT_EXPR.
37407
37408 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37409
37410 PR tree-optimization/56064
37411 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37412 bits according to mode.
37413 * fixed-value.h (fixed_from_double_int)
37414 (const_fixed_from_double_int): Adjust comments.
37415
37416 2013-02-08 Richard Biener <rguenther@suse.de>
37417
37418 PR lto/56231
37419 * lto-streamer.h (struct data_in): Remove current_file, current_line
37420 and current_col members.
37421 * lto-streamer-out.c (lto_output_location): Stream changed bits
37422 en-block for efficiency.
37423 * lto-streamer-in.c (clear_line_info): Remove.
37424 (lto_input_location): Cache current file, line and column
37425 globally via local statics. Read changed bits en-block.
37426 (input_function): Do not call clear_line_info.
37427 (lto_read_body): Likewise.
37428 (lto_input_toplevel_asms): Likewise.
37429
37430 2013-02-08 Michael Matz <matz@suse.de>
37431
37432 PR tree-optimization/52448
37433 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37434 (nt_call_phase): New static.
37435 (add_or_mark_expr): Only mark accesses with newer phase than any
37436 call seen.
37437 (nonfreeing_call_p): New.
37438 (nt_init_block): Update nt_call_phase, mark blocks as visited.
37439 (nt_fini_block): Keep blocks marked as visited.
37440 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37441
37442 2013-02-08 Richard Biener <rguenther@suse.de>
37443
37444 * ira.c (ira): Free broken dominator information.
37445
37446 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37447
37448 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37449
37450 2013-02-08 Marek Polacek <polacek@redhat.com>
37451
37452 * cfgloop.c (verify_loop_structure): Add more checking of headers.
37453
37454 2013-02-08 Richard Biener <rguenther@suse.de>
37455
37456 PR middle-end/56181
37457 * cfgloop.h (flow_loops_find): Adjust.
37458 (bb_loop_header_p): Declare.
37459 * cfgloop.c (bb_loop_header_p): New function split out from ...
37460 (flow_loops_find): ... here. Adjust function signature,
37461 support incremental loop structure update.
37462 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37463 * cfgloopmanip.c (fix_loop_structure): Move ...
37464 * loop-init.c (fix_loop_structure): ... here.
37465 (apply_loop_flags): Split out from ...
37466 (loop_optimizer_init): ... here.
37467 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37468 in incremental mode, only remove dead loops here.
37469
37470 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37471
37472 PR target/54222
37473 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37474 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37475 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37476 (*round<mode>3.libgcc): New insns for fixed-modes.
37477 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37478 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37479 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37480 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37481 implementations. Define to __builtin_avr_absFX,
37482 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37483 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37484 __builtin_avr_countlsFX, respectively.
37485 * config/avr/avr-c.c (target.h): Include it.
37486 (enum avr_builtin_id): New enum.
37487 (avr_resolve_overloaded_builtin): New static function.
37488 (avr_register_target_pragmas): Use it to set
37489 targetm.resolve_overloaded_builtin.
37490 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37491 tree nodes used by DEF_BUILTIN.
37492 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37493 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37494 <AVR_BUILTIN_xxBITS>: Same.
37495
37496 2013-02-08 Richard Biener <rguenther@suse.de>
37497
37498 * cfgloop.c (verify_loop_structure): Properly handle
37499 a loop exiting to another loop header.
37500 * ira-int.h (ira_loops): Remove.
37501 * ira.c (ira_loops): Remove.
37502 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37503 (do_reload): Use loop_optimizer_finalize.
37504 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37505 number_of_loops to access the loop tree.
37506 (more_one_region_p): Likewise.
37507 (finish_loop_tree_nodes): Likewise.
37508 (rebuild_regno_allocno_maps): Likewise.
37509 (mark_loops_for_removal): Likewise.
37510 (mark_all_loops_for_removal): Likewise.
37511 (remove_unnecessary_regions): Likewise.
37512 (ira_build): Likewise.
37513 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37514
37515 2013-02-08 Richard Biener <rguenther@suse.de>
37516
37517 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37518 * ipa-pure-const.c (analyze_function): Avoid calling
37519 mark_irreducible_loops twice.
37520 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37521
37522 2013-02-07 David S. Miller <davem@davemloft.net>
37523
37524 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37525 on 'reg'.
37526 * var-tracking.c (vt_add_function_parameter): Test the presence of
37527 HAVE_window_save properly and do not remap argument registers when
37528 we have a leaf function.
37529
37530 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37531
37532 PR bootstrap/56227
37533 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37534 instead of "ll".
37535 * config/i386/i386.c (ix86_print_operand): Ditto.
37536
37537 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37538
37539 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37540
37541 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37542
37543 PR rtl-optimization/56225
37544 * lra-constraints.c (process_alt_operands): Check that reload hard
37545 reg can hold value for strict_low_part.
37546
37547 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37548
37549 PR debug/56154
37550 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37551 dwarf2out_end_function.
37552 (in_first_function_p, maybe_at_text_label_p,
37553 first_loclabel_num_not_at_text_label): New variables.
37554 (dwarf2out_var_location): In the first function find out
37555 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37556 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37557 functions.
37558
37559 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37560
37561 PR rtl-optimization/56178
37562 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37563 SUBREG of a register. Tidy up related block of code.
37564 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37565 note if the source is a register or a SUBREG of a register.
37566
37567 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37568
37569 PR target/56228
37570 * config/rs6000/rs6000.md (ptrm): New mode attr.
37571 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37572 call_value_indirect_aix<pttrsize>,
37573 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37574 m in constraints.
37575
37576 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37577
37578 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37579 if -bnortl. Convert to strcmp and strncmp.
37580
37581 2013-02-07 Alan Modra <amodra@gmail.com>
37582
37583 PR target/54009
37584 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37585 addresses won't wrap when offsetting.
37586 (rs6000_secondary_reload): Provide secondary reloads needed for
37587 wrapping LO_SUM addresses.
37588
37589 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37590
37591 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37592 MACH, just __MACH__.
37593
37594 2013-02-06 Richard Biener <rguenther@suse.de>
37595
37596 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37597 instead of calling fix_loop_structure.
37598
37599 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37600
37601 PR middle-end/56217
37602 * omp-low.c (use_pointer_for_field): Return false if
37603 lower_send_shared_vars doesn't generate any copy-out code.
37604
37605 2013-02-06 Tom de Vries <tom@codesourcery.com>
37606
37607 PR rtl-optimization/56131
37608 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37609 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37610 of the label is NULL. Add comment.
37611
37612 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37613
37614 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37615
37616 PR sanitizer/55374
37617 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37618 (STATIC_LIBTSAN_LIBS): Likewise.
37619 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37620 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37621 is defined, don't add anything else beyond that.
37622 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37623 (LINK_COMMAND_SPEC): Use them.
37624
37625 PR tree-optimization/56205
37626 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37627 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37628 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37629
37630 2013-02-05 Richard Biener <rguenther@suse.de>
37631
37632 PR tree-optimization/53342
37633 PR tree-optimization/53185
37634 * tree-vectorizer.h (vect_check_strided_load): Remove.
37635 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37636 not disallow peeling for vectorized strided loads.
37637 (vect_check_strided_load): Make static and simplify.
37638 (vect_analyze_data_refs): Adjust.
37639 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37640 correctly when vectorizing strided loads.
37641
37642 2013-02-05 Richard Biener <rguenther@suse.de>
37643
37644 * doc/install.texi: Refer to ISL, not PPL.
37645
37646 2013-02-05 Jan Hubicka <jh@suse.cz>
37647
37648 PR tree-optimization/55789
37649 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37650
37651 2013-02-05 Jan Hubicka <jh@suse.cz>
37652
37653 PR tree-optimization/55789
37654 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37655 the dead call anyway.
37656
37657 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37658
37659 PR sanitizer/55374
37660 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37661
37662 2013-02-04 Alexander Potapenko <glider@google.com>
37663 Jack Howarth <howarth@bromo.med.uc.edu>
37664 Jakub Jelinek <jakub@redhat.com>
37665
37666 PR sanitizer/55617
37667 * config/darwin.c (sort_ctor_records): Stabilized qsort
37668 on constructor priority by using original position.
37669 (finalize_ctors): New routine to sort constructors by
37670 priority before use in assemble_integer.
37671 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37672
37673 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37674
37675 PR libstdc++/54314
37676 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37677 about visibility on artificial decls.
37678 * config/sol2.c (solaris_assemble_visibility): Likewise.
37679
37680 2013-02-04 Kai Tietz <ktietz@redhat.com>
37681
37682 PR target/56186
37683 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37684 argument and improve checking of return-argument types for 16-byte
37685 modes.
37686 (ix86_function_value_1): Add additional valtype argument on call
37687 of function_value_64.
37688 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37689 handling infunction_value_64 function.
37690
37691 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37692
37693 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37694
37695 2013-02-04 Richard Biener <rguenther@suse.de>
37696
37697 PR tree-optimization/56188
37698 * tree-ssa-structalias.c (label_visit): Consider case with
37699 initially non-empty points-to set.
37700 (perform_var_substitution): Dump node mapping and clean up.
37701
37702 2013-02-04 Richard Guenther <rguenther@suse.de>
37703
37704 PR lto/56168
37705 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37706 node prevail as last resort.
37707 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37708 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37709
37710 2013-02-04 Richard Biener <rguenther@suse.de>
37711
37712 PR tree-optimization/56113
37713 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37714 Merge into ...
37715 (equiv_class_lookup_or_add): ... this.
37716 (label_visit): Adjust and fix error in previous patch.
37717 (perform_var_substitution): Adjust.
37718
37719 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37720
37721 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37722 * config/sh/sh4-300.md: Likewise.
37723 * config/sh/sh4a.md: Likewise.
37724 * config/sh/constraints.md: Likewise.
37725 * config/sh/sh.md: Likewise.
37726 * config/sh/netbsd-elf.h: Likewise.
37727 * config/sh/predicates.md: Likewise.
37728 * config/sh/sh-protos.h: Likewise.
37729 * config/sh/ushmedia.h: Likewise.
37730 * config/sh/linux.h: Likewise.
37731 * config/sh/sh.c: Likewise.
37732 * config/sh/superh.h: Likewise.
37733 * config/sh/elf.h: Likewise.
37734 * config/sh/sh4.md: Likewise.
37735 * config/sh/sh.h: Likewise.
37736
37737 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37738
37739 * config/pa/constraints.md: Adjust unused letters. Change "T"
37740 constraint to match_test floating_point_store_memory_operand().
37741 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37742 (base14_operand): New.
37743 (floating_point_store_memory_operand): New.
37744 (integer_store_memory_operand): Revise to use base14_operand and
37745 reg_plus_base_memory_operand.
37746 (move_dest_operand): Allow symbolic_memory_operands.
37747 (symbolic_memory_operand): Check for LO_SOM.
37748 (symbolic_operand): Change default case to break.
37749 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37750 CONST_DOUBLE values to be reloaded by putting them into memory when
37751 the destination is a floating point register.
37752 (movdf): Remove code to handle CONST_DOUBLE.
37753 (movsf): Likewise.
37754 (reload_indf_r1): New.
37755 (reload_insf_r1): New.
37756 Consistently use "Q" and "T" constraints with integer and floating
37757 point move instructions, respectively.
37758 (movdi): Remove FAIL.
37759 Change predicate for source operand unamed DImode move from
37760 general_operand to move_src_operand.
37761 (umulsidi3): Change predicate for destination operand to
37762 register_operand.
37763 Likewise for similar unamed patterns.
37764 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37765 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37766 (hppa_legitimize_address): Simplify mask calculation.
37767 (pa_emit_move_sequence): Revised handling of secondary reloads from
37768 REG+D addresses for floating point loads and stores. Directly handle
37769 loading CONST0_RTX (mode) to a floating point register.
37770 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37771 to floating point registers. Don't restrict secondary reloads to
37772 floating point registers to integer modes. Revise some comments and
37773 cleanup some code.
37774 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37775 (pa_legitimate_address_p): New.
37776 (pa_legitimize_reload_address): New.
37777 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37778 (STRICT_REG_OK_FOR_BASE_P): New.
37779 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37780 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37781
37782 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37783 Andrew Dixie <andrewd@gentrack.com>
37784
37785 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37786 flag set.
37787
37788 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37789
37790 * expmed.c (extract_bit_field_1): Pass the full width of the
37791 structure to get_best_reg_extraction_insn.
37792
37793 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37794
37795 PR target/54601
37796 * configure.ac (use_cxa_atexit): Add AIX.
37797 * configure: Regenerate.
37798
37799 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37800
37801 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37802
37803 PR debug/54793
37804 * final.c (need_profile_function): New variable.
37805 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37806 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37807 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37808 notes, targetm.asm_out.function_prologue doesn't emit anything,
37809 HAVE_prologue and profiler should be emitted before prologue,
37810 set need_profile_function instead of emitting it.
37811 (final_scan_insn): If need_profile_function, emit
37812 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37813 NOTE_INSN_FUNCTION_BEG note.
37814
37815 2013-02-01 Richard Henderson <rth@redhat.com>
37816
37817 * config/rs6000/rs6000.md (smulditi3): New.
37818 (umulditi3): New.
37819
37820 * config/alpha/alpha.md (umulditi3): New.
37821
37822 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37823
37824 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37825 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37826
37827 2013-02-01 Richard Biener <rguenther@suse.de>
37828
37829 PR tree-optimization/56113
37830 * tree-ssa-structalias.c (label_visit): Reduce work for
37831 single-predecessor nodes.
37832
37833 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37834
37835 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37836 range isn't testing for zero.
37837
37838 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37839
37840 PR middle-end/56113
37841 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37842
37843 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37844 Nick Clifton <nickc@redhat.com>
37845
37846 * config/v850/constraints.md (Q): Define as a memory constraint.
37847 * config/v850/predicates.md (label_ref_operand): New predicate.
37848 (e3v5_shift_operand): New predicate.
37849 (ior_operator): New predicate.
37850 * config/v850/t-v850: Add e3v5 multilib.
37851 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37852 (v850_gen_movdi): Prototype.
37853 * config/v850/v850.c: Add support for e3v5 architecture.
37854 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37855 TARGET_V850E_UP.
37856 (construct_save_jarl): Add e3v5 long JARL support.
37857 (v850_adjust_insn_length): New function. Adjust length of call
37858 insns when using e3v5 instructions.
37859 (v850_gen_movdi): New function: Generate instructions to move a
37860 DImode value.
37861 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37862 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37863 (TARGET_USE_FPU): Enable for e3v5.
37864 (CONST_OK_FOR_W): New macro.
37865 (ADJUST_INSN_LENGTH): Define.
37866 * config/v850/v850.md (UNSPEC_LOOP): Define.
37867 (attr cpu): Add v850e3v5.
37868 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37869 (movdi): New pattern.
37870 (movdi_internal): New pattern.
37871 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37872 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37873 (cstoresf4): Likewise.
37874 (cstoredf4): Likewise.
37875 (insv): New pattern.
37876 (rotlso3_a): New pattern.
37877 (rotlsi3_b): New pattern
37878 (rotlsi3_v850e3v5): New pattern.
37879 (doloop_begin): New pattern.
37880 (fix_loop_counter): New pattern.
37881 (doloop_end): New pattern.
37882 (branch_normal): Add e3v5 long branch support.
37883 (branch_invert): Likewise.
37884 (branch_z_normal): Likewise.
37885 (branch_z_invert): Likewise.
37886 (branch_nz_normal): Likewise.
37887 (branch_nz_invert): Likewise.
37888 (call_internal_short): Add e3v5 register-indirect JARL support.
37889 (call_internal_long): Likewise.
37890 (call_value_internal_short): Likewise.
37891 (call_value_internal_long): Likewise.
37892 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37893 (mloop): New option.
37894 * config.gcc: Add support for configuring v840e3v5 target.
37895 * doc/invoke.texi: Document new v850 specific command line options.
37896
37897 2013-01-31 Paul Koning <ni1d@arrl.net>
37898
37899 PR debug/55059
37900 PR debug/54508
37901 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37902 children if parent is a class.
37903 (prune_unused_types_prune): Don't add DW_AT_declaration.
37904
37905 2013-01-31 Richard Biener <rguenther@suse.de>
37906
37907 PR tree-optimization/56157
37908 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37909 match up operand with SLP child.
37910
37911 2013-01-31 Jason Merrill <jason@redhat.com>
37912
37913 PR debug/54410
37914 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37915 parameters the first time.
37916 (gen_scheduled_generic_parms_dies): Check completeness here.
37917
37918 2013-01-31 Richard Biener <rguenther@suse.de>
37919
37920 PR middle-end/53073
37921 * common.opt (faggressive-loop-optimizations): New flag,
37922 enabled by default.
37923 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37924 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37925 infer_loop_bounds_from_undefined by it.
37926
37927 2013-01-31 Richard Biener <rguenther@suse.de>
37928
37929 PR tree-optimization/56150
37930 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37931 visit virtual operands.
37932 (find_uses_to_rename_bb): Likewise.
37933
37934 2013-01-31 Richard Biener <rguenther@suse.de>
37935
37936 PR tree-optimization/56150
37937 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37938 mixed store non-store stmts.
37939
37940 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37941
37942 PR sanitizer/55374
37943 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37944 LIBASAN_EARLY_SPEC is defined.
37945 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37946 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37947 before %o.
37948 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37949
37950 PR c++/55742
37951 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37952 invalid args instead of ICEing on it.
37953 (ix86_valid_target_attribute_tree): Return error_mark_node if
37954 ix86_valid_target_attribute_inner_p failed.
37955 (ix86_valid_target_attribute_p): Return false only if
37956 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37957 target("default") attribute.
37958 (sorted_attr_string): Change argument from const char * to tree,
37959 merge in all target attribute arguments rather than just one.
37960 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37961 instead of free. Avoid using strcat.
37962 (ix86_mangle_function_version_assembler_name): Mangle
37963 target("default") as if no target attribute is present. Adjust
37964 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37965 instead of xmalloc and XDELETEVEC instead of free.
37966 (ix86_function_versions): Don't return true if one of the decls
37967 doesn't have target attribute. If they don't and one of the decls
37968 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37969 sorted_attr_string caller. Use XDELETEVEC instead of free.
37970 (ix86_supports_function_versions): Remove.
37971 (make_name): Fix up formatting.
37972 (make_dispatcher_decl): Remove resolver_name and its initialization.
37973 Avoid leaking memory.
37974 (is_function_default_version): Return true if there is
37975 target("default") attribute rather than no target attribute at all.
37976 (make_resolver_func): Avoid leaking memory.
37977 (ix86_generate_version_dispatcher_body): Likewise.
37978 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37979 * target.def (supports_function_versions): Remove.
37980 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37981 * doc/tm.texi: Regenerated.
37982
37983 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37984
37985 PR rtl-optimization/56144
37986 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37987 for values with side effects.
37988
37989 2013-01-30 Richard Biener <rguenther@suse.de>
37990
37991 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37992 (sparseset_pop): Likewise.
37993 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37994 to be able to use quick_push in the worker loop.
37995
37996 2013-01-30 Marek Polacek <polacek@redhat.com>
37997
37998 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37999
38000 2013-01-30 Richard Biener <rguenther@suse.de>
38001
38002 PR lto/56147
38003 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
38004
38005 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
38006
38007 PR tree-optimization/56064
38008 * fixed-value.c (fixed_from_double_int): New function.
38009 * fixed-value.h (fixed_from_double_int): New prototype.
38010 (const_fixed_from_double_int): New static inline function.
38011 * fold-const.c (native_interpret_fixed): New static function.
38012 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38013 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38014 (native_encode_fixed): New static function.
38015 (native_encode_expr) <FIXED_CST>: Use it.
38016 (native_interpret_int): Move double_int worker code to...
38017 * double-int.c (double_int::from_buffer): ...this new static method.
38018 * double-int.h (double_int::from_buffer): Prototype it.
38019
38020 2013-01-30 Richard Biener <rguenther@suse.de>
38021
38022 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38023 New pointer-map and obstack.
38024 (init_alias_vars): Allocate pointer-map and obstack.
38025 (delete_points_to_sets): Free them.
38026 (find_what_var_points_to): Cache result.
38027 (find_what_p_points_to): Adjust for changed interface of
38028 find_what_var_points_to.
38029 (compute_points_to_sets): Likewise.
38030 (ipa_pta_execute): Likewise.
38031
38032 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38033
38034 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38035 * configure: Regenerate.
38036 * config.in: Regenerate.
38037 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38038 #nobits/#progbits if supported.
38039
38040 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
38041
38042 PR target/56121
38043 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38044 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38045 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38046
38047 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38048
38049 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38050 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38051
38052 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38053
38054 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38055 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38056
38057 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38058
38059 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38060 declaration.
38061 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38062 * config/arm/cortex-a7.md: New bypasses using
38063 arm_mac_accumulator_is_result.
38064
38065 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38066
38067 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
38068 (cortex_a7_neon_mla): Likewise.
38069 (cortex_a7_fpfmad): New reservation.
38070 (cortex_a7_fpmacs): Use ffmas and update required units.
38071 (cortex_a7_fpmuld): Update required units and latency.
38072 (cortex_a7_fpmacd): Likewise.
38073 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38074 (cortex_a7_neon). Likewise.
38075 (bypass) Update participating units.
38076
38077 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38078
38079 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38080 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38081 from fmac to ffma.
38082 * config/arm/vfp11.md (vfp_farith): Use ffmas.
38083 (vfp_fmul): Use ffmad.
38084 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38085 (cortex_r4_fmacd): Use ffmad.
38086 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38087 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
38088 (cortex_a9_fmacd): Use ffmad.
38089 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38090 (cortex_a8_vfp_macd): Use ffmad.
38091 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38092 (cortex_a5_fpmacd): Use ffmad.
38093 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38094 (cortex_a15_vfp_macd): Use ffmad.
38095 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38096
38097 2013-01-29 Jason Merrill <jason@redhat.com>
38098
38099 PR libstdc++/54314
38100 * varasm.c (default_assemble_visibility): Don't warn about
38101 visibility on artificial decls.
38102
38103 2013-01-29 Richard Biener <rguenther@suse.de>
38104
38105 PR tree-optimization/56113
38106 * tree-ssa-structalias.c (equiv_class_lookup): Also return
38107 the bitmap leader.
38108 (label_visit): Free duplicate bitmaps and record the leader instead.
38109 (perform_var_substitution): Adjust.
38110
38111 2013-01-29 Richard Biener <rguenther@suse.de>
38112
38113 PR tree-optimization/55270
38114 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38115 the CFG, schedule loops for fixup.
38116
38117 2013-01-29 Nick Clifton <nickc@redhat.com>
38118
38119 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38120 SP_REG.
38121
38122 2013-01-28 Leif Ekblad <leif@rdos.net>
38123
38124 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38125 * config/i386/i386.h (TARGET_RDOS): New macro.
38126 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38127 * config/i386/i386.c (ix86_option_override_internal): For 64bit
38128 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38129 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38130 DEFAULT_LARGE_SECTION_THRESHOLD.
38131 * config/i386/i386.md (R14_REG, R15_REG): New constants.
38132 * config/i386/rdos.h: New file.
38133 * config/i386/rdos64.h: New file.
38134
38135 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
38136
38137 PR other/54814
38138 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38139 TEST_HARD_REG_BIT.
38140
38141 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38142
38143 PR rtl-optimization/56117
38144 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38145 call cselib_lookup_from_insn on the MEM before calling
38146 add_insn_mem_dependence.
38147
38148 2013-01-28 Richard Biener <rguenther@suse.de>
38149
38150 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38151 to a stmt that didn't have one.
38152 (copy_phis_for_bb): Likewise for PHI arguments.
38153 (copy_debug_stmt): Likewise for debug stmts.
38154
38155 2013-01-28 Richard Biener <rguenther@suse.de>
38156
38157 PR tree-optimization/56034
38158 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38159 (partition_builtin_p): Adjust.
38160 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
38161 it is the last partition.
38162 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38163 up the vertex for the definition.
38164 (classify_partition): Classify whether a partition is a
38165 PKIND_REDUCTION, thus has uses outside of the loop.
38166 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38167 Merge all PKIND_REDUCTION partitions into the last partition.
38168 (tree_loop_distribution): Seed partitions from reductions as well.
38169
38170 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38171
38172 PR tree-optimization/56125
38173 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38174 pow(x,c) into sqrt(x) * powi(x, n/2) or
38175 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38176 optimizing for size.
38177 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38178 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38179 integer.
38180
38181 PR tree-optimization/56094
38182 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38183 to UNKNOWN_LOCATION while gimplifying expr.
38184
38185 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
38186
38187 PR target/56114
38188 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38189 operand 0 in movabs insn template for -masm=intel asm alternative.
38190 (*movabs<mode>_2): Ditto for operand 1.
38191
38192 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
38193
38194 PR target/54663
38195 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38196 of microblaze-c.o
38197
38198 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38199
38200 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38201 tm_file.
38202
38203 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38204
38205 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38206 Undef to avoid warning.
38207
38208 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38209
38210 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38211 * configure: Regenerate.
38212
38213 2013-01-25 Jakub Jelinek <jakub@redhat.com>
38214
38215 PR tree-optimization/56098
38216 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38217 for stmts with volatile ops.
38218 (cond_store_replacement): Don't optimize if assign has volatile ops.
38219 (cond_if_else_store_replacement_1): Don't optimize if either
38220 then_assign or else_assign have volatile ops.
38221 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38222 volatile ops.
38223
38224 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38225
38226 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38227
38228 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38229
38230 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38231 missing ':' in asm example.
38232
38233 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
38234
38235 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38236 entries into lane and laneq entries.
38237 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38238 Remove AdvSIMD scalar modes.
38239 (aarch64_sq<r>dmulh_laneq<mode>): New.
38240 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38241 modes.
38242 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38243 builtin implementations to relfect changes in RTL in aarch64-simd.md.
38244 * config/aarch64/iterators.md (VCOND): New.
38245 (VCONQ): New.
38246
38247 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38248
38249 PR target/54222
38250 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38251 Add NULL LIBNAME argument to existing definitions.
38252 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38253 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38254 * config/avr/avr.c (DEF_BUILTIN): Same.
38255 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38256 (avr_expand_builtin): Expand to a vanilla call if a libgcc
38257 implementation is available (DECL_ASSEMBLER_NAME is set).
38258 (avr_fold_absfx): New static function.
38259 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38260 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38261 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38262 AVR_BUILTIN_ABSLLK.
38263 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38264 (abshk, absk, abslk, absllk): Provide as static inline functions.
38265
38266 2013-01-25 Marek Polacek <polacek@redhat.com>
38267
38268 PR tree-optimization/56035
38269 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38270
38271 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
38272
38273 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38274 (*movtf_internal_rex64): Add (!o,C) alternative
38275 (*movxf_internal_rex64): Ditto.
38276 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38277
38278 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
38279
38280 * doc/invoke.texi: fix typo.
38281 * doc/objc.texi: fix typo.
38282
38283 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
38284
38285 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38286 for the first two alternatives.
38287
38288 2013-01-24 Diego Novillo <dnovillo@google.com>
38289
38290 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
38291 (ggc-zone.o): Remove.
38292 * configure.ac: Remove option --with-gc.
38293 * configure: Re-generate.
38294 * doc/install.texi: Remove documentation for --with-gc.
38295 * gengtype.c (write_enum_defn): Remove. Update all users.
38296 (write_Types_process_field): Remove generation of gt_e_* argument.
38297 (output_type_enum): Remove. Update all users.
38298 (write_enum_defn): Remove. Update all users.
38299 (enum alloc_zone): Remove. Update all users.
38300 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38301 * ggc-common.c (ggc_splay_alloc): Remove first argument.
38302 Update all callers.
38303 (struct ptr_data): Remove field TYPE. Update all users.
38304 (gt_pch_note_object): Remove argument TYPE. Update all users.
38305 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38306 Update all users.
38307 * ggc-none.c (ggc_alloc_typed_stat): Remove.
38308 (struct alloc_zone): Remove.
38309 (ggc_internal_alloc_zone_stat): Remove.
38310 (ggc_internal_cleared_alloc_zone_stat): Remove.
38311 * ggc-page.c (ggc_alloc_typed_stat): Remove.
38312 (ggc_pch_count_object): Remove last argument. Update all users.
38313 (ggc_pch_alloc_object): Remove last argument. Update all users.
38314 (struct alloc_zone): Remove.
38315 * ggc-zone.c: Remove.
38316 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
38317 (struct alloc_zone): Remove.
38318 (ggc_alloc_typed_stat): Remove.
38319 (ggc_alloc_typed): Remove.
38320 (ggc_splay_alloc): Remove first argument.
38321 (rtl_zone): Remove. Update all users.
38322 (tree_zone): Remove. Update all users.
38323 (tree_id_zone): Remove. Update all users.
38324 (ggc_internal_zone_alloc_stat): Remove. Update all users.
38325 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
38326 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
38327 * tree-ssanames.c: Remove references to zone allocator in comments.
38328
38329 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
38330
38331 * config/avr/avr.c (avr_out_fract): Make register numbers that
38332 might be outside of source operand signed.
38333
38334 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
38335
38336 * config/i386/constraints.md (Yf): New constraint.
38337 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38338 of f constraint to conditionaly disable x87 register preferences.
38339 (*movdf_internal): Ditto.
38340 (*movsf_internal): Ditto.
38341
38342 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
38343
38344 PR inline-asm/55934
38345 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38346 that have operands with impossible constraints.
38347 Add a FIXME for a speed-up opportunity.
38348 * lra-constraints.c (process_alt_operands): Verify that a class
38349 selected from constraints on asms is valid for the operand mode.
38350 (curr_insn_transform): Remove incorrect comment.
38351
38352 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
38353
38354 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38355 TOC operand is a valid symbol ref in the constant pool.
38356
38357 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38358
38359 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38360
38361 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
38362
38363 PR target/54222
38364 * config/avr/stdfix.h: New file.
38365 * t-avr (stdfix-gcc.h): New rule to build it.
38366 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38367
38368 2013-01-23 Kostya Serebryany <kcc@google.com>
38369
38370 * config/darwin.h: remove dependency on
38371 CoreFoundation (asan on Mac OS).
38372
38373 2013-01-23 Jakub Jelinek <jakub@redhat.com>
38374
38375 PR target/49069
38376 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38377 instead of cmpdi_operand for first comparison operand.
38378 Don't assert that comparison operands aren't both constants.
38379
38380 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38381
38382 * doc/install.texi (Downloading the Source): Update references to
38383 downloading separate components.
38384
38385 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38386
38387 * doc/extend.texi (__int128): Improve grammar.
38388
38389 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
38390
38391 PR target/56028
38392 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38393 alternative to (o,r).
38394 (*movdi_internal_rex64): Remove (!o,n) alternative.
38395 (DImode immediate->memory splitter): Remove.
38396 (DImode immediate->memory peephole2): Remove.
38397 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38398 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38399 alternative to (!o,*r).
38400 (*movtf_internal_sse): New pattern.
38401 (*movxf_internal_rex64): New pattern.
38402 (*movxf_internal): Disable for TARGET_64BIT.
38403 (*movdf_internal_rex64): Remove (!o,F) alternative.
38404
38405 2013-01-22 Jakub Jelinek <jakub@redhat.com>
38406
38407 PR middle-end/56074
38408 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38409 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38410 * tree-vect-loop-manip.c (find_loop_location): Also ignore
38411 stmt locations where LOCATION_LOCUS of the stmt location is
38412 UNKNOWN_LOCATION or BUILTINS_LOCATION.
38413
38414 PR target/55686
38415 * config/i386/i386.md (UNSPEC_STOS): New.
38416 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38417 *strsetqi_1): Add UNSPEC_STOS.
38418
38419 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
38420
38421 PR c++/56067
38422 * doc/invoke.texi: Remove left over -Wsynth example.
38423
38424 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38425
38426 PR tree-optimization/56051
38427 * fold-const.c (fold_binary_loc): Don't fold
38428 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38429 a narrowing conversion, or widening conversion from signed
38430 to unsigned.
38431
38432 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38433
38434 PR rtl-optimization/56023
38435 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38436 dependent on debug instruction.
38437
38438 2013-01-21 Martin Jambor <mjambor@suse.cz>
38439
38440 PR middle-end/56022
38441 * function.c (allocate_struct_function): Call
38442 invoke_set_current_function_hook earlier.
38443
38444 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38445
38446 * reload1.c (init_reload): Only initialize reload_obstack
38447 during the first call.
38448
38449 2013-01-21 Marek Polacek <polacek@redhat.com>
38450
38451 * cfgloop.c (verify_loop_structure): Fix up grammar.
38452
38453 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
38454
38455 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38456 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38457
38458 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38459
38460 PR target/56058
38461 * config/arm/marvell-pj4.md: Update copyright year.
38462 Fix up use of alu to alu_reg and simple_alu_imm.
38463
38464 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38465
38466 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38467
38468 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38469
38470 PR target/55433
38471 * lra-constraints.c (curr_insn_transform): Don't reuse original
38472 insn for secondary memory move when memory mode should be different.
38473
38474 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38475
38476 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38477 atomic_storedi_1): New patterns.
38478
38479 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38480
38481 btver2 pipeline descriptions.
38482 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38483 descriptions.
38484 * config/i386/i386.md (btver2_decode): New type attributes.
38485 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38486 type attributes.
38487 * config/i386/btver2.md: New file describing btver2 pipelines.
38488
38489 2013-01-19 Andrew Pinski <apinski@cavium.com>
38490
38491 PR tree-optimization/52631
38492 * tree-ssa-sccvn (visit_use): Before looking up the original
38493 statement, try looking up the simplified expression.
38494
38495 2013-01-19 Anthony Green <green@moxielogic.com>
38496
38497 * config/moxie/moxie.c (moxie_expand_prologue): Set
38498 current_function_static_stack_size.
38499
38500 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38501
38502 PR tree-optimization/56029
38503 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38504 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38505
38506 2013-01-18 Sharad Singhai <singhai@google.com>
38507
38508 PR tree-optimization/55995
38509 * dumpfile.c (dump_loc): Print location only if available.
38510 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38511
38512 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38513
38514 PR target/55433
38515 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38516 secondary memory move.
38517 (inherit_reload_reg): Use rclass instead of cl for
38518 check_secondary_memory_needed_p.
38519
38520 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38521
38522 PR middle-end/56015
38523 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38524 the case where writing real complex part of target modifies op1.
38525
38526 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38527
38528 * config/aarch64/aarch64-simd.md
38529 (aarch64_vcond_internal<mode>): Handle unordered cases.
38530 * config/aarch64/iterators.md (v_cmp_result): New.
38531
38532 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38533 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38534
38535 * config/arm/marvell-pj4.md: New file.
38536 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38537 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38538 (generic_vfp): Likewise.
38539 * config/arm/arm-cores.def: Add marvell-pj4.
38540 * config/arm/arm-tune.md: Regenerate.
38541 * config/arm/arm-tables.opt: Regenerate.
38542 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38543 * doc/invoke.texi: Document marvell-pj4.
38544
38545 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38546
38547 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38548
38549 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38550
38551 PR debug/54114
38552 PR debug/54402
38553 PR debug/49888
38554 * var-tracking.c (negative_power_of_two_p): New.
38555 (global_get_addr_cache, local_get_addr_cache): New.
38556 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38557 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38558 heading comment.
38559 (vt_stack_offset_p): Remove.
38560 (vt_canon_true_dep): Always canonicalize loc's address.
38561 (clobber_overlapping_mems): Make sure we have a MEM.
38562 (local_get_addr_clear_given_value): New.
38563 (val_reset): Clear local cached entries.
38564 (compute_bb_dataflow): Create and release the local cache.
38565 Disable duplicate MEMs clobbering.
38566 (emit_notes_in_bb): Clobber MEMs likewise.
38567 (vt_emit_notes): Create and release the local cache.
38568 (vt_initialize, vt_finalize): Create and release the global
38569 cache, respectively.
38570 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38571
38572 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38573
38574 PR libmudflap/53359
38575 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38576 not found in the symtab.
38577
38578 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38579
38580 PR debug/56006
38581 PR rtl-optimization/55547
38582 PR rtl-optimization/53827
38583 PR debug/53671
38584 PR debug/49888
38585 * alias.c (offset_overlap_p): New, factored out of...
38586 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38587 the conservative special case for symbolic constants. Don't
38588 adjust zero sizes on alignment.
38589
38590 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38591
38592 PR rtl-optimization/52573
38593 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38594 REG_UNUSED for the same register.
38595
38596 2013-01-17 Richard Biener <rguenther@suse.de>
38597 Marek Polacek <polacek@redhat.com>
38598
38599 PR rtl-optimization/55833
38600 * loop-unswitch.c (unswitch_loops): Move loop verification...
38601 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38602 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38603 Set it to true when we're removing a loop from hierarchy tree in
38604 an irreducible region.
38605 (fix_bb_placements): Adjust caller.
38606 (fix_loop_placements): Likewise.
38607
38608 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38609
38610 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38611 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38612 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38613 Remove ID. Adjust comments.
38614 * config/avr/avr-c.c (avr_builtin_name): Remove.
38615 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38616 * config/avr/avr.c (avr_tolower): New static function.
38617 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38618 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38619 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38620 default expansion.
38621
38622 2013-01-17 Jan Hubicka <jh@suse.cz>
38623
38624 PR tree-optimization/55273
38625 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38626
38627 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38628
38629 PR target/55981
38630 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38631 store through atomic_store<mode>_1.
38632 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38633
38634 2013-01-17 Martin Jambor <mjambor@suse.cz>
38635
38636 PR tree-optimizations/55264
38637 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38638 for virtual methods.
38639 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38640 virtual methods before inlining is over.
38641 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38642 virtual functions.
38643 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38644 non-virtual.
38645
38646 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38647
38648 PR rtl-optimization/56005
38649 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38650 pending reads for prefetch.
38651
38652 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38653
38654 * config/aarch64/aarch64.md
38655 (*cstoresi_neg_uxtw): New pattern.
38656 (*cmovsi_insn_uxtw): New pattern.
38657 (*<optab>si3_uxtw): New pattern.
38658 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38659 (*<optab>si3_insn_uxtw): New pattern.
38660 (*bswapsi2_uxtw): New pattern.
38661
38662 2013-01-16 Richard Biener <rguenther@suse.de>
38663
38664 * tree-inline.c (tree_function_versioning): Remove set but
38665 never used variable.
38666
38667 2013-01-16 Richard Biener <rguenther@suse.de>
38668
38669 PR tree-optimization/55964
38670 * tree-flow.h (rename_variables_in_loop): Remove.
38671 (rename_variables_in_bb): Likewise.
38672 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38673 (copy_loop_before): Adjust and delete update-ssa status.
38674 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38675 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38676 (rename_variables_in_loop): Remove.
38677 (slpeel_update_phis_for_duplicate_loop): Likewise.
38678 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38679 use available cfg machinery instead of duplicating it.
38680 Update PHI nodes and perform poor-mans SSA update here.
38681 (slpeel_tree_peel_loop_to_edge): Adjust.
38682
38683 2013-01-16 Richard Biener <rguenther@suse.de>
38684
38685 PR tree-optimization/54767
38686 PR tree-optimization/53465
38687 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38688 (vrp_visit_phi_node): For PHI arguments coming via backedges
38689 drop all symbolical range information.
38690 (execute_vrp): Compute backedges.
38691
38692 2013-01-16 Richard Biener <rguenther@suse.de>
38693
38694 * doc/install.texi: Update CLooG and ISL requirements to
38695 0.18.0 and 0.11.1.
38696
38697 2013-01-16 Christian Bruel <christian.bruel@st.com>
38698
38699 PR target/55301
38700 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38701 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38702 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38703
38704 2013-01-16 DJ Delorie <dj@redhat.com>
38705
38706 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38707 (UNSPECV_SP_SWITCH_E): New.
38708 (sp_switch_1): Change to an unspec.
38709 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38710 replace $r15.
38711
38712 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38713
38714 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38715 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38716 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38717 (expand_mem_thread_fence): Ditto.
38718 (expand_mem_signal_fence): Ditto.
38719 (expand_atomic_load): Ditto.
38720 (expand_atomic_store): Ditto.
38721
38722 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38723
38724 PR rtl-optimization/55547
38725 PR rtl-optimization/53827
38726 PR debug/53671
38727 PR debug/49888
38728 * alias.c (memrefs_conflict_p): Set sizes to negative after
38729 AND adjustments.
38730
38731 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38732
38733 PR target/55940
38734 * function.c (thread_prologue_and_epilogue_insns): Always
38735 add crtl->drap_reg to set_up_by_prologue.set, even if
38736 stack_realign_drap is false.
38737
38738 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38739
38740 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38741 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38742 *call): Fix indention.
38743
38744 2013-01-15 Tom de Vries <tom@codesourcery.com>
38745
38746 PR target/55876
38747 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38748 Update comment.
38749
38750 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38751
38752 PR rtl-optimization/55153
38753 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38754
38755 2013-01-15 Martin Jambor <mjambor@suse.cz>
38756
38757 PR tree-optimization/55920
38758 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38759 accesses as grp_to_be_debug_replaced.
38760
38761 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38762
38763 PR tree-optimization/55920
38764 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38765 there is non-useless type conversion needed from debug rhs to lhs,
38766 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38767
38768 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38769 Mikael Pettersson <mikpe@it.uu.se>
38770
38771 PR target/43961
38772 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38773 Thumb.
38774 (ASM_OUTPUT_CASE_LABEL): Remove.
38775 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38776 * final.c (shorten_branches): Update alignment of labels before
38777 jump tables if CASE_VECTOR_SHORTEN_MODE.
38778
38779 2013-01-15 Richard Biener <rguenther@suse.de>
38780
38781 PR bootstrap/55961
38782 * system.h: Do not include gmp.h for building host tools.
38783
38784 2013-01-15 Richard Biener <rguenther@suse.de>
38785
38786 PR middle-end/55882
38787 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38788 account for bitpos when computing alignment.
38789
38790 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38791
38792 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38793 (ix86_target_macros_internal): Likewise.
38794
38795 * config/i386/i386.c (m_CORE2I7): Removed.
38796 (m_CORE_HASWELL): New macro.
38797 (m_CORE_ALL): Likewise.
38798 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38799 (initial_ix86_arch_features): Likewise.
38800 (processor_target_table): Initializations for Core avx2.
38801 (cpu_names): New names "core-avx2".
38802 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38803 PROCESSOR_CORE_HASWELL.
38804 (ix86_issue_rate): New case.
38805 (ia32_multipass_dfa_lookahead): Likewise.
38806 (ix86_sched_init_global): Likewise.
38807
38808 * config/i386/i386.h (TARGET_HASWELL): New macro.
38809 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38810 (processor_type): New PROCESSOR_HASWELL.
38811
38812 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38813
38814 PR tree-optimization/55955
38815 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38816 *SHIFT_EXPR and *ROTATE_EXPR codes.
38817
38818 PR tree-optimization/48766
38819 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38820 -ftrapv disable -fwrapv.
38821
38822 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38823
38824 PR target/55974
38825 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38826 etc. to 1 and not to __flash.
38827 Use LL suffix for __INT24_MAX__ with -mint8.
38828 Use ULL suffix for __UINT24_MAX__ with -mint8.
38829
38830 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38831
38832 * config/avr/avr-arch.h
38833 (struct base_arch_s): Use typedef avr_arch_t instead.
38834 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38835 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38836 * config/avr/avr.c: Same.
38837 * config/avr/avr-devices.c: Same.
38838 * config/avr/driver-avr.c: Same.
38839 * config/avr/gen-avr-mmcu-texi.c: Same.
38840 * config/avr/avr-mcus.def: Adjust comment.
38841
38842 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38843
38844 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38845 * config/aarch64/iterators.md (VALLDI): New.
38846
38847 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38848 Andi Kleen <ak@linux.intel.com>
38849
38850 PR target/55948
38851 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38852 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38853 memmodel flag.
38854
38855 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38856
38857 * config/avr/avr-stdint.h: Remove trailing blanks.
38858 * config/avr/avr-log.h: Same.
38859 * config/avr/avr-arch.h: Same.
38860 * config/avr/avr-devices.c: Same.
38861 * config/avr/avr-dimode.md: Same.
38862 * config/avr/predicates.md: Same.
38863 * config/avr/avr-c.c: Same. And fix typo.
38864
38865 * config/avr/avr-protos.h: Same. And:
38866 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38867 (init_cumulative_args): Rename to avr_init_cumulative_args.
38868 (expand_prologue): Rename to avr_expand_prologue.
38869 (expand_epilogue): Rename to avr_expand_epilogue.
38870 (adjust_insn_length): Rename to avr_adjust_insn_length.
38871 (notice_update_cc): Rename to avr_notice_update_cc.
38872 (final_prescan_insn): Rename to avr_final_prescan_insn.
38873 * config/avr/avr.c: Same.
38874 * config/avr/avr.h: Same.
38875 * config/avr/avr.md: Remove trailing blanks.
38876 (prologue): Use avr_expand_prologue.
38877 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38878
38879 2013-01-14 Richard Biener <rguenther@suse.de>
38880
38881 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38882 verify_location, collect_subblocks): New functions.
38883 (verify_gimple_in_cfg): Verify that locations only reference
38884 BLOCKs in the functions BLOCK tree.
38885
38886 2013-01-14 Richard Biener <rguenther@suse.de>
38887
38888 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38889 PHI argument.
38890 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38891 unshare reference.
38892 (insert_out_of_ssa_copy_on_edge): Likewise.
38893 (rewrite_close_phi_out_of_ssa): Likewise.
38894 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38895 debug expressions.
38896 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38897 propagated constants.
38898 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38899 can not be shared.
38900
38901 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38902
38903 * config/avr/avr-modes.def: Add GPL copyright notice.
38904
38905 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38906
38907 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38908 MEMMODEL_MASK to determine memory model.
38909 (atomic_store<mode>): Ditto from operands[2].
38910 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38911
38912 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38913
38914 PR fortran/55935
38915 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38916 (fold_gimple_assign): Don't call unshare_expr here.
38917 (fold_ctor_reference): Call unshare_expr.
38918
38919 2013-01-13 Terry Guo <terry.guo@arm.com>
38920
38921 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38922 * doc/fragments.texi: Document MULTILIB_REUSE.
38923 * gcc.c (multilib_reuse): New internal spec.
38924 (set_multilib_dir): Also search multilib from multilib_reuse.
38925 * genmultilib (tmpmultilib3): Refactor code.
38926 (tmpmultilib4): Ditto.
38927 (multilib_reuse): New multilib argument.
38928
38929 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38930
38931 * Makefile.in: Update copyright.
38932
38933 2013-01-12 Tom de Vries <tom@codesourcery.com>
38934
38935 PR middle-end/55890
38936 * calls.c (expand_call): Check if arg_nr is valid.
38937
38938 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38939
38940 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38941 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38942 documentation. Add missing '__' in front of
38943 __builtin_ia32_packssdw256.
38944
38945 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38946
38947 PR target/55719
38948 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38949 NO_REGS for larl operands.
38950 (s390_reload_larl_operand): Use s390_load_address instead of
38951 emit_move_insn.
38952
38953 2013-01-11 Richard Biener <rguenther@suse.de>
38954
38955 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38956 (verify_node_sharing): ... here.
38957 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38958
38959 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38960
38961 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38962 Substitute TREECHECKING.
38963 * configure: Regenerate.
38964 * Makefile.in (TREECHECKING): New.
38965
38966 2013-01-11 Richard Guenther <rguenther@suse.de>
38967
38968 PR tree-optimization/44061
38969 * tree-vrp.c (extract_range_basic): Compute zero as
38970 value-range for __builtin_constant_p of function parameters.
38971
38972 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38973
38974 Update copyright years.
38975
38976 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38977
38978 PR rtl-optimization/55672
38979 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38980 const to be eliminable.
38981
38982 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38983
38984 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38985 * configure: Regenerate.
38986
38987 2013-01-10 Richard Biener <rguenther@suse.de>
38988
38989 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38990
38991 2013-01-10 Richard Biener <rguenther@suse.de>
38992
38993 PR bootstrap/55792
38994 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38995 locations for virtual PHI arguments.
38996 (rewrite_update_phi_arguments): Likewise.
38997
38998 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38999
39000 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
39001 on to assembler.
39002
39003 2013-01-10 Jakub Jelinek <jakub@redhat.com>
39004
39005 PR tree-optimization/55921
39006 * tree-complex.c (expand_complex_asm): New function.
39007 (expand_complex_operations_1): Call it for GIMPLE_ASM.
39008
39009 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39010
39011 PR target/55718
39012 * config/s390/s390.c (s390_symref_operand_p)
39013 (s390_loadrelative_operand_p): Merge the two functions.
39014 (s390_check_qrst_address, print_operand_address): Add parameters
39015 to s390_loadrelative_operand_p invokation.
39016 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39017 (s390_reload_larl_operand, s390_secondary_reload): Use
39018 s390_loadrelative_operand_p instead of s390_symref_operand_p.
39019 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39020
39021 2013-01-09 Mike Stump <mikestump@comcast.net>
39022
39023 * dse.c (record_store): Remove unnecessary assert.
39024
39025 2013-01-09 Jan Hubicka <jh@suse.cz>
39026
39027 PR tree-optimization/55569
39028 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39029 * cfgloop.h (scale_loop_profile): Likewise.
39030
39031 2013-01-09 Jan Hubicka <jh@suse.cz>
39032
39033 PR lto/45375
39034 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39035 functions.
39036 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39037
39038 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
39039
39040 PR middle-end/55114
39041 * expr.h (maybe_emit_group_store): Declare.
39042 * expr.c (maybe_emit_group_store): New function.
39043 * builtins.c (expand_builtin_int_roundingfn): Call it.
39044 (expand_builtin_int_roundingfn_2): Likewise.
39045
39046 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
39047
39048 PR rtl-optimization/55829
39049 * lra-constraints.c (match_reload): Add code for absent output.
39050 (curr_insn_transform): Add code for reloads of matched inputs
39051 without output.
39052
39053 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
39054
39055 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39056 attribute of movddup insn to DF.
39057 (*vec_interleave_lowv2df): Ditto.
39058 (vec_dupv2df): Ditto.
39059
39060 2013-01-09 Jan Hubicka <jh@suse.cz>
39061
39062 PR tree-optimiation/55875
39063 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39064 EVERY_ITERATION parameter.
39065 (number_of_iterations_exit): Check if exit is executed every iteration.
39066 (idx_infer_loop_bounds): Similarly here.
39067 (n_of_executions_at_most): Simplify
39068 to only test for cases where statement is dominated by the
39069 particular bound; handle correctly the "postdominance" test.
39070 (scev_probably_wraps_p): Use max loop iterations info
39071 as a global bound first.
39072
39073 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
39074 Nick Clifton <nickc@redhat.com>
39075
39076 * config/v850/v850.md (cbranchsf4): New pattern.
39077 (cstoresf4): New pattern.
39078 (cbranchdf4): New pattern.
39079 (cstoredf4): New pattern.
39080 (movsicc): Disallow floating point comparisons.
39081 (cmpsf_le_insn): Fix order of operators.
39082 (cmpsf_lt_insn): Likewise.
39083 (cmpsf_eq_insn): Likewise.
39084 (cmpdf_le_insn): Likewise.
39085 (cmpdf_lt_insn): Likewise.
39086 (cmpdf_eq_insn): Likewise.
39087 (cmpsf_ge_insn): Use LE comparison.
39088 (cmpdf_ge_insn): Likewise.
39089 (cmpsf_gt_insn): Use LT comparison.
39090 (cmpdf_gt_insn): Likewise.
39091 (cmpsf_ne_insn): Delete pattern.
39092 (cmpdf_ne_insn): Delete pattern.
39093 * config/v850/v850.c (v850_gen_float_compare): Use
39094 gen_cmpdf_eq_insn for NE comparison.
39095 (v850_float_z_comparison_operator)
39096 (v850_float_nz_comparison_operator): Move from here ...
39097 * config/v850/predicates.md: ... to here. Move GT and GE
39098 comparisons into v850_float_z_comparison_operator.
39099 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39100 Delete prototype.
39101 (v850_float_nz_comparison_operator): Likewise.
39102
39103 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39104
39105 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39106 with calls to gen_insvsi/gen_insvdi.
39107
39108 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39109
39110 * config/i386/i386.c (initial_ix86_tune_features): Set up
39111 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39112
39113 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
39114 Jakub Jelinek <jakub@redhat.com>
39115
39116 PR tree-optimization/48189
39117 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39118 If nitercst is 0, don't predict the exit edge.
39119
39120 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39121
39122 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39123 in asm_fprintf with reg_names.
39124 (aarch64_print_operand_address): Likewise.
39125 (aarch64_return_addr): Likewise.
39126 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39127
39128 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39129
39130 * config/pa/pa.h (VAL_U6_BITS_P): Define.
39131 (INT_U6_BITS): Likewise.
39132 * config/pa/predicates.md (uint6_operand): New predicate.
39133 (shift5_operand, shift6_operand): Likewise.
39134 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39135 arith32_operand.
39136 (lshrdi3): Use shift6_operand.
39137 (shrpsi4, shrpdi4): New insn patterns.
39138 (extzv): Delete expander.
39139 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
39140 predicates in unamed zero extract patterns. Tighten common constraint.
39141 (extv): Delete expander.
39142 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
39143 predicates in unamed sign extract patterns. Tighten common constraint.
39144 (insv): Delete expander.
39145 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
39146 predicates in unamed insert patterns. Tighten common constraint.
39147 Change uint32_operand predicate to uint6_operand predicate in unamed
39148 DImode pattern to insert constant values of type 1...1xxxx.
39149
39150 2013-01-04 Jan Hubicka <jh@suse.cz>
39151
39152 PR tree-optimization/55823
39153 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39154 issue.
39155
39156 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39157 Uros Bizjak <ubizjak@gmail.com>
39158
39159 PR rtl-optimization/55845
39160 * df-problems.c (can_move_insns_across): Stop scanning at
39161 volatile_insn_p source instruction or give up if
39162 across_from .. across_to range contains any volatile_insn_p
39163 instructions.
39164
39165 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39166
39167 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39168 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39169 Declare.
39170 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39171 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39172
39173 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39174
39175 PR fortran/55341
39176 * asan.c (asan_clear_shadow): New function.
39177 (asan_emit_stack_protection): Use it.
39178
39179 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39180
39181 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39182 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39183 with tab instead of space.
39184
39185 2013-01-08 Nick Clifton <nickc@redhat.com>
39186
39187 * config/rl78/rl78.c (rl78_expand_prologue): Always select
39188 register bank 0 at the start of an interrupt handler.
39189 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39190 MDBH registers.
39191
39192 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39193
39194 * config/aarch64/aarch64-simd.md
39195 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39196 (aarch64_simd_bsl): Likewise.
39197 (aarch64_vcond_internal<mode>): Likewise.
39198 (vcond<mode><mode>): Likewise.
39199 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39200 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39201
39202 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39203
39204 * config/aarch64/aarch64-builtins.c
39205 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39206
39207 2013-01-08 Martin Jambor <mjambor@suse.cz>
39208
39209 PR debug/55579
39210 * tree-sra.c (analyze_access_subtree): Return true also after
39211 potentially creating a debug-only replacement.
39212
39213 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39214
39215 PR middle-end/55890
39216 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39217
39218 PR tree-optimization/54120
39219 * tree-vrp.c (range_fits_type_p): Don't allow
39220 src_precision < precision from signed vr to unsigned_p
39221 if vr->min or vr->max is negative.
39222 (simplify_float_conversion_using_ranges): Test can_float_p
39223 against CODE_FOR_nothing.
39224
39225 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39226 Richard Biener <rguenther@suse.de>
39227
39228 PR middle-end/55851
39229 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39230 types instead of just INTEGER_TYPE types.
39231
39232 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
39233
39234 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39235 TF_SIZE): Define.
39236
39237 2013-01-07 Steve Ellcey <sellcey@mips.com>
39238
39239 PR target/42661
39240 * config/mips/mips.opt: Change mad to mmad to match documentation.
39241
39242 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39243
39244 PR target/55897
39245 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39246 .progmemx.data now.
39247
39248 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39249
39250 PR target/55897
39251 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39252 (avr_addrspace_t): Add .section_name field.
39253 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39254 array size.
39255 (avr_addrspace): Same. Initialize .section_name. Remove last
39256 NULL entry. Put __memx into .progmemx.data.
39257 (progmem_section_prefix): Remove.
39258 (avr_asm_init_sections): No need to initialize progmem_section.
39259 (avr_asm_named_section): Use avr_addrspace[].section_name to get
39260 section name prefix.
39261 (avr_asm_select_section): Ditto. And use get_unnamed_section to
39262 retrieve the progmem section.
39263 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39264 boundary to run over avr_addrspace[].
39265 (avr_register_target_pragmas): Ditto.
39266
39267 2013-01-06 Jakub Jelinek <jakub@redhat.com>
39268
39269 * varasm.c (output_constant_def_contents): For asan_protect_global
39270 protected strings, adjust DECL_ALIGN if needed, before testing for
39271 anchored symbols.
39272 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39273 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
39274 normal decls.
39275 (output_object_block): For asan protected decls, emit asan padding
39276 after their contents.
39277 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39278 (asan_finish_file): Test it here instead.
39279
39280 2013-01-07 Nick Clifton <nickc@redhat.com>
39281 Matthias Klose <doko@debian.org>
39282 Doug Kwan <dougkwan@google.com>
39283 H.J. Lu <hongjiu.lu@intel.com>
39284
39285 PR driver/55470
39286 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39287
39288 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39289
39290 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39291
39292 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39293
39294 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39295
39296 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39297
39298 PR target/54461
39299 * doc/install.texi (Cross-Compiler-Specific Options): Document
39300 --with-avrlibc.
39301
39302 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
39303
39304 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39305 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39306 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39307 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39308 vqmovun_high_s64): Fix source operand number and update copyright.
39309
39310 2013-01-07 Richard Biener <rguenther@suse.de>
39311
39312 PR middle-end/55890
39313 * gimple.h (gimple_call_builtin_p): New overload.
39314 * gimple.c (validate_call): New function.
39315 (gimple_call_builtin_p): Likewise.
39316 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39317 Use gimple_call_builtin_p.
39318 (find_func_clobbers): Likewise.
39319 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39320 (strlen_optimize_stmt): Likewise.
39321
39322 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39323
39324 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39325 (vld1q_dup_*): Likewise.
39326 (vld1_*): Likewise.
39327 (vld1q_*): Likewise.
39328 (vld1_lane_*): Likewise.
39329 (vld1q_lane_*): Likewise.
39330
39331 2013-01-07 Richard Biener <rguenther@suse.de>
39332
39333 * lto-streamer.h (LTO_minor_version): Bump to 2.
39334
39335 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39336
39337 * config/aarch64/aarch64-protos.h
39338 (aarch64_const_double_zero_rtx_p): Rename to...
39339 (aarch64_float_const_zero_rtx_p): ...this.
39340 (aarch64_float_const_representable_p): New.
39341 (aarch64_output_simd_mov_immediate): Likewise.
39342 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39343 move immediate case.
39344 * config/aarch64/aarch64.c
39345 (aarch64_const_double_zero_rtx_p): Rename to...
39346 (aarch64_float_const_zero_rtx_p): ...this.
39347 (aarch64_print_operand): Allow printing of new constants.
39348 (aarch64_valid_floating_const): New.
39349 (aarch64_legitimate_constant_p): Check for valid floating-point
39350 constants.
39351 (aarch64_simd_valid_immediate): Likewise.
39352 (aarch64_vect_float_const_representable_p): New.
39353 (aarch64_float_const_representable_p): Likewise.
39354 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39355 (aarch64_output_simd_mov_immediate): New.
39356 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39357 (*movdf_aarch64): Likewise.
39358 * config/aarch64/constraints.md (Ufc): New.
39359 (Y): call aarch64_float_const_zero_rtx.
39360 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39361
39362 2013-01-07 Richard Biener <rguenther@suse.de>
39363
39364 PR tree-optimization/55888
39365 PR tree-optimization/55862
39366 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39367 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39368 not if it is contained therein.
39369
39370 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39371
39372 * config/avr/t-avr: Typo.
39373
39374 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39375
39376 PR55243
39377 * config/avr/t-avr: Don't automatically rebuild
39378 $(srcdir)/config/avr/t-multilib
39379 $(srcdir)/config/avr/avr-tables.opt
39380 $(srcdir)/doc/avr-mmcu.texi
39381 (avr-mcus): New phony target to build them on request.
39382 (s-avr-mlib, s-avr-mmcu-texi): Remove.
39383 * avr/avr-mcus.def: Adjust comments.
39384
39385 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
39386
39387 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39388
39389 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39390
39391 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39392
39393 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39394
39395 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39396
39397 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
39398
39399 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39400 to generate profiling.
39401 * config/rs6000/aix64.h (LIB_SPEC): Same.
39402
39403 2013-01-04 Andrew Pinski <apinski@cavium.com>
39404
39405 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39406 New function.
39407 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39408
39409 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
39410
39411 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39412 unconditionally.
39413 (ix86_expand_move): Ditto.
39414 (ix86_zero_extend_to_Pmode): Ditto.
39415 (ix86_expand_call): Ditto.
39416 (ix86_expand_special_args_builtin): Ditto.
39417 (ix86_expand_builtin): Ditto.
39418
39419 2013-01-04 Richard Biener <rguenther@suse.de>
39420
39421 PR tree-optimization/55862
39422 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39423 translating them through PHI nodes.
39424
39425 2013-01-04 Martin Jambor <mjambor@suse.cz>
39426
39427 PR tree-optimization/55755
39428 * tree-sra.c (sra_modify_assign): Do not check that an access has no
39429 children when trying to avoid producing a VIEW_CONVERT_EXPR.
39430
39431 2013-01-04 Marek Polacek <polacek@redhat.com>
39432
39433 PR middle-end/55859
39434 * opts.c (default_options_optimization): Clarify error message.
39435
39436 2013-01-04 Richard Biener <rguenther@suse.de>
39437
39438 PR middle-end/55863
39439 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39440 reassociation.
39441
39442 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39443
39444 PR target/53789
39445 * config/pa/pa.md (movsi): Revert previous change.
39446 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39447 references.
39448
39449 2013-01-03 Richard Henderson <rth@redhat.com>
39450
39451 * config/i386/i386.c (ix86_expand_move): Always assign to op1
39452 after eliminating TLS symbols.
39453
39454 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39455
39456 PR bootstrap/50167
39457 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39458 * graphite-poly.c (debug_gmp_value): Likewise.
39459
39460 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39461
39462 PR target/55712
39463 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39464 selected code model, define __code_mode_small__, __code_model_medium__,
39465 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39466 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39467 xchg temporary register with %k. Declare temporary register as
39468 early clobbered.
39469 [__x86_64__]: For medium and large code models, preserve %rbx register.
39470
39471 2013-01-03 Richard Biener <rguenther@suse.de>
39472
39473 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39474 (dump_subscript): Adjust.
39475 (finalize_ddr_dependent): Do not dump redundant info.
39476 (analyze_siv_subscript): Adjust.
39477 (subscript_dependence_tester): Likewise.
39478 (compute_affine_dependence): Likewise.
39479
39480 2013-01-03 Richard Biener <rguenther@suse.de>
39481
39482 Revert
39483 2013-01-03 Richard Biener <rguenther@suse.de>
39484
39485 PR tree-optimization/55857
39486 * tree-vect-stmts.c (vectorizable_load): Do not setup
39487 re-alignment for invariant loads.
39488
39489 2013-01-02 Richard Biener <rguenther@suse.de>
39490
39491 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39492 invariant load do not generate a vector load from the scalar location.
39493
39494 2013-01-03 Richard Biener <rguenther@suse.de>
39495
39496 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39497 for not vectorizing.
39498 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39499 not build INDIRECT_REFs, call get_name once only.
39500 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39501 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39502
39503 2013-01-03 Richard Biener <rguenther@suse.de>
39504
39505 PR tree-optimization/55857
39506 * tree-vect-stmts.c (vectorizable_load): Do not setup
39507 re-alignment for invariant loads.
39508
39509 2013-01-03 Richard Biener <rguenther@suse.de>
39510
39511 PR lto/55848
39512 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39513 prefer a built-in decl.
39514
39515 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39516
39517 * gcc.c (process_command): Update copyright notice dates.
39518 * gcov.c (print_version): Likewise.
39519 * gcov-dump.c (print_version): Likewise.
39520
39521 PR rtl-optimization/55838
39522 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39523 iv0.step, iv1.step and step.
39524
39525 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39526 Marc Glisse <marc.glisse@inria.fr>
39527
39528 PR tree-optimization/55832
39529 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39530 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39531 integer_{one,zero}_node.
39532
39533 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39534
39535 PR debug/54402
39536 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39537 * var-tracking.c (reverse_op): Don't add reverse ops to
39538 VALUEs that have already
39539 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39540
39541 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39542
39543 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39544
39545 2013-01-02 Teresa Johnson <tejohnson@google.com>
39546
39547 * dumpfile.c (dump_loc): Print filename with location.
39548 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39549 new location_t parameter to emit complete unroll message with
39550 new dump framework.
39551 (canonicalize_loop_induction_variables): Compute loops location
39552 and pass to try_unroll_loop_completely.
39553 * loop-unroll.c (report_unroll_peel): New function.
39554 (peel_loops_completely): Use new dump format with location
39555 for main dumpfile message, and invoke report_unroll_peel on success.
39556 (decide_unrolling_and_peeling): Ditto.
39557 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39558 by report_unroll_peel.
39559 (decide_peel_completely): Ditto.
39560 (decide_unroll_constant_iterations): Ditto.
39561 (decide_unroll_runtime_iterations): Ditto.
39562 (decide_peel_simple): Ditto.
39563 (decide_unroll_stupid): Ditto.
39564 * cfgloop.c (get_loop_location): New function.
39565 * cfgloop.h (get_loop_location): Declare.
39566
39567 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39568
39569 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39570 NULL.
39571
39572 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39573
39574 PR middle-end/55198
39575 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39576 BLKmode objects when EXPAND_MEMORY is specified.
39577
39578 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39579
39580 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39581 in loop predicate.
39582 (fold_builtin_cpu): Do not share cpu model decls across statements.
39583
39584 2013-01-02 Jason Merrill <jason@redhat.com>
39585
39586 PR c++/55804
39587 * tree.c (build_array_type_1): Revert earlier change.
39588
39589 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39590
39591 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39592 "cortex-a57".
39593 * config/aarch64/aarch64-tune.md: Re-generate.
39594
39595 2013-01-02 Richard Biener <rguenther@suse.de>
39596
39597 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39598 invariant load do not generate a vector load from the scalar location.
39599
39600 2013-01-02 Richard Biener <rguenther@suse.de>
39601
39602 PR bootstrap/55784
39603 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39604 * configure: Regenerate.
39605
39606 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39607
39608 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39609 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39610 (expand_builtin_int_roundingfn_2): Keep the original target around
39611 for the fallback case.
39612
39613 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39614
39615 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39616 to be clear for sign changes.
39617
39618 2013-01-01 Jan Hubicka <jh@suse.cz>
39619
39620 * ipa-inline-analysis.c: Fix formatting.
39621
39622 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39623
39624 PR tree-optimization/55831
39625 * tree-vect-loop.c (get_initial_def_for_induction): Use
39626 gsi_after_labels instead of gsi_start_bb.
39627 \f
39628 Copyright (C) 2013 Free Software Foundation, Inc.
39629
39630 Copying and distribution of this file, with or without modification,
39631 are permitted in any medium without royalty provided the copyright
39632 notice and this notice are preserved.